Exemple #1
0
 private void ShowInfo(int _id)
 {
     Model.wx_wq_xiaoshou model = bll.GetModel(_id);
     this.txtHeadpic.Text      = model.headpic;
     this.imgHeadpic.ImageUrl  = model.headpic;
     this.txtName.Text         = model.Name;
     this.txtSort_id.Text      = model.sort_id.ToString();
     this.txtSummary.InnerText = model.remark;
     this.txtTelephone.Text    = model.telephone;
 }
Exemple #2
0
        private bool DoEdit(int _id)
        {
            Model.wx_userweixin  weixin = GetWeiXinCode();
            Model.wx_wq_xiaoshou model  = bll.GetModel(_id);
            bool result = false;

            model.headpic   = this.txtHeadpic.Text;
            model.Name      = this.txtName.Text;
            model.remark    = this.txtSummary.InnerText;
            model.sort_id   = MyCommFun.Str2Int(this.txtSort_id.Text);
            model.telephone = this.txtTelephone.Text;
            model.xsType    = this.ddlType.SelectedItem.Value;
            if (bll.Update(model))
            {
                AddAdminLog(MXEnums.ActionEnum.Edit.ToString(), "修改销售顾问id:" + model.Id); //记录日志
                result = true;
            }
            return(result);
        }
Exemple #3
0
        private bool DoAdd()
        {
            Model.wx_userweixin  weixin = GetWeiXinCode();
            Model.wx_wq_xiaoshou model  = new Model.wx_wq_xiaoshou();
            bool result = false;

            model.createdate = DateTime.Now;
            model.wid        = weixin.id;
            model.headpic    = this.txtHeadpic.Text;
            model.Name       = this.txtName.Text;
            model.remark     = this.txtSummary.InnerText;
            model.sort_id    = MyCommFun.Str2Int(this.txtSort_id.Text);
            model.telephone  = this.txtTelephone.Text;
            model.xsType     = this.ddlType.SelectedItem.Value;

            if (bll.Add(model) > 0)
            {
                AddAdminLog(MXEnums.ActionEnum.Add.ToString(), "添加销售顾问:" + model.Name); //记录日志
                result = true;
            }
            return(result);
        }