/// <summary>
 /// Function to fill Cash/Party combobox
 /// </summary>
 public void CashOrPartyComboFill()
 {
     try
     {
         TransactionsGeneralFillBll TransactionGeneralFillObj = new TransactionsGeneralFillBll();
         TransactionGeneralFillObj.CashOrPartyUnderSundryDrComboFill(cmbCashOrParty, true);
     }
     catch (Exception ex)
     {
         MessageBox.Show("DNREG01" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }
 /// <summary>
 /// Function to fill the CashOrParty combo box
 /// </summary>
 public void CashOrPartyComboFill()
 {
     try
     {
         TransactionsGeneralFillBll TransactionGeneralFillObj = new TransactionsGeneralFillBll();
         TransactionGeneralFillObj.CashOrPartyUnderSundryDrComboFill(cmbCashParty, false);
         cmbCashParty.SelectedValue = 1;
     }
     catch (Exception ex)
     {
         MessageBox.Show("SV 08 : " + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }
 //PopUp
 /// <summary>
 /// Function to call frmLedgerPopup form to select and view Ledger
 /// </summary>
 /// <param name="frmLedgerPopup"></param>
 /// <param name="decId"></param>
 /// <param name="strComboTypes"></param>
 public void CallFromLedgerPopup(frmLedgerPopup frmLedgerPopup, decimal decId, string strComboTypes)
 {
     TransactionsGeneralFillBll transactionGeneralFillObj = new TransactionsGeneralFillBll();
     try
     {
         base.Show();
         this.frmLedgerPopUpObj = frmLedgerPopup;
         if (strComboTypes == "CashOrSundryDeptors")
         {
             transactionGeneralFillObj.CashOrPartyUnderSundryDrComboFill(cmbCashOrParty, false);
             cmbCashOrParty.SelectedValue = decId;
         }
         frmLedgerPopUpObj.Close();
         frmLedgerPopUpObj = null;
     }
     catch (Exception ex)
     {
         MessageBox.Show("SQ:15" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }