Beispiel #1
0
        private void btnAddNewCustomer_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {

            if (!MspTool.PermissionControl(AppMain.User.username, SecRightType.Insert, (int)DocumentType.MusteriList, AppMain.CompanyRecId)) return;

            frmCustomerEdit frm = new frmCustomerEdit();
            frm._FormOpenType = Msp.Infrastructure.FormOpenType.New;
            frm.Show(0);
        }
Beispiel #2
0
        public void do_Edit()
        {
            if (!MspTool.PermissionControl(AppMain.User.username, SecRightType.Update, (int)DocumentType.MusteriList, AppMain.CompanyRecId)) return;
            CustomersDTO Orow = (CustomersDTO)gcvCustomers.GetFocusedRow();
            if (Orow != null)
            {
                frmCustomerEdit frm = new frmCustomerEdit();
                frm._FormOpenType = Infrastructure.FormOpenType.Edit;
                frm.Show(Orow.id);

            }




        }