Merge branch 'JIWOO'

This commit is contained in:
JIWOO 2024-12-27 10:43:23 +09:00
commit 5f3d8cc747
3 changed files with 213 additions and 351 deletions

View File

@ -708,7 +708,8 @@
FILE_FUNC,
COPY_CONTRACT_YN,
FILE_MEMO,
MEMBER_SEQ
MEMBER_SEQ,
FILE_ADD1
) VALUES (
#{rceptNo},
C_CASEFILE_SEQ.NEXTVAL,
@ -726,7 +727,8 @@
#{fileFuncType},
#{copyContractYn},
#{fileMemo},
#{memberSeq,jdbcType=VARCHAR}
#{memberSeq,jdbcType=VARCHAR},
#{fileAdd1}
)
</insert>

View File

@ -17,8 +17,6 @@
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@ taglib prefix="validator" uri="http://www.springmodules.org/tags/commons-validator"%>
<%@ taglib prefix="ckeditor" uri="http://ckeditor.com"%>
<!DOCTYPE html>
<html>
<head>
@ -26,13 +24,6 @@
<meta http-equiv="content-language" content="ko">
<!-- 분쟁조정 -->
<!-- css -->
<link rel="stylesheet" href="/kofair_case_seed/css/reset.css">
<link rel="stylesheet" href="/kofair_case_seed/css/font.css">
<link rel="stylesheet" href="/kofair_case_seed/adm/style/layout.css">
<link rel="stylesheet" href="/kofair_case_seed/adm/style/common.css">
<link rel="stylesheet" href="/kofair_case_seed/adm/style/style.css">
<!-- script -->
<script src="/kofair_case_seed/script/lib/jquery-3.5.0.js"></script>
<script src="/kofair_case_seed/adm/scripts/common.js"></script>
@ -40,29 +31,15 @@
<!-- 분쟁조정 끝 -->
<!-- css -->
<!-- <link rel="stylesheet" href="/kccadrPb/adm/css/reset.css"> -->
<!-- <link rel="stylesheet" href="/kccadrPb/adm/css/font.css"> -->
<!-- <link rel="stylesheet" href="/kccadrPb/adm/css/common.css"> -->
<link rel="stylesheet" href="/kccadrPb/adm/css/content.css">
<link rel="stylesheet" href="/kccadrPb/adm/css/content_media.css">
<!-- script -->
<!-- <script src="/kccadrPb/adm/script/jquery-3.5.0.js"></script> -->
<script src="/kofair_case_seed/script/lib/jquery-migrate-3.3.2.min.js"></script>
<!-- <script src="/kccadrPb/adm/script/common.js"></script> -->
<script src="/kccadrPb/adm/script/content.js"></script>
<script src="/js/ncms_common.js"></script>
<script src="/kccadrPb/adm/script/postcode.js"></script>
<script src="/js/kccadr/kccadrCom.js"></script>
<script src="/js/antdatepicker/moment.min.js"></script>
<!-- 분쟁조정 기존 파일 -->
<!-- <link rel="shortcut icon" href="/img/favicon.ico" type="image/x-icon"> -->
<!-- <link rel="icon" href="/img/favicon.ico" type="image/x-icon"> -->
<!-- css -->
<link rel="stylesheet" href="/css/seed.reset.css">
@ -81,24 +58,9 @@
<link rel="stylesheet" href="/css/case/common.css">
<!-- 캘린더css -->
<link rel="stylesheet" href="/css/case/fullcalendar.min.css">
<link rel="stylesheet" href="/css/case/fullcalendar.print.css" media='print'>
<link rel="stylesheet" href="/css/case/scheduler.min.css">
<link type="text/css" rel="stylesheet" href="/css/case/jquery.qtip.css" />
<link rel="stylesheet" type="text/css" href="/css/clipreport.css">
<link rel="stylesheet" type="text/css" href="/css/UserConfig.css">
<link rel="stylesheet" type="text/css" href="/css/font.css">
<!-- css -->
<!--[if lt IE 9]>
<script src="/js/lib/polyfill/IE9.js"></script>
<script src="/js/lib/polyfill/respond.min.js"></script>
<![endif]-->
<!-- js -->
<!-- 라이브러리, 플러그인 -->
<!-- <script src="/js/lib/jquery-1.9.1.min.js"></script> -->
<script src="/js/lib/jquery-ui.min.js"></script>
<script src="/js/lib/jquery.blockUI.js"></script>
<script src="/js/lib/jquery.pjax.js"></script>
@ -118,7 +80,6 @@
<script src="/js/seed.app.js"></script>
<script src="/js/jquery.form.js"></script>
<script src="/js/commonFileUtil.js"></script>
<script src="/js/common_XHR.js?3"></script>
<script src="/js/common.js"></script>
<script src="/js/DateTimePicker.js"></script>
@ -128,231 +89,187 @@
<script type="text/javascript">
$( document ).ready(function() {
$(function () {
$('#filebutton').click(function (e) {
e.preventDefault();
$('#file_temp').click();
});
});
});
function goList() {
document.searchForm.submit();
}
function fn_egov_regist_notice() {
//CKEDITOR.instances.nttCn.updateElement();
if (confirm('기안등록을 진행합니까?')) {
goSaveUnder_bak();
}
}
/* 글 저장 function */
function goSaveUnder(p_objfileKey ){ //method_parm :관리자로그 메소드에서 사용.(파일업로드 부분 공통으로 사용하여, 페이지 구분을 위해)
/*
if($('#content').length > 0){ //팝업존에서 타이틀 무조건 체크
if('' == $('#content').val()){
alert("이미지 등록시 타이틀은 필수입니다.");
return false;
}
}
*/
/*if(undefined !=$("input[name=limitcount]").val() && ""!=$("input[name=limitcount]").val() ){
if($('#atchFileNece').length > 0 ){
if($('#tbody_fiielist').find('tr').length == 0){
alert("첨부파일을 추가해 주십시오");
return false;
}
}
}*/
var msg;
msg = "해당 첨부파일을 수정하시겠습니까?";
var data = new FormData(document.writeForm == undefined ? document.board : document.writeForm);
_fileForm2.forEach(function(obj, idx) {
if (obj) {
alert(obj);
alert(obj.name);
alert(obj.fileObj.name);
data.append("file"+idx, obj.fileObj);
data.append("uploadFileName", obj.fileObj.name);
data.append("uploadFileReName", obj.fileObj.name);
}
});
var totFileSize = 0;
/*
var form = new FormData();
form.append("file1", fileInput.files[0], "/C:/Users/User/Dropbox/PC/Pictures/관인테스트2.png");
form.append("loginId", "test04");
form.append("deleteYN", "Y");
/
*/
function fileTempUp(){
var url = "";
//url = "https://gw.kofair.or.kr/gw/outProcessUpload.do";
url = "/gtm/newcasebase/fileatchPop/fileAjax.do";
$.ajax({
type: "POST",
enctype: 'multipart/form-data',
url: url,
data: data,
dataType:'json',
//async: false,
processData: false,
contentType: false,
cache: false,
//timeout: 600000,
success: function (returnData, status) {
alert(returnData.resultCode);
alert(returnData.resultMessage);
alert(returnData.fileKey);
if(status == 'success'){ // status 확인 필요한가. 석세스 안뜨면 에러 가지 않나
if("fail"==returnData.result){
alert(returnData.message);
return;
}
alert("저장 되었습니다.");
//top.window.opener.nanumCall_bef('1', '${caseNo } 사건착수보고', p_objfileKey);
//goList();
} else if(status== 'fail'){
alert("저장에 실패하였습니다. !!");
}
},
error: function (e) { alert("저장에 실패하였습니다."); console.log("ERROR : ", e); }
});
}
function goSaveUnder_bak(){ //method_parm :관리자로그 메소드에서 사용.(파일업로드 부분 공통으로 사용하여, 페이지 구분을 위해)
//alert("1");
var form = new FormData();
//form.append("file1", fileInput.files[0], "/C:/Users/User/Dropbox/PC/Pictures/관인테스트2.png");
form.append("loginId", "test04");
form.append("deleteYN", "Y");
// alert("12");
var data = new FormData(document.writeForm == undefined ? document.board : document.writeForm);
_fileForm2.forEach(function(obj, idx) {
if (obj) {
//alert(obj);
//alert("file"+idx);
//alert(obj.name);
//alert(obj.fileObj.name);
form.append("file1", obj.fileObj, obj.fileObj.name);
}
});
var settings = {
"url": "https://gw.kofair.or.kr/gw/outProcessUpload.do",
"method": "POST",
"timeout": 0,
/*
"headers": {
"Cookie": "JSESSIONID=D5980CAFD7B89C237AF04D345D612D53"
},
*/
"processData": false,
"mimeType": "multipart/form-data",
"contentType": false,
"data": form
};
$.ajax(settings).done(function (response) {
alert(response);
const obj = JSON.parse(response);
alert(obj.fileKey);
//top.window.opener.nanumCall_bef('1', '${caseNo } 사건착수보고', obj.fileKey);
//goSaveUnder(obj.fileKey);
});
}
function goList() {
//document.searchForm.action = "<c:url value='/cop/bbs/selectBoardList.do'/>";
//document.searchForm.submit();
window.close();
}
function fn_egov_regist_preview() {
var PCC_window = window.open('', 'PCCV3Window', 'width=850, height=570, resizable=1, scrollbars=yes, status=0, titlebar=0, toolbar=0, left=350, top=50' );
var previewImgs = "";
var i = 0;
$("#DIV_IMG_VIEW").find("img").each(function() {
previewImgs += $(this).get(0).src + "^";
i++;
});
document.board.previewImgs.value = previewImgs;
document.board.action = "<c:url value='/cop/bbs/bbsPreview.do'/>";
document.board.target = "PCCV3Window";
document.board.submit();
}
function checkFileNo(){
var liSize = $("#upFileHtml li").size();
if(liSize > 1){
alert("이미지는 한개만 업로드 가능합니다. 삭제후 업로드 해 주세요.");
if($("#upFile").val() == ""){
alert("파일을 선택해 주세요");
$("#upFile").focus();
return false;
}
fileTempUp('trublchargermng');
var limitCount = $("#limitCount").val();
var nowCount = $("#uploadFileCntId").val();
if(nowCount >= limitCount){
alert("파일은 " + limitCount + "개 첨부 가능합니다.");
return false;
}
var val = $("#upFile").val().split("\\");
var fileName = val[val.length-1]; //마지막 화일명
var fileType = fileName.substring(fileName.lastIndexOf("."));//확장자빼오기
extArray = new Array("txt","jpeg","jpg","png","gif","bmp","mp3","mp4","hwp","doc","docx","xls","xlsx","ppt","pptx","pdf","zip","alz");
var extChk = false;
for(var f=0; f<extArray.length; f++){
if("."+extArray[f] == fileType.toLowerCase()){
extChk = true;
break;
}
}
if(!extChk){
alert("업로드 할 수 없는 파일 형식 입니다.");
return false;
}
$("#fileForm").submit();
}
$(function(){
$('#fileForm').ajaxForm({
//보내기전 validation check가 필요할경우
beforeSubmit: function (data, form, option) {
//alert("전송전!!");
//return false;
},
//submit이후의 처리
success: function(response, status){
jf_upload_set(response.fileName, response.reFileName, response.fileSize, response.fileType);
if(response.funcType == "trublchargermng"){
$("#trubleImg").attr("src","/site/case/upload/tempFiles/trublchargermng/"+response.reFileName);
}
},
//ajax error
error: function(){
alert("작업이 실패 했습니다.");
}
});
});
var fileCountFix = 0;
function jf_upload_set(fileName, reFileName, fileSize, fileType){
var sizeData = parseInt(fileSize);
sizeData = sizeData/1024/1024;
var totFileSize = sizeData;
sizeData = sizeData.toFixed(2);
if(totFileSize > 30){
alert("첨부파일 크기가 30Mbyte를 넘었습니다.");
return;
}
var upFileLiLength = parseInt($("#uploadFileCntId").val());
upFileLiLength = upFileLiLength+1;
$("#uploadFileCntId").val(upFileLiLength);
if(fileCountFix==0){
fileCountFix = upFileLiLength;
}
fileCountFix = fileCountFix+1;
var fileHtml = "<li id=\"fileUploadP"+fileCountFix+"\">";
fileHtml = fileHtml+"<img src=\"/img/user/bbs/icon_file.gif\" alt=\"gif\">&nbsp;&nbsp;";
fileHtml = fileHtml+fileName+"&nbsp;&nbsp;("+sizeData+")";
fileHtml = fileHtml+"&nbsp;";
fileHtml = fileHtml+"<a href=\"javascript:;\" onclick=\"javascript:jf_delete_file('"+fileCountFix+"', '"+sizeData+"');\"><img src=\"/img/user/bbs/btn_file_del.png\" alt=\"삭제\"></a>";
fileHtml = fileHtml+"<input type=\"hidden\" name=\"fileIdx\" value=\"\" class=\"fileIdxClass\"/>";
fileHtml = fileHtml+"<input type=\"hidden\" name=\"uploadFileName\" value=\""+fileName+"\" />";
fileHtml = fileHtml+"<input type=\"hidden\" name=\"uploadFileReName\" value=\""+reFileName+"\" />";
fileHtml = fileHtml+"</li>";
$("#upFileHtml").append(fileHtml);
}
function jf_delete_file(deleteNum, sizeData){
var fileIdx = $("#upFileHtml > #fileUploadP"+deleteNum).children(".fileIdxClass").val();
if(fileIdx != ""){
var deleteFileData = $("#deleteFileDataId").val();
if(deleteFileData != ""){
deleteFileData = deleteFileData+","+fileIdx;
}else{
deleteFileData = fileIdx;
}
$("#deleteFileDataId").val(deleteFileData);
}
$("#upFileHtml > #fileUploadP"+deleteNum).remove();
totFileSize = totFileSize-sizeData;
if(totFileSize < 0){
totFileSize = 0;
}
$("#uploadFileCntId").val($("#uploadFileCntId").val() - 1);
}
function fn_gwFileUpload(){ //method_parm :관리자로그 메소드에서 사용.(파일업로드 부분 공통으로 사용하여, 페이지 구분을 위해)
if (confirm('기안등록을 진행합니까?')) {
var fileCnt = $("#uploadFileCntId").val();
if(fileCnt != '0'){
var formData = new FormData(document.getElementById('fileForm'));
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("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('');
}
}
}
function fn_gwGo(fileKey){
window.close();
window.opener.nanumApiByPopup(fileKey);
}
</script>
<title><c:out value='${bdMstr.bbsNm}' /> - 글 등록</title>
<title>기안 파일 첨부하기</title>
<style>
.uploaded_obj{width: 100%;}
</style>
</head>
<body class="window_popup">
<h2 class="title depth02 mb15" style="float:none;">■ 기안파일첨부하기</h2>
<form:form commandName="searchForm" name="searchForm" method="get" action="">
<input name="pageIndex" type="hidden" value="<c:out value='${searchVO.pageIndex}'/>" />
<input name="searchCnd" type="hidden" value="<c:out value='${searchVO.searchCnd}'/>" />
<input name="searchWrd" type="hidden" value="<c:out value='${searchVO.searchWrd}'/>" />
<input name="bbsId" type="hidden" value="<c:out value='${searchVO.bbsId}'/>" />
</form:form>
<form:form commandName="board" name="board" method="post" enctype="multipart/form-data">
<input type="hidden" name="pageIndex" value="<c:out value='${searchVO.pageIndex}'/>" />
<input type="hidden" name="searchCnd" value="<c:out value='${searchVO.searchCnd}'/>" />
<input type="hidden" name="searchWrd" value="<c:out value='${searchVO.searchWrd}'/>" />
<input type="hidden" name="bbsId" value="<c:out value='${bdMstr.bbsId}'/>" />
<input type="hidden" name="previewImgs" value="" />
<input type="hidden" name="checkProhibitCn" value="" />
<input type="hidden" name="siteId" value="<c:out value='${bdMstr.siteId}'/>" />
<input type="hidden" name="pageType" id="pageType" value="insert" />
<input type="hidden" name="fileFuncType" value="trublchargermng" />
<input id="ntceBgnde" name="ntceBgnde" type="hidden" value="">
<input id="ntceEndde" name="ntceEndde" type="hidden" value="">
<!-- 드래그앤 드롭 파라미터 -->
<input type="hidden" name="limitcount" value="1" />
<input type="hidden" name="deleteYN" value="Y" />
<input type="hidden" name="compSeq" value="1000" />
<input type="hidden" name="loginId" value="test04" />
<h2 class="title depth02 mb15" style="float:none;">■ 기안파일첨부하기</h2>
<form id="fileForm" name="fileForm" action="/seed/extra/temp/file.do" method="post" enctype="multipart/form-data">
<!-- cont -->
<div class="cont_wrap">
<div class="box">
@ -360,7 +277,7 @@ function checkFileNo(){
<div class="cont">
<!-- list_상세 -->
<div class="tbType02 col-table data-table left">
<table>
<table>
<colgroup>
<col style="width: 20%">
<col style="width: 80%">
@ -373,76 +290,16 @@ function checkFileNo(){
<th class="req_text">
<p>첨부파일</p>
</th>
<td class="upload_area">
<!-- <input type="text" id="fileNm" size="30" class="file_input" readonly> --><!-- <button type="button" class="btnType01 btn_add_file">파일 첨부하기</button> -->
<input type="file" id="file_temp" name="file_temp" class="uploadFile" style="display:none"/>
<button type="button" id="filebutton" class="btn btn_text btn_30 blue_border btnType01 btn_add_file">파일 첨부하기</button>
<div class="file_wrap file_upload_box no_img_box">
<table class="tbType02">
<caption>첨부파일 리스트 : 파일명, 종류, 크기, 삭제</caption>
<colgroup>
<col style="width: 60%;">
<col style="width: auto;">
<col style="width: 20%;">
<col style="width: 10%;">
</colgroup>
<thead>
<!-- <th>
<input type="checkbox" id="all_check"><label for="all_check"></label>
</th> -->
<th style="text-align:center;">파일 명</th>
<th style="text-align:center;">종류</th>
<th style="text-align:center;">크기</th>
<th style="text-align:center;">삭제</th>
</thead>
<tbody class="tb_file_before">
<tr>
<td colspan="4">
<p>첨부하실 파일을 <span>마우스로 끌어서</span> 넣어주세요.</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="file_wrap fileAfter file_list_div">
<table class="tbType02">
<caption>첨부파일 리스트 : 파일명, 종류, 크기, 삭제</caption>
<colgroup>
<col style="width: 60%">
<col style="width: 10%">
<col style="width: 20%">
<col style="width: 10%">
</colgroup>
<thead>
<!-- <th>
<input type="checkbox" id="all_check"><label for="all_check"></label>
</th> -->
<th style="text-align:center;">파일 명</th>
<th style="text-align:center;">종류</th>
<th style="text-align:center;">크기</th>
<th style="text-align:center;">삭제</th>
</thead>
<tbody id="tbody_fiielist" class="tb_file_after">
<c:forEach var="fileList" items="${fileList}" varStatus="status">
<tr class="item_<c:out value='${fileList.atchFileId}' />_<c:out value='${fileList.fileSn}' /> uploaded_obj">
<input type="hidden" name="fileSize" class="item_file_size" value="${fileList.fileSize}">
<td class="td_filename">
<!-- <img src="/direct/img/upload_hwp_img.png" alt="" /> -->
<span class="file_name_text"><c:out value='${fileList.orignlFileNm}' /></span>
</td>
<td class="td_filesort">
<span class="file_filesort_text" value="<c:out value="${fileList.fileExtsn}"/>"><c:out value="${fileList.fileExtsn}"/></span>
</td>
<td class="td_filesize">
<span class="file_size_text" value="<c:out value="${fileList.fileMg}"/>"><c:out value="${fileList.fileMg}"/></span>
</td>
<td>
<button type="button" class="btn btn_text btn_30 red_border btn_del" onclick="delAtchFile('<c:out value='${fileList.atchFileId}' />', '<c:out value='${fileList.fileSn}' />'); return false;" title="파일삭제">삭제</button>
</td>
</tr>
</c:forEach>
</tbody>
</table>
<td>
<div class="item-box">
<div class="temp-file-area">
<label for="upFile" class="btn-default violet responsive">첨부파일</label>
</div>
<ul class="upFileHtml" id="upFileHtml">
</ul>
<input type="hidden" name="uploadFileCnt" value="0" id="uploadFileCntId" />
<input type="hidden" name="deleteFileData" value="" id="deleteFileDataId" />
</div>
</td>
</tr>
@ -450,47 +307,43 @@ function checkFileNo(){
</tbody>
</table>
</div>
<!-- //list_상세 -->
<!-- btn_wrap -->
<div class="btn_wrap btn_layout01">
<div class="area_left">
<c:if test="${!empty fmsFileList[0].fmsId }">
<button class="btn btn_text btn_46 red_border btnType06" onclick="fn_fmsfile_delete(); return false;">삭 제</button>
</c:if>
</div>
<div class="area_right">
<!-- <button class="btnType04" onclick="fn_egov_regist_preview(); return false;">미리보기</button> -->
<c:if test="${!empty fmsFileList[0].fmsId }">
<button class="btn btn_text btn_46 blue_fill btnType06" onclick="goSave('fmsFile_U'); return false;">수 정</button>
</c:if>
<c:if test="${empty fmsFileList[0].fmsId }">
<button class="btn btn_text btn_46 blue_fill btnType06" onclick="fn_egov_regist_notice(); return false;">기 안 등 록</button>
</c:if>
<button class="btn btn_text btn_46 gray_fill btnType04" onclick="goList(); return false;">닫 기</button>
<button class="btn btn_text btn_46 blue_fill btnType06" onclick="fn_gwFileUpload(); return false;">기 안 등 록</button>
<button class="btn btn_text btn_46 gray_fill btnType04" onclick="window.close();">닫 기</button>
</div>
</div>
<!-- //btn_wrap -->
</div>
</div>
</div>
<input type="hidden" name="fileFuncType" value="trublchargermng" />
<input type="hidden" name="uploadFileCnt" value="0" id="uploadFileCntId" />
<input type="hidden" name="deleteFileData" value="" id="deleteFileDataId" />
<input type="hidden" name="fileFuncType" id="fileFuncType" value="${param.fileFuncType}" />
<input type="hidden" name="fileAdd1" id="fileAdd1" value="${param.caseNo}" /> <!-- 사건번호 - CASEFILE 테이블 내 FILE_ADD1로 저장 -->
<input type="hidden" name="rceptNo" id="rceptNo" value="${param.rceptNo}" /> <!-- 접수번호 - CASEFILE 테이블 내 FILE_NO로 저장 -->
<input type="hidden" name="fileMemo" id="fileMemo" value="${param.approKey}" /> <!-- 문서ID(DOCID) - CASEFILE 테이블 내 저장 -->
<input type="hidden" name="fileGubun" id="fileGubun" value="${param.fileGubun}" />
<input type="hidden" name="uploadFileCnt" value="0" id="uploadFileCntId" />
<input type="hidden" name="deleteFileData" value="" id="deleteFileDataId" />
<input type="hidden" name="limitCount" id="limitCount" value="1"/>
<input type="hidden" name="deleteYN" value="N" />
<input type="hidden" name="compSeq" value="1000" />
<input type="hidden" name="loginId" value="test04" />
<input type="hidden" name="type" id="type" value="" />
<div class="temp-file-area">
<input type="file" name="upFile" id="upFile" class="essential temp-file-hideen" onchange="fileTempUp();" required title="첨부파일" value="" style="ime-mode: disabled;" >
</div>
<!-- //cont -->
</form:form>
<!-- 파일 입시저장을 위한 폼 -->
<form id="fileTempUpFrm" action="/seed/extra/temp/file.do" method="post" enctype="multipart/form-data">
<input type="hidden" name="fileFuncType" value="trublchargermng" />
<div class="temp-file-area">
<input type="file" name="upFile" id="upFile" class="essential temp-file-hideen" onchange="checkFileNo();" required title="첨부파일" value="" style="ime-mode: disabled;" >
</div>
</form>
</form>
<!-- //content 끝 -->
</body>
<script src="/js/jquery.form.js"></script>
<script src="/js/seedFileUtil.js"></script>
</html>

View File

@ -3347,10 +3347,10 @@ function atendReqPopOpen(caseNo){
window.open(popUrl, "", popOption);
}
function fileFirstPopOpen(p_caseNo, p_fileFuncType, p_approKey){
function fileFirstPopOpen(p_caseNo, p_rceptNo, p_fileFuncType, p_approKey, fileGubun){
//alert('작업중')
//return;
var popUrl = "/gtm/case/trublprocessmng/fileAtchPop/jsp/Page.do?caseNo="+p_caseNo+"&fileFuncType="+p_fileFuncType+"&approKey="+p_approKey;
var popUrl = "/gtm/case/trublprocessmng/fileAtchPop/jsp/Page.do?caseNo="+p_caseNo+ "&rceptNo=" + p_rceptNo +"&fileFuncType="+p_fileFuncType+"&approKey="+p_approKey+"&fileGubun="+fileGubun;
var popOption = "width=1024, height=750, resizable=no, scrollbars=no, status=no;";
window.open(popUrl, "", popOption);
}
@ -3741,16 +3741,16 @@ function nanumApi(jobID, codeNo, nanumSubject, obj1, obj2, obj3, obj4,
//$("#subjectStrImsi").val(r.title); //그룹웨어로그인아이디
//$("#contentsStrImsi").val(r.contents);
//착수 보고서 는 첩부파일 팝업을 띄운다.
//착수 보고서 는 첩부파일 팝업을 띄운다. 착수보고 첨부파일 파일구분 값 - 4840000000
if (jobID=='1-1'||jobID=='2-1'
||jobID=='3-1'||jobID=='4-1'
||jobID=='5-1'||jobID=='6-1'){
//fileFirstPopOpen($("#caseNo").val(),'X-1',r.data2.docId);
fileFirstPopOpen($("#caseNo").val(), $("#rceptNo").val(),'x-1',r.data2.docId, '4840000000');
var f = document.nanumViewFrm;
/* var f = document.nanumViewFrm;
f.action = $("#nanumViewFrm #gwCallUrlView").val();
f.target = "_blank";
f.submit();
f.submit(); */
}else{
var f = document.nanumViewFrm;
@ -3776,6 +3776,13 @@ function nanumApi(jobID, codeNo, nanumSubject, obj1, obj2, obj3, obj4,
});
}
function nanumApiByPopup(fileKey){
$("#nanumViewFrm #fileKeyView").val(fileKey);
var f = document.nanumViewFrm;
f.action = $("#nanumViewFrm #gwCallUrlView").val();
f.target = "_blank";
f.submit();
}
//일반기안 띄우기
function nanumCallGeneral(p_jobID, nanumSubject){