Exemplo n.º 1
0
        private void csmiEditBusiness_Click(object sender, EventArgs e)
        {
            DlgEditBusiness dlg = new DlgEditBusiness();

            //CurrBusiness = treeBusiness.SelectedNode.Tag as SYS_BUSINESS;
            dlg.Business = BusinessServcie.Business(CurrBusiness.ID);
            if (DialogResult.OK == dlg.ShowDialog())
            {
                BusinessServcie.SaveBusiness(dlg.Business);
                RefreshBusinessTree();
            }
        }
Exemplo n.º 2
0
        private void cmsiAddBusiness_Click(object sender, EventArgs e)
        {
            DlgEditBusiness dlg = new DlgEditBusiness();

            //SYS_BUSINESSGROUP group = treeBusiness.SelectedNode.Tag as SYS_BUSINESSGROUP;

            dlg.Business = new SYS_BUSINESS();
            dlg.Business.REF_GROUP_ID = CurrBusinessGroup.ID;
            dlg.Business.CREATETIME   = DateTime.Now;

            if (DialogResult.OK == dlg.ShowDialog())
            {
                BusinessServcie.SaveBusiness(dlg.Business);
                RefreshBusinessTree();
            }
        }