Пример #1
0
 public void missing_delete(int ID)
 {
     missing.Delete(ID);
     Insert_missing_GridView.DataBind();
     Update_missing_GridView.DataBind();
     Delete_missing_GridView.DataBind();
 }
Пример #2
0
 public missing missing_insert()
 {
     missing.client_other_info     = Insert_client_other_info_txt.Text;
     missing.clothing              = Insert_clothing_txt.Text;
     missing.date_of_disappearance = Convert.ToDateTime(Insert_date_of_disappearance_txt.Text);
     missing.last_known_location   = Insert_last_known_location_txt.Text;
     missing = missing.Insert(missing);
     Insert_missing_GridView.DataBind();
     Update_missing_GridView.DataBind();
     Delete_missing_GridView.DataBind();
     return(missing);
 }
Пример #3
0
 public missing missing_update(int ID)
 {
     missing                       = missing.Select(ID);
     missing.Missing_id            = Convert.ToInt32(Update_Missing_id_txt.Text);
     missing.client_other_info     = Update_client_other_info_txt.Text;
     missing.clothing              = Update_clothing_txt.Text;
     missing.date_of_disappearance = Convert.ToDateTime(Update_date_of_disappearance_txt.Text);
     missing.last_known_location   = Update_last_known_location_txt.Text;
     missing.Update(missing);
     Insert_missing_GridView.DataBind();
     Update_missing_GridView.DataBind();
     Delete_missing_GridView.DataBind();
     return(missing);
 }