Ejemplo n.º 1
0
 protected void btnSubmit_Click(object sender, EventArgs e)
 {
     if (bll.GetRecordCount("id>0") > 0)                               //修改
     {
         ChkAdminLevel("qc_qcwz", MXEnums.ActionEnum.Edit.ToString()); //检查权限
         Model.wx_userweixin weixin = GetWeiXinCode();
         id = bll.GetModelList("wid=" + weixin.id)[0].Id;
         if (!DoEdit(this.id))
         {
             JscriptMsg("保存过程中发生错误啦!", "", "Error");
             return;
         }
         JscriptMsg("修改信息成功!", "qcwzMgr.aspx", "Success");
     }
     else //添加
     {
         ChkAdminLevel("qc_qcwz", MXEnums.ActionEnum.Add.ToString()); //检查权限
         if (!DoAdd())
         {
             JscriptMsg("保存过程中发生错误啦!", "", "Error");
             return;
         }
         JscriptMsg("添加信息成功!", "qcwzMgr.aspx", "Success");
     }
 }
Ejemplo n.º 2
0
 protected void Page_Load(object sender, EventArgs e)
 {
     wid    = MXRequest.GetQueryInt("wid");
     openid = MyCommFun.RequestOpenid();
     if (!IsPostBack)
     {
         BLL.wx_wq_wzlx      wzBll = new BLL.wx_wq_wzlx();
         BLL.wx_albums_info  aiBll = new BLL.wx_albums_info();
         BLL.wx_albums_photo apBll = new BLL.wx_albums_photo();
         if (wzBll.GetRecordCount("wid=" + wid) > 0)
         {
             Model.wx_wq_wzlx     wzModel = wzBll.GetModelList("wid=" + wid)[0];
             Model.wx_albums_info aiModel = aiBll.GetModel(MyCommFun.Obj2Int(wzModel.pxcid));
             this.Title = aiModel.aName;
             this.rptList.DataSource = apBll.GetList(" aid=" + aiModel.id + " and wid=" + wid);
             this.rptList.DataBind();
         }
     }
 }