diff --git a/src/main/webapp/WEB-INF/jsp/seed/_extra/gtm/trublprocessmng/fileAtchPop.jsp b/src/main/webapp/WEB-INF/jsp/seed/_extra/gtm/trublprocessmng/fileAtchPop.jsp index c1a5bdf8..deff49b7 100644 --- a/src/main/webapp/WEB-INF/jsp/seed/_extra/gtm/trublprocessmng/fileAtchPop.jsp +++ b/src/main/webapp/WEB-INF/jsp/seed/_extra/gtm/trublprocessmng/fileAtchPop.jsp @@ -251,7 +251,10 @@ function fn_gwFileUpload(){ //method_parm :관리자로그 메소드에서 사 error: function (e) { alert("그룹웨어 파일 저장에 실패했습니다."); console.log("ERROR : ", e); } }); }else{ - fn_gwGo(''); + /* 250327 담당자 요청으로 첨부파일 필수 처리 */ + /* fn_gwGo(''); */ + alert("첨부파일을 업로드해 주세요."); + return false; } } } diff --git a/src/main/webapp/WEB-INF/jsp/seed/_extra/gtm/trublprocessmng/rceptEdit.jsp b/src/main/webapp/WEB-INF/jsp/seed/_extra/gtm/trublprocessmng/rceptEdit.jsp index b8a7cef5..8cdf1407 100644 --- a/src/main/webapp/WEB-INF/jsp/seed/_extra/gtm/trublprocessmng/rceptEdit.jsp +++ b/src/main/webapp/WEB-INF/jsp/seed/_extra/gtm/trublprocessmng/rceptEdit.jsp @@ -3318,7 +3318,7 @@ function automaticCalc(){ mediationReqAmount 신청금액 mediationAmount 조정금액 feeMoney 인지대 - postMoney 송달료 20.01.01 변경 + postMoney 송달료 25.04.01 변경 lawyerMoney 변호사수임료 20.01.01 변경 courtMoney 소송비용 resultMoney 성과금액 @@ -3342,7 +3342,7 @@ function automaticCalc(){ mediationBigVal == "0603010000") ){ alert("조정금액을 입력하세요."); - mediationAmount.focus(); + $("#mediationAmount").focus(); return false; } @@ -3361,8 +3361,8 @@ function automaticCalc(){ feeMoney = Floor((mediationReqAmount * 0.0035) + 555000); } - //송달료 값 계산 20.01.01 변경 - postMoney = 76500; + //송달료 값 계산 25.04.01 변경 + postMoney = 78000; //변호사 수임료 20.01.01 변경 if(3000000 >= mediationReqAmount){ //신청금액이 300만원 이하 diff --git a/src/main/webapp/WEB-INF/jsp/seed/_extra/gtm/trublprocessmng/sameTimeFileAtchPop.jsp b/src/main/webapp/WEB-INF/jsp/seed/_extra/gtm/trublprocessmng/sameTimeFileAtchPop.jsp index 114e8ba0..1a7c7997 100644 --- a/src/main/webapp/WEB-INF/jsp/seed/_extra/gtm/trublprocessmng/sameTimeFileAtchPop.jsp +++ b/src/main/webapp/WEB-INF/jsp/seed/_extra/gtm/trublprocessmng/sameTimeFileAtchPop.jsp @@ -204,53 +204,59 @@ function jf_delete_file(target, sizeData){ function fn_gwFileUpload(){ //method_parm :관리자로그 메소드에서 사용.(파일업로드 부분 공통으로 사용하여, 페이지 구분을 위해) if (confirm('기안등록을 진행합니까?')) { - var totFileCnt = 0; + var fileAll = true; $("input[id^='uploadFileCntId']").each(function() { - totFileCnt += parseInt($(this).val()) || 0; // 각 요소의 값을 정수로 변환하여 더함 + var fileCnt = parseInt($(this).val()) || 0; // 각 요소의 값을 정수로 변환하여 더함 + if(fileCnt == 0){ + fileAll = false; + return false; + } }); - if(totFileCnt != '0'){ - var formData = new FormData(document.getElementById('fileForm')); + + if(!fileAll){ + alert("첨부파일을 업로드해 주세요."); + return false; + } + + var formData = new FormData(document.getElementById('fileForm')); + + //그룹웨어에 첨부파일 업로드하기 위한 type="file" 생성 + $("form[id^='fileTempUpFrm']").each(function() { + var form = $(this); + var fileInput = form.find("input[type='file']"); - //그룹웨어에 첨부파일 업로드하기 위한 type="file" 생성 - $("form[id^='fileTempUpFrm']").each(function() { - var form = $(this); - var fileInput = form.find("input[type='file']"); + fileInput.each(function(){ + if (this.files.length > 0) { + formData.append(this.name, this.files[0]); + } + }); + }); + + url = "https://gw.kofair.or.kr/gw/outProcessUpload.do"; + + $.ajax({ + type: "POST", + enctype: 'multipart/form-data', + url: url, + data : formData, + dataType : 'json', + processData: false, + contentType: false, + success: function (returnData, status) { + //그룹웨어 파일키 설정 + $("#fileKey").val(returnData.fileKey); + //fairnet 파일 업로드 및 DB 저장 + $("#type").val("SAMETIME_FILE"); + var param = jQuery('#fileForm').serialize(); + url = "/gtm/case/trublreqstmng/ajax/CaseFileInsert.do"; //파일등록 + XHR2(url, param, function(r){ + fn_gwGo(returnData.fileKey); + }); - fileInput.each(function(){ - if (this.files.length > 0) { - formData.append(this.name, this.files[0]); - } - }); - }); - - url = "https://gw.kofair.or.kr/gw/outProcessUpload.do"; - - $.ajax({ - type: "POST", - enctype: 'multipart/form-data', - url: url, - data : formData, - dataType : 'json', - processData: false, - contentType: false, - success: function (returnData, status) { - //그룹웨어 파일키 설정 - $("#fileKey").val(returnData.fileKey); - //fairnet 파일 업로드 및 DB 저장 - $("#type").val("SAMETIME_FILE"); - var param = jQuery('#fileForm').serialize(); - url = "/gtm/case/trublreqstmng/ajax/CaseFileInsert.do"; //파일등록 - XHR2(url, param, function(r){ - fn_gwGo(returnData.fileKey); - }); - - - }, - error: function (e) { alert("그룹웨어 파일 저장에 실패했습니다."); console.log("ERROR : ", e); } - }); - }else{ - fn_gwGo(''); - } + + }, + error: function (e) { alert("그룹웨어 파일 저장에 실패했습니다."); console.log("ERROR : ", e); } + }); } }