serviceReg_3NewParamsModeSAP.jsp
24.9 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
<%@ page import="weaver.general.Util" %>
<%@ page language="java" contentType="text/html; charset=UTF-8" %>
<%@ include file="/systeminfo/init_wev8.jsp" %>
<%@ taglib uri="/WEB-INF/weaver.tld" prefix="wea"%>
<%@page import="com.weaver.integration.datesource.SAPInterationOutUtil,com.weaver.integration.params.*"%>
<%@page import="com.weaver.integration.log.LogInfo"%>
<%@page import="com.weaver.integration.datesource.SAPFunctionParams"%>
<%@page import="com.weaver.integration.datesource.SAPFunctionImportParams"%>
<%@page import="com.weaver.integration.datesource.SAPFunctionExportParams"%>
<%@page import="com.weaver.integration.datesource.SAPFunctionBaseParamBean"%>
<%@page import="com.weaver.integration.datesource.SAPFunctionAllParams"%>
<jsp:useBean id="RecordSet" class="weaver.conn.RecordSet" scope="page" />
<jsp:useBean id="RecordSet02" class="weaver.conn.RecordSet" scope="page" />
<jsp:useBean id="WorkTypeComInfo" class="weaver.workflow.workflow.WorkTypeComInfo" scope="page" />
<HTML><HEAD><base target="_self">
<LINK REL=stylesheet type=text/css HREF=/css/Weaver_wev8.css></HEAD>
<%
//Z_OSAP_MATERIAL_GETALL有输入字段的函数
//BAPI_ROUTING_CREATE有输入结构,有输出结构,有输出参数
//BAPI_MATERIAL_SAVEDATA多个结构体的
String servId = Util.null2String(request.getParameter("servId")).trim();
String poolid = Util.null2String(request.getParameter("poolid")).trim();
String type=Util.null2String(request.getParameter("type")).trim();
String paramName = Util.null2String(request.getParameter("paramName")).trim().toUpperCase();
String paramDesc = Util.null2String(request.getParameter("paramDesc")).trim().toUpperCase();
String disValue = Util.null2String(request.getParameter("disValue")).trim().toUpperCase();
String operation=Util.null2String(Util.getIntValue(request.getParameter("operation"),1)+"").trim(); //operation操作类型1表示批量添加,2表示单个添加或修改
String stuortablevalue=Util.null2String(request.getParameter("stuortablevalue")).trim();//如果type=3,表示输入结构的名称,type=6表示输出结构的名称,type=8表示输出表的名称
String checkvalue=Util.null2String(request.getParameter("checkvalue")).toUpperCase();//选中的一项值
String paramnametitle = "";
String paramdesctitle = "";
if("1".equals(type) || "3".equals(type) || "4".equals(type) || "6".equals(type) || "8".equals(type) || "11".equals(type)) {
paramnametitle = SystemEnv.getHtmlLabelName(23481,user.getLanguage());//23481
paramdesctitle = SystemEnv.getHtmlLabelName(30667,user.getLanguage());
}
if("2".equals(type) || "5".equals(type)) {
paramnametitle = SystemEnv.getHtmlLabelName(30668,user.getLanguage());
paramdesctitle = SystemEnv.getHtmlLabelName(30670,user.getLanguage());
}
if("10".equals(type) || "7".equals(type)) {
paramnametitle = SystemEnv.getHtmlLabelName(30671,user.getLanguage());
paramdesctitle = SystemEnv.getHtmlLabelName(30674,user.getLanguage());
}
if("".equals(operation)){operation="1";}
%>
<BODY>
<jsp:include page="/systeminfo/commonTabHead.jsp">
<jsp:param name="mouldID" value="integration"/>
<jsp:param name="navName" value='<%=SystemEnv.getHtmlLabelName(84095,user.getLanguage())%>' />
</jsp:include>
<table id="topTitle" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td width="160px">
</td>
<td class="rightSearchSpan"
style="text-align: right; width: 500px !important">
<input type="button" value="<%=SystemEnv.getHtmlLabelName(197,user.getLanguage())%>" id="zd_btn_submit_0" class="e8_btn_top" onclick="doSearchParamsForm()">
<span title="<%=SystemEnv.getHtmlLabelName(82753,user.getLanguage()) %>" class="cornerMenu"></span>
</td>
</tr>
</table>
<%@ include file="/systeminfo/RightClickMenuConent_wev8.jsp" %>
<%
//RCMenu += "{"+SystemEnv.getHtmlLabelName(197,user.getLanguage())+",javascript:onSubmit(),_self} " ;
//RCMenuHeight += RCMenuHeightStep;
//RCMenu += "{"+SystemEnv.getHtmlLabelName(199,user.getLanguage())+",javascript:onReset(),_self} " ;
//RCMenuHeight += RCMenuHeightStep;
//RCMenu += "{清除,javascript:onClean(),_self} " ;
//RCMenuHeight += RCMenuHeightStep;
RCMenu += "{"+SystemEnv.getHtmlLabelName(197,user.getLanguage())+",javascript:doSearchParamsForm(),_self} " ;
RCMenuHeight += RCMenuHeightStep;
if("1".equals(operation))
{
RCMenu += "{"+SystemEnv.getHtmlLabelName(826,user.getLanguage())+",javascript:btnok_onclick(),_top} " ;
RCMenuHeight += RCMenuHeightStep ;
}else{
RCMenu += "{"+SystemEnv.getHtmlLabelName(311,user.getLanguage())+",javascript:onClear(),_self} " ;
RCMenuHeight += RCMenuHeightStep;
}
RCMenu += "{"+SystemEnv.getHtmlLabelName(201,user.getLanguage())+",javascript:onCancel(),_self} " ;
RCMenuHeight += RCMenuHeightStep;
%>
<%@ include file="/systeminfo/RightClickMenu_wev8.jsp" %>
<table width=100% height=100% border="0" cellspacing="0" cellpadding="0">
<colgroup>
<col width="10">
<col width="*">
<col width="10">
</colgroup>
<tr>
<td></td>
<td height="35px">
<form action="" method="post" id="searchFormParams">
<wea:layout type="4Col">
<wea:group context='<%=SystemEnv.getHtmlLabelName(1361,user.getLanguage())%>'>
<wea:item><%=paramnametitle %></wea:item>
<wea:item><input type="text" name="paramName" value='<%=paramName %>' style="width:200px;"></wea:item>
<wea:item><%=paramdesctitle %></wea:item>
<wea:item><input type="text" name="paramDesc" value='<%=paramDesc %>' style="width:200px;"></wea:item>
</wea:group>
</wea:layout>
<input type="hidden" name="servId" value="<%=servId%>">
<input type="hidden" name="poolid" value="<%=poolid%>">
<input type="hidden" name="type" value="<%=type%>">
<input type="hidden" name="disValue" value="<%=disValue%>">
<input type="hidden" name="operation" value="<%=operation%>">
<input type="hidden" name="stuortablevalue" value="<%=stuortablevalue%>">
<input id="searchFormParamsBtn" type="submit" style="display: none;width:1px;height:1px; ">
</form>
</td>
<td></td>
</tr>
<tr>
<td ></td>
<td valign="top">
<TABLE class=Shadow>
<tr>
<td valign="top" width="100%">
<!--
<table width=100% class="viewform">
<TR>
<TD >SystemEnv.getHtmlLabelName(15433,user.getLanguage())%></TD>
<TD class=field colspan=3>
</TD>
</tr>
<TR style="height:1px;"><TD class=Line colSpan=6></TD></TR>
<tr>
<TD >参数名称</TD>
<TD class=field>
<input type="text">
</TD>
<TD >参数描述</TD>
<TD class=field>
<input type="text">
</TD>
</TR>
<TR class="Spacing" style="height:1px;"><TD class="Line1" colspan=6></TD></TR>
</table>
-->
<%
if("1".equals(type)||"3".equals(type)||"4".equals(type)||"6".equals(type)||"8".equals(type)||"11".equals(type)||"12".equals(type))
{
if("1".equals(operation))
{
out.println("<TABLE ID=BrowseTable class='BroswerStyle' cellspacing='1' width='100%'>");
out.println("<TR class=DataHeader>");
out.println("<th width=10% ><input type=checkbox id='check_per_ALL' onclick='javascript:check_per_ALLClick();'>"+SystemEnv.getHtmlLabelName(556,user.getLanguage())+"</th>");
out.println("<TH width=40% >"+SystemEnv.getHtmlLabelName(23481,user.getLanguage())+"</TH>");
out.println("<TH width=50% >"+SystemEnv.getHtmlLabelName(30667,user.getLanguage())+"</TH>");
out.println("</tr>");
out.println("<TR class=Line style='height:1px;'><th colspan='3' ></Th></TR> ");
}else
{
out.println("<TABLE ID=BrowseTable class='BroswerStyle' cellspacing='1' width='100%'>");
out.println("<TR class=DataHeader>");
out.println("<TH width=50% >"+SystemEnv.getHtmlLabelName(23481,user.getLanguage())+"</TH>");
out.println("<TH width=50% >"+SystemEnv.getHtmlLabelName(30667,user.getLanguage())+"</TH>");
out.println("</tr>");
out.println("<TR class=Line style='height:1px;'><th colspan='2' ></Th></TR> ");
}
}else if("2".equals(type)||"5".equals(type))
{
if("1".equals(operation))
{
out.println("<TABLE ID=BrowseTable class='BroswerStyle' cellspacing='1' width='100%'>");
out.println("<TR class=DataHeader>");
out.println("<th width=10% ><input type=checkbox id='check_per_ALL' onclick='javascript:check_per_ALLClick();'>"+SystemEnv.getHtmlLabelName(556,user.getLanguage())+"</th>");
out.println("<TH width=40% >"+SystemEnv.getHtmlLabelName(30668,user.getLanguage())+"</TH>");
out.println("<TH width=50% >"+SystemEnv.getHtmlLabelName(30670,user.getLanguage())+"</TH>");
out.println("</tr>");
out.println("<TR class=Line style='height:1px;'><th colspan='3' ></Th></TR> ");
}else
{
out.println("<TABLE ID=BrowseTable class='BroswerStyle' cellspacing='1' width='100%'>");
out.println("<TR class=DataHeader>");
out.println("<TH width=50% >"+SystemEnv.getHtmlLabelName(30668,user.getLanguage())+"</TH>");
out.println("<TH width=50% >"+SystemEnv.getHtmlLabelName(30670,user.getLanguage())+"</TH>");
out.println("</tr>");
out.println("<TR class=Line style='height:1px;'><th colspan='2' ></Th></TR> ");
}
}else if("7".equals(type)||"10".equals(type))
{
if("1".equals(operation))
{
out.println("<TABLE ID=BrowseTable class='BroswerStyle' cellspacing='1' width='100%'>");
out.println("<TR class=DataHeader>");
out.println("<th width=10% ><input type=checkbox id='check_per_ALL' onclick='javascript:check_per_ALLClick();'>"+SystemEnv.getHtmlLabelName(556,user.getLanguage())+"</th>");
out.println("<TH width=40% >"+SystemEnv.getHtmlLabelName(30671,user.getLanguage())+"</TH>");
out.println("<TH width=50% >"+SystemEnv.getHtmlLabelName(30674,user.getLanguage())+"</TH>");
out.println("</tr>");
out.println("<TR class=Line style='height:1px;'><th colspan='3' ></Th></TR> ");
}else
{
out.println("<TABLE ID=BrowseTable class='BroswerStyle' cellspacing='1' width='100%'>");
out.println("<TR class=DataHeader>");
out.println("<TH width=50% >"+SystemEnv.getHtmlLabelName(30671,user.getLanguage())+"</TH>");
out.println("<TH width=50% >"+SystemEnv.getHtmlLabelName(30674,user.getLanguage())+"</TH>");
out.println("</tr>");
out.println("<TR class=Line style='height:1px;'><th colspan='2' ></Th></TR> ");
}
}
LogInfo li=new LogInfo();
SAPFunctionAllParams sa = null;
SAPFunctionImportParams saimport = null;
SAPFunctionExportParams saexp = null;
if("".equals(stuortablevalue)) {
sa = ServiceParamsUtil.getSAPFunAllParsByServID(servId,paramName,paramDesc,disValue,li);
if(sa != null) {
saimport = sa.getSip();//得到所有的输入参数
saexp = sa.getSep();//得到所有的输出参数
}
}
if("1".equals(type))//获取输入参数
{
List list = null;
if(saimport != null) {
list=saimport.getStrList();//得到输入参数里面的所有项
}
if(null!=list)
{
for(int h=0;h<list.size();h++) {
SAPFunctionBaseParamBean sbpb = (SAPFunctionBaseParamBean)list.get(h);
if(h%2==0) {
out.println("<tr class=DataDark>");
}else {
out.println("<tr class=DataLight>");
}
if("1".equals(operation))
{
if(checkvalue.equals(sbpb.getParamName().toUpperCase()))
{
out.println("<td style='width:50px'><input type=checkbox name='check_per' checked=checked></td>");
}else
{
out.println("<td style='width:50px'><input type=checkbox name='check_per'></td>");
}
}
out.println("<td>"+sbpb.getParamName().toUpperCase()+"</td>");
out.println("<td>"+sbpb.getParamDesc().toUpperCase()+"</td>");
out.println("</tr>");
}
}
}else if("3".equals(type))//获取某个输入结构的里面的参数
{
if(!"".equals(stuortablevalue))
{
List list=ServiceParamsUtil.getCompParamsByServIdAndParamName(servId, stuortablevalue, "import", true,paramName,paramDesc,disValue);
if(null!=list)
{
for(int h=0;h<list.size();h++) {
SAPFunctionBaseParamBean sbpb = (SAPFunctionBaseParamBean)list.get(h);
if(h%2==0) {
out.println("<tr class=DataDark>");
}else {
out.println("<tr class=DataLight>");
}
if("1".equals(operation))
{
if(checkvalue.equals(sbpb.getParamName().toUpperCase()))
{
out.println("<td style='width:50px'><input type=checkbox name='check_per' checked=checked></td>");
}else
{
out.println("<td style='width:50px'><input type=checkbox name='check_per'></td>");
}
}
out.println("<td>"+sbpb.getParamName().toUpperCase()+"</td>");
out.println("<td>"+sbpb.getParamDesc().toUpperCase()+"</td>");
out.println("</tr>");
}
}
}
}
else if("4".equals(type))//获取输出参数
{
List list = null;
if(saexp != null) {
list=saexp.getStrList();//得到输入参数里面的所有项
}
if(null!=list)
{
for(int h=0;h<list.size();h++) {
SAPFunctionBaseParamBean sbpb = (SAPFunctionBaseParamBean)list.get(h);
if(h%2==0) {
out.println("<tr class=DataDark>");
}else {
out.println("<tr class=DataLight>");
}
if("1".equals(operation))
{
if(checkvalue.equals(sbpb.getParamName().toUpperCase()))
{
out.println("<td style='width:50px'><input type=checkbox name='check_per' checked=checked></td>");
}else
{
out.println("<td style='width:50px'><input type=checkbox name='check_per'></td>");
}
}
out.println("<td>"+sbpb.getParamName().toUpperCase()+"</td>");
out.println("<td>"+sbpb.getParamDesc().toUpperCase()+"</td>");
out.println("</tr>");
}
}
}
else if("6".equals(type))//获取输出结构里面的输出参数
{
if(!"".equals(stuortablevalue))
{
List list=ServiceParamsUtil.getCompParamsByServIdAndParamName(servId, stuortablevalue, "export", true,paramName,paramDesc,disValue);
if(null!=list)
{
for(int h=0;h<list.size();h++) {
SAPFunctionBaseParamBean sbpb = (SAPFunctionBaseParamBean)list.get(h);
if(h%2==0) {
out.println("<tr class=DataDark>");
}else {
out.println("<tr class=DataLight>");
}
if("1".equals(operation))
{
if(checkvalue.equals(sbpb.getParamName().toUpperCase()))
{
out.println("<td style='width:50px'><input type=checkbox name='check_per' checked=checked></td>");
}else
{
out.println("<td style='width:50px'><input type=checkbox name='check_per'></td>");
}
}
out.println("<td>"+sbpb.getParamName().toUpperCase()+"</td>");
out.println("<td>"+sbpb.getParamDesc().toUpperCase()+"</td>");
out.println("</tr>");
}
}
}
}
else if("8".equals(type)||"12".equals(type))//获取输出表里面的输出参数
{
if(!"".equals(stuortablevalue))
{
List list=ServiceParamsUtil.getCompParamsByServIdAndParamName(servId, stuortablevalue, "export", false,paramName,paramDesc,disValue);
if(null!=list)
{
for(int h=0;h<list.size();h++) {
SAPFunctionBaseParamBean sbpb = (SAPFunctionBaseParamBean)list.get(h);
if(h%2==0) {
out.println("<tr class=DataDark>");
}else {
out.println("<tr class=DataLight>");
}
if("1".equals(operation))
{
if(checkvalue.equals(sbpb.getParamName().toUpperCase()))
{
out.println("<td style='width:50px'><input type=checkbox name='check_per' checked=checked></td>");
}else
{
out.println("<td style='width:50px'><input type=checkbox name='check_per'></td>");
}
}
out.println("<td>"+sbpb.getParamName().toUpperCase()+"</td>");
out.println("<td>"+sbpb.getParamDesc().toUpperCase()+"</td>");
out.println("</tr>");
}
}
}
}
else if("2".equals(type))//获取输入结构的名称集合
{
List list = null;
if(saimport != null) list=saimport.getStructList();//得到输入参数里面的所有项
if(null!=list)
{
for(int h=0;h<list.size();h++) {
SAPFunctionBaseParamBean sbpb = (SAPFunctionBaseParamBean)list.get(h);
if(h%2==0) {
out.println("<tr class=DataDark>");
}else {
out.println("<tr class=DataLight>");
}
if("1".equals(operation))
{
if(checkvalue.equals(sbpb.getParamName().toUpperCase()))
{
out.println("<td style='width:50px'><input type=checkbox name='check_per' checked=checked></td>");
}else
{
out.println("<td style='width:50px'><input type=checkbox name='check_per'></td>");
}
}
out.println("<td>"+sbpb.getParamName().toUpperCase()+"</td>");
out.println("<td>"+sbpb.getParamDesc().toUpperCase()+"</td>");
out.println("</tr>");
}
}
}else if("5".equals(type))//获取输出结构结构的名称集合
{
List list = null;
if(saexp != null) list=saexp.getStructList();//得到输入参数里面的所有项
if(null!=list)
{
for(int h=0;h<list.size();h++) {
SAPFunctionBaseParamBean sbpb = (SAPFunctionBaseParamBean)list.get(h);
if(h%2==0) {
out.println("<tr class=DataDark>");
}else {
out.println("<tr class=DataLight>");
}
if("1".equals(operation))
{
if(checkvalue.equals(sbpb.getParamName().toUpperCase()))
{
out.println("<td style='width:50px'><input type=checkbox name='check_per' checked=checked></td>");
}else
{
out.println("<td style='width:50px'><input type=checkbox name='check_per'></td>");
}
}
out.println("<td>"+sbpb.getParamName().toUpperCase()+"</td>");
out.println("<td>"+sbpb.getParamDesc().toUpperCase()+"</td>");
out.println("</tr>");
}
}
}else if("7".equals(type))//获取输出表的名称集合
{
List list = null;
if(saexp != null) list=saexp.getTableList();//得到输入参数里面的所有项
if(null!=list)
{
for(int h=0;h<list.size();h++) {
SAPFunctionBaseParamBean sbpb = (SAPFunctionBaseParamBean)list.get(h);
if(h%2==0) {
out.println("<tr class=DataDark>");
}else {
out.println("<tr class=DataLight>");
}
if("1".equals(operation))
{
if(checkvalue.equals(sbpb.getParamName().toUpperCase()))
{
out.println("<td style='width:50px'><input type=checkbox name='check_per' checked=checked></td>");
}else
{
out.println("<td style='width:50px'><input type=checkbox name='check_per'></td>");
}
}
out.println("<td>"+sbpb.getParamName().toUpperCase()+"</td>");
out.println("<td>"+sbpb.getParamDesc().toUpperCase()+"</td>");
out.println("</tr>");
}
}
}else if("10".equals(type))//获取输入表的名称集合
{
List list = null;
if(saimport != null) list=saimport.getTableList();
if(null!=list)
{
for(int h=0;h<list.size();h++) {
SAPFunctionBaseParamBean sbpb = (SAPFunctionBaseParamBean)list.get(h);
if(h%2==0) {
out.println("<tr class=DataDark>");
}else {
out.println("<tr class=DataLight>");
}
if("1".equals(operation))
{
if(checkvalue.equals(sbpb.getParamName().toUpperCase()))
{
out.println("<td style='width:50px'><input type=checkbox name='check_per' checked=checked></td>");
}else
{
out.println("<td style='width:50px'><input type=checkbox name='check_per'></td>");
}
}
out.println("<td>"+sbpb.getParamName().toUpperCase()+"</td>");
out.println("<td>"+sbpb.getParamDesc().toUpperCase()+"</td>");
out.println("</tr>");
}
}
}else if("11".equals(type))//获取某个输入表下面的所有的参数
{
if(!"".equals(stuortablevalue)) {
List list=ServiceParamsUtil.getCompParamsByServIdAndParamName(servId, stuortablevalue, "import", false,paramName,paramDesc,disValue);
if(null!=list)
{
for(int h=0;h<list.size();h++) {
SAPFunctionBaseParamBean sbpb = (SAPFunctionBaseParamBean)list.get(h);
if(h%2==0) {
out.println("<tr class=DataDark>");
}else {
out.println("<tr class=DataLight>");
}
if("1".equals(operation))
{
if(checkvalue.equals(sbpb.getParamName().toUpperCase()))
{
out.println("<td style='width:50px'><input type=checkbox name='check_per' checked=checked></td>");
}else
{
out.println("<td style='width:50px'><input type=checkbox name='check_per'></td>");
}
}
out.println("<td>"+sbpb.getParamName().toUpperCase()+"</td>");
out.println("<td>"+sbpb.getParamDesc().toUpperCase()+"</td>");
out.println("</tr>");
}
}
}
}
out.println("</TABLE>");
%>
</td>
</tr>
</TABLE>
</td>
<td></td>
</tr>
<tr>
<td height="10" colspan="3"></td>
</tr>
</table>
<div id="zDialog_div_bottom" class="zDialog_div_bottom">
<wea:layout needImportDefaultJsAndCss="false">
<wea:group context="" attributes="{\"groupDisplay\":\"none\"}">
<wea:item type="toolbar">
<input type="button" value="<%=SystemEnv.getHtmlLabelName(311,user.getLanguage())%>" id="zd_btn_cancle" class="zd_btn_cancle" onclick="onClear();"/>
<input type="button" value="<%=SystemEnv.getHtmlLabelName(201,user.getLanguage())%>" id="zd_btn_cancle" class="zd_btn_cancle" onclick="onCancel();"/>
</wea:item>
</wea:group>
</wea:layout>
</div>
<jsp:include page="/systeminfo/commonTabFoot.jsp"></jsp:include>
</BODY></HTML>
<SCRIPT LANGUAGE="javascript">
var ids = "";
var names = "";
var dialog = top.getDialog(window);
function btnok_onclick() {
if(dialog){
try{
dialog.callback({id: ids, name: names});
}catch(e){alert(e)}
try{
dialog.close({id: ids, name: names});
}catch(e){alert(e)}
dialog.callback();
}else{
window.parent.returnValue = {id: ids, name: names};//Array(documentids,documentnames)
window.parent.close();
}
}
//多选
jQuery(document).ready(function(){
//alert(jQuery("#BrowseTable").find("tr").length)
jQuery("#BrowseTable").find("tr[class^='Data'][class!='DataHeader']").bind("click",function(event){
if($(this)[0].tagName=="TR"&&event.target.tagName!="INPUT"){
<%
if("1".equals(operation))
{
%>
var $checkboxtemp = $(this).find("input[name=check_per]");
$checkboxtemp.attr("checked",!$checkboxtemp.attr("checked"));
ids= "";
names = "";
$("input[name=check_per]").each(function() {
if($(this).attr("checked") == true) {
ids += "##" + $(this).parent().parent().find("td:eq(1)").text();
names += "##" + $(this).parent().parent().find("td:eq(2)").text();
}
});
<%
}else{
%>
ids = $(this).find("td:eq(0)").text();
names = $(this).find("td:eq(1)").text();
submitData();
<%
}
%>
}
//点击checkbox框
if(event.target.tagName=="INPUT"){
var obj = $("input[name=check_per]");
ids= "";
names = "";
obj.each(function() {
if($(this).attr("checked") == true) {
ids += "##" + $(this).parents("tr:first").find("td:eq(1)").text();
names += "##" + $(this).parents("tr:first").find("td:eq(2)").text();
}
});
}
})
jQuery("#BrowseTable").find("tr[class^='Data'][class!='DataHeader']").bind("mouseover",function(){
$(this).addClass("Selected")
})
jQuery("#BrowseTable").find("tr[class^='Data'][class!='DataHeader']").bind("mouseout",function(){
$(this).removeClass("Selected")
})
});
</SCRIPT>
<script language="javascript">
function onSubmit() {
$G("SearchForm").submit();
}
function onReset() {
$G("SearchForm").reset()
}
function submitData()
{
btnok_onclick();
}
function onCancel()
{
if(dialog){
dialog.close();
}else{
window.parent.close();
}
}
function onClear()
{
if(dialog){
try{
dialog.callback({id: "0",name: ""});
}catch(e){alert(e)}
try{
dialog.close({id: "0",name: ""});
}catch(e){alert(e)}
}else{
window.parent.returnValue = {id: "0",name: ""};
window.parent.close();
}
}
function doSearchParamsForm() {
$("#searchFormParamsBtn").click();
}
function check_per_ALLClick() {
var temp = $("#check_per_ALL").attr("checked");
$("input[name='check_per'][type='checkbox']").attr("checked",temp);
changeCheckboxStatus($("input[name='check_per'][type='checkbox']"),temp);
if(temp == false) {
ids = "";
names = "";
} else {
$("input[name='check_per'][type='checkbox']").each(function(){
var idtemp = $(this).parents("tr:first").find("td:eq(1)").html();
var nametemp = $(this).parents("tr:first").find("td:eq(2)").html();
ids += "##" + idtemp;
names += "##" + nametemp;
});
}
}
function replaceALL(str,oldstr,newstr)
{
re=new RegExp(oldstr,"g");
var newstart=str.replace(re,newstr);
return newstart;
// 解释:re=new RegExp("l","g")中的第一个参数是你要替换的字符串,第二个参数指替换所有的,
//其中,第二参数也可以设置为("i"),表示只替换第一个字符串。
//str.replace(re,"t")中第二个参数你要修改的字符串。
}
</script>