Ejemplo n.º 1
0
        private void DisplayExtData(string AccNo)
        {
            AccountType.AccountCreationDataType _Savedata = new AccountType.AccountCreationDataType();
            string respond = MyAccount.GetExistAccountCreation(AccNo, out _Savedata);

            InitializeScreen();
            ComboboxItem cmb = new ComboboxItem();

            if (respond == "True")
            {
                txtAccID.Text = _Savedata.AccountID.ToString();
                txtAccountDescription.Text = _Savedata.AccountName;
                cmbAccountType.Text        = cmb.GetReleventTextFromID(cmbAccountType, _Savedata.MainAccType.ToString(), true);
                if (_Savedata.IsSubAccount == 1)
                {
                    chkIsSubaccount.CheckState = CheckState.Checked;
                    cmbMainAccount.Text        = cmb.GetReleventTextFromID(cmbMainAccount, _Savedata.MainAccountID.ToString(), true);
                }
                else
                {
                    chkIsSubaccount.CheckState = CheckState.Unchecked;
                }
                cmbCurrenyType.Text   = cmb.GetReleventTextFromID(cmbCurrenyType, _Savedata.Currency, true);
                cmbBankAccountNo.Text = _Savedata.BankAccountNo;
                cmbAccStatus.Text     = cmb.GetReleventTextFromID(cmbAccStatus, _Savedata.AccountStatus.ToString(), true);
            }
        }