|
|
@ -43,17 +43,10 @@ var FIM006 = new CommonCodes(${FIM006}, true);
|
|
|
|
var FIM061 = new CommonCodes(${FIM061}, true);
|
|
|
|
var FIM061 = new CommonCodes(${FIM061}, true);
|
|
|
|
var FIM064 = new CommonCodes(${FIM064}, true);
|
|
|
|
var FIM064 = new CommonCodes(${FIM064}, true);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
pageObject["${pageName}"] = {};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$(document).ready(function() {
|
|
|
|
|
|
|
|
var $P = pageObject["${pageName}"];
|
|
|
|
|
|
|
|
$P.integrationSearch = {};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**************************************************************************
|
|
|
|
/**************************************************************************
|
|
|
|
* DatasetControl
|
|
|
|
* DatasetControl
|
|
|
|
**************************************************************************/
|
|
|
|
**************************************************************************/
|
|
|
|
$P.integrationSearchControl = new IntegrationSearchControl({
|
|
|
|
var integrationSearchControl = new IntegrationSearchControl({
|
|
|
|
prefix : "integrationSearch", prefixName : "통합조회"
|
|
|
|
prefix : "integrationSearch", prefixName : "통합조회"
|
|
|
|
, infoSize : "lg"
|
|
|
|
, infoSize : "lg"
|
|
|
|
, appendData : false
|
|
|
|
, appendData : false
|
|
|
@ -91,38 +84,37 @@ $(document).ready(function() {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**************************************************************************
|
|
|
|
/**************************************************************************
|
|
|
|
* DatasetControl 이벤트
|
|
|
|
* DatasetControl 이벤트
|
|
|
|
**************************************************************************/
|
|
|
|
**************************************************************************/
|
|
|
|
// Dataset 변경 이벤트
|
|
|
|
// Dataset 변경 이벤트
|
|
|
|
$P.integrationSearchControl.updataset.onDatasetChange = (obj) => {
|
|
|
|
integrationSearchControl.updataset.onDatasetChange = (obj) => {
|
|
|
|
var upActiveTab = $("#upGridTabs--${pageName}").find("button.active").text().trim();
|
|
|
|
var upActiveTab = $("#upGridTabs--${pageName}").find("button.active").text().trim();
|
|
|
|
$P.renderList("up", upActiveTab);
|
|
|
|
integrationSearch.renderList("up", upActiveTab);
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
$P.integrationSearchControl.downdataset.onDatasetChange = (obj) => {
|
|
|
|
integrationSearchControl.downdataset.onDatasetChange = (obj) => {
|
|
|
|
var downActiveTab = $("#downGridTabs--${pageName}").find("button.active").text().trim();
|
|
|
|
var downActiveTab = $("#downGridTabs--${pageName}").find("button.active").text().trim();
|
|
|
|
$P.renderList("down", downActiveTab);
|
|
|
|
integrationSearch.renderList("down", downActiveTab);
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
// 현재 선택 자료 변경 이벤트
|
|
|
|
// 현재 선택 자료 변경 이벤트
|
|
|
|
$P.integrationSearchControl.updataset.onCurrentChange = (item) => {
|
|
|
|
integrationSearchControl.updataset.onCurrentChange = (item) => {
|
|
|
|
if (!item) return;
|
|
|
|
if (!item) return;
|
|
|
|
var key = item.data.CRDN_ID;
|
|
|
|
var key = item.data.CRDN_ID;
|
|
|
|
$("#upTbody--${pageName}").setCurrentRow(key);
|
|
|
|
$("#upTbody--${pageName}").setCurrentRow(key);
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
$P.integrationSearchControl.downdataset.onCurrentChange = (item) => {
|
|
|
|
integrationSearchControl.downdataset.onCurrentChange = (item) => {
|
|
|
|
if (!item) return;
|
|
|
|
if (!item) return;
|
|
|
|
var key = item.data.CRDN_ID;
|
|
|
|
var key = item.data.CRDN_ID;
|
|
|
|
$("#downTbody--${pageName}").setCurrentRow(key);
|
|
|
|
$("#downTbody--${pageName}").setCurrentRow(key);
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
// 선택(체크) 변경 이벤트
|
|
|
|
// 선택(체크) 변경 이벤트
|
|
|
|
$P.integrationSearchControl.updataset.onSelectionChange = (selected) => {
|
|
|
|
integrationSearchControl.updataset.onSelectionChange = (selected) => {
|
|
|
|
|
|
|
|
|
|
|
|
var ds = $P.integrationSearchControl.updataset;
|
|
|
|
var ds = integrationSearchControl.updataset;
|
|
|
|
var keys = selected.map(e => ds.getKey(e));
|
|
|
|
var keys = selected.map(e => ds.getKey(e));
|
|
|
|
|
|
|
|
|
|
|
|
$("#upTbody--${pageName}").find("input[type='checkbox']").each(function() {
|
|
|
|
$("#upTbody--${pageName}").find("input[type='checkbox']").each(function() {
|
|
|
@ -132,9 +124,9 @@ $(document).ready(function() {
|
|
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
$P.integrationSearchControl.downdataset.onSelectionChange = (selected) => {
|
|
|
|
integrationSearchControl.downdataset.onSelectionChange = (selected) => {
|
|
|
|
|
|
|
|
|
|
|
|
var ds = $P.integrationSearchControl.downdataset;
|
|
|
|
var ds = integrationSearchControl.downdataset;
|
|
|
|
var keys = selected.map(e => ds.getKey(e));
|
|
|
|
var keys = selected.map(e => ds.getKey(e));
|
|
|
|
|
|
|
|
|
|
|
|
$("#downTbody--${pageName}").find("input[type='checkbox']").each(function() {
|
|
|
|
$("#downTbody--${pageName}").find("input[type='checkbox']").each(function() {
|
|
|
@ -145,9 +137,14 @@ $(document).ready(function() {
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$P.fastSearch = ${fastSearch};
|
|
|
|
/**************************************************************************
|
|
|
|
|
|
|
|
*
|
|
|
|
|
|
|
|
**************************************************************************/
|
|
|
|
|
|
|
|
var integrationSearch = {};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
integrationSearch.fastSearch = ${fastSearch};
|
|
|
|
|
|
|
|
|
|
|
|
$P.toast = new bootstrap.Toast(document.getElementById('divToast--${pageName}'), {
|
|
|
|
integrationSearch.toast = new bootstrap.Toast(document.getElementById('divToast--${pageName}'), {
|
|
|
|
animation: true,
|
|
|
|
animation: true,
|
|
|
|
autohide: true,
|
|
|
|
autohide: true,
|
|
|
|
delay: 2000
|
|
|
|
delay: 2000
|
|
|
@ -155,7 +152,7 @@ $(document).ready(function() {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 검색 조건 파라미터 가져오기
|
|
|
|
// 검색 조건 파라미터 가져오기
|
|
|
|
$P.getParams = () => {
|
|
|
|
integrationSearch.getParams = () => {
|
|
|
|
var formFields = new FimsFormFields("#frmSearch--${pageName}");
|
|
|
|
var formFields = new FimsFormFields("#frmSearch--${pageName}");
|
|
|
|
var formData = formFields.get();
|
|
|
|
var formData = formFields.get();
|
|
|
|
|
|
|
|
|
|
|
@ -163,7 +160,7 @@ $(document).ready(function() {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// 초기화
|
|
|
|
// 초기화
|
|
|
|
$P.fnResetAndChangeBiz = (taskSeCd) => {
|
|
|
|
integrationSearch.fnResetAndChangeBiz = (taskSeCd) => {
|
|
|
|
|
|
|
|
|
|
|
|
// 항목 초기화
|
|
|
|
// 항목 초기화
|
|
|
|
$("#ischVltnCd--${pageName}").empty();
|
|
|
|
$("#ischVltnCd--${pageName}").empty();
|
|
|
@ -191,23 +188,23 @@ $(document).ready(function() {
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
$P.fnReset();
|
|
|
|
integrationSearch.fnReset();
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
$P.fnReset = () => {
|
|
|
|
integrationSearch.fnReset = () => {
|
|
|
|
|
|
|
|
|
|
|
|
$P.integrationSearchControl.updataset.clear();
|
|
|
|
integrationSearchControl.updataset.clear();
|
|
|
|
$P.integrationSearchControl.downdataset.clear();
|
|
|
|
integrationSearchControl.downdataset.clear();
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// 검색
|
|
|
|
// 검색
|
|
|
|
$P.fnSearchList = () => {
|
|
|
|
integrationSearch.fnSearchList = () => {
|
|
|
|
// 검색조건
|
|
|
|
// 검색조건
|
|
|
|
$P.integrationSearchControl.query = $P.getParams();
|
|
|
|
integrationSearchControl.query = integrationSearch.getParams();
|
|
|
|
|
|
|
|
|
|
|
|
var query = $P.integrationSearchControl.query;
|
|
|
|
var query = integrationSearchControl.query;
|
|
|
|
var minKeyword = false;
|
|
|
|
var minKeyword = false;
|
|
|
|
var keys = Object.keys(query);
|
|
|
|
var keys = Object.keys(query);
|
|
|
|
for(var i=0; i < keys.length; i++){
|
|
|
|
for(var i=0; i < keys.length; i++){
|
|
|
@ -236,13 +233,13 @@ $(document).ready(function() {
|
|
|
|
$("#upGridTabs--${pageName}").find("button").eq(0).addClass("active");
|
|
|
|
$("#upGridTabs--${pageName}").find("button").eq(0).addClass("active");
|
|
|
|
$("#downGridTabs--${pageName}").find("button").not(":eq(0)").removeClass("active");
|
|
|
|
$("#downGridTabs--${pageName}").find("button").not(":eq(0)").removeClass("active");
|
|
|
|
$("#downGridTabs--${pageName}").find("button").eq(0).addClass("active");
|
|
|
|
$("#downGridTabs--${pageName}").find("button").eq(0).addClass("active");
|
|
|
|
$P.integrationSearchControl.updataset.clear();
|
|
|
|
integrationSearchControl.updataset.clear();
|
|
|
|
$P.integrationSearchControl.downdataset.clear();
|
|
|
|
integrationSearchControl.downdataset.clear();
|
|
|
|
|
|
|
|
|
|
|
|
$P.integrationSearchControl.load();
|
|
|
|
integrationSearchControl.load();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
$P.renderList = (updown, tabGroup) => {
|
|
|
|
integrationSearch.renderList = (updown, tabGroup) => {
|
|
|
|
|
|
|
|
|
|
|
|
var tbody = updown == "up" ? "upTbody--${pageName}" : "downTbody--${pageName}";
|
|
|
|
var tbody = updown == "up" ? "upTbody--${pageName}" : "downTbody--${pageName}";
|
|
|
|
var trs = "";
|
|
|
|
var trs = "";
|
|
|
@ -250,29 +247,29 @@ $(document).ready(function() {
|
|
|
|
var found = document.getElementById("row--${pageName}").innerHTML;
|
|
|
|
var found = document.getElementById("row--${pageName}").innerHTML;
|
|
|
|
var ds;
|
|
|
|
var ds;
|
|
|
|
if(updown == "up"){
|
|
|
|
if(updown == "up"){
|
|
|
|
ds = $P.integrationSearchControl.updataset;
|
|
|
|
ds = integrationSearchControl.updataset;
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
ds = $P.integrationSearchControl.downdataset;
|
|
|
|
ds = integrationSearchControl.downdataset;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
var replacer;
|
|
|
|
var replacer;
|
|
|
|
if(updown == "up"){
|
|
|
|
if(updown == "up"){
|
|
|
|
replacer = (str, dataItem) => str
|
|
|
|
replacer = (str, dataItem) => str
|
|
|
|
.replace(/{onclick}/gi, "pageObject['${pageName}'].integrationSearchControl.updataset.setCurrent('" + dataItem.getValue("CRDN_ID") + "');")
|
|
|
|
.replace(/{onclick}/gi, "integrationSearchControl.updataset.setCurrent('" + dataItem.getValue("CRDN_ID") + "');")
|
|
|
|
.replace(/{ondblclick}/gi, "pageObject['${pageName}'].getInfo('"+ dataItem.getValue("TASK_SE_CD") +"','" + dataItem.getValue("CRDN_ID") + "');")
|
|
|
|
.replace(/{ondblclick}/gi, "integrationSearch.getInfo('"+ dataItem.getValue("TASK_SE_CD") +"','" + dataItem.getValue("CRDN_ID") + "');")
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
replacer = (str, dataItem) => str
|
|
|
|
replacer = (str, dataItem) => str
|
|
|
|
.replace(/{onclick}/gi, "pageObject['${pageName}'].integrationSearchControl.downdataset.setCurrent('" + dataItem.getValue("CRDN_ID") + "');")
|
|
|
|
.replace(/{onclick}/gi, "integrationSearchControl.downdataset.setCurrent('" + dataItem.getValue("CRDN_ID") + "');")
|
|
|
|
.replace(/{ondblclick}/gi, "pageObject['${pageName}'].getInfo('"+ dataItem.getValue("TASK_SE_CD") +"','" + dataItem.getValue("CRDN_ID") + "');")
|
|
|
|
.replace(/{ondblclick}/gi, "integrationSearch.getInfo('"+ dataItem.getValue("TASK_SE_CD") +"','" + dataItem.getValue("CRDN_ID") + "');")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var empty = ds.empty;
|
|
|
|
var empty = ds.empty;
|
|
|
|
if(empty){
|
|
|
|
if(empty){
|
|
|
|
trs = notFound;
|
|
|
|
trs = notFound;
|
|
|
|
$P.setTotalData(updown, []);
|
|
|
|
integrationSearch.setTotalData(updown, []);
|
|
|
|
} else if(tabGroup == "전체"){
|
|
|
|
} else if(tabGroup == "전체"){
|
|
|
|
trs = ds.inStrings(found, replacer);
|
|
|
|
trs = ds.inStrings(found, replacer);
|
|
|
|
$P.setTotalData(updown, ds._items);
|
|
|
|
integrationSearch.setTotalData(updown, ds._items);
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
|
|
|
|
|
|
|
|
var temp = ds._items;
|
|
|
|
var temp = ds._items;
|
|
|
@ -281,7 +278,7 @@ $(document).ready(function() {
|
|
|
|
|
|
|
|
|
|
|
|
filtered = temp.filter(item => item.data.TAB_GROUP == tabGroup);
|
|
|
|
filtered = temp.filter(item => item.data.TAB_GROUP == tabGroup);
|
|
|
|
|
|
|
|
|
|
|
|
$P.setTotalData(updown, filtered);
|
|
|
|
integrationSearch.setTotalData(updown, filtered);
|
|
|
|
|
|
|
|
|
|
|
|
if(filtered.lenth < 1){
|
|
|
|
if(filtered.lenth < 1){
|
|
|
|
trs = notFound;
|
|
|
|
trs = notFound;
|
|
|
@ -303,7 +300,7 @@ $(document).ready(function() {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//합계 표시
|
|
|
|
//합계 표시
|
|
|
|
$P.setTotalData = (updown, list) => {
|
|
|
|
integrationSearch.setTotalData = (updown, list) => {
|
|
|
|
|
|
|
|
|
|
|
|
if(updown == "up"){
|
|
|
|
if(updown == "up"){
|
|
|
|
|
|
|
|
|
|
|
@ -341,12 +338,12 @@ $(document).ready(function() {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 엑셀
|
|
|
|
// 엑셀
|
|
|
|
$P.fnExcel = (updown) => {
|
|
|
|
integrationSearch.fnExcel = (updown) => {
|
|
|
|
|
|
|
|
|
|
|
|
var cellDefs;
|
|
|
|
var cellDefs;
|
|
|
|
|
|
|
|
|
|
|
|
if(updown == "up"){
|
|
|
|
if(updown == "up"){
|
|
|
|
if($P.integrationSearchControl.updataset.empty){
|
|
|
|
if(integrationSearchControl.updataset.empty){
|
|
|
|
alert("조회된 자료가 없습니다.");
|
|
|
|
alert("조회된 자료가 없습니다.");
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -354,9 +351,9 @@ $(document).ready(function() {
|
|
|
|
cellDefs = getCellDefs($("#upTheadTr--${pageName} th").not(".dummy-th").not(":eq(0)").not(":hidden"),
|
|
|
|
cellDefs = getCellDefs($("#upTheadTr--${pageName} th").not(".dummy-th").not(":eq(0)").not(":hidden"),
|
|
|
|
$($("#row--${pageName}")[0].content).find("td").not(".dummy-td").not(":eq(0)").not(".privacy-mask"));
|
|
|
|
$($("#row--${pageName}")[0].content).find("td").not(".dummy-td").not(":eq(0)").not(".privacy-mask"));
|
|
|
|
|
|
|
|
|
|
|
|
$P.integrationSearchControl.query.gridType = "up";
|
|
|
|
integrationSearchControl.query.gridType = "up";
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
if($P.integrationSearchControl.downdataset.empty){
|
|
|
|
if(integrationSearchControl.downdataset.empty){
|
|
|
|
alert("조회된 자료가 없습니다.");
|
|
|
|
alert("조회된 자료가 없습니다.");
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -364,38 +361,38 @@ $(document).ready(function() {
|
|
|
|
cellDefs = getCellDefs($("#downTheadTr--${pageName} th").not(".dummy-th").not(":eq(0)").not(":hidden"),
|
|
|
|
cellDefs = getCellDefs($("#downTheadTr--${pageName} th").not(".dummy-th").not(":eq(0)").not(":hidden"),
|
|
|
|
$($("#row--${pageName}")[0].content).find("td").not(".dummy-td").not(":eq(0)").not(".privacy-mask"));
|
|
|
|
$($("#row--${pageName}")[0].content).find("td").not(".dummy-td").not(":eq(0)").not(".privacy-mask"));
|
|
|
|
|
|
|
|
|
|
|
|
$P.integrationSearchControl.query.gridType = "down";
|
|
|
|
integrationSearchControl.query.gridType = "down";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
$P.integrationSearchControl.query.cellDefs = cellDefs;
|
|
|
|
integrationSearchControl.query.cellDefs = cellDefs;
|
|
|
|
|
|
|
|
|
|
|
|
$P.integrationSearchControl.download();
|
|
|
|
integrationSearchControl.download();
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
//납부자번호 복사
|
|
|
|
//납부자번호 복사
|
|
|
|
$P.fnCopyPyrNo = (updown) => {
|
|
|
|
integrationSearch.fnCopyPyrNo = (updown) => {
|
|
|
|
var cur;
|
|
|
|
var cur;
|
|
|
|
if(updown == "up"){
|
|
|
|
if(updown == "up"){
|
|
|
|
cur = $P.integrationSearchControl.updataset.getCurrent();
|
|
|
|
cur = integrationSearchControl.updataset.getCurrent();
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
cur = $P.integrationSearchControl.downdataset.getCurrent();
|
|
|
|
cur = integrationSearchControl.downdataset.getCurrent();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if(cur != null){
|
|
|
|
if(cur != null){
|
|
|
|
navigator.clipboard.writeText(cur.RTPYR_NO);
|
|
|
|
navigator.clipboard.writeText(cur.RTPYR_NO);
|
|
|
|
$("#toastText--${pageName}").html("납부자번호가 복사되었습니다.");
|
|
|
|
$("#toastText--${pageName}").html("납부자번호가 복사되었습니다.");
|
|
|
|
$P.toast.show();
|
|
|
|
integrationSearch.toast.show();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
//특기사항관리
|
|
|
|
//특기사항관리
|
|
|
|
$P.fnManageEtcCn = (updown) => {
|
|
|
|
integrationSearch.fnManageEtcCn = (updown) => {
|
|
|
|
var cur;
|
|
|
|
var cur;
|
|
|
|
if(updown == "up"){
|
|
|
|
if(updown == "up"){
|
|
|
|
cur = $P.integrationSearchControl.updataset.getCurrent();
|
|
|
|
cur = integrationSearchControl.updataset.getCurrent();
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
cur = $P.integrationSearchControl.downdataset.getCurrent();
|
|
|
|
cur = integrationSearchControl.downdataset.getCurrent();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if(cur.length <= 0){
|
|
|
|
if(cur.length <= 0){
|
|
|
@ -405,13 +402,13 @@ $(document).ready(function() {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
//특기사항일괄입력
|
|
|
|
//특기사항일괄입력
|
|
|
|
$P.fnInputEtcCn = (updown) => {
|
|
|
|
integrationSearch.fnInputEtcCn = (updown) => {
|
|
|
|
var cur;
|
|
|
|
var cur;
|
|
|
|
if(updown == "up"){
|
|
|
|
if(updown == "up"){
|
|
|
|
cur = $P.integrationSearchControl.updataset;
|
|
|
|
cur = integrationSearchControl.updataset;
|
|
|
|
|
|
|
|
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
cur = $P.integrationSearchControl.downdataset;
|
|
|
|
cur = integrationSearchControl.downdataset;
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -452,10 +449,10 @@ $(document).ready(function() {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//단속내역서,단속확인서
|
|
|
|
//단속내역서,단속확인서
|
|
|
|
$P.fnPrintCrdn = () => {
|
|
|
|
integrationSearch.fnPrintCrdn = () => {
|
|
|
|
|
|
|
|
|
|
|
|
var upDataset = $P.integrationSearchControl.updataset;
|
|
|
|
var upDataset = integrationSearchControl.updataset;
|
|
|
|
var downDataset = $P.integrationSearchControl.downdataset;
|
|
|
|
var downDataset = integrationSearchControl.downdataset;
|
|
|
|
|
|
|
|
|
|
|
|
if((upDataset.length <= 0) && (downDataset.length <= 0)){
|
|
|
|
if((upDataset.length <= 0) && (downDataset.length <= 0)){
|
|
|
|
dialog.alert("출력할 자료가 없습니다.");
|
|
|
|
dialog.alert("출력할 자료가 없습니다.");
|
|
|
@ -498,9 +495,9 @@ $(document).ready(function() {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//교부청구서,채권신고서
|
|
|
|
//교부청구서,채권신고서
|
|
|
|
$P.fnPrintBill = () => {
|
|
|
|
integrationSearch.fnPrintBill = () => {
|
|
|
|
|
|
|
|
|
|
|
|
var upDataset = $P.integrationSearchControl.updataset;
|
|
|
|
var upDataset = integrationSearchControl.updataset;
|
|
|
|
|
|
|
|
|
|
|
|
if(upDataset.length <= 0){
|
|
|
|
if(upDataset.length <= 0){
|
|
|
|
dialog.alert("출력할 자료가 없습니다.");
|
|
|
|
dialog.alert("출력할 자료가 없습니다.");
|
|
|
@ -536,8 +533,8 @@ $(document).ready(function() {
|
|
|
|
var childReq = pageObject.childReq.pop();
|
|
|
|
var childReq = pageObject.childReq.pop();
|
|
|
|
|
|
|
|
|
|
|
|
for(var reqKey in childReq) {
|
|
|
|
for(var reqKey in childReq) {
|
|
|
|
if($P.provide[reqKey]){
|
|
|
|
if(integrationSearch.provide[reqKey]){
|
|
|
|
parentRes[reqKey] = $P.provide[reqKey];
|
|
|
|
parentRes[reqKey] = integrationSearch.provide[reqKey];
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
parentRes[reqKey] = function(){};
|
|
|
|
parentRes[reqKey] = function(){};
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -553,9 +550,9 @@ $(document).ready(function() {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
//납부확인서
|
|
|
|
//납부확인서
|
|
|
|
$P.fnPrintRcvmtConfirm = () => {
|
|
|
|
integrationSearch.fnPrintRcvmtConfirm = () => {
|
|
|
|
|
|
|
|
|
|
|
|
var downDataset = $P.integrationSearchControl.downdataset;
|
|
|
|
var downDataset = integrationSearchControl.downdataset;
|
|
|
|
|
|
|
|
|
|
|
|
if(downDataset.length <= 0){
|
|
|
|
if(downDataset.length <= 0){
|
|
|
|
dialog.alert("출력할 자료가 없습니다.");
|
|
|
|
dialog.alert("출력할 자료가 없습니다.");
|
|
|
@ -589,9 +586,9 @@ $(document).ready(function() {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
//사전통지서
|
|
|
|
//사전통지서
|
|
|
|
$P.fnPrintAdvntce = () => {
|
|
|
|
integrationSearch.fnPrintAdvntce = () => {
|
|
|
|
|
|
|
|
|
|
|
|
var upDataset = $P.integrationSearchControl.updataset;
|
|
|
|
var upDataset = integrationSearchControl.updataset;
|
|
|
|
|
|
|
|
|
|
|
|
if(upDataset.length <= 0){
|
|
|
|
if(upDataset.length <= 0){
|
|
|
|
dialog.alert("출력할 자료가 없습니다.");
|
|
|
|
dialog.alert("출력할 자료가 없습니다.");
|
|
|
@ -627,8 +624,8 @@ $(document).ready(function() {
|
|
|
|
var childReq = pageObject.childReq.pop();
|
|
|
|
var childReq = pageObject.childReq.pop();
|
|
|
|
|
|
|
|
|
|
|
|
for(var reqKey in childReq) {
|
|
|
|
for(var reqKey in childReq) {
|
|
|
|
if($P.provide[reqKey]){
|
|
|
|
if(integrationSearch.provide[reqKey]){
|
|
|
|
parentRes[reqKey] = $P.provide[reqKey];
|
|
|
|
parentRes[reqKey] = integrationSearch.provide[reqKey];
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
parentRes[reqKey] = function(){};
|
|
|
|
parentRes[reqKey] = function(){};
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -644,9 +641,9 @@ $(document).ready(function() {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
//고지서
|
|
|
|
//고지서
|
|
|
|
$P.fnPrintNht = () => {
|
|
|
|
integrationSearch.fnPrintNht = () => {
|
|
|
|
|
|
|
|
|
|
|
|
var upDataset = $P.integrationSearchControl.updataset;
|
|
|
|
var upDataset = integrationSearchControl.updataset;
|
|
|
|
|
|
|
|
|
|
|
|
if(upDataset.length <= 0){
|
|
|
|
if(upDataset.length <= 0){
|
|
|
|
dialog.alert("출력할 자료가 없습니다.");
|
|
|
|
dialog.alert("출력할 자료가 없습니다.");
|
|
|
@ -682,8 +679,8 @@ $(document).ready(function() {
|
|
|
|
var childReq = pageObject.childReq.pop();
|
|
|
|
var childReq = pageObject.childReq.pop();
|
|
|
|
|
|
|
|
|
|
|
|
for(var reqKey in childReq) {
|
|
|
|
for(var reqKey in childReq) {
|
|
|
|
if($P.provide[reqKey]){
|
|
|
|
if(integrationSearch.provide[reqKey]){
|
|
|
|
parentRes[reqKey] = $P.provide[reqKey];
|
|
|
|
parentRes[reqKey] = integrationSearch.provide[reqKey];
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
parentRes[reqKey] = function(){};
|
|
|
|
parentRes[reqKey] = function(){};
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -699,13 +696,13 @@ $(document).ready(function() {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
//개별총정보 dialog
|
|
|
|
//개별총정보 dialog
|
|
|
|
$P.getInfo = (taskSeCd, crdnId) => {
|
|
|
|
integrationSearch.getInfo = (taskSeCd, crdnId) => {
|
|
|
|
if (crdnId == undefined || crdnId == null || crdnId == "") {
|
|
|
|
if (crdnId == undefined || crdnId == null || crdnId == "") {
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
var params = {
|
|
|
|
var params = {
|
|
|
|
callControlName : "pageObject['${pageName}'].integrationSearchControl"
|
|
|
|
callControlName : "integrationSearchControl"
|
|
|
|
, crdnId : crdnId
|
|
|
|
, crdnId : crdnId
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -727,11 +724,11 @@ $(document).ready(function() {
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
$P.provide = {
|
|
|
|
integrationSearch.provide = {
|
|
|
|
"getInfo" : function(crdnId){
|
|
|
|
"getInfo" : function(crdnId){
|
|
|
|
|
|
|
|
|
|
|
|
var upDataset = $P.integrationSearchControl.updataset;
|
|
|
|
var upDataset = integrationSearchControl.updataset;
|
|
|
|
var downDataset = $P.integrationSearchControl.downdataset;
|
|
|
|
var downDataset = integrationSearchControl.downdataset;
|
|
|
|
|
|
|
|
|
|
|
|
if(upDataset.length > 0){
|
|
|
|
if(upDataset.length > 0){
|
|
|
|
var info = upDataset.getData(crdnId);
|
|
|
|
var info = upDataset.getData(crdnId);
|
|
|
@ -751,8 +748,8 @@ $(document).ready(function() {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
"isAllSameTask" : function(crdnIdArr){
|
|
|
|
"isAllSameTask" : function(crdnIdArr){
|
|
|
|
|
|
|
|
|
|
|
|
var upArr = $P.integrationSearchControl.updataset.getDataset();
|
|
|
|
var upArr = integrationSearchControl.updataset.getDataset();
|
|
|
|
var downArr = $P.integrationSearchControl.downdataset.getDataset();
|
|
|
|
var downArr = integrationSearchControl.downdataset.getDataset();
|
|
|
|
var unionArr = [...upArr, ...downArr];
|
|
|
|
var unionArr = [...upArr, ...downArr];
|
|
|
|
|
|
|
|
|
|
|
|
var filtered = unionArr.filter(item => crdnIdArr.includes(item.CRDN_ID));
|
|
|
|
var filtered = unionArr.filter(item => crdnIdArr.includes(item.CRDN_ID));
|
|
|
@ -766,30 +763,30 @@ $(document).ready(function() {
|
|
|
|
* Event
|
|
|
|
* Event
|
|
|
|
**************************************************************************/
|
|
|
|
**************************************************************************/
|
|
|
|
//이벤트
|
|
|
|
//이벤트
|
|
|
|
$P.setEvent = () => {
|
|
|
|
integrationSearch.setEvent = () => {
|
|
|
|
|
|
|
|
|
|
|
|
$("#btnReset--${pageName}").on("click", function(){ $P.fnReset(); });
|
|
|
|
$("#btnReset--${pageName}").on("click", function(){ integrationSearch.fnReset(); });
|
|
|
|
$("#btnSearch--${pageName}").on("click", function(){ $P.fnSearchList(); });
|
|
|
|
$("#btnSearch--${pageName}").on("click", function(){ integrationSearch.fnSearchList(); });
|
|
|
|
|
|
|
|
|
|
|
|
$("#btnPrintCrdn--${pageName}").on("click", function(){ $P.fnPrintCrdn(); });
|
|
|
|
$("#btnPrintCrdn--${pageName}").on("click", function(){ integrationSearch.fnPrintCrdn(); });
|
|
|
|
$("#btnPrintBill--${pageName}").on("click", function(){ $P.fnPrintBill(); });
|
|
|
|
$("#btnPrintBill--${pageName}").on("click", function(){ integrationSearch.fnPrintBill(); });
|
|
|
|
|
|
|
|
|
|
|
|
$("#btnUpExcel--${pageName}").on("click", function(){ $P.fnExcel("up"); });
|
|
|
|
$("#btnUpExcel--${pageName}").on("click", function(){ integrationSearch.fnExcel("up"); });
|
|
|
|
$("#btnDownExcel--${pageName}").on("click", function(){ $P.fnExcel("down"); });
|
|
|
|
$("#btnDownExcel--${pageName}").on("click", function(){ integrationSearch.fnExcel("down"); });
|
|
|
|
|
|
|
|
|
|
|
|
$("#btnUpCopyPyrNo--${pageName}").on("click", function(){ $P.fnCopyPyrNo("up"); });
|
|
|
|
$("#btnUpCopyPyrNo--${pageName}").on("click", function(){ integrationSearch.fnCopyPyrNo("up"); });
|
|
|
|
$("#btnDownCopyPyrNo--${pageName}").on("click", function(){ $P.fnCopyPyrNo("down"); });
|
|
|
|
$("#btnDownCopyPyrNo--${pageName}").on("click", function(){ integrationSearch.fnCopyPyrNo("down"); });
|
|
|
|
|
|
|
|
|
|
|
|
$("#btnUpManageEtcCn--${pageName}").on("click", function(){ $P.fnManageEtcCn("up"); });
|
|
|
|
$("#btnUpManageEtcCn--${pageName}").on("click", function(){ integrationSearch.fnManageEtcCn("up"); });
|
|
|
|
$("#btnDownManageEtcCn--${pageName}").on("click", function(){ $P.fnManageEtcCn("down"); });
|
|
|
|
$("#btnDownManageEtcCn--${pageName}").on("click", function(){ integrationSearch.fnManageEtcCn("down"); });
|
|
|
|
|
|
|
|
|
|
|
|
$("#btnUpInputEtcCn--${pageName}").on("click", function(){ $P.fnInputEtcCn("up"); });
|
|
|
|
$("#btnUpInputEtcCn--${pageName}").on("click", function(){ integrationSearch.fnInputEtcCn("up"); });
|
|
|
|
$("#btnDownInputEtcCn--${pageName}").on("click", function(){ $P.fnInputEtcCn("down"); });
|
|
|
|
$("#btnDownInputEtcCn--${pageName}").on("click", function(){ integrationSearch.fnInputEtcCn("down"); });
|
|
|
|
|
|
|
|
|
|
|
|
$("#btnDownPrintRcvmtConfirm--${pageName}").on("click", function(){ $P.fnPrintRcvmtConfirm(); });
|
|
|
|
$("#btnDownPrintRcvmtConfirm--${pageName}").on("click", function(){ integrationSearch.fnPrintRcvmtConfirm(); });
|
|
|
|
|
|
|
|
|
|
|
|
$("#btnUpPrintAdvntce--${pageName}").on("click", function(){ $P.fnPrintAdvntce(); });
|
|
|
|
$("#btnUpPrintAdvntce--${pageName}").on("click", function(){ integrationSearch.fnPrintAdvntce(); });
|
|
|
|
$("#btnPrintNht--${pageName}").on("click", function(){ $P.fnPrintNht(); });
|
|
|
|
$("#btnPrintNht--${pageName}").on("click", function(){ integrationSearch.fnPrintNht(); });
|
|
|
|
|
|
|
|
|
|
|
|
//$("#btn").on("click", function(){ });
|
|
|
|
//$("#btn").on("click", function(){ });
|
|
|
|
|
|
|
|
|
|
|
@ -829,29 +826,34 @@ $(document).ready(function() {
|
|
|
|
$("#downTable--${pageName}").find("th").resizable( {handles : "e"} );
|
|
|
|
$("#downTable--${pageName}").find("th").resizable( {handles : "e"} );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
window.integrationSearchControl = integrationSearchControl;
|
|
|
|
|
|
|
|
window.integrationSearch = integrationSearch;
|
|
|
|
|
|
|
|
|
|
|
|
/**************************************************************************
|
|
|
|
/**************************************************************************
|
|
|
|
* script 진입
|
|
|
|
* script 진입
|
|
|
|
**************************************************************************/
|
|
|
|
**************************************************************************/
|
|
|
|
|
|
|
|
$(document).ready(function() {
|
|
|
|
|
|
|
|
|
|
|
|
$("#upTheadTr--${pageName}").html(document.getElementById("cols--${pageName}").innerHTML);
|
|
|
|
$("#upTheadTr--${pageName}").html(document.getElementById("cols--${pageName}").innerHTML);
|
|
|
|
$("#downTheadTr--${pageName}").html(document.getElementById("cols--${pageName}").innerHTML);
|
|
|
|
$("#downTheadTr--${pageName}").html(document.getElementById("cols--${pageName}").innerHTML);
|
|
|
|
|
|
|
|
|
|
|
|
// 이벤트 설정
|
|
|
|
// 이벤트 설정
|
|
|
|
$P.setEvent();
|
|
|
|
integrationSearch.setEvent();
|
|
|
|
|
|
|
|
|
|
|
|
// 보안모드
|
|
|
|
// 보안모드
|
|
|
|
fn_securityModeToggle($("#securityMode--top").is(":checked"));
|
|
|
|
fn_securityModeToggle($("#securityMode--top").is(":checked"));
|
|
|
|
|
|
|
|
|
|
|
|
$P.fnResetAndChangeBiz("");
|
|
|
|
integrationSearch.fnResetAndChangeBiz("");
|
|
|
|
|
|
|
|
|
|
|
|
if($P.fastSearch != null){
|
|
|
|
if(integrationSearch.fastSearch != null){
|
|
|
|
if($P.fastSearch.fastBy == "vhrno"){
|
|
|
|
if(integrationSearch.fastSearch.fastBy == "vhrno"){
|
|
|
|
$("#ischVhrno--${pageName}").val($P.fastSearch.fastTerm);
|
|
|
|
$("#ischVhrno--${pageName}").val(integrationSearch.fastSearch.fastTerm);
|
|
|
|
} else if($P.fastSearch.fastBy == "rtpyrNm"){
|
|
|
|
} else if(integrationSearch.fastSearch.fastBy == "rtpyrNm"){
|
|
|
|
$("#ischRtpyrNm--${pageName}").val($P.fastSearch.fastTerm);
|
|
|
|
$("#ischRtpyrNm--${pageName}").val(integrationSearch.fastSearch.fastTerm);
|
|
|
|
} else if($P.fastSearch.fastBy == "rtpyrNo"){
|
|
|
|
} else if(integrationSearch.fastSearch.fastBy == "rtpyrNo"){
|
|
|
|
$("#ischRtpyrNo--${pageName}").val($P.fastSearch.fastTerm);
|
|
|
|
$("#ischRtpyrNo--${pageName}").val(integrationSearch.fastSearch.fastTerm);
|
|
|
|
} else if($P.fastSearch.fastBy == "cvlcptAplcntNm"){
|
|
|
|
} else if(integrationSearch.fastSearch.fastBy == "cvlcptAplcntNm"){
|
|
|
|
$("#ischCvlcptAplcntNm--${pageName}").val($P.fastSearch.fastTerm);
|
|
|
|
$("#ischCvlcptAplcntNm--${pageName}").val(integrationSearch.fastSearch.fastTerm);
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|