Ejemplo n.º 1
0
 public void Obstruction_delete(int ID)
 {
     Obstruction.Delete(ID);
     Insert_Obstruction_GridView.DataBind();
     Update_Obstruction_GridView.DataBind();
     Delete_Obstruction_GridView.DataBind();
 }
Ejemplo n.º 2
0
 public Obstruction Obstruction_insert()
 {
     Obstruction.Evacuation_Area_ID     = Convert.ToInt32(Insert_Evacuation_Area_ID_txt.Text);
     Obstruction.Location_ID            = Convert.ToInt32(Insert_Location_ID_txt.Text);
     Obstruction.Date_Reported          = Convert.ToDateTime(Insert_Date_Reported_txt.Text);
     Obstruction.Expected_Recovery_Date = Convert.ToDateTime(Insert_Expected_Recovery_Date_txt.Text);
     Obstruction.Type     = Insert_Type_txt.Text;
     Obstruction.Severity = Insert_Severity_txt.Text;
     Obstruction          = Obstruction.Insert(Obstruction);
     Insert_Obstruction_GridView.DataBind();
     Update_Obstruction_GridView.DataBind();
     Delete_Obstruction_GridView.DataBind();
     return(Obstruction);
 }
Ejemplo n.º 3
0
 public Obstruction Obstruction_update(int ID)
 {
     Obstruction = Obstruction.Select(ID);
     Obstruction.Obstruction_ID         = Convert.ToInt32(Update_Obstruction_ID_txt.Text);
     Obstruction.Evacuation_Area_ID     = Convert.ToInt32(Update_Evacuation_Area_ID_txt.Text);
     Obstruction.Location_ID            = Convert.ToInt32(Update_Location_ID_txt.Text);
     Obstruction.Date_Reported          = Convert.ToDateTime(Update_Date_Reported_txt.Text);
     Obstruction.Expected_Recovery_Date = Convert.ToDateTime(Update_Expected_Recovery_Date_txt.Text);
     Obstruction.Type     = Update_Type_txt.Text;
     Obstruction.Severity = Update_Severity_txt.Text;
     Obstruction.Update(Obstruction);
     Insert_Obstruction_GridView.DataBind();
     Update_Obstruction_GridView.DataBind();
     Delete_Obstruction_GridView.DataBind();
     return(Obstruction);
 }