예제 #1
0
파일: SearchHeader.cs 프로젝트: ABTecheg/GL
 private void cb_AccountType_SelectedIndexChanged(object sender, EventArgs e)
 {
     SearchForGivenAccountNumber();
     if (cb_AccountType.Text == "<new>")
     {
         AccountTypes at = new AccountTypes();
         at.ShowDialog();
         cb_AccountType.Items.Clear();
         adaptertbAccountTypes.Fill(dbAccountingProjectDS.GLAccountTypes);
         cb_AccountType = GeneralFunctions.FillComboBox(dbAccountingProjectDS.GLAccountTypes, cb_AccountType, "AccountTypeName", "AccountTypeID");
     }
     if (cb_AccountType.Text == "Any Type")
     {
         //cb_AccountType.SelectedIndex = -1;
         SearchForGivenAccountNumber();
     }
 }
예제 #2
0
 private void cb_AccountType_SelectedIndexChanged(object sender, EventArgs e)
 {
     try
     {
         SearchForGivenAccountNumber();
         if (cb_AccountType.Text == "<new>")
         {
             AccountTypes at = new AccountTypes();
             at.ShowDialog();
             cb_AccountType.Items.Clear();
             adaptertbAccountTypes.Fill(dbAccountingProjectDS.GLAccountTypes);
             cb_AccountType = GeneralFunctions.FillComboBox(dbAccountingProjectDS.GLAccountTypes, cb_AccountType, "AccountTypeName", "AccountTypeID");
         }
         if (cb_AccountType.Text == "Any Type")
         {
             cb_AccountType.SelectedIndex = 0;
             SearchForGivenAccountNumber();
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message, "General Ledger");
     }
 }
예제 #3
0
파일: GLInterface.cs 프로젝트: ABTecheg/GL
        private void accountTypeToolStripMenuItem_Click(object sender, EventArgs e)
        {
            AccountTypes accountTypes = new AccountTypes();

            accountTypes.ShowDialog();
        }
예제 #4
0
        private void butAccountType_Click(object sender, EventArgs e)
        {
            AccountTypes accountstype = new AccountTypes();

            accountstype.ShowDialog();
        }