Esempio n. 1
0
        //private void txtCategoryId_Leave(object sender, EventArgs e)
        //{
        //    if (!string.IsNullOrEmpty(txtBACId.Text))
        //    {
        //        BankAccountId = Product.GetProductCategoryIdByCode(Convert.ToInt32(txtBACId.Text));
        //        if (BankAccountId > 0)
        //        {
        //            LoadProductCategory(BankAccountId);
        //        }
        //    }
        //}

        private void txtBACId_TextChanged(object sender, EventArgs e)
        {
            if (!string.IsNullOrEmpty(txtCode.Text))
            {
                BankAccountId = manageBank.GetBankACIdByCode(txtCode.Text);
                if (BankAccountId > 0)
                {
                    LoadBankAccount(BankAccountId);
                }
            }
        }
Esempio n. 2
0
 private void txtBankAccountCode_TextChanged(object sender, EventArgs e)
 {
     if (!string.IsNullOrEmpty(txtBankAccountCode.Text))
     {
         BankManager manageBank = new BankManager();
         BankACId = manageBank.GetBankACIdByCode(txtBankAccountCode.Text);
         if (BankACId > 0)
         {
             LoadBankAccount(BankACId);
         }
     }
     else
     {
         txtBACTitle.Text = string.Empty;
     }
 }