Esempio n. 1
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);
 }
Esempio n. 2
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);
     }
 }
Esempio n. 3
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);
     }
 }
Esempio n. 4
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);
     }
 }
Esempio n. 5
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);
     }
 }
Esempio n. 6
0
 private void PayRecordsForm_Load(object sender, EventArgs e)
 {
     PaymentRecordSearch.PaymentSearch(dataGridViewRecords);
     feeNames(combFeeName);
 }