protected void btnEdit_ServerClick(object sender, EventArgs e) { Model.WorkFlow workflows = new Model.WorkFlow { ID = id.Trim(), Name = this.txtName.Value.Trim(), URL = this.uploadurl.Value.Trim(), State = this.isState.Value.ToString(), Remark = this.txtReMark.Value.Trim(), }; if (((workflows.Name.Length == 0) || (workflows.URL.Length == 0)) || (workflows.State.Length == 0)) { MessageBox.Show(this, "请您填写完整的信息"); } else { if (BLL.WorkFlow.WorkFlowUpdate(workflows) == 1) { UserOperatingManager.InputUserOperating(this.Session["admin"].ToString(), "工作流管理", "编辑工作流" + workflows.Name + "的信息成功"); MessageBox.ShowAndRedirect(this, "编辑工作流成功,请继续分配权限!", "/workflow/AuthorizeWorkFlow.aspx?wid="+id); } else { UserOperatingManager.InputUserOperating(this.Session["admin"].ToString(), "工作流管理", "编辑工作流" + workflows.Name + "的信息失败"); MessageBox.Show(this, "编辑工作流失败"); } } }
protected void btnEdit_ServerClick(object sender, EventArgs e) { Model.WorkFlow workflows = new Model.WorkFlow { ID = id.Trim(), Name = this.txtName.Value.Trim(), URL = this.uploadurl.Value.Trim(), State = this.isState.Value.ToString(), Remark = this.txtReMark.Value.Trim(), }; if (((workflows.Name.Length == 0) || (workflows.URL.Length == 0)) || (workflows.State.Length == 0)) { MessageBox.Show(this, "请您填写完整的信息"); } else { if (BLL.WorkFlow.WorkFlowUpdate(workflows) == 1) { UserOperatingManager.InputUserOperating(this.Session["admin"].ToString(), "工作流管理", "编辑工作流" + workflows.Name + "的信息成功"); MessageBox.ShowAndRedirect(this, "编辑工作流成功,请继续分配权限!", "/workflow/AuthorizeWorkFlow.aspx?wid=" + id); } else { UserOperatingManager.InputUserOperating(this.Session["admin"].ToString(), "工作流管理", "编辑工作流" + workflows.Name + "的信息失败"); MessageBox.Show(this, "编辑工作流失败"); } } }
public static int WorkFlowAdd(Model.WorkFlow workinfo) { SqlParameter[] pars = new SqlParameter[] { new SqlParameter("@Name", SqlDbType.VarChar, 50), new SqlParameter("@URL", SqlDbType.VarChar, 100), new SqlParameter("@Remark", SqlDbType.VarChar, 255), new SqlParameter("@State", SqlDbType.Int) }; pars[0].Value = workinfo.Name; pars[1].Value = workinfo.URL; pars[2].Value = workinfo.Remark; pars[3].Value = workinfo.State; return(SqlHelper.ExecuteProcess("pro_WorkFlow_Add", pars)); }
public static int WorkFlowAdd(Model.WorkFlow workinfo) { return(DAL.WorkFlow.WorkFlowAdd(workinfo)); }
public static int WorkFlowUpdate(Model.WorkFlow workinfo) { return(DAL.WorkFlow.WorkFlowUpdate(workinfo)); }