多单位版国产化地质资料管理系统
zhai
2025-12-18 3c6f6c1e3016e38146a4c46be6e7b625c35591f2
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
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
            + path + "/";
%>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title></title>
    <base href="<%=basePath%>">
    <meta name="viewport" charset="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>搜索</title>
 
    <!--[if !IE]><!-->
    <link href="static/plugins/font-awesome/css/font-awesome.css" rel="stylesheet" type="text/css">
    <!--<![endif]-->
    <!--[if gt IE 8]>
    <link href="static/plugins/font-awesome/css/font-awesome.css" rel="stylesheet" type="text/css">
    <![endif]-->
    <link href="static/plugins/jquery-easyui/themes/bootstrap/easyui.css" rel="stylesheet" type="text/css">
    <link rel="stylesheet" href="static/styles/initialize.css" type="text/css">
    <link rel="stylesheet" href="static/styles/common.css" type="text/css">
    <link href="static/plugins/bootstrap-3.3.7/css/bootstrap.css" rel="stylesheet">
    <link href="static/styles/css.css" rel="stylesheet"/>
    <link rel="stylesheet" href="static/plugins/layer/skin/default/layer.css" type="text/css">
    <link rel="stylesheet" href="static/plugins/webuploader/webuploader.css" type="text/css">
    <link rel="stylesheet" href="static/styles/archivesHN.css" type="text/css">
 
    <script type="text/javascript" src="static/plugins/jquery/jquery.min.js"></script>
    <script type="text/javascript" src="static/plugins/jquery-easyui/jquery.easyui.min.js"></script>
    <script type="text/javascript" src="static/plugins/jquery-easyui/locale/easyui-lang-zh_CN.js"></script>
    <script type="text/javascript" src="static/scripts/easyuiExtend.js"></script>
    <script type="text/javascript" src="static/scripts/jquery-extend.js"></script>
    <script type="text/javascript" src="static/plugins/layer/layer.js"></script>
    <script type="text/javascript" src="static/plugins/slimScroll/jquery.slimscroll.min.js"></script>
    <script type="text/javascript" src="static/plugins/jquery-easyui-datagrid-dnd/datagrid-dnd.js"></script>
    <script src="static/plugins/jquery.redirect.js" type="text/javascript"></script>
    <script type="text/javascript" src="static/plugins/webuploader/webuploader.js"></script>
 
    <!-- 弹窗加载组件 -->
    <script type="text/javascript" src="static/plugins/layer/layer.js"></script>
    <script type="text/javascript" src="static/plugins/spinjs/spin.js"></script>
    <script type="text/javascript" src="static/plugins/spinjs/jquery.spin.js"></script>
    <script type="text/javascript" src="static/plugins/jquery.blockUI.js"></script>
    <!-- wcp组件 -->
    <script type="text/javascript" src="static/wcp/scripts/wcp.js"></script>
    <script type="text/javascript" src="static/wcp/scripts/libs/wcp.layer.js"></script>
    <script type="text/javascript" src="static/wcp/scripts/libs/wcp.blockUI.js"></script>
    <script type="text/javascript" src="static/wcp/scripts/libs/wcp.spin.js"></script>
    <script type="text/javascript" src="static/wcp/scripts/libs/wcp.jquery.js"></script>
 
    <!--[if lt IE 9]>
    <script type="text/javascript" src="static/plugins/json2.js"></script>
    <![endif]-->
    <script type="text/javascript" src="static/wcp/scripts/libs/wcp.infoPicker.js"></script>
    <style>
        .sort_v {
            background: #b9ebfa;
        }
    </style>
    <script>
        //头部菜单
        $(function () {
            var $div_limenu = $("div#s-value a");
            $div_limenu.click(function () {
                    var value = $(this).text();
                    if (value != "不限") {
                        addCondition("ZLLB", value);
                        $("div.zl").show();
                    } else {
                        $("div.zl").hide();
                        addCondition("ZLLB", "");
                    }
                    $(this).addClass("s-hover")
                        .siblings().removeClass("s-hover");
                    var index = $div_limenu.index(this);
                    $("div.zl div")
                        .eq(index - 1).show()
                        .siblings("div").hide();
                }
            );
            //工作程度
            var $div_limenu_g = $("div#g-value a");
            $div_limenu_g.click(function () {
                    var value = $(this).text();
                    if (value != "不限") {
                        addCondition("GZCD", value);
                    } else {
                        addCondition("GZCD", "");
                    }
                    // $(this).addClass("s-hover")
                    //     .siblings().removeClass("s-hover");
                }
            );
            //形成时间
            var $div_limenu_x = $("div#x-value a");
            $div_limenu_x.click(function () {
                    var value = $(this).text();
                    if (value != "不限") {
                        addCondition("XCSJV", value);
                    } else {
                        addCondition("XCSJV", "");
                    }
                    $(this).addClass("s-hover")
                        .siblings().removeClass("s-hover");
                }
            );
 
 
            setTimeout(function () {
                //矿产
                var $div_limenu_k = $("div#k-value a");
                $div_limenu_k.click(function () {
                        var value = $(this).text();
                        if (value != "不限") {
                            addCondition("KCMC", value);
                            $("div.kc").show();
                        } else {
                            $("div.kc").hide();
                            addCondition("KCMC", "");
                        }
                        $(this).addClass("s-hover")
                            .siblings().removeClass("s-hover");
                        var index = $div_limenu_k.index(this);
                        $("div.kc div")
                            .eq(index - 1).show()
                            .siblings("div").hide();
                    }
                );
            }, 500)
 
 
            //排序
            var $div_limenu_sort = $("div#sort span");
            $div_limenu_sort.click(function () {
                    var value = $(this).text();
                    if (value == "档号降序") {
                        addCondition("DH", "DESC");
                        $('#dh_j').addClass("sort_v");
                        $('#dh_s').removeClass("sort_v");
                    } else if (value == "档号升序") {
                        addCondition("DH", "ASC");
                        $('#dh_s').addClass("sort_v");
                        $('#dh_j').removeClass("sort_v");
                    }
                    if (value == "形成时间降序") {
                        addCondition("XCSJ", "DESC");
                        $('#sj_j').addClass("sort_v");
                        $('#sj_s').removeClass("sort_v");
                    } else if (value == "形成时间升序") {
                        addCondition("XCSJ", "ASC");
                        $('#sj_s').addClass("sort_v");
                        $('#sj_j').removeClass("sort_v");
                    }
 
                }
            );
 
            var $div_divmenu = $("div.s-sub-li div")
            $div_divmenu.click(function () {
                    $(this).show()
                        .siblings("div").hide();
                    var index = $div_divmenu.index(this);
 
                    $("div#s-value a").eq(index).addClass("s-hover").siblings().removeClass("s-hover");
                }
            );
        });
 
        //弹窗
        jQuery.fn.center = function (loaded) {
            var obj = this;
            body_width = parseInt($(window).width());
            body_height = parseInt($(window).height());
            block_width = parseInt(obj.width());
            block_height = parseInt(obj.height());
 
            left_position = parseInt((body_width / 2) - (block_width / 2) + $(window).scrollLeft());
            if (body_width < block_width) {
                left_position = 0 + $(window).scrollLeft();
            }
            ;
 
            top_position = parseInt((body_height / 2) - (block_height / 2) + $(window).scrollTop());
            if (body_height < block_height) {
                top_position = 0 + $(window).scrollTop();
            }
            ;
 
            if (!loaded) {
 
                obj.css({'position': 'absolute'});
                obj.css({'top': top_position, 'left': left_position});
                $(window).bind('resize', function () {
                    obj.center(!loaded);
                });
                $(window).bind('scroll', function () {
                    obj.center(!loaded);
                });
 
            } else {
                obj.stop();
                obj.css({'position': 'absolute'});
                obj.animate({'top': top_position}, 200, 'linear');
            }
        }
    </script>
