多单位版国产化地质资料管理系统
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
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
            + path + "/";
%>
 
<!DOCTYPE HTML>
<html>
<head>
    <base href="<%=basePath%>">
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>系统设置</title>
    <link rel="stylesheet" href="static/styles/initialize.css" type="text/css">
    <link href="static/plugins/font-awesome/css/font-awesome.css" rel="stylesheet" type="text/css">
    <link href="static/plugins/jquery-easyui/themes/bootstrap/easyui.css" rel="stylesheet" type="text/css">
    <link rel="stylesheet" href="static/plugins/jquery-steps/css/main.css" type="text/css">
    <link rel="stylesheet" href="static/styles/material-teal.css" type="text/css">
    <link rel="stylesheet" href="static/styles/common.css" type="text/css">
    <link rel="stylesheet" href="static/plugins/webuploader/webuploader.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/slimScroll/jquery.slimscroll.min.js"></script>
    <script type="text/javascript" src="static/plugins/webuploader/webuploader.js"></script>
    <script type="text/javascript" src="static/plugins/ace/src-noconflict/ace.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>
        html, body {
            height: 100%;
        }
 
        body {
            overflow: hidden;
        }
 
        .sourceBody {
            border-top: 1px solid #eee;
        }
 
        .viewBody {
            padding: 0 20px;
        }
 
        .pt-form td.tbtitle {
            width: 200px;
        }
 
        .uploadBtn div {
            width: 94px !important;
            height: 41px !important;
        }
 
        .webuploader-pick {
            border: none !important;
        }
    </style>
</head>
 
