/// <summary> /// Function to search the details /// </summary> public void Search() { try { if (cmbAccountLedger.Text.Trim() == string.Empty) { cmbAccountLedger.Text = "All"; } else if (cmbVoucherType.Text.Trim() == string.Empty) { cmbVoucherType.Text = "All"; } else if (cmbStatus.Text.Trim() == string.Empty) { cmbStatus.Text = "All"; } DataTable dtblPDCReport = new DataTable(); PDCPayableMasterSP sppdcpayable = new PDCPayableMasterSP(); dtblPDCReport = sppdcpayable.PdcPayableReportSearch(Convert.ToDateTime(dtpFrmDate.Value.ToString()), Convert.ToDateTime(dtpTodate.Value.ToString()), cmbVoucherType.Text.ToString(), cmbAccountLedger.Text.ToString(), Convert.ToDateTime(dtpCheckDateFrom.Value.ToString()), Convert.ToDateTime(dtpCheckdateTo.Value.ToString()), txtcheckNo.Text.Trim(), txtVoucherNo.Text.Trim(), cmbStatus.Text.Trim()); dgvPDCPayableReport.DataSource = dtblPDCReport; } catch (Exception ex) { MessageBox.Show("PPREP5:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information); } }
/// <summary> /// Function to search the details /// </summary> public void Search() { try { if (cmbAccountLedger.Text.Trim() == string.Empty) { cmbAccountLedger.Text = "All"; } else if (cmbVoucherType.Text.Trim() == string.Empty) { cmbVoucherType.Text = "All"; } else if (cmbStatus.Text.Trim() == string.Empty) { cmbStatus.Text = "All"; } DataTable dtblPDCReport = new DataTable(); PDCPayableMasterSP sppdcpayable = new PDCPayableMasterSP(); dtblPDCReport = sppdcpayable.PdcPayableReportSearch(Convert.ToDateTime(dtpFrmDate.Value.ToString()), Convert.ToDateTime(dtpTodate.Value.ToString()), cmbVoucherType.Text.ToString(), cmbAccountLedger.Text.ToString(), Convert.ToDateTime(dtpCheckDateFrom.Value.ToString()), Convert.ToDateTime(dtpCheckdateTo.Value.ToString()), txtcheckNo.Text.Trim(), txtVoucherNo.Text.Trim(), cmbStatus.Text.Trim()); dgvPDCPayableReport.DataSource = dtblPDCReport; } catch (Exception ex) { formMDI.infoError.ErrorString = "PPREP5:" + ex.Message; } }