@@ -715,7 +715,7 @@ $(document).ready(function(){
var output = fnMakeImgTag(item.URL, item.FILE_NM,"next"+item.FILE_ID+'${pageName}',item.MOSAIC);
$("#nextDataFiles--${pageName}").append(output);
});
-
+
}
});
@@ -795,13 +795,15 @@ $(document).ready(function(){
"callPurpose" : "create"
};
+ var taskSeCd = $("#frmSearch--${pageName} [name='taskSeCd']:checked").val();
+
ajax.get({
- url : wctx.url("/excl/excl01/020/info.do"),
+ url : wctx.url(taskSeCd + "/excl/excl01/020/info.do"),
data : params,
success : resp => {
if((typeof resp) != "string"){
- dialog.alert({
+ dialog.alert({
content : resp.message,
init : function(){ focusClose(); }
});
@@ -812,7 +814,7 @@ $(document).ready(function(){
id : "levyExcldialog",
title : "부과제외 정보",
content : resp,
- size : "lg",
+ size : "md",
init : () => {},
onClose : () => {}
});
@@ -845,7 +847,7 @@ $(document).ready(function(){
success : resp => {
if((typeof resp) != "string"){
- dialog.alert({
+ dialog.alert({
content : resp.message,
init : function(){ focusClose(); }
});
@@ -881,11 +883,11 @@ $(document).ready(function(){
var replacer = (str, dataItem) => str
.replace(/{onclick}/gi, "pageObject['${pageName}'].clickInspectionDataList('" + dataItem.getValue("CRDN_ID") + "','photoInspection');")
.replace(/{ondblclick}/gi, "pageObject['${pageName}'].dblclickInspectionDataList('" + dataItem.getValue("CRDN_ID") + "','photoInspection');");
-
+
var trs = empty ? notFound : dataList.inStrings(found, replacer);
var noMore = (total == dataList.length);
var initScroll = ($P.photoInspectionControl.query.pageNum < 2) && ($P.photoInspectionControl.untilPageNum == 0);
-
+
$("#photoInspection-responsive--${pageName}")[0].changeContent(trs.join(), initScroll, noMore);
if($P.photoInspectionControl.untilPageNum != 0){
@@ -901,11 +903,11 @@ $(document).ready(function(){
var found = document.getElementById("sameVehicleInspectionMainRow--${pageName}").innerHTML;
var replacer = (str, dataItem) => str
.replace(/{onclick}/gi, "pageObject['${pageName}'].clickInspectionDataList('" + dataItem.getValue("CRDN_ID_LIST") + "','sameVehicleInspectionMain');");
-
+
var trs = empty ? notFound : dataList.inStrings(found, replacer);
var noMore = (total == dataList.length);
var initScroll = ($P.sameVehicleControl.main.query.pageNum < 2) && ($P.sameVehicleControl.untilPageNum == 0);
-
+
$("#sameVehicleInspectionMain-responsive--${pageName}")[0].changeContent(trs.join(), initScroll, noMore);
@@ -971,58 +973,58 @@ $(document).ready(function(){
$('#btnSearch--${pageName}').on('click', () => $P.searchInspectionList()); //검색버튼
$('#btnExcel--${pageName}').on('click', function(){
-
+
if($P.currentDisplay == "photoInspection"){
if($P.photoInspectionControl.dataset.empty){
alert("조회된 자료가 없습니다.");
return;
}
-
- var cellDefs = getCellDefs($("#photoInspection_Table_0--${pageName} thead th").not(".dummy-th").not(":eq(0)"),
+
+ var cellDefs = getCellDefs($("#photoInspection_Table_0--${pageName} thead th").not(".dummy-th").not(":eq(0)"),
$($("#photoInspectionRow--${pageName}")[0].content).find("td").not(".dummy-td").not(":eq(0)"));
$P.photoInspectionControl.query.cellDefs = cellDefs;
-
+
$P.photoInspectionControl.download();
-
+
} else {
-
+
if($P.sameVehicleControl.main.dataset.empty){
alert("조회된 자료가 없습니다.");
return;
}
if(confirm("단속건수 엑셀저장은 확인버튼, 상세내역 엑셀저장시 취소버튼을 누르세요.")){
-
- var cellDefs = getCellDefs($("#sameVehicleInspectionMain_Table_0--${pageName} thead th").not(".dummy-th"),
+
+ var cellDefs = getCellDefs($("#sameVehicleInspectionMain_Table_0--${pageName} thead th").not(".dummy-th"),
$($("#sameVehicleInspectionMainRow--${pageName}")[0].content).find("td").not(".dummy-td"));
$P.sameVehicleControl.main.query.cellDefs = cellDefs;
-
+
$P.sameVehicleControl.main.download();
} else {
-
- var cellDefs = getCellDefs($("#sameVehicleInspectionSub_Table_0--${pageName} thead th").not(".dummy-th").not(":hidden"),
+
+ var cellDefs = getCellDefs($("#sameVehicleInspectionSub_Table_0--${pageName} thead th").not(".dummy-th").not(":hidden"),
$($("#sameVehicleInspectionSubRow--${pageName}")[0].content).find("td").not(".dummy-td").not(".privacy-mask"));
$P.sameVehicleControl.sub.query.cellDefs = cellDefs;
-
+
$P.sameVehicleControl.sub.download();
}
}
-
+
});
-
+
$("#btnInstLevyExcl--${pageName}").on("click", () => $P.openLevyExclPop("1"));
//스크롤 테이블
fnMakeScrollableTable($("#photoInspection-responsive--${pageName}")[0], $P.scrollInspectionDataList);
fnMakeScrollableTable($("#sameVehicleInspectionMain-responsive--${pageName}")[0], $P.scrollInspectionDataList);
-
+
$("#photoInspection_Table_0--${pageName}").find("th").resizable({handles : "e"});
$("#sameVehicleInspectionMain_Table_0--${pageName}").find("th").resizable({handles : "e"});
$("#sameVehicleInspectionSub_Table_0--${pageName}").find("th").resizable({handles : "e"});
-
+
/**************************************************************************
* 초기화
**************************************************************************/
@@ -1035,7 +1037,7 @@ $(document).ready(function(){
//보안모드
fn_securityModeToggle($("#securityMode--top").is(":checked"));
-
+
$("#frmSearch--${pageName} input[name='taskSeCd']").each(function(i) {
$(this).prop("disabled", "true");
});