Exemplo n.º 1
0
        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");
        }
Exemplo n.º 2
0
        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, "操作成功");
        }