public FEMA Delete_FEMA_select(int ID)
 {
     FEMA = FEMA.Select(ID);
     Delete_FEMA_ID_txt_lbl.Text = Convert.ToString(FEMA.FEMA_ID);
     Delete_Cost_Code_txt_lbl.Text = Convert.ToString(FEMA.Cost_Code);
     Delete_Equipment_txt_lbl.Text = Convert.ToString(FEMA.Equipment);
     Delete_Specification_txt_lbl.Text = Convert.ToString(FEMA.Specification);
     Delete_Capacity_Size_txt_lbl.Text = Convert.ToString(FEMA.Capacity_Size);
     Delete_HP_txt_lbl.Text = Convert.ToString(FEMA.HP);
     Delete_Notes_txt_lbl.Text = Convert.ToString(FEMA.Notes);
     Delete_Unit_txt_lbl.Text = Convert.ToString(FEMA.Unit);
     Delete_Rate_txt_lbl.Text = Convert.ToString(FEMA.Rate);
     return FEMA;
 }
 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;
 }
 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;
 }
 protected void Update_Select_Record(object sender, EventArgs e)
 {
     FEMA = Update_FEMA_select(Convert.ToInt32(Update_FEMA_GridView.SelectedValue));
 }
 protected void UPDATE(object sender, EventArgs e)
 {
     FEMA = FEMA_update(Convert.ToInt32(Update_FEMA_GridView.SelectedValue));
 }
 protected void Insert_Select_Record(object sender, EventArgs e)
 {
     FEMA = Insert_FEMA_select(Convert.ToInt32(Insert_FEMA_GridView.SelectedValue));
 }
 protected void INSERT(object sender, EventArgs e)
 {
     FEMA = FEMA_insert();
 }
 public FEMA Insert_FEMA_select(int ID)
 {
     FEMA = FEMA.Select(ID);
     Insert_Cost_Code_txt.Text = Convert.ToString(FEMA.Cost_Code);
     Insert_Equipment_txt.Text = Convert.ToString(FEMA.Equipment);
     Insert_Specification_txt.Text = Convert.ToString(FEMA.Specification);
     Insert_Capacity_Size_txt.Text = Convert.ToString(FEMA.Capacity_Size);
     Insert_HP_txt.Text = Convert.ToString(FEMA.HP);
     Insert_Notes_txt.Text = Convert.ToString(FEMA.Notes);
     Insert_Unit_txt.Text = Convert.ToString(FEMA.Unit);
     Insert_Rate_txt.Text = Convert.ToString(FEMA.Rate);
     return FEMA;
 }