|
|
@ -181,7 +181,7 @@ $(document).ready(function(){
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//그룹핑 요청 정보 추출
|
|
|
|
$P.getGroupInfoList = () => {
|
|
|
|
$P.getGroupInfoList = () => {
|
|
|
|
var groupInfoLiost = [];
|
|
|
|
var groupInfoLiost = [];
|
|
|
|
|
|
|
|
|
|
|
@ -228,6 +228,7 @@ $(document).ready(function(){
|
|
|
|
return groupInfoLiost;
|
|
|
|
return groupInfoLiost;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//수치값 요청 정보 추출
|
|
|
|
$P.getNumberValueInfoList = () => {
|
|
|
|
$P.getNumberValueInfoList = () => {
|
|
|
|
var numberValuefoLiost = [];
|
|
|
|
var numberValuefoLiost = [];
|
|
|
|
|
|
|
|
|
|
|
@ -243,18 +244,70 @@ $(document).ready(function(){
|
|
|
|
return numberValuefoLiost;
|
|
|
|
return numberValuefoLiost;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//코드서브셋 요청 정보 추출
|
|
|
|
$P.getCodeSubsetInfoList = () => {
|
|
|
|
$P.getCodeSubsetInfoList = () => {
|
|
|
|
var codeSubsetInfoList = [];
|
|
|
|
var codeSubsetInfoList = [];
|
|
|
|
|
|
|
|
|
|
|
|
var preset = $("#preset--${pageName}").find(":selected");
|
|
|
|
var groupLevel1subset = $P.getCodeSubsetInfo("groupLevel1--${pageName}");
|
|
|
|
|
|
|
|
var groupLevel2subset = $P.getCodeSubsetInfo("groupLevel2--${pageName}");
|
|
|
|
|
|
|
|
var groupLevel3subset = $P.getCodeSubsetInfo("groupLevel3--${pageName}");
|
|
|
|
|
|
|
|
var groupLevel4subset = $P.getCodeSubsetInfo("groupLevel4--${pageName}");
|
|
|
|
|
|
|
|
var subsetForGroup = [];
|
|
|
|
|
|
|
|
subsetForGroup = subsetForGroup.concat(groupLevel1subset);
|
|
|
|
|
|
|
|
if($("#groupLevel2--${pageName}").val() != ""){
|
|
|
|
|
|
|
|
subsetForGroup = subsetForGroup.concat(groupLevel2subset);
|
|
|
|
|
|
|
|
if($("#groupLevel3--${pageName}").val() != ""){
|
|
|
|
|
|
|
|
subsetForGroup = subsetForGroup.concat(groupLevel3subset);
|
|
|
|
|
|
|
|
if($("#groupLevel4--${pageName}").val() != ""){
|
|
|
|
|
|
|
|
subsetForGroup = subsetForGroup.concat(groupLevel4subset);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var subsetForPreset = $P.getCodeSubsetInfo("preset--${pageName}");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
codeSubsetInfoList = subsetForGroup.concat(subsetForPreset);
|
|
|
|
|
|
|
|
|
|
|
|
if(window[preset.val()+"_codeSubsetInfoList"] != undefined){
|
|
|
|
if(codeSubsetInfoList.length > 1){
|
|
|
|
codeSubsetInfoList = window[preset.val()+"_codeSubsetInfoList"];
|
|
|
|
codeSubsetInfoList = $P.subsetDeduplication(codeSubsetInfoList);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
return codeSubsetInfoList;
|
|
|
|
return codeSubsetInfoList;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//특정 요소의 코드서브셋 정보 추출
|
|
|
|
|
|
|
|
$P.getCodeSubsetInfo = (elementId) => {
|
|
|
|
|
|
|
|
var result = [];
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var selected = $("#"+elementId).find(":selected");
|
|
|
|
|
|
|
|
if(window[selected.val()+"_codeSubsetInfoList"] != undefined){
|
|
|
|
|
|
|
|
result = window[selected.val()+"_codeSubsetInfoList"];
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
return result;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//중복 서브셋정보 제거
|
|
|
|
|
|
|
|
$P.subsetDeduplication = (arr) => {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var resultArr = [];
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var iterator = arr.values();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
for(var element of iterator) {
|
|
|
|
|
|
|
|
var testFunc = function(resultElement){
|
|
|
|
|
|
|
|
return (resultElement.sourceGroup == element.sourceGroup && resultElement.targetCode == element.targetCode);
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
var testResult = resultArr.findIndex(testFunc);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(testResult == -1){
|
|
|
|
|
|
|
|
resultArr.push(element);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return resultArr;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//그리드 모양 변경
|
|
|
|
$P.changeGrid = () => {
|
|
|
|
$P.changeGrid = () => {
|
|
|
|
|
|
|
|
|
|
|
|
$("#masterThead--${pageName}").html("");
|
|
|
|
$("#masterThead--${pageName}").html("");
|
|
|
@ -289,6 +342,7 @@ $(document).ready(function(){
|
|
|
|
$("#masterThead--${pageName}").append("<th class='cmn dummy-th'></th>");
|
|
|
|
$("#masterThead--${pageName}").append("<th class='cmn dummy-th'></th>");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//상세 그리드 표시
|
|
|
|
$P.showDetailGrid = () => {
|
|
|
|
$P.showDetailGrid = () => {
|
|
|
|
if($("#refListYn--${pageName}").val() == "Y"){
|
|
|
|
if($("#refListYn--${pageName}").val() == "Y"){
|
|
|
|
$("#detailArea--${pageName}").removeAttr("hidden");
|
|
|
|
$("#detailArea--${pageName}").removeAttr("hidden");
|
|
|
@ -297,6 +351,7 @@ $(document).ready(function(){
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//통계 검색
|
|
|
|
$P.searchStat = () => {
|
|
|
|
$P.searchStat = () => {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -360,6 +415,7 @@ $(document).ready(function(){
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//통계 그리드 렌더링
|
|
|
|
$P.renderStat = (stat) => {
|
|
|
|
$P.renderStat = (stat) => {
|
|
|
|
$("#masterTbody--${pageName}").html("");
|
|
|
|
$("#masterTbody--${pageName}").html("");
|
|
|
|
|
|
|
|
|
|
|
@ -417,7 +473,10 @@ $(document).ready(function(){
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
initDatepicker("frmSearch--${pageName}"); //달력 초기화
|
|
|
|
initDatepicker("frmSearch--${pageName}"); //달력 초기화
|
|
|
|
|
|
|
|
$("#firstDay--${pageName}").datepicker('setDate', new Date());
|
|
|
|
|
|
|
|
$("#lastDay--${pageName}").datepicker('setDate', new Date());
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$("#dayColumn--${pageName}").append(document.getElementById("dayColumnDatalist--${pageName}").innerHTML);
|
|
|
|
$("#dayColumn--${pageName}").append(document.getElementById("dayColumnDatalist--${pageName}").innerHTML);
|
|
|
|
|
|
|
|
|
|
|
|
$("#searchForMenu--${pageName}").append(document.getElementById("searchForMenuTemplate--${pageName}").innerHTML);
|
|
|
|
$("#searchForMenu--${pageName}").append(document.getElementById("searchForMenuTemplate--${pageName}").innerHTML);
|
|
|
|