コード例 #1
0
        protected void btnAdd_Click(Object Sender, EventArgs e)
        {
            if (intID == 0)
            {
                intID = oServiceEditor.AddWorkflowCondition(txtName.Text, intService, intNextService, (chkEnabled.Checked ? 1 : 0));
            }
            else
            {
                oServiceEditor.UpdateWorkflowCondition(intID, txtName.Text, (chkEnabled.Checked ? 1 : 0));
            }

            oServiceEditor.DeleteWorkflowConditionValue(intID);
            foreach (TreeNode oNode in treConditional.Nodes)
            {
                foreach (TreeNode oChild in oNode.ChildNodes)
                {
                    if (oChild.Checked == true)
                    {
                        oServiceEditor.AddWorkflowConditionValue(intID, Int32.Parse(oChild.Value));
                    }
                }
            }
            Response.Redirect(Request.Path + "?serviceid=" + intService.ToString() + "&nextservice=" + intNextService.ToString() + "&saved=true");
        }