コード例 #1
0
 public void agency_employees_delete(int ID)
 {
     agency_employees.Delete(ID);
     Insert_agency_employees_GridView.DataBind();
     Update_agency_employees_GridView.DataBind();
     Delete_agency_employees_GridView.DataBind();
 }
コード例 #2
0
 public agency_employees agency_employees_insert()
 {
     agency_employees.agency_id   = Convert.ToInt32(Insert_agency_id_txt.Text);
     agency_employees.employee_id = Convert.ToInt32(Insert_employee_id_txt.Text);
     agency_employees             = agency_employees.Insert(agency_employees);
     Insert_agency_employees_GridView.DataBind();
     Update_agency_employees_GridView.DataBind();
     Delete_agency_employees_GridView.DataBind();
     return(agency_employees);
 }
コード例 #3
0
 public agency_employees agency_employees_update(int ID)
 {
     agency_employees = agency_employees.Select(ID);
     agency_employees.agency_empl_id = Convert.ToInt32(Update_agency_empl_id_txt.Text);
     agency_employees.agency_id      = Convert.ToInt32(Update_agency_id_txt.Text);
     agency_employees.employee_id    = Convert.ToInt32(Update_employee_id_txt.Text);
     agency_employees.Update(agency_employees);
     Insert_agency_employees_GridView.DataBind();
     Update_agency_employees_GridView.DataBind();
     Delete_agency_employees_GridView.DataBind();
     return(agency_employees);
 }