/// <summary>
 /// Function to fill AccountLedger combobox
 /// </summary>
 public void AccountLedgerComboFill()
 {
     try
     {
         List<DataTable> ListObj = new List<DataTable>();
         TransactionsGeneralFillBll obj = new TransactionsGeneralFillBll();
         ListObj = obj.AccountLedgerComboFill();
         DataRow dr = ListObj[0].NewRow();
         dr[0] = 0;
         dr[2] = "All";
         ListObj[0].Rows.InsertAt(dr, 0);
         cmbLedger.DataSource = ListObj[0];
         cmbLedger.ValueMember = "ledgerId";
         cmbLedger.DisplayMember = "ledgerName";
         cmbLedger.SelectedIndex = 0;
     }
     catch (Exception ex)
     {
         MessageBox.Show("RRP3:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }
 /// <summary>
 /// Account ledger combofill
 /// </summary>
 public void AccountLedgerComboFill()
 {
     try
     {
         List<DataTable> ListObj = new List<DataTable>();
         TransactionsGeneralFillBll obj = new TransactionsGeneralFillBll();
         ListObj = obj.AccountLedgerComboFill();
         DataRow dr = ListObj[0].NewRow();
         dr["ledgerId"] = "0";
         dr["ledgerName"] = string.Empty;
         ListObj[0].Rows.InsertAt(dr, 0);
         dgvcmbAccountLedger.DataSource = ListObj[0];
         dgvcmbAccountLedger.ValueMember = "ledgerId";
         dgvcmbAccountLedger.DisplayMember = "ledgerName";
     }
     catch (Exception ex)
     {
         MessageBox.Show("PV31:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }