Exemplo n.º 1
0
 public void FEMA_delete(int ID)
 {
     FEMA.Delete(ID);
     Insert_FEMA_GridView.DataBind();
     Update_FEMA_GridView.DataBind();
     Delete_FEMA_GridView.DataBind();
 }
Exemplo n.º 2
0
 public FEMA FEMA_insert()
 {
     FEMA.Cost_Code     = Convert.ToInt32(Insert_Cost_Code_txt.Text);
     FEMA.Equipment     = Insert_Equipment_txt.Text;
     FEMA.Specification = Insert_Specification_txt.Text;
     FEMA.Capacity_Size = Insert_Capacity_Size_txt.Text;
     FEMA.HP            = Insert_HP_txt.Text;
     FEMA.Notes         = Insert_Notes_txt.Text;
     FEMA.Unit          = Insert_Unit_txt.Text;
     FEMA.Rate          = Insert_Rate_txt.Text;
     FEMA = FEMA.Insert(FEMA);
     Insert_FEMA_GridView.DataBind();
     Update_FEMA_GridView.DataBind();
     Delete_FEMA_GridView.DataBind();
     return(FEMA);
 }
Exemplo n.º 3
0
 public FEMA FEMA_update(int ID)
 {
     FEMA               = FEMA.Select(ID);
     FEMA.FEMA_ID       = Convert.ToInt32(Update_FEMA_ID_txt.Text);
     FEMA.Cost_Code     = Convert.ToInt32(Update_Cost_Code_txt.Text);
     FEMA.Equipment     = Update_Equipment_txt.Text;
     FEMA.Specification = Update_Specification_txt.Text;
     FEMA.Capacity_Size = Update_Capacity_Size_txt.Text;
     FEMA.HP            = Update_HP_txt.Text;
     FEMA.Notes         = Update_Notes_txt.Text;
     FEMA.Unit          = Update_Unit_txt.Text;
     FEMA.Rate          = Update_Rate_txt.Text;
     FEMA.Update(FEMA);
     Insert_FEMA_GridView.DataBind();
     Update_FEMA_GridView.DataBind();
     Delete_FEMA_GridView.DataBind();
     return(FEMA);
 }