|
|
@ -35,7 +35,7 @@
|
|
|
|
<tbody id="groupList">
|
|
|
|
<tbody id="groupList">
|
|
|
|
</tbody>
|
|
|
|
</tbody>
|
|
|
|
<template id="groupRow">
|
|
|
|
<template id="groupRow">
|
|
|
|
<tr data-key="{GRP_ID}">
|
|
|
|
<tr data-key="{GRP_ID}"{notUsed}>
|
|
|
|
<td style="text-align:center;"><input value="{GRP_ID}" onchange="codeControl.groups.select('{GRP_ID}', this.checked);" type="checkbox" class="form-check-input"></td>
|
|
|
|
<td style="text-align:center;"><input value="{GRP_ID}" onchange="codeControl.groups.select('{GRP_ID}', this.checked);" type="checkbox" class="form-check-input"></td>
|
|
|
|
<td onclick="codeControl.groups.setCurrent('{GRP_ID}')" ondblclick="codeControl.groups.getInfo({})">{GRP_ID}</td>
|
|
|
|
<td onclick="codeControl.groups.setCurrent('{GRP_ID}')" ondblclick="codeControl.groups.getInfo({})">{GRP_ID}</td>
|
|
|
|
<td onclick="codeControl.groups.setCurrent('{GRP_ID}')" ondblclick="codeControl.groups.getInfo({})">{GRP_NM}</td>
|
|
|
|
<td onclick="codeControl.groups.setCurrent('{GRP_ID}')" ondblclick="codeControl.groups.getInfo({})">{GRP_NM}</td>
|
|
|
@ -73,7 +73,7 @@
|
|
|
|
<tbody id="codeList">
|
|
|
|
<tbody id="codeList">
|
|
|
|
</tbody>
|
|
|
|
</tbody>
|
|
|
|
<template id="codeRow">
|
|
|
|
<template id="codeRow">
|
|
|
|
<tr data-key="{CODE}">
|
|
|
|
<tr data-key="{CODE}"{notUsed}>
|
|
|
|
<td style="text-align:center;"><input value="{CODE}" onchange="codeControl.codes.select('{CODE}', this.checked);" type="checkbox" class="form-check-input"></td>
|
|
|
|
<td style="text-align:center;"><input value="{CODE}" onchange="codeControl.codes.select('{CODE}', this.checked);" type="checkbox" class="form-check-input"></td>
|
|
|
|
<td onclick="codeControl.codes.setCurrent('{CODE}')" ondblclick="codeControl.codes.getInfo({})">{CODE}</td>
|
|
|
|
<td onclick="codeControl.codes.setCurrent('{CODE}')" ondblclick="codeControl.codes.getInfo({})">{CODE}</td>
|
|
|
|
<td onclick="codeControl.codes.setCurrent('{CODE}')" ondblclick="codeControl.codes.getInfo({})">{CODE_VAL}</td>
|
|
|
|
<td onclick="codeControl.codes.setCurrent('{CODE}')" ondblclick="codeControl.codes.getInfo({})">{CODE_VAL}</td>
|
|
|
@ -131,7 +131,10 @@ function renderGroupList() {
|
|
|
|
|
|
|
|
|
|
|
|
let trs = empty ?
|
|
|
|
let trs = empty ?
|
|
|
|
[document.getElementById("groupNotFound").innerHTML] : <%-- from template#groupNotFound --%>
|
|
|
|
[document.getElementById("groupNotFound").innerHTML] : <%-- from template#groupNotFound --%>
|
|
|
|
groupList.inStrings(document.getElementById("groupRow").innerHTML); <%-- from template#groupRow --%>
|
|
|
|
groupList.inStrings(
|
|
|
|
|
|
|
|
document.getElementById("groupRow").innerHTML,
|
|
|
|
|
|
|
|
(tmpl, item) => tmpl.replace(/{notUsed}/gi, item.getValue("USE_YN") == "N" ? "class=\"not-used\"" : "")
|
|
|
|
|
|
|
|
); <%-- from template#groupRow --%>
|
|
|
|
$("#groupList").html(trs.join());
|
|
|
|
$("#groupList").html(trs.join());
|
|
|
|
$("th input[type='checkbox']").prop("checked", false);
|
|
|
|
$("th input[type='checkbox']").prop("checked", false);
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -174,7 +177,10 @@ function renderCodeList() {
|
|
|
|
|
|
|
|
|
|
|
|
let trs = empty ?
|
|
|
|
let trs = empty ?
|
|
|
|
[document.getElementById("codeNotFound").innerHTML] : <%-- from template#groupNotFound --%>
|
|
|
|
[document.getElementById("codeNotFound").innerHTML] : <%-- from template#groupNotFound --%>
|
|
|
|
codeList.inStrings(document.getElementById("codeRow").innerHTML); <%-- from template#groupRow --%>
|
|
|
|
codeList.inStrings(
|
|
|
|
|
|
|
|
document.getElementById("codeRow").innerHTML,
|
|
|
|
|
|
|
|
(tmpl, item) => tmpl.replace(/{notUsed}/gi, item.getValue("USE_YN") == "N" ? "class=\"not-used\"" : "")
|
|
|
|
|
|
|
|
); <%-- from template#groupRow --%>
|
|
|
|
$("#codeList").html(trs.join());
|
|
|
|
$("#codeList").html(trs.join());
|
|
|
|
$("#codeToggler").prop("checked", false);
|
|
|
|
$("#codeToggler").prop("checked", false);
|
|
|
|
}
|
|
|
|
}
|
|
|
|