Esempio n. 1
0
 internal bool Edit_OrganisationAccount()
 {
     SQLTable tbl_OrganisationAccount = new SQLTable(DBSync.DBSync.DB_for_Tangenta.m_DBTables.GetTable(typeof(OrganisationAccount)));
     Form_OrganisationAccount_Edit edt_Item_dlg = new Form_OrganisationAccount_Edit(DBSync.DBSync.DB_for_Tangenta.m_DBTables,
                                                                 tbl_OrganisationAccount,
                                                     " OrganisationAccount_$_org_$$Name desc",nav);
     edt_Item_dlg.ShowDialog();
     Init();
     return true;
 }
        private void Select_MyOrgBankAccount()
        {
            NavigationButtons.Navigation xnav = new NavigationButtons.Navigation();
            xnav.bDoModal = true;
            xnav.m_eButtons = NavigationButtons.Navigation.eButtons.OkCancel;
            SQLTable tbl_OrganisationAccount = new SQLTable(DBSync.DBSync.DB_for_Tangenta.m_DBTables.GetTable(typeof(OrganisationAccount)));
            Form_OrganisationAccount_Edit edt_Item_dlg = new Form_OrganisationAccount_Edit(DBSync.DBSync.DB_for_Tangenta.m_DBTables,
                                                                        tbl_OrganisationAccount,
                                                                        " OrganisationAccount_$_org_$$Name desc", xnav);
            if (edt_Item_dlg.ShowDialog(this) == DialogResult.Yes)
            {
                if (this.m_AddOnDI.m_MethodOfPayment == null)
                {
                    this.m_AddOnDI.m_MethodOfPayment = new DocInvoice_AddOn.MethodOfPayment();

                }
                this.m_AddOnDI.m_MethodOfPayment.eType = GlobalData.ePaymentType.BANK_ACCOUNT_TRANSFER;
                this.m_AddOnDI.m_MethodOfPayment.BankAccount_ID = edt_Item_dlg.BankAccount_ID;
                this.m_AddOnDI.m_MethodOfPayment.BankName = edt_Item_dlg.BankName;
                this.m_AddOnDI.m_MethodOfPayment.Bank_Tax_ID = edt_Item_dlg.Bank_Tax_ID;
                this.m_AddOnDI.m_MethodOfPayment.Bank_Registration_ID = edt_Item_dlg.Bank_Registration_ID;
                this.m_AddOnDI.m_MethodOfPayment.BankAccount = edt_Item_dlg.TRR;
                this.txt_BankAccount.Text = SetBankAccountText();
            }
        }