public void disaster_encounter_delete(int ID) { disaster_encounter.Delete(ID); Insert_disaster_encounter_GridView.DataBind(); Update_disaster_encounter_GridView.DataBind(); Delete_disaster_encounter_GridView.DataBind(); }
public disaster_encounter disaster_encounter_insert() { disaster_encounter.disaster_id = Convert.ToInt32(Insert_disaster_id_txt.Text); disaster_encounter.encounter_id = Convert.ToInt32(Insert_encounter_id_txt.Text); disaster_encounter.location_id = Convert.ToInt32(Insert_location_id_txt.Text); disaster_encounter = disaster_encounter.Insert(disaster_encounter); Insert_disaster_encounter_GridView.DataBind(); Update_disaster_encounter_GridView.DataBind(); Delete_disaster_encounter_GridView.DataBind(); return(disaster_encounter); }
public disaster_encounter disaster_encounter_update(int ID) { disaster_encounter = disaster_encounter.Select(ID); disaster_encounter.disaster_encounter_id = Convert.ToInt32(Update_disaster_encounter_id_txt.Text); disaster_encounter.disaster_id = Convert.ToInt32(Update_disaster_id_txt.Text); disaster_encounter.encounter_id = Convert.ToInt32(Update_encounter_id_txt.Text); disaster_encounter.location_id = Convert.ToInt32(Update_location_id_txt.Text); disaster_encounter.Update(disaster_encounter); Insert_disaster_encounter_GridView.DataBind(); Update_disaster_encounter_GridView.DataBind(); Delete_disaster_encounter_GridView.DataBind(); return(disaster_encounter); }