Exemplo n.º 1
0
        }//----------------

        //##################################END BUTTON btnCreate EVENTS######################################################

        //##################################BUTTON btnSearchChartOfAccount EVENTS######################################################
        //event is raised when the control is clicked
        private void btnSearchChartOfAccountClick(object sender, EventArgs e)
        {
            using (ChartOfAccountsSearchedOnTextBoxList frmSearch = new ChartOfAccountsSearchedOnTextBoxList(_userInfo, _chartOfAccountManager, true))
            {
                frmSearch.AdoptGridSize = false;
                frmSearch.ShowDialog(this);

                if (frmSearch.HasUpdate)
                {
                    this.InitializeChartOfAccountView(false);
                }
            }
        }//----------------
Exemplo n.º 2
0
        }//--------------

        //##################################END RADIOBUTTON rdbNoActiveAccount EVENTS##########################################################

        //##################################BUTTON btnSearchSummaryAccount EVENTS##########################################################
        //event is raised when the control is clicked
        private void btnSearchSummaryAccountClick(object sender, EventArgs e)
        {
            using (ChartOfAccountsSearchedOnTextBoxList frmSearch = new ChartOfAccountsSearchedOnTextBoxList(_userInfo, _chartOfAccountManager, false))
            {
                frmSearch.AdoptGridSize = false;
                frmSearch.ShowDialog(this);

                if (frmSearch.HasSelected)
                {
                    _chartOfAccountInfo.SummaryAccount = _chartOfAccountManager.GetDetailsSummaryOfAccount(frmSearch.PrimaryId);

                    this.txtSummaryAccount.Text = _chartOfAccountInfo.SummaryAccount.AccountCode + "  (" + _chartOfAccountInfo.SummaryAccount.AccountName + ")";

                    this.AssignControlValues();
                }
            }
        }//-------------------