</head>
<body>
<div class="archives_resultbg">
    <div class="active clear">
 
        <div class="search">
            <%--            .active p{float: left; height: 38px; line-height: 38px; margin-right:24px;}--%>
            <%--            .active p input[type="checkbox"]{margin:-2px 8px 0 0; vertical-align: middle;}--%>
            <div style="float: left; height:60px; text-align: center;">
                <p style="float: left; height: 60px; line-height: 60px; margin-right:24px;">
                    <input type="checkbox" style="margin:-2px 8px 0 0; vertical-align: middle;" id="cb_resultSearch"/>
                    在结果中检索
                </p>
            </div>
            <div class="sertext">
                <input id="txtKeyword" type="text" placeholder="请输入关键字"/>
                <input id="search" style="cursor: pointer;" type="button">
            </div>
            <div class="serbtn">
                <a id="super_search" href="javascript:;" class="s1"><i></i>高级检索</a>
            </div>
        </div>
        <div class="applybtn">
            <a href="javascript:borrowIndex();">借阅申请</a>
            <%--            |<a href="javascript:processingIndex();;">加工申请</a>|<a--%>
            <%--                href="javascript:physicalIndex();;">实物利用</a>--%>
        </div>
    </div>
    <div class="retrievalcon">
 
        <div class="selector searchnav" style="display: none;">
            <div class="gjjscon" style="display: flex; align-items: center;">
                <div class="form-group" style="display: flex; align-items: center;">
                    <label for="">形成单位名称:</label>
                    <input id="txtProject" type="text" class="form-control" value="" style="width:220px;">
                </div>
                <div class="form-group" style="display: flex; align-items: center;">
                    <label for="">年度:</label>
                    <input id="txtYear" type="text" class="form-control" value="" style="width:220px;">
                </div>
                <div class="form-group" style="display: flex; align-items: center;">
                    <label for="">类别:</label>
                    <select id="selectType" class="form-control" style="width:220px;">
                        <option></option>
                        <option value="项目">项目</option>
                        <option value="成果">成果</option>
                        <option value="原始">原始</option>
                    </select>
                </div>
                <div class="form-group" style="display: flex; align-items: center;">
                    <label for="">项目负责人:</label>
                    <input id="txtLeader" type="text" class="form-control" value="" style="width:220px;">
                </div>
            </div>
            <%--                <div class="s-li">--%>
            <%--                    <span class="s-key">工作程度</span>--%>
            <%--                    <div class="s-value" id="g-value">--%>
            <%--                        <a class="s-first" href="javascript:;">不限</a>--%>
            <%--                        <a href="javascript:;">1:10000</a>--%>
            <%--                        <a href="javascript:;">1:25000</a>--%>
            <%--                        <a href="javascript:;">1:50000</a>--%>
            <%--                        <a href="javascript:;">1:100000</a>--%>
            <%--                        <a href="javascript:;">1:200000</a>--%>
            <%--                        <a href="javascript:;">1:250000</a>--%>
            <%--                        <a href="javascript:;">1:500000</a>--%>
            <%--                        <a href="javascript:;">1:1000000</a>--%>
            <%--                        &lt;%&ndash;                        <a href="javascript:;">+其他</a>&ndash;%&gt;--%>
            <%--                    </div>--%>
            <%--                </div>--%>
            <%--                <div class="s-li">--%>
            <%--                    <span class="s-key">资料类别</span>--%>
            <%--                    <div class="s-value" id="s-value">--%>
            <%--                        <a class="s-first" href="javascript:;">不限</a>--%>
            <%--                        <a href="javascript:;">区域调查</a>--%>
            <%--                        <a href="javascript:;">海洋地质调查</a>--%>
            <%--                        <a href="javascript:;">矿产勘查</a>--%>
            <%--                        <a href="javascript:;">水工环地质勘查</a>--%>
            <%--                        <a href="javascript:;">物化遥地质</a>--%>
            <%--                        <a href="javascript:;">地质科学研究</a>--%>
            <%--                        <a href="javascript:;">技术方法研究</a>--%>
            <%--                        <a href="javascript:;">自然资源综合调查</a>--%>
            <%--                        &lt;%&ndash;                        <a href="javascript:;">其他</a>&ndash;%&gt;--%>
            <%--                        <div class="s-sub-li clear zl hide">--%>
            <%--                            <div>--%>
            <%--                                <span class="s-bold">区调:</span>--%>
            <%--                                <a href="javascript:;">区域地质调查</a>--%>
            <%--                                <a href="javascript:;">区域矿产调查</a>--%>
            <%--                                <a href="javascript:;">区域地球物理调查</a>--%>
            <%--                                <a href="javascript:;">区域地球化学调查</a>--%>
            <%--                                <a href="javascript:;">区域水文地质调查</a>--%>
            <%--                                <a href="javascript:;">区域环境地质调查</a>--%>
            <%--                                <a href="javascript:;">城市地质调查</a>--%>
            <%--                                <a href="javascript:;">区域农业地质调查</a>--%>
            <%--                                <a href="javascript:;">其他区域地质调查</a>--%>
 
            <%--                            </div>--%>
            <%--                            <div class="hide">--%>
            <%--                                <span class="s-bold">海洋地质调查:</span>--%>
            <%--                                <a href="javascript:;">海洋区域地质调查</a>--%>
            <%--                                <a href="javascript:;">海岸带地质矿产调查</a>--%>
            <%--                                <a href="javascript:;">大陆架地质矿产调查</a>--%>
            <%--                                <a href="javascript:;">国际海底资源地质调查</a>--%>
            <%--                                <a href="javascript:;">极地地质调查</a>--%>
            <%--                                <a href="javascript:;">其他海洋地质调查</a>--%>
            <%--                            </div>--%>
            <%--                            <div class="hide">--%>
            <%--                                <span class="s-bold">矿产勘查:</span>--%>
            <%--                                <a href="javascript:;">能源矿产勘查</a>--%>
            <%--                                <a href="javascript:;">金属矿产勘查</a>--%>
            <%--                                <a href="javascript:;">非金属矿产勘查</a>--%>
            <%--                                <a href="javascript:;">水气矿产勘查</a>--%>
            <%--                            </div>--%>
            <%--                            <div class="hide">--%>
            <%--                                <span class="s-bold">水工环地质勘查:</span>--%>
            <%--                                <a href="javascript:;">水文地质勘查</a>--%>
            <%--                                <a href="javascript:;">工程地质勘查</a>--%>
            <%--                                <a href="javascript:;">环境(灾害)地质勘查</a>--%>
            <%--                                <a href="javascript:;">天然地震地质调查</a>--%>
            <%--                                <a href="javascript:;">生态地球化学调查</a>--%>
            <%--                            </div>--%>
            <%--                            <div class="hide">--%>
            <%--                                <span class="s-bold">物化遥勘查:</span>--%>
            <%--                                <a href="javascript:;">地球物理勘查</a>--%>
            <%--                                <a href="javascript:;">地球化学勘查</a>--%>
            <%--                                <a href="javascript:;">遥感地质调查</a>--%>
            <%--                                <a href="javascript:;">物化探异常查证</a>--%>
            <%--                            </div>--%>
            <%--                            <div class="hide">--%>
            <%--                                <span class="s-bold">地质科学研究:</span>--%>
            <%--                                <a href="javascript:;">理论研究</a>--%>
            <%--                                <a href="javascript:;">应用研究</a>--%>
            <%--                                <a href="javascript:;">应用研究</a>--%>
            <%--                                <a href="javascript:;">软科学研究</a>--%>
            <%--                                <a href="javascript:;">地质遗迹调查</a>--%>
            <%--                                <a href="javascript:;">地质公园规划</a>--%>
            <%--                            </div>--%>
            <%--                            <div class="hide">--%>
            <%--                                <span class="s-bold">技术方法研究:</span>--%>
            <%--                                <a href="javascript:;">标准规范制定</a>--%>
            <%--                                <a href="javascript:;">仪器设备研发</a>--%>
            <%--                                <a href="javascript:;">信息系统建设</a>--%>
            <%--                                <a href="javascript:;">数据库建设</a>--%>
            <%--                                <a href="javascript:;">其他方法</a>--%>
            <%--                            </div>--%>
            <%--                            <div class="hide">--%>
            <%--                                <span class="s-bold">自然资源综合调查:</span>--%>
            <%--                                <a href="javascript:;">自然资源综合调查</a>--%>
            <%--                            </div>--%>
            <%--                            <div class="hide">--%>
            <%--                                <span class="s-bold">其他:</span>--%>
            <%--                                <a href="javascript:;">储量表</a>--%>
            <%--                                <a href="javascript:;">其他地质工作</a>--%>
            <%--                            </div>--%>
            <%--                        </div>--%>
            <%--                    </div>--%>
            <%--                </div>--%>
            <%--                <div class="s-li">--%>
            <%--                    <span class="s-key">矿产</span>--%>
            <%--                    <div class="s-value" id="k-value">--%>
            <%--                        <a class="s-first" href="javascript:;">不限</a>--%>
            <%--                        <a href="javascript:;">能源矿</a>--%>
            <%--                        <a href="javascript:;">黑色金属矿</a>--%>
            <%--                        <a href="javascript:;">有色金属矿</a>--%>
            <%--                        <a href="javascript:;">贵金属矿</a>--%>
            <%--                        <a href="javascript:;">稀有稀土分散元素矿</a>--%>
            <%--                        <a href="javascript:;">冶金辅助原料非金属矿</a>--%>
            <%--                        <a href="javascript:;">化工原料非金属矿</a>--%>
            <%--                        <a href="javascript:;">建材及其他非金属矿</a>--%>
            <%--                        <a href="javascript:;">其他水气矿产</a>--%>
            <%--                        <div class="s-sub-li kc clear hide" id='kcTree'>--%>
            <%--                        </div>--%>
            <%--                    </div>--%>
            <%--                </div>--%>
            <%--                <div class="s-li">--%>
            <%--                    <span class="s-key">形成时间</span>--%>
            <%--                    <div class="s-value" id="x-value">--%>
            <%--                        <a class="s-first" href="javascript:;">不限</a>--%>
            <%--                        <a href="javascript:;">解放前</a>--%>
            <%--                        <a href="javascript:;">50年代</a>--%>
            <%--                        <a href="javascript:;">60年代</a>--%>
            <%--                        <a href="javascript:;">70年代</a>--%>
            <%--                        <a href="javascript:;">80年代</a>--%>
            <%--                        <a href="javascript:;">90年代</a>--%>
            <%--                        <a href="javascript:;">2000年以后</a>--%>
            <%--                    </div>--%>
            <%--                </div>--%>
        </div>
    </div>
    <div class="rightcolumn">
        <div class="keyword clear" id="keyword">
            <div>
                <em>当前搜索关键词:</em>
                <span>1/50万</span>
                <em>搜索条件:</em>
                <span>1/50万</span><span>海洋地质调查</span><span>河北省</span>
            </div>
            <p>为您找到相关结果<span>9000</span>个,用时<span>0.11</span>秒</p>
        </div>
        <div class="keyword clear">
            <div id="sort">
                <em>排序:</em>
                <span id="dh_j" class="sorthot" style="cursor: pointer ">档号降序</span>
                <span id="dh_s" style="cursor: pointer ">档号升序</span>
                <span id="sj_j" style="cursor: pointer ">形成时间降序</span>
                <span id="sj_s" style="cursor: pointer ">形成时间升序</span>
            </div>
 
        </div>
        <div>
            <div class="listcon" id="datalist">
            </div>
        </div>
        <div id="divPageBar" style="height:35px"></div>
    </div>
