Exemplo n.º 1
0
 private void btnSearch_Click(object sender, EventArgs e)
 {
     try
     {
         PaymentRecordSearch.PaymentSearchButton(dataGridViewRecords, dateTimeFrom, dateTimeTo, txtName, term, combFeeName);
     }catch (Exception ex)
     {
         MessageBox.Show(ex.Message + "\nsearch Not Successful", "Error", MessageBoxButtons.OK,
                         MessageBoxIcon.Information);
     }
 }
Exemplo n.º 2
0
 private void btnAll_Click(object sender, EventArgs e)
 {
     lblTotal.Visible    = false;
     checkTotal.Checked  = false;
     radioFirst.Checked  = false;
     radioSecond.Checked = false;
     radioThird.Checked  = false;
     feeDate             = false;
     term = "";
     PaymentRecordSearch.PaymentSearch(dataGridViewRecords);
 }
Exemplo n.º 3
0
 private void combFeeName_SelectedIndexChanged(object sender, EventArgs e)
 {
     lblTotal.Visible   = false;
     checkTotal.Checked = false;
     if (feeDate == true)
     {
         PaymentRecordSearch.PaymentSearch(dataGridViewRecords, dateTimeFrom, dateTimeTo, combFeeName);
     }
     else
     {
         PaymentRecordSearch.PaymentSearch(dataGridViewRecords, dateTimeFrom, term, combFeeName);
     }
 }
Exemplo n.º 4
0
 private void dateTimeTo_ValueChanged(object sender, EventArgs e)
 {
     try
     {
         feeDate = true;
         PaymentRecordSearch.PaymentSearch(dataGridViewRecords, dateTimeFrom, dateTimeTo);
     }
     catch (NullReferenceException)
     {
     }
     catch (Exception Ex)
     {
         MessageBox.Show(Ex.Message + " \noperation Not Successful", "Error", MessageBoxButtons.OK,
                         MessageBoxIcon.Information);
     }
 }
Exemplo n.º 5
0
 private void btnTodayPayment_Click(object sender, EventArgs e)
 {
     try
     {
         lblTotal.Visible    = false;
         checkTotal.Checked  = false;
         radioFirst.Checked  = false;
         radioSecond.Checked = false;
         radioThird.Checked  = false;
         feeDate             = false;
         term = "";
         PaymentRecordSearch.todayRecords(dataGridViewRecords);
     }
     catch (Exception)
     {
     }
 }
Exemplo n.º 6
0
 private void txtSearch_TextChanged(object sender, EventArgs e)
 {
     try
     {
         feeDate = false;
         PaymentRecordSearch.PaymentSearch(dataGridViewRecords, txtSearch);
         if (string.IsNullOrEmpty(txtSearch.Text))
         {
             PaymentRecordSearch.PaymentSearch(dataGridViewRecords);
         }
     }
     catch (Exception Ex)
     {
         MessageBox.Show(Ex.Message + " \nsearch was Not Successful", "Seach error", MessageBoxButtons.OK,
                         MessageBoxIcon.Information);
     }
 }
Exemplo n.º 7
0
 private void txtName_TextChanged(object sender, EventArgs e)
 {
     try
     {
         PaymentRecordSearch.PaymentSearch(dataGridViewRecords, dateTimeFrom, dateTimeTo, txtName, term,
                                           combFeeName);
         if (string.IsNullOrEmpty(txtName.Text))
         {
             PaymentRecordSearch.PaymentSearch(dataGridViewRecords);
         }
     }
     catch (NullReferenceException)
     {
     }
     catch (Exception Ex)
     {
         MessageBox.Show(Ex.Message + " \nsearch was Not Successful", "Error", MessageBoxButtons.OK,
                         MessageBoxIcon.Information);
     }
 }
Exemplo n.º 8
0
 private void PayRecordsForm_Load(object sender, EventArgs e)
 {
     PaymentRecordSearch.PaymentSearch(dataGridViewRecords);
     feeNames(combFeeName);
 }