コード例 #1
0
ファイル: cxXinshang.aspx.cs プロジェクト: yidane/51wine
 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();
         }
     }
 }
コード例 #2
0
        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();
            }
        }