private void cmsiEditProcess_Click(object sender, EventArgs e) { DlgEditBusinessProcess dlg = new DlgEditBusinessProcess(); dlg.Process = BusinessServcie.GetBusinessProcess(CurrProcess.ID); if (DialogResult.OK == dlg.ShowDialog()) { try { BusinessServcie.SaveBusinessProcess(dlg.Process); RefreshBusinessTree(); MainForm.INFO("编辑业务流程成功!"); } catch (Exception ex) { MainForm.ERROR("编辑业务流程失败!" + ex.Message); } } }
private void cmsiAddProcess_Click(object sender, EventArgs e) { SYS_BUSINESSPROCESS newProcess = new SYS_BUSINESSPROCESS(); newProcess.CREATETIME = DateTime.Now; newProcess.REF_BUSINESS_ID = CurrBusiness.ID; DlgEditBusinessProcess dlg = new DlgEditBusinessProcess(); dlg.Process = newProcess; if (DialogResult.OK == dlg.ShowDialog()) { try { BusinessServcie.SaveBusinessProcess(dlg.Process); RefreshBusinessTree(); MainForm.INFO("添加业务流程成功!"); } catch (Exception ex) { MainForm.ERROR("添加业务流程失败!" + ex.Message); } } }