/**
|
* 请求获取一张图各图层
|
*/
|
// 重点人口信息管理,获取总体分布信息
|
function getKeypeople() {
|
$.ajax({
|
type : "post",
|
url : "../../easyAPI/keyPeople/getKeypeople.action",
|
contentType : "charset=utf-8",
|
success : function(data) {
|
if (data.length != 0) {
|
showKeypeople_3D(data);
|
}else{
|
console.log("获取重点人口信息为空!");
|
}
|
},
|
error : function(XMLHttpRequest, textStatus, errorThrown) {
|
console.log("获取重点人口信息失败!");
|
}
|
});
|
}
|
// 重点人口信息管理,根据人口ID获取人口详细信息
|
function getKeypeopleById(id) {
|
$.ajax({
|
type : "post",
|
url : "../../easyAPI/keyPeople/getKeypeopleById.action",
|
data : "kpId="+id,
|
success : function(data) {
|
if (data.length != 0) {
|
showInfoKeypeople_3D(data);
|
}else{
|
console.log("获取重点人口信息为空!");
|
}
|
},
|
error : function(XMLHttpRequest, textStatus, errorThrown) {
|
console.log("根据ID获取重点人口详细信息失败!");
|
}
|
});
|
}
|
//重点人口信息管理,条件查询重点人口信息
|
function queryKeypeople(queryData) {
|
var args = JSON.stringify(queryData);
|
$.ajax({
|
type : "post",
|
url : "../../easyAPI/keyPeople/queryKeypeople.action",
|
data : args,
|
contentType : "application/json;charset=utf-8",
|
success : function(data) {
|
if (data.length != 0) {
|
showQueryKeypeople_3D(data);
|
}else{
|
closesearchresult();
|
swal("没有重点人口信息符合您的检索条件!","请重试!","error");
|
}
|
},
|
error : function(XMLHttpRequest, textStatus, errorThrown) {
|
console.log("条件查询重点人口信息失败!");
|
}
|
});
|
}
|
//人口联动查询-根据当前地址id查询人口信息
|
function getPeopleByAddId(id){
|
$.ajax({
|
type : "post",
|
url : "../../easyAPI/People/getPeopleByAddId.action",
|
data : "addId="+id,
|
success : function(data) {
|
if (data.length != 0) {
|
showRelatedPeople(data);
|
}else{
|
swal("获取人口联动信息为空!","请重试!","error");
|
}
|
},
|
error : function(XMLHttpRequest, textStatus, errorThrown) {
|
console.log("获取人口联动信息失败!");
|
}
|
});
|
}
|
//人口联动查询-根据当前地址id查询房屋信息
|
function getHouseByAddId(id){
|
$.ajax({
|
type : "post",
|
url : "../../easyAPI/house/getHouseByAddId.action",
|
data : "addId="+id,
|
success : function(data) {
|
if (data.length != 0) {
|
showRelatedHouse(data);
|
}else{
|
swal("获取房屋联动信息为空!","请重试!","error");
|
}
|
},
|
error : function(XMLHttpRequest, textStatus, errorThrown) {
|
console.log("获取房屋联动信息失败!");
|
}
|
});
|
}
|
// 流动人口信息管理,获取总体分布信息
|
function getFlowpeople() {
|
$.ajax({
|
type : "post",
|
url : "../../easyAPI/flowPeople/getFlowpeople.action",
|
contentType : "charset=utf-8",
|
success : function(data) {
|
if (data.length != 0) {
|
showFlowpeople_3D(data);
|
}else{
|
console.log("获取流动人口信息为空!");
|
}
|
},
|
error : function(XMLHttpRequest, textStatus, errorThrown) {
|
console.log("获取流动人口总体信息失败!");
|
}
|
});
|
}
|
// 流动人口信息管理,根据人口ID获取流动人口详细信息
|
function getFlowpeopleById(id) {
|
$.ajax({
|
type : "post",
|
url : "../../easyAPI/flowPeople/getFlowpeopleById.action",
|
data : "fpId="+id,
|
success : function(data) {
|
if (data.length != 0) {
|
showInfoFlowpeople_3D(data);
|
}else{
|
console.log("获取流动人口信息为空!");
|
}
|
},
|
error : function(XMLHttpRequest, textStatus, errorThrown) {
|
console.log("根据ID获取流动人口详细信息失败!");
|
}
|
});
|
}
|
// 流动人口信息管理,根据条件查询流动人口信息
|
function queryFlowpeople(queryData) {
|
var args = JSON.stringify(queryData);
|
$.ajax({
|
type : "post",
|
url : "../../easyAPI/flowPeople/queryFlowpeople.action",
|
data : args,
|
contentType : "application/json;charset=utf-8",
|
success : function(data) {
|
if (data.length != 0) {
|
showQueryFlowpeople_3D(data);
|
}else{
|
closesearchresult();
|
swal("没有流动人口信息符合您的检索条件!","请重试!","error");
|
}
|
},
|
error : function(XMLHttpRequest, textStatus, errorThrown) {
|
console.log("根据条件查询流动人口信息请求失败!");
|
}
|
});
|
}
|
// 实有房屋信息管理—获取所有房屋分布信息
|
function getHouse() {
|
$.ajax({
|
type : "post",
|
url : "../../easyAPI/house/getHouse.action",
|
contentType : "charset=utf-8",
|
success : function(data) {
|
if (data.length != 0) {
|
showHouse_3D(data);
|
}else{
|
console.log("获取房屋信息为空!");
|
}
|
},
|
error : function(XMLHttpRequest, textStatus, errorThrown) {
|
console.log("获取所有房屋分布信息请求失败!");
|
}
|
});
|
}
|
// 实有房屋信息管理—根据房屋ID获取某栋房屋分布信息
|
function getHouseById(id) {
|
$.ajax({
|
type : "post",
|
url : "../../easyAPI/house/getHouseById.action",
|
data : "houseId="+id,
|
success : function(data) {
|
if (data.length != 0) {
|
showInfoHouse_3D(data);
|
}else{
|
console.log("获取房屋信息为空!");
|
}
|
},
|
error : function(XMLHttpRequest, textStatus, errorThrown) {
|
console.log("根据房屋ID获取某栋房屋分布信息请求失败!");
|
}
|
});
|
}
|
// 实有房屋信息管理—条件查询实有房屋信息
|
function queryHouse(queryData) {
|
var args = JSON.stringify(queryData);
|
$.ajax({
|
type : "post",
|
url : "../../easyAPI/house/queryHouse.action",
|
data : args,
|
contentType : "application/json;charset=utf-8",
|
success : function(data) {
|
if (data.length != 0) {
|
showQueryHouse_3D(data);
|
}else{
|
closesearchresult();
|
swal("没有实有房屋信息符合您的检索条件!","请重试!","error");
|
}
|
},
|
error : function(XMLHttpRequest, textStatus, errorThrown) {
|
console.log("条件查询实有房屋信息请求失败!");
|
}
|
});
|
}
|
// 实有重点单位管理—获取实有重点单位分布信息
|
function getKeyDepartment() {
|
$.ajax({
|
type : "post",
|
url : "../../easyAPI/keyDepartment/getKeyDepartment.action",
|
contentType : "charset=utf-8",
|
success : function(data) {
|
if (data.length != 0) {
|
showKeyDepartment_3D(data);
|
}else{
|
console.log("获取实有重点单位分布信息为空!");
|
}
|
},
|
error : function(XMLHttpRequest, textStatus, errorThrown) {
|
console.log("获取实有重点单位分布信息请求失败!");
|
}
|
});
|
}
|
// 实有重点单位管理—根据ID获取某栋实有重点单位信息
|
function getKeyDepartmentById(id) {
|
$.ajax({
|
type : "post",
|
url : "../../easyAPI/keyDepartment/getKeyDepartmentById.action",
|
data : "keyDepId="+id,
|
success : function(data) {
|
if (data.length != 0) {
|
showInfoKeyDepartment_3D(data);
|
}else{
|
console.log("获取实有重点单位分布信息为空!");
|
}
|
},
|
error : function(XMLHttpRequest, textStatus, errorThrown) {
|
console.log("根据ID获取某栋实有重点单位信息请求失败!");
|
}
|
});
|
}
|
// 实有重点单位管理—条件查询实有重点单位信息
|
function queryKeyDepartment(queryData) {
|
var args = JSON.stringify(queryData);
|
$.ajax({
|
type : "post",
|
url : "../../easyAPI/keyDepartment/queryKeyDepartment.action",
|
data : args,
|
contentType : "application/json;charset=utf-8",
|
success : function(data) {
|
if (data.length != 0) {
|
showQueryKeyDepartment_3D(data);
|
}else{
|
closesearchresult();
|
swal("没有重点单位信息符合您的检索条件!","请重试!","error");
|
}
|
},
|
error : function(XMLHttpRequest, textStatus, errorThrown) {
|
console.log("条件查询实有重点单位信息请求失败!");
|
}
|
});
|
}
|
// 消防列管单位管理—获取所有分布信息
|
function getFireControl() {
|
$.ajax({
|
type : "post",
|
url : "../../easyAPI/fireControl/getFireControl.action",
|
contentType : "charset=utf-8",
|
success : function(data) {
|
if (data.length != 0) {
|
showFireControlUnit_3D(data);
|
}else{
|
console.log("获取消防列管单位分布信息为空!");
|
}
|
},
|
error : function(XMLHttpRequest, textStatus, errorThrown) {
|
console.log("获取所有消防列管单位分布信息请求失败!");
|
}
|
});
|
}
|
// 消防列管单位管理—根据ID获取某个详细信息
|
function getFireControlById(id) {
|
$.ajax({
|
type : "post",
|
url : "../../easyAPI/fireControl/getFireControlById.action",
|
data : "fcId="+id,
|
success : function(data) {
|
if (data.length != 0) {
|
showInfoFireControl_3D(data);
|
}else{
|
console.log("获取消防列管单位分布信息为空!");
|
}
|
},
|
error : function(XMLHttpRequest, textStatus, errorThrown) {
|
console.log("根据ID获取消防列管单位详细信息请求失败!");
|
}
|
});
|
}
|
// 消防列管单位管理—条件查询消防列管单位
|
function queryFireUnit(queryData) {
|
var args = JSON.stringify(queryData);
|
$.ajax({
|
type : "post",
|
url : "../../easyAPI/fireControl/queryFireControl.action",
|
data : args,
|
contentType : "application/json;charset=utf-8",
|
success : function(data) {
|
if (data.length != 0) {
|
showQueryFireControlUnit_3D(data);
|
}else{
|
closesearchresult();
|
swal("没有消防列管单位信息符合您的检索条件!","请重试!","error");
|
}
|
},
|
error : function(XMLHttpRequest, textStatus, errorThrown) {
|
console.log("条件查询消防列管单位信息请求失败!");
|
}
|
});
|
}
|
// 治安卡口管理—获取所有分布信息
|
function getSecurityS() {
|
$.ajax({
|
type : "post",
|
url : "../../easyAPI/securityS/getSecurityS.action",
|
contentType : "charset=utf-8",
|
success : function(data) {
|
if (data.length != 0) {
|
showSaveStation_3D(data);
|
}else{
|
console.log("获取治安卡口管理分布信息为空!");
|
}
|
},
|
error : function(XMLHttpRequest, textStatus, errorThrown) {
|
console.log("获取所有治安卡口管理分布信息请求失败!");
|
}
|
});
|
}
|
// 治安卡口管理—根据ID获取某个详细信息
|
function getSecuritySById(id) {
|
$.ajax({
|
type : "post",
|
url : "../../easyAPI/securityS/getSecuritySById.action",
|
data : "sId="+id,
|
success : function(data) {
|
if (data.length != 0) {
|
showInfoSecurityS_3D(data);
|
}else{
|
console.log("获取治安卡口管理分布信息为空!");
|
}
|
},
|
error : function(XMLHttpRequest, textStatus, errorThrown) {
|
console.log("根据ID获取治安卡口详细信息请求失败!");
|
}
|
});
|
}
|
// 治安卡口管理-条件查询治安卡口管理
|
function querySecurityS(queryData) {
|
var args = JSON.stringify(queryData);
|
$.ajax({
|
type : "post",
|
url : "../../easyAPI/securityS/querySecurityS.action",
|
data : args,
|
contentType : "application/json;charset=utf-8",
|
success : function(data) {
|
if (data.length != 0) {
|
showQuerySaveStation_3D(data);
|
}else{
|
closesearchresult();
|
swal("没有警务站和治安卡口信息符合您的检索条件!","请重试!","error");
|
}
|
},
|
error : function(XMLHttpRequest, textStatus, errorThrown) {
|
console.log("条件查询治安卡口信息请求失败!");
|
}
|
});
|
}
|
// 行业场所管理—获取所有分布信息
|
function getBusiness() {
|
$.ajax({
|
type : "post",
|
url : "../../easyAPI/business/getBusiness.action",
|
contentType : "charset=utf-8",
|
success : function(data) {
|
if (data.length != 0) {
|
showBusinessPlace_3D(data);
|
}else{
|
console.log("获取行业场所分布信息为空!");
|
}
|
},
|
error : function(XMLHttpRequest, textStatus, errorThrown) {
|
console.log("获取所有行业场所分布信息请求失败!");
|
}
|
});
|
}
|
// 行业场所管理—根据ID获取某个详细信息
|
function getBusinessById(id) {
|
$.ajax({
|
type : "post",
|
url : "../../easyAPI/business/getBusinessById.action",
|
data : "businessId="+id,
|
success : function(data) {
|
if (data.length != 0) {
|
showInfoBusiness_3D(data);
|
}else{
|
console.log("获取行业场所分布信息为空!");
|
}
|
},
|
error : function(XMLHttpRequest, textStatus, errorThrown) {
|
console.log("根据ID获取行业场所详细信息请求失败!");
|
}
|
});
|
}
|
// 行业场所管理-条件查询行业场所
|
function queryBusiness(queryData) {
|
var args = JSON.stringify(queryData);
|
$.ajax({
|
type : "post",
|
url : "../../easyAPI/business/queryBusiness.action",
|
data : args,
|
contentType : "application/json;charset=utf-8",
|
success : function(data) {
|
if (data.length != 0) {
|
showQueryBusinessPlace_3D(data);
|
}else{
|
closesearchresult();
|
swal("没有行业场所与人员密集地信息符合您的检索条件!","请重试!","error");
|
}
|
},
|
error : function(XMLHttpRequest, textStatus, errorThrown) {
|
console.log("条件查询行业场所信息请求失败!");
|
}
|
});
|
}
|
// 应急物资仓库管理—获取所有分布信息
|
function getEmergencySupply() {
|
$.ajax({
|
type : "post",
|
url : "../../easyAPI/emergencyStore/getEmergencyStore.action",
|
contentType : "charset=utf-8",
|
success : function(data) {
|
if (data.length != 0) {
|
showEmergencySupplies_3D(data);
|
}else{
|
console.log("获取应急物资仓库分布信息为空!");
|
}
|
},
|
error : function(XMLHttpRequest, textStatus, errorThrown) {
|
console.log("获取所有应急物资仓库分布信息请求失败!");
|
}
|
});
|
}
|
//应急物资仓库管理—根据ID获取某个详细信息
|
function getEmergencySupplyById(id) {
|
$.ajax({
|
type : "post",
|
url : "../../easyAPI/emergencyStore/getEmergencyStoreById.action",
|
data : "storeId="+id,
|
success : function(data) {
|
if (data.length != 0) {
|
showInfoEmergencySupplies_3D(data);
|
}else{
|
console.log("获取应急物资仓库分布信息为空!");
|
}
|
},
|
error : function(XMLHttpRequest, textStatus, errorThrown) {
|
console.log("根据ID获应急物资仓库详细信息请求失败!");
|
}
|
});
|
}
|
//应急物资仓库管理-条件查询应急物资仓库
|
function queryEmergencySupplies(queryData) {
|
var args = JSON.stringify(queryData);
|
$.ajax({
|
type : "post",
|
url : "../../easyAPI/emergencyStore/queryEmergencyStore.action",
|
data : args,
|
contentType : "application/json;charset=utf-8",
|
success : function(data) {
|
if (data.length != 0) {
|
showQueryEmergencySupplies_3D(data);
|
}else{
|
closesearchresult();
|
swal("没有应急物资仓库信息符合您的检索条件!","请重试!","error");
|
}
|
},
|
error : function(XMLHttpRequest, textStatus, errorThrown) {
|
console.log("条件查询应急物资仓库信息请求失败!");
|
}
|
});
|
}
|
//警用网格—获取所有分布信息
|
function getPoliceNet() {
|
$.ajax({
|
type : "post",
|
url : "../../easyAPI/policeNet/getPoliceNet.action",
|
contentType : "charset=utf-8",
|
success : function(data) {
|
if (data.length != 0) {
|
showPoliceNet_3D(data);
|
}else{
|
console.log("警用网格分布信息为空!");
|
}
|
},
|
error : function(XMLHttpRequest, textStatus, errorThrown) {
|
console.log("获取所有警用网格分布信息请求失败!");
|
}
|
});
|
}
|
//巡区信息管理,获取总体分布信息
|
function getPatrolArea() {
|
$.ajax({
|
type : "post",
|
url : "../../easyAPI/policeNet/getPoliceNet.action",
|
contentType : "charset=utf-8",
|
success : function(data) {
|
if (data.length != 0) {
|
showPatrolArea_3D(data);
|
}else{
|
console.log("获取巡区信息为空!");
|
}
|
},
|
error : function(XMLHttpRequest, textStatus, errorThrown) {
|
console.log("获取巡区信息失败!");
|
}
|
});
|
}
|
//获取巡区详细信息
|
function getPoliceNetById(id){
|
$.ajax({
|
type : "post",
|
url : "../../easyAPI/policeNet/getPoliceNetById.action",
|
data : "netId="+id,
|
success : function(data) {
|
if (data.length != 0) {
|
showInfoPoliceNet_3D(data);
|
}else{
|
console.log("获取巡区详细信息为空!");
|
}
|
},
|
error : function(XMLHttpRequest, textStatus, errorThrown) {
|
console.log("根据ID获巡区详细信息请求失败!");
|
}
|
});
|
}
|
//重点单位与巡逻点信息管理
|
function getPatrolPoint() {
|
var args = JSON.stringify({
|
"pType" : "巡点"
|
});
|
$.ajax({
|
type : "post",
|
url : "../../easyAPI/policePoint/queryPolicePoint.action",
|
contentType : "application/json;charset=utf-8",
|
data : args,
|
success : function(data) {
|
if (data.length != 0) {
|
showPatrolPoint_3D(data);
|
}else{
|
console.log("巡点分布信息为空!");
|
}
|
},
|
error : function(XMLHttpRequest, textStatus, errorThrown) {
|
console.log("获取巡点分布信息失败!");
|
}
|
});
|
}
|
//车巡线信息管理,获取总体分布信息
|
function getPatrolLine() {
|
var args = JSON.stringify({
|
"lType" : "车巡"
|
});
|
$.ajax({
|
type : "post",
|
url : "../../easyAPI/policeLine/queryPoliceLine.action",
|
contentType : "application/json;charset=utf-8",
|
data : args,
|
success : function(data) {
|
if (data.length != 0) {
|
showPatrolLine_3D(data);
|
}else{
|
console.log("巡线分布信息为空!");
|
}
|
},
|
error : function(XMLHttpRequest, textStatus, errorThrown) {
|
console.log("获取巡线分布信息失败!");
|
}
|
});
|
}
|
//步巡线信息管理,获取总体分布信息
|
function getPeoplePatrolLine() {
|
var args = JSON.stringify({
|
"lType" : "步巡"
|
});
|
$.ajax({
|
type : "post",
|
url : "../../easyAPI/policeLine/queryPoliceLine.action",
|
contentType : "application/json;charset=utf-8",
|
data : args,
|
success : function(data) {
|
if (data.length != 0) {
|
showPeoplePatrolLine_3D(data);
|
}else{
|
console.log("巡线分布信息为空!");
|
}
|
},
|
error : function(XMLHttpRequest, textStatus, errorThrown) {
|
console.log("获取巡线分布信息失败!");
|
}
|
});
|
}
|
//火车站应急反应区
|
function getTrainStationEmerArea() {
|
showTrainStationEmerArea_3D();
|
}
|
//高铁站应急反应区
|
function getHSRStationEmerArea() {
|
showHSRStationEmerArea_3D();
|
}
|
//图们江广场应急反应区
|
function getTumenRiverSquareEmerArea() {
|
showTumenRiverSquareEmerArea_3D();
|
}
|
//三维场景—一类巡区
|
function getOnePatrolArea() {
|
var args = JSON.stringify({
|
"pType" : "一类巡区"
|
});
|
$.ajax({
|
type : "post",
|
url : "../../easyAPI/policePoint/queryPolicePoint.action",
|
contentType : "application/json;charset=utf-8",
|
data : args,
|
success : function(data) {
|
if (data.length != 0) {
|
showOnePatrolArea_3D(data);
|
}else{
|
console.log("一类巡区分布信息为空!");
|
}
|
},
|
error : function(XMLHttpRequest, textStatus, errorThrown) {
|
console.log("获取一类巡区分布信息失败!");
|
}
|
});
|
}
|
//三维场景—二类巡区
|
function getTwoPatrolArea() {
|
var args = JSON.stringify({
|
"pType" : "二类巡区"
|
});
|
$.ajax({
|
type : "post",
|
url : "../../easyAPI/policePoint/queryPolicePoint.action",
|
contentType : "application/json;charset=utf-8",
|
data : args,
|
success : function(data) {
|
if (data.length != 0) {
|
showTwoPatrolArea_3D(data);
|
}else{
|
console.log("二类巡区分布信息为空!");
|
}
|
},
|
error : function(XMLHttpRequest, textStatus, errorThrown) {
|
console.log("获取二类巡区分布信息失败!");
|
}
|
});
|
}
|
//三维场景—三类巡区
|
function getThreePatrolArea() {
|
var args = JSON.stringify({
|
"pType" : "三类巡区"
|
});
|
$.ajax({
|
type : "post",
|
url : "../../easyAPI/policePoint/queryPolicePoint.action",
|
contentType : "application/json;charset=utf-8",
|
data : args,
|
success : function(data) {
|
if (data.length != 0) {
|
showThreePatrolArea_3D(data);
|
}else{
|
console.log("三类巡区分布信息为空!");
|
}
|
},
|
error : function(XMLHttpRequest, textStatus, errorThrown) {
|
console.log("获取三类巡区分布信息失败!");
|
}
|
});
|
}
|
//获取各图层记录总数
|
function countOneMap(){
|
$.ajax({
|
type : "post",
|
url : "../../easyAPI/general/countOneMap.action",
|
contentType : "charset=utf-8",
|
success : function(data) {
|
if (data.length != 0) {
|
showOnemapCount(data);
|
}else{
|
console.log("获取各图层记录总数为空!");
|
}
|
},
|
error : function(XMLHttpRequest, textStatus, errorThrown) {
|
console.log("获取各图层记录总数失败!");
|
}
|
});
|
}
|
//获取身份证刷卡轨迹
|
function getPeopleHisbyTime(id){
|
$.ajax({
|
type : "post",
|
url : "../../easyAPI/People/getPeopleRoute.action",
|
data : "keyId="+id,
|
success : function(data) {
|
if (data.length != 0) {
|
showPeopleRoute3D(data);
|
}else{
|
swal("获取身份证刷卡轨迹为空!","请重试!","error");
|
}
|
},
|
error : function(XMLHttpRequest, textStatus, errorThrown) {
|
console.log("获取身份证刷卡轨迹请求失败!");
|
}
|
});
|
}
|
//根据身份证号获取识别和刷卡记录
|
function getRecordByCard(card){
|
var args = JSON.stringify({
|
"faCardnum" : card
|
});
|
var argscard = JSON.stringify({
|
"crCardnum" : card
|
});
|
$.ajax({
|
type : "post",
|
url : "../../easyAPI/faceAlarm/getFaceAlarmByCard.action",
|
contentType : "application/json;charset=utf-8",
|
data : args,
|
success : function(fadata) {
|
$.ajax({
|
type : "post",
|
url : "../../easyAPI/card/getCardByCard.action",
|
contentType : "application/json;charset=utf-8",
|
data : argscard,
|
success : function(crdata) {
|
if (fadata.length != 0||crdata.length != 0) {
|
showPeopleRoute3D(fadata,crdata);
|
}else{
|
swal("识别和刷卡信息都为空!","请重试!","error");
|
}
|
},
|
error : function(XMLHttpRequest, textStatus, errorThrown) {
|
console.log("获取刷卡信息失败!");
|
}
|
});
|
},
|
error : function(XMLHttpRequest, textStatus, errorThrown) {
|
console.log("获取识别信息失败!");
|
}
|
});
|
}
|