Beispiel #1
0
 private void ShowInfo(int _id)
 {
     Model.wx_wq_wzlx model = bll.GetModel(_id);
     this.ddlEsc.SelectedValue  = model.escid.ToString();
     this.ddlLbs.SelectedValue  = model.lbsid.ToString();
     this.ddlPpxc.SelectedValue = model.pxcid.ToString();
     this.ddlZxyh.SelectedValue = model.yhid.ToString();
     this.ddlZxcx.SelectedValue = model.cxid.ToString();
 }
Beispiel #2
0
        private bool DoEdit(int _id)
        {
            Model.wx_userweixin weixin = GetWeiXinCode();
            Model.wx_wq_wzlx    model  = bll.GetModel(_id);
            bool result = false;

            model.yhid  = MyCommFun.Str2Int(this.ddlZxyh.SelectedItem.Value);
            model.lbsid = MyCommFun.Str2Int(this.ddlLbs.SelectedItem.Value);
            model.pxcid = MyCommFun.Str2Int(this.ddlPpxc.SelectedItem.Value);
            model.escid = MyCommFun.Str2Int(this.ddlEsc.SelectedItem.Value);
            model.cxid  = MyCommFun.Str2Int(this.ddlZxcx.SelectedItem.Value);
            if (bll.Update(model))
            {
                AddAdminLog(MXEnums.ActionEnum.Edit.ToString(), "修改汽车文章类型id:" + model.Id); //记录日志
                result = true;
            }
            return(result);
        }
Beispiel #3
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();
         }
     }
 }
Beispiel #4
0
        private bool DoAdd()
        {
            Model.wx_userweixin weixin = GetWeiXinCode();
            Model.wx_wq_wzlx    model  = new Model.wx_wq_wzlx();
            bool result = false;

            model.yhid       = MyCommFun.Str2Int(this.ddlZxyh.SelectedItem.Value);
            model.lbsid      = MyCommFun.Str2Int(this.ddlLbs.SelectedItem.Value);
            model.pxcid      = MyCommFun.Str2Int(this.ddlPpxc.SelectedItem.Value);
            model.escid      = MyCommFun.Str2Int(this.ddlEsc.SelectedItem.Value);
            model.cxid       = MyCommFun.Str2Int(this.ddlZxcx.SelectedItem.Value);
            model.wid        = weixin.id;
            model.createdate = DateTime.Now;
            model.sort_id    = 99;
            if (bll.Add(model) > 0)
            {
                AddAdminLog(MXEnums.ActionEnum.Add.ToString(), "添加汽车文章类型信息"); //记录日志
                result = true;
            }
            return(result);
        }
Beispiel #5
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();
            }
        }