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