m2u-upass-admin / WebContent / jsp / ss105_content / ibssCheckDigitPrerequisiteEdit.jsp @ 13:053ef68134de
History | View | Annotate | Download (12.3 KB)
1 |
<%@ taglib uri="/WEB-INF/tld/struts-html-el" prefix="htmlEL" %> |
---|---|
2 |
<%@ taglib uri="/WEB-INF/tld/struts-html" prefix="html"%> |
3 |
<%@ taglib uri="/WEB-INF/tld/struts-bean" prefix="bean" %> |
4 |
<%@ taglib uri="/WEB-INF/tld/c" prefix="c" %> |
5 |
<%@ taglib uri="/WEB-INF/tld/struts-logic" prefix="logic" %> |
6 |
<%@page import="java.util.HashMap"%> |
7 |
|
8 |
<script type="text/javascript"> |
9 |
window.onload = function() |
10 |
{ |
11 |
customRuleForBillAcctNoReqChecking(); |
12 |
customRuleForBillRef1ReqChecking(); |
13 |
customRuleForBillRef2ReqChecking(); |
14 |
}; |
15 |
function customRuleForBillAcctNoReqChecking() |
16 |
{ |
17 |
var programNameForBillAcctNo = document.getElementById("programNameForBillAcctNo"); |
18 |
var customRuleForBillAcctNoReq = document.getElementById("customRuleForBillAcctNoReq"); |
19 |
var field1NameTemp = document.getElementById("field1NameTemp"); |
20 |
var splitRuleForBillAcctNoReq = document.getElementById("splitRuleForBillAcctNoReq"); |
21 |
var checkDigitConditionalFunctionForBillAcctNo = document.getElementById("checkDigitConditionalFunctionForBillAcctNo"); |
22 |
|
23 |
if (customRuleForBillAcctNoReq.value == 0) |
24 |
{ |
25 |
programNameForBillAcctNo.disabled = false; |
26 |
field1NameTemp.value = "0"; |
27 |
splitRuleForBillAcctNoReq.disabled = true; |
28 |
checkDigitConditionalFunctionForBillAcctNo.disabled = true; |
29 |
} |
30 |
else |
31 |
{ |
32 |
programNameForBillAcctNo.disabled = true; |
33 |
field1NameTemp.value = "1"; |
34 |
splitRuleForBillAcctNoReq.disabled = false; |
35 |
checkDigitConditionalFunctionForBillAcctNo.disabled = false; |
36 |
} |
37 |
} |
38 |
function customRuleForBillRef1ReqChecking() |
39 |
{ |
40 |
var programNameForBillRef1 = document.getElementById("programNameForBillRef1"); |
41 |
var customRuleForBillRef1Req = document.getElementById("customRuleForBillRef1Req"); |
42 |
var field2NameTemp = document.getElementById("field2NameTemp"); |
43 |
var splitRuleForBillRef1Req = document.getElementById("splitRuleForBillRef1Req"); |
44 |
var checkDigitConditionalFunctionForBillRef1 = document.getElementById("checkDigitConditionalFunctionForBillRef1"); |
45 |
|
46 |
if (customRuleForBillRef1Req.value == 0) |
47 |
{ |
48 |
programNameForBillRef1.disabled = false; |
49 |
field2NameTemp.value = "0"; |
50 |
splitRuleForBillRef1Req.disabled = true; |
51 |
checkDigitConditionalFunctionForBillRef1.disabled= true; |
52 |
} |
53 |
else |
54 |
{ |
55 |
programNameForBillRef1.disabled = true; |
56 |
field2NameTemp.value = "1"; |
57 |
splitRuleForBillRef1Req.disabled = false; |
58 |
checkDigitConditionalFunctionForBillRef1.disabled= false; |
59 |
} |
60 |
} |
61 |
|
62 |
function customRuleForBillRef2ReqChecking() |
63 |
{ |
64 |
var programNameForBillRef2 = document.getElementById("programNameForBillRef2"); |
65 |
var customRuleForBillRef2Req = document.getElementById("customRuleForBillRef2Req"); |
66 |
var field3NameTemp = document.getElementById("field3NameTemp"); |
67 |
var splitRuleForBillRef2Req = document.getElementById("splitRuleForBillRef2Req"); |
68 |
var checkDigitConditionalFunctionForBillRef2 = document.getElementById("checkDigitConditionalFunctionForBillRef2"); |
69 |
|
70 |
if (customRuleForBillRef2Req.value == 0) |
71 |
{ |
72 |
programNameForBillRef2.disabled = false; |
73 |
field3NameTemp.value = "0"; |
74 |
splitRuleForBillRef2Req.disabled = true; |
75 |
checkDigitConditionalFunctionForBillRef2.disabled= true; |
76 |
} |
77 |
else |
78 |
{ |
79 |
programNameForBillRef2.disabled = true; |
80 |
field3NameTemp.value = "1"; |
81 |
splitRuleForBillRef2Req.disabled = false; |
82 |
checkDigitConditionalFunctionForBillRef2.disabled= false; |
83 |
} |
84 |
} |
85 |
|
86 |
</script> |
87 |
|
88 |
<bean:define id="payeeBean" name="contentForm" property="payeeBean" /> |
89 |
<h3 class="title"><STRONG><bean:message key="content_checkDigitPrerequisite_title_checkDigitPrerequisiteEdit"/></STRONG></h3><br/> |
90 |
<table id="errorTable"> |
91 |
<tr> |
92 |
<td> |
93 |
<span id="serverSideError" class="error"><jsp:include flush="true" page="/jsp/errorHandler.jsp"></jsp:include></span> |
94 |
</td> |
95 |
</tr> |
96 |
</table> |
97 |
<br> |
98 |
|
99 |
<htmlEL:form action="/ss105/checkDigitPrerequisiteUpdate.do"> |
100 |
<table class="stepTable"> |
101 |
<tr> |
102 |
<td> </td> |
103 |
<td><div id="steps"><span><bean:message key="general.title.steps" arg0="1" arg1="2"/></span></div></td> |
104 |
|
105 |
</tr> |
106 |
</table> |
107 |
<c:choose> |
108 |
<c:when test="${payeeBean.map.checkDigitForBillAcctNoReq eq 0}"> |
109 |
<h5 class="title"><STRONG><bean:message key="content_checkDigitPrerequisite_subtitle_billAccountNumber"/> </STRONG></h5> |
110 |
<table class="tabularForm"> |
111 |
<tr><td colspan="3"> </td></tr> |
112 |
<tr> |
113 |
<td width="10%"> </td> |
114 |
<td><bean:message key="content_checkDigit_label_customRule"/>:</td> |
115 |
<td> |
116 |
<htmlEL:select styleId="customRuleForBillAcctNoReq" property="customRuleForBillAcctNoReq" name="contentForm" onclick="customRuleForBillAcctNoReqChecking();"> |
117 |
<htmlEL:option value="1"><bean:message key="general.no"/></htmlEL:option> |
118 |
<htmlEL:option value="0"><bean:message key="general.yes"/></htmlEL:option> |
119 |
</htmlEL:select> |
120 |
|
121 |
<bean:define id="billAcctCkOid" name="payeeBean" property="billAcctCkOid" /> |
122 |
<% |
123 |
HashMap paramsName = new HashMap(); |
124 |
paramsName.put("whichOID", "1"); |
125 |
paramsName.put("SECONDARY_TOKEN", request.getSession().getAttribute("PRIMARY_TOKEN")); |
126 |
pageContext.setAttribute("paramsName", paramsName); |
127 |
%> |
128 |
</td> |
129 |
</tr> |
130 |
|
131 |
<tr> |
132 |
<td width="10%"> </td> |
133 |
<td><bean:message key="content_payee_split_checkDigitForBillAccountNumber"/>:</td> |
134 |
<td> |
135 |
<htmlEL:select styleId="splitRuleForBillAcctNoReq" property="splitRuleForBillAcctNoReq" name="contentForm"> |
136 |
<htmlEL:option value="1"><bean:message key="general.no"/></htmlEL:option> |
137 |
<htmlEL:option value="0"><bean:message key="general.yes"/></htmlEL:option> |
138 |
</htmlEL:select> |
139 |
|
140 |
<bean:define id="billAcctCk2Oid" name="payeeBean" property="billAcctCk2Oid" /> |
141 |
<% |
142 |
HashMap paramsName2 = new HashMap(); |
143 |
paramsName.put("whichOID", "4"); |
144 |
paramsName.put("SECONDARY_TOKEN", request.getSession().getAttribute("PRIMARY_TOKEN")); |
145 |
pageContext.setAttribute("paramsName2", paramsName2); |
146 |
%> |
147 |
</td> |
148 |
</tr> |
149 |
|
150 |
<tr> |
151 |
<td width="10%"> </td> |
152 |
<td><bean:message key="content_payee_conditional_function_checkDigitForBillAccountNumber"/>:</td> |
153 |
<td> |
154 |
<htmlEL:select styleId="checkDigitConditionalFunctionForBillAcctNo" property="checkDigitConditionalFunctionForBillAcctNo" name="contentForm"> |
155 |
<htmlEL:option value="1"><bean:message key="general.or"/></htmlEL:option> |
156 |
<htmlEL:option value="0"><bean:message key="general.and"/></htmlEL:option> |
157 |
</htmlEL:select> |
158 |
</td> |
159 |
</tr> |
160 |
|
161 |
<tr> |
162 |
<td width="10%"> </td> |
163 |
<td><bean:message key="content_checkDigit_label_customProgramName"/>:</td> |
164 |
<td><htmlEL:text styleId="programNameForBillAcctNo" property="programNameForBillAcctNo" disabled="disbaled" name="contentForm" maxlength="100" autocomplete="off"/> |
165 |
<html:hidden styleId="field1NameTemp" name="contentForm" property="field1NameTemp"/></td> |
166 |
</tr> |
167 |
<tr><td colspan="3"> </td></tr> |
168 |
</table> |
169 |
</c:when> |
170 |
</c:choose> |
171 |
|
172 |
|
173 |
|
174 |
|
175 |
<c:choose> |
176 |
<c:when test="${payeeBean.map.checkDigitForBillRef1Req eq 0}"> |
177 |
<h5 class="title"><STRONG><bean:message key="content_checkDigitPrerequisite_subtitle_billReferenceNo1"/></STRONG></h5> |
178 |
<table class="tabularForm"> |
179 |
<tr><td colspan="3"> </td></tr> |
180 |
<tr> |
181 |
<td width="10%"> </td> |
182 |
<td><bean:message key="content_checkDigit_label_customRule"/>:</td> |
183 |
<td> |
184 |
<htmlEL:select styleId="customRuleForBillRef1Req" property="customRuleForBillRef1Req" name="contentForm" onclick="customRuleForBillRef1ReqChecking();"> |
185 |
<htmlEL:option value="1"><bean:message key="general.no"/></htmlEL:option> |
186 |
<htmlEL:option value="0"><bean:message key="general.yes"/></htmlEL:option> |
187 |
</htmlEL:select> |
188 |
|
189 |
|
190 |
<bean:define id="billRef1CkOid" name="payeeBean" property="billRef1CkOid" /> |
191 |
<% |
192 |
HashMap paramsName = new HashMap(); |
193 |
paramsName.put("whichOID", "2"); |
194 |
paramsName.put("SECONDARY_TOKEN", request.getSession().getAttribute("PRIMARY_TOKEN")); |
195 |
pageContext.setAttribute("paramsName", paramsName); |
196 |
%> |
197 |
</td> |
198 |
</tr> |
199 |
|
200 |
<tr> |
201 |
<td width="10%"> </td> |
202 |
<td><bean:message key="content_payee_split_checkDigitForBillReferenceNo1"/>:</td> |
203 |
<td> |
204 |
<htmlEL:select styleId="splitRuleForBillRef1Req" property="splitRuleForBillRef1Req" name="contentForm" > |
205 |
<htmlEL:option value="1"><bean:message key="general.no"/></htmlEL:option> |
206 |
<htmlEL:option value="0"><bean:message key="general.yes"/></htmlEL:option> |
207 |
</htmlEL:select> |
208 |
|
209 |
|
210 |
<bean:define id="billRef1Ck2Oid" name="payeeBean" property="billRef1Ck2Oid" /> |
211 |
<% |
212 |
HashMap paramsName2 = new HashMap(); |
213 |
paramsName.put("whichOID", "5"); |
214 |
paramsName.put("SECONDARY_TOKEN", request.getSession().getAttribute("PRIMARY_TOKEN")); |
215 |
pageContext.setAttribute("paramsName2", paramsName2); |
216 |
%> |
217 |
</td> |
218 |
</tr> |
219 |
<tr> |
220 |
<td width="10%"> </td> |
221 |
<td><bean:message key="content_payee_conditional_function_checkDigitForBillRef1"/>:</td> |
222 |
<td> |
223 |
<htmlEL:select styleId="checkDigitConditionalFunctionForBillRef1" property="checkDigitConditionalFunctionForBillRef1" name="contentForm"> |
224 |
<htmlEL:option value="1"><bean:message key="general.or"/></htmlEL:option> |
225 |
<htmlEL:option value="0"><bean:message key="general.and"/></htmlEL:option> |
226 |
</htmlEL:select> |
227 |
</td> |
228 |
</tr> |
229 |
<tr> |
230 |
<td width="10%"> </td> |
231 |
<td><bean:message key="content_checkDigit_label_customProgramName"/>:</td> |
232 |
<td><htmlEL:text styleId="programNameForBillRef1" property="programNameForBillRef1" disabled="disabled" name="contentForm" maxlength="100" autocomplete="off"/> |
233 |
<html:hidden styleId="field2NameTemp" name="contentForm" property="field2NameTemp"/></td> |
234 |
</tr> |
235 |
<tr><td colspan="3"> </td></tr> |
236 |
</table> |
237 |
</c:when> |
238 |
</c:choose> |
239 |
|
240 |
|
241 |
|
242 |
|
243 |
|
244 |
|
245 |
|
246 |
|
247 |
|
248 |
|
249 |
|
250 |
|
251 |
<c:choose> |
252 |
<c:when test="${payeeBean.map.checkDigitForBillRef2Req eq 0}"> |
253 |
<h5 class="title"><STRONG><bean:message key="content_checkDigitPrerequisite_subtitle_billReferenceNo2"/></STRONG></h5> |
254 |
<table class="tabularForm"> |
255 |
<tr><td colspan="3"> </td></tr> |
256 |
<tr> |
257 |
<td width="10%"> </td> |
258 |
<td><bean:message key="content_checkDigit_label_customRule"/>:</td> |
259 |
<td> |
260 |
<htmlEL:select styleId="customRuleForBillRef2Req" property="customRuleForBillRef2Req" name="contentForm" onclick="customRuleForBillRef2ReqChecking();"> |
261 |
<htmlEL:option value="1"><bean:message key="general.no"/></htmlEL:option> |
262 |
<htmlEL:option value="0"><bean:message key="general.yes"/></htmlEL:option> |
263 |
</htmlEL:select> |
264 |
|
265 |
<bean:define id="billRef2CkOid" name="payeeBean" property="billRef2CkOid" /> |
266 |
<% |
267 |
HashMap paramsName = new HashMap(); |
268 |
paramsName.put("whichOID", "3"); |
269 |
paramsName.put("SECONDARY_TOKEN", request.getSession().getAttribute("PRIMARY_TOKEN")); |
270 |
pageContext.setAttribute("paramsName", paramsName); |
271 |
%> |
272 |
</td> |
273 |
</tr> |
274 |
|
275 |
<tr> |
276 |
<td width="10%"> </td> |
277 |
<td><bean:message key="content_payee_split_checkDigitForBillReferenceNo2"/>:</td> |
278 |
<td> |
279 |
<htmlEL:select styleId="splitRuleForBillRef2Req" property="splitRuleForBillRef2Req" name="contentForm" > |
280 |
<htmlEL:option value="1"><bean:message key="general.no"/></htmlEL:option> |
281 |
<htmlEL:option value="0"><bean:message key="general.yes"/></htmlEL:option> |
282 |
</htmlEL:select> |
283 |
|
284 |
|
285 |
<bean:define id="billRef2Ck2Oid" name="payeeBean" property="billRef2Ck2Oid" /> |
286 |
<% |
287 |
HashMap paramsName2 = new HashMap(); |
288 |
paramsName.put("whichOID", "6"); |
289 |
paramsName.put("SECONDARY_TOKEN", request.getSession().getAttribute("PRIMARY_TOKEN")); |
290 |
pageContext.setAttribute("paramsName2", paramsName2); |
291 |
%> |
292 |
</td> |
293 |
</tr> |
294 |
<tr> |
295 |
<td width="10%"> </td> |
296 |
<td><bean:message key="content_payee_conditional_function_checkDigitForBillRef2"/>:</td> |
297 |
<td> |
298 |
<htmlEL:select styleId="checkDigitConditionalFunctionForBillRef2" property="checkDigitConditionalFunctionForBillRef2" name="contentForm"> |
299 |
<htmlEL:option value="1"><bean:message key="general.or"/></htmlEL:option> |
300 |
<htmlEL:option value="0"><bean:message key="general.and"/></htmlEL:option> |
301 |
</htmlEL:select> |
302 |
</td> |
303 |
</tr> |
304 |
<tr> |
305 |
<td width="10%"> </td> |
306 |
<td><bean:message key="content_checkDigit_label_customProgramName"/>:</td> |
307 |
<td><htmlEL:text styleId="programNameForBillRef2" property="programNameForBillRef2" disabled="disabled" name="contentForm" maxlength="100" autocomplete="off"/> |
308 |
<html:hidden styleId="field3NameTemp" name="contentForm" property="field3NameTemp"/> |
309 |
</td> |
310 |
</tr> |
311 |
<tr><td colspan="3"> </td></tr> |
312 |
</table> |
313 |
</c:when> |
314 |
</c:choose> |
315 |
|
316 |
|
317 |
<div class="floatRight"> |
318 |
<htmlEL:submit property="action" styleClass="button floatRight" onclick="overlay();"> |
319 |
<bean:message key="general.button.update"/> |
320 |
</htmlEL:submit> |
321 |
</htmlEL:form> |
322 |
</div> |
323 |
|
324 |
<div class="floatRight"> |
325 |
<htmlEL:form action="/ss105/checkDigitPrerequisiteDetails.do"> |
326 |
<htmlEL:cancel property="action" styleClass="button floatRight" onclick="overlay();"> |
327 |
<bean:message key="general.button.back"/> |
328 |
</htmlEL:cancel> |
329 |
</htmlEL:form> |
330 |
</div> |
331 |
|
332 |
|
333 |
|
334 |
|
335 |
|