|
|
|
@ -125,9 +125,9 @@
|
|
|
|
|
</thead>
|
|
|
|
|
<tbody name="vltnTbody"></tbody>
|
|
|
|
|
<template is="curly-brackets" name="vltnRow">
|
|
|
|
|
<tr data-key="VLTN_CASE_ID">
|
|
|
|
|
<tr data-index="DATA-INDEX">
|
|
|
|
|
<td class="text-center min-w-px-50 mw-px-50">
|
|
|
|
|
<input type="radio" name="levyRadio" value="VLTN_CASE_ID"
|
|
|
|
|
<input type="radio" name="levyRadio" value="DATA-INDEX"
|
|
|
|
|
onchange />
|
|
|
|
|
</td>
|
|
|
|
|
<td onclick class="text-center">VLTN_CASE_NM</td>
|
|
|
|
@ -155,9 +155,9 @@
|
|
|
|
|
</thead>
|
|
|
|
|
<tbody name="warningTbody"></tbody>
|
|
|
|
|
<template is="curly-brackets" name="warningRow">
|
|
|
|
|
<tr data-key="LEVY_EXCL_RSN_CD">
|
|
|
|
|
<tr data-index="DATA-INDEX">
|
|
|
|
|
<td class="text-center min-w-px-50 mw-px-50">
|
|
|
|
|
<input type="radio" name="warningRadio" value="LEVY_EXCL_RSN_CD"
|
|
|
|
|
<input type="radio" name="warningRadio" value="DATA-INDEX"
|
|
|
|
|
onchange />
|
|
|
|
|
</td>
|
|
|
|
|
<td onclick class="text-center">LEVY_EXCL_RSN_NM</td>
|
|
|
|
@ -186,9 +186,9 @@
|
|
|
|
|
</thead>
|
|
|
|
|
<tbody name="nonlevyTbody"></tbody>
|
|
|
|
|
<template is="curly-brackets" name="nonlevyRow">
|
|
|
|
|
<tr data-key="LEVY_EXCL_RSN_CD">
|
|
|
|
|
<tr data-index="DATA-INDEX">
|
|
|
|
|
<td class="text-center min-w-px-50 mw-px-50">
|
|
|
|
|
<input type="radio" name="nonlevyRadio" value="LEVY_EXCL_RSN_CD"
|
|
|
|
|
<input type="radio" name="nonlevyRadio" value="DATA-INDEX"
|
|
|
|
|
onchange />
|
|
|
|
|
</td>
|
|
|
|
|
<td onclick class="text-center">LEVY_EXCL_RSN_NM</td>
|
|
|
|
@ -372,16 +372,16 @@ $(document).ready(function(){
|
|
|
|
|
$P.renderAnsBodyList(resp.nonlevyCaseList.length,'nonlevy');
|
|
|
|
|
|
|
|
|
|
if(resp.levyCaseList.length > 0){
|
|
|
|
|
var current = ctrl.levy.getCurrent()["VLTN_CASE_ID"];
|
|
|
|
|
$P.clickAnsBodyList(current,'levy');
|
|
|
|
|
var current = ctrl.levy.getCurrent("item");
|
|
|
|
|
$P.clickAnsBodyList(current.index,'levy');
|
|
|
|
|
}
|
|
|
|
|
if(resp.warningCaseList.length > 0){
|
|
|
|
|
var current = ctrl.warning.getCurrent()["LEVY_EXCL_RSN_CD"];
|
|
|
|
|
$P.clickAnsBodyList(current,'warning');
|
|
|
|
|
var current = ctrl.warning.getCurrent("item");
|
|
|
|
|
$P.clickAnsBodyList(current.index,'warning');
|
|
|
|
|
}
|
|
|
|
|
if(resp.nonlevyCaseList.length > 0){
|
|
|
|
|
var current = ctrl.nonlevy.getCurrent()["LEVY_EXCL_RSN_CD"];
|
|
|
|
|
$P.clickAnsBodyList(current,'nonlevy');
|
|
|
|
|
var current = ctrl.nonlevy.getCurrent("item");
|
|
|
|
|
$P.clickAnsBodyList(current.index,'nonlevy');
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
@ -416,25 +416,25 @@ $(document).ready(function(){
|
|
|
|
|
var replacer = () => {};
|
|
|
|
|
if(renderDataType == "levy"){
|
|
|
|
|
replacer = (str, dataItem) => str
|
|
|
|
|
.replace(/{onclick}/gi, "pageObject['${pageName}'].clickAnsBodyList('" + dataItem.getValue("VLTN_CASE_ID") + "','levy');")
|
|
|
|
|
.replace(/{onchange}/gi, "pageObject['${pageName}'].radioClickAnsBodyList('" + dataItem.getValue("VLTN_CASE_ID") + "','levy');");
|
|
|
|
|
.replace(/{onclick}/gi, "pageObject['${pageName}'].clickAnsBodyList('{DATA-INDEX}','levy');")
|
|
|
|
|
.replace(/{onchange}/gi, "pageObject['${pageName}'].radioClickAnsBodyList('{DATA-INDEX}','levy');");
|
|
|
|
|
} else if(renderDataType == "warning"){
|
|
|
|
|
replacer = (str, dataItem) => str
|
|
|
|
|
.replace(/{onclick}/gi, "pageObject['${pageName}'].clickAnsBodyList('" + dataItem.getValue("LEVY_EXCL_RSN_CD") + "','warning');")
|
|
|
|
|
.replace(/{onchange}/gi, "pageObject['${pageName}'].radioClickAnsBodyList('" + dataItem.getValue("LEVY_EXCL_RSN_CD") + "','warning');");
|
|
|
|
|
.replace(/{onclick}/gi, "pageObject['${pageName}'].clickAnsBodyList('{DATA-INDEX}','warning');")
|
|
|
|
|
.replace(/{onchange}/gi, "pageObject['${pageName}'].radioClickAnsBodyList('{DATA-INDEX}','warning');");
|
|
|
|
|
} else if(renderDataType == "nonlevy"){
|
|
|
|
|
replacer = (str, dataItem) => str
|
|
|
|
|
.replace(/{onclick}/gi, "pageObject['${pageName}'].clickAnsBodyList('" + dataItem.getValue("LEVY_EXCL_RSN_CD") + "','nonlevy');")
|
|
|
|
|
.replace(/{onchange}/gi, "pageObject['${pageName}'].radioClickAnsBodyList('" + dataItem.getValue("LEVY_EXCL_RSN_CD") + "','nonlevy');");
|
|
|
|
|
.replace(/{onclick}/gi, "pageObject['${pageName}'].clickAnsBodyList('{DATA-INDEX}','nonlevy');")
|
|
|
|
|
.replace(/{onchange}/gi, "pageObject['${pageName}'].radioClickAnsBodyList('{DATA-INDEX}','nonlevy');");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
var trs = empty ? notFound : ansBodyDS.inStrings(found, replacer);
|
|
|
|
|
$P.$findn(tbodyName).html(trs.join());
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$P.radioClickAnsBodyList = (dataKey, gridType) => {
|
|
|
|
|
$P.radioClickAnsBodyList = (dataIndex, gridType) => {
|
|
|
|
|
|
|
|
|
|
ctrl[gridType].setCurrent(dataKey);
|
|
|
|
|
ctrl[gridType].setCurrent(dataIndex);
|
|
|
|
|
|
|
|
|
|
var tbodyName = "";
|
|
|
|
|
if(gridType == "levy"){
|
|
|
|
@ -446,7 +446,7 @@ $(document).ready(function(){
|
|
|
|
|
} else {
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
$P.$findn(tbodyName).setCurrentRow(dataKey);
|
|
|
|
|
$P.$findn(tbodyName).setCurrentRow(dataIndex);
|
|
|
|
|
|
|
|
|
|
if(gridType == "levy" && $P.currentDisplay == "levyAnsBody"){
|
|
|
|
|
$P.changeAnsBodyText();
|
|
|
|
@ -457,7 +457,7 @@ $(document).ready(function(){
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$P.clickAnsBodyList = (dataKey, gridType) => {
|
|
|
|
|
$P.clickAnsBodyList = (dataIndex, gridType) => {
|
|
|
|
|
var radioName = "";
|
|
|
|
|
if(gridType == "levy"){
|
|
|
|
|
radioName = "levyRadio";
|
|
|
|
@ -469,17 +469,17 @@ $(document).ready(function(){
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$P.$findn("wrapper").find(":radio[name='"+radioName+"'][value='"+dataKey+"']").prop("checked",true);
|
|
|
|
|
$P.$findn("wrapper").find(":radio[name='"+radioName+"'][value='"+dataIndex+"']").prop("checked",true);
|
|
|
|
|
|
|
|
|
|
if(gridType == "levy" && $P.currentDisplay == "levyAnsBody"){
|
|
|
|
|
$P.$findn("wrapper").find(":radio[name='"+radioName+"'][value='"+dataKey+"']").focus();
|
|
|
|
|
$P.$findn("wrapper").find(":radio[name='"+radioName+"'][value='"+dataIndex+"']").focus();
|
|
|
|
|
} else if(gridType == "warning" && $P.currentDisplay == "warningAnsBody"){
|
|
|
|
|
$P.$findn("wrapper").find(":radio[name='"+radioName+"'][value='"+dataKey+"']").focus();
|
|
|
|
|
$P.$findn("wrapper").find(":radio[name='"+radioName+"'][value='"+dataIndex+"']").focus();
|
|
|
|
|
} else if(gridType == "nonlevy" && $P.currentDisplay == "nonlevyAnsBody"){
|
|
|
|
|
$P.$findn("wrapper").find(":radio[name='"+radioName+"'][value='"+dataKey+"']").focus();
|
|
|
|
|
$P.$findn("wrapper").find(":radio[name='"+radioName+"'][value='"+dataIndex+"']").focus();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$P.radioClickAnsBodyList(dataKey, gridType);
|
|
|
|
|
$P.radioClickAnsBodyList(dataIndex, gridType);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$P.changeAnsBodyText = () => {
|
|
|
|
@ -530,9 +530,9 @@ $(document).ready(function(){
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$P.refreshAnsWordsInfo = () => {
|
|
|
|
|
var cursor1 = ctrl.levy.getCurrent()["VLTN_CASE_ID"];
|
|
|
|
|
var cursor2 = ctrl.warning.getCurrent()["LEVY_EXCL_RSN_CD"];
|
|
|
|
|
var cursor3 = ctrl.nonlevy.getCurrent()["LEVY_EXCL_RSN_CD"];
|
|
|
|
|
var cursor1 = ctrl.levy.getCurrent("item").index;
|
|
|
|
|
var cursor2 = ctrl.warning.getCurrent("item").index;
|
|
|
|
|
var cursor3 = ctrl.nonlevy.getCurrent("item").index;
|
|
|
|
|
|
|
|
|
|
var taskSeCd = $P.$findn("frmSearch").find("input[name='taskSeCd']:checked").val();
|
|
|
|
|
|
|
|
|
@ -554,18 +554,18 @@ $(document).ready(function(){
|
|
|
|
|
|
|
|
|
|
if(resp.levyCaseList.length > 0){
|
|
|
|
|
ctrl.levy.setCurrent(cursor1);
|
|
|
|
|
var current = ctrl.levy.getCurrent()["VLTN_CASE_ID"];
|
|
|
|
|
$P.clickAnsBodyList(current,'levy');
|
|
|
|
|
var current = ctrl.levy.getCurrent("item");
|
|
|
|
|
$P.clickAnsBodyList(current.index,'levy');
|
|
|
|
|
}
|
|
|
|
|
if(resp.warningCaseList.length > 0){
|
|
|
|
|
ctrl.warning.setCurrent(cursor2);
|
|
|
|
|
var current = ctrl.warning.getCurrent()["LEVY_EXCL_RSN_CD"];
|
|
|
|
|
$P.clickAnsBodyList(current,'warning');
|
|
|
|
|
var current = ctrl.warning.getCurrent("item");
|
|
|
|
|
$P.clickAnsBodyList(current.index,'warning');
|
|
|
|
|
}
|
|
|
|
|
if(resp.nonlevyCaseList.length > 0){
|
|
|
|
|
ctrl.nonlevy.setCurrent(cursor3);
|
|
|
|
|
var current = ctrl.nonlevy.getCurrent()["LEVY_EXCL_RSN_CD"];
|
|
|
|
|
$P.clickAnsBodyList(current,'nonlevy');
|
|
|
|
|
var current = ctrl.nonlevy.getCurrent("item");
|
|
|
|
|
$P.clickAnsBodyList(current.index,'nonlevy');
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|