private void txtsearch_TextChanged(object sender, EventArgs e) { checkTotal.Checked = false; lblTotal.Visible = false; DailyReports.SearchDailyReport(dataGridRecordsReport, txtsearch); if (string.IsNullOrEmpty(txtsearch.Text)) { report.DisplayReports(dataGridRecordsReport); } }
private void dateTimeTo_ValueChanged(object sender, EventArgs e) { try { DailyReports.SearchDailyReport(dataGridRecordsReport, dateTimeFrom, dateTimeTo); } catch (Exception ex) { MessageBox.Show(ex.Message, "Search Error", MessageBoxButtons.OK, MessageBoxIcon.Information); } }
private void btnReport_Click(object sender, EventArgs e) { try { if (string.IsNullOrEmpty(combFeeName.Text)) { throw new Exception("Select a fee to report"); } DailyReports.GetlastReport(combFeeName.Text, dateTimeReport.Value.ToString("MM/dd/yyyy")); DailyReports.InsertDailyReport(combFeeName.Text, RecordAccess.total, RecordAccess.RecordDate); } catch (Exception Ex) { MessageBox.Show(Ex.Message + " \nReport Not Successful", "Cash Desk", MessageBoxButtons.OK, MessageBoxIcon.Information); } }
private void btnReport_Click(object sender, EventArgs e) { try { var feeDate = dataGridRecords.Rows[0].Cells[6].Value.ToString(); DailyReports.GetlastReport(combFeeName.Text, feeDate); DailyReports.InsertDailyReport(combFeeName.Text, RecordAccess.total, RecordAccess.RecordDate.ToString()); } catch (IndexOutOfRangeException Ex) { throw new Exception("No Records Found"); } catch (Exception Ex) { MessageBox.Show(Ex.Message + " \nReport Not Successful", "Cash Desk", MessageBoxButtons.OK, MessageBoxIcon.Information); } }
private void dateTimeFrom_ValueChanged(object sender, EventArgs e) { checkTotal.Checked = false; lblTotal.Visible = false; DailyReports.SearchDailyReport(dataGridRecordsReport, dateTimeFrom); }
private void btnSearch_Click(object sender, EventArgs e) { checkTotal.Checked = false; lblTotal.Visible = false; DailyReports.SearchDailyReport(dataGridRecordsReport, dateTimeFrom, dateTimeTo, txtsearch); }