コード例 #1
0
        protected void btnSave_Click(Object Sender, EventArgs e)
        {
            oServiceEditor.DeleteConfigs(intNextService, 0);    // Since inheriting fields, delete all service request controls

            oServiceEditor.DeleteConfigWorkflows(intService, intNextService);
            foreach (RepeaterItem ri in rptView.Items)
            {
                CheckBox chkInclude = (CheckBox)ri.FindControl("chkInclude");
                if (chkInclude.Checked == true)
                {
                    CheckBox chkEditable = (CheckBox)ri.FindControl("chkEditable");
                    oServiceEditor.AddConfigWorkflow(intService, intNextService, Int32.Parse(chkInclude.ToolTip), (chkEditable.Checked ? 1 : 0));
                }
            }
            oServiceEditor.AlterTable(intNextService);
            Response.Redirect(Request.Path + "?serviceid=" + intService.ToString() + "&nextservice=" + intNextService.ToString() + "&saved=true");
        }