private void cmsiEditForm_Click(object sender, EventArgs e) { DlgEditBusinessForm dlg = new DlgEditBusinessForm(); dlg.Form = BusinessServcie.GetBusinessForm(CurrForm.ID); if (DialogResult.OK == dlg.ShowDialog()) { try { BusinessServcie.SaveBusinessForm(dlg.Form); RefreshBusinessTree(); MainForm.INFO("编辑业务表单成功!"); } catch (Exception ex) { MainForm.ERROR("编辑业务表单失败!" + ex.Message); } } }
private void cmsiAddForm_Click(object sender, EventArgs e) { SYS_BUSINESSFORM newForm = new SYS_BUSINESSFORM(); newForm.CREATETIME = DateTime.Now; newForm.REF_BUSINESS_ID = CurrBusiness.ID; DlgEditBusinessForm dlg = new DlgEditBusinessForm(); dlg.Form = newForm; if (DialogResult.OK == dlg.ShowDialog()) { try { BusinessServcie.SaveBusinessForm(dlg.Form); RefreshBusinessTree(); MainForm.INFO("添加业务表单成功!"); } catch (Exception ex) { MainForm.ERROR("添加业务表单失败!" + ex.Message); } } }