示例#1
0
 public void locationDMCS_delete(int ID)
 {
     locationDMCS.Delete(ID);
     Insert_locationDMCS_GridView.DataBind();
     Update_locationDMCS_GridView.DataBind();
     Delete_locationDMCS_GridView.DataBind();
 }
示例#2
0
 public locationDMCS locationDMCS_insert()
 {
     locationDMCS.city          = Insert_city_txt.Text;
     locationDMCS.county        = Insert_county_txt.Text;
     locationDMCS.e_lat         = Convert.ToInt32(Insert_e_lat_txt.Text);
     locationDMCS.e_long        = Convert.ToInt32(Insert_e_long_txt.Text);
     locationDMCS.location_desc = Insert_location_desc_txt.Text;
     locationDMCS.n_lat         = Convert.ToInt32(Insert_n_lat_txt.Text);
     locationDMCS.n_long        = Convert.ToInt32(Insert_n_long_txt.Text);
     locationDMCS.state         = Insert_state_txt.Text;
     locationDMCS.type          = Insert_type_txt.Text;
     locationDMCS.w_lat         = Convert.ToInt32(Insert_w_lat_txt.Text);
     locationDMCS.w_long        = Convert.ToInt32(Insert_w_long_txt.Text);
     locationDMCS.zip           = Convert.ToInt32(Insert_zip_txt.Text);
     locationDMCS = locationDMCS.Insert(locationDMCS);
     Insert_locationDMCS_GridView.DataBind();
     Update_locationDMCS_GridView.DataBind();
     Delete_locationDMCS_GridView.DataBind();
     return(locationDMCS);
 }
示例#3
0
 public locationDMCS locationDMCS_update(int ID)
 {
     locationDMCS = locationDMCS.Select(ID);
     locationDMCS.locationdmcs_id = Convert.ToInt32(Update_locationdmcs_id_txt.Text);
     locationDMCS.city            = Update_city_txt.Text;
     locationDMCS.county          = Update_county_txt.Text;
     locationDMCS.e_lat           = Convert.ToInt32(Update_e_lat_txt.Text);
     locationDMCS.e_long          = Convert.ToInt32(Update_e_long_txt.Text);
     locationDMCS.location_desc   = Update_location_desc_txt.Text;
     locationDMCS.n_lat           = Convert.ToInt32(Update_n_lat_txt.Text);
     locationDMCS.n_long          = Convert.ToInt32(Update_n_long_txt.Text);
     locationDMCS.state           = Update_state_txt.Text;
     locationDMCS.type            = Update_type_txt.Text;
     locationDMCS.w_lat           = Convert.ToInt32(Update_w_lat_txt.Text);
     locationDMCS.w_long          = Convert.ToInt32(Update_w_long_txt.Text);
     locationDMCS.zip             = Convert.ToInt32(Update_zip_txt.Text);
     locationDMCS.Update(locationDMCS);
     Insert_locationDMCS_GridView.DataBind();
     Update_locationDMCS_GridView.DataBind();
     Delete_locationDMCS_GridView.DataBind();
     return(locationDMCS);
 }