</div>
</div>
</body>
<script type="text/javascript" src="static/scripts/ResizeScroll.js"></script>
<script>
    var selectedValue = '${selectedValue}';
    var keyword = '${keyword}';
    var keywordMap = new Object();
    var params = {
        callBack: null,
        callBackParams: null
    };
    var isSuperSearch = '${isSuperSearch}';
    var count = 0;
    var pageSize = 10;
    $(function () {
        $(document).ready(function () {
            $('.close_btns').click(function () {
                $('.popup').fadeOut(function () {
                    $('#layer').hide();
                });
                return false;
            });
 
            $('.sr-btn').click(function () {
                var h = $(document).height();
                $('#layer').css({'height': h});
                $('#layer').show();
                $('.popup').center();
                $('.popup').fadeIn();
                return false;
            });
        });
        $("#search").click(function () {
            search();
        });
 
        $("#super_search").click(function () {
            // $(".selector").toggle();
            superSearch();
        });
 
        $("#map_search").click(function () {
            // mapSearch();
        });
        $("#txtKeyword").val(keyword);
        // kcTree();
        if (isSuperSearch == "1") {
            setTimeout(function () {
                var data = params.callBackParams;
                // superSearchKeyword(data);
            }, 100)
        } else {
            searchKeyword();
        }
        $("#divPageBar").pagination({
            total: 0,
            // pageSize: 3, //每页显示的记录条数,默认为10
            // pageList: [3, 20, 50, 100, 500, 1000],
            beforePageText: '第', //页数文本框前显示的汉字
            afterPageText: '页    共 {pages} 页',
            displayMsg: '当前显示 {from} - {to} 条记录   共 {total} 条记录',
            onSelectPage: function (number, size) {
                pageNumber = number;
                pageSize = size;
            }
        });
 
        new ResizeScroll({
            "id": ".archives_resultbg", fun: function () {
                var wh = $(window).height();
                return (wh - 3);
            }
        });
    })
 
    function search() {
        if ($("#cb_resultSearch").is(":checked")) {
            keyword += "," + $("#txtKeyword").val().replace(/(^\s*)|(\s*$)/g, "");
        } else {
            keyword = $("#txtKeyword").val().replace(/(^\s*)|(\s*$)/g, "");
        }
        searchKeyword();
    }
 
 
    function searchKeyword(pageNumber) {
        if (pageNumber == null) {
            pageNumber = 1;
        }
        var txtProject = $("#txtProject").val().replace(/(^\s*)|(\s*$)/g, "");
        keywordMap = new Object();
        if (txtProject !== "") {
            var key = "XCDWMC";
            keywordMap[key] = txtProject;
        }
        var txtYear = $("#txtYear").val().replace(/(^\s*)|(\s*$)/g, "");
        if (txtYear !== "") {
            var key = "ND";
            keywordMap[key] = txtYear;
        }
        var selectType = $("#selectType").val().replace(/(^\s*)|(\s*$)/g, "");
        if (selectType !== "") {
            var key = "LB";
            keywordMap[key] = selectType;
        }
        var txtLeader = $("#txtLeader").val().replace(/(^\s*)|(\s*$)/g, "");
        if (txtLeader !== "") {
            var key = "XZR";
            keywordMap[key] = txtLeader;
        }
        var keywordMapStr = JSON.stringify(keywordMap)
        wcp.ui.setBusy("body", wcp.ajax({
            url: "search/getSearchData",
            contentType: "application/x-www-form-urlencoded",
            data: {
                selectedValue: selectedValue,
                keyword: keyword,
                keywordMapStr: keywordMapStr,
                rows: pageSize,
                page: pageNumber
 
            }
        }).done(function (result) {
            debugger;
            count = result.total;
            var html = " <ul>";
            if (result.rows.length > 0) {
                for (var i = 0; i < result.rows.length; i++) {
                    //项目编号 项目名称 项目概况
                    //形成人
                    var item = result.rows[i];
                    var sb = ' <li class="clear">';
                    sb += '<img src="static/styles/images/archivesHN/archives_resultpic.png" alt="" class="lileft">';
                    sb += '<div class="liright">';
                    sb += '<h5><a style="height: 30px"><span>[档号:' + item.DH + ']</span>' + item.WJTM + '</a></h5>';
                    //<span>[档号:' + item.DH + ']</span>
                    sb += '<p><em>内容摘要:</em>' + item.NRZY + '</p>';
                    sb += '<div class="libot">';
                    sb += '<p>来源:' + item.XCDWMC + '&nbsp;&nbsp;作者: &nbsp;&nbsp;形成时间:' + item.XCSJ + '</p>';
                    sb += '</div>'
                    sb += '<div class="listbtn" style="padding-top: 15px">';
                    // sb += '<a href="javascript:;" target="_blank" class="listbtni1"><i class="fa fa-align-left"></i>详情</a>';
                    // sb += '<a href="javascript:fileView(\'' + item.ID + '\');"  class="listbtni2"><i class="fa fa-eye"></i>浏览</a>';
                    sb += '<a href="javascript:progectView(\'' + item.AJ_ID + '\', \'' + item.LB + '\');"  class="listbtni2"><i class="fa fa-eye"></i>浏览项目</a>';
                    sb += '<a href="javascript:fileView(\'' + item.ID + '\', \'' + item.LB + '\');"  class="listbtni2"><i class="fa fa-eye"></i>浏览</a>';
                    // if (item.swId != null && item.swId != 0) {
                    //     sb += '<a href="javascript:physicalView(\'' + item.swId + '\');"  class="listbtni6"><i class="fa fa-eye"></i>实物信息浏览</a>';
                    // }
                    sb += '<a href="javascript:addBorrowDetail(\'' + item.ID + '\');"  class="listbtni3"><i class="fa fa-shopping-basket"></i>借阅</a>';
                    // sb += '<a href="javascript:addProcessingDetail(\'' + item.id + '\');"  class="listbtni4"><i class="fa fa-pencil-square-o"></i>加工</a>';
                    // if (item.swId != null && item.swId != 0) {
                    //     sb += '<a href="javascript:addPhysicalDetail(\'' + item.swId + '\');"  class="listbtni5"><i class="fa fa-cart-plus"></i>实物利用</a>';
                    // }
                    sb += '</div>';
                    sb += '</div>';
                    sb += '</li>';
                    html += sb;
                }
            }
            html += "</ul>";
            $("#datalist").html(html);
            $('#divPageBar').pagination('refresh', {
                total: count,
                pageNumber: pageNumber,
                onSelectPage: function (pageNumber, PageSize) {
                    searchKeyword(pageNumber);
                }
            });
            addKeyword();
        }));
    }
 
    function superSearch() {
        top.layer.open({
            title: "高级查询",
            type: 2,
            area: ["800px", "550px"],
            fixed: false,
            content: "search/advancedQuery",
            success: function (layero, index) {
                var body = window.top.layer.getChildFrame('body', index);
                var iframeWin = window.top[layero.find('iframe')[0]['name']]; //得到iframe页的窗口对象
                iframeWin.params.callBack = superSearchKeyword;
            }
        });
    }
 
 
    function superSearchKeyword(data) {
        var advancedConditions = JSON.stringify(data)
        superSearchData(1, advancedConditions)
        console.log(advancedConditions);
    }
 
    function superSearchData(pageNumber, advancedConditions) {
        debugger;
        if (pageNumber == null) {
            pageNumber = 1;
        }
 
        wcp.ui.setBusy("body", wcp.ajax({
            url: "search/getSuperSearchData",
            contentType: "application/x-www-form-urlencoded",
            data: {
                keywordMapStr: advancedConditions,
                rows: pageSize,
                page: pageNumber
 
            }
        }).done(function (result) {
            count = result.total;
            var html = " <ul>";
            if (result.rows.length > 0) {
                for (var i = 0; i < result.rows.length; i++) {
                    //项目编号 项目名称 项目概况
                    //形成人
                    var item = result.rows[i];
                    var sb = ' <li class="clear">';
                    sb += '<img src="static/styles/images/archivesHN/archives_resultpic.png" alt="" class="lileft">';
                    sb += '<div class="liright">';
                    sb += '<h5><a style="height: 30px"><span>[档号:' + item.DH + ']</span>' + item.WJTM + '</a></h5>';
                    //<span>[档号:' + item.DH + ']</span>
                    sb += '<p><em>内容摘要:</em>' + item.NRZY + '</p>';
                    sb += '<div class="libot">';
                    sb += '<p>来源:' + item.XCDWMC + '&nbsp;&nbsp;作者: &nbsp;&nbsp;形成时间:' + item.XCSJ + '</p>';
                    sb += '</div>'
                    sb += '<div class="listbtn" style="padding-top: 15px">';
                    // sb += '<a href="javascript:;" target="_blank" class="listbtni1"><i class="fa fa-align-left"></i>详情</a>';
                    // sb += '<a href="javascript:fileView(\'' + item.ID + '\');"  class="listbtni2"><i class="fa fa-eye"></i>浏览</a>';
                    sb += '<a href="javascript:progectView(\'' + item.AJ_ID + '\', \'' + item.LB + '\');"  class="listbtni2"><i class="fa fa-eye"></i>浏览项目</a>';
                    sb += '<a href="javascript:fileView(\'' + item.ID + '\', \'' + item.LB + '\');"  class="listbtni2"><i class="fa fa-eye"></i>浏览</a>';
                    // if (item.swId != null && item.swId != 0) {
                    //     sb += '<a href="javascript:physicalView(\'' + item.swId + '\');"  class="listbtni6"><i class="fa fa-eye"></i>实物信息浏览</a>';
                    // }
                    sb += '<a href="javascript:addBorrowDetail(\'' + item.ID + '\');"  class="listbtni3"><i class="fa fa-shopping-basket"></i>借阅</a>';
                    // sb += '<a href="javascript:addProcessingDetail(\'' + item.id + '\');"  class="listbtni4"><i class="fa fa-pencil-square-o"></i>加工</a>';
                    // if (item.swId != null && item.swId != 0) {
                    //     sb += '<a href="javascript:addPhysicalDetail(\'' + item.swId + '\');"  class="listbtni5"><i class="fa fa-cart-plus"></i>实物利用</a>';
                    // }
                    sb += '</div>';
                    sb += '</div>';
                    sb += '</li>';
                    html += sb;
                }
            }
            html += "</ul>";
            $("#datalist").html(html);
            $('#divPageBar').pagination('refresh', {
                total: count,
                pageNumber: pageNumber,
                onSelectPage: function (pageNumber, PageSize) {
                    searchKeyword(pageNumber);
                }
            });
            addKeyword();
        }));
    }
 
    //添加借阅
    function addBorrowDetail(keyId) {
        wcp.ui.setBusy("body", wcp.ajax({
            url: "borrow/addBorrowDetail?keyId=" + keyId
        }).done(function (result) {
            if (result && result.jsExpression) {
                eval(result.jsExpression);
            }
        }));
    }
 
    //添加实物利用
    function addPhysicalDetail(keyId) {
        wcp.ui.setBusy("body", wcp.ajax({
            url: "physical/addPhysicalDetail?keyId=" + keyId
        }).done(function (result) {
            if (result && result.jsExpression) {
                eval(result.jsExpression);
            }
        }));
    }
 
    //添加加工
    function addProcessingDetail(keyId) {
        wcp.ui.setBusy("body", wcp.ajax({
            url: "processing/addProcessingDetail?keyId=" + keyId
        }).done(function (result) {
            if (result && result.jsExpression) {
                eval(result.jsExpression);
            }
        }));
    }
 
    //实物浏览
    function physicalView(keyId) {
        var url = "search/physicalDetails?keyId=" + keyId;
        window.open(url);
    }
 
    function addViewDetail(keyId) {
        var url = "search/details?keyId=" + keyId;
        window.open(url);
    }
 
    function addCondition(type, value) {
        keywordMap[type] = value;
        search();
    }
 
    function addKeyword() {
        var html = "<div>";
 
        html += "</div>";
        html += "<p>为您找到相关结果<span>" + count + "</span>个</p>";
        // html += "<p>为您找到相关结果<span>"+count+"</span>个,用时<span>0.11</span>秒</p>";
        $("#keyword").html(html);
    }
 
 
    function borrowIndex() {
        var url = "borrow/index";
        openTab(url, "我的借阅暂存");
    }
 
 
    function physicalIndex() {
        var url = "physical/index";
        openTab(url, "我的实物利用暂存");
    }
 
    function openTab(url, title, partId, type) {
        if (top.addPanel) {
            top.addPanel(url, title);
            var curTabWin = null;
            var curTab = top.$('#tt').tabs('getSelected');
            if (curTab && curTab.find('iframe').length > 0) {
                curTabWin = curTab.find('iframe')[0].contentWindow;
                //将回调函数传给子页面
                $(curTabWin).load(function () {
                    if (curTabWin.params) {
                        curTabWin.params.callBackParams = superSearchParams;
                    }
                });
            }
        }
    }
 
    function fileView(keyId, fileType) {
        if (fileType == "项目") {
            var url = "fileView/index?keyId=" + keyId + "&fileType=0";
            window.open(url);
        } else if (fileType == "成果") {
            var url = "fileView/index?keyId=" + keyId + "&fileType=2";
            window.open(url);
        } else if (fileType == "原始") {
            var url = "fileView/index?keyId=" + keyId + "&fileType=1";
            window.open(url);
        }
        // var url = "fileView/index?keyId=" + keyId;
        // window.open(url);
    }
 
    function progectView(keyId, fileType) {
        var url = "general/editFormData?viewId=1969936341087150082&formId=1985978820634624002&keyId=" + keyId + "&relationTableId=&relationKeyId=&openUrlType=0";
        openUrlByLayer(1100, 700, url, "添加利用", null);
    }
 
    //通过Layer打开窗口
    function openUrlByLayer(pageWidth, pageHeight, pageUrl, title, ids, defaultFull) {
        top.layer.open({
            title: title,
            type: 2,
            area: [pageWidth + "px", pageHeight + "px"],
            fixed: false,
            maxmin: true,
            content: pageUrl,
            success: function (layero, index) {
                var body = window.top.layer.getChildFrame('body', index);
                var iframeWin = window.top[layero.find('iframe')[0]['name']]; //得到iframe页的窗口对象
 
                //将回调函数传给子页面
                if (iframeWin.params) {
                    if (ids) {
                        iframeWin.params.ids = ids;
                    }
 
                    iframeWin.params.parent = window;
                    iframeWin.params.callBack = reload;
                }
 
                if (defaultFull) {
                    top.layer.full(index);
                }
            }
        });
    }
</script>
</html>