/// <summary>
 /// Function to fill CashOrParty combo box
 /// </summary>
 public void CashOrPartyComboFill()
 {
     try
     {
         TransactionGeneralFillObj.CashOrPartyComboFill(cmbCashOrParty, true);
     }
     catch (Exception ex)
     {
         MessageBox.Show("PORP:2" + ex.Message, "Open Miracle", 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 the Cash/party combobox
 /// </summary>
 public void CashOrPartyComboFill()
 {
     try
     {
         isDontExecuteCashorParty = true;
         TransactionGeneralFillObj.CashOrPartyComboFill(cmbCashOrParty, true);
         isDontExecuteCashorParty = false;
     }
     catch (Exception ex)
     {
         MessageBox.Show("MRREG3:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }
Пример #4
0
 public void clear()
 {
     try
     {
         txtVoucherNo.Clear();
         txtProductCode.Clear();
         txtProductName.Clear();
         dtpFromDate.MinDate = PublicVariables._dtFromDate;
         dtpFromDate.MaxDate = PublicVariables._dtToDate;
         dtpFromDate.Value   = PublicVariables._dtFromDate;
         dtpFromDate.Text    = dtpFromDate.Value.ToString("dd-MMM-yyyy");
         dtpToDate.Value     = PublicVariables._dtToDate;
         dtpToDate.Text      = dtpToDate.Value.ToString("dd-MMM-yyyy");
         objtransactiongeneralfill.CashOrPartyComboFill(cmbCashOrParty, true);
         FillProductGroup();
         VoucherTypeFill();
         txtFromDate.Focus();
         FillGrid();
     }
     catch (Exception ex)
     {
         MessageBox.Show("VPS :05" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }