zhanmingkan
2022-05-17 10f1dd4dadeeaaa2403148cf442279d0abc61147
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
/**
 * 请求获取一张图各图层
 */
// 重点人口信息管理,获取总体分布信息
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("获取识别信息失败!");
        }
    });
}