示例#1
0
 public void SetValue()
 {
     hsid.Value = Request.Params["sid"].Trim();
     Model.application_form afModel = new BLL.application_form().GetModel(int.Parse(hsid.Value));
     flow_ddl.SelectedValue = afModel.fm_sid;
     flow_name.Text         = afModel.af_name;
     this.Label1.Text       = Server.HtmlDecode(afModel.af_content);
     if (afModel.rfs_sid == 1)
     {
         isVal.Checked = false;
     }
     else
     {
         isVal.Checked = true;
     }
     remark.Text = afModel.remark;
     tempContent = this.Label1.Text;
 }
示例#2
0
        public string Update(HttpContext context)
        {
            string sid = context.Request.Params["sid"].Trim();

            Model.application_form model = new BLL.application_form().GetModel(int.Parse(sid));
            string fmsid     = context.Request.Params["fmsid"].Trim();
            string flow_name = context.Request.Params["flow_name"].Trim();
            string rfsid     = context.Request.Params["rfsid"].Trim();
            string remark    = context.Request.Params["remark"].Trim();
            string isval     = context.Request.Params["isval"].Trim();
            string content   = context.Server.HtmlEncode(context.Request.Params["content1"].Trim());

            model.fm_sid     = fmsid;
            model.af_name    = flow_name;
            model.remark     = remark;
            model.rfs_sid    = int.Parse(isval);
            model.af_content = content;
            return(new BLL.application_form().update(model));
        }