public List<DataTable> BankOrCashComboFill(bool isAll)
 {
     List<DataTable> listObj = new List<DataTable>();
     TransactionsGeneralFillSP spTransactionGeneralFill = new TransactionsGeneralFillSP();
     try
     {
         listObj = spTransactionGeneralFill.BankOrCashComboFill(isAll);
     }
     catch (Exception ex)
     {
         MessageBox.Show("TGFBll:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
     return listObj;
 }
 public List<DataTable> AreaViewAll(ComboBox cmbSize, bool isAll)
 {
     List<DataTable> listObj = new List<DataTable>();
     TransactionsGeneralFillSP spTransactionGeneralFill = new TransactionsGeneralFillSP();
     try
     {
         listObj = spTransactionGeneralFill.AreaViewAll(cmbSize, isAll);
     }
     catch (Exception ex)
     {
         MessageBox.Show("TGFBll:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
     return listObj;
 }
 public string VoucherNumberAutomaicGeneration(decimal VoucherTypeId, decimal txtBox, DateTime date, string tableName)
 {
     TransactionsGeneralFillSP spTransactionGeneralFill = new TransactionsGeneralFillSP();
     string strVoucherNo = string.Empty;
     try
     {
         strVoucherNo = spTransactionGeneralFill.VoucherNumberAutomaicGeneration(VoucherTypeId, txtBox, date, tableName);
     }
     catch (Exception ex)
     {
         MessageBox.Show("TGFBll:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
     return strVoucherNo;
 }
 public List<DataTable> UnitViewAllByProductId(DataGridView dgvCurrent, string strProductId, int inRowIndex)
 {
     List<DataTable> listObj = new List<DataTable>();
     TransactionsGeneralFillSP spTransactionGeneralFill = new TransactionsGeneralFillSP();
     try
     {
         listObj = spTransactionGeneralFill.UnitViewAllByProductId(dgvCurrent, strProductId, inRowIndex);
     }
     catch (Exception ex)
     {
         MessageBox.Show("TGFBll:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
     return listObj;
 }
 public bool TaxStatus()
 {
     bool isTrue = false;
     TransactionsGeneralFillSP spTransactionGeneralFill = new TransactionsGeneralFillSP();
     try
     {
         isTrue = spTransactionGeneralFill.TaxStatus();
     }
     catch (Exception ex)
     {
         MessageBox.Show("TGFBll:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
     return isTrue;
 }
 public void SalesAccountComboFill(ComboBox cmbSalesAccount, bool isAll)
 {
     TransactionsGeneralFillSP spTransactionGeneralFill = new TransactionsGeneralFillSP();
     try
     {
         spTransactionGeneralFill.SalesAccountComboFill(cmbSalesAccount, isAll);
     }
     catch (Exception ex)
     {
         MessageBox.Show("TGFBll:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }
 public List<DataTable> CurrencyComboByDate(DateTime date)
 {
     List<DataTable> listObj = new List<DataTable>();
     TransactionsGeneralFillSP spTransactionGeneralFill = new TransactionsGeneralFillSP();
     try
     {
         listObj=spTransactionGeneralFill.CurrencyComboByDate(date);
     }
     catch (Exception ex)
     {
         MessageBox.Show("TGFBll:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
     return listObj;
 }
 public void CashOrPartyUnderSundryDrComboFill(ComboBox cmbCashOrParty, bool isAll)
 {
     DataTable dtblCashOrParty = new DataTable();
     TransactionsGeneralFillSP spTransactionGeneralFill = new TransactionsGeneralFillSP();
     try
     {
         spTransactionGeneralFill.CashOrPartyUnderSundryDrComboFill(cmbCashOrParty, isAll);
     }
     catch (Exception ex)
     {
         MessageBox.Show("TGFBll:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }