bool frm_CommonProcessSubmit(CustomFlowForm form, string advise) { if (Form_CommonProcessSubmit != null) { return(Form_CommonProcessSubmit(form, advise)); } return(true); }
/// <summary> /// 构造函数 /// </summary> /// <param name="billType">单据类型</param> /// <param name="billNo">单据号</param> /// <param name="loadPanel">界面对象</param> /// <param name="flowInfo">流程信息,仅对自定义</param> /// <param name="flowMagic">流程逻辑,仅对自定义</param> /// <param name="operationMode">操作类型</param> public FormCommonProcess(CE_BillTypeEnum billType, string version, CustomFlowForm form, CE_OperatorMode operationMode) { InitializeComponent(); m_customForm = form; m_billType = billType; m_operationMode = operationMode; m_FlowBusinessVersion = version; m_customForm.FormBorderStyle = FormBorderStyle.None; m_customForm.TopLevel = false; m_customForm.Show(); m_customForm.Parent = panel6; m_customForm.Dock = DockStyle.Fill; m_customForm.AutoScroll = true; }
private void btnAdd_Click(object sender, EventArgs e) { object obj = Activator.CreateInstance(_Type_DetailForm); CustomFlowForm customFrm = obj as CustomFlowForm; customFrm.FlowInfo_BillNo = m_billNoControl.GetNewBillNo(); FormCommonProcess frm = new FormCommonProcess(_Enum_BillType, cmbVersion.Text, customFrm, CE_OperatorMode.添加); frm.CommonProcessSubmit += new FormCommonProcess.FormSubmit(frm_CommonProcessSubmit); m_operationType = CE_FlowOperationType.未知; if (frm.ShowDialog() != DialogResult.OK) { m_billNoControl.CancelBill(GetFlowInfo_BillNo(obj)); } else { SendMessage(); } RefreshData(tabControl1.SelectedTab); PositioningRecord(GetFlowInfo_BillNo(obj)); }