Merge branch 'master' of http://yongjoon.cho@vcs.iten.co.kr:9999/itnAdmin/fairnet
This commit is contained in:
commit
0e9fda7c16
@ -90,7 +90,7 @@ public class SeedFileService {
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
System.out.println("uploadFileName");
|
System.out.println("uploadFileName");
|
||||||
System.out.println(uploadFileName.length);
|
/*System.out.println(uploadFileName.length); */
|
||||||
}catch(Exception ex) {
|
}catch(Exception ex) {
|
||||||
ex.printStackTrace();
|
ex.printStackTrace();
|
||||||
}
|
}
|
||||||
|
|||||||
@ -24,6 +24,7 @@ import com.ibm.icu.text.SimpleDateFormat;
|
|||||||
import kcc.let.uat.uia.service.CertService;
|
import kcc.let.uat.uia.service.CertService;
|
||||||
import kcc.let.uat.uia.service.CertVO;
|
import kcc.let.uat.uia.service.CertVO;
|
||||||
import seed.com.gtm.seedfile.SeedFileService;
|
import seed.com.gtm.seedfile.SeedFileService;
|
||||||
|
import seed.common.service.InnorixFileService;
|
||||||
import seed.manager.group.service.ManagerGroupService;
|
import seed.manager.group.service.ManagerGroupService;
|
||||||
import seed.manager.member.service.ManagerMemberService;
|
import seed.manager.member.service.ManagerMemberService;
|
||||||
import seed.manager.site.service.ManagerSiteManagerService;
|
import seed.manager.site.service.ManagerSiteManagerService;
|
||||||
@ -66,6 +67,9 @@ public class WebCounselController {
|
|||||||
@Autowired
|
@Autowired
|
||||||
private CertService certService;
|
private CertService certService;
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private InnorixFileService innorixFileService;
|
||||||
|
|
||||||
@Value("#{config['member.merge']}")
|
@Value("#{config['member.merge']}")
|
||||||
private String memberMerge;
|
private String memberMerge;
|
||||||
|
|
||||||
@ -1009,11 +1013,23 @@ public class WebCounselController {
|
|||||||
service.lawCounselInsert(paramMap);
|
service.lawCounselInsert(paramMap);
|
||||||
paramMap.put("dataIdx", paramMap.get("seq"));
|
paramMap.put("dataIdx", paramMap.get("seq"));
|
||||||
try {
|
try {
|
||||||
|
paramMap.put("dataIdx", paramMap.get("seq"));
|
||||||
fileService.fileInsert(paramMap, request, session);
|
fileService.fileInsert(paramMap, request, session);
|
||||||
}catch(Exception ex) {
|
}catch(Exception ex) {
|
||||||
ex.printStackTrace();
|
ex.printStackTrace();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//이노릭스 대용량 업로드
|
||||||
|
String innorixFileListStr = (String) paramMap.get("innorixFileListVO");
|
||||||
|
if(!"".equals(innorixFileListStr)) {
|
||||||
|
try {
|
||||||
|
paramMap.put("innorixDataIdx", paramMap.get("dataIdx"));
|
||||||
|
innorixFileService.innorixExtraFileInsert(innorixFileListStr, paramMap);
|
||||||
|
}catch(Exception e) {
|
||||||
|
System.out.println("이노릭스에러");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
map.put("siteIdx", "case");
|
map.put("siteIdx", "case");
|
||||||
map.put("url", "/web/user/mypage/case/03/242/myLawCounsel.do");
|
map.put("url", "/web/user/mypage/case/03/242/myLawCounsel.do");
|
||||||
map.put("message", "user.message.mod");
|
map.put("message", "user.message.mod");
|
||||||
|
|||||||
@ -1,6 +1,7 @@
|
|||||||
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
|
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
|
||||||
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
|
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
|
||||||
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
|
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
|
||||||
|
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
|
||||||
|
|
||||||
<!-- css -->
|
<!-- css -->
|
||||||
<link rel="stylesheet" href="/kofair_case_seed/usr/style/counsel.css">
|
<link rel="stylesheet" href="/kofair_case_seed/usr/style/counsel.css">
|
||||||
@ -26,10 +27,21 @@
|
|||||||
<script src="/js/lib/legacy.js"></script>
|
<script src="/js/lib/legacy.js"></script>
|
||||||
<script src="/js/lib/slick.min.js"></script>
|
<script src="/js/lib/slick.min.js"></script>
|
||||||
<script src="/js/seed.user.app.js"></script>
|
<script src="/js/seed.user.app.js"></script>
|
||||||
|
|
||||||
|
<!-- 대용량 파일 업로드 솔루션 -->
|
||||||
|
<spring:eval expression="@property['Globals.Innorix.License']" var="license"/>
|
||||||
|
<script src="<c:url value='/js/kccadr/innorixCommon.js' />"></script>
|
||||||
|
<script src="<c:url value='/innorix/innorix_${license}.js' />"></script>
|
||||||
|
<link rel="stylesheet" href="<c:url value='/innorix/innorix.css'/>" type="text/css">
|
||||||
|
|
||||||
<script src="/js/common_XHR.js"></script>
|
<script src="/js/common_XHR.js"></script>
|
||||||
|
|
||||||
<script type="text/javaScript" language="javascript">
|
<script type="text/javaScript" language="javascript">
|
||||||
|
/* innorix-1
|
||||||
|
첨부파일 업로드 경로 전역 변수 선언
|
||||||
|
*/
|
||||||
|
var directory = "";
|
||||||
|
|
||||||
$( document ).ready(function(){
|
$( document ).ready(function(){
|
||||||
caseGubunCombo();
|
caseGubunCombo();
|
||||||
|
|
||||||
@ -40,8 +52,66 @@
|
|||||||
});
|
});
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/* innorix-2
|
||||||
|
첨부파일 업로드 경로 설정
|
||||||
|
fileFuncType와 세션의 siteId등의 정보를 이용해 업로드 경로 설정
|
||||||
|
*/
|
||||||
|
var fileFuncType = $("#fileFuncType").val();
|
||||||
|
var url = "<c:url value='/seed/innorix/getRealFileDirectoryAjax.do'/>"
|
||||||
|
getFileDirectory(fileFuncType, url, function(result){
|
||||||
|
directory = result;
|
||||||
|
});
|
||||||
|
|
||||||
|
/* innorix-3
|
||||||
|
이노릭스 업로드 컨트롤 생성
|
||||||
|
control 객체는 innorixCommon.js에서 생성
|
||||||
|
*/
|
||||||
|
control = innorix.create({
|
||||||
|
el: '#fileControl', // 컨트롤 출력 HTML 객체 ID
|
||||||
|
transferMode: 'both', // 업로드, 다운로드 혼합사용
|
||||||
|
agent : false,
|
||||||
|
installUrl: "<c:url value='/innorix/install/install.html'/>", // Agent 설치 페이지
|
||||||
|
uploadUrl: "<c:url value='/innorix/exam/seedUpload.jsp'/>", // 업로드 URL
|
||||||
|
allowExtension : ["txt","jpeg","jpg","png","gif","bmp","mp3","mp4","hwp","doc","docx","xls","xlsx","ppt","pptx","pdf","zip","alz"],
|
||||||
|
agent:false
|
||||||
|
});
|
||||||
|
|
||||||
|
/* innorix-5
|
||||||
|
이노릭스 업로드 완료 후
|
||||||
|
콜백 함수로 파일 정보 전달
|
||||||
|
*/
|
||||||
|
control.on('uploadComplete', function (p) {
|
||||||
|
console.log('uploadComplete : ', p);
|
||||||
|
fn_callBackInnorix(p.files); // 파일 정보 DB isnert function
|
||||||
|
});
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
/* innorix-4
|
||||||
|
이노릭스 업로드 시작
|
||||||
|
첨부파일이 있을 시 업로드 후 게시글 작성
|
||||||
|
첨부파일이 없을 시 바로 게시글 작성
|
||||||
|
*/
|
||||||
|
function innorixUpload(){
|
||||||
|
if(control.getUploadFiles().length > 0){
|
||||||
|
var postObj = new Object();
|
||||||
|
postObj.directory = directory;
|
||||||
|
control.setPostData(postObj);
|
||||||
|
control.upload(); // 업로드 시작 */
|
||||||
|
}else{
|
||||||
|
moveFunc('step03');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/* innorix-6
|
||||||
|
게시글 등록 처리
|
||||||
|
첨부파일 정보 DB 등록 및 게시글 등록 처리
|
||||||
|
*/
|
||||||
|
function fn_callBackInnorix(data){
|
||||||
|
$("input[name='innorixFileListVO']").val(JSON.stringify(data));
|
||||||
|
moveFunc('step03');
|
||||||
|
}
|
||||||
|
|
||||||
//조정유형
|
//조정유형
|
||||||
function caseGubunCombo(){
|
function caseGubunCombo(){
|
||||||
var url = "";
|
var url = "";
|
||||||
@ -191,7 +261,6 @@
|
|||||||
<input type="hidden" name="searchType" value="${param.searchType }">
|
<input type="hidden" name="searchType" value="${param.searchType }">
|
||||||
<input type="hidden" name="searchTilte" value="${param.searchTilte }">
|
<input type="hidden" name="searchTilte" value="${param.searchTilte }">
|
||||||
<input type="hidden" name="page" id="page" value="${param.page }">
|
<input type="hidden" name="page" id="page" value="${param.page }">
|
||||||
<input type="hidden" name="fileFuncType" id="fileFuncType" value="exam">
|
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
<div class="sub_content counsel_content">
|
<div class="sub_content counsel_content">
|
||||||
@ -393,22 +462,17 @@
|
|||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th>
|
<th>첨부파일</th>
|
||||||
첨부파일
|
<td colspan="3">
|
||||||
</th>
|
<!-- innorix 대용량 업로드 솔루션 -->
|
||||||
<td colspan="3">
|
<div id="fileControl" class="w100per dragdrop_wrap"></div>
|
||||||
<div class="file_upload_wrap">
|
<input type="button" value="파일선택" class="btn btn_text btn_35 darkblue_border temp-file-button" onclick="control.openFileDialogSingle();"/>
|
||||||
<div class="file_button">
|
<input type="hidden" id="fileFuncType" name="fileFuncType" value="law" />
|
||||||
<input type="file" id="file" class="input_file">
|
<input type="hidden" id="innorixFileListVO" name="innorixFileListVO" value="" />
|
||||||
<label for="file" class="file btn btn_text btn_40 darkblue_border">파일선택</label>
|
<input type="hidden" name="deleteFileData" value="" id="deleteFileDataId" />
|
||||||
</div>
|
</td>
|
||||||
<ul class="file_list fill">
|
</tr>
|
||||||
<li><a href="#none" download="download"><i class="icon file clip"></i><span class="file_name">분쟁조정신청 관련_필요한 첨부이미지_10310.png </span><span class="file_size">457kb</span></a> <button type="button" class="btn btn_only_icon round"><i class="icon delete gray_fill"></i></button></li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
</form>
|
</form>
|
||||||
@ -416,7 +480,8 @@
|
|||||||
<p class="cf_text">※ 위 신청 내용에 따라 상담센터에서 유선으로 일정을 문의드릴 수 있으며, 이후 확정된 상담일자는 마이페이지 메뉴에서 확인하시기 바랍니다.</p>
|
<p class="cf_text">※ 위 신청 내용에 따라 상담센터에서 유선으로 일정을 문의드릴 수 있으며, 이후 확정된 상담일자는 마이페이지 메뉴에서 확인하시기 바랍니다.</p>
|
||||||
|
|
||||||
<div class="btn_wrap right">
|
<div class="btn_wrap right">
|
||||||
<button type="button" class="btn btn_text btn_45 darkblue_fill" onclick="javascript:moveFunc('step03')">신청</button>
|
<!-- <button type="button" class="btn btn_text btn_45 darkblue_fill" onclick="javascript:moveFunc('step03')">신청</button> -->
|
||||||
|
<button type="button" class="btn btn_text btn_45 darkblue_fill" onclick="javascript:innorixUpload();">신청</button>
|
||||||
<button type="button" class="btn btn_text btn_45 darkgray_border" onclick="javascript:moveFunc('step02')">취소</button>
|
<button type="button" class="btn btn_text btn_45 darkgray_border" onclick="javascript:moveFunc('step02')">취소</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@ -345,6 +345,53 @@
|
|||||||
첨부파일이 없을 시 바로 게시글 작성
|
첨부파일이 없을 시 바로 게시글 작성
|
||||||
*/
|
*/
|
||||||
function innorixUpload(){
|
function innorixUpload(){
|
||||||
|
|
||||||
|
if($("#caseGubun").val() == ""){
|
||||||
|
alert("상담분야 선택해주세요.");
|
||||||
|
$("#caseGubun").focus();
|
||||||
|
return false;
|
||||||
|
}else if($("#troubleType").val() == ""){
|
||||||
|
alert("분쟁유형을 선택해주세요.");
|
||||||
|
$("#troubleType").focus();
|
||||||
|
return false;
|
||||||
|
}else if($("#applcntTel01").val() == "" || $("#applcntTel02").val() == "" || $("#applcntTel03").val() == ""){
|
||||||
|
alert("연락처를 입력해주세요.");
|
||||||
|
$("#applcntTel01").focus();
|
||||||
|
return false;
|
||||||
|
}else if($("#counselTitle").val() == ""){
|
||||||
|
alert("상담제목을 입력해주세요.");
|
||||||
|
$("#counselTitle").focus();
|
||||||
|
return false;
|
||||||
|
}else if($("#editorParam_counselContent").val() == ""){
|
||||||
|
alert("상담내용을 선택해주세요.");
|
||||||
|
$("#editorParam_counselContent").focus();
|
||||||
|
return false;
|
||||||
|
}else if($("#counselor").val()){
|
||||||
|
alert("상담자를 입력해주세요.");
|
||||||
|
$("#counselor").focus();
|
||||||
|
return false;
|
||||||
|
}else if($("#counselAppType").val() == ""){
|
||||||
|
alert("상담방법을 입력해주세요.");
|
||||||
|
$("#counselAppType").focus();
|
||||||
|
return false;
|
||||||
|
}else if($("#editorParam_counselAnswer").val() == ""){
|
||||||
|
alert("답변내용을 입력해주세요.");
|
||||||
|
$("#editorParam_counselAnswer").focus();
|
||||||
|
return false;
|
||||||
|
}else if($("#noticeType").val() == ""){
|
||||||
|
alert("통지수단을 입력해주세요.");
|
||||||
|
$("#noticeType").focus();
|
||||||
|
return false;
|
||||||
|
}else if($("#noticeResult").val() == ""){
|
||||||
|
alert("통지결과을 입력해주세요.");
|
||||||
|
$("#noticeResult").focus();
|
||||||
|
return false;
|
||||||
|
}else if($("#counselResertGubun").val() == ""){
|
||||||
|
alert("결과분류를 입력해주세요.");
|
||||||
|
$("#counselResertGubun").focus();
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
if(control.getUploadFiles().length > 0){
|
if(control.getUploadFiles().length > 0){
|
||||||
var postObj = new Object();
|
var postObj = new Object();
|
||||||
postObj.directory = directory;
|
postObj.directory = directory;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user