Esempio n. 1
0
 public emergency_medical emergency_medical_insert()
 {
     emergency_medical.client_id = Convert.ToInt32(Insert_client_id_txt.Text);
     emergency_medical.ambulance_company_name   = Insert_ambulance_company_name_txt.Text;
     emergency_medical.ambulance_identification = Insert_ambulance_identification_txt.Text;
     emergency_medical.appointment_date         = Convert.ToDateTime(Insert_appointment_date_txt.Text);
     emergency_medical.area_of_specialty        = Insert_area_of_specialty_txt.Text;
     emergency_medical.assistance_order         = Insert_assistance_order_txt.Text;
     emergency_medical.date_of_service          = Convert.ToDateTime(Insert_date_of_service_txt.Text);
     emergency_medical.degree_certifications    = Insert_degree_certifications_txt.Text;
     emergency_medical.doctor_appointments      = Insert_doctor_appointments_txt.Text;
     emergency_medical.doctor_id                    = Convert.ToInt32(Insert_doctor_id_txt.Text);
     emergency_medical.doctor_start_date            = Convert.ToDateTime(Insert_doctor_start_date_txt.Text);
     emergency_medical.driver_id                    = Convert.ToInt32(Insert_driver_id_txt.Text);
     emergency_medical.educational_institution_name = Insert_educational_institution_name_txt.Text;
     emergency_medical.external_examination         = Insert_external_examination_txt.Text;
     emergency_medical.hospital_name                = Insert_hospital_name_txt.Text;
     emergency_medical.internal_examination         = Insert_internal_examination_txt.Text;
     emergency_medical.lights_sirens_to_scene       = Insert_lights_sirens_to_scene_txt.Text;
     emergency_medical.location_type                = Insert_location_type_txt.Text;
     emergency_medical.number_of_days_admitted      = Convert.ToInt32(Insert_number_of_days_admitted_txt.Text);
     emergency_medical.office_location              = Insert_office_location_txt.Text;
     emergency_medical.other_remarks                = Insert_other_remarks_txt.Text;
     emergency_medical.prescription_medicines       = Insert_prescription_medicines_txt.Text;
     emergency_medical.time_of_service              = Convert.ToDateTime(Insert_time_of_service_txt.Text);
     emergency_medical.total_cost                   = Convert.ToDecimal(Insert_total_cost_txt.Text);
     emergency_medical.deceased_id                  = Convert.ToInt32(Insert_deceased_id_txt.Text);
     emergency_medical = emergency_medical.Insert(emergency_medical);
     Insert_emergency_medical_GridView.DataBind();
     Update_emergency_medical_GridView.DataBind();
     Delete_emergency_medical_GridView.DataBind();
     return(emergency_medical);
 }