public void encounter_delete(int ID) { encounter.Delete(ID); Insert_encounter_GridView.DataBind(); Update_encounter_GridView.DataBind(); Delete_encounter_GridView.DataBind(); }
public encounter encounter_insert() { encounter.case_id = Convert.ToInt32(Insert_case_id_txt.Text); encounter.agency_id = Convert.ToInt32(Insert_agency_id_txt.Text); encounter.call_center_id = Convert.ToInt32(Insert_call_center_id_txt.Text); encounter.client_id = Convert.ToInt32(Insert_client_id_txt.Text); encounter.create_date = Convert.ToDateTime(Insert_create_date_txt.Text); encounter.close_date = Convert.ToDateTime(Insert_close_date_txt.Text); encounter.disaster_id = Convert.ToInt32(Insert_disaster_id_txt.Text); encounter.Location_ID = Convert.ToInt32(Insert_Location_ID_txt.Text); encounter.Pet_Record_ID = Convert.ToInt32(Insert_Pet_Record_ID_txt.Text); encounter = encounter.Insert(encounter); Insert_encounter_GridView.DataBind(); Update_encounter_GridView.DataBind(); Delete_encounter_GridView.DataBind(); return(encounter); }