Beispiel #1
0
 public ActionResult MapServerConfig(MapServerConfigViewModel Model)
 {
     MapServer vMapServer = new MapServer();
     if (vMapServer.SetMapConfig(Model.MapServerAddress, Model.MapDBName, Model.DBUserName, Model.DBPassword))
         ModelState.AddModelError("","地图服务设置成功" );
     else
         ModelState.AddModelError("", "地图服务设置失败");
     return View(Model);
 }
Beispiel #2
0
 public ActionResult MapServerConfig()
 {
     MapServerConfigViewModel vModel = new MapServerConfigViewModel();
     MapServer vMapServer = new MapServer();
     SystemConfigEF vMapConfigEF =  vMapServer.GetMapConfig();
     vModel.MapServerAddress = vMapConfigEF.ItemValue1;
     vModel.MapDBName = vMapConfigEF.ItemValue2;
     vModel.DBUserName = vMapConfigEF.ItemValue3;
     vModel.DBPassword = vMapConfigEF.ItemValue4;
     return View(vModel);
 }