public void Bind() { int ID = Convert.ToInt32(Request.QueryString["id"]); WebModels.Tbl_FlowFormWord word = WebBLL.Tbl_FlowFormWordManager.GetTbl_FlowFormWordById(ID); this.IFW_Name.Value = word.IFW_Name; }
protected void btn_submit_Click(object sender, EventArgs e) { WebModels.Tbl_FlowFormWord word = new WebModels.Tbl_FlowFormWord(); word.FlowFormID = 0; word.IFW_Name = this.IFW_Name.Value; word.DealUser = WebCommon.Public.GetUserName(); int count = WebBLL.Tbl_FlowFormWordManager.AddTbl_FlowFormWord(word); if (count > 0) { ScriptManager.RegisterStartupScript(this, this.GetType(), "message", "alert('添加成功!');window.external.reload();window.external.close();", true); } else { ScriptManager.RegisterStartupScript(this, this.GetType(), "message", "alert('添加失败!');", true); } }
protected void btn_submit_Click(object sender, EventArgs e) { int ID = Convert.ToInt32(Request.QueryString["id"]); WebModels.Tbl_FlowFormWord word = WebBLL.Tbl_FlowFormWordManager.GetTbl_FlowFormWordById(ID); word.IFW_Name = this.IFW_Name.Value; int count = WebBLL.Tbl_FlowFormWordManager.UpdateTbl_FlowFormWord(word); if (count > 0) { ScriptManager.RegisterStartupScript(this, this.GetType(), "message", "alert('修改成功!');window.external.close();window.external.reload();", true); } else { ScriptManager.RegisterStartupScript(this, this.GetType(), "message", "alert('修改失败!');", true); } }