Example #1
0
 private void txtSearch_TextChanged(object sender, EventArgs e)
 {
     lblTotal.Visible   = false;
     checkTotal.Checked = false;
     RecordAccess.todaySeacrchRecords(dataGridRecords, txtSearch);
     if (string.IsNullOrEmpty(txtSearch.Text))
     {
         RecordAccess.todayRecords(dataGridRecords);
     }
 }
Example #2
0
 private void combFeeName_SelectedIndexChanged(object sender, EventArgs e)
 {
     try
     {
         RecordAccess.todaySeacrchRecordsByFeename(dataGridRecords, combFeeName.Text);
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message, "search Error", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }
Example #3
0
 private void dateTimeReport_ValueChanged(object sender, EventArgs e)
 {
     try
     {
         if (string.IsNullOrEmpty(combFeeName.Text))
         {
             throw new Exception("Select a fee to search");
         }
         RecordAccess.Report(dataGridViewRecords, combFeeName.Text, dateTimeReport);
     }catch (Exception ex)
     {
         MessageBox.Show(ex.Message + " \nOperation failed", "Error", MessageBoxButtons.OK,
                         MessageBoxIcon.Information);
     }
 }
Example #4
0
        private void btnSearch_Click(object sender, EventArgs e)
        {
            try
            {
                if (string.IsNullOrEmpty(txtSearch.Text))
                {
                    throw new Exception("Enter the Fee Name");
                }

                RecordAccess.todayRecords(dataGridRecords);
            }
            catch (Exception Ex)
            {
                MessageBox.Show(Ex.Message, "Search Error", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
        }
Example #5
0
 private void TodayPayRecords_Load(object sender, EventArgs e)
 {
     RecordAccess.todayRecords(dataGridRecords);
 }
Example #6
0
 public TodayPayRecords()
 {
     InitializeComponent();
     RecordAccess.getTodayfeeNames(combFeeName);
 }
Example #7
0
 private void btnViewTodayAll_Click(object sender, EventArgs e)
 {
     lblTotal.Visible   = false;
     checkTotal.Checked = false;
     RecordAccess.todayRecords(dataGridRecords);
 }