/// <summary>
 /// Function to fill CashOrParty combobox
 /// </summary>
 public void CashOrPartyComboFill()
 {
     try
     {
         TransactionsGeneralFillBll TransactionGeneralFillObj = new TransactionsGeneralFillBll();
         TransactionGeneralFillObj.CashOrPartyComboFill(cmbCashOrParty, true);
     }
     catch (Exception ex)
     {
         MessageBox.Show("PIREP2:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }
 /// <summary>
 ///  Function to fill Cash Or Party combobox
 /// </summary>
 public void CashOrPartyComboFill()
 {
     try
     {
         TransactionsGeneralFillBll TransactionGeneralFillObj = new TransactionsGeneralFillBll();
         isDontExecuteCashorParty = true;
         TransactionGeneralFillObj.CashOrPartyComboFill(cmbCashOrParty, true);
         isDontExecuteCashorParty = false;
     }
     catch (Exception ex)
     {
         MessageBox.Show("MRR3:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }
 /// <summary>
 /// Function to fill Accountledger combobox
 /// </summary>
 private void AccountLedgerComboFill()
 {
     try
     {
         TransactionsGeneralFillBll TransactionsGeneralFillObj = new TransactionsGeneralFillBll();
         TransactionsGeneralFillObj.CashOrPartyComboFill(cmbAccountLedger, true);
     }
     catch (Exception ex)
     {
         MessageBox.Show("ODPO:1" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }
 /// <summary>
 /// Function to fill Cash or Party combobox
 /// </summary>
 public void CashOrPartyComboFill()
 {
     TransactionsGeneralFillBll TransactionGeneralFillObj = new TransactionsGeneralFillBll();
     try
     {
         TransactionGeneralFillObj.CashOrPartyComboFill(cmbCashOrParty, false);
         cmbCashOrParty.SelectedValue = 1;
     }
     catch (Exception ex)
     {
         MessageBox.Show("PR:01 " + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }
 /// <summary>
 /// Function for Call from Account Ledger popup
 /// </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 == "CashOrSundryCreditors")
         {
             TransactionGeneralFillObj.CashOrPartyComboFill(cmbCashOrParty, false);
             cmbCashOrParty.SelectedValue = decId;
         }
         else if (strComboTypes == "PurchaseAccount")
         {
             PurchaseAccountComboFill();
             cmbPurchaseAccount.SelectedValue = decId;
         }
         frmLedgerPopupObj.Close();
         frmLedgerPopupObj = null;
     }
     catch (Exception ex)
     {
         MessageBox.Show("PR:26" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }