Web/shop/paisong.aspx.cs

(完整代码) 1KB

/*********************************************************************
 * CopyRight (c) 2009-2010 HangJing Teconology. All Rights Reserved.
 TogoHome_paisong
 * Function : 
 *  at 2010-12-29 11:31:04.
 
*********************************************************************/
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

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

public partial class TogoHome_paisong : System.Web.UI.Page
{
    Points dal = new Points();
    protected void Page_Load(object sender, EventArgs e)
    {
        UserHelp.IsLogin_Togo(Request.Url.PathAndQuery);
        if (!Page.IsPostBack)
        {
            PointsInfo info = dal.GetModel(UserHelp.GetUser_Togo().Unid);
            WebUtility.SetDDLCity(DDLArea);

            WebUtility.SelectValue(DDLArea, info.cityid.ToString());

            if (info.EBuilding != "")
            {
                string tempbid = WebUtility.OpBuildstr(info.EBuilding);
                hfids.Text = tempbid;
                this.tbBuilding.InnerHtml = new WMPT.SQLServerDAL.EBuilding().GetNameList(tempbid);
            }

            rptSectinList.DataSource = SectionProxyData.GetSectionList().Where(p => p.cityid == info.cityid);
            rptSectinList.DataBind();
        }
    }

    protected void btSave_Click(object sender, EventArgs e)
    {
        int count = dal.UpdateValue("EBuilding", WebUtility.GetStrAdd(WebUtility.OpBuildstr(hfids.Text.Trim())), " where Unid = " + UserHelp.GetUser_Togo().Unid);
        if (count > 0)
        {
            AlertScript.RegScript(this.Page, UpdatePanel1, "alert('操作成功','success','true',5);getbuild(1, -1, -1, -1, 1, -1, 1);");
        }
        else
        {
            AlertScript.RegScript(this.Page, UpdatePanel1, "alert('操作失败','error','true',5);getbuild(1, -1, -1, -1, 1, -1, 1);");
        }
    }

}

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

AI 解读 AI

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

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