WmptWap/ShowTogo.aspx.cs

(开头部分) 6KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;


using WMPT.Model;
using WMPT.SQLServerDAL;
using WMPT.Common;

namespace Html5
{
    public partial class ShowTogo : System.Web.UI.Page
    {
        Points daltogo = new Points();
        EFoodSort dalsort = new EFoodSort();
        Foodinfo dalfood = new Foodinfo();
        ETogoOpinion dal = new ETogoOpinion();
        
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                int id = HjNetHelper.GetQueryInt("id", 0);
                GetTogoInfo();
                string pageurl = "ShowTogo.aspx?id=" + id;
                togourl.HRef = "shopdetail.aspx?id=" + id;

                if (SectionProxyData.GetSetValue(69).Trim() == "0")//判断是否允许游客自由下单
                {
                    if (UserHelp.GetUser() == null)
                    {
                        Response.Redirect("login.aspx?returnurl=" + Server.UrlEncode(Request.Url.ToString()));
                    }
                }

                if (WMPT.WebCommon.WebHelper.isActivityUnderWay(id)) //活动开启中,且是本商家,转到活动界面
                {
                    Response.Redirect("ShowActivity.aspx?id="+id);
                }

                IList<EFoodSortInfo> sortlist = dalsort.GetListByTogoNum(id);

                try
                {
                    int count = dal.GetCount("TogoID=" + id);
                    IList<ETogoOpinionInfo> infolist = dal.GetList(1000, 1, "TogoID=" + id, "PostTime", 1);
                    int ServiceGrade = 0;
                    int FlavorGrade = 0;
                    int SpeedGrade = 0;
                    int all = 0;
                    foreach (var item in infolist)
                    {
                        ServiceGrade += item.ServiceGrade;
                        FlavorGrade += item.FlavorGrade;
                        SpeedGrade += item.SpeedGrade;
                        all += 15;
                    }
后面还有 113 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。