/// <summary> /// Function to call frmLedgerPopup form to select and view ledgers /// </summary> /// <param name="frmLedgerPopup"></param> /// <param name="decId"></param> public void CallFromLedgerPopup(frmLedgerPopup frmLedgerPopup, decimal decId) //PopUp { try { base.Show(); this.frmLedgerPopupObj = frmLedgerPopup; TransactionsGeneralFillBll obj = new TransactionsGeneralFillBll(); obj.CashOrBankComboFill(cmbCashBankAC, false); cmbCashBankAC.SelectedValue = decId; cmbCashBankAC.Focus(); frmLedgerPopupObj.Close(); frmLedgerPopupObj = null; } catch (Exception ex) { MessageBox.Show("MSR4:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information); } }
//PopUp /// <summary> /// Function to call frmLedgerPopup form to select and view ledgers /// </summary> /// <param name="frmLedgerPopup"></param> /// <param name="decId"></param> public void CallFromLedgerPopup(frmLedgerPopup frmLedgerPopup, decimal decId) { try { base.Show(); this.frmLedgerPopupObj = frmLedgerPopup; TransactionsGeneralFillBll obj = new TransactionsGeneralFillBll(); obj.CashOrBankComboFill(cmbCashBankAC, false); cmbCashBankAC.SelectedValue = decId; cmbCashBankAC.Focus(); frmLedgerPopupObj.Close(); frmLedgerPopupObj = null; } catch (Exception ex) { MessageBox.Show("MSR4:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information); } }
/// <summary> /// Function to call frmLedgerPopup form to select and view ledgers /// </summary> /// <param name="frmLedgerPopup"></param> /// <param name="decId"></param> public void CallFromLedgerPopup(frmLedgerPopup frmLedgerPopup, decimal decId) //PopUp { try { base.Show(); this.frmLedgerPopupObj = frmLedgerPopup; TransactionsGeneralFill obj = new TransactionsGeneralFill(); obj.CashOrBankComboFill(cmbCashBankAC, false); cmbCashBankAC.SelectedValue = decId; cmbCashBankAC.Focus(); frmLedgerPopupObj.Close(); frmLedgerPopupObj = null; } catch (Exception ex) { formMDI.infoError.ErrorString = "MSR4:" + ex.Message; } }
// Ledger pop up /// <summary> /// Function to call frmLedgerPopup form to select and view Ledger /// </summary> /// <param name="frmLedgerPopup"></param> /// <param name="decId"></param> /// <param name="strComboType"></param> public void CallFromLedgerPopup(frmLedgerPopup frmLedgerPopup, decimal decId, string strComboType) { try { this.frmLedgerPopupObj = frmLedgerPopup; if (strComboType == "ServiceAccount") { ServiceAcoountComboFill(); cmbServiceAC.SelectedValue = decId; cmbServiceAC.Focus(); } else if (strComboType == "CashOrSundryCreditors") { CashOrPartyComboFill(); cmbCashParty.SelectedValue = decId; cmbCashParty.Focus(); } frmLedgerPopupObj.Close(); frmLedgerPopupObj = null; } catch (Exception ex) { MessageBox.Show("SV 15 : " + 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) { try { base.Show(); this.frmLedgerPopUpObj = frmLedgerPopup; if (strComboTypes == "CashOrSundryDeptors") { CashOrPartyComboFill(); cmbCashOrParty.SelectedValue = decId; } frmLedgerPopUpObj.Close(); frmLedgerPopUpObj = null; } catch (Exception ex) { MessageBox.Show("DN18:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information); } }
// Ledger pop up /// <summary> /// Function to call frmLedgerPopup form to select and view Ledger /// </summary> /// <param name="frmLedgerPopup"></param> /// <param name="decId"></param> /// <param name="strComboType"></param> public void CallFromLedgerPopup(frmLedgerPopup frmLedgerPopup, decimal decId, string strComboType) { try { base.Show(); this.frmLedgerPopupObj = frmLedgerPopup; if (strComboType == "Account Ledger") { cmbAccountNameFill(); cmbAccountLedger.SelectedValue = decId; } else if (strComboType == "Bank") { cmbBankAccountFill(); cmbBank.SelectedValue = decId; } frmLedgerPopupObj.Close(); frmLedgerPopupObj = null; } catch (Exception ex) { MessageBox.Show("PR7:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information); } }
//PopUp /// <summary> /// Its the function for find and select purticular cash or bank ledger in a popup window /// </summary> /// <param name="frmLedgerPopup"></param> /// <param name="decId"></param> /// <param name="strComboTypes"></param> public void CallFromLedgerPopup(frmLedgerPopup frmLedgerPopup, decimal decId, string strComboTypes) { try { base.Show(); this.frmLedgerPopupObj = frmLedgerPopup; if (strComboTypes == "CashOrBank") { TransactionsGeneralFillBll obj = new TransactionsGeneralFillBll(); obj.CashOrBankComboFill(cmbBankAccount, false); cmbBankAccount.SelectedValue = decId; } else { dgvContraVoucher.CurrentRow.Cells["dgvcmbBankorCashAccount"].Value = decId; } frmLedgerPopupObj.Close(); frmLedgerPopupObj = null; } catch (Exception ex) { MessageBox.Show("CV:11" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information); } }
/// <summary> /// To select the ledger from ledger popup /// </summary> /// <param name="decId"></param> /// <param name="frmLedgerPopUpObj"></param> public void CallFromLedgerPopup(decimal decId, frmLedgerPopup frmLedgerPopUpObj) //PopUp { try { frmLedgerPopUpObj.Close(); dgvJournalVoucher.CurrentRow.Cells["dgvcmbAccountLedger"].Value = decId; dgvJournalVoucher.Focus(); } catch (Exception ex) { MessageBox.Show("JV4:" + 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> public void CallFromLedgerPopup(frmLedgerPopup frmLedgerPopup, decimal decId) { try { base.Show(); this.frmLedgerPopupObj = frmLedgerPopup; cmbCashorBankAccount.SelectedValue = decId; cmbCashorBankAccount.Focus(); frmLedgerPopupObj.Close(); frmLedgerPopupObj = null; } catch (Exception ex) { MessageBox.Show("DSV16:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information); } }
/// <summary> /// Function to call this form from frmLedgerPopup to view details and for updation /// </summary> /// <param name="frmLedgerPopup"></param> /// <param name="decId"></param> /// <param name="strComboTypes"></param> public void CallFromLedgerPopup(frmLedgerPopup frmLedgerPopup, decimal decId, string strComboTypes) //PopUp { try { this.Enabled = true; this.frmLedgerPopUpObj = frmLedgerPopup; if (strComboTypes == "CashOrSundryDeptors") { CashorPartyComboFill(cmbCashOrParty); cmbCashOrParty.SelectedValue = decId; } else if (strComboTypes == "SalesAccount") { SalesAccountComboFill(cmbSalesAccount); cmbSalesAccount.SelectedValue = decId; } frmLedgerPopUpObj.Close(); frmLedgerPopUpObj = null; } catch (Exception ex) { MessageBox.Show("SI: 57" + 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) { try { base.Show(); this.frmLedgerPopupObj = frmLedgerPopup; TransactionGeneralFillObj.CashOrPartyComboFill(cmbCashOrParty, false); cmbCashOrParty.SelectedValue = decId; frmLedgerPopupObj.Close(); frmLedgerPopupObj = null; } catch (Exception ex) { MessageBox.Show("PO23:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information); } }
/// <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) //PopUp { TransactionsGeneralFill transactionGeneralFillObj = new TransactionsGeneralFill(); 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); } }
/// <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) { TransactionsGeneralFill TransactionGeneralFillObj = new TransactionsGeneralFill(); 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); } }
/// <summary> /// To select the ledger from ledger popup /// </summary> /// <param name="decId"></param> /// <param name="frmLedgerPopUp"></param> public void CallFromLedgerPopup(decimal decId, frmLedgerPopup frmLedgerPopUp) //PopUp { try { frmLedgerPopUp.Close(); dgvCreditNote.CurrentRow.Cells["dgvcmbAccountLedger"].Value = decId; dgvCreditNote.Focus(); } catch (Exception ex) { MessageBox.Show("CRNT:10" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information); } }
/// <summary> /// Function to call frmLedgerPopup form to select and view Ledger /// </summary> /// <param name="frmLedgerPopup"></param> /// <param name="decId"></param> /// <param name="str"></param> public void CallFromLedgerPopup(frmLedgerPopup frmLedgerPopup, decimal decId, string str) { try { this.Enabled = true; this.frmLedgerPopupObj = frmLedgerPopup; if (str == "CashOrBank") { TransactionsGeneralFillBll obj = new TransactionsGeneralFillBll(); obj.CashOrBankComboFill(cmbCashOrBank, false); cmbCashOrBank.SelectedValue = decId; cmbCashOrBank.Focus(); } else { dgvReceiptVoucher.CurrentRow.Cells["dgvcmbAccountLedger"].Value = decId; dgvReceiptVoucher.Focus(); } frmLedgerPopupObj.Close(); frmLedgerPopupObj = null; } catch (Exception ex) { MessageBox.Show("RV28:" + ex.Message, "Open Miracle", MessageBoxButtons.OK, MessageBoxIcon.Information); } }