l5m-tools 0.0.2.beta
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/.document +5 -0
- data/Gemfile +15 -0
- data/LICENSE.txt +20 -0
- data/README +19 -0
- data/README.rdoc +19 -0
- data/Rakefile +54 -0
- data/VERSION +1 -0
- data/bin/duplicate-app +3 -0
- data/bin/l5m +7 -0
- data/bin/make-app +3 -0
- data/bin/set_env.sh +19 -0
- data/bin/svn.tool +3 -0
- data/info +0 -0
- data/l5m-tools.gemspec +83 -0
- data/lib/l5m-tools/application.rb +41 -0
- data/lib/l5m-tools/array.rb +13 -0
- data/lib/l5m-tools/env.rb +8 -0
- data/lib/l5m-tools/ignore/svn_ingore.yaml +21 -0
- data/lib/l5m-tools/l5m-tools-module.rb +12 -0
- data/lib/l5m-tools/string.rb +7 -0
- data/lib/l5m-tools/svn.rb +109 -0
- data/lib/l5m-tools/template/Template.jsp +443 -0
- data/lib/l5m-tools/template/TemplateBaseAbstractWorker.java +187 -0
- data/lib/l5m-tools/template/TemplateServicerImpl.java +216 -0
- data/lib/l5m-tools/template/TemplateWorker.java +653 -0
- data/lib/l5m-tools/template/frt.jsp +445 -0
- data/lib/l5m-tools/template/ms2.jsp +443 -0
- data/lib/l5m-tools/template/rad.jsp +443 -0
- data/lib/l5m-tools/template/ttv2.jsp +693 -0
- data/lib/l5m-tools/tools.rb +69 -0
- data/lib/l5m-tools.rb +20 -0
- data/test/helper.rb +18 -0
- data/test/test_l5m-tools.rb +34 -0
- metadata +133 -0
@@ -0,0 +1,443 @@
|
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
2
|
+
<%@ page language="java"
|
3
|
+
import="java.util.*,
|
4
|
+
com.l5m.common.bean.*,
|
5
|
+
com.l5m.common.l5m_util.bean.*,
|
6
|
+
com.l5m.common.l5m_util.rld.*,
|
7
|
+
com.l5m.common.util.*,
|
8
|
+
org.ajaxanywhere.AAUtils,
|
9
|
+
com.l5m.!REPLACE_STYLE!.bean.*,
|
10
|
+
com.l5m.!REPLACE_STYLE!.engine.worker.*,
|
11
|
+
com.l5m.common.l5m_util.module.*"
|
12
|
+
%>
|
13
|
+
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
|
14
|
+
<%@ taglib uri="http://ajaxanywhere.sourceforge.net/" prefix="aa"%>
|
15
|
+
<%@ taglib uri="http://l5m.com/ui" prefix="l5m"%>
|
16
|
+
<%@ taglib uri="http://l5m.com/ajax" prefix="l5mAjax"%>
|
17
|
+
<%@ taglib uri="http://l5m.com/util" prefix="l5mU"%>
|
18
|
+
<%@ taglib uri="http://l5m.com/functions" prefix="l5mfunctions"%>
|
19
|
+
<%@ taglib uri="http://l5m.com/mod" prefix="mod"%>
|
20
|
+
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
|
21
|
+
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="f"%>
|
22
|
+
<c:set value="${requestScope.RequestWorker}" var="worker" />
|
23
|
+
<c:set value="${worker.servicer}" var="servicer" />
|
24
|
+
<c:set value="${servicer.baseServicerParameterBean}" var="baseServicerParameterBean" />
|
25
|
+
<c:set value="${baseServicerParameterBean}" var="paraBean" />
|
26
|
+
<c:set var="formName" value="${worker.FORM_NAME}" scope="request"/>
|
27
|
+
<c:set var="packageLowerCase" value="${worker.packageLowerCase}" scope="request"/>
|
28
|
+
<c:set var="packageUpperCase" value="${worker.packageUpperCase}" scope="request"/>
|
29
|
+
<c:set var="styleLowerCase" value="${packageLowerCase}" />
|
30
|
+
<c:set var="styleUpperCase" value="${packageUpperCase}" />
|
31
|
+
<c:set var="PANEL" value="${worker.PANEL}"/>
|
32
|
+
<%
|
33
|
+
if(AAUtils.isAjaxRequest(request)){
|
34
|
+
AAUtils.addZonesToRefresh(request, "alwaysRefreshZone,"+ ((String)request.getAttribute("refreshZones")));
|
35
|
+
}
|
36
|
+
%><!-- -->
|
37
|
+
|
38
|
+
|
39
|
+
<html>
|
40
|
+
|
41
|
+
|
42
|
+
|
43
|
+
|
44
|
+
|
45
|
+
<l5m:jspHead useIE7Compatible="true" title="${worker.APP_NAME}" formName="${formName}" packageName="${packageLowerCase}" planingCss="L001;L004">
|
46
|
+
|
47
|
+
<!-- add additinal js css in here -->
|
48
|
+
<link href="<%=request.getContextPath()%>/htdoc/datepicker-lite.css" rel="stylesheet" type="text/css" />
|
49
|
+
<script type="text/javascript" src="<%=request.getContextPath()%>/tagresources/javascript/timeSpan/datepicker-lite.js "></script>
|
50
|
+
|
51
|
+
<script type="text/javascript" src='<%=request.getContextPath()%>/tagresources/javascript/TopBar2.js'></script>
|
52
|
+
<link rel="stylesheet" type="text/css" href="<%=request.getContextPath()%>/tagresources/css/TopBar2/TopBar2_${styleUpperCase}.css" />
|
53
|
+
<!-- addtion javascript here -->
|
54
|
+
<%@ include file="CommonVariables.jsp"%>
|
55
|
+
<c:set var="colors" value="<%=colors%>" scope="request"/>
|
56
|
+
<script type="text/javascript"><!--
|
57
|
+
ajaxAnywhere.formName = "${worker.FORM_NAME}";
|
58
|
+
var QHTAjaxObject = new QHTAjaxUtil('<%=request.getContextPath()%>/servlet/L5MOnline/<%=AppConfig.getProperty("appL5MOnline")%>','${worker.url}','<%=AppConfig.getProperty("butOption")%>');
|
59
|
+
var pageAction = new PageAction(window, "${worker.FORM_NAME}", "<%=AppConfig.getProperty("butOption")%>", "panelIndex" , "displayStage" , '<%=request.getContextPath()%>/servlet/L5MOnline?work=ForwardToJspWorker&jsp=IntermediaRefreshN&irStatus=firstTime&showLocalForm=N')
|
60
|
+
|
61
|
+
AjaxAnywhere.prototype.getGlobalScriptsDeclarationsList = function(script) {
|
62
|
+
return ["paginatorDetail_pageChanged"];
|
63
|
+
}
|
64
|
+
function ts_notify_time_changed(){
|
65
|
+
pageAction.changeTime();
|
66
|
+
}
|
67
|
+
function hideDialog(dId){
|
68
|
+
pageAction.hideDialog(dId);
|
69
|
+
}
|
70
|
+
function showDialog(dId){
|
71
|
+
pageAction.showDialog(dId);
|
72
|
+
}
|
73
|
+
function clickButton(button){
|
74
|
+
pageAction.clickButton(button);
|
75
|
+
}
|
76
|
+
function navDesc_ShowStepInfo(s){
|
77
|
+
}
|
78
|
+
//-->
|
79
|
+
</script>
|
80
|
+
<style>
|
81
|
+
#sourcePanel td{ /* all tds in sourcePanel will be nowrap.*/
|
82
|
+
white-space:nowrap;
|
83
|
+
}
|
84
|
+
</style>
|
85
|
+
|
86
|
+
|
87
|
+
|
88
|
+
|
89
|
+
|
90
|
+
|
91
|
+
</l5m:jspHead>
|
92
|
+
|
93
|
+
<body bgcolor="#ffffff" marginwidth="0" marginheight="0" leftmargin="0" topmargin="0">
|
94
|
+
<div id="mainmessage" align="center">
|
95
|
+
<span style="font-family: Arial, Helvetica, sans-serif; font-size: 16px; font-weight: bold">
|
96
|
+
<br/>
|
97
|
+
<br/>
|
98
|
+
<br/>
|
99
|
+
<br/>
|
100
|
+
Please wait ...<br />
|
101
|
+
</span>
|
102
|
+
</div>
|
103
|
+
<div id="mainpart" style="display: none;">
|
104
|
+
<form class="formnomargin" name="${worker.FORM_NAME}" id="${worker.FORM_NAME}" action="<%=AppConfig.getProperty("appL5MOnline")%>" method="post">
|
105
|
+
<input type="hidden" name="<%=AppConfig.getProperty("requestAction")%>" id="<%=AppConfig.getProperty("requestAction")%>" value="${worker.WORKER_NAME}" />
|
106
|
+
<input type="hidden" name="<%=AppConfig.getProperty("srcPage")%>" id="<%=AppConfig.getProperty("srcPage")%>" value="${worker.jspGoto}" />
|
107
|
+
<input type="hidden" name="<%=AppConfig.getProperty("butOption")%>" id="<%=AppConfig.getProperty("butOption")%>" value="" />
|
108
|
+
<input type="hidden" name="1stnavbar" id="1stnavbar" value="<%=request.getParameter("1stnavbar")%>" />
|
109
|
+
<input type="hidden" name="2ndnavbar" id="2ndnavbar" value="<%=request.getParameter("2ndnavbar")%>" />
|
110
|
+
<input type="hidden" name="<%=SessionConstants.NAV_COMPANY_ID%>" value="${worker.servicer.companyId}" />
|
111
|
+
<input type="hidden" name="<%=TTVConstants.MODULE_INDEX%>" id="<%=TTVConstants.MODULE_INDEX%>" value="" />
|
112
|
+
<aa:zone name="alwaysRefreshZone">
|
113
|
+
<input type="hidden" name="panelIndex" id="name" value="${paraBean.panelIndex}"/>
|
114
|
+
<input type="hidden" name="displayStage" id="displayStage" value="${paraBean.displayStage}"/>
|
115
|
+
<c:set var="onchange" value=""/>
|
116
|
+
<c:if test="${paraBean.displayStage}">
|
117
|
+
<c:set var="onchange">pageAction.clearResult(); </c:set>
|
118
|
+
</c:if>
|
119
|
+
</aa:zone>
|
120
|
+
|
121
|
+
|
122
|
+
|
123
|
+
<aa:zone name="topNavigationZone">
|
124
|
+
<l5m:TopBar2
|
125
|
+
id="TopBar"
|
126
|
+
topBarIcons = "${worker.topBarIcons}"
|
127
|
+
iconsStatus = "${worker.iconsStatus}"
|
128
|
+
actions = "${worker.actions}"
|
129
|
+
decimalControlList = "${servicer.reportDecimalControlList}"
|
130
|
+
startControlZone = "topPanel"
|
131
|
+
style = "${styleLowerCase}"
|
132
|
+
incValueMap = "${paraBean.SORT_DISPLAY_MAP}"
|
133
|
+
incSelectedSet = "${paraBean.selectedDisplayBy}"
|
134
|
+
incSingleSelected = "${paraBean.selectedSortBy}"
|
135
|
+
/>
|
136
|
+
</aa:zone>
|
137
|
+
|
138
|
+
<div id="topPanel" style="display:${paraBean.selectionPanelStatusOpen?'inline':'none'}" >
|
139
|
+
<!--source panel begin-->
|
140
|
+
<div id="accordionNavigationTab">
|
141
|
+
<table border="0" cellspacing="0" cellpadding="0" width="100%">
|
142
|
+
<tr>
|
143
|
+
<td>
|
144
|
+
|
145
|
+
<l5m:tabPanel2
|
146
|
+
id="accordionTestTop"
|
147
|
+
captions="${baseServicerParameterBean.tabbedPanelCaptions}"
|
148
|
+
selected="${baseServicerParameterBean.selectedTab}"
|
149
|
+
style="${styleLowerCase}"
|
150
|
+
showDisplayControl="false">
|
151
|
+
<l5m:tab2>
|
152
|
+
<div class="text">
|
153
|
+
<table border="0" cellspacing="0" cellpadding="0" width="100%" style='height:100%;font-size:11px;'>
|
154
|
+
<tr>
|
155
|
+
<td style="padding-left:3px;padding-right:5px; " valign="top" height="170px;" >
|
156
|
+
|
157
|
+
<table border="0" cellspacing="0" cellpadding="0" width="100%">
|
158
|
+
<tr>
|
159
|
+
<td style=' ' style='width:50%;' nowrap="nowrap" valign="top" >
|
160
|
+
<c:set var="timeSpanController" scope="request" value="${baseServicerParameterBean.timeSpanController}"/>
|
161
|
+
<jsp:include page="TimeSpanNew.jsp" flush="true">
|
162
|
+
<jsp:param name="formName" value="${worker.FORM_NAME}" />
|
163
|
+
<jsp:param name="notifyOnChange" value="Y" />
|
164
|
+
<jsp:param name="timeSpanIndex" value="0" />
|
165
|
+
</jsp:include>
|
166
|
+
</td>
|
167
|
+
</tr>
|
168
|
+
</table>
|
169
|
+
|
170
|
+
<aa:zone name="sourcePanelZone">
|
171
|
+
<table id='sourcePanel' border="0" cellspacing="0" cellpadding="0" width="100%">
|
172
|
+
<tr><td></td></tr>
|
173
|
+
</table>
|
174
|
+
</aa:zone>
|
175
|
+
</td>
|
176
|
+
</tr>
|
177
|
+
</table>
|
178
|
+
</div>
|
179
|
+
</l5m:tab2>
|
180
|
+
</l5m:tabPanel2>
|
181
|
+
</td>
|
182
|
+
</tr>
|
183
|
+
</table>
|
184
|
+
</div>
|
185
|
+
<!--source panel end-->
|
186
|
+
<div class="Q_SubmitBox">
|
187
|
+
<table cellspacing="0" cellpadding="0" width="100%" style="margin-left:4px;margin-right:0px; ">
|
188
|
+
<tr>
|
189
|
+
<td colspan="100%" >
|
190
|
+
<table width="100%" cellpadding="0" cellspacing="0">
|
191
|
+
<tr bgcolor='#DDEEFF'>
|
192
|
+
<td nowrap="nowrap" width="25%" style="text-align:left" > </td>
|
193
|
+
<td nowrap="nowrap" width="50%" style="text-align:center" >
|
194
|
+
<b> <a href="javascript:pageAction.submit('<%=ActionConstants.SUBMIT%>')"><img style='border:none' src="<%=request.getContextPath()%>/image/gif/submitBut.gif"/></a></b>
|
195
|
+
</td>
|
196
|
+
<td nowrap="nowrap" width="25%" style="text-align:right" > </td>
|
197
|
+
</tr>
|
198
|
+
</table>
|
199
|
+
</td>
|
200
|
+
</tr>
|
201
|
+
</table>
|
202
|
+
</div>
|
203
|
+
|
204
|
+
|
205
|
+
</div>
|
206
|
+
<!-- the end -->
|
207
|
+
|
208
|
+
<!--report panel start-->
|
209
|
+
<div class="Q_reportBox" >
|
210
|
+
<table border="0" cellpadding="0" cellspacing="0" width="100%" style="margin-left:2px; margin-top:5px" class="reportTable">
|
211
|
+
<tr>
|
212
|
+
<td align="left" valign="top" width="99%">
|
213
|
+
<aa:zone name="result">
|
214
|
+
<div class="reportTopBox">
|
215
|
+
<c:forEach items="${PANEL}" var="panel" varStatus="panelIndex">
|
216
|
+
<c:if test="${panel.enable}">
|
217
|
+
<c:set var="jsChangePanel">
|
218
|
+
javascript:pageAction.changePanel('${panelIndex.index}');
|
219
|
+
</c:set>
|
220
|
+
<c:if test="${panelIndex.index ==worker.dataAvailability || panelIndex.index ==worker.help}">
|
221
|
+
<div style=' ${worker.servicer.panelIndex == panelIndex.index ?"cursor: none" : ""} ; white-space:nowrap; ${ true ?"font-weight: bold" : ""} ; font-size:11px; border-top-width:0px;${panelIndex.first?"border-left-width:0px":""}' nowrap id="displayBy_${panelIndex.index }" onclick="${baseServicerParameterBean.panelIndex== panelIndex.index ? '':(true? jsChangePanel:'')}" class="${worker.servicer.panelIndex== panelIndex.index? 'focus' : true ?'base':'base'}" >
|
222
|
+
${panel.label}
|
223
|
+
</div>
|
224
|
+
</c:if>
|
225
|
+
<c:if test="${!(panelIndex.index ==worker.dataAvailability || panelIndex.index ==worker.help)}">
|
226
|
+
<div style=' ${worker.servicer.panelIndex == panelIndex.index || !worker.servicer.displayStage ?"cursor: none" : ""} ; white-space:nowrap; ${worker.servicer.panelIndex == panelIndex.index || worker.servicer.displayStage ?"font-weight: bold" : ""} ; font-size:11px; border-top-width:0px;${panelIndex.first?"border-left-width:0px":""}' nowrap id="displayBy_${panelIndex.index }" onclick="${baseServicerParameterBean.panelIndex== panelIndex.index ? '':(worker.servicer.displayStage? jsChangePanel:'')}" class="${worker.servicer.panelIndex== panelIndex.index? 'focus' :worker.servicer.displayStage?'base':'base'}" >
|
227
|
+
${panel.label }
|
228
|
+
</div>
|
229
|
+
</c:if>
|
230
|
+
</c:if>
|
231
|
+
</c:forEach>
|
232
|
+
<div class="last"> </div>
|
233
|
+
</div>
|
234
|
+
<div style='clear:both'/>
|
235
|
+
<table width="100%">
|
236
|
+
<tr>
|
237
|
+
<td nowrap="nowrap" height="40px" style="padding-left:5px;" >
|
238
|
+
</td>
|
239
|
+
<td nowrap="nowrap" height="40px" style="text-align:right;">
|
240
|
+
${worker.renderPaginatorHTML}
|
241
|
+
</td>
|
242
|
+
</tr>
|
243
|
+
</table>
|
244
|
+
|
245
|
+
|
246
|
+
<table border="0" cellpadding="0" cellspacing="0" width="100%" >
|
247
|
+
<tr> <td nowrap="nowrap" align='left' >
|
248
|
+
<c:if test="${baseServicerParameterBean.panelIndex !=worker.help && baseServicerParameterBean.panelIndex !=worker.dataAvailability}" >
|
249
|
+
</c:if>
|
250
|
+
</td></tr>
|
251
|
+
<tr>
|
252
|
+
<td nowrap="nowrap" align='center' >
|
253
|
+
${worker.renderHTML}
|
254
|
+
</td>
|
255
|
+
</tr>
|
256
|
+
</table>
|
257
|
+
|
258
|
+
|
259
|
+
|
260
|
+
|
261
|
+
|
262
|
+
|
263
|
+
|
264
|
+
<c:if test="${baseServicerParameterBean.panelIndex ==worker.help}">
|
265
|
+
<!-- the div of descriptionTab -->
|
266
|
+
<div id="descriptionTab"><br/><br/><l5m:appDesc
|
267
|
+
navigationBean="${worker.navigationBean}" style="${styleLowerCase}" id="navDesc" />
|
268
|
+
</div>
|
269
|
+
<!-- the end descriptionTab-->
|
270
|
+
</c:if>
|
271
|
+
|
272
|
+
<c:if test="${baseServicerParameterBean.panelIndex ==worker.dataAvailability}">
|
273
|
+
<table width="100%">
|
274
|
+
<tr>
|
275
|
+
<td width="15%" rowspan="4"> </td>
|
276
|
+
<td width="70%">
|
277
|
+
<c:set var="moduleGeneralAvailability" scope="request" value="${worker.servicer.generalAvailabilityModule}"/>
|
278
|
+
<!-- GeneralAvailabilityModule.SESSION_NAME -->
|
279
|
+
<table border="0" cellpadding="0" cellspacing="2" width="100%">
|
280
|
+
<jsp:include page="GeneralAvailabilityModule.jsp" flush="true"/>
|
281
|
+
</table>
|
282
|
+
</td>
|
283
|
+
<td width="15%" rowspan="4"> </td>
|
284
|
+
</tr>
|
285
|
+
</table>
|
286
|
+
|
287
|
+
</c:if>
|
288
|
+
</aa:zone>
|
289
|
+
</td>
|
290
|
+
</tr>
|
291
|
+
</table>
|
292
|
+
</div>
|
293
|
+
<!--report panel end-->
|
294
|
+
|
295
|
+
<!-- dialog -->
|
296
|
+
|
297
|
+
|
298
|
+
<l5m:dialog
|
299
|
+
id="sortDialog"
|
300
|
+
title="sort"
|
301
|
+
overlayZIndex="100"
|
302
|
+
dialogWidth="500px"
|
303
|
+
dialogLeft="200"
|
304
|
+
style="${styleLowerCase}"
|
305
|
+
>
|
306
|
+
<aa:zone name="sortDialogZone">
|
307
|
+
<table style="font-size:11px;">
|
308
|
+
<tr>
|
309
|
+
<td id="sortingTD" style="text-align:left;white-space:nowrap;">
|
310
|
+
<c:if test="${!empty paraBean.sortWrappers[paraBean.panelIndex]}">
|
311
|
+
<c:forEach var="sortWrapper" items="${paraBean.sortWrappers[paraBean.panelIndex]}">
|
312
|
+
<c:if test="${!empty sortWrapper.sortingKeysModuleStateBean}">
|
313
|
+
<l5m:sortingKeysModule2 style="${styleLowerCase}" moduleTitle="Sort By"
|
314
|
+
sortingKeysModuleStateBean="${sortWrapper.sortingKeysModuleStateBean}"
|
315
|
+
id="${sortWrapper.sortingKeysModuleStateBean.id}"/>
|
316
|
+
</c:if>
|
317
|
+
</c:forEach>
|
318
|
+
</c:if>
|
319
|
+
</td>
|
320
|
+
</tr>
|
321
|
+
|
322
|
+
</table>
|
323
|
+
|
324
|
+
|
325
|
+
<script language="javascript1.2" type="text/javascript">
|
326
|
+
<c:if test="${worker.showDialog}">
|
327
|
+
$('sortDialog').show();
|
328
|
+
</c:if>
|
329
|
+
</script>
|
330
|
+
|
331
|
+
</aa:zone>
|
332
|
+
<l5m:dialogBottom>
|
333
|
+
<a href="javascript:pageAction.clickButton('<%=ActionConstants.SORT_RERESH%>');;pageAction.hideDialog('sortDialog')"> [OK]</a>
|
334
|
+
<a href="javascript:pageAction.hideDialog('sortDialog');">[Cancel]</a>
|
335
|
+
<a href="javascript:pageAction.clickButton('<%=ActionConstants.SORT_RERESH%>');">[Apply]</a>
|
336
|
+
</l5m:dialogBottom>
|
337
|
+
</l5m:dialog>
|
338
|
+
|
339
|
+
<l5m:dialog
|
340
|
+
id="displayDialog"
|
341
|
+
title="Columns & Rows"
|
342
|
+
overlayZIndex="100"
|
343
|
+
dialogWidth="500px"
|
344
|
+
dialogHeight="300px"
|
345
|
+
canClose="true"
|
346
|
+
style="${styleLowerCase}">
|
347
|
+
<aa:zone name="displayDialogZone">
|
348
|
+
|
349
|
+
<table>
|
350
|
+
<tr>
|
351
|
+
<td style="text-align:left;white-space:nowrap;" valign="top">
|
352
|
+
<c:if test="${!empty paraBean.displayWrappers[paraBean.panelIndex]}">
|
353
|
+
<c:forEach var="displayWrapper" items="${paraBean.displayWrappers[paraBean.panelIndex]}">
|
354
|
+
<c:if test="${!empty displayWrapper.columnsMap}">
|
355
|
+
<l5m:multipleSelect
|
356
|
+
id="${displayWrapper.id}"
|
357
|
+
style="${styleLowerCase}"
|
358
|
+
title="${displayWrapper.title}"
|
359
|
+
sourceValues="${displayWrapper.columnsMap}"
|
360
|
+
selectedValues="${displayWrapper.selectedColumns }"
|
361
|
+
onChange=""
|
362
|
+
displayMode="2"
|
363
|
+
useSortBy="true"
|
364
|
+
sortBy="1"
|
365
|
+
sortField="2"
|
366
|
+
selectedLabel="Select"
|
367
|
+
sourceLabel="${displayWrapper.title}"
|
368
|
+
sourceWidth="200"
|
369
|
+
destinationWidth="200"
|
370
|
+
sourceSize="5"
|
371
|
+
destinationSize="5"
|
372
|
+
/>
|
373
|
+
</c:if>
|
374
|
+
</c:forEach>
|
375
|
+
</c:if>
|
376
|
+
</td>
|
377
|
+
</tr>
|
378
|
+
</table>
|
379
|
+
|
380
|
+
<script type="text/javascript">
|
381
|
+
<c:if test="${worker.showDialog}">
|
382
|
+
$('displayDialog').show();
|
383
|
+
</c:if>
|
384
|
+
</script>
|
385
|
+
</aa:zone>
|
386
|
+
<l5m:dialogBottom>
|
387
|
+
<a href="javascript:pageAction.hideDialog('displayDialog');pageAction.clickButton('<%=ActionConstants.DISPLAY_REFRESH%>');">[OK]</a>
|
388
|
+
|
389
|
+
<a href="javascript:pageAction.hideDialog('displayDialog');">[Cancel]</a>
|
390
|
+
|
391
|
+
<a href="javascript:pageAction.clickButton('<%=ActionConstants.DISPLAY_REFRESH%>');">[Apply]</a>
|
392
|
+
</l5m:dialogBottom>
|
393
|
+
</l5m:dialog>
|
394
|
+
|
395
|
+
|
396
|
+
<l5m:dialog
|
397
|
+
id="filterDialog"
|
398
|
+
title="Filter"
|
399
|
+
overlayZIndex="100"
|
400
|
+
dialogWidth="700px"
|
401
|
+
dialogHeight="300px"
|
402
|
+
canClose="true"
|
403
|
+
style="${styleLowerCase}">
|
404
|
+
<aa:zone name="filterDialogZone">
|
405
|
+
<script type="text/javascript">
|
406
|
+
<c:if test="${worker.showDialog}">
|
407
|
+
$('filterDialog').show();
|
408
|
+
</c:if>
|
409
|
+
</script>
|
410
|
+
</aa:zone>
|
411
|
+
<l5m:dialogBottom>
|
412
|
+
<a href="javascript:pageAction.hideDialog('filterDialog');pageAction.clickButton('<%=ActionConstants.FILTER_REFRESH%>');">[OK]</a>
|
413
|
+
|
414
|
+
<a href="javascript:pageAction.hideDialog('filterDialog');">[Cancel]</a>
|
415
|
+
|
416
|
+
<a href="javascript:pageAction.clickButton('<%=ActionConstants.FILTER_REFRESH%>');">[Apply]</a>
|
417
|
+
</l5m:dialogBottom>
|
418
|
+
</l5m:dialog>
|
419
|
+
|
420
|
+
|
421
|
+
|
422
|
+
|
423
|
+
|
424
|
+
|
425
|
+
<!-- end dialog -->
|
426
|
+
|
427
|
+
</form>
|
428
|
+
|
429
|
+
<script type="text/javascript" src='<%=request.getContextPath()%>/tagresources/javascript/QHTInputUtil.js'></script>
|
430
|
+
<script type="text/javascript">
|
431
|
+
function m_clickButton2(button, index){
|
432
|
+
document.${worker.FORM_NAME}.<%=AppConfig.getProperty("butOption")%>.value = button;
|
433
|
+
document.${worker.FORM_NAME}.<%=TTVConstants.MODULE_INDEX%>.value = index;
|
434
|
+
document.${worker.FORM_NAME}.submit();
|
435
|
+
}
|
436
|
+
document.getElementById('mainmessage').style.display='none';
|
437
|
+
document.getElementById('mainpart').style.display='inline';
|
438
|
+
</script>
|
439
|
+
</div>
|
440
|
+
</body>
|
441
|
+
</html>
|
442
|
+
|
443
|
+
|
@@ -0,0 +1,187 @@
|
|
1
|
+
package com.l5m.!REPLACE_STYLE!.engine.worker;
|
2
|
+
|
3
|
+
import javax.servlet.http.HttpServletRequest;
|
4
|
+
|
5
|
+
import com.l5m.common.bean.NavigationBean;
|
6
|
+
import com.l5m.common.engine.servicer.ServicerType;
|
7
|
+
import com.l5m.common.util.ActionConstants;
|
8
|
+
import com.l5m.customtags.beans.BaseServicerParaBean.AbstractBaseWorker;
|
9
|
+
import com.l5m.customtags.tags.utils.IconStatus;
|
10
|
+
import com.l5m.customtags.tags.utils.TopBarIcon;
|
11
|
+
import com.l5m.!REPLACE_STYLE!.engine.servicer.!REPLACE_ME_FILE!ServicerImpl;
|
12
|
+
import com.l5m.!REPLACE_STYLE!.engine.servicer.!REPLACE_ME_FILE!ServicerImpl.PANEL;
|
13
|
+
|
14
|
+
public class !REPLACE_ME_FILE!Worker extends AbstractBaseWorker {
|
15
|
+
private static final long serialVersionUID = 1L;
|
16
|
+
public static final String JSP_TOGO_PERIX = "!REPLACE_ME_FILE!"; /*
|
17
|
+
* worker name w/o
|
18
|
+
* "Worker"
|
19
|
+
*/
|
20
|
+
public static final String JSP_TOGO = JSP_TOGO_PERIX + ".jsp";
|
21
|
+
public static final String WORKER_NAME = JSP_TOGO_PERIX + "Worker";
|
22
|
+
|
23
|
+
public static final String FORM_NAME = JSP_TOGO_PERIX + "Form";
|
24
|
+
public static final String packageLowerCase = "!REPLACE_STYLE!";
|
25
|
+
|
26
|
+
public static final String packageUpperCase = packageLowerCase.toUpperCase();
|
27
|
+
|
28
|
+
public static void main(String[] x) {
|
29
|
+
// System.out.println(StringEscapeUtils.escapeHtml( "NETWORKPROGRAM"));
|
30
|
+
}
|
31
|
+
|
32
|
+
@ServicerType("com.l5m.!REPLACE_STYLE!.engine.servicer.!REPLACE_ME_FILE!ServicerImpl")
|
33
|
+
private !REPLACE_ME_FILE!ServicerImpl servicer;
|
34
|
+
|
35
|
+
public !REPLACE_ME_FILE!Worker() {
|
36
|
+
this.navigationBean = new NavigationBean();
|
37
|
+
this.navigationBean.setJSPGoTo(JSP_TOGO);
|
38
|
+
|
39
|
+
}
|
40
|
+
|
41
|
+
@Override
|
42
|
+
protected void bindParams(HttpServletRequest request, String btnClicked, String actionMethod) {
|
43
|
+
super.bindParams(request, btnClicked, actionMethod);
|
44
|
+
|
45
|
+
}
|
46
|
+
|
47
|
+
public String[] getActions() {
|
48
|
+
return new String[] { "", "pageAction.showDialog('filterDialog')", // filter
|
49
|
+
"", // search
|
50
|
+
"", // highlight
|
51
|
+
"pageAction.showDialog('sortDialog')", // sort
|
52
|
+
"pageAction.showDialog('displayDialog')", // display
|
53
|
+
"pageAction.clickButton('changeDecimal')", // decimal
|
54
|
+
"pageAction.clickExportButton('" + ActionConstants.EXPORT_EXCEL + "')", // excel
|
55
|
+
"pageAction.clickExportButton('" + ActionConstants.EXPORT_PDF + "')", // pdf
|
56
|
+
"pageAction.showDialog('optionDialog')", // options
|
57
|
+
//"pageAction.showDialogDirectly('emailDialog')", // email
|
58
|
+
"pageAction.clickButton('changeSortDisplayMode')", // inc
|
59
|
+
|
60
|
+
};
|
61
|
+
}
|
62
|
+
|
63
|
+
@Override
|
64
|
+
public int getDataAvailability() {
|
65
|
+
return PANEL.DataAvailability.panelIndex();
|
66
|
+
}
|
67
|
+
|
68
|
+
/**
|
69
|
+
* @return the fORM_NAME
|
70
|
+
*/
|
71
|
+
@Override
|
72
|
+
public String getFORM_NAME() {
|
73
|
+
return FORM_NAME;
|
74
|
+
}
|
75
|
+
|
76
|
+
@Override
|
77
|
+
public int getHelp() {
|
78
|
+
return PANEL.Help.panelIndex();
|
79
|
+
}
|
80
|
+
|
81
|
+
public IconStatus[] getIconsStatus() {
|
82
|
+
final boolean hasData = this.hasData();
|
83
|
+
return new IconStatus[] { this.servicer.getBaseServicerParameterBean().isSelectionPanelStatusOpen() ? IconStatus.open : IconStatus.close, hasData ? IconStatus.inactive : IconStatus.inactive, // filter
|
84
|
+
IconStatus.inactive, // search
|
85
|
+
IconStatus.inactive, // highlight
|
86
|
+
hasData ? IconStatus.active : IconStatus.inactive, // sort
|
87
|
+
hasData ? IconStatus.active : IconStatus.inactive, // display
|
88
|
+
hasData ? IconStatus.active : IconStatus.inactive, // decimal
|
89
|
+
hasData ? IconStatus.active : IconStatus.inactive, // excel
|
90
|
+
IconStatus.inactive, // pdf
|
91
|
+
IconStatus.inactive, // options
|
92
|
+
//hasData ? IconStatus.active : IconStatus.inactive, // email
|
93
|
+
IconStatus.active, // inc
|
94
|
+
};
|
95
|
+
|
96
|
+
}
|
97
|
+
|
98
|
+
/**
|
99
|
+
* @return the jSP_TOGO
|
100
|
+
*/
|
101
|
+
@Override
|
102
|
+
public String getJSP_TOGO() {
|
103
|
+
return JSP_TOGO;
|
104
|
+
}
|
105
|
+
|
106
|
+
/*
|
107
|
+
* (non-Javadoc)
|
108
|
+
*
|
109
|
+
* @see com.l5m.customtags.beans.BaseServicerParaBean.AbstractBaseWorker#getJSP_TOGO_PERIX()
|
110
|
+
*/
|
111
|
+
@Override
|
112
|
+
public String getJSP_TOGO_PERIX() {
|
113
|
+
// TODO Auto-generated method stub
|
114
|
+
return JSP_TOGO_PERIX;
|
115
|
+
}
|
116
|
+
|
117
|
+
@Override
|
118
|
+
public String getPackageLowerCase() {
|
119
|
+
return packageLowerCase;
|
120
|
+
}
|
121
|
+
|
122
|
+
@Override
|
123
|
+
public String getPackageUpperCase() {
|
124
|
+
return packageUpperCase;
|
125
|
+
}
|
126
|
+
|
127
|
+
public PANEL[] getPANEL() {
|
128
|
+
return PANEL.values();
|
129
|
+
}
|
130
|
+
|
131
|
+
@Override
|
132
|
+
public String getRenderHTML() {
|
133
|
+
if (!this.hasData()) {
|
134
|
+
return "";
|
135
|
+
}
|
136
|
+
try {
|
137
|
+
} catch (Exception e) {
|
138
|
+
e.printStackTrace();
|
139
|
+
}
|
140
|
+
return "";
|
141
|
+
|
142
|
+
}
|
143
|
+
|
144
|
+
@Override
|
145
|
+
public !REPLACE_ME_FILE!ServicerImpl getServicer() {
|
146
|
+
return this.servicer;
|
147
|
+
}
|
148
|
+
|
149
|
+
public TopBarIcon[] getTopBarIcons() {
|
150
|
+
return new TopBarIcon[] { TopBarIcon.Start, TopBarIcon.Filter, TopBarIcon.Search, TopBarIcon.Highlight, TopBarIcon.Sort, TopBarIcon.Display, TopBarIcon.Decimal, TopBarIcon.Excel,
|
151
|
+
TopBarIcon.PDF, TopBarIcon.Options, /*TopBarIcon.Email,*/ TopBarIcon.IncIcon, };
|
152
|
+
|
153
|
+
}
|
154
|
+
|
155
|
+
/*
|
156
|
+
* @return the wORKER_NAME
|
157
|
+
|
158
|
+
@Override
|
159
|
+
public String getWORKER_NAME() {
|
160
|
+
return WORKER_NAME;
|
161
|
+
}*/
|
162
|
+
|
163
|
+
@Override
|
164
|
+
public boolean hasData() {
|
165
|
+
final int panelIndex = this.servicer.getPanelIndex();
|
166
|
+
if (panelIndex == PANEL.Help.panelIndex() || panelIndex == PANEL.DataAvailability.panelIndex()) {
|
167
|
+
return false;
|
168
|
+
}
|
169
|
+
return true;
|
170
|
+
}
|
171
|
+
|
172
|
+
@Override
|
173
|
+
protected void initWorker() {
|
174
|
+
this.servicer.getBaseServicerParameterBean().setPanelIndex(PANEL.Help.panelIndex());
|
175
|
+
|
176
|
+
}
|
177
|
+
|
178
|
+
public void setServicer(!REPLACE_ME_FILE!ServicerImpl servicer) {
|
179
|
+
this.servicer = servicer;
|
180
|
+
}
|
181
|
+
|
182
|
+
@Override
|
183
|
+
public void submitAction() {
|
184
|
+
super.submitAction();
|
185
|
+
|
186
|
+
}
|
187
|
+
}
|