Пример #1
0
 public void mobile_unit_delete(int ID)
 {
     mobile_unit.Delete(ID);
     Insert_mobile_unit_GridView.DataBind();
     Update_mobile_unit_GridView.DataBind();
     Delete_mobile_unit_GridView.DataBind();
 }
Пример #2
0
 public mobile_unit mobile_unit_insert()
 {
     mobile_unit.vehicle_id     = Convert.ToInt32(Insert_vehicle_id_txt.Text);
     mobile_unit.mobile_desc    = Insert_mobile_desc_txt.Text;
     mobile_unit.call_center_id = Convert.ToInt32(Insert_call_center_id_txt.Text);
     mobile_unit = mobile_unit.Insert(mobile_unit);
     Insert_mobile_unit_GridView.DataBind();
     Update_mobile_unit_GridView.DataBind();
     Delete_mobile_unit_GridView.DataBind();
     return(mobile_unit);
 }
Пример #3
0
 public mobile_unit mobile_unit_update(int ID)
 {
     mobile_unit = mobile_unit.Select(ID);
     mobile_unit.mobile_unit_id = Convert.ToInt32(Update_mobile_unit_id_txt.Text);
     mobile_unit.vehicle_id     = Convert.ToInt32(Update_vehicle_id_txt.Text);
     mobile_unit.mobile_desc    = Update_mobile_desc_txt.Text;
     mobile_unit.call_center_id = Convert.ToInt32(Update_call_center_id_txt.Text);
     mobile_unit.Update(mobile_unit);
     Insert_mobile_unit_GridView.DataBind();
     Update_mobile_unit_GridView.DataBind();
     Delete_mobile_unit_GridView.DataBind();
     return(mobile_unit);
 }