protected void btnSave_Click(object sender, EventArgs e) { BindRuleTable(); string xml = CreateRuleXML(); ProcessRuleBLL bll = new ProcessRuleBLL(); string ruleTableName = "Tb_" + txtGroup.Text; bll.InsertApproveRule(xml, txtRequestSPName.Text, ruleTableName, txtGroup.Text, ddlProcessType.SelectedValue); MessageBox.ShowAndClose(this.Page, "操作成功", "/Admin/ApproveRuleManage.aspx"); }
protected void btnSave_Click(object sender, EventArgs e) { BindRuleTable(); string xml = CreateRuleXML(); ProcessRuleBLL bll = new ProcessRuleBLL(); bll.InsertApproveRule(xml, txtRequestSPName.Text, txtRuleTableName.Text, txtGroup.Text, ddlProcessType.SelectedValue); //重新绑定 BindProcessType(); BindGroup(); txtGroup.Text = string.Empty; txtRequestSPName.Text = string.Empty; txtRuleTableName.Text = string.Empty; MessageBox.Show(this.Page, "操作成功"); }