expandBase.jsp
61.5 KB
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
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
<%@page import="weaver.formmode.virtualform.VirtualFormHandler"%>
<%@ page contentType="text/html; charset=UTF-8"%>
<%@page import="weaver.systeminfo.SystemEnv"%>
<%@page import="weaver.formmode.service.ExpandInfoService"%>
<%@page import="weaver.formmode.interfaces.InterfaceTransmethod"%>
<%@page import="weaver.formmode.service.ModelInfoService"%>
<%@page import="net.sf.json.JSONArray"%>
<%@page import="net.sf.json.JSONObject"%>
<%@page import="weaver.formmode.interfaces.action.WSActionManager"%>
<%@page import="weaver.formmode.interfaces.dmlaction.commands.bases.DMLActionBase"%>
<%@page import="weaver.formmode.interfaces.action.SapActionManager"%>
<%@page import="weaver.interfaces.workflow.action.Action"%>
<%@page import="weaver.formmode.setup.ExpandBaseRightInfo"%>
<%@page import="com.weaver.formmodel.util.StringHelper"%>
<%@ include file="/systeminfo/init_wev8.jsp" %>
<%@ include file="/formmode/pub_detach.jsp"%>
<%@ taglib uri="/browserTag" prefix="brow"%>
<jsp:useBean id="InterfaceTransmethod" class="weaver.formmode.interfaces.InterfaceTransmethod" scope="page" />
<jsp:useBean id="ExpandBaseRightInfo" class="weaver.formmode.setup.ExpandBaseRightInfo" scope="page" />
<%
int id = Util.getIntValue(request.getParameter("id"), 0);
int oldid = Util.getIntValue(request.getParameter("oldid"), 0);
ExpandInfoService expandInfoService = new ExpandInfoService();
Map<String, Object> data = expandInfoService.getExpandInfoAndModeById(id);
String expendname = Util.null2String(data.get("expendname"));
String expenddesc = Util.null2String(data.get("expenddesc"));
String modename = Util.null2String(data.get("modename"));
int modeid = Util.getIntValue(Util.null2String(data.get("modeid")),0);
int formid = Util.getIntValue(Util.null2String(data.get("formid")),0);
int showtype = Util.getIntValue(Util.null2String(data.get("showtype")),0);
int opentype = Util.getIntValue(Util.null2String(data.get("opentype")),0);
int hreftype = Util.getIntValue(Util.null2String(data.get("hreftype")),0);
int hrefid = Util.getIntValue(Util.null2String(data.get("hrefid")),0);
String hreftarget = Util.null2String(data.get("hreftarget"));
int isshow = Util.getIntValue(Util.null2String(data.get("isshow")),0);
float showorder = Util.getFloatValue(Util.null2String(data.get("showorder")),0.0f);
int issystem = Util.getIntValue(Util.null2String(data.get("issystem")),0);
int isbatch = Util.getIntValue(Util.null2String(data.get("isbatch")),0);
int issystemflag = Util.getIntValue(Util.null2String(data.get("issystemflag")),0);
int defaultenable = Util.getIntValue(Util.null2String(data.get("defaultenable")),0);
int createpage = Util.getIntValue(Util.null2String(data.get("createpage")),0);
int managepage = Util.getIntValue(Util.null2String(data.get("managepage")),0);
int viewpage = Util.getIntValue(Util.null2String(data.get("viewpage")),0);
int moniterpage = Util.getIntValue(Util.null2String(data.get("moniterpage")),0);
int tabshowtype = Util.getIntValue(Util.null2String(data.get("tabshowtype")),0);//tab显示形式 0:顶部、 1:内嵌
int groupid = Util.getIntValue(Util.null2String(data.get("groupid")),0);
String fromPage = Util.null2String(request.getParameter("frompage"));
int customSearchId = Util.getIntValue(Util.null2String(request.getParameter("customsearchid")),0);
int isquickbutton = 0;
if(",2,10,3,1,".indexOf(","+issystemflag+",") > -1){
isquickbutton = Util.getIntValue(Util.null2String(data.get("isquickbutton")),1);
}else{
isquickbutton = Util.getIntValue(Util.null2String(data.get("isquickbutton")),0);
}
ExpandBaseRightInfo.setUser(user);
if (!HrmUserVarify.checkUserRight("ModeSetting:All", user)) {
response.sendRedirect("/notice/noright.jsp");
return;
}
boolean issystemmenu = (issystem==1);//是否为系统菜单
String hrefname = InterfaceTransmethod.getHrefName(String.valueOf(hrefid), String.valueOf(hreftype));
if(hreftype==4){
hrefname = "<a href=\""+"javascript:modifyfeild("+hrefid+")\">"+hrefname+"</a>";
}
String operationStr = "edit";
if(id==0){
operationStr = "add";
modeid = Util.getIntValue(Util.null2String(request.getParameter("modeid")),0);
Map<String, Object> modeMap = expandInfoService.getModeinfoById(modeid);
modename = Util.null2String(modeMap.get("modename"));
formid =Util.getIntValue(Util.null2String(modeMap.get("formid")),0);
isshow = 1;
}
int istriggerwf = Util.getIntValue(request.getParameter("istriggerwf"),0);
String interfaceaction = Util.null2String(request.getParameter("interfaceaction"));
String javafilename = "";
String triggerWorkflowSetId = "";
String triggerWorkflowSetName = "";
String sql = "select mainid,interfacetype,interfacevalue,triggerWorkflowSetId from mode_pageexpanddetail where mainid = " + id;
RecordSet rs = new RecordSet();
rs.executeSql(sql);
RecordSet rs2 = new RecordSet();
while(rs.next()){
String interfacetype = Util.null2String(rs.getString("interfacetype"));
String interfacevalue = Util.null2String(rs.getString("interfacevalue"));
triggerWorkflowSetId = Util.null2String(rs.getString("triggerWorkflowSetId"));
if(interfacetype.equals("1")){
istriggerwf = Util.getIntValue(interfacevalue,0);
rs2.executeSql("select triggername from mode_triggerworkflowset where id = " + triggerWorkflowSetId);
if(rs2.next()){
triggerWorkflowSetName = Util.null2String(rs2.getString("triggername"));
}
}else if(interfacetype.equals("2")){
interfaceaction = interfacevalue;
}else if(interfacetype.equals("3")){
javafilename = interfacevalue;
}
}
String subCompanyIdsql = "select subCompanyId from modeinfo where id="+modeid;
RecordSet recordSet = new RecordSet();
recordSet.executeSql(subCompanyIdsql);
int subCompanyId = -1;
if(recordSet.next()){
subCompanyId = recordSet.getInt("subCompanyId");
}
String userRightStr = "ModeSetting:All";
Map rightMap = getCheckRightSubCompanyParam(userRightStr,user,fmdetachable, subCompanyId,"",request,response,session);
int operatelevel = Util.getIntValue(Util.null2String(rightMap.get("operatelevel")),-1);
subCompanyId = Util.getIntValue(Util.null2String(rightMap.get("subCompanyId")),-1);
boolean isVirtualForm = VirtualFormHandler.isVirtualForm(formid);
boolean isShowRight = true;
boolean isShowCondition = true;
switch(issystemflag) {
case 1: // 新建保存
case 2: // 编辑保存
case 3: // 查看编辑
case 4: // 查看共享
case 5: // 查看删除
case 6: // 监控删除
case 8: // 清空条件
case 10: // 保存并新建
case 100: // 搜索
case 101: // 新建
case 102: // 删除
case 103: // 批量导入
case 104: // 批量共享
isShowRight = false;
isShowCondition = false;
break;
case 12: // 批量生成二维码
case 105: // 导出
case 106: // 显示列定制
isShowCondition = false;
break;
}
if(isbatch == 1) {
isShowCondition = false;
}
if(id <= 0) {
isShowRight = false;
isShowCondition = false;
}
%>
<html>
<head>
<title></title>
<LINK href="/css/Weaver_wev8.css" type=text/css rel=STYLESHEET>
<link href="/formmode/css/formmode_wev8.css" type="text/css" rel="stylesheet" />
<style type="text/css">
.codeEditFlag{
padding-left:20px;
padding-right: 10px;
height: 16px;
background:transparent url('/formmode/images/list_edit_wev8.png') no-repeat !important;
cursor: pointer;
margin-left: 2px;
margin-top: 2px;
position: relative;
}
.codeDelFlag{
position: absolute;
top: 2px;
right: 2px;
width:9px;
height:9px;
background:transparent url('/images/messageimages/delete_wev8.gif') no-repeat !important;
cursor: pointer;
}
.textArowWrap{position: relative;width:30%;display: inline-block;}
.textArow{
width: 20px;
height: 22px;
position: absolute;
background: white url("/js/ecology8/selectbox/img/select-icons_wev8.png") -6px -170px no-repeat;
cursor: pointer;
border:1px solid #E9E9E2;
border-left:0px;
}
.categoryChoose{
position: absolute;width: 335px;max-height:200px;background-color: red;left:612px;
background-color: #fff;
overflow-x: hidden;
overflow-y: auto;
border: 1px solid #bcbcbc;
box-sizing: border-box;
display: none;
}
#categoryChoose1{
top: 126px;
}
.categoryChoose ul{
list-style: none;
margin: 0px;
padding: 0px;
}
.categoryChoose ul li{
padding: 3px 3px;
li-style-type:none;
}
.categoryChoose ul li:HOVER {
background-color: #cdcdcd;
}
.categoryChoose div.t{
padding: 3px;
color: #cbcbcb;
}
.del_edit{
-webkit-background-clip: border-box;
-webkit-background-origin: padding-box;
-webkit-background-size: auto;
background-attachment: scroll;
background-clip: border-box;
background-color: rgba(0, 0, 0, 0);
background-image: url("/mobilemode/images/mec/mouse_click_wev8.png");
background-origin: padding-box;
background-position: 0px -111px;
background-size: auto;
cursor: pointer !important;
font-family: 'Microsoft Yahei', Arial, sans-serif;
font-size: 12px;
font-style: normal;
font-variant: normal;
font-weight: normal;
height: 13px;
line-height: 18px;
diplay:inline-block;
right: 5px;
top: 5px;
width: 13px;
z-index: 1;
}
.del_btn{
-webkit-background-clip: border-box;
-webkit-background-origin: padding-box;
-webkit-background-size: auto;
background-attachment: scroll;
background-clip: border-box;
background-color: rgba(0, 0, 0, 0);
background-image: url("/mobilemode/images/mec/lego_icon_d5b6388_wev8.png");
background-origin: padding-box;
background-position: 0px -111px;
background-size: auto;
cursor: pointer !important;
font-family: 'Microsoft Yahei', Arial, sans-serif;
font-size: 12px;
font-style: normal;
font-variant: normal;
font-weight: normal;
height: 13px;
line-height: 18px;
diplay:inline-block;
right: 5px;
top: 5px;
width: 13px;
z-index: 1;
}
</style>
<script type="text/javascript" src="/js/weaver_wev8.js"></script>
<script type="text/javascript">
$(document).ready(function () {
$(".codeDelFlag").click(function(e){
window.top.Dialog.confirm("<%=SystemEnv.getHtmlLabelName(23271, user.getLanguage())%>?",function(){
$("#javafilename_span").html("");
$("#javafilename").val("");
$(".codeDelFlag").hide();
});
e.stopPropagation();
});
if(jQuery("#hreftype").val()=="4"){
$("#hreftargetImage").hide();
}else if(jQuery("#hreftype").val()=="5"){
$("#hrefidtr").hide();
//$("#hrefAddress").hide();
//$("#hreftarget").val("");
}
$("#textArow").click(function(e){
var categoryWidth = $("#category").css("width");
var textArowWidth = $("#textArow").css("width");
$("#categoryChoose1").css("width",parseInt(categoryWidth.substring(0,categoryWidth.length-2))+parseInt(textArowWidth.substring(0,textArowWidth.length-2)));
$("#categoryChoose1").css("left",$(".textArowWrap").offset().left);
$("#categoryChoose1").toggle();
e.stopPropagation();
});
$("#categoryChoose1").mouseleave(function(){
$("#categoryChoose1").css("display","none");
$("#categoryChoose1 ul li").each(function(index,element){
var editarea = $(element).children(":first");
if($(editarea).children(":first").val() != "undefined"){
$(editarea).html($(editarea).children(":first").val());
$(editarea).unbind("click");
$(editarea).bind("click",function(){
selectGroupName($(editarea));
});
var editb = $(element).find("div")[0];
$(editb).children(":first").unbind('click')
$(editb).children(":first").bind("click",function(){
editExpanGroup($(editb).children(":first"));
});
}
});
});
onShowPrompt();
});
function onShowPrompt(){
if( "<%=isShowRight%>" == "false"){
return;
}
var isbatch = jQuery("#isbatch").val();
jQuery(".expandBaseRightIds").each(function(){
var val = jQuery(this).val();
var rigthtype = jQuery("#righttype"+val).val();
var hascondition = jQuery("#hascondition"+val).val();
if(rigthtype == 6 ) {
if(isbatch == 1 || isbatch == 2) {
jQuery("#rightprompt"+val).show();
} else {
jQuery("#rightprompt"+val).hide();
}
} else if(hascondition == "true"){
if(isbatch == 1 || isbatch == 2) {
jQuery("#conditionprompt"+val).show();
} else {
jQuery("#conditionprompt"+val).hide();
}
}
});
}
function reloadWin(){
window.location.href = window.location.href;
}
function getHrefTarget(event,datas,name,_callbackParams){
if (datas){
if(datas.id!=""){
$("#hrefid").val(datas.id);
$("#hrefidspan").html(datas.name);
$("#hrefidImage").hide();
$("#hreftargetImage").hide();
}else{
$("#hrefid").val("");
$("#hrefidspan").html("");
$("#hrefidImage").show();
$("#hreftargetImage").show();
}
}
var hreftype = jQuery("select[name=hreftype]").val();
var hrefid = jQuery("input[name=hrefid]").val();
if(hreftype!=""&&hrefid!=""){
var url = "/formmode/interfaces/ModePageExpandAjax.jsp?hrefid="+hrefid+"&hreftype="+hreftype;
jQuery.ajax({
url : url,
type : "post",
processData : false,
data : "",
dataType : "text",
async : true,
success: function do4Success(msg){
var returnurl = jQuery.trim(msg);
jQuery("#hreftarget").val(returnurl);
if(returnurl==""){
jQuery("#hreftargetspan").html("<img align=\"absMiddle\" src=\"/images/BacoError_wev8.gif\"/>");
}else{
jQuery("#hreftargetspan").html("");
}
}
});
}else{
jQuery("#hreftarget").val("");
jQuery("#hreftargetspan").html("<img align=\"absMiddle\" src=\"/images/BacoError_wev8.gif\"/>");
}
}
function detailSet(){
if(<%=id%><=0){
window.top.Dialog.alert("<%=SystemEnv.getHtmlLabelName(30183,user.getLanguage())%>");
return;
}
var hreftype = jQuery("select[name=hreftype]").val();
var hrefid = jQuery("input[name=hrefid]").val();
var modeid = jQuery("input[name=modeid]").val();
url = "/formmode/interfaces/ModePageExpandRelatedFieldSet.jsp?modeid="+modeid+"&hreftype="+hreftype+"&hrefid="+hrefid+"&pageexpandid="+<%=id%>;
showColDialog1("/systeminfo/BrowserMain.jsp?url="+escape(url));
//var datas = window.showModalDialog("/systeminfo/BrowserMain.jsp?url="+escape(url));
//if (datas){
// if(datas.id!=""){
// $(inputName).val(datas.id);
// if ($(inputName).val()==datas.id){
// $(spanName).html(datas.name);
// }
// }else{
// $(inputName).val("");
// $(spanName).html("");
// }
//}
}
var dialog = null;
function showColDialog1(url){
dialog = new top.Dialog();
dialog.currentWindow = window;
dialog.okLabel = "<%=SystemEnv.getHtmlLabelName(826,user.getLanguage())%>";//确定
dialog.cancelLabel = "<%=SystemEnv.getHtmlLabelName(201,user.getLanguage())%>";//取消
dialog.Drag = true;
dialog.Title = "<%=SystemEnv.getHtmlLabelName(82081,user.getLanguage())%>";//设置关联字段
dialog.Width = 600;
dialog.Height = 600;
dialog.callbackfun = function(callbackfunParam, data){
//alert(inputName+"---"+spanName);
if (datas){
if(datas.id!=""){
$(inputName).val(datas.id);
if ($(inputName).val()==datas.id){
$(spanName).html(datas.name);
}
}else{
$(inputName).val("");
$(spanName).html("");
}
}
}
dialog.URL = url;
dialog.show();
}
function closeColDialog(){
dialog.close();
}
function getOnShowConditionUrl(){
var url = escape("/formmode/interfaces/showcondition.jsp?isbill=1&formid=<%=formid%>&id=<%=id%>");
url = "/systeminfo/BrowserMain.jsp?url="+url
return url;
}
function onShowCondition(spanName){
if(<%=id%><=0){
window.top.Dialog.alert("<%=SystemEnv.getHtmlLabelName(30183,user.getLanguage())%>");
return;
}
var url = escape("/formmode/interfaces/showcondition.jsp?isbill=1&formid=<%=formid%>&id=<%=id%>");
var datas = window.showModalDialog("/systeminfo/BrowserMain.jsp?url="+url);
if (typeof(datas)!="undefined"){
if(datas!=""){
//$(spanName).html("<img src=\"/images/BacoCheck_wev8.gif\" border=\"0\" complete=\"complete\"/>");
$(spanName).html(datas);
}else{
$(spanName).html("");
}
}
}
function addCondition(rightid,objid,objspan){
var url = "/formmode/interfaces/ExpandRightCondition.jsp?modeid=<%=modeid%>&rightid="+rightid;
showDivDiaog(url,800,500,"<%=SystemEnv.getHtmlLabelName(82394,user.getLanguage())%>" );
}
var divdlg;
function showDivDiaog(url, width, height, title){
divdlg = top.createTopDialog();
divdlg.currentWindow = window;
divdlg.Model = true;
divdlg.Width = width;//定义长度
divdlg.Height = height;
divdlg.URL = url;
divdlg.Title = title;
divdlg.callback = function(datas){
};
divdlg.show();
}
function closeDivDialog(){
divdlg.close();
}
function closeDivDialogAndReload(){
divdlg.close();
window.location.reload();
}
function submitData(){
var action = $("#id").val()==0 ? "create" : "modify";
$("#WeaverForm").attr("action", "/ServiceAction/data.servlet.PageExpandAction?action="+action);
document.getElementById("WeaverForm").submit();
}
function onShowTypeChange(){
var showtype = jQuery("#showtype").val();
var hreftype = jQuery("#hreftype").val();
var isbatch = jQuery("#isbatch").val();
var isshow = jQuery("#isshow").val();
if(showtype=="1"){
jQuery("#opentype").hide();
jQuery("#opentypetr").hide();
jQuery("#relatedfieldtr").show();
jQuery("#tabshowtype_span").show();
jQuery("#quickbutton").hide();
closeGroup();
}else if(showtype=="2"){
jQuery("#opentype").hide();
jQuery("#opentypetr").show();
if(hreftype=="2"){
jQuery("#relatedfieldtr").hide();
}
jQuery("#tabshowtype_span").hide();
jQuery("#groupid").val("");
jQuery("#textArowWrap").hide();
if(isbatch == 0 || isbatch == 2){
if(isshow == 1){
jQuery("#quickbutton").show();
}
}
}
handShowTypeSpan();
}
function closeGroup(obj){
if(jQuery("#tabshowtype").val() == 1){
jQuery("#groupid").val("");
jQuery("#textArowWrap").hide();
}else{
jQuery("#textArowWrap").show();
}
}
function onHrefTypeChange(){
var hreftype = jQuery("#hreftype").val();
if(hreftype=="1"){
jQuery("#hrefidtr").show();
jQuery("#hrefidlinetr").show();
jQuery("#relatedfieldtr").show();
jQuery("#hrefid").val("");
jQuery("#hrefidspan").html("");
jQuery("#hreftarget").val("");
jQuery("#hrefidImage").show();
jQuery("#batchmodeifyspan").hide();
jQuery("#hrefAddress").show();
}else if(hreftype=="2"){
jQuery("#hrefidtr").hide();
jQuery("#hrefidlinetr").hide();
jQuery("#relatedfieldtr").hide();
jQuery("#batchmodeifyspan").hide();
jQuery("#hreftarget").val("");
jQuery("#hrefAddress").show();
}else if(hreftype=="3"){
jQuery("#relatedfieldtr").show();
jQuery("#hrefidtr").show();
jQuery("#hrefidlinetr").show();
jQuery("#hrefid").val("");
jQuery("#hrefidspan").html("");
jQuery("#hreftarget").val("");
jQuery("#hrefidImage").show();
jQuery("#batchmodeifyspan").hide();
jQuery("#hrefAddress").show();
}else if(hreftype=="4"){
jQuery("#batchmodeifyspan").show();
jQuery("#hrefidtr").show();
jQuery("#hrefid").val("");
jQuery("#hrefidspan").html("");
jQuery("#hrefAddress").hide(); //目标来源为批量更改字段值时,隐藏目标地址zwbo
}
else if(hreftype=="5"){
jQuery("#hrefidtr").hide();
jQuery("#hreftarget").val("/formmode/view/formModeComTab.jsp?modeId=<%=modeid%>&formId=<%=formid%>&billid=$id$");
}
}
function changeIsBatch(obj){
if(obj.value=='1'){
jQuery("#pageselect").hide();
jQuery("#quickbutton").hide();
handShowType(true);
}else{
if(obj.value=='0' || obj.value=='2'){
var tempisbatch = jQuery("#isbatch");
var isshow = jQuery("#isbatch").val();
if(tempisbatch == 1 && isshow == 1){
jQuery("#quickbutton").show();
}
}else{
jQuery("#quickbutton").hide();
}
jQuery("#pageselect").show();
handShowType(false);
}
jQuery("#batchmodeifyspan").hide();
handbatchmodify();
onShowTypeChange();
onShowPrompt();
$("#categoryChoose1").css("display","none");
}
function handShowTypeSpan() {
var obj = jQuery("#isbatch");
if(obj.val()=='2') {
var showtype = jQuery("#showtype").val();
if(showtype==1){
jQuery("#showing_type_span").show();
}else{
jQuery("#showing_type_span").hide();
}
}else {
jQuery("#showing_type_span").hide();
}
}
function handShowType(isQueryList) {
var hasExistTabPage = false;
jQuery("#showtype").selectbox("detach");//禁用
jQuery("#showtype option").each(function() {
if(isQueryList && ($(this).text() == "<%=SystemEnv.getHtmlLabelName(30171,user.getLanguage())%>")) {//Tab页面
$(this).remove();
}
if(!isQueryList && ($(this).text() == "<%=SystemEnv.getHtmlLabelName(30171,user.getLanguage())%>")) {//Tab页面
hasExistTabPage = true;
}
});
if(!isQueryList && !hasExistTabPage) {
$("#showtype").prepend("<option value='1' selected><%=SystemEnv.getHtmlLabelName(30171,user.getLanguage())%></option>");//Tab页面
}
jQuery("#showtype").selectbox("attach");//启用
}
function handbatchmodify(){
var isVirtualForm = jQuery("#isVirtualForm").val();
var isbatchvalue = jQuery("#isbatch").val();
jQuery("#hreftype").selectbox("detach");
if(isbatchvalue==1){
var isBatchmodify=false;
jQuery("#hreftype option").each(function() {
if(jQuery(this).text() == "<%=SystemEnv.getHtmlLabelName(125139,user.getLanguage())%>") {//批量更改字段值
isBatchmodify = true;
}
});
if(!isBatchmodify){
jQuery("#hreftype option[value=2]").remove();
if(isVirtualForm=="false"){
jQuery("#hreftype").append("<option value=4><%=SystemEnv.getHtmlLabelName(125139,user.getLanguage())%></option>");//批量更改字段值
}
jQuery("#hreftype").append("<option value=2><%=SystemEnv.getHtmlLabelName(30176,user.getLanguage())%></option>");//手动输入
}
}else{
jQuery("#hreftype option").each(function() {
if(jQuery(this).text() == "<%=SystemEnv.getHtmlLabelName(125139,user.getLanguage())%>") {//批量更改字段值
jQuery(this).remove();
}
});
}
jQuery("#hreftype").selectbox("attach");//启用
}
function handbatchmodify1(){
var isbatchvalue = jQuery("#isbatch").val();
jQuery("#hreftype").selectbox("detach");
if(isbatchvalue==1){
var isBatchmodify=false;
jQuery("#hreftype option").each(function() {
if(jQuery(this).text() == "<%=SystemEnv.getHtmlLabelName(125139,user.getLanguage())%>") {//批量更改字段值
isBatchmodify = true;
}
});
if(!isBatchmodify){
jQuery("#hreftype option[value=2]").remove();
jQuery("#hreftype").append("<option value=4><%=SystemEnv.getHtmlLabelName(125139,user.getLanguage())%></option>");//批量更改字段值
jQuery("#hreftype").append("<option value=2><%=SystemEnv.getHtmlLabelName(30176,user.getLanguage())%></option>");//手动输入
}
}else{
jQuery("#hreftype option").each(function() {
if(jQuery(this).text() == "<%=SystemEnv.getHtmlLabelName(125139,user.getLanguage())%>") {//批量更改字段值
jQuery(this).remove();
}
});
}
jQuery("#hreftype").selectbox("attach");//启用
}
$(document).ready(function(){//onload事件
onShowTypeChange();
if(<%=hreftype%>==2){
jQuery("#hrefidtr").hide();
jQuery("#hrefidlinetr").hide();
jQuery("#relatedfieldtr").hide();
}
if (jQuery("#isbatch").val() == 1) {
jQuery("#pageselect").hide();
}
//onHrefTypeChange();
handShowTypeSpan();
handbatchmodify1();
})
function checkFieldValue(ids){
var idsArr = ids.split(",");
for(var i=0;i<idsArr.length;i++){
var obj = document.getElementById(idsArr[i]);
if(obj&&obj.value==""){
top.Dialog.alert("<%=SystemEnv.getHtmlLabelName(15859,user.getLanguage())%>",function(){displayAllmenu();});//必要信息不完整!
return false;
}
}
return true;
}
function doAdd(){
enableAllmenu();
location.href="/formmode/setup/expandBase.jsp?modeid=<%=modeid%>&oldid="+$("#id").val();
}
function doBack(){
enableAllmenu();
var backPageUrl = "";
<%
if("customsearchbutton".equalsIgnoreCase(fromPage)){
%>
backPageUrl = "/formmode/search/CustomSearchButton.jsp?id=<%=customSearchId%>";
<%
}else{
%>
backPageUrl = "/formmode/setup/expandList.jsp?modeid=<%=modeid%>";
<%
}
%>
window.location.href = backPageUrl;
}
function doSubmit(){
enableAllmenu();
var checkfieldids="modeid,expendname,hreftarget";
if(jQuery("#hreftype").val()=="4" ){
checkfieldids="modeid,expendname,hrefid";
}
if(jQuery("#hreftype").val()=="5"){
checkfieldids="modeid,expendname";
}
if(<%=issystem%>==1||checkFieldValue(checkfieldids)){
document.getElementById("operation").value="<%=operationStr%>";
document.WeaverForm.action="/formmode/setup/expandSettingsActing.jsp";
document.WeaverForm.submit();
}
}
function checkHref(){
if(($("#hreftype").val()=="1" || $("#hreftype").val()=="3" || $("#hreftype").val()=="4") && $("#hrefid").val()==0){
window.top.Dialog.alert("<%=SystemEnv.getHtmlLabelName(15859,user.getLanguage())%>",function(){displayAllmenu();});//必要信息不完整!
return false;
}else{
return true;
}
}
function doDelete(){
window.top.Dialog.confirm("<%=SystemEnv.getHtmlNoteName(7,user.getLanguage())%>",function(){
enableAllmenu();
document.getElementById("operation").value="del";
document.WeaverForm.action="/formmode/setup/expandSettingsActing.jsp";
document.WeaverForm.submit();
});
}
function onShowModeSelect(inputName, spanName){
var datas = window.showModalDialog("/systeminfo/BrowserMain.jsp?url=/formmode/browser/ModeBrowser.jsp");
if (datas){
if(datas.id!=""){
$(inputName).val(datas.id);
if ($(inputName).val()==datas.id){
$(spanName).html(datas.name);
}
}else{
$(inputName).val("");
$(spanName).html("");
}
}
}
function editAction(actionid, actiontype_){
var addurl = "";
if(actiontype_ == 0){
addurl = "/formmode/interfaces/dmlaction/DMLActionSettingEdit.jsp?actionid="+actionid+"&modeid=<%=modeid%>&expandid=<%=id%>";
//addurl = "/systeminfo/BrowserMain.jsp?url="+escape("/formmode/interfaces/dmlaction/DMLActionSettingEdit.jsp?actionid="+actionid+"&modeid=<%=modeid%>&expandid=<%=id%>");
}else if(actiontype_ == 1){
addurl = "/formmode/interfaces/action/WsActionEditSet.jsp?actionid="+actionid+"&modeid=<%=modeid%>&expandid=<%=id%>";
//addurl = "/systeminfo/BrowserMain.jsp?url="+escape("/formmode/interfaces/action/WsActionEditSet.jsp?actionid="+actionid+"&modeid=<%=modeid%>&expandid=<%=id%>");
}else if(actiontype_ == 2){
addurl = "/formmode/interfaces/action/SapActionEditSet.jsp?actionid="+actionid+"&&modeid=<%=modeid%>&expandid=<%=id%>";
//addurl = "/systeminfo/BrowserMain.jsp?url="+escape("/formmode/interfaces/action/SapActionEditSet.jsp?actionid="+actionid+"&&modeid=<%=modeid%>&expandid=<%=id%>");
}
//var id_t = window.showModalDialog(addurl,window,"dialogWidth:1000px;dialogHeight:800px;scroll:yes;resizable:yes;")
//window.location.reload();
openDialog(addurl);
}
function openDialog(addurl){
dialog = new window.top.Dialog();
dialog.currentWindow = window;
//dialog.okLabel = "<%=SystemEnv.getHtmlLabelName(826,user.getLanguage())%>";//确定
//dialog.cancelLabel = "<%=SystemEnv.getHtmlLabelName(201,user.getLanguage())%>";//取消
//dialog.Drag = true;
dialog.Title = "DML" + "<%=SystemEnv.getHtmlLabelName(19665, user.getLanguage()) %>";
dialog.Width = 1000;
dialog.Height = 800;
dialog.CancelEvent=function(){window.location.reload();dialog.close();};
dialog.URL = addurl;
dialog.show();
}
function closeDialog(){
window.location.reload();
dialog.close();
}
function addRow(){
if(<%=id%><=0){
window.top.Dialog.alert("<%=SystemEnv.getHtmlLabelName(30183,user.getLanguage())%>");//请先保存页面数据,再进行该设置
return;
}
var addurl = "";
var actionlist_t = document.getElementById("actionlist").value;
if(actionlist_t == 1){
addurl="/formmode/interfaces/dmlaction/DMLActionSettingAdd.jsp?modeid=<%=modeid%>&expandid=<%=id%>";
//addurl = "/systeminfo/BrowserMain.jsp?url="+escape("/formmode/interfaces/dmlaction/DMLActionSettingAdd.jsp?modeid=<%=modeid%>&expandid=<%=id%>");
}else if(actionlist_t == 2){
//addurl = "/systeminfo/BrowserMain.jsp?url="+escape("/formmode/interfaces/action/WsActionEditSet.jsp?operate=addws&modeid=<%=modeid%>&expandid=<%=id%>");
addurl = "/formmode/interfaces/action/WsActionEditSet.jsp?operate=addws&modeid=<%=modeid%>&expandid=<%=id%>";
}else if(actionlist_t == 3){
addurl = "/formmode/interfaces/action/SapActionEditSet.jsp?operate=adsap&modeid=<%=modeid%>&expandid=<%=id%>";
// addurl = "/systeminfo/BrowserMain.jsp?url="+escape("/formmode/interfaces/action/SapActionEditSet.jsp?operate=adsap&modeid=<%=modeid%>&expandid=<%=id%>");
}
//var id_t = window.showModalDialog(addurl,window,"dialogWidth:1000px;dialogHeight:800px;scroll:yes;resizable:yes;")
// window.location.reload();
openDialog(addurl);
}
function delRow()
{
var hasselected = false;
var dmlids = document.getElementsByName("dmlid");
if(dmlids&&dmlids.length>0)
{
for(var i = 0;i<dmlids.length;i++)
{
var dmlid = dmlids[i];
if(dmlid.checked)
{
hasselected = true;
break;
}
}
}
if(!hasselected)
{
//请先选择需要删除的数据
window.top.Dialog.alert("<%=SystemEnv.getHtmlLabelName(24244,user.getLanguage())%>");
return;
}
window.top.Dialog.confirm("<%=SystemEnv.getHtmlLabelName(33435,user.getLanguage())%>",function(){
$G("operation").value="deletedmlaction";
enableAllmenu();
document.WeaverForm.submit();
});
}
function getModeBrowserUrl(){
var hreftype = jQuery("select[name=hreftype]").val();
if(hreftype=="1"){//模块
url = "/systeminfo/BrowserMain.jsp?url=/formmode/browser/ModeBrowser.jsp?titleid=2";
}else if(hreftype=="3"){//模块查询列表
url = "/systeminfo/BrowserMain.jsp?url=/formmode/search/CustomSearchBrowser.jsp";
}else if(hreftype=="4"){//批量修改
url="/systeminfo/BrowserMain.jsp?url=/formmode/setup/batchmodifyBrowser.jsp?modeid=<%=modeid%>&action=create&formid=<%=formid%>";
//url = "/systeminfo/BrowserMain.jsp?url=/formmode/setup/addbatchmodify.jsp?modeid=<%=modeid%>&action=create";
}
return url;
}
function addRowPerms(){
if(<%=id%><=0){
alert("<%=SystemEnv.getHtmlLabelName(30183,user.getLanguage())%>");//请先保存页面数据,再进行该设置
return;
}
var addurl = "/formmode/setup/expandBasePermsAdd.jsp?modeid=<%=modeid%>&expandid=<%=id%>";
addurl= "/systeminfo/BrowserMain.jsp?url="+escape(addurl);
showDivDiaog(addurl,1000,650,"<%=SystemEnv.getHtmlLabelName(126564,user.getLanguage())%>" );
}
function delRowPerms(){
var hasselected = false;
var expandBaseRightids = document.getElementsByName("expandBaseRightIds");
if(expandBaseRightids&&expandBaseRightids.length>0){
for(var i = 0;i<expandBaseRightids.length;i++){
var expandBaseRightid = expandBaseRightids[i];
if(expandBaseRightid.checked){
hasselected = true;
break;
}
}
}
if(!hasselected){
//请先选择需要删除的数据
alert("<%=SystemEnv.getHtmlLabelName(24244,user.getLanguage())%>!");
return;
}
if (isdel()){
$G("operation").value="deleteExpandBaseRight";
enableAllmenu();
document.WeaverForm.submit();
}
}
function openCodeEdit(){
top.openCodeEdit({
"type" : "5",
"filename" : $("#javafilename").val()
}, function(result){
if(result){
var fName = result["fileName"];
$("#javafilename_span").html(fName);
$("#javafilename").val(fName);
$(".codeDelFlag").show();
}
});
}
function chkAllClick(obj){
var chks = document.getElementsByName("expandBaseRightIds");
for (var i=0;i<chks.length;i++){
var chk = chks[i];
changeCheckboxStatus(chk, obj.checked);
}
}
function modifyfeild(strid){
__browserNamespace__.showModalDialogForBrowser(event,''+"/systeminfo/BrowserMain.jsp?url=/formmode/setup/addbatchmodify.jsp?modeid=<%=modeid%>&action=modify&id="+strid+'','#','hrefid',true,1,'',
{name:'hrefid',hasInput:false,zDialog:true,needHidden:true,dialogTitle:'',dialogWidth:900,arguments:'dialogWidth=900px',
_callback:getHrefTarget});
}
function addfeild(){
__browserNamespace__.showModalDialogForBrowser(event,''+"/systeminfo/BrowserMain.jsp?url=/formmode/setup/addbatchmodify.jsp?modeid=<%=modeid%>&action=create"+'','#','hrefid',true,1,'',
{name:'hrefid',hasInput:false,zDialog:true,needHidden:true,dialogTitle:'',dialogWidth:900,arguments:'dialogWidth=900x',
_callback:getHrefTarget});
}
function editExpanGroup(obj){
var li = $(obj).parent().prev();
var oldValue = $(li).html();
var id = $(obj).parent().find("input")[0].value;
var method = "editExpanGroupValue(this,'"+id+"','"+oldValue+"')";
var input = "<input id='tempedit' name='tempedit' type='text' style='width:75%;' onblur=\""+method+"\" value='"+oldValue+"'>";
$(li).html(input);
$(li).unbind("click");
$(li).removeAttr("onclick");
$(obj).unbind("click");
$(obj).removeAttr("onclick");
}
function delExpanGroup(obj){
var par = $(obj).parent();
var id = $(par).find("input")[0].value;
var url = "/formmode/interfaces/ModeExpandGroupAjax.jsp";
window.top.Dialog.confirm("<%=SystemEnv.getHtmlLabelName(23271, user.getLanguage())%>?",function(){
var data = {flag:"del",id:id};
jQuery.ajax({
url : url,
type : "post",
data : data,
dataType : "json",
async : true,
success: function do4Success(msg){
if(msg.temp){
var groupid = $("#groupid").val();
if(groupid == id){
$("#groupid").val("");
$("#category").val("");
}
$(obj).parent().parent().remove();
}
}
});
});
}
function editExpanGroupValue(obj,id,oldValue){
var url = "/formmode/interfaces/ModeExpandGroupAjax.jsp";
var name = jQuery("#tempedit").val();
var data = {flag:"edit",id:id,name:name};
jQuery.ajax({
url : url,
type : "post",
data : data,
dataType : "json",
async : true,
success: function do4Success(msg){
var li = $(obj).parent();
var child = $(obj).parent().next().children(":first");
$(child).unbind("click");
$(child).bind("click",function(){
editExpanGroup(child);
});
if(msg.temp){
$(li).html("");
$(li).html(name);
}else{
$(li).html(oldValue);
}
$(li).unbind("click");
$(li).bind("click",function(){
selectGroupName($(li));
});
}
});
}
function selectGroupName(obj){
var div = $(obj).next();
var value = $(obj).html();
var groupid = $(div).find("input")[0].value;
$("#groupid").val(groupid);
$("#category").val(value)
}
function delGroupId(obj){
$("#groupid").val("");
}
function openbox(obj){
var name = obj.name;
if(obj.checked){
jQuery(obj).parent().find("input").val(1);
}else{
jQuery(obj).parent().find("input").val(0);
}
if(name == "isshow"){
if(obj.value == 1){
var isbatch = $("#isbatch").val();
var showtype = $("#showtype").val();
if(showtype == 2 && (isbatch == 0 || isbatch==2)){
$("#quickbutton").show();
}
}else{
$("#quickbutton").hide();
}
}
}
function getTriggerWorkflowBrowserUrl(){
var triggerWorkflowBrowserUrl = "/systeminfo/BrowserMain.jsp?url=/formmode/interfaces/ModeTriggerWorkflowBrowser.jsp?modeid=<%=modeid%>";
return triggerWorkflowBrowserUrl;
}
function openWorkflowSet(id){
var url = "/formmode/interfaces/ModeTriggerWorkflowSet.jsp?modeId=<%=modeid%>";
if(id){
url += "&id="+id;
}
url += "&isBrowser=1";
url = escape(url);
var dialogurl = "/systeminfo/BrowserMain.jsp?url=" + url;
var dialog = new window.top.Dialog();
dialog.currentWindow = window;
dialog.URL = dialogurl;
dialog.callbackfun = function (paramobj, data) {
var triggerWorkflowSetId = wuiUtil.getJsonValueByIndex(data, 0);
var triggerWorkflowSetName = wuiUtil.getJsonValueByIndex(data, 1);
var sHtml = wrapshowhtml("<a title='" + triggerWorkflowSetName + "' href='javascript:openWorkflowSet("+triggerWorkflowSetId+")'>" + triggerWorkflowSetName + "</a> ", triggerWorkflowSetId,2);
jQuery("#triggerWorkflowSetId").val(triggerWorkflowSetId);
jQuery("#triggerWorkflowSetIdspan").html(sHtml);
} ;
if(id){
dialog.Title = "<%=SystemEnv.getHtmlLabelNames("30056",user.getLanguage())%>";
}else{
dialog.Title = '<%=SystemEnv.getHtmlLabelNames("82,30056",user.getLanguage())%>';//新建
}
dialog.Width = 800 ;
dialog.Height = 600;
dialog.Drag = true;
dialog.show();
}
function wrapshowhtml(ahtml, id,ismast) {
var str = "<span class=\"e8_showNameClass\">";
str += ahtml;
var mastinput = 1;//2:必须输入 ;1:可编辑
if(ismast){
mastinput = ismast;
}
str += "<span class=\"e8_delClass\" id=\"" + id + "\" onclick=\"del(event,this,"+mastinput+",false,{});\" style=\"opacity: 0; visibility: hidden;\"> x </span></span>";
return str;
}
</script>
</head>
<%@ include file="/systeminfo/RightClickMenuConent_wev8.jsp" %>
<%
if(operatelevel>0){//保存
RCMenu += "{"+SystemEnv.getHtmlLabelName(86,user.getLanguage())+",javaScript:doSubmit(),_self} " ;
RCMenuHeight += RCMenuHeightStep ;
}
RCMenu += "{"+SystemEnv.getHtmlLabelName(1290,user.getLanguage())+",javaScript:doBack(),_self} " ;//返回
RCMenuHeight += RCMenuHeightStep ;
if(id!=0){
if(issystem!=1){
if(operatelevel>1){
RCMenu += "{"+SystemEnv.getHtmlLabelName(91,user.getLanguage())+",javaScript:doDelete(),_self} " ;//删除
RCMenuHeight += RCMenuHeightStep ;
}
}
}
RCMenuHeight += RCMenuHeightStep ;
%>
<%@ include file="/systeminfo/RightClickMenu_wev8.jsp" %>
<body>
<form id="WeaverForm" name="WeaverForm" action="/formmode/setup/expandSettingsActing.jsp" method="post">
<input type="hidden" name="id" id="id" value="<%=id %>" />
<input type="hidden" name="operation" id="operation" value="edit" />
<input type="hidden" name="issystem" id="issystem" value="<%=issystem %>" />
<input type="hidden" name="modeid" id="modeid" value="<%=modeid%>">
<input type="hidden" name="isVirtualForm" id="isVirtualForm" value="<%=isVirtualForm%>">
<input type="hidden" name="frompage" id="frompage" value="<%=fromPage%>">
<input type="hidden" name="customsearchid" id="customsearchid" value="<%=customSearchId %>">
<table class="e8_tblForm">
<!--
<tr >
<td class="e8_tblForm_label" width="20%">
<%=SystemEnv.getHtmlLabelName(28485,user.getLanguage())%>
</td>
<td class="e8_tblForm_field">
<span id=modeidspan><%=modename%></span>
</td>
</tr>
-->
<tr>
<td class="e8_tblForm_label" width="20%">
<%=SystemEnv.getHtmlLabelName(195,user.getLanguage())%><!-- 名称 -->
</td>
<td class="e8_tblForm_field">
<input type="text" name="expendname" id="expendname" style="width:80%;" value="<%=expendname %>" onchange="checkinput('expendname','expendnameImage')"/>
<%if("".equals(expendname)){%>
<span id="expendnameImage">
<img src="/images/BacoError_wev8.gif"/>
</span>
<%}%>
</td>
</tr>
<tr>
<td class="e8_tblForm_label">
<!-- 扩展类型 -->
<%=SystemEnv.getHtmlLabelName(81468,user.getLanguage())%>
</td>
<td class="e8_tblForm_field">
<%
if(issystem==1){
%>
<%=SystemEnv.getHtmlLabelName(28119,user.getLanguage())%><!-- 系统默认 -->
<%
}else{
%>
<%=SystemEnv.getHtmlLabelName(73,user.getLanguage())%><!-- 用户自定义 -->
<%
}
%>
</td>
</tr>
<tr>
<td class="e8_tblForm_label">
<!-- 扩展用途 -->
<%=SystemEnv.getHtmlLabelName(81469,user.getLanguage())%>
</td>
<td class="e8_tblForm_field">
<%
if(issystem==1){
if(isbatch==0){
%>
<%=SystemEnv.getHtmlLabelName(81470,user.getLanguage())%><!-- 卡片页面 -->
<%
}else if(isbatch==1){
%>
<%=SystemEnv.getHtmlLabelName(81471,user.getLanguage())%><!-- 查询列表(批量操作) -->
<%
}else if(isbatch==2){
%>
<%=SystemEnv.getHtmlLabelName(81510,user.getLanguage())%><!-- 卡片页面和查询列表 -->
<%
}
%>
<input type="hidden" id="isbatch" name="isbatch" value="<%=isbatch%>">
<%
}else{
%>
<select id="isbatch" name="isbatch" onchange="changeIsBatch(this)" style="width:150px;">
<option value="0" <%if(isbatch==0)out.println("selected"); %>><%=SystemEnv.getHtmlLabelName(81470,user.getLanguage())%></option><!-- 卡片页面 -->
<option value="1" <%if(isbatch==1)out.println("selected"); %>><%=SystemEnv.getHtmlLabelName(81471,user.getLanguage())%></option><!-- 查询列表(批量操作) -->
<option value="2" <%if(isbatch==2)out.println("selected"); %>><%=SystemEnv.getHtmlLabelName(81510,user.getLanguage())%></option><!-- 卡片页面和查询列表 -->
</select>
<%
}
%>
<%
if(issystem!=1){
%>
<span id="pageselect">
<%if(id==0){%>
<input class="inputstyle" type="checkbox" id="createpage" name="createpage" value="1" checked="checked"><%=SystemEnv.getHtmlLabelName(31134,user.getLanguage())%><!-- 新建页面 -->
<input class="inputstyle" type="checkbox" id="managepage" name="managepage" value="1" checked="checked"><%=SystemEnv.getHtmlLabelName(31135,user.getLanguage())%><!-- 编辑页面 -->
<input class="inputstyle" type="checkbox" id="viewpage" name="viewpage" value="1" checked="checked"><%=SystemEnv.getHtmlLabelName(31136,user.getLanguage())%><!-- 查看页面 -->
<%}else{ %>
<input class="inputstyle" type="checkbox" id="createpage" name="createpage" value="1" <%if(createpage==1)out.println("checked"); %>><%=SystemEnv.getHtmlLabelName(31134,user.getLanguage())%><!-- 新建页面 -->
<input class="inputstyle" type="checkbox" id="managepage" name="managepage" value="1" <%if(managepage==1)out.println("checked"); %>><%=SystemEnv.getHtmlLabelName(31135,user.getLanguage())%><!-- 编辑页面 -->
<input class="inputstyle" type="checkbox" id="viewpage" name="viewpage" value="1" <%if(viewpage==1)out.println("checked"); %>><%=SystemEnv.getHtmlLabelName(31136,user.getLanguage())%><!-- 查看页面 -->
<%}%>
</span>
<%
}
%>
</td>
</tr>
<%
if(!issystemmenu){
%>
<tr>
<td class="e8_tblForm_label" width="20%">
<!-- 显示样式 -->
<%=SystemEnv.getHtmlLabelName(23724,user.getLanguage())%>
</td>
<td class="e8_tblForm_field">
<select id="showtype" name="showtype" onchange="onShowTypeChange(this)" style="width:150px;">
<option value="1" <%if(showtype==1) out.println("selected");%>><%=SystemEnv.getHtmlLabelName(30171,user.getLanguage())%></option><!-- Tab页面 -->
<option value="2" <%if(showtype==2) out.println("selected");%>><%=SystemEnv.getHtmlLabelName(30172,user.getLanguage())%></option><!-- 鼠标右键 -->
</select>
<span id="tabshowtype_span">
<select id="tabshowtype" name="tabshowtype" onchange="closeGroup(this);" style="width:120px;">
<option value="0" <%if(tabshowtype==0) out.println("selected");%>><%=SystemEnv.getHtmlLabelName(22432,user.getLanguage())%></option><!-- 顶部 -->
<option value="1" <%if(tabshowtype==1) out.println("selected");%>><%=SystemEnv.getHtmlLabelName(126080,user.getLanguage())%></option><!-- 内嵌 -->
</select>
</span>
<%
String groupname = "";
if(groupid != 0){
sql = "select * from mode_expangroup where id="+groupid;
rs.executeSql(sql);
if(rs.next()){
groupname = rs.getString("groupname");
}
}
%>
<div class="textArowWrap" id="textArowWrap">
<input type="text" class="textStyle" style="width:95%;border-right:0px;" id="category" name="category" value="<%=groupname %>" onchange="delGroupId(this)" onkeydown="delGroupId(this)" placeholder="<%=SystemEnv.getHtmlLabelName(127124,user.getLanguage())%>"/><!-- 默认分组为空,你可以选择键入一个新的或者在已有中选择 -->
<span class="textArow" id="textArow"></span>
<input type="hidden" id="groupid" name="groupid" value="<%=groupid %>">
</div>
<span style="cursor:pointer;color:#F00;" id="showing_type_span">
<%=SystemEnv.getHtmlLabelName(82082,user.getLanguage())%><!-- 查询列表不支持tab页显示 -->
</span>
</td>
</tr>
<tr id="opentypetr">
<td class="e8_tblForm_label" width="20%">
<!-- 打开方式-->
<%=SystemEnv.getHtmlLabelName(30173,user.getLanguage())%>
</td>
<td class="e8_tblForm_field">
<select id="opentype" name="opentype" style="width:150px;">
<option value="1" <%if(opentype==1) out.println("selected");%>><%=SystemEnv.getHtmlLabelName(20597,user.getLanguage())%></option><!-- 默认窗口-->
<option value="2" <%if(opentype==2) out.println("selected");%>><%=SystemEnv.getHtmlLabelName(18717,user.getLanguage())%></option><!-- 弹出窗口-->
<option value="3" <%if(opentype==3) out.println("selected");%>><%=SystemEnv.getHtmlLabelName(811,user.getLanguage())%></option><!-- 其它-->
</select>
</td>
</tr>
<tr>
<td class="e8_tblForm_label" width="20%">
<!-- 链接目标来源-->
<%=SystemEnv.getHtmlLabelName(30174,user.getLanguage())%>
</td>
<td class="e8_tblForm_field">
<select id="hreftype" name="hreftype" onchange="onHrefTypeChange(this)" style="width:150px;">
<option value="1" <%if(hreftype==1) out.println("selected");%>><%=SystemEnv.getHtmlLabelName(19049,user.getLanguage())%></option><!-- 模块-->
<option value="3" <%if(hreftype==3) out.println("selected");%>><%=SystemEnv.getHtmlLabelName(30175,user.getLanguage())%></option><!-- 模块查询列表-->
<option value="4" <%if(hreftype==4) out.println("selected");%>><%=SystemEnv.getHtmlLabelName(125139,user.getLanguage())%></option><!-- 批量更改字段值 -->
<option value="2" <%if(hreftype==2) out.println("selected");%>><%=SystemEnv.getHtmlLabelName(30176,user.getLanguage())%></option><!-- 手动输入-->
<%
String isEnFormModeReply = "";
RecordSet rs_reply = new RecordSet();
rs_reply.executeSql("select * from formEngineSet where isdelete=0");
if (rs_reply.next()) {
isEnFormModeReply = rs_reply.getString("isEnFormModeReply");
}
if ("1".equals(isEnFormModeReply)) {
%>
<option value="5" <%if(hreftype==5) out.println("selected");%>><%=SystemEnv.getHtmlLabelName(128283,user.getLanguage())%></option><!-- 回复评论-->128283
<%}%>
</select>
</td>
</tr>
<tr id="hrefidtr">
<td class="e8_tblForm_label" width="20%">
<!-- 选择链接目标-->
<%=SystemEnv.getHtmlLabelName(30177,user.getLanguage())%>
</td>
<td class="e8_tblForm_field">
<%
String tempTitle = SystemEnv.getHtmlLabelNames("18214,30181",user.getLanguage());
%>
<brow:browser viewType="0" id="hrefid" name="hrefid" browserValue='<%= ""+hrefid %>'
browserUrl="'+getModeBrowserUrl()+'" tempTitle="<%=tempTitle %>"
hasInput="false" isSingle="true" hasBrowser = "true" isMustInput="1"
completeUrl="/data.jsp" linkUrl="" width="228px"
browserDialogWidth="510px"
browserSpanValue='<%=hrefname %>'
_callback="getHrefTarget"
></brow:browser>
<%
String batchmodeifyDisplay="none";
if(isbatch==1&&hreftype==4){
batchmodeifyDisplay = "";
}
%>
<span id="batchmodeifyspan" style="color:red; display: <%=batchmodeifyDisplay%>;">
<%
String addstr = SystemEnv.getHtmlLabelName(125390,user.getLanguage());
if(addstr.indexOf(SystemEnv.getHtmlLabelName(128166, user.getLanguage())) > -1){
addstr = addstr.replace(SystemEnv.getHtmlLabelName(128166, user.getLanguage()), "<a href=\"javascript:addfeild();\">"+SystemEnv.getHtmlLabelName(128166, user.getLanguage())+"</a>");
}else if(addstr.indexOf(SystemEnv.getHtmlLabelName(128166, user.getLanguage())) > -1){
addstr = addstr.replace(SystemEnv.getHtmlLabelName(128166, user.getLanguage()), "<a href=\"javascript:addfeild();\">"+SystemEnv.getHtmlLabelName(128166, user.getLanguage())+"</a>");
}else if(addstr.indexOf("here")>-1){
addstr = addstr.replace("here", "<a href=\"javascript:addfeild();\">"+SystemEnv.getHtmlLabelName(128166, user.getLanguage())+"</a>");
}
%>
<%=addstr%>
</span>
<!-- 可点击此处新增 -->
</td>
</tr>
<%
if(hreftype==4){
%>
<tr id="hrefAddress" style="display:none">
<%}
else{
%>
<tr id="hrefAddress" >
<%
}
%>
<td class="e8_tblForm_label" width="20%">
<!-- 链接目标地址-->
<%=SystemEnv.getHtmlLabelName(30178,user.getLanguage())%>
</td>
<td class="e8_tblForm_field" valign="top">
<textarea id="hreftarget" name="hreftarget" class="inputstyle" rows="3" style="width:80%" onchange="checkinput('hreftarget','hreftargetImage')"><%=hreftarget%></textarea>
<%if("".equals(hreftarget)){%>
<span id="hreftargetImage">
<img src="/images/BacoError_wev8.gif"/>
</span>
<%}%>
<SPAN style="CURSOR:pointer;" id=remind><IMG id=ext-gen124 title="<%=SystemEnv.getHtmlLabelName(82358,user.getLanguage())%> <%=SystemEnv.getHtmlLabelName(82359,user.getLanguage())%> <%=SystemEnv.getHtmlLabelName(82360,user.getLanguage())%>#10;<%=SystemEnv.getHtmlLabelName(82361,user.getLanguage())%>" align=absMiddle src="/images/remind_wev8.png"></SPAN>
<br>
<!-- 如果链接目标地址不是手动输入地址,请勿随意修改这个字地址-->
<%=SystemEnv.getHtmlLabelName(30179,user.getLanguage())%>
</td>
</tr>
<tr id="relatedfieldtr">
<td class="e8_tblForm_label" width="20%">
<!-- 关联字段 -->
<%=SystemEnv.getHtmlLabelName(30180,user.getLanguage())%>
</td>
<td class="e8_tblForm_field">
<span id="relatedfield">
<a href="javascript:detailSet()"><%=SystemEnv.getHtmlLabelName(68,user.getLanguage())%><!-- 设置 --></a>
</span>
</td>
</tr>
<%
}else{
%>
<tr style="display:none">
<td>
<!-- 显示样式 -->
<input type="hidden" id="showtype" name="showtype" value="<%=showtype%>">
<!-- 打开方式-->
<input type="hidden" id="opentype" name="opentype" value="<%=opentype%>">
<!-- 链接目标来源-->
<input type="hidden" id="hreftype" name="hreftype" value="<%=hreftype%>">
<!-- 选择链接目标-->
<input type="hidden" id="hrefid" name="hrefid" value="<%=hrefid%>">
<!-- 链接目标地址-->
<textarea id="hreftarget" name="hreftarget" class="inputstyle" rows="10" style="width:70%"><%=hreftarget%></textarea>
</td>
</tr>
<%
}
%>
<tr>
<td class="e8_tblForm_label">
<!-- 是否显示 -->
<%=SystemEnv.getHtmlLabelName(15603,user.getLanguage())%>
</td>
<td class="e8_tblForm_field">
<input type="checkbox" id="isshow" name="isshow" value="<%=isshow %>" onclick="openbox(this)" tzCheckbox="true" <%if(isshow==1) out.println("checked");%>>
</td>
</tr>
<%
String sdisplay = "display:none;";
if(issystem==1){
if(isbatch==0){
//保存 编辑 保存并新建 保存快捷搜索默认为勾选
if(isshow == 0){
sdisplay = "display:none;";
}
}
}else{
if(isbatch==0 && showtype==2 ){
sdisplay = "";
}
if(isshow == 0){
sdisplay = "display:none;";
}
} %>
<tr id="quickbutton" style="<%=sdisplay%>">
<td class="e8_tblForm_label">快捷按钮</td>
<td class="e8_tblForm_field">
<input type="checkbox" name=isquickbutton value="<%=isquickbutton %>" onclick="openbox(this)" tzCheckbox="true" <%if(isquickbutton==1) out.println("checked");%> >
</td>
</tr>
<% if(isShowRight) { %>
<TR class="e8_tblForm_field" style="height: 30px;">
<TD style="font-weight: bold;background-color:#fff;">
<!-- 扩展权限-->
<%=SystemEnv.getHtmlLabelName(126564,user.getLanguage())%>
</TD>
<td class="e8_tblForm_field" align=right style="background-color:#fff;">
<button type="button" title="<%=SystemEnv.getHtmlLabelName(611,user.getLanguage())%>"
class="addbtn2" onClick="javaScript:addRowPerms();">
</button><!-- 添加 -->
<button type="button" title="<%=SystemEnv.getHtmlLabelName(91,user.getLanguage())%>"
class="deletebtn2" onclick="javaScript:delRowPerms();">
</button><!-- 删除 -->
</td>
</TR>
<%
List<ExpandBaseRightInfo> expandBaseRightInfoList = ExpandBaseRightInfo.getExpandBaseRightList(id, modeid);
for(ExpandBaseRightInfo expandBaseRightInfo :expandBaseRightInfoList){
int rightid = expandBaseRightInfo.getId();
String conditiondesc = expandBaseRightInfo.getConditiondesc();
int righttype = expandBaseRightInfo.getRighttype();
%>
<tr>
<td class="e8_tblForm_label">
<input type="checkbox" class="expandBaseRightIds" name="expandBaseRightIds" value="<%=expandBaseRightInfo.getId()%>">
</td>
<td class="e8_tblForm_field">
<div style="float:left;padding-top: 5px;"><%=expandBaseRightInfo.getRelatedidValue()%></div>
<%if(isShowCondition) { %>
<div id="defConditionDiv_<%=rightid %>" style="float:left;margin-left:15px;" >
<%=SystemEnv.getHtmlLabelName(15364,user.getLanguage())%><!-- 条件 -->
<button class="addbtn2" title="<%=SystemEnv.getHtmlLabelName(15364,user.getLanguage())%>" style="color:#018efb;" onclick="addCondition('<%=rightid %>')" type="button"></button>
<input type="hidden" name="defCondition_<%=rightid %>" id="defCondition_<%=rightid %>">
<%if(!StringHelper.isEmpty(conditiondesc)){ %>
<a href='javascript:void(0);' style="color:#018efb;" onclick="addCondition('<%=rightid %>')">
<%=SystemEnv.getHtmlLabelName(15809,user.getLanguage())%><!-- 已设置条件 -->
</a>
<%} %>
</div>
<%} %>
<input id="righttype<%=expandBaseRightInfo.getId() %>" type="hidden" value="<%=righttype %>">
<input id="hascondition<%=expandBaseRightInfo.getId() %>" type="hidden" value="<%=!StringHelper.isEmpty(conditiondesc) %>">
<div style="padding-top:5px;">
<span id="conditionprompt<%=expandBaseRightInfo.getId() %>" style="display:none; cursor:pointer;color:#F00;"> <%=SystemEnv.getHtmlLabelName(126450,user.getLanguage())%></span><!-- 扩展用途为查询列表条件不生效。 -->
<span id="rightprompt<%=expandBaseRightInfo.getId() %>" style="display:none;cursor:pointer;color:#F00;"> <%=SystemEnv.getHtmlLabelName(126574,user.getLanguage())%></span><!-- 扩展用途为查询列表继承建模编辑权限不生效。 -->
</div>
</td>
</tr>
<%
}
}
%>
<tr>
<td class="e8_tblForm_label"><%=SystemEnv.getHtmlLabelName(81710,user.getLanguage())%><!-- 描述 --><div class="e8_label_desc"></div></td>
<td class="e8_tblForm_field">
<textarea name="expenddesc" style="width:80%;"><%=expenddesc %></textarea>
</td>
</tr>
<tr>
<td class="e8_tblForm_label">
<!-- 显示顺序-->
<%=SystemEnv.getHtmlLabelName(15513,user.getLanguage())%>
</td>
<td class="e8_tblForm_field">
<input class="inputstyle" type="text" name="showorder" id="showorder" value="<%=showorder%>" size="5" onkeypress="ItemDecimal_KeyPress('showorder',15,2)" onblur="checknumber1(this);">
</td>
</tr>
<!-- ------------------------------ -->
<TR class="e8_tblForm_field" style="height: 30px;">
<TD colSpan=2 style="font-weight: bold;background-color:#fff;">
<!-- 接口动作-->
<%=SystemEnv.getHtmlLabelName(20978,user.getLanguage())%>
</TD>
</TR>
<%
if(!isVirtualForm){
String triggerWorkflowBrowserUrl = "/systeminfo/BrowserMain.jsp?url=/formmode/interfaces/ModeTriggerWorkflowBrowser.jsp?modeid="+modeid;
%>
<tr>
<td class="e8_tblForm_label">
<%=SystemEnv.getHtmlLabelNames("21805,15057",user.getLanguage())%><!-- 触发审批工作流 -->
</td>
<td class="e8_tblForm_field">
<brow:browser viewType="0" name="triggerWorkflowSetId" browserValue='<%=triggerWorkflowSetId%>'
getBrowserUrlFn="getTriggerWorkflowBrowserUrl"
hasInput="false" isSingle="true" hasBrowser = "true" isMustInput="1"
linkUrl="javascript:openWorkflowSet($id$)"
width="228px"
browserDialogWidth="550"
browserDialogHeight="555"
browserSpanValue='<%=triggerWorkflowSetName%>'
></brow:browser>
<button class="e8_browserAdd" style="margin-top: 2px;" title="<%=SystemEnv.getHtmlLabelName(82,user.getLanguage())%>" id="triggerWorkflowSetId_addbtn" type="button" onclick="openWorkflowSet()"></button>
</td>
</tr>
<%}%>
<tr>
<td class="e8_tblForm_label">
<%=SystemEnv.getHtmlLabelName(81456,user.getLanguage())%><!-- 外部接口动作 -->
</td>
<td class="e8_tblForm_field">
<select id="interfaceaction" name="interfaceaction">
<option value="" selected></option>
<%
String customeraction = "";
List l=StaticObj.getServiceIds(Action.class);
if(!interfaceaction.equals("")){
%>
<option value='<%=interfaceaction%>' selected><%=interfaceaction%></option>
<%
}
for(int i=0;i<l.size();i++){
if(l.get(i).equals(interfaceaction)){
continue;
}
%>
<option value='<%=l.get(i)%>'><%=l.get(i)%></option>
<%
}
%>
</select>
</td>
</tr>
<tr>
<td class="e8_tblForm_label">
<%=SystemEnv.getHtmlLabelName(82084,user.getLanguage())%><!-- 自定义java接口 -->
</td>
<td class="e8_tblForm_field">
<span class="codeEditFlag" onclick="openCodeEdit();">
<span id="javafilename_span"><%=javafilename %></span>
<div class="codeDelFlag" <%if(javafilename.equals("")){%>style="display: none;"<%}%>></div>
</span>
<input type="hidden" id="javafilename" name="javafilename" value="<%=javafilename %>"/>
</td>
</tr>
<tr><td colspan="3">
<table width="100%" class="liststyle" cellspacing="1" >
<COLGROUP>
<COL width="5%">
<COL width="35%">
<COL width="35%">
<COL width="25%">
<TR class="Spacing" style="height: 1px;"><TD class="Line1" colspan=5 style="padding: 0px;"></TD></TR>
<TR>
<td colSpan="3" width="65%"><!-- 其他接口动作 -->
<%=SystemEnv.getHtmlLabelName(375,user.getLanguage())%><%=SystemEnv.getHtmlLabelName(20978,user.getLanguage())%>:
<select id="actionlist" name="actionlist"><!-- 接口动作 -->
<option value="1">DML<%=SystemEnv.getHtmlLabelName(20978,user.getLanguage())%></option>
<!--
<option value="2">WebService<%=SystemEnv.getHtmlLabelName(20978,user.getLanguage())%></option>
<option value="3">SAP<%=SystemEnv.getHtmlLabelName(20978,user.getLanguage())%></option>
-->
</select>
</td>
<TD align="right" width="35%">
<DIV align=right style="margin-top: 3px;margin-right: 3px;">
<BUTTON type='button' class=btn_actionList onclick=addRow();><SPAN style="padding: 5px 10px;background-image: none;"><%=SystemEnv.getHtmlLabelName(456,user.getLanguage())%></SPAN></BUTTON><!-- 增加 -->
<BUTTON type='button' class=btn_actionList onclick=delRow();><SPAN style="padding: 5px 10px;background-image: none;"><%=SystemEnv.getHtmlLabelName(91,user.getLanguage())%></SPAN></BUTTON><!-- 删除 -->
</DIV>
</TD>
</TR>
<TR class="Spacing" style="height: 1px;"><TD class="Line1" colspan=5 style="padding: 0px;"></TD></TR>
<%
DMLActionBase dmlActionBase = new DMLActionBase();
List actionList = dmlActionBase.getDMLActionByNodeOrLinkId(id,modeid);
boolean islight = false;
for(int i =0;i<actionList.size();i++)
{
List dmlList = (List)actionList.get(i);
if(dmlList==null||dmlList.size()<3)
{
continue;
}
String dmlid = (String)dmlList.get(0);
String dmlactionname = (String)dmlList.get(1);
String dmltype = (String)dmlList.get(2);
%>
<tr class="<%if(islight){ %>datalight<%}else{%>datadark<%} %>">
<td>
<input type="checkbox" id="dmlid" name="dmlid" value="<%=dmlid%>">
<input type="hidden" id="actiontype<%=dmlid%>" name="actiontype<%=dmlid%>" value="0">
</td>
<td nowrap>
<a href="#" onclick="editAction('<%=dmlid %>', 0);"><%=dmlactionname %></a>
</td>
<td nowrap>
DML<%=SystemEnv.getHtmlLabelName(20978,user.getLanguage())%><!-- 接口动作 -->
</td>
<td>
<%=dmltype %><%=SystemEnv.getHtmlLabelName(104, user.getLanguage())%><!-- 操作 -->
</td>
</tr>
<%
islight = islight?false:true;
}
//webservice action 列表
WSActionManager wsActionManager = new WSActionManager();
wsActionManager.setActionid(0);
ArrayList wsActionList = wsActionManager.doSelectWsAction(id,modeid);
for(int i =0;i<wsActionList.size();i++){
ArrayList wsAction = (ArrayList)wsActionList.get(i);
int actionid_t = Util.getIntValue((String)wsAction.get(0));
String actionname_t = Util.null2String((String)wsAction.get(1));
%>
<tr class="<%if(islight){ %>datalight<%}else{%>datadark<%} %>">
<td>
<input type="checkbox" id="dmlid" name="dmlid" value="<%=actionid_t%>">
<input type="hidden" id="actiontype<%=actionid_t%>" name="actiontype<%=actionid_t%>" value="1">
</td>
<td nowrap>
<a href="#" onclick="editAction('<%=actionid_t%>', 1);"><%=actionname_t%></a>
</td>
<td colspan="2" nowrap>
WebService<%=SystemEnv.getHtmlLabelName(20978,user.getLanguage())%><!-- 接口动作 -->
</td>
</tr>
<%
islight = islight?false:true;
}
//sap action 列表
SapActionManager sapActionManager = new SapActionManager();
ArrayList sapActionList = sapActionManager.getSapActionSetList(id,modeid);
for(int i =0;i<sapActionList.size();i++){
ArrayList sapAction = (ArrayList)sapActionList.get(i);
int actionid_t = Util.getIntValue((String)sapAction.get(0));
String actionname_t = Util.null2String((String)sapAction.get(1));
%>
<tr class="<%if(islight){ %>datalight<%}else{%>datadark<%} %>">
<td>
<input type="checkbox" id="dmlid" name="dmlid" value="<%=actionid_t%>">
<input type="hidden" id="actiontype<%=actionid_t%>" name="actiontype<%=actionid_t%>" value="2">
</td>
<td nowrap>
<a href="#" onclick="editAction('<%=actionid_t%>', 2);"><%=actionname_t%></a>
</td>
<td colspan="2" nowrap>
Sap<%=SystemEnv.getHtmlLabelName(20978,user.getLanguage())%><!-- 接口动作 -->
</td>
</tr>
<%
islight = islight?false:true;
}
%>
</table>
</td>
</tr>
</table>
</form>
<div class="categoryChoose" id="categoryChoose1" >
<%
sql = "select * from mode_expangroup where modeid="+modeid;
rs.executeSql(sql);
if(rs.getCounts() > 0){%>
<ul>
<%
while(rs.next()){
%>
<li>
<span title="<%=rs.getString("groupname") %>" onclick="selectGroupName(this);" style="display:inline-block;width:75%;word-wrap:break-word;word-break:break-all;"><%=rs.getString("groupname") %></span>
<div style="float:right;">
<span onclick="editExpanGroup(this);"><img title="<%=SystemEnv.getHtmlLabelName(126036, user.getLanguage()) %>" src="/wui/theme/ecology8/skins/default/contextmenu/CM_icon15_wev8.png" width="15px" ></span>
<span onclick="delExpanGroup(this);"><img title="<%=SystemEnv.getHtmlLabelName(126371, user.getLanguage()) %>" src="/wui/theme/ecology8/skins/default/contextmenu/CM_icon13_wev8.png" width="15px" ></span>
<input type="hidden" id="liid" value="<%=rs.getString("id") %>">
</div>
</li>
<%}%>
</ul>
<%
}else{%>
<div class="t"><%=SystemEnv.getHtmlLabelName(127562, user.getLanguage()) %></div>
<%}%>
</div>
</body>
</html>