Example #1
0
 public void employee_delete(int ID)
 {
     employee.Delete(ID);
     Insert_employee_GridView.DataBind();
     Update_employee_GridView.DataBind();
     Delete_employee_GridView.DataBind();
 }
Example #2
0
 public employee employee_insert()
 {
     employee.employee_date_hired   = Convert.ToDateTime(Insert_employee_date_hired_txt.Text);
     employee.employee_department   = Insert_employee_department_txt.Text;
     employee.employee_hours_worked = Convert.ToInt32(Insert_employee_hours_worked_txt.Text);
     employee.employee_leadership   = Insert_employee_leadership_txt.Text;
     employee.employee_motivation   = Insert_employee_motivation_txt.Text;
     employee.employee_notes        = Insert_employee_notes_txt.Text;
     employee.employee_overall      = Insert_employee_overall_txt.Text;
     employee.employee_payrate      = Convert.ToDecimal(Insert_employee_payrate_txt.Text);
     employee.employee_performance  = Insert_employee_performance_txt.Text;
     employee.employee_quality      = Insert_employee_quality_txt.Text;
     employee.employee_timeliness   = Insert_employee_timeliness_txt.Text;
     employee.username = Insert_username_txt.Text;
     employee.pswd     = Insert_pswd_txt.Text;
     employee          = employee.Insert(employee);
     Insert_employee_GridView.DataBind();
     Update_employee_GridView.DataBind();
     Delete_employee_GridView.DataBind();
     return(employee);
 }