예제 #1
0
 public emergency_medical emergency_medical_update(int ID)
 {
     emergency_medical           = emergency_medical.Select(ID);
     emergency_medical.em_id     = Convert.ToInt32(Update_em_id_txt.Text);
     emergency_medical.client_id = Convert.ToInt32(Update_client_id_txt.Text);
     emergency_medical.ambulance_company_name   = Update_ambulance_company_name_txt.Text;
     emergency_medical.ambulance_identification = Update_ambulance_identification_txt.Text;
     emergency_medical.appointment_date         = Convert.ToDateTime(Update_appointment_date_txt.Text);
     emergency_medical.area_of_specialty        = Update_area_of_specialty_txt.Text;
     emergency_medical.assistance_order         = Update_assistance_order_txt.Text;
     emergency_medical.date_of_service          = Convert.ToDateTime(Update_date_of_service_txt.Text);
     emergency_medical.degree_certifications    = Update_degree_certifications_txt.Text;
     emergency_medical.doctor_appointments      = Update_doctor_appointments_txt.Text;
     emergency_medical.doctor_id                    = Convert.ToInt32(Update_doctor_id_txt.Text);
     emergency_medical.doctor_start_date            = Convert.ToDateTime(Update_doctor_start_date_txt.Text);
     emergency_medical.driver_id                    = Convert.ToInt32(Update_driver_id_txt.Text);
     emergency_medical.educational_institution_name = Update_educational_institution_name_txt.Text;
     emergency_medical.external_examination         = Update_external_examination_txt.Text;
     emergency_medical.hospital_name                = Update_hospital_name_txt.Text;
     emergency_medical.internal_examination         = Update_internal_examination_txt.Text;
     emergency_medical.lights_sirens_to_scene       = Update_lights_sirens_to_scene_txt.Text;
     emergency_medical.location_type                = Update_location_type_txt.Text;
     emergency_medical.number_of_days_admitted      = Convert.ToInt32(Update_number_of_days_admitted_txt.Text);
     emergency_medical.office_location              = Update_office_location_txt.Text;
     emergency_medical.other_remarks                = Update_other_remarks_txt.Text;
     emergency_medical.prescription_medicines       = Update_prescription_medicines_txt.Text;
     emergency_medical.time_of_service              = Convert.ToDateTime(Update_time_of_service_txt.Text);
     emergency_medical.total_cost                   = Convert.ToDecimal(Update_total_cost_txt.Text);
     emergency_medical.deceased_id                  = Convert.ToInt32(Update_deceased_id_txt.Text);
     emergency_medical.Update(emergency_medical);
     Insert_emergency_medical_GridView.DataBind();
     Update_emergency_medical_GridView.DataBind();
     Delete_emergency_medical_GridView.DataBind();
     return(emergency_medical);
 }
 public emergency_medical emergency_medical_update(int ID)
 {
     emergency_medical = emergency_medical.Select(ID);
     emergency_medical.em_id = Convert.ToInt32(Update_em_id_txt.Text);
     emergency_medical.client_id = Convert.ToInt32(Update_client_id_txt.Text);
     emergency_medical.ambulance_company_name = Update_ambulance_company_name_txt.Text;
     emergency_medical.ambulance_identification = Update_ambulance_identification_txt.Text;
     emergency_medical.appointment_date = Convert.ToDateTime(Update_appointment_date_txt.Text);
     emergency_medical.area_of_specialty = Update_area_of_specialty_txt.Text;
     emergency_medical.assistance_order = Update_assistance_order_txt.Text;
     emergency_medical.date_of_service = Convert.ToDateTime(Update_date_of_service_txt.Text);
     emergency_medical.degree_certifications = Update_degree_certifications_txt.Text;
     emergency_medical.doctor_appointments = Update_doctor_appointments_txt.Text;
     emergency_medical.doctor_id = Convert.ToInt32(Update_doctor_id_txt.Text);
     emergency_medical.doctor_start_date = Convert.ToDateTime(Update_doctor_start_date_txt.Text);
     emergency_medical.driver_id = Convert.ToInt32(Update_driver_id_txt.Text);
     emergency_medical.educational_institution_name = Update_educational_institution_name_txt.Text;
     emergency_medical.external_examination = Update_external_examination_txt.Text;
     emergency_medical.hospital_name = Update_hospital_name_txt.Text;
     emergency_medical.internal_examination = Update_internal_examination_txt.Text;
     emergency_medical.lights_sirens_to_scene = Update_lights_sirens_to_scene_txt.Text;
     emergency_medical.location_type = Update_location_type_txt.Text;
     emergency_medical.number_of_days_admitted = Convert.ToInt32(Update_number_of_days_admitted_txt.Text);
     emergency_medical.office_location = Update_office_location_txt.Text;
     emergency_medical.other_remarks = Update_other_remarks_txt.Text;
     emergency_medical.prescription_medicines = Update_prescription_medicines_txt.Text;
     emergency_medical.time_of_service = Convert.ToDateTime(Update_time_of_service_txt.Text);
     emergency_medical.total_cost = Convert.ToDecimal(Update_total_cost_txt.Text);
     emergency_medical.deceased_id = Convert.ToInt32(Update_deceased_id_txt.Text);
     emergency_medical.Update(emergency_medical);
     Insert_emergency_medical_GridView.DataBind();
     Update_emergency_medical_GridView.DataBind();
     Delete_emergency_medical_GridView.DataBind();
     return emergency_medical;
 }