protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) { ChkAdminLevel("productlist", MXEnums.ActionEnum.View.ToString()); //检查权限 Model.wx_userweixin weixin = GetWeiXinCode(); TreeBind(); //绑定类别 IList <Model.wx_wq_wzlx> lxModle = bll.GetModelList("wid=" + weixin.id); if (lxModle != null && lxModle.Count > 0) //修改 { id = lxModle[0].Id; ShowInfo(this.id); } } }
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(); } } }
protected void Page_Load(object sender, EventArgs e) { wid = MXRequest.GetQueryInt("wid"); openid = MXRequest.GetQueryString("openid"); if (!IsPostBack) { BLL.wx_wq_wzlx wzBll = new BLL.wx_wq_wzlx(); Model.wx_wq_wzlx wzModel = wzBll.GetModelList("wid=" + wid)[0]; BLL.article_category acBll = new BLL.article_category(); DataTable ds = acBll.GetList(" wid=" + wid + " and id=" + wzModel.cxid); if (ds.Rows.Count > 0) { acModel = acBll.GetModel(MyCommFun.Obj2Int(wzModel.cxid)); } BLL.article aBll = new BLL.article(); this.rptList.DataSource = aBll.GetList(" category_id=" + acModel.id); this.rptList.DataBind(); } }