protected void btnSave_Click(object sender, EventArgs e) { ProcessRuleBLL bll = new ProcessRuleBLL(); bool ret = bll.InsertFormula(ddlProcessType.SelectedValue, ddlGroup.SelectedValue, txtExpression.Text.Replace(" ", "").Replace("AND", "*").Replace("OR", "+").Replace("NOT", "-")); if (ret) { MessageBox.Show(this.Page, "操作成功"); } else { MessageBox.Show(this.Page, "操作失败"); } }