Esempio n. 1
0
 /// <summary>
 /// 获得文章详细信息
 /// </summary>
 protected void GetMsgSupInfo()
 {
     model = bll.GetModel(this._id);
     if (model != null)
     {
         this.txtTitle.Text = model.supplierName;
         if (!string.IsNullOrEmpty(model.flag))
         {
             this.ddlParentCategory.Items.FindByValue(model.flag).Selected = true;
         }
         this.txtKey.Text     = model.accessKeyID;
         this.txtSecret.Text  = model.accessKeySecret;
         this.txtSmsSign.Text = model.smsSign;
         this.txtSort.Text    = model.sort.ToString();
         //this.txtSort.Text = model.Sort.ToString();
         //this.ddlParentCategory.SelectedValue = model.ParentCategoryId.ToString();
         //this.txtAddDate.Text = Convert.ToDateTime(model.AddedDate).ToString("yyyy-MM-dd");
     }
 }
Esempio n. 2
0
 protected void FillFeild()
 {
     if (_id != "0")
     {
         model            = bll.GetModel(this._id);
         model.supplierId = this._id;
     }
     else
     {
         model.supplierId = IdCreator.CreateId("T_ShortMessage_Supplier", "supplierId");
         model.isUse      = 0;
         model.isDefault  = 0;
     }
     model.flag            = this.ddlParentCategory.SelectedValue;
     model.supplierName    = KillSqlIn.Form_ReplaceByString(Request.Form["txtTitle"], 200);
     model.accessKeyID     = KillSqlIn.Form_ReplaceByString(Request.Form["txtKey"], 200);
     model.accessKeySecret = KillSqlIn.Form_ReplaceByString(Request.Form["txtSecret"], 200);
     model.smsSign         = KillSqlIn.Form_ReplaceByString(Request.Form["txtSmsSign"], 200);
     model.sort            = int.Parse(KillSqlIn.Form_ReplaceByString(Request.Form["txtSort"], int.MaxValue));
 }