public void medical_assistance_delete(int ID) { medical_assistance.Delete(ID); Insert_medical_assistance_GridView.DataBind(); Update_medical_assistance_GridView.DataBind(); Delete_medical_assistance_GridView.DataBind(); }
public medical_assistance medical_assistance_insert() { medical_assistance.em_id = Convert.ToInt32(Insert_em_id_txt.Text); medical_assistance.medical_assist_date = Convert.ToDateTime(Insert_medical_assist_date_txt.Text); medical_assistance.medical_assist_doctor_id = Convert.ToInt32(Insert_medical_assist_doctor_id_txt.Text); medical_assistance.medical_assist_hosp_price = Convert.ToDecimal(Insert_medical_assist_hosp_price_txt.Text); medical_assistance.medical_assist_hospital_name = Insert_medical_assist_hospital_name_txt.Text; medical_assistance.medical_assist_script_meds = Insert_medical_assist_script_meds_txt.Text; medical_assistance.medical_assist_script_price = Convert.ToDecimal(Insert_medical_assist_script_price_txt.Text); medical_assistance.medical_assist_script_quantity = Convert.ToInt32(Insert_medical_assist_script_quantity_txt.Text); medical_assistance = medical_assistance.Insert(medical_assistance); Insert_medical_assistance_GridView.DataBind(); Update_medical_assistance_GridView.DataBind(); Delete_medical_assistance_GridView.DataBind(); return(medical_assistance); }
public medical_assistance medical_assistance_update(int ID) { medical_assistance = medical_assistance.Select(ID); medical_assistance.medical_assist_order_id = Convert.ToInt32(Update_medical_assist_order_id_txt.Text); medical_assistance.em_id = Convert.ToInt32(Update_em_id_txt.Text); medical_assistance.medical_assist_date = Convert.ToDateTime(Update_medical_assist_date_txt.Text); medical_assistance.medical_assist_doctor_id = Convert.ToInt32(Update_medical_assist_doctor_id_txt.Text); medical_assistance.medical_assist_hosp_price = Convert.ToDecimal(Update_medical_assist_hosp_price_txt.Text); medical_assistance.medical_assist_hospital_name = Update_medical_assist_hospital_name_txt.Text; medical_assistance.medical_assist_script_meds = Update_medical_assist_script_meds_txt.Text; medical_assistance.medical_assist_script_price = Convert.ToDecimal(Update_medical_assist_script_price_txt.Text); medical_assistance.medical_assist_script_quantity = Convert.ToInt32(Update_medical_assist_script_quantity_txt.Text); medical_assistance.Update(medical_assistance); Insert_medical_assistance_GridView.DataBind(); Update_medical_assistance_GridView.DataBind(); Delete_medical_assistance_GridView.DataBind(); return(medical_assistance); }