l5m-tools 0.0.9 → 0.0.10

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/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.9
1
+ 0.0.10
data/l5m-tools.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "l5m-tools"
8
- s.version = "0.0.9"
8
+ s.version = "0.0.10"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["RONGHAI"]
12
- s.date = "2013-08-16"
12
+ s.date = "2013-11-28"
13
13
  s.description = "A tool set for Lake5Media and QingheTech developer"
14
14
  s.email = "ronghai.wei@outlook.com"
15
15
  s.executables = ["duplicate-app", "l5m", "make-app", "set_env.sh", "svn.tool"]
@@ -42,14 +42,14 @@ if(AAUtils.isAjaxRequest(request)){
42
42
 
43
43
 
44
44
 
45
- <l5m:jspHead useIE7Compatible="true" title="${worker.APP_NAME}" formName="${formName}" packageName="${packageLowerCase}" planingCss="L001;L004">
45
+ <l5m:jspHead useIE7Compatible="true" includeJQuery='true' title="${worker.APP_NAME}" formName="${formName}" packageName="${packageLowerCase}" planingCss="L001;L004">
46
46
 
47
47
  <!-- add additinal js css in here -->
48
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" />
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
53
  <!-- addtion javascript here -->
54
54
  <%@ include file="CommonVariables.jsp"%>
55
55
  <c:set var="colors" value="<%=colors%>" scope="request"/>
@@ -88,27 +88,17 @@ if(AAUtils.isAjaxRequest(request)){
88
88
 
89
89
 
90
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="" />
91
+ <l5m:LoadResources/>
92
+
93
+ </l5m:jspHead>
94
+
95
+ <l5m:jspBody
96
+ formName="${worker.FORM_NAME}" packageName="${packageLowerCase}" style="${styleLowerCase}"
97
+ worker="${worker.WORKER_NAME}" action="" jspGoto="${worker.jspGoto}"
98
+ groupId="${servicer.groupId}" companyId="${servicer.companyId}"
99
+ userId="${servicer.userId}"
100
+ dbHandler="${servicer.dbHandler}" includeJQuery="true"
101
+ >
112
102
  <aa:zone name="alwaysRefreshZone">
113
103
  <input type="hidden" name="panelIndex" id="name" value="${paraBean.panelIndex}"/>
114
104
  <input type="hidden" name="displayStage" id="displayStage" value="${paraBean.displayStage}"/>
@@ -245,7 +235,7 @@ if(AAUtils.isAjaxRequest(request)){
245
235
  </div>
246
236
  </c:if>
247
237
  <c:if test="${!(panelIndex.index ==worker.dataAvailability || panelIndex.index ==worker.help)}">
248
- <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'}" >
238
+ <div style=' ${worker.servicer.panelIndex == panelIndex.index || !true ?"cursor: none" : ""} ; white-space:nowrap; ${worker.servicer.panelIndex == panelIndex.index || 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'}" >
249
239
  ${panel.label }
250
240
  </div>
251
241
  </c:if>
@@ -258,7 +248,7 @@ if(AAUtils.isAjaxRequest(request)){
258
248
  <tr>
259
249
  <td nowrap="nowrap" height="40px" style="padding-left:5px;" >
260
250
  </td>
261
- <td nowrap="nowrap" height="40px" style="text-align:right;">
251
+ <td nowrap="nowrap" height="40px" style="text-align:right; float:right ;padding-right:10px;">
262
252
  ${worker.renderPaginatorHTML}
263
253
  </td>
264
254
  </tr>
@@ -439,27 +429,44 @@ if(AAUtils.isAjaxRequest(request)){
439
429
  </l5m:dialogBottom>
440
430
  </l5m:dialog>
441
431
 
442
-
432
+
433
+ <l5m:dialog
434
+ id="excelDialog"
435
+ title="Export Option"
436
+ overlayZIndex="100"
437
+ dialogWidth="700px"
438
+ dialogHeight="150px"
439
+ canClose="true"
440
+ style="${styleLowerCase}">
441
+ <aa:zone name="exportDialogZone">
442
+ <l5m:ExcelOption
443
+ id="${servicer.excelOption.id}"
444
+ stateBean="${servicer.excelOption}"
445
+ style='${styleLowerCase}' includeCSV="true"
446
+ />
447
+ <script type="text/javascript">
448
+ <c:if test="${worker.showDialog}">
449
+ $('excelDialog').show();
450
+ </c:if>
451
+ </script>
452
+ </aa:zone>
453
+ <l5m:dialogBottom>
454
+ <a href="javascript:pageAction.hideDialog('excelDialog');pageAction.clickExportButton('<%=ActionConstants.EXPORT_EXCEL%>');">[OK]</a>
455
+ &nbsp;&nbsp;
456
+ <a href="javascript:pageAction.hideDialog('excelDialog');">[Cancel]</a>
457
+ &nbsp;&nbsp;
458
+ <a href="javascript:pageAction.clickExportButton('<%=ActionConstants.EXPORT_EXCEL%>');">[Apply]</a>
459
+ </l5m:dialogBottom>
460
+ </l5m:dialog>
443
461
 
444
-
462
+ <aa:zone name="footerZone">
463
+ <l5m:jspFoot id="jspFoot"/>
464
+ </aa:zone>
445
465
 
446
466
 
447
467
  <!-- end dialog -->
448
468
 
449
- </form>
450
-
451
- <script type="text/javascript" src='<%=request.getContextPath()%>/tagresources/javascript/QHTInputUtil.js'></script>
452
- <script type="text/javascript">
453
- function m_clickButton2(button, index){
454
- document.${worker.FORM_NAME}.<%=AppConfig.getProperty("butOption")%>.value = button;
455
- document.${worker.FORM_NAME}.<%=TTVConstants.MODULE_INDEX%>.value = index;
456
- document.${worker.FORM_NAME}.submit();
457
- }
458
- document.getElementById('mainmessage').style.display='none';
459
- document.getElementById('mainpart').style.display='inline';
460
- </script>
461
- </div>
462
- </body>
469
+ </l5m:jspBody>
463
470
  </html>
464
471
 
465
472
 
@@ -49,21 +49,7 @@ public class !REPLACE_ME_FILE!Worker extends AbstractBaseWorker {
49
49
 
50
50
  }
51
51
 
52
- public String[] getActions() {
53
- return new String[] { "", "pageAction.showDialog('filterDialog')", // filter
54
- "", // search
55
- "", // highlight
56
- "pageAction.showDialog('sortDialog')", // sort
57
- "pageAction.showDialog('displayDialog')", // display
58
- "pageAction.clickButton('changeDecimal')", // decimal
59
- "pageAction.clickExportButton('" + ActionConstants.EXPORT_EXCEL + "')", // excel
60
- "pageAction.clickExportButton('" + ActionConstants.EXPORT_PDF + "')", // pdf
61
- "pageAction.showDialog('optionDialog')", // options
62
- //"pageAction.showDialogDirectly('emailDialog')", // email
63
- "pageAction.clickButton('changeSortDisplayMode')", // inc
64
-
65
- };
66
- }
52
+
67
53
 
68
54
  @Override
69
55
  public int getDataAvailability() {
@@ -83,22 +69,7 @@ public class !REPLACE_ME_FILE!Worker extends AbstractBaseWorker {
83
69
  return PANEL.Help.panelIndex();
84
70
  }
85
71
 
86
- public IconStatus[] getIconsStatus() {
87
- final boolean hasData = this.hasData();
88
- return new IconStatus[] { this.servicer.getBaseServicerParameterBean().isSelectionPanelStatusOpen() ? IconStatus.open : IconStatus.close, hasData ? IconStatus.inactive : IconStatus.inactive, // filter
89
- IconStatus.inactive, // search
90
- IconStatus.inactive, // highlight
91
- hasData ? IconStatus.active : IconStatus.inactive, // sort
92
- hasData ? IconStatus.active : IconStatus.inactive, // display
93
- hasData ? IconStatus.active : IconStatus.inactive, // decimal
94
- hasData ? IconStatus.active : IconStatus.inactive, // excel
95
- IconStatus.inactive, // pdf
96
- IconStatus.inactive, // options
97
- //hasData ? IconStatus.active : IconStatus.inactive, // email
98
- IconStatus.active, // inc
99
- };
100
-
101
- }
72
+
102
73
 
103
74
  /**
104
75
  * @return the jSP_TOGO
@@ -133,29 +104,14 @@ public class !REPLACE_ME_FILE!Worker extends AbstractBaseWorker {
133
104
  return PANEL.values();
134
105
  }
135
106
 
136
- @Override
137
- public String getRenderHTML() {
138
- if (!this.hasData()) {
139
- return "";
140
- }
141
- try {
142
- } catch (Exception e) {
143
- e.printStackTrace();
144
- }
145
- return "";
146
-
147
- }
107
+
148
108
 
149
109
  @Override
150
110
  public !REPLACE_ME_FILE!ServicerImpl getServicer() {
151
111
  return this.servicer;
152
112
  }
153
113
 
154
- public TopBarIcon[] getTopBarIcons() {
155
- return new TopBarIcon[] { TopBarIcon.Start, TopBarIcon.Filter, TopBarIcon.Search, TopBarIcon.Highlight, TopBarIcon.Sort, TopBarIcon.Display, TopBarIcon.Decimal, TopBarIcon.Excel,
156
- TopBarIcon.PDF, TopBarIcon.Options, /*TopBarIcon.Email,*/ TopBarIcon.IncIcon, };
157
-
158
- }
114
+
159
115
 
160
116
  /*
161
117
  * @return the wORKER_NAME
@@ -176,10 +132,20 @@ public class !REPLACE_ME_FILE!Worker extends AbstractBaseWorker {
176
132
 
177
133
  @Override
178
134
  protected void initWorker() {
179
- this.servicer.getBaseServicerParameterBean().setPanelIndex(PANEL.Help.panelIndex());
135
+ this.servicer.getBaseServicerParameterBean().setPanelIndex(0);
180
136
 
181
137
  }
182
-
138
+
139
+ @Override
140
+ public void clearResultAction() {
141
+ super.clearResultAction();
142
+ this.servicer.setPanelIndex(0);
143
+ }
144
+
145
+ public void updateExportInformationBean(){
146
+ this.servicer.updateExportInformationBean();
147
+ }
148
+
183
149
  public void setServicer(!REPLACE_ME_FILE!ServicerImpl servicer) {
184
150
  this.servicer = servicer;
185
151
  }
@@ -59,7 +59,7 @@ public class !REPLACE_ME_FILE!ServicerImpl extends BaseServicerParaBean.Abstract
59
59
  @Override
60
60
  public void clearCache() {
61
61
  super.clearCache();
62
- this.servicerParamBean.setPanelIndex(PANEL.Help.panelIndex());
62
+ this.servicerParamBean.setPanelIndex(0);
63
63
 
64
64
  System.gc();
65
65
  }
@@ -211,6 +211,27 @@ public class !REPLACE_ME_FILE!ServicerImpl extends BaseServicerParaBean.Abstract
211
211
  }
212
212
 
213
213
 
214
-
214
+ public ArrayList<String> updateExportInformationBean(){
215
+ ArrayList<String> footerList = new ArrayList<String>();
216
+ //TODO
217
+ if(this.getExportInformationBean() != null){
218
+ this.getExportInformationBean().setFooterList(footerList);
219
+ }
220
+ return footerList;
221
+ }
222
+
223
+ @RequestParse(parseType = ParseMethodType.StateBean, actions = "exportExcelAction")
224
+ protected ExcelOptionStateBean excelOption;
225
+
226
+
227
+
228
+ public ExcelOptionStateBean getExcelOption () {
229
+ if (excelOption == null) {
230
+ excelOption = new ExcelOptionStateBean();
231
+ excelOption.setId("excelOption");
232
+ }
233
+ return excelOption;
234
+ }
235
+
215
236
 
216
237
  }
File without changes
@@ -44,14 +44,14 @@ if(AAUtils.isAjaxRequest(request)){
44
44
 
45
45
 
46
46
 
47
- <l5m:jspHead useIE7Compatible="true" title="${worker.APP_NAME}" formName="${formName}" packageName="${packageLowerCase}" planingCss="L001;L004">
47
+ <l5m:jspHead useIE7Compatible="true" includeJQuery='true' title="${worker.APP_NAME}" formName="${formName}" packageName="${packageLowerCase}" planingCss="L001;L004">
48
48
 
49
49
  <!-- add additinal js css in here -->
50
50
  <link href="<%=request.getContextPath()%>/htdoc/datepicker-lite.css" rel="stylesheet" type="text/css" />
51
- <script type="text/javascript" src="<%=request.getContextPath()%>/tagresources/javascript/timeSpan/datepicker-lite.js "></script>
51
+ <script type="text/javascript" src="<%=request.getContextPath()%>/tagresources/javascript/timeSpan/datepicker-lite.js "></script>
52
52
 
53
- <script type="text/javascript" src='<%=request.getContextPath()%>/tagresources/javascript/TopBar2.js'></script>
54
- <link rel="stylesheet" type="text/css" href="<%=request.getContextPath()%>/tagresources/css/TopBar2/TopBar2.css" />
53
+ <script type="text/javascript" src='<%=request.getContextPath()%>/tagresources/javascript/TopBar2.js'></script>
54
+ <link rel="stylesheet" type="text/css" href="<%=request.getContextPath()%>/tagresources/css/TopBar2/TopBar2.css" />
55
55
  <!-- addtion javascript here -->
56
56
  <%@ include file="CommonVariables.jsp"%>
57
57
  <c:set var="colors" value="<%=colors%>" scope="request"/>
@@ -89,28 +89,17 @@ if(AAUtils.isAjaxRequest(request)){
89
89
 
90
90
 
91
91
 
92
+ <l5m:LoadResources/>
92
93
 
93
94
  </l5m:jspHead>
94
95
 
95
- <body bgcolor="#ffffff" marginwidth="0" marginheight="0" leftmargin="0" topmargin="0">
96
- <div id="mainmessage" align="center">
97
- <span style="font-family: Arial, Helvetica, sans-serif; font-size: 16px; font-weight: bold">
98
- <br/>
99
- <br/>
100
- <br/>
101
- <br/>
102
- Please wait ...<br />
103
- </span>
104
- </div>
105
- <div id="mainpart" style="display: none;">
106
- <form class="formnomargin" name="${worker.FORM_NAME}" id="${worker.FORM_NAME}" action="<%=AppConfig.getProperty("appL5MOnline")%>" method="post">
107
- <input type="hidden" name="<%=AppConfig.getProperty("requestAction")%>" id="<%=AppConfig.getProperty("requestAction")%>" value="${worker.WORKER_NAME}" />
108
- <input type="hidden" name="<%=AppConfig.getProperty("srcPage")%>" id="<%=AppConfig.getProperty("srcPage")%>" value="${worker.jspGoto}" />
109
- <input type="hidden" name="<%=AppConfig.getProperty("butOption")%>" id="<%=AppConfig.getProperty("butOption")%>" value="" />
110
- <input type="hidden" name="1stnavbar" id="1stnavbar" value="<%=request.getParameter("1stnavbar")%>" />
111
- <input type="hidden" name="2ndnavbar" id="2ndnavbar" value="<%=request.getParameter("2ndnavbar")%>" />
112
- <input type="hidden" name="<%=SessionConstants.NAV_COMPANY_ID%>" value="${worker.servicer.companyId}" />
113
- <input type="hidden" name="<%=TTVConstants.MODULE_INDEX%>" id="<%=TTVConstants.MODULE_INDEX%>" value="" />
96
+ <l5m:jspBody
97
+ formName="${worker.FORM_NAME}" packageName="${packageLowerCase}" style="${styleLowerCase}"
98
+ worker="${worker.WORKER_NAME}" action="" jspGoto="${worker.jspGoto}"
99
+ groupId="${servicer.groupId}" companyId="${servicer.companyId}"
100
+ userId="${servicer.userId}"
101
+ dbHandler="${servicer.dbHandler}" includeJQuery="true"
102
+ >
114
103
  <aa:zone name="alwaysRefreshZone">
115
104
  <input type="hidden" name="panelIndex" id="name" value="${paraBean.panelIndex}"/>
116
105
  <input type="hidden" name="displayStage" id="displayStage" value="${paraBean.displayStage}"/>
@@ -136,29 +125,7 @@ if(AAUtils.isAjaxRequest(request)){
136
125
  incSingleSelected = "${paraBean.selectedSortBy}"
137
126
  />
138
127
  </aa:zone>
139
- <script type="text/javascript">
140
- <!--
141
- function loadjscssfile(filename,filetype){
142
-
143
- if (filetype=="js"){ //if filename is a external JavaScript file
144
- if($$('script[src="'+filename+'"]').length >= 1) return;
145
- var fileref=document.createElement('script')
146
- fileref.setAttribute("type","text/javascript")
147
- fileref.setAttribute("src", filename)
148
- }
149
- else if (filetype=="css"){ //if filename is an external CSS file
150
- if($$('link[href="'+filename+'"]').length >= 1) return;
151
- var fileref=document.createElement("link")
152
- fileref.setAttribute("rel", "stylesheet")
153
- fileref.setAttribute("type", "text/css")
154
- fileref.setAttribute("href", filename)
155
- }
156
- if (typeof fileref!="undefined"){
157
- document.getElementsByTagName("head")[0].appendChild(fileref)
158
- }
159
- }
160
- //-->
161
- </script>
128
+
162
129
  <div id="topPanel" style="display:${paraBean.selectionPanelStatusOpen?'inline':'none'}" >
163
130
  <!--source panel begin-->
164
131
  <div id="accordionNavigationTab">
@@ -247,7 +214,7 @@ if(AAUtils.isAjaxRequest(request)){
247
214
  </div>
248
215
  </c:if>
249
216
  <c:if test="${!(panelIndex.index ==worker.dataAvailability || panelIndex.index ==worker.help)}">
250
- <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'}" >
217
+ <div style=' ${worker.servicer.panelIndex == panelIndex.index || !true ?"cursor: none" : ""} ; white-space:nowrap; ${worker.servicer.panelIndex == panelIndex.index || 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'}" >
251
218
  ${panel.label }
252
219
  </div>
253
220
  </c:if>
@@ -260,7 +227,7 @@ if(AAUtils.isAjaxRequest(request)){
260
227
  <tr>
261
228
  <td nowrap="nowrap" height="40px" style="padding-left:5px;" >
262
229
  </td>
263
- <td nowrap="nowrap" height="40px" style="text-align:right;">
230
+ <td nowrap="nowrap" height="40px" style="text-align:right; float:right ;padding-right:10px;">
264
231
  ${worker.renderPaginatorHTML}
265
232
  </td>
266
233
  </tr>
@@ -442,26 +409,42 @@ if(AAUtils.isAjaxRequest(request)){
442
409
  </l5m:dialog>
443
410
 
444
411
 
445
-
412
+ <l5m:dialog
413
+ id="excelDialog"
414
+ title="Export Option"
415
+ overlayZIndex="100"
416
+ dialogWidth="700px"
417
+ dialogHeight="150px"
418
+ canClose="true"
419
+ style="${styleLowerCase}">
420
+ <aa:zone name="exportDialogZone">
421
+ <l5m:ExcelOption
422
+ id="${servicer.excelOption.id}"
423
+ stateBean="${servicer.excelOption}"
424
+ style='${styleLowerCase}' includeCSV="true"
425
+ />
426
+ <script type="text/javascript">
427
+ <c:if test="${worker.showDialog}">
428
+ $('excelDialog').show();
429
+ </c:if>
430
+ </script>
431
+ </aa:zone>
432
+ <l5m:dialogBottom>
433
+ <a href="javascript:pageAction.hideDialog('excelDialog');pageAction.clickExportButton('<%=ActionConstants.EXPORT_EXCEL%>');">[OK]</a>
434
+ &nbsp;&nbsp;
435
+ <a href="javascript:pageAction.hideDialog('excelDialog');">[Cancel]</a>
436
+ &nbsp;&nbsp;
437
+ <a href="javascript:pageAction.clickExportButton('<%=ActionConstants.EXPORT_EXCEL%>');">[Apply]</a>
438
+ </l5m:dialogBottom>
439
+ </l5m:dialog>
446
440
 
447
-
441
+ <aa:zone name="footerZone">
442
+ <l5m:jspFoot id="jspFoot"/>
443
+ </aa:zone>
448
444
 
449
445
  <!-- end dialog -->
450
-
451
- </form>
452
-
453
- <script type="text/javascript" src='<%=request.getContextPath()%>/tagresources/javascript/QHTInputUtil.js'></script>
454
- <script type="text/javascript">
455
- function m_clickButton2(button, index){
456
- document.${worker.FORM_NAME}.<%=AppConfig.getProperty("butOption")%>.value = button;
457
- document.${worker.FORM_NAME}.<%=TTVConstants.MODULE_INDEX%>.value = index;
458
- document.${worker.FORM_NAME}.submit();
459
- }
460
- document.getElementById('mainmessage').style.display='none';
461
- document.getElementById('mainpart').style.display='inline';
462
- </script>
463
- </div>
464
- </body>
446
+
447
+ </l5m:jspBody>
465
448
  </html>
466
449
 
467
450
 
@@ -42,14 +42,14 @@ if(AAUtils.isAjaxRequest(request)){
42
42
 
43
43
 
44
44
 
45
- <l5m:jspHead useIE7Compatible="true" title="${worker.APP_NAME}" formName="${formName}" packageName="${packageLowerCase}" planingCss="L001;L004">
45
+ <l5m:jspHead useIE7Compatible="true" includeJQuery='true' title="${worker.APP_NAME}" formName="${formName}" packageName="${packageLowerCase}" planingCss="L001;L004">
46
46
 
47
47
  <!-- add additinal js css in here -->
48
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>
49
+ <script type="text/javascript" src="<%=request.getContextPath()%>/tagresources/javascript/timeSpan/datepicker-lite.js "></script>
50
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" />
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
53
  <!-- addtion javascript here -->
54
54
  <%@ include file="CommonVariables.jsp"%>
55
55
  <c:set var="colors" value="<%=colors%>" scope="request"/>
@@ -88,27 +88,17 @@ if(AAUtils.isAjaxRequest(request)){
88
88
 
89
89
 
90
90
 
91
+ <l5m:LoadResources/>
92
+
91
93
  </l5m:jspHead>
92
94
 
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="" />
95
+ <l5m:jspBody
96
+ formName="${worker.FORM_NAME}" packageName="${packageLowerCase}" style="${styleLowerCase}"
97
+ worker="${worker.WORKER_NAME}" action="" jspGoto="${worker.jspGoto}"
98
+ groupId="${servicer.groupId}" companyId="${servicer.companyId}"
99
+ userId="${servicer.userId}"
100
+ dbHandler="${servicer.dbHandler}" includeJQuery="true"
101
+ >
112
102
  <aa:zone name="alwaysRefreshZone">
113
103
  <input type="hidden" name="panelIndex" id="name" value="${paraBean.panelIndex}"/>
114
104
  <input type="hidden" name="displayStage" id="displayStage" value="${paraBean.displayStage}"/>
@@ -134,29 +124,7 @@ if(AAUtils.isAjaxRequest(request)){
134
124
  incSingleSelected = "${paraBean.selectedSortBy}"
135
125
  />
136
126
  </aa:zone>
137
- <script type="text/javascript">
138
- <!--
139
- function loadjscssfile(filename,filetype){
140
-
141
- if (filetype=="js"){ //if filename is a external JavaScript file
142
- if($$('script[src="'+filename+'"]').length >= 1) return;
143
- var fileref=document.createElement('script')
144
- fileref.setAttribute("type","text/javascript")
145
- fileref.setAttribute("src", filename)
146
- }
147
- else if (filetype=="css"){ //if filename is an external CSS file
148
- if($$('link[href="'+filename+'"]').length >= 1) return;
149
- var fileref=document.createElement("link")
150
- fileref.setAttribute("rel", "stylesheet")
151
- fileref.setAttribute("type", "text/css")
152
- fileref.setAttribute("href", filename)
153
- }
154
- if (typeof fileref!="undefined"){
155
- document.getElementsByTagName("head")[0].appendChild(fileref)
156
- }
157
- }
158
- //-->
159
- </script>
127
+
160
128
  <div id="topPanel" style="display:${paraBean.selectionPanelStatusOpen?'inline':'none'}" >
161
129
  <!--source panel begin-->
162
130
  <div id="accordionNavigationTab">
@@ -245,7 +213,7 @@ if(AAUtils.isAjaxRequest(request)){
245
213
  </div>
246
214
  </c:if>
247
215
  <c:if test="${!(panelIndex.index ==worker.dataAvailability || panelIndex.index ==worker.help)}">
248
- <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'}" >
216
+ <div style=' ${worker.servicer.panelIndex == panelIndex.index || !true ?"cursor: none" : ""} ; white-space:nowrap; ${worker.servicer.panelIndex == panelIndex.index || 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'}" >
249
217
  ${panel.label }
250
218
  </div>
251
219
  </c:if>
@@ -258,7 +226,7 @@ if(AAUtils.isAjaxRequest(request)){
258
226
  <tr>
259
227
  <td nowrap="nowrap" height="40px" style="padding-left:5px;" >
260
228
  </td>
261
- <td nowrap="nowrap" height="40px" style="text-align:right;">
229
+ <td nowrap="nowrap" height="40px" style="text-align:right; float:right ;padding-right:10px;">
262
230
  ${worker.renderPaginatorHTML}
263
231
  </td>
264
232
  </tr>
@@ -439,27 +407,44 @@ if(AAUtils.isAjaxRequest(request)){
439
407
  </l5m:dialogBottom>
440
408
  </l5m:dialog>
441
409
 
442
-
410
+
411
+ <l5m:dialog
412
+ id="excelDialog"
413
+ title="Export Option"
414
+ overlayZIndex="100"
415
+ dialogWidth="700px"
416
+ dialogHeight="150px"
417
+ canClose="true"
418
+ style="${styleLowerCase}">
419
+ <aa:zone name="exportDialogZone">
420
+ <l5m:ExcelOption
421
+ id="${servicer.excelOption.id}"
422
+ stateBean="${servicer.excelOption}"
423
+ style='${styleLowerCase}' includeCSV="true"
424
+ />
425
+ <script type="text/javascript">
426
+ <c:if test="${worker.showDialog}">
427
+ $('excelDialog').show();
428
+ </c:if>
429
+ </script>
430
+ </aa:zone>
431
+ <l5m:dialogBottom>
432
+ <a href="javascript:pageAction.hideDialog('excelDialog');pageAction.clickExportButton('<%=ActionConstants.EXPORT_EXCEL%>');">[OK]</a>
433
+ &nbsp;&nbsp;
434
+ <a href="javascript:pageAction.hideDialog('excelDialog');">[Cancel]</a>
435
+ &nbsp;&nbsp;
436
+ <a href="javascript:pageAction.clickExportButton('<%=ActionConstants.EXPORT_EXCEL%>');">[Apply]</a>
437
+ </l5m:dialogBottom>
438
+ </l5m:dialog>
443
439
 
444
440
 
445
-
441
+ <aa:zone name="footerZone">
442
+ <l5m:jspFoot id="jspFoot"/>
443
+ </aa:zone>
446
444
 
447
445
  <!-- end dialog -->
448
-
449
- </form>
450
-
451
- <script type="text/javascript" src='<%=request.getContextPath()%>/tagresources/javascript/QHTInputUtil.js'></script>
452
- <script type="text/javascript">
453
- function m_clickButton2(button, index){
454
- document.${worker.FORM_NAME}.<%=AppConfig.getProperty("butOption")%>.value = button;
455
- document.${worker.FORM_NAME}.<%=TTVConstants.MODULE_INDEX%>.value = index;
456
- document.${worker.FORM_NAME}.submit();
457
- }
458
- document.getElementById('mainmessage').style.display='none';
459
- document.getElementById('mainpart').style.display='inline';
460
- </script>
461
- </div>
462
- </body>
446
+
447
+ </l5m:jspBody>
463
448
  </html>
464
449
 
465
450
 
@@ -42,14 +42,14 @@ if(AAUtils.isAjaxRequest(request)){
42
42
 
43
43
 
44
44
 
45
- <l5m:jspHead useIE7Compatible="true" title="${worker.APP_NAME}" formName="${formName}" packageName="${packageLowerCase}" planingCss="L001;L004">
45
+ <l5m:jspHead useIE7Compatible="true" includeJQuery='true' title="${worker.APP_NAME}" formName="${formName}" packageName="${packageLowerCase}" planingCss="L001;L004">
46
46
 
47
47
  <!-- add additinal js css in here -->
48
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>
49
+ <script type="text/javascript" src="<%=request.getContextPath()%>/tagresources/javascript/timeSpan/datepicker-lite.js "></script>
50
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_${packageUpperCase}.css" />
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_${packageUpperCase}.css" />
53
53
  <!-- addtion javascript here -->
54
54
  <%@ include file="CommonVariables.jsp"%>
55
55
  <c:set var="colors" value="<%=colors%>" scope="request"/>
@@ -82,33 +82,19 @@ if(AAUtils.isAjaxRequest(request)){
82
82
  white-space:nowrap;
83
83
  }
84
84
  </style>
85
-
86
-
87
-
85
+
88
86
 
89
-
87
+ <l5m:LoadResources/>
90
88
 
91
89
  </l5m:jspHead>
92
90
 
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="" />
91
+ <l5m:jspBody
92
+ formName="${worker.FORM_NAME}" packageName="${packageLowerCase}" style="${styleLowerCase}"
93
+ worker="${worker.WORKER_NAME}" action="" jspGoto="${worker.jspGoto}"
94
+ groupId="${servicer.groupId}" companyId="${servicer.companyId}"
95
+ userId="${servicer.userId}"
96
+ dbHandler="${servicer.dbHandler}" includeJQuery="true"
97
+ >
112
98
  <aa:zone name="alwaysRefreshZone">
113
99
  <input type="hidden" name="panelIndex" id="name" value="${paraBean.panelIndex}"/>
114
100
  <input type="hidden" name="displayStage" id="displayStage" value="${paraBean.displayStage}"/>
@@ -134,29 +120,7 @@ if(AAUtils.isAjaxRequest(request)){
134
120
  incSingleSelected = "${paraBean.selectedSortBy}"
135
121
  />
136
122
  </aa:zone>
137
- <script type="text/javascript">
138
- <!--
139
- function loadjscssfile(filename,filetype){
140
-
141
- if (filetype=="js"){ //if filename is a external JavaScript file
142
- if($$('script[src="'+filename+'"]').length >= 1) return;
143
- var fileref=document.createElement('script')
144
- fileref.setAttribute("type","text/javascript")
145
- fileref.setAttribute("src", filename)
146
- }
147
- else if (filetype=="css"){ //if filename is an external CSS file
148
- if($$('link[href="'+filename+'"]').length >= 1) return;
149
- var fileref=document.createElement("link")
150
- fileref.setAttribute("rel", "stylesheet")
151
- fileref.setAttribute("type", "text/css")
152
- fileref.setAttribute("href", filename)
153
- }
154
- if (typeof fileref!="undefined"){
155
- document.getElementsByTagName("head")[0].appendChild(fileref)
156
- }
157
- }
158
- //-->
159
- </script>
123
+
160
124
  <div id="topPanel" style="display:${paraBean.selectionPanelStatusOpen?'inline':'none'}" >
161
125
  <!--source panel begin-->
162
126
  <div id="accordionNavigationTab">
@@ -245,7 +209,7 @@ if(AAUtils.isAjaxRequest(request)){
245
209
  </div>
246
210
  </c:if>
247
211
  <c:if test="${!(panelIndex.index ==worker.dataAvailability || panelIndex.index ==worker.help)}">
248
- <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'}" >
212
+ <div style=' ${worker.servicer.panelIndex == panelIndex.index || !true ?"cursor: none" : ""} ; white-space:nowrap; ${worker.servicer.panelIndex == panelIndex.index || 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'}" >
249
213
  ${panel.label }
250
214
  </div>
251
215
  </c:if>
@@ -258,7 +222,7 @@ if(AAUtils.isAjaxRequest(request)){
258
222
  <tr>
259
223
  <td nowrap="nowrap" height="40px" style="padding-left:5px;" >
260
224
  </td>
261
- <td nowrap="nowrap" height="40px" style="text-align:right;">
225
+ <td nowrap="nowrap" height="40px" style="text-align:right; float:right ;padding-right:10px;">
262
226
  ${worker.renderPaginatorHTML}
263
227
  </td>
264
228
  </tr>
@@ -439,27 +403,44 @@ if(AAUtils.isAjaxRequest(request)){
439
403
  </l5m:dialogBottom>
440
404
  </l5m:dialog>
441
405
 
442
-
406
+
407
+ <l5m:dialog
408
+ id="excelDialog"
409
+ title="Export Option"
410
+ overlayZIndex="100"
411
+ dialogWidth="700px"
412
+ dialogHeight="150px"
413
+ canClose="true"
414
+ style="${styleLowerCase}">
415
+ <aa:zone name="exportDialogZone">
416
+ <l5m:ExcelOption
417
+ id="${servicer.excelOption.id}"
418
+ stateBean="${servicer.excelOption}"
419
+ style='${styleLowerCase}' includeCSV="true"
420
+ />
421
+ <script type="text/javascript">
422
+ <c:if test="${worker.showDialog}">
423
+ $('excelDialog').show();
424
+ </c:if>
425
+ </script>
426
+ </aa:zone>
427
+ <l5m:dialogBottom>
428
+ <a href="javascript:pageAction.hideDialog('excelDialog');pageAction.clickExportButton('<%=ActionConstants.EXPORT_EXCEL%>');">[OK]</a>
429
+ &nbsp;&nbsp;
430
+ <a href="javascript:pageAction.hideDialog('excelDialog');">[Cancel]</a>
431
+ &nbsp;&nbsp;
432
+ <a href="javascript:pageAction.clickExportButton('<%=ActionConstants.EXPORT_EXCEL%>');">[Apply]</a>
433
+ </l5m:dialogBottom>
434
+ </l5m:dialog>
443
435
 
444
436
 
445
437
 
446
-
438
+ <aa:zone name="footerZone">
439
+ <l5m:jspFoot id="jspFoot"/>
440
+ </aa:zone>
447
441
  <!-- end dialog -->
448
442
 
449
- </form>
450
-
451
- <script type="text/javascript" src='<%=request.getContextPath()%>/tagresources/javascript/QHTInputUtil.js'></script>
452
- <script type="text/javascript">
453
- function m_clickButton2(button, index){
454
- document.${worker.FORM_NAME}.<%=AppConfig.getProperty("butOption")%>.value = button;
455
- document.${worker.FORM_NAME}.<%=TTVConstants.MODULE_INDEX%>.value = index;
456
- document.${worker.FORM_NAME}.submit();
457
- }
458
- document.getElementById('mainmessage').style.display='none';
459
- document.getElementById('mainpart').style.display='inline';
460
- </script>
461
- </div>
462
- </body>
443
+ </l5m:jspBody>
463
444
  </html>
464
445
 
465
446
 
@@ -43,7 +43,7 @@ if(AAUtils.isAjaxRequest(request)){
43
43
 
44
44
 
45
45
 
46
- <l5m:jspHead useIE7Compatible="true" title="${worker.APP_NAME}" formName="${formName}" packageName="${packageLowerCase}" planingCss="L001;L004">
46
+ <l5m:jspHead useIE7Compatible="true" includeJQuery='true' title="${worker.APP_NAME}" formName="${formName}" packageName="${packageLowerCase}" planingCss="L001;L004">
47
47
 
48
48
  <!-- add additinal js css in here -->
49
49
 
@@ -313,27 +313,17 @@ if(AAUtils.isAjaxRequest(request)){
313
313
 
314
314
 
315
315
 
316
+ <l5m:LoadResources/>
317
+
316
318
  </l5m:jspHead>
317
319
 
318
- <body bgcolor="#ffffff" marginwidth="0" marginheight="0" leftmargin="0" topmargin="0">
319
- <div id="mainmessage" align="center">
320
- <span style="font-family: Arial, Helvetica, sans-serif; font-size: 16px; font-weight: bold">
321
- <br/>
322
- <br/>
323
- <br/>
324
- <br/>
325
- Please wait ...<br />
326
- </span>
327
- </div>
328
- <div id="mainpart" style="display: none;">
329
- <form class="formnomargin" name="${worker.FORM_NAME}" id="${worker.FORM_NAME}" action="<%=AppConfig.getProperty("appL5MOnline")%>" method="post">
330
- <input type="hidden" name="<%=AppConfig.getProperty("requestAction")%>" id="<%=AppConfig.getProperty("requestAction")%>" value="${worker.WORKER_NAME}" />
331
- <input type="hidden" name="<%=AppConfig.getProperty("srcPage")%>" id="<%=AppConfig.getProperty("srcPage")%>" value="${worker.jspGoto}" />
332
- <input type="hidden" name="<%=AppConfig.getProperty("butOption")%>" id="<%=AppConfig.getProperty("butOption")%>" value="" />
333
- <input type="hidden" name="1stnavbar" id="1stnavbar" value="<%=request.getParameter("1stnavbar")%>" />
334
- <input type="hidden" name="2ndnavbar" id="2ndnavbar" value="<%=request.getParameter("2ndnavbar")%>" />
335
- <input type="hidden" name="<%=SessionConstants.NAV_COMPANY_ID%>" id="<%=SessionConstants.NAV_COMPANY_ID%>" value="${worker.servicer.companyId}" />
336
- <input type="hidden" name="<%=TTVConstants.MODULE_INDEX%>" id="<%=TTVConstants.MODULE_INDEX%>" value="" />
320
+ <l5m:jspBody
321
+ formName="${worker.FORM_NAME}" packageName="${packageLowerCase}" style="${styleLowerCase}"
322
+ worker="${worker.WORKER_NAME}" action="" jspGoto="${worker.jspGoto}"
323
+ groupId="${servicer.groupId}" companyId="${servicer.companyId}"
324
+ userId="${servicer.userId}"
325
+ dbHandler="${servicer.dbHandler}" includeJQuery="true"
326
+ >
337
327
  <aa:zone name="alwaysRefreshZone">
338
328
  <input type="hidden" name="panelIndex" id="name" value="${paraBean.panelIndex}"/>
339
329
  <input type="hidden" name="displayStage" id="displayStage" value="${paraBean.displayStage}"/>
@@ -358,31 +348,7 @@ if(AAUtils.isAjaxRequest(request)){
358
348
  incSelectedSet = "${paraBean.selectedDisplayBy}"
359
349
  incSingleSelected = "${paraBean.selectedSortBy}"
360
350
  />
361
- </aa:zone>
362
-
363
- <script type="text/javascript">
364
- <!--
365
- function loadjscssfile(filename,filetype){
366
-
367
- if (filetype=="js"){ //if filename is a external JavaScript file
368
- if($$('script[src="'+filename+'"]').length >= 1) return;
369
- var fileref=document.createElement('script')
370
- fileref.setAttribute("type","text/javascript")
371
- fileref.setAttribute("src", filename)
372
- }
373
- else if (filetype=="css"){ //if filename is an external CSS file
374
- if($$('link[href="'+filename+'"]').length >= 1) return;
375
- var fileref=document.createElement("link")
376
- fileref.setAttribute("rel", "stylesheet")
377
- fileref.setAttribute("type", "text/css")
378
- fileref.setAttribute("href", filename)
379
- }
380
- if (typeof fileref!="undefined"){
381
- document.getElementsByTagName("head")[0].appendChild(fileref)
382
- }
383
- }
384
- //-->
385
- </script>
351
+ </aa:zone>
386
352
 
387
353
  <div id="topPanel" style="display:${paraBean.selectionPanelStatusOpen?'inline':'none'}" >
388
354
  <!--source panel begin-->
@@ -468,7 +434,7 @@ if(AAUtils.isAjaxRequest(request)){
468
434
  <td align="left" valign="top" width="99%">
469
435
  <aa:zone name="result">
470
436
  <input type="hidden" name="panelIndex" id="name" value="${baseServicerParameterBean.panelIndex}"/>
471
- <input type="hidden" name="displayStage" id="displayStage" value="${worker.servicer.displayStage}"/>
437
+ <input type="hidden" name="displayStage" id="displayStage" value="${true}"/>
472
438
  <c:set var="PANEL" value="${worker.PANEL}"/>
473
439
  <table id="sectable" border="0" cellpadding="0" cellspacing="0" width="100%" height="26">
474
440
  <tbody>
@@ -484,7 +450,7 @@ if(AAUtils.isAjaxRequest(request)){
484
450
  </td >
485
451
  </c:if>
486
452
  <c:if test="${!(panelIndex.index ==worker.dataAvailability || panelIndex.index ==worker.help)}">
487
- <td width="145px" 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? 'sec2' :worker.servicer.displayStage?'sec1':'sec1'}" >
453
+ <td width="145px" style=' ${worker.servicer.panelIndex == panelIndex.index || !true ?"cursor: none" : ""} ; white-space:nowrap; ${worker.servicer.panelIndex == panelIndex.index || 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? 'sec2' :true?'sec1':'sec1'}" >
488
454
  ${panel.label }
489
455
  </td >
490
456
  </c:if>
@@ -504,7 +470,7 @@ if(AAUtils.isAjaxRequest(request)){
504
470
  <td nowrap="nowrap" height="40px" style="padding-left:5px;" >
505
471
  </td>
506
472
 
507
- <td nowrap="nowrap" height="40px" style="text-align:right;">
473
+ <td nowrap="nowrap" height="40px" style="text-align:right; float:right ;padding-right:10px;">
508
474
  <c:if test="${baseServicerParameterBean.panelIndex !=worker.help && baseServicerParameterBean.panelIndex !=worker.dataAvailability}" >
509
475
  ${worker.renderPaginatorHTML}
510
476
  </c:if>
@@ -691,27 +657,43 @@ if(AAUtils.isAjaxRequest(request)){
691
657
  </l5m:dialogBottom>
692
658
  </l5m:dialog>
693
659
 
694
-
660
+ <l5m:dialog
661
+ id="excelDialog"
662
+ title="Export Option"
663
+ overlayZIndex="100"
664
+ dialogWidth="700px"
665
+ dialogHeight="150px"
666
+ canClose="true"
667
+ style="${styleLowerCase}">
668
+ <aa:zone name="exportDialogZone">
669
+ <l5m:ExcelOption
670
+ id="${servicer.excelOption.id}"
671
+ stateBean="${servicer.excelOption}"
672
+ style='${styleLowerCase}' includeCSV="true"
673
+ />
674
+ <script type="text/javascript">
675
+ <c:if test="${worker.showDialog}">
676
+ $('excelDialog').show();
677
+ </c:if>
678
+ </script>
679
+ </aa:zone>
680
+ <l5m:dialogBottom>
681
+ <a href="javascript:pageAction.hideDialog('excelDialog');pageAction.clickExportButton('<%=ActionConstants.EXPORT_EXCEL%>');">[OK]</a>
682
+ &nbsp;&nbsp;
683
+ <a href="javascript:pageAction.hideDialog('excelDialog');">[Cancel]</a>
684
+ &nbsp;&nbsp;
685
+ <a href="javascript:pageAction.clickExportButton('<%=ActionConstants.EXPORT_EXCEL%>');">[Apply]</a>
686
+ </l5m:dialogBottom>
687
+ </l5m:dialog>
695
688
 
696
-
689
+ <aa:zone name="footerZone">
690
+ <l5m:jspFoot id="jspFoot"/>
691
+ </aa:zone>
697
692
 
698
693
 
699
694
  <!-- end dialog -->
700
-
701
- </form>
702
-
703
- <script type="text/javascript" src='<%=request.getContextPath()%>/tagresources/javascript/QHTInputUtil.js'></script>
704
- <script type="text/javascript">
705
- function m_clickButton2(button, index){
706
- document.${worker.FORM_NAME}.<%=AppConfig.getProperty("butOption")%>.value = button;
707
- document.${worker.FORM_NAME}.<%=TTVConstants.MODULE_INDEX%>.value = index;
708
- document.${worker.FORM_NAME}.submit();
709
- }
710
- document.getElementById('mainmessage').style.display='none';
711
- document.getElementById('mainpart').style.display='inline';
712
- </script>
713
- </div>
714
- </body>
695
+
696
+ </l5m:jspBody>
715
697
  </html>
716
698
 
717
699
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: l5m-tools
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.9
4
+ version: 0.0.10
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-08-16 00:00:00.000000000 Z
12
+ date: 2013-11-28 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: shoulda
16
- requirement: &70345617539980 !ruby/object:Gem::Requirement
16
+ requirement: &70316764735320 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '0'
22
22
  type: :development
23
23
  prerelease: false
24
- version_requirements: *70345617539980
24
+ version_requirements: *70316764735320
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: rdoc
27
- requirement: &70345617538920 !ruby/object:Gem::Requirement
27
+ requirement: &70316764733540 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ~>
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: '3.12'
33
33
  type: :development
34
34
  prerelease: false
35
- version_requirements: *70345617538920
35
+ version_requirements: *70316764733540
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: bundler
38
- requirement: &70345617537840 !ruby/object:Gem::Requirement
38
+ requirement: &70316764731700 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ~>
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: 1.2.0
44
44
  type: :development
45
45
  prerelease: false
46
- version_requirements: *70345617537840
46
+ version_requirements: *70316764731700
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: jeweler
49
- requirement: &70345617535940 !ruby/object:Gem::Requirement
49
+ requirement: &70316764761660 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ~>
@@ -54,7 +54,7 @@ dependencies:
54
54
  version: 1.8.4
55
55
  type: :development
56
56
  prerelease: false
57
- version_requirements: *70345617535940
57
+ version_requirements: *70316764761660
58
58
  description: A tool set for Lake5Media and QingheTech developer
59
59
  email: ronghai.wei@outlook.com
60
60
  executables:
@@ -115,7 +115,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
115
115
  version: '0'
116
116
  segments:
117
117
  - 0
118
- hash: -83511010056531916
118
+ hash: -1490384434824898139
119
119
  required_rubygems_version: !ruby/object:Gem::Requirement
120
120
  none: false
121
121
  requirements: