protected void ShowStatus_CheckedChanged(object sender, EventArgs e)
 {
     if ((Active.Checked && Inactive.Checked) || (!Active.Checked && !Inactive.Checked)) //Event if both check boxes are checked or empty
     {
         this.Binding(Base.FilterClear());                                               //Calls the TableBase object's filter method to refresh the datasource and clear the status filter
     }
     else if (Active.Checked && !Inactive.Checked)                                       //Event if only Active items are checked
     {
         this.Binding(Base.FilterActive("Status = 'A'"));                                //Calls the TableBase object's filter method to refresh the datasource and append the status filter
     }
     else if (!Active.Checked && Inactive.Checked)                                       //Event if only Inactive items are checked
     {
         this.Binding(Base.FilterActive("Status = 'I'"));                                //Calls the TableBase object's filter method to refresh the datasource and append the status filter
     }
 }
Exemple #2
0
 //Method called when using one of the checkboxes for
 protected void ShowRank_CheckedChanged(object sender, EventArgs e)
 {
     //Event if both check boxes are checked or empty
     if ((Admin.Checked && Employee.Checked) || (!Admin.Checked && !Employee.Checked))
     {
         //Calls the TableBase object's filter method to refresh the datasource and clear the status filter
         this.Binding(Base.FilterClear());
     }
     //Event if only Admins are checked
     else if (Admin.Checked && !Employee.Checked)
     {
         //Calls the TableBase object's filter method to refresh the datasource and append the status filter
         this.Binding(Base.FilterActive("Admin = 'YES'"));
     }
     //Event if only Employees are checked
     else if (!Admin.Checked && Employee.Checked)
     {
         //Calls the TableBase object's filter method to refresh the datasource and append the status filter
         this.Binding(Base.FilterActive("Admin = 'NO'"));
     }
 }
Exemple #3
0
 //Method called when filtering for delivered and/or undelivered items
 protected void ShowDeliver_CheckedChanged(object sender, EventArgs e)
 {
     //Event if both check boxes are checked or empty
     if ((Delivered.Checked && NotDelivered.Checked) || (!Delivered.Checked && !NotDelivered.Checked))
     {
         //Calls the TableBase object's filter method to refresh the datasource and clear the status filter
         this.Binding(Base.FilterClear());
     }
     //Event if only Active items are checked
     else if (Delivered.Checked && !NotDelivered.Checked)
     {
         //Calls the TableBase object's filter method to refresh the datasource and append the status filter
         this.Binding(Base.FilterActive("DateDelivered IS NOT NULL"));
     }
     //Event if only Inactive items are checked
     else if (!Delivered.Checked && NotDelivered.Checked)
     {
         //Calls the TableBase object's filter method to refresh the datasource and append the status filter
         this.Binding(Base.FilterActive("DateDelivered IS NULL"));
     }
 }