diff --git a/WebContent/ui/cfs/fine/FN016M01.xml b/WebContent/ui/cfs/fine/FN016M01.xml index b19ca33..0552073 100644 --- a/WebContent/ui/cfs/fine/FN016M01.xml +++ b/WebContent/ui/cfs/fine/FN016M01.xml @@ -12,6 +12,25 @@ + + + + + + + + + + + + + + + + + + + @@ -209,6 +228,8 @@ scwin.onpageload = function() { documentId.focus(); idx_rentKbn.visible( false ); + + btn_excelUpTrigger1.setStyle( "display" , "none" ); }; scwin.onpageunload = function() { @@ -219,7 +240,7 @@ scwin.onpageunload = function() { scwin.inp_keywd_onkeyup = function(e) { if (e.keyCode == 13) { reqCode.set( "documentId" , this.getValue() ); - //console.log(this.getValue()); + scwin.btn_search_onclick(); } }; @@ -630,7 +651,142 @@ scwin.btn_button03_onclick = function(e) { }; - //차적변경 + + + +//엑셀다운로드 +scwin.btn_excel_down_onclick = function(e) { + if (resCode.getRowCount() == 0) { + com.alert("엑셀다운로드할 정보가 없습니다."); + return; + } + // 엑셀저장 + var info = {}; + var options = {}; + options.showProcess = "true"; //다운로드 시 프로세스 창을 보여줄지 여부 (true:보임) + options.showConfirm = "true"; //다운로드 확인창을 띄울지 여부 (false:미확인) + options.useFooter = "true"; //다운로드 시 Footer를 출력 할지 여부 (true:포함) + options.useSubTotal = "true"; //다운로드 시 SubTotal을 출력 할지 여부 (false:미포함) + options.useSubTotalData = "true"; //다운로드시 SubTotal을 출력 할지 여부 (false:미포함) + options.useFooterData = "true"; + + options.printSet = { + fitToPage : "true" //엑셀 프린터 출력시 쪽맞춤 사용 유무 (false:미사용) + , landScape : "true" //엑셀 프린터 출력시 가로 방향 출력 유무 (false:세로) + , pageSize : "A4" //엑셀 프린터 출력시 인쇄용지 설정 (A4:A4용지) + }; + + options.autoSizeColumn = "false"; //너비자동맞춤 설정 유무 (false:미적용) + + options.fileName = "과태료납부반송독촉불가처리_"+com.getCurDtime()+".xlsx"; + options.sheetName = "과태료납부반송독촉불가처리"; + + com.fncMakeExcelProvider("finePenaltyDisableProcessingService", "findPaymentOfPenaltyList_kbn", "cfs.fine.vo.FinePenaltyDisableProcessingVO", reqCode, grd_gridView, options, info); + +}; + +//차적변경 엑셀업로드 +scwin.btn_excel_up_onclick = function(e) { + var options = { + type : "0",//String, 1이면 엑셀 파일이 그리드의 보이는 결과로 만들어져있을때 0이면 엑셀 파일이 그리드의 실제 데이터로 구성되어있을때 + sheetNo : 0, //Number, excel파일에서 그리드의 데이터가 있는 sheet번호 + startRowIndex : 2, //Number, [defalut:0] excel파일에서 그리드의 데이터가 시작되는 행의 번호(헤더 포함) + startColumnIndex : 0, //Number, [defalut:0] excel파일에서 그리드의 데이터가 시작되는 열의 번호 + endColumnIndex : 16, //Number, [defalut: 0] excel파일에서 그리드의 데이터가 끝나는 열의 index + //( 엑셀컬럼수가 그리드컬럼수 보다 작은 경우 그리드 컬러수를 설정) + headerExist : "0", //String, [defalut:0] excel파일에서 그리드의 데이터에 header가 있는지 여부 + //(1이면 header 존재 0이면 없음) + append : "0", //String, [defalut: 0] excel파일에서 가져온 데이터를 그리드에 append시킬지 여부 + // (1이면 현재 그리드에 데이터를 추가로 넣어줌 0이면 현재 그리드의 데이터를 삭제하고 넣음) + skipSpace : "1", //String, [defalut: 0] 공백무시 여부(1이면 무시 0이면 포함) + insertColumns : "" ,//Array, radio, checkbox와 같은 컬럼을 엑셀에서 받아 오지 않고 + //사용자 컬럼 설정 으로 업로드 ( 데이터 구조 : [ { columnIndex:1, columnValue:"1" } ] ) + popupUrl : "websquare/uiplugin/grid/upload/advancedfileUpload_cfs_changeCarInfo.html", //String, 업로드시에 호출할 popup의 url + status : "R", //String, [defalut: R]업로드된 데이터의 초기 상태값, 설정하지 않으면 "R"로 설정되며 "C"값을 설정 할 수 있다. + pwd : "" //String, 엑셀파일에 암호가 걸려 있는 경우, 비밀번호 + }; + gridExcelUpload.advancedExcelUpload( options ); + +}; + +scwin.excelUpActionDt = ""; +scwin.excelUpActionUser = ""; + +//엑셀업로드 처리 +scwin.excelUpTrigger1_onclick = function(e) { + + scwin.excelUpActionDt = ""; + scwin.excelUpActionUser = ""; + + + excelUpload.setJSON( gridExcelUpload.getAllDisplayJSON() ); + + var aJsonArray = gridExcelUpload.getAllDisplayJSON(); + + aJsonArray = aJsonArray.filter((element) => (element.dummy0 != "(예시)" && element.carNo != null && element.carNo != "")); + + if(aJsonArray.length == 0){ + return; + } + + + scwin.excelUpActionDt = com.getCurDtime(); + scwin.excelUpActionUser = com.getLoginUserId(); + + for(var i=0; i < aJsonArray.length; i++){ + aJsonArray[i].actionDt = scwin.excelUpActionDt; + aJsonArray[i].actionUser = scwin.excelUpActionUser; + } + + var pureAjaxOpts = []; + var processMsgs = []; + for(var i=0; i < aJsonArray.length; i++){ + var pureAjaxOpt = { + url : '/cfs/fine/saveExcelForSecondaryChange.do' + , async : true + , dataType : 'json' + , contentType : 'application/json' + , type: 'POST' + , data : JSON.stringify([aJsonArray[i]]) + , success : function(data) { + + if(data != null + && data.rsMsg != null + && data.rsMsg.statusCode != null + && data.rsMsg.statusCode == "S"){ + gcm.progress.successCount++; + } + gcm.progress.wait = false; + } + , error : function(){ + gcm.progress.wait = false; + } + }; + pureAjaxOpts.push(pureAjaxOpt); + processMsgs.push("등록 처리 중입니다. (" + (i+1) + " / " + aJsonArray.length + ")"); + } + + gcm.ajaxStart(pureAjaxOpts, processMsgs, scwin.ajaxExcelUploadCallback); +}; + + +scwin.ajaxExcelUploadCallback = function(sucCnt, dataCnt) { + + + if(dataCnt == sucCnt){ + com.alert("저장 되었습니다."); + return; + } + + var link = document.createElement('a'); + link.href = "/cfs/fine/saveExcelResultForSecondaryChange.do"+"?"+"actionUser="+scwin.excelUpActionUser+"&"+"actionDt="+scwin.excelUpActionDt; + link.download = "업로드실패목록.xls"; + document.body.appendChild(link); + link.click(); + document.body.removeChild(link); +}; + +//차적변경 scwin.btn_button04_onclick = function() { var row = grd_gridView.getFocusedRowIndex(); if (row == -1) { @@ -678,7 +834,7 @@ scwin.btn_button04_onclick = function() { com.openPopup(popupUrl, opt, data); }; - //대체차량등록 +//대체차량등록 scwin.btn_button05_onclick = function(e) { var row = grd_gridView.getFocusedRowIndex(); if (row == -1) { @@ -902,7 +1058,6 @@ scwin.btn_button09_onclick = function(e) { }; scwin.alreadyAlert = function() { - console.log("aaaa") com.alert('이미 압류된 건이 존재합니다.'); }; @@ -1309,36 +1464,8 @@ scwin.btn_addressHistory_onclick = function(e) { com.openPopup(popupUrl, opt, data); }; - -scwin.btn_excel_down_onclick = function(e) { - if (resCode.getRowCount() == 0) { - com.alert("엑셀다운로드할 정보가 없습니다."); - return; - } - // 엑셀저장 - var info = {}; - var options = {}; - options.showProcess = "true"; //다운로드 시 프로세스 창을 보여줄지 여부 (true:보임) - options.showConfirm = "true"; //다운로드 확인창을 띄울지 여부 (false:미확인) - options.useFooter = "true"; //다운로드 시 Footer를 출력 할지 여부 (true:포함) - options.useSubTotal = "true"; //다운로드 시 SubTotal을 출력 할지 여부 (false:미포함) - options.useSubTotalData = "true"; //다운로드시 SubTotal을 출력 할지 여부 (false:미포함) - options.useFooterData = "true"; - - options.printSet = { - fitToPage : "true" //엑셀 프린터 출력시 쪽맞춤 사용 유무 (false:미사용) - , landScape : "true" //엑셀 프린터 출력시 가로 방향 출력 유무 (false:세로) - , pageSize : "A4" //엑셀 프린터 출력시 인쇄용지 설정 (A4:A4용지) - }; - options.autoSizeColumn = "false"; //너비자동맞춤 설정 유무 (false:미적용) - - options.fileName = "과태료납부반송독촉불가처리_"+com.getCurDtime()+".xlsx"; - options.sheetName = "과태료납부반송독촉불가처리"; - - com.fncMakeExcelProvider("finePenaltyDisableProcessingService", "findPaymentOfPenaltyList_kbn", "cfs.fine.vo.FinePenaltyDisableProcessingVO", reqCode, grd_gridView, options, info); -}; ]]> @@ -1429,6 +1556,12 @@ scwin.btn_excel_down_onclick = function(e) { type="button"> + + + + + + @@ -2827,6 +2960,109 @@ scwin.btn_excel_down_onclick = function(e) { + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/WebContent/ui/cfs/fine/FN016P05.xml b/WebContent/ui/cfs/fine/FN016P05.xml index 29f6b83..c3ed024 100644 --- a/WebContent/ui/cfs/fine/FN016P05.xml +++ b/WebContent/ui/cfs/fine/FN016P05.xml @@ -18,15 +18,21 @@ + + + + + + + + + + + - - - - - @@ -37,46 +43,34 @@ - - - - - - - - - - - - - + + - + + + + + - - - - + + - + - + + + - - - - - - + @@ -93,7 +87,7 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 요금소 - - row - - - - - - - - - 차로 - - row - - - - - - - - - 통행일자 - - - - - - - - - 통행일시 - - - - - - - - - - 징수원 - - - 3 - 1 - - - - - - 판독원 - - - - - 3 - 1 - - - - - - - 차적조회 - - row - - - - - 3 - 1 - - - - - - 판독차종 - - - - - 3 - 1 - - - - - - - - - - - - - - - - - - - - - - - - - - 차량번호 - - - 3 - 1 - - - - 경차구분 - - - 3 - 1 - - - - - - - - - - - - - - - - - *소유자 - row - - - - 3 - 1 - - - - *주민등록(법인번호) - row - - - - 2 - 1 - - - - - - - - - - - - - - - - - - - - 우편번호 - - row - - - - - 3 - 1 - - - - - - - - 법인번호 - - row - - - - - 3 - 1 - - - - - - - - - - - 주소 - - row - - - - - 7 - 1 - - - - - - - - - - 소유형태 - - row - - - - - 3 - 1 - - - - - - - - - - - - - - - - - - - - - - - - 최대적재량 - - row - - - - - 3 - 1 - - - - - - - 검증원 - - row - - - - - 3 - 1 - - - - - - row - 4 - 1 - - - - - - - - - - - - - - - - - - - - - - 렌트회사 - - - 3 - 1 - - - - 문서종류 - - - 3 - 1 - - - - - - - - - - - - - - - - - - 렌트기간 - - row - - - - - 3 - 1 - - - - - - - - - - 문서관리번호 - - row - - - - - 3 - 1 - - - - - - - 담당자 - - row - - - - - 3 - 1 - - - - - *&nbsp;소유주&nbsp;변경고지할&nbsp;차량이라면&nbsp;꼭&nbsp;체크해&nbsp;주세요. - - row - 4 - 1 - - - - - - 연락처 - - row - - - - - 3 - 1 - - - - - - row - 4 - 1 - - - - - - - - - - - - - - 렌트회사주소 - - row - - - - - 7 - 1 - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 요금소 + + row + + + + + + + + + 차로 + + row + + + + + + + + + 통행일자 + + + + + + + + + 통행일시 + + + + + + + + + + 징수원 + + + 3 + 1 + + + + + + 판독원 + + + + + 3 + 1 + + + + + + + 차적조회 + + row + + + + + 3 + 1 + + + + + + 판독차종 + + + + + 3 + 1 + + + + + + + + + + + + + + + + + + + + + + + + + + 차량번호 + + + 3 + 1 + + + + 경차구분 + + + 3 + 1 + + + + + + + + + + + + + + + + + *소유자 + row + + + + 3 + 1 + + + + *주민등록(법인번호) + row + + + + 2 + 1 + + + + + + + + + + + + + + + + + + + + 우편번호 + + row + + + + + 3 + 1 + + + + + + + + 법인번호 + + row + + + + + 3 + 1 + + + + + + + + + + + 주소 + + row + + + + + 7 + 1 + + + + + + + + + + 소유형태 + + row + + + + + 3 + 1 + + + + + + + + + + + + + + + + + + + + + + + + + + + + 최대적재량 + + row + + + + + 3 + 1 + + + + + + + + + + + + + + + + + + + + + + + 렌트회사 + + + 3 + 1 + + + + 문서종류 + + + 3 + 1 + + + + + + + + + + + + + + + + + + 렌트기간 + + row + + + + + 3 + 1 + + + + + + + + + + 문서관리번호 + + row + + + + + 3 + 1 + + + + + + + 담당자 + + row + + + + + 3 + 1 + + + + + *&nbsp;소유주&nbsp;변경고지할&nbsp;차량이라면&nbsp;꼭&nbsp;체크해&nbsp;주세요. + + row + 4 + 1 + + + + + + 연락처 + + row + + + + + 3 + 1 + + + + + + row + 4 + 1 + + + + + + + + + + + + + + 렌트회사주소 + + row + + + + + 7 + 1 + + + + + + + + + + + + + + \ No newline at end of file diff --git a/WebContent/websquare/uiplugin/grid/upload/advancedfileUpload_cfs_changeCarInfo.html b/WebContent/websquare/uiplugin/grid/upload/advancedfileUpload_cfs_changeCarInfo.html index b1da3b3..6ac5219 100644 --- a/WebContent/websquare/uiplugin/grid/upload/advancedfileUpload_cfs_changeCarInfo.html +++ b/WebContent/websquare/uiplugin/grid/upload/advancedfileUpload_cfs_changeCarInfo.html @@ -7,28 +7,6 @@ 차적변경 엑셀 FILE UPLOAD