Beispiel #1
0
        private void LoadToCombo()
        {
            MyAccount.GetAccountListByCat(Program.AccountStatic.CompanyID, cmbFromAcc, 1);
            MyCommon.LoadStatusComboAccount(cmbPayMethod, 2);
            MyCommon.LoadStatusComboAccount(cmbPayFor, 3);
            MyCommon.LoadStatusComboAccount(cmbStatus, 4);

            LoadExtPaymentList();
        }
Beispiel #2
0
        private void cmbSearchAccType_SelectedIndexChanged(object sender, EventArgs e)
        {
            ComboboxItem cmb   = new ComboboxItem();
            string       CatID = cmb.GetReleventTextFromID(cmbSearchAccType, cmbSearchAccType.Text, false);
            DataTable    tb    = MyAccount.GetAccountListByCat(Program.AccountStatic.CompanyID, 1, int.Parse(CatID));

            MyCommon.LoadDatatoTableWithoutBind(dgvAccountList, tb, "Load Account List");
        }
Beispiel #3
0
        private void cmbRptType_SelectedIndexChanged(object sender, EventArgs e)
        {
            string rptid1 = MyCommon.GetSelectedID(cmbRptType, true);
            int    rptid  = int.Parse(rptid1);

            switch (rptid)
            {
            case 1:
                MyAccount.GetAccountListByCat(Program.AccountStatic.CompanyID, cmbPara3, 0);
                break;

            case 4:
                MyAccount.GetAccountListByCat(Program.AccountStatic.CompanyID, cmbPara3, 0);
                break;

            default:
                break;
            }
        }