<body>
<form id="formConfig" style="width:100%; height:100%">
    <div id="allView" class="easyui-tabs" style="width:100%; height:100%" data-options="tabPosition:'left'">
        <div title="授权信息" data-options="iconCls:'fa fa-file-text-o'" class="pt-form viewBody">
            <table style="width: 100%;">
                <tr>
                    <td class="tbtitle">授权单位:</td>
                    <td>
                        ${licenseInfo.licenseCompany}
                    </td>
                </tr>
                <tr>
                    <td class="tbtitle">授权版本:</td>
                    <td>
                        ${licenseInfo.licenseEdition}
                    </td>
                </tr>
                <tr>
                    <td class="tbtitle">授权机器码:</td>
                    <td>
                        ${licenseInfo.machineCode == "" ? "不限制" : licenseInfo.machineCode}
                    </td>
                </tr>
                <tr>
                    <td class="tbtitle">授权日期:</td>
                    <td>
                        <fmt:formatDate value="${licenseInfo.licenseDate}" pattern="yyyy-MM-dd"/>
                    </td>
                </tr>
                <tr>
                    <td class="tbtitle">是否永久有效:</td>
                    <td>
                        ${licenseInfo.licenseType==1?"是":"否"}
                    </td>
                </tr>
                <c:if test="${licenseInfo.licenseType==0}">
                    <tr>
                        <td class="tbtitle">到期日期:</td>
                        <td>
                            <fmt:formatDate value="${licenseInfo.expiryDate}" pattern="yyyy-MM-dd"/>
                        </td>
                    </tr>
                </c:if>
                <tr>
                    <td class="tbtitle">更新许可文件:</td>
                    <td>
                        <div id="picker">上传许可文件</div>
                    </td>
                </tr>
            </table>
        </div>
        <div title="平台基本参数" data-options="iconCls:'fa fa-file-text-o'" class="pt-form viewBody">
            <table style="width: 100%;">
                <tr>
                    <td class="tbtitle">平台名称:</td>
                    <td>
                        <input class="easyui-textbox" id="platformName" name="platformName" type="text"
                               style="width:500px;" value="${systemConfig.platformName}"/>
                    </td>
                </tr>
                <tr>
                    <td class="tbtitle">平台网址:</td>
                    <td>
                        <input class="easyui-textbox" id="platformUrl" name="platformUrl" type="text"
                               style="width:500px;" value="${systemConfig.platformUrl}"/>
                    </td>
                </tr>
                <tr>
                    <td class="tbtitle">平台标题:</td>
                    <td>
                        <input class="easyui-textbox" id="platformTitle" name="platformTitle" type="text"
                               style="width:500px;" value="${systemConfig.platformTitle}"/>
                    </td>
                </tr>
                <tr>
                    <td class="tbtitle">版本信息:</td>
                    <td>
                        <input class="easyui-textbox" id="platformCopyRight" name="platformCopyRight" type="text"
                               style="width:500px;" value="${systemConfig.platformCopyRight}"/>
                    </td>
                </tr>
            </table>
        </div>
        <div title="系统界面配置" data-options="iconCls:'fa fa-empire'" class="pt-form viewBody">
            <div class="form-unit1">参数设置</div>
            <table style="width: 100%;">
                <tr>
                    <td class="tbtitle">系统主题:</td>
                    <td>
                        <select id="systemTheme" name="systemTheme" class="easyui-combobox"
                                data-options="editable: false" style="width:300px;">
                            <option value="v1">主题一</option>
                            <option value="v2">主题二</option>
                            <option value="v3">主题三</option>
                        </select>
                    </td>
                </tr>
                <tr>
                    <td class="tbtitle">主题视图:</td>
                    <td>
                        <input id="systemThemeIndex" name="systemThemeIndex" class="easyui-textbox" type="text"
                               value="${systemConfig.systemThemeIndex}" style="width:300px;"/>
                    </td>
                </tr>
                <tr>
                    <td class="tbtitle">菜单点击时刷新已经存在的页签:</td>
                    <td>
                        <input type="hidden" id="menuItemClickRefreshExistTab" name="menuItemClickRefreshExistTab"
                               value="${systemConfig.menuItemClickRefreshExistTab}"/>
                        <input id="menuItemClickRefreshExistTabText" class="easyui-switchbutton"
                               data-options="onText:'是',offText:'否',onChange:switchButtonChangeEvent"/>
                    </td>
                </tr>
            </table>
            <div class="form-unit1">登录界面 Logo</div>
            <table style="width: 100%;">
                <tr>
                    <td class="tbtitle">当前Logo:</td>
                    <td>
                        <img id="imgLoginLogoUrl" src="${systemConfig.loginLogoUrl}" class="pt-config-logo"
                             alt="登录 Logo">
                        <input type="hidden" id="loginLogoUrl" name="loginLogoUrl" value="${systemConfig.loginLogoUrl}">
                    </td>
                </tr>
                <tr>
                    <td class="tbtitle">更改Logo:</td>
                    <td>
                        <div id="pickerLoginLogoUrl" class="uploadBtn">选择图片</div>
                        <span class="pt-text-color"> 注:该图片宽度为355px,高度为72px,请选择大小相同的图片上传</span>
                    </td>
                </tr>
            </table>
            <div class="form-unit1">头部 Logo</div>
            <table style="width: 100%;">
                <tr>
                    <td class="tbtitle">当前Logo:</td>
                    <td>
                        <img id="imgHeadLogoUrl" src="${systemConfig.headLogoUrl}" class="pt-config-logo"
                             alt="头部 Logo">
                        <input type="hidden" id="headLogoUrl" name="headLogoUrl" value="${systemConfig.headLogoUrl}">
                    </td>
                </tr>
                <tr>
                    <td class="tbtitle">更改Logo:</td>
                    <td>
                        <div id="pickerHeadLogoUrl" class="uploadBtn">选择图片</div>
                        <span class="pt-text-color"> 注:该图片宽度为200px,高度为58px,请选择大小相同的图片上传</span>
                    </td>
                </tr>
            </table>
        </div>
        <div title="用户登录配置" data-options="iconCls:'fa fa-sign-in'" class="pt-form viewBody">
            <table style="width: 100%;">
                <tr>
                    <td class="tbtitle">启用登录验证码:</td>
                    <td>
                        <input type="hidden" id="enableLoginVerificationCode" name="enableLoginVerificationCode"
                               value="${systemConfig.enableLoginVerificationCode}"/>
                        <input id="enableLoginVerificationCodeText" class="easyui-switchbutton"
                               data-options="onText:'是',offText:'否',onChange:loginVerificationCodeButtonChangeEvent"/>
                    </td>
                </tr>
                <tr id="tr_VerificationCodeType">
                    <td class="tbtitle">验证码类型:</td>
                    <td>
                        <select id="verificationCodeType" name="verificationCodeType" class="easyui-combobox"
                                data-options="editable: false" style="width:300px;">
                            <option value="4Bit">四位数字+字母</option>
                            <option value="6Bit">六位数字+字母</option>
                        </select>
                    </td>
                </tr>
                <tr>
                    <td class="tbtitle">启用IP登录验证:</td>
                    <td>
                        <input type="hidden" id="enableLoginIpVerification" name="enableLoginIpVerification"
                               value="${systemConfig.enableLoginIpVerification}"/>
                        <input id="enableLoginIpVerificationText" class="easyui-switchbutton"
                               data-options="onText:'是',offText:'否',onChange:switchButtonChangeEvent"/>
                    </td>
                </tr>
                <tr>
                    <td class="tbtitle">启用防止重复登录:</td>
                    <td>
                        <input type="hidden" id="enablePreventDuplicateLogin" name="enablePreventDuplicateLogin"
                               value="${systemConfig.enablePreventDuplicateLogin}"/>
                        <input id="enablePreventDuplicateLoginText" class="easyui-switchbutton"
                               data-options="onText:'是',offText:'否',onChange:switchButtonChangeEvent"/>
                    </td>
                </tr>
                <tr>
                    <td class="tbtitle">密码算法选择:</td>
                    <td>
                        <select id="encryptionAlgorithm" name="encryptionAlgorithm" class="easyui-combobox"
                                data-options="editable: false" style="width:150px;">
                            <option value="MD5">MD5算法</option>
                            <option value="SM3">SM3算法(国密)</option>
                        </select>
                        <span class="pt-text-color" style="color:red;font-weight: bold;"> 注:更换密码算法后请在退出当前用户前在用户管理中重新初始化所有用户的密码,否则将无法登录</span>
                    </td>
                </tr>
                <tr>
                    <td class="tbtitle">启用密码强度控制:</td>
                    <td>
                        <input type="hidden" id="enablePasswordStrength" name="enablePasswordStrength"
                               value="${systemConfig.enablePasswordStrength}"/>
                        <input id="enablePasswordStrengthText" class="easyui-switchbutton"
                               data-options="onText:'是',offText:'否',onChange:switchButtonChangeEvent"/>
                    </td>
                </tr>
                <tr id="tr_passwordMinLength">
                    <td class="tbtitle">密码最低长度:</td>
                    <td>
                        <input class="easyui-numberspinner" type="text" id="passwordMinLength" name="passwordMinLength"
                               value="${systemConfig.passwordMinLength}" style="width:300px;"/>
                    </td>
                </tr>
                <tr id="tr_passwordCombination">
                    <td class="tbtitle">密码组合形式:</td>
                    <td>
                        <select id="passwordCombination" name="passwordCombination" class="easyui-combobox"
                                data-options="editable: false" style="width:300px;">
                            <option value="0">不限制</option>
                            <option value="1">数字+字母</option>
                            <option value="2">数字+大写+小写</option>
                            <option value="3">数字+字母+特殊符号</option>
                            <option value="4">数字+大写+小写+特殊符号</option>
                        </select>
                    </td>
                </tr>
                <tr>
                    <td class="tbtitle">启用密码过期控制:</td>
                    <td>
                        <input type="hidden" id="enablePasswordExpired" name="enablePasswordExpired"
                               value="${systemConfig.enablePasswordExpired}"/>
                        <input id="enablePasswordExpiredText" class="easyui-switchbutton"
                               data-options="onText:'是',offText:'否',onChange:switchButtonChangeEvent"/>
                    </td>
                </tr>
                <tr id="tr_passwordExpiredDays">
                    <td class="tbtitle">密码过期设置:</td>
                    <td>
                        <input class="easyui-numberspinner" type="text" id="passwordExpiredDays"
                               name="passwordExpiredDays" value="${systemConfig.passwordExpiredDays}"
                               style="width:300px;"/> 天 <span class="pt-text-color"> 注:0天表示不启用密码过期</span>
                    </td>
                </tr>
                <tr id="tr_passwordExpiredDueDays">
                    <td class="tbtitle">密码到期时间:</td>
                    <td>
                        剩余 <input class="easyui-numberspinner" type="text" id="passwordExpiredDueDays"
                                    name="passwordExpiredDueDays" value="${systemConfig.passwordExpiredDueDays}"
                                    style="width:268px;"/> 天 <span
                            class="pt-text-color">  注:不要超过密码过期设置的天数</span>
                    </td>
                </tr>
                <tr>
                    <td class="tbtitle">启用密码输错控制:</td>
                    <td>
                        <input type="hidden" id="enablePasswordMistake" name="enablePasswordMistake"
                               value="${systemConfig.enablePasswordMistake}"/>
                        <input id="enablePasswordMistakeText" class="easyui-switchbutton"
                               data-options="onText:'是',offText:'否',onChange:switchButtonChangeEvent"/>
                    </td>
                </tr>
                <tr id="tr_allowPasswordMistakeTimes">
                    <td class="tbtitle">允许输错次数:</td>
                    <td>
                        <input class="easyui-numberspinner" type="text" id="allowPasswordMistakeTimes"
                               name="allowPasswordMistakeTimes" value="${systemConfig.allowPasswordMistakeTimes}"
                               style="width:300px;"/>
                    </td>
                </tr>
                <tr id="tr_lockLoginTime">
                    <td class="tbtitle">锁定登录时间:</td>
                    <td>
                        <input class="easyui-numberspinner" type="text" id="lockLoginTime" name="lockLoginTime"
                               value="${systemConfig.lockLoginTime}" style="width:300px;"/> 分钟
                    </td>
                </tr>
                <tr>
                    <td class="tbtitle">首次登录强制修改密码:</td>
                    <td>
                        <input type="hidden" id="enableForceModifyPassword" name="enableForceModifyPassword"
                               value="${systemConfig.enableForceModifyPassword}"/>
                        <input id="enableForceModifyPasswordText" class="easyui-switchbutton"
                               data-options="onText:'是',offText:'否',onChange:switchButtonChangeEvent"/>
                    </td>
                </tr>
                <tr>
                    <td class="tbtitle">启用系统屏保控制:</td>
                    <td>
                        <input type="hidden" id="enableScreenSaver" name="enableScreenSaver"
                               value="${systemConfig.enableScreenSaver}"/>
                        <input id="enableScreenSaverText" class="easyui-switchbutton"
                               data-options="onText:'是',offText:'否',onChange:switchButtonChangeEvent"/>
                    </td>
                </tr>
                <tr id="tr_screenSaverWaitTime">
                    <td class="tbtitle">等待时间:</td>
                    <td>
                        <input class="easyui-numberspinner" type="text" id="screenSaverWaitTime"
                               name="screenSaverWaitTime" value="${systemConfig.screenSaverWaitTime}"
                               style="width:300px;"/> 分钟
                    </td>
                </tr>
                <tr>
                    <td class="tbtitle">登录控制器Url:</td>
                    <td>
                        <input class="easyui-textbox" type="text" id="loginControllerUrl" name="loginControllerUrl"
                               value="${systemConfig.loginControllerUrl}" style="width:500px;"/>
                    </td>
                </tr>
                <tr>
                    <td class="tbtitle">登录视图名称:</td>
                    <td>
                        <input class="easyui-textbox" type="text" id="loginViewName" name="loginViewName"
                               value="${systemConfig.loginViewName}" style="width:500px;"/>
                    </td>
                </tr>
                <tr>
                    <td class="tbtitle">显示当前登录用户数:</td>
                    <td>
                        <input type="hidden" id="showOnlineUserCount" name="showOnlineUserCount"
                               value="${systemConfig.showOnlineUserCount}"/>
                        <input id="showOnlineUserCountText" class="easyui-switchbutton"
                               data-options="onText:'是',offText:'否',onChange:switchButtonChangeEvent"/>
                    </td>
                </tr>
            </table>
        </div>
        <div title="数据视图参数" data-options="iconCls:'fa fa-server'" class="pt-form viewBody">
 
            <table style="width: 100%;">
                <tr>
                    <td class="tbtitle">分页显示位置:</td>
                    <td>
                        <select id="paginationPosition" name="paginationPosition" class="easyui-combobox"
                                data-options="editable: false" style="width:300px;">
                            <option value="top">顶部</option>
                            <option value="bottom">底部</option>
                            <option value="both">顶部+底部</option>
                        </select>
                    </td>
                </tr>
                <tr>
                    <td class="tbtitle">默认分页大小:</td>
                    <td>
                        <input id="defaultPageSize" name="defaultPageSize" class="easyui-textbox" type="text"
                               style="width:300px;" value="${systemConfig.defaultPageSize}"/>
                        <span class="pt-text-color">注:默认大小必须包含在分页大小列表中</span>
                    </td>
                </tr>
                <tr>
                    <td class="tbtitle">分页大小列表:</td>
                    <td>
                        <input id="pageSizeList" name="pageSizeList" class="easyui-textbox" type="text"
                               style="width:300px;" value="${systemConfig.pageSizeList}"/>
                        <span class="pt-text-color"> 注:例 5,10,20,50请使用英文状态的下的逗号</span>
                    </td>
                </tr>
            </table>
        </div>
        <div title="附件参数" data-options="iconCls:'fa fa-file-word-o'" class="pt-form viewBody">
            <table style="width: 100%;">
                <tr>
                    <td class="tbtitle">附件上传保存路径配置:</td>
                    <td>
                        <input id="attachStorageRule" name="attachStorageRule" class="easyui-textbox" type="text"
                               style="width:300px;" value="${systemConfig.attachStorageRule}"/>
                        <p style="line-height: 30px;">
                            <span class="pt-text-color">年</span>
                            <span class="pt-text-color">年月</span>
                            <span class="pt-text-color">年月日</span>
                            <span class="pt-text-color">模块名</span>
                            <span class="pt-text-color">创建人</span>
                            <span class="pt-text-color">创建人部门</span>
                        </p>
                    </td>
                </tr>
                <tr>
                    <td class="tbtitle">附件存储物理地址:</td>
                    <td>
                        <input id="attachUploadPath" name="attachUploadPath" class="easyui-textbox" type="text"
                               style="width:300px;" value="${systemConfig.attachUploadPath}"/>
                    </td>
                </tr>
                <tr>
                    <td class="tbtitle">附件浏览虚拟目录:</td>
                    <td>
                        <input id="attachViewPath" name="attachViewPath" class="easyui-textbox" type="text"
                               style="width:300px;" value="${systemConfig.attachViewPath}"/>
                    </td>
                </tr>
                <tr>
                    <td class="tbtitle">外部虚拟目录配置:</td>
                    <td>
                        <input id="externalVirtualDirectory" name="externalVirtualDirectory" class="easyui-textbox"
                               type="text"
                               style="width:500px;" value="${systemConfig.externalVirtualDirectory}"/>
                        <span class="pt-text-color">示例:D:\CGML|/CGML/;F:\IMAGE\|/IMAGE/</span>
                    </td>
                </tr>
                <tr>
                    <td class="tbtitle">系统物理存储容量信息:</td>
                    <td>
                        <ul>
                            <c:forEach items="${systemConfig.spaceInfoList}" var="disk">
                                <li>
                                    <span>盘符:${disk.diskName} &nbsp;&nbsp;总容量:${disk.totalSpace}(G)&nbsp;&nbsp;已用:${disk.usedSpace}(G)&nbsp;&nbsp;剩余:${disk.freeSpace}(G)&nbsp;&nbsp;使用百分比:${disk.usedRate}(%)</span>
                                    <c:if test="${disk.usedRate >= 90}">
                                        <label>容量已超90%</label>
                                    </c:if>
                                </li>
                            </c:forEach>
                        </ul>
                    </td>
                </tr>
                <tr>
                    <td class="tbtitle">是否启用附件浏览水印:</td>
                    <td>
                        <input type="hidden" id="enableWatermark" name="enableWatermark"
                               value="${systemConfig.enableWatermark}"/>
                        <input id="enableWatermarkText" class="easyui-switchbutton"
                               data-options="onText:'是',offText:'否',onChange:watermarkChangeEvent"/>
                    </td>
                </tr>
                <tr>
                    <td class="tbtitle">是否启用附件打印带水印:</td>
                    <td>
                        <input type="hidden" id="enablePrintWithWatermark" name="enablePrintWithWatermark"
                               value="${systemConfig.enablePrintWithWatermark}"/>
                        <input id="enablePrintWithWatermarkText" class="easyui-switchbutton"
                               data-options="onText:'是',offText:'否',onChange:watermarkChangeEvent"/>
                    </td>
                </tr>
                <tr class="watermark">
                    <td class="tbtitle">水印文字:</td>
                    <td>
                        <input id="watermarkText" name="watermarkText" class="easyui-textbox" type="text"
                               style="width:500px;" value="${systemConfig.watermarkText}"/>
                    </td>
                </tr>
                <tr class="watermark">
                    <td class="tbtitle">水印文字字典:</td>
                    <td>
                        <input id="watermarkTextDic" name="watermarkTextDic" class="easyui-textbox" type="text"
                               style="width:500px;" value="${systemConfig.watermarkTextDic}"/>
                        <span class="pt-text-color">示例:DOC_STATE::-1:已作废,2:有效;FILE_STATE::-1:已作废,2:有效</span>
                    </td>
                </tr>
                <tr class="watermark">
                    <td class="tbtitle">水印透明度:</td>
                    <td>
                        <input id="watermarkTransparency" name="watermarkTransparency" class="easyui-numberspinner"
                               data-options="min:1,max:100" type="text" style="width:500px;"
                               value="${systemConfig.watermarkTransparency}"/>
                    </td>
                </tr>
                <tr class="watermark">
                    <td class="tbtitle">水印字体大小:</td>
                    <td>
                        <input id="watermarkFontsize" name="watermarkFontsize" class="easyui-numberspinner"
                               data-options="min:1,max:200" type="text" style="width:500px;"
                               value="${systemConfig.watermarkFontsize}"/>
                    </td>
                </tr>
                <tr class="watermark">
                    <td class="tbtitle">水印位置:</td>
                    <td>
                        <select id="watermarkPosition" name="watermarkPosition" class="easyui-combobox"
                                data-options="editable: false" style="width:300px;">
                            <option value="">默认</option>
                            <option value="topLeft">左上</option>
                            <option value="topCenter">中上</option>
                            <option value="topRight">右上</option>
                            <option value="middleLeft">左中</option>
                            <option value="center">中心</option>
                            <option value="middleRight">右中</option>
                            <option value="bottomLeft">左下</option>
                            <option value="bottomCenter">中下</option>
                            <option value="bottomRight">右下</option>
                            <option value="tile">平铺</option>
                        </select>
                    </td>
                </tr>
                <tr class="watermark">
                    <td class="tbtitle">水印旋转角色:</td>
                    <td style="height: 55px">
                        <input class="easyui-slider" id="watermarkAngle" name="watermarkAngle" value="${systemConfig.watermarkAngle}" style="width:500px" data-options="
                            showTip: true,
                            min:-180,
                            max:180,
                            rule: [-180,'|',-135,'|',-90,'|',-45,'|',0,'|',45,'|',90,'|',135,'|',180]
                        ">
                    </td>
                </tr>
                <tr>
                    <td class="tbtitle">图像转换软件安装路径:</td>
                    <td>
                        <input id="imageMagickPath" name="imageMagickPath" class="easyui-textbox" type="text"
                               style="width:300px;" value="${systemConfig.imageMagickPath}"/>
                        <span class="pt-text-color"> 注:该软件用于处理图片转换,获取图片缩略图使用,在Windows服务器中需要配置该路径</span>
                    </td>
                </tr>
                <tr>
                    <td class="tbtitle">不使用ImageMagick处理图像:</td>
                    <td>
                        <input type="hidden" id="enableNotUseImageMagick" name="enableNotUseImageMagick"
                               value="${systemConfig.enableNotUseImageMagick}"/>
                        <input id="enableNotUseImageMagickText" class="easyui-switchbutton"
                               data-options="onText:'是',offText:'否',onChange:switchButtonChangeEvent"/>
                    </td>
                </tr>
                <tr>
                    <td class="tbtitle">启用附件自定义浏览脚本:</td>
                    <td>
                        <input type="hidden" id="enableCustomAttachViewScript" name="enableCustomAttachViewScript"
                               value="${systemConfig.enableCustomAttachViewScript}"/>
                        <input id="enableCustomAttachViewScriptText" class="easyui-switchbutton"
                               data-options="onText:'是',offText:'否',onChange:setEnableValue"/>
                    </td>
                </tr>
                <tr>
                    <td class="tbtitle">pdf浏览插件(第三方插件需购买授权):</td>
                    <td>
                        <select id="pdfPlugin" name="pdfPlugin" class="easyui-combobox"
                                data-options="editable: false,panelHeight:'auto'" style="width:300px;">
                            <option value="">默认(pdfjs)</option>
                            <option value="PageOffice">PageOffice(专业或企业版)</option>
                        </select>
                    </td>
                </tr>
                <tr>
                    <td class="tbtitle">office浏览/编辑插件(第三方插件需购买授权):</td>
                    <td>
                        <select id="officePlugin" name="officePlugin" class="easyui-combobox"
                                data-options="editable: false,panelHeight:'auto'" style="width:300px;">
                            <option value="">默认(OfficeViewer,WebViewer)</option>
                            <option value="NTKO">NTKO</option>
                            <option value="PageOffice">PageOffice</option>
                        </select>
                    </td>
                </tr>
                <tr>
                    <td class="tbtitle">附件格式模数值枚举:</td>
                    <td>
                        <input id="fileMagicValue" name="fileMagicValue" class="easyui-textbox" name="message"
                               value="${systemConfig.fileMagicValue}"
                               data-options="multiline:true" style="height:120px;width:600px">
                    </td>
                </tr>
                <tr id="tr_CustomAttachViewScript">
                    <td class="tbtitle">附件自定义浏览脚本:</td>
                    <td>
                        <pre id="customAttachViewScript"
                             style="height:400px; width:100%;">${systemConfig.customAttachViewScript}</pre>
                        <div id="customAttachViewScriptDefaultValue" style="display:none">//已有变量 //attachExtension
                            附件后缀
                            //agent HTTP请求的用户代理 //request HTTP请求 /* var viewUrl = ""; switch(attachExtension){
                            case
                            ".jpg": case ".png": case ".bmp": case ".jpeg": case ".gif": viewUrl =
                            "general/attach/viewImage"; break; case ".tiff": viewUrl = "general/attach/viewTiff"; break;
                            case ".pdf": if (agent.indexOf("msie")
                            > -1) { viewUrl = "general/attach/viewPdf"; } else { viewUrl =
                            "general/attach/viewPdf_pdfjs"; } break; case ".doc": case ".docm": case ".docx": case
                            ".xls": case ".xlsx": case ".ppt": case ".pptx": viewUrl = "general/attach/viewOffice";
                            break; default: viewUrl = "general/attach/viewError"; break; } return viewUrl; */
                        </div>
                    </td>
                </tr>
            </table>
            <div class="form-unit1">附件转换&电子签章</div>
            <table style="width: 100%">
                <tr>
                    <td class="tbtitle">金格超阅附件转换服务URL:</td>
                    <td>
                        <input id="kgSurReadDCSServerUrl" name="kgSurReadDCSServerUrl" class="easyui-textbox"
                               type="text"
                               style="width:500px;" value="${systemConfig.kgSurReadDCSServerUrl}"/>
                    </td>
                </tr>
                <tr>
                    <td class="tbtitle">金格超阅转换服务接口AppKey:</td>
                    <td>
                        <input id="kgSurReadDCSAppKey" name="kgSurReadDCSAppKey" class="easyui-textbox" type="text"
                               style="width:500px;" value="${systemConfig.kgSurReadDCSAppKey}"/>
                    </td>
                </tr>
                <tr>
                    <td class="tbtitle">金格超阅转换服务接口AppSecret:</td>
                    <td>
                        <input id="kgSurReadDCSAppSecret" name="kgSurReadDCSAppSecret" class="easyui-textbox"
                               type="text"
                               style="width:500px;" value="${systemConfig.kgSurReadDCSAppSecret}"/>
                    </td>
                </tr>
                <tr>
                    <td class="tbtitle">金格PDF电子签章服务器地址:</td>
                    <td>
                        <input id="kgiSignaturePDFServerUrl" name="kgiSignaturePDFServerUrl" class="easyui-textbox"
                               type="text"
                               style="width:500px;" value="${systemConfig.kgiSignaturePDFServerUrl}"/>
                    </td>
                </tr>
                <tr>
                    <td class="tbtitle">金格PDF电子签章证书密码:</td>
                    <td>
                        <input id="kgiSignaturePDFCertPwd" name="kgiSignaturePDFCertPwd" class="easyui-textbox"
                               type="text"
                               style="width:500px;" value="${systemConfig.kgiSignaturePDFCertPwd}"/>
                    </td>
                </tr>
                <tr>
                    <td class="tbtitle">金格PDF电子签章密钥盘序号或用户编号:</td>
                    <td>
                        <input id="kgiSignaturePDFKeySN" name="kgiSignaturePDFKeySN" class="easyui-textbox" type="text"
                               style="width:500px;" value="${systemConfig.kgiSignaturePDFKeySN}"/>
                    </td>
                </tr>
                <tr>
                    <td class="tbtitle">金格PDF电子签章用户密码:</td>
                    <td>
                        <input id="kgiSignaturePDFPassword" name="kgiSignaturePDFPassword" class="easyui-textbox"
                               type="text"
                               style="width:500px;" value="${systemConfig.kgiSignaturePDFPassword}"/>
                    </td>
                </tr>
                <tr>
                    <td class="tbtitle">金格OFD电子签章服务器地址:</td>
                    <td>
                        <input id="kgiSignatureOFDServerUrl" name="kgiSignatureOFDServerUrl" class="easyui-textbox"
                               type="text"
                               style="width:500px;" value="${systemConfig.kgiSignatureOFDServerUrl}"/>
                    </td>
                </tr>
                <tr>
                    <td class="tbtitle">金格OFD电子签章证书密码:</td>
                    <td>
                        <input id="kgiSignatureOFDCertPwd" name="kgiSignatureOFDCertPwd" class="easyui-textbox"
                               type="text"
                               style="width:500px;" value="${systemConfig.kgiSignatureOFDCertPwd}"/>
                    </td>
                </tr>
                <tr>
                    <td class="tbtitle">金格OFD电子签章密钥盘序号或用户编号:</td>
                    <td>
                        <input id="kgiSignatureOFDKeySN" name="kgiSignatureOFDKeySN" class="easyui-textbox" type="text"
                               style="width:500px;" value="${systemConfig.kgiSignatureOFDKeySN}"/>
                    </td>
                </tr>
                <tr>
                    <td class="tbtitle">金格OFD电子签章用户密码:</td>
                    <td>
                        <input id="kgiSignatureOFDPassword" name="kgiSignatureOFDPassword" class="easyui-textbox"
                               type="text"
                               style="width:500px;" value="${systemConfig.kgiSignatureOFDPassword}"/>
                    </td>
                </tr>
            </table>
        </div>
        <div title="邮件参数" data-options="iconCls:'fa fa-envelope-open-o'" class="pt-form viewBody">
 
            <table style="width: 100%;">
                <tr>
                    <td class="tbtitle">SMTP服务器:</td>
                    <td>
                        <input id="emailSMTPServer" name="emailSMTPServer" class="easyui-textbox" type="text"
                               style="width:500px;" value="${systemConfig.emailSMTPServer}"/>
                    </td>
                </tr>
                <tr>
                    <td class="tbtitle">SMTP端口:</td>
                    <td>
                        <input id="emailSMTPServerPort" name="emailSMTPServerPort" class="easyui-textbox" type="text"
                               style="width:500px;" value="${systemConfig.emailSMTPServerPort}"/>
                    </td>
                </tr>
                <tr>
                    <td class="tbtitle">发件人地址:</td>
                    <td>
                        <input id="emailSendAddress" name="emailSendAddress" class="easyui-textbox" type="text"
                               style="width:500px;" value="${systemConfig.emailSendAddress}"/>
                    </td>
                </tr>
                <tr>
                    <td class="tbtitle">邮箱账号:</td>
                    <td>
                        <input id="emailUserName" name="emailUserName" class="easyui-textbox" type="text"
                               style="width:500px;" value="${systemConfig.emailUserName}"/>
                    </td>
                </tr>
                <tr>
                    <td class="tbtitle">密码:</td>
                    <td>
                        <input id="emailPassword" name="emailPassword" class="easyui-textbox" type="text"
                               style="width:500px;" value="${systemConfig.emailPassword}"/>
                    </td>
                </tr>
            </table>
        </div>
        <div title="全文索引配置" data-options="iconCls:'fa fa-search'" class="pt-form viewBody">
 
            <table style="width: 100%;">
                <tr>
                    <td class="tbtitle">ElasticSearch服务器:</td>
                    <td>
                        <input id="elasticSearchServerHost" name="elasticSearchServerHost" class="easyui-textbox"
                               type="text" style="width:500px;" value="${systemConfig.elasticSearchServerHost}"/>
                    </td>
                </tr>
                <tr>
                    <td class="tbtitle">ElasticSearch端口:</td>
                    <td>
                        <input id="elasticSearchServerPort" name="elasticSearchServerPort" class="easyui-textbox"
                               type="text" style="width:500px;" value="${systemConfig.elasticSearchServerPort}"/>
                    </td>
                </tr>
                <tr>
                    <td class="tbtitle">ElasticSearch需要认证:</td>
                    <td>
                        <input type="hidden" id="elasticSearchRequiresAuthentication"
                               name="elasticSearchRequiresAuthentication"
                               value="${systemConfig.elasticSearchRequiresAuthentication}"/>
                        <input id="elasticSearchRequiresAuthenticationText" class="easyui-switchbutton"
                               data-options="onText:'是',offText:'否',onChange:esRequiresAuthenticationButtionChangeEvent"/>
                        <span class="pt-text-color">注:启用或者关闭认证后,请重启Tomcat等Web服务器。</span>
                    </td>
                </tr>
                <tr id="tr_ElasticSearchUserName">
                    <td class="tbtitle">ElasticSearch账号:</td>
                    <td>
                        <input id="elasticSearchUserName" name="elasticSearchUserName" class="easyui-textbox"
                               type="text" style="width:500px;" value="${systemConfig.elasticSearchUserName}"/>
                    </td>
                </tr>
                <tr id="tr_ElasticSearchPassword">
                    <td class="tbtitle">ElasticSearch密码:</td>
                    <td>
                        <input id="elasticSearchPassword" name="elasticSearchPassword" class="easyui-textbox"
                               type="text" style="width:500px;" value="${systemConfig.elasticSearchPassword}"/>
                    </td>
                </tr>
            </table>
        </div>
        <div title="初始化数据" data-options="iconCls:'fa fa-sun-o'" class="pt-form viewBody">
 
            <table style="width: 100%;">
                <tr>
                    <td class="tbtitle">初始化业务数据:</td>
                    <td>
                        <div>
                            <a id="cnfData_but" class="pt-btn pt-btn-primary">选择模块</a>
                        </div>
                    </td>
                </tr>
                <tr>
                    <td class="tbtitle">初始化系统数据:</td>
                    <td>
                        <div>
                            <a id="sysData_but" class="pt-btn pt-btn-primary">选择模块</a>
                        </div>
                    </td>
                </tr>
                <tr>
                    <td class="tbtitle">初始化系统缓存:</td>
                    <td>
                        <div>
                            <a id="clear_cache" class="pt-btn pt-btn-primary">选择缓存</a>
                        </div>
                    </td>
                </tr>
 
            </table>
        </div>
        <div title="系统安全配置" data-options="iconCls:'fa fa-expeditedssl'" class="pt-form viewBody">
 
            <table style="width: 100%;">
                <tr>
                    <td class="tbtitle">人员选择是否显示密级:</td>
                    <td>
                        <input type="hidden" id="enableUserClassification" name="enableUserClassification"
                               value="${systemConfig.enableUserClassification}"/>
                        <input id="enableUserClassificationText" class="easyui-switchbutton"
                               data-options="onText:'是',offText:'否',onChange:switchButtonChangeEvent"/>
                        <span class="pt-text-color">注:若启用,请确保单级关键字中已配置“涉密等级”,且与用户编辑页面保持一致,与文件密级控制关系为“一般-秘密”、“重要-机密”、“核心-绝密”。</span>
                    </td>
                </tr>
                <tr>
                    <td class="tbtitle">启用三员管理:</td>
                    <td>
                        <input type="hidden" id="enableThreeMemberManagement" name="enableThreeMemberManagement"
                               value="${systemConfig.enableThreeMemberManagement}"/>
                        <input id="enableThreeMemberManagementText" class="easyui-switchbutton"
                               data-options="onText:'是',offText:'否',onChange:switchButtonChangeEvent"/>
                        <span class="pt-text-color">注:启用三员管理并设置好管理员后,管理员用户不能在后期进行修改。</span>
                    </td>
                </tr>
                <tr class="tr_threeMember">
                    <td class="tbtitle">系统管理员:</td>
                    <td>
                        <input type="hidden" id="systemAdminIds" name="systemAdminIds"
                               value="${systemConfig.systemAdminIds}"/>
                        <input id="systemAdminNames" name="systemAdminNames" class="easyui-textbox" type="text"
                               value="${systemConfig.systemAdminNames}"
                               data-options="buttonText:'选',prompt:'',onClickButton:selectUser,readonly:${systemConfig.enableThreeMemberManagement && systemConfig.systemAdminIds!=null && !systemConfig.systemAdminIds.equals("")}"
                               style="width:500px;"/>
                    </td>
                </tr>
                <tr class="tr_threeMember">
                    <td class="tbtitle">安全管理员:</td>
                    <td>
                        <input type="hidden" id="securityAdminIds" name="securityAdminIds"
                               value="${systemConfig.securityAdminIds}"/>
                        <input id="securityAdminNames" name="securityAdminNames" class="easyui-textbox" type="text"
                               value="${systemConfig.securityAdminNames}"
                               data-options="buttonText:'选',prompt:'',onClickButton:selectUser,readonly:${systemConfig.enableThreeMemberManagement && systemConfig.securityAdminIds!=null && !systemConfig.securityAdminIds.equals("")}"
                               style="width:500px;"/>
                    </td>
                </tr>
                <tr class="tr_threeMember">
                    <td class="tbtitle">审计管理员:</td>
                    <td>
                        <input type="hidden" id="auditAdminIds" name="auditAdminIds"
                               value="${systemConfig.auditAdminIds}"/>
                        <input id="auditAdminNames" name="auditAdminNames" class="easyui-textbox" type="text"
                               value="${systemConfig.auditAdminNames}"
                               data-options="buttonText:'选',prompt:'',onClickButton:selectUser,readonly:${systemConfig.enableThreeMemberManagement && systemConfig.auditAdminIds!=null && !systemConfig.auditAdminIds.equals("")}"
                               style="width:500px;"/>
                    </td>
                </tr>
            </table>
        </div>
        <div title="定时任务配置" data-options="iconCls:'fa fa-server'" class="pt-form viewBody">
            <table style="width: 100%;">
                <tr>
                    <td class="tbtitle">启动任务服务器IP:</td>
                    <td>
                        <div>
                            <input id="runTaskIps" name="runTaskIps" class="easyui-textbox"
                                   type="text" style="width:500px;" value="${systemConfig.runTaskIps}"/>
                        </div>
                    </td>
                </tr>
            </table>
        </div>
    </div>
