Пример #1
0
 public void encounter_services_delete(int ID)
 {
     encounter_services.Delete(ID);
     Insert_encounter_services_GridView.DataBind();
     Update_encounter_services_GridView.DataBind();
     Delete_encounter_services_GridView.DataBind();
 }
Пример #2
0
 public encounter_services encounter_services_insert()
 {
     encounter_services.encounter_id      = Convert.ToInt32(Insert_encounter_id_txt.Text);
     encounter_services.mobile_unit_id    = Convert.ToInt32(Insert_mobile_unit_id_txt.Text);
     encounter_services.service_id        = Convert.ToInt32(Insert_service_id_txt.Text);
     encounter_services.service_date      = Convert.ToDateTime(Insert_service_date_txt.Text);
     encounter_services.service_completed = Convert.ToDateTime(Insert_service_completed_txt.Text);
     encounter_services = encounter_services.Insert(encounter_services);
     Insert_encounter_services_GridView.DataBind();
     Update_encounter_services_GridView.DataBind();
     Delete_encounter_services_GridView.DataBind();
     return(encounter_services);
 }
Пример #3
0
 public encounter_services encounter_services_update(int ID)
 {
     encounter_services = encounter_services.Select(ID);
     encounter_services.encounter_serv_id = Convert.ToInt32(Update_encounter_serv_id_txt.Text);
     encounter_services.encounter_id      = Convert.ToInt32(Update_encounter_id_txt.Text);
     encounter_services.mobile_unit_id    = Convert.ToInt32(Update_mobile_unit_id_txt.Text);
     encounter_services.service_id        = Convert.ToInt32(Update_service_id_txt.Text);
     encounter_services.service_date      = Convert.ToDateTime(Update_service_date_txt.Text);
     encounter_services.service_completed = Convert.ToDateTime(Update_service_completed_txt.Text);
     encounter_services.Update(encounter_services);
     Insert_encounter_services_GridView.DataBind();
     Update_encounter_services_GridView.DataBind();
     Delete_encounter_services_GridView.DataBind();
     return(encounter_services);
 }