/// <summary> /// Function to search based on the condition /// </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(); PDCReceivableMasterSP sppdcreceivable = new PDCReceivableMasterSP(); dtblPDCReport = sppdcreceivable.PdcReceivableReportSearch(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()); dgvPdcReceivableSearch.DataSource = dtblPDCReport; } catch (Exception ex) { MessageBox.Show("PRREP5:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information); } }
/// <summary> /// Function to search based on the condition /// </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(); PDCReceivableMasterSP sppdcreceivable = new PDCReceivableMasterSP(); dtblPDCReport = sppdcreceivable.PdcReceivableReportSearch(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()); dgvPdcReceivableSearch.DataSource = dtblPDCReport; } catch (Exception ex) { formMDI.infoError.ErrorString = "PRREP5:" + ex.Message; } }
/// <summary> /// Function to search based on the condition /// </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(); PDCReceivableMasterSP sppdcreceivable = new PDCReceivableMasterSP(); dtblPDCReport = sppdcreceivable.PdcReceivableReportSearch(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()); dgvPdcReceivableSearch.DataSource = dtblPDCReport; } catch (Exception ex) { MessageBox.Show("PRREP5:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information); } }