public demobilization_location Delete_demobilization_location_select(int ID) { demobilization_location = demobilization_location.Select(ID); Delete_demo_location_id_txt_lbl.Text = Convert.ToString(demobilization_location.demo_location_id); Delete_demo_id_txt_lbl.Text = Convert.ToString(demobilization_location.demo_id); Delete_location_id_txt_lbl.Text = Convert.ToString(demobilization_location.location_id); Delete_location_description_txt_lbl.Text = Convert.ToString(demobilization_location.location_description); return demobilization_location; }
public demobilization_location demobilization_location_insert() { demobilization_location.demo_id = Convert.ToInt32(Insert_demo_id_txt.Text); demobilization_location.location_id = Convert.ToInt32(Insert_location_id_txt.Text); demobilization_location.location_description = Insert_location_description_txt.Text; demobilization_location = demobilization_location.Insert(demobilization_location); Insert_demobilization_location_GridView.DataBind(); Update_demobilization_location_GridView.DataBind(); Delete_demobilization_location_GridView.DataBind(); return demobilization_location; }
public demobilization_location demobilization_location_update(int ID) { demobilization_location = demobilization_location.Select(ID); demobilization_location.demo_location_id = Convert.ToInt32(Update_demo_location_id_txt.Text); demobilization_location.demo_id = Convert.ToInt32(Update_demo_id_txt.Text); demobilization_location.location_id = Convert.ToInt32(Update_location_id_txt.Text); demobilization_location.location_description = Update_location_description_txt.Text; demobilization_location.Update(demobilization_location); Insert_demobilization_location_GridView.DataBind(); Update_demobilization_location_GridView.DataBind(); Delete_demobilization_location_GridView.DataBind(); return demobilization_location; }
///////////////////////// //////////////////////// /////////////////////// ////////////////////// ///////////////////// //Update Tab Methods protected void Update_Select_Record(object sender, EventArgs e) { demobilization_location = Update_demobilization_location_select(Convert.ToInt32(Update_demobilization_location_GridView.SelectedValue)); }
protected void UPDATE(object sender, EventArgs e) { demobilization_location = demobilization_location_update(Convert.ToInt32(Update_demobilization_location_GridView.SelectedValue)); }
protected void INSERT(object sender, EventArgs e) { demobilization_location = demobilization_location_insert(); }