Esempio n. 1
0
 public void Pet_Deceased_delete(int ID)
 {
     Pet_Deceased.Delete(ID);
     Insert_Pet_Deceased_GridView.DataBind();
     Update_Pet_Deceased_GridView.DataBind();
     Delete_Pet_Deceased_GridView.DataBind();
 }
Esempio n. 2
0
 public Pet_Deceased Pet_Deceased_insert()
 {
     Pet_Deceased.Date_Deceased = Convert.ToDateTime(Insert_Date_Deceased_txt.Text);
     Pet_Deceased.Location_ID   = Convert.ToInt32(Insert_Location_ID_txt.Text);
     Pet_Deceased.Funeral       = Insert_Funeral_txt.Text;
     Pet_Deceased.Cemetary_Name = Insert_Cemetary_Name_txt.Text;
     Pet_Deceased.Deceased_Type = Insert_Deceased_Type_txt.Text;
     Pet_Deceased.Date_Created  = Convert.ToDateTime(Insert_Date_Created_txt.Text);
     Pet_Deceased.Date_Modified = Convert.ToDateTime(Insert_Date_Modified_txt.Text);
     Pet_Deceased = Pet_Deceased.Insert(Pet_Deceased);
     Insert_Pet_Deceased_GridView.DataBind();
     Update_Pet_Deceased_GridView.DataBind();
     Delete_Pet_Deceased_GridView.DataBind();
     return(Pet_Deceased);
 }
Esempio n. 3
0
 public Pet_Deceased Pet_Deceased_update(int ID)
 {
     Pet_Deceased = Pet_Deceased.Select(ID);
     Pet_Deceased.Pet_Deceased_ID = Convert.ToInt32(Update_Pet_Deceased_ID_txt.Text);
     Pet_Deceased.Date_Deceased   = Convert.ToDateTime(Update_Date_Deceased_txt.Text);
     Pet_Deceased.Location_ID     = Convert.ToInt32(Update_Location_ID_txt.Text);
     Pet_Deceased.Funeral         = Update_Funeral_txt.Text;
     Pet_Deceased.Cemetary_Name   = Update_Cemetary_Name_txt.Text;
     Pet_Deceased.Deceased_Type   = Update_Deceased_Type_txt.Text;
     Pet_Deceased.Date_Created    = Convert.ToDateTime(Update_Date_Created_txt.Text);
     Pet_Deceased.Date_Modified   = Convert.ToDateTime(Update_Date_Modified_txt.Text);
     Pet_Deceased.Update(Pet_Deceased);
     Insert_Pet_Deceased_GridView.DataBind();
     Update_Pet_Deceased_GridView.DataBind();
     Delete_Pet_Deceased_GridView.DataBind();
     return(Pet_Deceased);
 }