이지우 - 그룹웨어 첨부파일 연동 시 첨부파일 필수 체크 추가 / 조정결과 송달료 값 변경

This commit is contained in:
JIWOO 2025-03-27 15:31:00 +09:00
parent 1a7062c69d
commit 285178b6da
3 changed files with 57 additions and 48 deletions

View File

@ -251,7 +251,10 @@ function fn_gwFileUpload(){ //method_parm :관리자로그 메소드에서 사
error: function (e) { alert("그룹웨어 파일 저장에 실패했습니다."); console.log("ERROR : ", e); } error: function (e) { alert("그룹웨어 파일 저장에 실패했습니다."); console.log("ERROR : ", e); }
}); });
}else{ }else{
fn_gwGo(''); /* 250327 담당자 요청으로 첨부파일 필수 처리 */
/* fn_gwGo(''); */
alert("첨부파일을 업로드해 주세요.");
return false;
} }
} }
} }

View File

@ -3318,7 +3318,7 @@ function automaticCalc(){
mediationReqAmount 신청금액 mediationReqAmount 신청금액
mediationAmount 조정금액 mediationAmount 조정금액
feeMoney 인지대 feeMoney 인지대
postMoney 송달료 20.01.01 변경 postMoney 송달료 25.04.01 변경
lawyerMoney 변호사수임료 20.01.01 변경 lawyerMoney 변호사수임료 20.01.01 변경
courtMoney 소송비용 courtMoney 소송비용
resultMoney 성과금액 resultMoney 성과금액
@ -3342,7 +3342,7 @@ function automaticCalc(){
mediationBigVal == "0603010000") mediationBigVal == "0603010000")
){ ){
alert("조정금액을 입력하세요."); alert("조정금액을 입력하세요.");
mediationAmount.focus(); $("#mediationAmount").focus();
return false; return false;
} }
@ -3361,8 +3361,8 @@ function automaticCalc(){
feeMoney = Floor((mediationReqAmount * 0.0035) + 555000); feeMoney = Floor((mediationReqAmount * 0.0035) + 555000);
} }
//송달료 값 계산 20.01.01 변경 //송달료 값 계산 25.04.01 변경
postMoney = 76500; postMoney = 78000;
//변호사 수임료 20.01.01 변경 //변호사 수임료 20.01.01 변경
if(3000000 >= mediationReqAmount){ //신청금액이 300만원 이하 if(3000000 >= mediationReqAmount){ //신청금액이 300만원 이하

View File

@ -204,53 +204,59 @@ function jf_delete_file(target, sizeData){
function fn_gwFileUpload(){ //method_parm :관리자로그 메소드에서 사용.(파일업로드 부분 공통으로 사용하여, 페이지 구분을 위해) function fn_gwFileUpload(){ //method_parm :관리자로그 메소드에서 사용.(파일업로드 부분 공통으로 사용하여, 페이지 구분을 위해)
if (confirm('기안등록을 진행합니까?')) { if (confirm('기안등록을 진행합니까?')) {
var totFileCnt = 0; var fileAll = true;
$("input[id^='uploadFileCntId']").each(function() { $("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'));
//그룹웨어에 첨부파일 업로드하기 위한 type="file" 생성 if(!fileAll){
$("form[id^='fileTempUpFrm']").each(function() { alert("첨부파일을 업로드해 주세요.");
var form = $(this); return false;
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);
});
},
error: function (e) { alert("그룹웨어 파일 저장에 실패했습니다."); console.log("ERROR : ", e); }
});
}else{
fn_gwGo('');
} }
var formData = new FormData(document.getElementById('fileForm'));
//그룹웨어에 첨부파일 업로드하기 위한 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);
});
},
error: function (e) { alert("그룹웨어 파일 저장에 실패했습니다."); console.log("ERROR : ", e); }
});
} }
} }