public Pet_Vaccine Insert_Pet_Vaccine_select(int ID) { Pet_Vaccine = Pet_Vaccine.Select(ID); Insert_Vaccine_Type_ID_txt.Text = Convert.ToString(Pet_Vaccine.Vaccine_Type_ID); Insert_Allergies_txt.Text = Convert.ToString(Pet_Vaccine.Allergies); Insert_Current_Medacations_txt.Text = Convert.ToString(Pet_Vaccine.Current_Medacations); Insert_Last_Vaccine_Given_txt.Text = Convert.ToString(Pet_Vaccine.Last_Vaccine_Given); Insert_Date_Time_Stamp_txt.Text = Convert.ToString(Pet_Vaccine.Date_Time_Stamp); return Pet_Vaccine; }
public Pet_Vaccine Insert_Pet_Vaccine_select(int ID) { Pet_Vaccine = Pet_Vaccine.Select(ID); Insert_Vaccine_Type_ID_txt.Text = Convert.ToString(Pet_Vaccine.Vaccine_Type_ID); Insert_Allergies_txt.Text = Convert.ToString(Pet_Vaccine.Allergies); Insert_Current_Medacations_txt.Text = Convert.ToString(Pet_Vaccine.Current_Medacations); Insert_Last_Vaccine_Given_txt.Text = Convert.ToString(Pet_Vaccine.Last_Vaccine_Given); Insert_Date_Time_Stamp_txt.Text = Convert.ToString(Pet_Vaccine.Date_Time_Stamp); return(Pet_Vaccine); }
public Pet_Vaccine Pet_Vaccine_insert() { Pet_Vaccine.Vaccine_Type_ID = Convert.ToInt32(Insert_Vaccine_Type_ID_txt.Text); Pet_Vaccine.Allergies = Insert_Allergies_txt.Text; Pet_Vaccine.Current_Medacations = Insert_Current_Medacations_txt.Text; Pet_Vaccine.Last_Vaccine_Given = Convert.ToDateTime(Insert_Last_Vaccine_Given_txt.Text); Pet_Vaccine.Date_Time_Stamp = Convert.ToDateTime(Insert_Date_Time_Stamp_txt.Text); Pet_Vaccine = Pet_Vaccine.Insert(Pet_Vaccine); Insert_Pet_Vaccine_GridView.DataBind(); Update_Pet_Vaccine_GridView.DataBind(); Delete_Pet_Vaccine_GridView.DataBind(); return(Pet_Vaccine); }
public Pet_Vaccine Pet_Vaccine_update(int ID) { Pet_Vaccine = Pet_Vaccine.Select(ID); Pet_Vaccine.Pet_Vaccine_ID = Convert.ToInt32(Update_Pet_Vaccine_ID_txt.Text); Pet_Vaccine.Vaccine_Type_ID = Convert.ToInt32(Update_Vaccine_Type_ID_txt.Text); Pet_Vaccine.Allergies = Update_Allergies_txt.Text; Pet_Vaccine.Current_Medacations = Update_Current_Medacations_txt.Text; Pet_Vaccine.Last_Vaccine_Given = Convert.ToDateTime(Update_Last_Vaccine_Given_txt.Text); Pet_Vaccine.Date_Time_Stamp = Convert.ToDateTime(Update_Date_Time_Stamp_txt.Text); Pet_Vaccine.Update(Pet_Vaccine); Insert_Pet_Vaccine_GridView.DataBind(); Update_Pet_Vaccine_GridView.DataBind(); Delete_Pet_Vaccine_GridView.DataBind(); return(Pet_Vaccine); }
public Pet_Vaccine Pet_Vaccine_update(int ID) { Pet_Vaccine = Pet_Vaccine.Select(ID); Pet_Vaccine.Pet_Vaccine_ID = Convert.ToInt32(Update_Pet_Vaccine_ID_txt.Text); Pet_Vaccine.Vaccine_Type_ID = Convert.ToInt32(Update_Vaccine_Type_ID_txt.Text); Pet_Vaccine.Allergies = Update_Allergies_txt.Text; Pet_Vaccine.Current_Medacations = Update_Current_Medacations_txt.Text; Pet_Vaccine.Last_Vaccine_Given = Convert.ToDateTime(Update_Last_Vaccine_Given_txt.Text); Pet_Vaccine.Date_Time_Stamp = Convert.ToDateTime(Update_Date_Time_Stamp_txt.Text); Pet_Vaccine.Update(Pet_Vaccine); Insert_Pet_Vaccine_GridView.DataBind(); Update_Pet_Vaccine_GridView.DataBind(); Delete_Pet_Vaccine_GridView.DataBind(); return Pet_Vaccine; }
public Pet_Vaccine Pet_Vaccine_insert() { Pet_Vaccine.Vaccine_Type_ID = Convert.ToInt32(Insert_Vaccine_Type_ID_txt.Text); Pet_Vaccine.Allergies = Insert_Allergies_txt.Text; Pet_Vaccine.Current_Medacations = Insert_Current_Medacations_txt.Text; Pet_Vaccine.Last_Vaccine_Given = Convert.ToDateTime(Insert_Last_Vaccine_Given_txt.Text); Pet_Vaccine.Date_Time_Stamp = Convert.ToDateTime(Insert_Date_Time_Stamp_txt.Text); Pet_Vaccine = Pet_Vaccine.Insert(Pet_Vaccine); Insert_Pet_Vaccine_GridView.DataBind(); Update_Pet_Vaccine_GridView.DataBind(); Delete_Pet_Vaccine_GridView.DataBind(); return Pet_Vaccine; }
protected void Update_Select_Record(object sender, EventArgs e) { Pet_Vaccine = Update_Pet_Vaccine_select(Convert.ToInt32(Update_Pet_Vaccine_GridView.SelectedValue)); }
protected void UPDATE(object sender, EventArgs e) { Pet_Vaccine = Pet_Vaccine_update(Convert.ToInt32(Update_Pet_Vaccine_GridView.SelectedValue)); }
protected void INSERT(object sender, EventArgs e) { Pet_Vaccine = Pet_Vaccine_insert(); }
protected void Insert_Select_Record(object sender, EventArgs e) { Pet_Vaccine = Insert_Pet_Vaccine_select(Convert.ToInt32(Insert_Pet_Vaccine_GridView.SelectedValue)); }