Ejemplo n.º 1
0
        public void FillControls()
        {
            try
            {
                AccountLedgerSP   spAccountLedger   = new AccountLedgerSP();
                AccountLedgerInfo accountLedgerInfo = new AccountLedgerInfo();
                accountLedgerInfo            = spAccountLedger.AccountLedgerViewOne(ledgerId);
                txtLedgerName.Text           = accountLedgerInfo.LedgerName;
                cmbGroup.SelectedValue       = accountLedgerInfo.AccountGroupId;
                txtOpeningBalance.Text       = Convert.ToString(accountLedgerInfo.OpeningBalance);
                cmbOpeningBalanceCrOrDr.Text = accountLedgerInfo.CrOrDr;
                if (accountLedgerInfo.Active)
                {
                    chkactive.Checked = true;
                }

                else
                {
                    chkactive.Checked = false;
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
        }