Ejemplo n.º 1
0
        private void btnBankEntryAdd_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            if (!MspTool.PermissionControl(AppMain.User.username, SecRightType.Insert, (int)DocumentType.BankEntry, AppMain.CompanyRecId))
            {
                return;
            }
            frmBankEntryEdit frm = new frmBankEntryEdit();

            frm._FormOpenType = Msp.Infrastructure.FormOpenType.New;
            frm.Show(0);
        }
Ejemplo n.º 2
0
        public void do_Edit()
        {
            if (!MspTool.PermissionControl(AppMain.User.username, SecRightType.Update, (int)DocumentType.BankEntry, AppMain.CompanyRecId))
            {
                return;
            }
            BankEntryDTO Orow = (BankEntryDTO)gcv_BankEntry.GetFocusedRow();

            if (Orow != null)
            {
                frmBankEntryEdit frm = new frmBankEntryEdit();
                frm._FormOpenType = Infrastructure.FormOpenType.Edit;
                frm.Show(Orow.bid);
            }
        }