</form>
<div class="pt-form-btn" style="bottom:0px;">
    <div class="form-group">
        <button id="btnSave" class="pt-btn pt-btn-primary">保存</button>
        <button id="btnClose" class="pt-btn pt-btn-default">关闭</button>
    </div>
</div>
<script type="text/javascript" src="static/scripts/ResizeScroll.js"></script>
 
<script>
    var editor_customAttachViewScript;
    $(function () {
        //初始化表单值
        $('#systemTheme').combobox('setValue', '${systemConfig.systemTheme}');
        $('#paginationPosition').combobox('setValue', '${systemConfig.paginationPosition}');
        $('#verificationCodeType').combobox('setValue', '${systemConfig.verificationCodeType}');
        $('#passwordCombination').combobox('setValue', '${systemConfig.passwordCombination}');
        $('#encryptionAlgorithm').combobox('setValue', '${systemConfig.encryptionAlgorithm}');
        $('#watermarkPosition').combobox('setValue', '${systemConfig.watermarkPosition}');
        $('#officePlugin').combobox('setValue', '${systemConfig.officePlugin}');
        $('#pdfPlugin').combobox('setValue', '${systemConfig.pdfPlugin}');
 
        if ($("#menuItemClickRefreshExistTab").val() == "true") {
            $('#menuItemClickRefreshExistTabText').switchbutton("check");
        } else {
            $('#menuItemClickRefreshExistTabText').switchbutton("uncheck");
        }
        if ($("#enableLoginVerificationCode").val() == "true") {
            $('#enableLoginVerificationCodeText').switchbutton("check");
            $('#tr_VerificationCodeType').show();
        } else {
            $('#enableLoginVerificationCodeText').switchbutton("uncheck");
            $('#tr_VerificationCodeType').hide();
        }
        if ($("#enableLoginIpVerification").val() == "true") {
            $('#enableLoginIpVerificationText').switchbutton("check");
        } else {
            $('#enableLoginIpVerificationText').switchbutton("uncheck");
        }
        if ($("#enablePreventDuplicateLogin").val() == "true") {
            $('#enablePreventDuplicateLoginText').switchbutton("check");
        } else {
            $('#enablePreventDuplicateLoginText').switchbutton("uncheck");
        }
 
        if ($("#enableForceModifyPassword").val() == "true") {
            $('#enableForceModifyPasswordText').switchbutton("check");
        } else {
            $('#enableForceModifyPasswordText').switchbutton("uncheck");
        }
 
        if ($("#enableWatermark").val() == "true") {
            $('#enableWatermarkText').switchbutton("check");
            $(".watermark").show();
        } else {
            $('#enableWatermarkText').switchbutton("uncheck");
            $(".watermark").hide();
        }
 
        if ($("#enablePrintWithWatermark").val() == "true") {
            $('#enablePrintWithWatermarkText').switchbutton("check");
 
        } else {
            $('#enablePrintWithWatermarkText').switchbutton("uncheck");
        }
 
        if ($("#enableNotUseImageMagick").val() == "true") {
            $('#enableNotUseImageMagickText').switchbutton("check");
        } else {
            $('#enableNotUseImageMagickText').switchbutton("uncheck");
        }
 
        if ($("#enableCustomAttachViewScript").val() == "true") {
            $('#enableCustomAttachViewScriptText').switchbutton("check");
            $('#tr_CustomAttachViewScript').show();
        } else {
            $('#enableCustomAttachViewScriptText').switchbutton("uncheck");
            $('#tr_CustomAttachViewScript').hide();
        }
 
        if ($("#elasticSearchRequiresAuthentication").val() == "true") {
            $('#elasticSearchRequiresAuthenticationText').switchbutton("check");
            $('#tr_ElasticSearchUserName').show();
            $('#tr_ElasticSearchPassword').show();
        } else {
            $('#elasticSearchRequiresAuthenticationText').switchbutton("uncheck");
            $('#tr_ElasticSearchUserName').hide();
            $('#tr_ElasticSearchPassword').hide();
        }
 
        //初始化启用密码强度控制
        if ($("#enablePasswordStrength").val() == "true") {
            $('#enablePasswordStrengthText').switchbutton("check");
            $('#tr_passwordMinLength').show();
            $('#tr_passwordCombination').show();
        } else {
            $('#enablePasswordStrengthText').switchbutton("uncheck");
            $('#tr_passwordMinLength').hide();
            $('#tr_passwordCombination').hide();
        }
 
        //初始化启用密码过期控制
        if ($("#enablePasswordExpired").val() == "true") {
            $('#enablePasswordExpiredText').switchbutton("check");
            $('#tr_passwordExpiredDays').show();
            $('#tr_passwordExpiredDueDays').show();
            $('#enableForceModifyPasswordText').switchbutton('disable');
 
        } else {
            $('#enablePasswordExpiredText').switchbutton("uncheck");
            $('#tr_passwordExpiredDays').hide();
            $('#tr_passwordExpiredDueDays').hide();
            $('#enableForceModifyPasswordText').switchbutton('enable');
        }
 
        //初始化启用密码输错控制
        if ($("#enablePasswordMistake").val() == "true") {
            $('#enablePasswordMistakeText').switchbutton("check");
            $('#tr_allowPasswordMistakeTimes').show();
            $('#tr_lockLoginTime').show();
        } else {
            $('#enablePasswordMistakeText').switchbutton("uncheck");
            $('#tr_allowPasswordMistakeTimes').hide();
            $('#tr_lockLoginTime').hide();
        }
 
        //初始化启用系统屏保控制
        if ($("#enableScreenSaver").val() == "true") {
            $('#enableScreenSaverText').switchbutton("check");
            $('#tr_screenSaverWaitTime').show();
 
        } else {
            $('#enableScreenSaverText').switchbutton("uncheck");
            $('#tr_screenSaverWaitTime').hide();
 
        }
 
        //初始化显示当前登录用户数
        if ($("#showOnlineUserCount").val() == "true") {
            $('#showOnlineUserCountText').switchbutton("check");
 
        } else {
            $('#showOnlineUserCountText').switchbutton("uncheck");
        }
 
        //初始化系统安全配置
        if ($("#enableUserClassification").val() == "true") {
            $('#enableUserClassificationText').switchbutton("check");
        } else {
            $('#enableUserClassificationText').switchbutton("uncheck");
        }
 
        if ($("#enableThreeMemberManagement").val() == "true") {
            $('#enableThreeMemberManagementText').switchbutton("check");
            $('.tr_threeMember').show();
        } else {
            $('#enableThreeMemberManagementText').switchbutton("uncheck");
            $('.tr_threeMember').hide();
        }
 
        editor_customAttachViewScript = ace.edit("customAttachViewScript"); //单击双击事件框
        editor_customAttachViewScript.setTheme("ace/theme/monokai");
        editor_customAttachViewScript.session.setMode("ace/mode/javascript");
        editor_customAttachViewScript.setFontSize(16);
        if (editor_customAttachViewScript.getValue().replace(/(^\s*)|(\s*$)/g, "") == "") {
            editor_customAttachViewScript.session.setValue($('#customAttachViewScriptDefaultValue').html());
        }
 
        new ResizeScroll({
            "id": ".viewBody",
            fun: function () {
                var wh = $(window).height();
                return (wh - 52);
            }
        });
 
        var uploaderLicenseFile = WebUploader.create({
            swf: 'static/plugins/webuploader/Uploader.swf',
            server: 'config/setting/uploadLicenseFile',
            pick: {
                id: "#picker",
                multiple: false
            },
            accept: {
                title: '请选择许可文件',
                extensions: 'lic',
                mimeTypes: '.lic'
            },
            auto: true
        });
        uploaderLicenseFile.on("uploadSuccess", function (file, response) { //上传成功事件
            if (response.success) {
                window.location = window.location;
            } else {
                wcp.message.error(response.error.message, "提示");
            }
        });
        uploaderLicenseFile.on("uploadError", function (file, reason) { //上传失败
            wcp.message.error("上传失败:" + reason, "错误");
        });
        uploaderLicenseFile.on("beforeFileQueued", function (file) {
            var ext = file.ext;
            if ("lic".indexOf(ext.toLowerCase()) == -1) {
                wcp.message.error("请选择许可文件!", "错误");
                return false;
            }
        });
 
        var imgFileExtensions = 'gif,jpg,jpeg,bmp,png';
        var uploaderLoginLogoUrl = WebUploader.create({
            swf: 'static/plugins/webuploader/Uploader.swf',
            server: 'config/setting/uploadLogo',
            pick: {
                id: "#pickerLoginLogoUrl",
                multiple: false
            },
            accept: {
                title: 'Images',
                extensions: imgFileExtensions,
                mimeTypes: 'image/*'
            },
            auto: true
        });
        uploaderLoginLogoUrl.on("uploadSuccess", function (file, response) { //上传成功事件
            var $img = $("#imgLoginLogoUrl");
            $("#loginLogoUrl").val(response.result.fileName);
            $img.attr("src", response.result.fileName);
        });
        uploaderLoginLogoUrl.on("uploadError", function (file, reason) { //上传失败
            wcp.message.error("上传失败:" + reason, "错误");
        });
        uploaderLoginLogoUrl.on("beforeFileQueued", function (file) {
            var ext = file.ext;
            if (imgFileExtensions.indexOf(ext.toLowerCase()) == -1) {
                wcp.message.error("请选择图片文件!", "错误");
                return false;
            }
        });
 
        var uploaderHeadLogoUrl = WebUploader.create({
            swf: 'static/plugins/webuploader/Uploader.swf',
            server: 'config/setting/uploadLogo',
            pick: {
                id: "#pickerHeadLogoUrl",
                multiple: false
            },
            accept: {
                title: 'Images',
                extensions: imgFileExtensions,
                mimeTypes: 'image/*'
            },
            auto: true
        });
        uploaderHeadLogoUrl.on("uploadSuccess", function (file, response) { //上传成功事件
            var $img = $("#imgHeadLogoUrl");
            $("#headLogoUrl").val(response.result.fileName);
            $img.attr("src", response.result.fileName);
        });
        uploaderHeadLogoUrl.on("uploadError", function (file, reason) { //上传失败
            wcp.message.error("上传失败:" + reason, "错误");
        });
        uploaderHeadLogoUrl.on("beforeFileQueued", function (file) {
            var ext = file.ext;
            if (imgFileExtensions.indexOf(ext.toLowerCase()) == -1) {
                wcp.message.error("请选择图片文件!", "错误");
                return false;
            }
        });
 
        //绑定按钮事件
        $("#btnSave").click(function () {
            //验证表单信息
            var isValid = $('#formConfig').form('validate');
            if (!isValid) {
                wcp.notify.warn('系统配置验证有误,请检查配置项!');
                return false;
            }
 
            var obj = $("#formConfig").serializeObject();
 
            var customAttachViewScript = {
                'customAttachViewScript': editor_customAttachViewScript.getValue().replace(/(^\s*)|(\s*$)/g, "")
            };
            var objAll = $.extend(obj, customAttachViewScript);
 
            wcp.ui.setBusy("body", wcp.ajax({
                url: "config/setting/saveSystemConfig",
                data: JSON.stringify(objAll),
            }).done(function (result) {
                top.wcp.notify.success("保存成功!");
            }));
        });
 
        $("#btnClose").click(function () {
            closeWindow();
        });
 
        $("#cnfData_but").click(function () {
            initCnfData();
        });
 
        $("#sysData_but").click(function () {
            initSysData();
        });
        $("#clear_cache").click(function () {
            top.layer.open({
                title: "清除缓存",
                type: 2,
                area: ["900px", "500px"],
                fixed: false,
                content: "management/cache/index",
                success: function (layero, index) {
                }
            });
        });
 
    })
 
    //关闭窗口事件
    function closeWindow() {
        top.closeNowPanel();
    }
 
    function switchButtonChangeEvent(checked) {
        $('#' + this.id.replace("Text", "")).val(checked);
        if (checked) {
            if (this.id == "enablePasswordStrengthText") {
                $("#tr_passwordMinLength").show();
                $("#tr_passwordCombination").show();
            } else if (this.id == "enablePasswordExpiredText") {
                $("#tr_passwordExpiredDays").show();
                $("#tr_passwordExpiredDueDays").show();
                $('#enableForceModifyPasswordText').switchbutton('disable');
                $('#enableForceModifyPasswordText').switchbutton("check");
            } else if (this.id == "enablePasswordMistakeText") {
                $("#tr_allowPasswordMistakeTimes").show();
                $("#tr_lockLoginTime").show();
            } else if (this.id == "enableScreenSaverText") {
                $("#tr_screenSaverWaitTime").show();
            } else if (this.id == "enableThreeMemberManagementText") {
                $(".tr_threeMember").show();
            }
        } else {
            if (this.id == "enablePasswordStrengthText") {
                $("#tr_passwordMinLength").hide();
                $("#tr_passwordCombination").hide();
            } else if (this.id == "enablePasswordExpiredText") {
                $("#tr_passwordExpiredDays").hide();
                $("#tr_passwordExpiredDueDays").hide();
                $('#enableForceModifyPasswordText').switchbutton('enable');
                $('#enableForceModifyPasswordText').switchbutton("uncheck");
            } else if (this.id == "enablePasswordMistakeText") {
                $("#tr_allowPasswordMistakeTimes").hide();
                $("#tr_lockLoginTime").hide();
            } else if (this.id == "enableScreenSaverText") {
                $("#tr_screenSaverWaitTime").hide();
            } else if (this.id == "enableThreeMemberManagementText") {
                $(".tr_threeMember").hide();
            }
        }
    }
 
    function setEnableValue(checked) {
        $('#' + this.id.replace("Text", "")).val(checked);
        if (checked) {
            $("#tr_CustomAttachViewScript").show();
        } else {
            $("#tr_CustomAttachViewScript").hide();
        }
    }
 
    function loginVerificationCodeButtonChangeEvent(checked) {
        $('#' + this.id.replace("Text", "")).val(checked);
        if (checked) {
            $("#tr_VerificationCodeType").show();
        } else {
            $("#tr_VerificationCodeType").hide();
        }
    }
 
    function esRequiresAuthenticationButtionChangeEvent(checked) {
        $('#' + this.id.replace("Text", "")).val(checked);
        if (checked) {
            $('#tr_ElasticSearchUserName').show();
            $('#tr_ElasticSearchPassword').show();
        } else {
            $('#tr_ElasticSearchUserName').hide();
            $('#tr_ElasticSearchPassword').hide();
        }
    }
 
    function watermarkChangeEvent(checked) {
        $('#' + this.id.replace("Text", "")).val(checked);
        if (checked) {
            $('.watermark').show();
        } else {
            $('.watermark').hide();
        }
    }
 
    function selectUser() {
        var nameElement = this.id;
        var idElement = nameElement.replace("Name", "Id");
 
        wcp.picker.selectUser({
            title: "请选择人员",
            multiSelect: true,
            idElement: idElement,
            nameElement: nameElement,
            hasSelectIds: $("#" + idElement).val(),
            hasSelectNames: $("#" + nameElement).val(),
            layerOpener: window
        });
    }
 
    function initCnfData() {
        var url = "config/setting/initCnfDataIndex";
        var title = "初始化业务数据";
        top.layer.open({
            title: title,
            type: 2,
            area: ["500px", "600px"],
            fixed: false,
            content: url,
            success: function (layero, index) {
                var body = window.top.layer.getChildFrame('body', index);
                var iframeWin = window.top[layero.find('iframe')[0]['name']]; //得到iframe页的窗口对象
 
            }
        });
    }
 
    function initSysData() {
        var url = "config/setting/initSysDataIndex";
        var title = "初始化系统数据";
        top.layer.open({
            title: title,
            type: 2,
            area: ["850px", "320px"],
            fixed: false,
            content: url,
            success: function (layero, index) {
                var body = window.top.layer.getChildFrame('body', index);
                var iframeWin = window.top[layero.find('iframe')[0]['name']]; //得到iframe页的窗口对象
 
 
            }
        });
    }
</script>
</body>
</html>