|
|
|
@ -225,7 +225,7 @@ $(document).ready(function(){
|
|
|
|
|
|
|
|
|
|
var $P = pageObject["${pageName}"];
|
|
|
|
|
|
|
|
|
|
$P.otptStngMap = {};
|
|
|
|
|
$P.otptArtclStngMap = {};
|
|
|
|
|
|
|
|
|
|
$("#btnSave--${pageName}").attr("disabled","disabled");
|
|
|
|
|
$("#btnUniqueAdd--${pageName}").attr("disabled","disabled");
|
|
|
|
@ -255,14 +255,14 @@ $(document).ready(function(){
|
|
|
|
|
$("#frmEdit--${pageName}").find("[name='paperSeCd']").val(query.paperSeCd);
|
|
|
|
|
|
|
|
|
|
$("#currentOtpt--${pageName}").text(resp.otptStngTitle);
|
|
|
|
|
$P.otptStngMap = resp.otptStngMap;
|
|
|
|
|
$P.otptArtclStngMap = resp.otptArtclStngMap;
|
|
|
|
|
|
|
|
|
|
$P.renderOtptStngGrid("tbodyUnique--${pageName}",
|
|
|
|
|
$P.otptStngMap.unique.prototypeList,
|
|
|
|
|
$P.otptStngMap.unique.dataList);
|
|
|
|
|
$P.otptArtclStngMap.unique.prototypeList,
|
|
|
|
|
$P.otptArtclStngMap.unique.dataList);
|
|
|
|
|
$P.renderOtptStngGrid("tbodyMultiple--${pageName}",
|
|
|
|
|
$P.otptStngMap.multiple.prototypeList,
|
|
|
|
|
$P.otptStngMap.multiple.dataList);
|
|
|
|
|
$P.otptArtclStngMap.multiple.prototypeList,
|
|
|
|
|
$P.otptArtclStngMap.multiple.dataList);
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
@ -371,7 +371,7 @@ $(document).ready(function(){
|
|
|
|
|
$P.choiceOtptArtclNm = () => {
|
|
|
|
|
$("#dropdownUniqueAdd--${pageName}").html("");
|
|
|
|
|
|
|
|
|
|
var prototypeList = $P.otptStngMap.unique.prototypeList;
|
|
|
|
|
var prototypeList = $P.otptArtclStngMap.unique.prototypeList;
|
|
|
|
|
var existArr = [];
|
|
|
|
|
|
|
|
|
|
$("#tbodyUnique--sprt01200-main tr").each(function(){
|
|
|
|
@ -405,10 +405,10 @@ $(document).ready(function(){
|
|
|
|
|
var tbodyId;
|
|
|
|
|
|
|
|
|
|
if(otptArtclNm == null || otptArtclNm == ""){
|
|
|
|
|
prototypeList = $P.otptStngMap.multiple.prototypeList;
|
|
|
|
|
prototypeList = $P.otptArtclStngMap.multiple.prototypeList;
|
|
|
|
|
tbodyId = "tbodyMultiple--${pageName}";
|
|
|
|
|
} else {
|
|
|
|
|
prototypeList = $P.otptStngMap.unique.prototypeList;
|
|
|
|
|
prototypeList = $P.otptArtclStngMap.unique.prototypeList;
|
|
|
|
|
tbodyId = "tbodyUnique--${pageName}";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -512,7 +512,7 @@ $(document).ready(function(){
|
|
|
|
|
|
|
|
|
|
var otptArtclNm = $(selectElement).val();
|
|
|
|
|
var tr = $(selectElement).parent().parent()[0];
|
|
|
|
|
var prototypeList = $P.otptStngMap.multiple.prototypeList;
|
|
|
|
|
var prototypeList = $P.otptArtclStngMap.multiple.prototypeList;
|
|
|
|
|
|
|
|
|
|
$($P.fnGetElement(tr,"componentType"))
|
|
|
|
|
.val($P.fnGetProto(prototypeList, otptArtclNm, "componentType"));
|
|
|
|
|