Exemplo n.º 1
0
 public void showInfo(int _id)
 {
     Model.wx_mz_magazine model = bll.GetModel(_id);
     this.txtCleanimg.Text         = model.cleanimg;
     this.txtCoverImg.Text         = model.coverimg;
     this.txtFootimg.Text          = model.footimg;
     this.txtGroundmusic.Text      = model.backmusic;
     this.txtName.Text             = model.mname;
     this.txtRemark.InnerText      = model.mremark;
     this.txtSortId.Text           = model.sort_id.ToString();
     this.txtUrl.Text              = model.footurl;
     this.needMusic.SelectedValue  = model.isbackmusic == "1" ? "1" : "2";
     this.needRepeat.SelectedValue = model.isrepeat == "1" ? "1" : "2";
 }
Exemplo n.º 2
0
        private bool DoEdit(int _id)
        {
            bool result = false;

            Model.wx_mz_magazine model = bll.GetModel(_id);
            model.isbackmusic = this.needMusic.SelectedItem.Value;
            model.isrepeat    = this.needRepeat.SelectedItem.Value;
            model.mname       = this.txtName.Text;
            model.mremark     = this.txtRemark.InnerText;
            model.sort_id     = MyCommFun.Str2Int(this.txtSortId.Text);
            model.footurl     = this.txtUrl.Text;
            model.footimg     = this.txtFootimg.Text;
            model.coverimg    = this.txtCoverImg.Text;
            model.cleanimg    = this.txtCleanimg.Text;
            model.backmusic   = this.txtGroundmusic.Text;

            if (bll.Update(model))
            {
                AddAdminLog(MXEnums.ActionEnum.Edit.ToString(), "微网站修改海报内容:" + model.mname); //记录日志
                result = true;
            }
            return(result);
        }
Exemplo n.º 3
0
 void showInfo()
 {
     BLL.wx_mz_magazine   mBll   = new BLL.wx_mz_magazine();
     Model.wx_mz_magazine mModel = mBll.GetModel(mid);
     this.Title = mModel.mname;
     fristImg   = mModel.coverimg;
     lastImg    = mModel.footimg;
     cleanImg   = mModel.cleanimg;
     linkurl    = mModel.footurl;
     ckRepeat   = mModel.isrepeat;
     if (ckRepeat == "1")
     {
         ckRepeat = "true";
     }
     else
     {
         ckRepeat = "false";
     }
     ckMusic = mModel.isbackmusic;
     if (ckMusic == "1")
     {
         groundMusic = mModel.backmusic;
     }
 }