public void Inspection_Status_delete(int ID) { Inspection_Status.Delete(ID); Insert_Inspection_Status_GridView.DataBind(); Update_Inspection_Status_GridView.DataBind(); Delete_Inspection_Status_GridView.DataBind(); }
public Inspection_Status Inspection_Status_insert() { Inspection_Status.Evacuation_Area_ID = Convert.ToInt32(Insert_Evacuation_Area_ID_txt.Text); Inspection_Status.Address_ID = Convert.ToInt32(Insert_Address_ID_txt.Text); Inspection_Status.Inspection_Code = Insert_Inspection_Code_txt.Text; Inspection_Status.Client_Found = Insert_Client_Found_txt.Text; Inspection_Status.Client_Found_Status = Insert_Client_Found_Status_txt.Text; Inspection_Status = Inspection_Status.Insert(Inspection_Status); Insert_Inspection_Status_GridView.DataBind(); Update_Inspection_Status_GridView.DataBind(); Delete_Inspection_Status_GridView.DataBind(); return(Inspection_Status); }
public Inspection_Status Inspection_Status_update(int ID) { Inspection_Status = Inspection_Status.Select(ID); Inspection_Status.InspectionStatus_ID = Convert.ToInt32(Update_InspectionStatus_ID_txt.Text); Inspection_Status.Evacuation_Area_ID = Convert.ToInt32(Update_Evacuation_Area_ID_txt.Text); Inspection_Status.Address_ID = Convert.ToInt32(Update_Address_ID_txt.Text); Inspection_Status.Inspection_Code = Update_Inspection_Code_txt.Text; Inspection_Status.Client_Found = Update_Client_Found_txt.Text; Inspection_Status.Client_Found_Status = Update_Client_Found_Status_txt.Text; Inspection_Status.Update(Inspection_Status); Insert_Inspection_Status_GridView.DataBind(); Update_Inspection_Status_GridView.DataBind(); Delete_Inspection_Status_GridView.DataBind(); return(Inspection_Status); }