示例#1
0
 /// <summary>
 /// Function to fill accountledger combobox
 /// </summary>
 /// <param name="cmbAccountLedger"></param>
 public void AccountLedgerComboFill(ComboBox cmbAccountLedger)
 {
     try
     {
         cmbAccountLedger.Enabled = true;
         AccountLedgerSP spAccountLedger = new AccountLedgerSP();
         spAccountLedger.BillAllocationLedgerFill(cmbAccountLedger, cmbAccountGroup.Text, true);
     }
     catch (Exception ex)
     {
         formMDI.infoError.ErrorString = "BA3:" + ex.Message;
     }
 }
示例#2
0
 /// <summary>
 /// Function to fill accountledger combobox
 /// </summary>
 /// <param name="cmbAccountLedger"></param>
 public void AccountLedgerComboFill(ComboBox cmbAccountLedger)
 {
     try
     {
         cmbAccountLedger.Enabled = true;
         AccountLedgerSP spAccountLedger = new AccountLedgerSP();
         spAccountLedger.BillAllocationLedgerFill(cmbAccountLedger, cmbAccountGroup.Text, true);
     }
     catch (Exception ex)
     {
         MessageBox.Show("BA:03" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }
示例#3
0
        public List <DataTable> BillAllocationLedgerFill(ComboBox cmbAccountLedger, string strAccountGroup, bool isAll)
        {
            List <DataTable> ListObj = new List <DataTable>();

            try
            {
                ListObj = spAccountLedger.BillAllocationLedgerFill(cmbAccountLedger, strAccountGroup, isAll);
            }
            catch (Exception ex)
            {
                MessageBox.Show("AL27:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
            return(ListObj);
        }