이준호 법원연계 개발

This commit is contained in:
leejunho 2024-01-17 17:52:26 +09:00
parent a19cbaa117
commit 7359e9ebe0
13 changed files with 446 additions and 246 deletions

View File

@ -10,6 +10,8 @@ public interface AdjCourtCnctnService {
RestResponse insertCourtCnctn(AdjCourtCnctnVO adjCourtCnctnVO, final MultipartHttpServletRequest multiRequest) throws Exception;
RestResponse insertCourtCnctnFile(AdjCourtCnctnVO adjCourtCnctnVO, final MultipartHttpServletRequest multiRequest) throws Exception;
int adjCourtCnctnListCount(AdjCourtCnctnVO adjCourtCnctnVO) throws Exception;
List<AdjCourtCnctnVO> adjCourtCnctnList(AdjCourtCnctnVO adjCourtCnctnVO) throws Exception;
@ -24,6 +26,8 @@ public interface AdjCourtCnctnService {
public void insertCourtDept(AdjCourtDeptVO adjCourtDeptVO) throws Exception;
public void updateCourtDept(AdjCourtDeptVO adjCourtDeptVO) throws Exception;
public List<AdjCourtDeptVO> selectAdjCourtCnctniDeptPop() throws Exception;
RestResponse insertAdjCourtCnctnDeptPopAjax(AdjCourtDeptVO deptVO) throws Exception;

View File

@ -46,6 +46,10 @@ public class AdjCourtCnctnDAO extends EgovAbstractDAO {
insert("adjCourtCnctnDAO.insertCourtDept", adjCourtDeptVO);
}
public void updateCourtDept(AdjCourtDeptVO adjCourtDeptVO) {
update("adjCourtCnctnDAO.updateCourtDept", adjCourtDeptVO);
}
public List<AdjCourtCnctnVO> selectAdjCourtCnctniFileList(AdjCourtCnctnVO adjCourtCnctnVO) {
return (List<AdjCourtCnctnVO>) list("adjCourtCnctnDAO.selectAdjCourtCnctniFileList", adjCourtCnctnVO);
}

View File

@ -117,6 +117,16 @@ public class AdjCourtCnctnServiceImpl extends EgovAbstractServiceImpl implements
public RestResponse updateCourtCnctn(AdjCourtCnctnVO adjCourtCnctnVO) {
try {
adjCourtCnctnDAO.updateCourtCnctn(adjCourtCnctnVO);
AdjCourtDeptVO adjCourtDeptVO = new AdjCourtDeptVO();
adjCourtDeptVO.setCrtSeq(adjCourtCnctnVO.getCrtSeq());
adjCourtDeptVO.setLastUpdusrId(adjCourtCnctnVO.getLastUpdusrId());
adjCourtDeptVO.setCrtLinkHouse(adjCourtCnctnVO.getCrtLinkHouse());
adjCourtDeptVO.setCrtDeptTy("10");
adjCourtCnctnDAO.updateCourtDept(adjCourtDeptVO);
} catch (Exception e) {
return new RestResponse(HttpStatus.BAD_REQUEST, "수정에 실패하였습니다.", LocalDateTime.now());
}
@ -137,6 +147,11 @@ public class AdjCourtCnctnServiceImpl extends EgovAbstractServiceImpl implements
adjCourtCnctnDAO.insertCourtDept(adjCourtDeptVO);
}
@Override
public void updateCourtDept(AdjCourtDeptVO adjCourtDeptVO) {
adjCourtCnctnDAO.updateCourtDept(adjCourtDeptVO);
}
@Override
public List<AdjCourtDeptVO> selectAdjCourtCnctniDeptPop() {
return adjCourtCnctnDAO.selectAdjCourtCnctniDeptPop();
@ -222,4 +237,28 @@ public class AdjCourtCnctnServiceImpl extends EgovAbstractServiceImpl implements
adjCourtCnctnDAO.updateAdjCourtCnctnEnd(adjCourtCnctnVO);
return new RestResponse(HttpStatus.OK, "등록 되었습니다.", LocalDateTime.now());
}
@Override
public RestResponse insertCourtCnctnFile(AdjCourtCnctnVO adjCourtCnctnVO, final MultipartHttpServletRequest multiRequest) {
try {
final Map<String, MultipartFile> files = multiRequest.getFileMap();
List<FileVO> result = fileUtil.parseFileInf(files, "CRT_", 0, "", "", "");
String atchFileId = fileMngService.insertFileInfs(result);
adjCourtCnctnVO.setCrtAtchFileId(atchFileId);
AdrCourtFileVO adrCourtFileVO = new AdrCourtFileVO();
adrCourtFileVO.setCrtSeq(adjCourtCnctnVO.getCrtSeq());
adrCourtFileVO.setCrtSn(adjCourtCnctnVO.getCrtSn());
adrCourtFileVO.setCrtAtchFileId(atchFileId);
adrCourtFileVO.setCrtAtchFileTy(adjCourtCnctnVO.getCrtAtchFileTy());
adrCourtFileVO.setFrstRegisterId(adjCourtCnctnVO.getFrstRegisterId());
adrCourtFileMngService.insertCourtFileInf(adrCourtFileVO);
} catch (Exception e) {
return new RestResponse(HttpStatus.BAD_REQUEST, "등록에 실패하였습니다.", LocalDateTime.now());
}
return new RestResponse(HttpStatus.OK, "등록 되었습니다.", LocalDateTime.now());
}
}

View File

@ -16,6 +16,9 @@ import egovframework.rte.fdl.security.userdetails.util.EgovUserDetailsHelper;
import egovframework.rte.ptl.mvc.tags.ui.pagination.PaginationInfo;
import kcc.com.cmm.LoginVO;
import kcc.com.cmm.util.StringUtil;
import kcc.com.utl.fcc.service.EgovStringUtil;
import kcc.kccadr.accdnt.ans.service.AnsVO;
import kcc.kccadr.accdnt.ars.service.AdjstReqStatusVO;
import kcc.kccadr.adjCourtCnctn.service.AdjCourtAppVO;
import kcc.kccadr.adjCourtCnctn.service.AdjCourtCnctnService;
import kcc.kccadr.adjCourtCnctn.service.AdjCourtCnctnVO;
@ -107,11 +110,34 @@ public class AdjCourtCnctnController {
@RequestMapping("/kccadr/adjCourtCnctn/adjCourtCnctnDetailTab1.do")
public String adjCourtCnctnDetailTab1(@ModelAttribute("adjCourtCnctnVO") AdjCourtCnctnVO CourtVO, ModelMap model) throws Exception {
AdjCourtCnctnVO adjCourtCnctnVO = adjCourtCnctnService.findByid(CourtVO);
model.addAttribute("courtVO", adjCourtCnctnVO);
List<AdjCourtCnctnVO> list = adjCourtCnctnService.selectAdjCourtCnctniFileList(CourtVO);
model.addAttribute("list", list);
return "kccadr/adjCourtCnctn/adjCourtCnctnDetailTab1";
}
@RequestMapping(value = "/kccadr/adjCourtCnctn/popup/adjCourtCnctnFilePop.do")
public String adjCourtCnctnFilePop(@ModelAttribute("adjCourtCnctnVO") AdjCourtCnctnVO adjCourtCnctnVO, ModelMap model) throws Exception {
LoginVO loginVO = EgovUserDetailsHelper.isAuthenticated() ? (LoginVO) EgovUserDetailsHelper.getAuthenticatedUser() : null;
String userId = loginVO == null ? "" : EgovStringUtil.isNullToString(loginVO.getUniqId());
model.addAttribute("userId", userId);
return "kccadr/adjCourtCnctn/pop/adjCourtCnctnFilePop";
}
@RequestMapping("/kccadr/adjCourtCnctn/popup/adjCourtCnctnFilePopAjax.do")
public ResponseEntity<RestResponse> adjCourtCnctnFilePopAjax(final MultipartHttpServletRequest multiRequest, AdjCourtCnctnVO adjCourtCnctnVO) throws Exception {
LoginVO loginVO = (LoginVO) EgovUserDetailsHelper.getAuthenticatedUser();
adjCourtCnctnVO.setFrstRegisterId(loginVO.getUniqId());
return ResponseEntity.ok().body(adjCourtCnctnService.insertCourtCnctnFile(adjCourtCnctnVO, multiRequest));
}
@RequestMapping("/kccadr/adjCourtCnctn/adjCourtCnctnModify.do")
public String adjCourtCnctnModify(@ModelAttribute("adjCourtCnctnVO") AdjCourtCnctnVO CourtVO, ModelMap model) throws Exception {

View File

@ -204,7 +204,9 @@ public class EgovUserManageServiceImpl extends EgovAbstractServiceImpl implement
userManageVO.setPassword(pass);
int chkCourt_link_house_cnt = userManageDAO.selectUserCourtCnt(userManageVO);
if(!"90".equals(userManageVO.getOfcpsNm())) {
userManageVO.setInsttCode("00");
}
if(chkCourt_link_house_cnt > 0) {
return false;
}

View File

@ -405,6 +405,17 @@
WHERE a.pstinst_code = #crtLinkHouse#
</insert>
<insert id="adjCourtCnctnDAO.updateCourtDept" parameterClass="adjCourtDeptVO">
UPDATE adr_court_dept_mgr a, lettnemplyrinfo b
SET a.esntl_id = b.esntl_id,
a.last_updusr_id = #lastUpdusrId#,
a.last_updt_pnttm = now()
WHERE a.crt_seq = #crtSeq#
AND a.crt_dept_ty = '10'
AND b.pstinst_code = #crtLinkHouse#;
</insert>
<select id="adjCourtCnctnDAO.selectAdjCourtCnctniDeptPop" resultClass="adjCourtDeptVO">
SELECT a.emplyr_id AS emplyrId,
a.user_nm AS userNm,
@ -844,4 +855,35 @@
</update>
<update id="adjCourtCnctnDAO.updateCourtCnctn" parameterClass="adjCourtCnctnVO">
UPDATE adr_court_mgr
SET
crt_ori_no = #crtOriNo#,
crt_no = #crtNo#,
crt_dcsn_de = TO_DATETIME(TO_CHAR(#crtDcsnDe#,'YYYY-MM-DD')),
crt_rcpt_de = TO_DATETIME(TO_CHAR(#crtRcptDe#,'YYYY-MM-DD')),
crt_allct_de = TO_DATETIME(TO_CHAR(#crtAllctDe#,'YYYY-MM-DD')),
crt_rprt_de = TO_DATETIME(TO_CHAR(#crtRprtDe#,'YYYY-MM-DD')),
crt_climnt_nm = #crtClimntNm#,
crt_climnt_phone = #crtClimntPhone#,
crt_climnt_agnt_nm = #crtClimntAgntNm#,
crt_climnt_agt_phone = #crtClimntAgtPhone#,
crt_climnt_info = #crtClimntInfo#,
crt_dfndnt_nm = #crtDfndntNm#,
crt_dfndnt_phone = #crtDfndntPhone#,
crt_dfndnt_agnt_nm = #crtDfndntAgntNm#,
crt_dfndnt_agnt_phone = #crtDfndntAgntPhone#,
crt_dfndnt_info = #crtDfndntInfo#,
crt_cn = #crtCn#,
crt_allct_ddl_de = TO_DATETIME(TO_CHAR(#crtAllctDdlDe#,'YYYY-MM-DD')),
crt_cc_ty = #crtCcTy#,
crt_link_house = #crtLinkHouse#,
crt_agrment = #crtAgrment#,
last_updt_pnttm = NOW(),
last_updusr_id = #lastUpdusrId#
WHERE
crt_seq = #crtSeq#;
</update>
</sqlMap>

View File

@ -372,6 +372,7 @@
SELECT COUNT(1)
FROM lettnemplyrinfo a
WHERE a.pstinst_code = #insttCode#
AND a.esntl_id != #uniqId#
</select>
<update id="userManageDAO.updateUser_S">
@ -435,7 +436,12 @@
ORGNZT_ID = #orgnztId# ,
</isNotNull>
<isNotNull property="insttCode">
PSTINST_CODE = #insttCode# ,
<isEqual property="insttCode" compareValue="00">
PSTINST_CODE = null ,
</isEqual>
<isNotEqual property="insttCode" compareValue="00">
PSTINST_CODE = #insttCode# ,
</isNotEqual>
</isNotNull>
<isNotNull property="emplyrSttusCode">
EMPLYR_STTUS_CODE = #emplyrSttusCode# ,

View File

@ -504,7 +504,7 @@ function authorChangeCourt(){
<tr id="rank4">
<th>연계법원</th>
<td colspan="3">
<kc:select codeId="CC701" id="insttCode" name="insttCode" selectedValue="${userManageVO.insttCode}"/>
<kc:select codeId="CC701" id="insttCode" name="insttCode" selectedValue="${userManageVO.insttCode}" defaultValue="00" defaultText="없음"/>
</td>
</tr>
</c:if>

View File

@ -45,17 +45,14 @@
}
function fncCheckAll(obj, name) {
$("input[name=" + name + "]").each(function(index, item) {
item.checked = $(obj).is(":checked")
})
function fncFileDown(atchFileId, fileSn){
window.open("/cmm/fms/FileDown.do?atchFileId=" + atchFileId + "&fileSn=" + fileSn);
}
function fncDocRegPopup(){
function adjCourtCnctnFilePop(){
var pop = document.pop ;
commonPopWindowopenForm("/kccadr/adjPgrMgr/apm/popup/docRegPop.do" , "750", "550", "docRegPop", $("#pop"));
commonPopWindowopenForm("/kccadr/adjCourtCnctn/popup/adjCourtCnctnFilePop.do" , "750", "550", "docRegPop", $("#pop"));
}
</script>
@ -83,7 +80,7 @@
<thead>
<tr>
<th>일자</th>
<th>일자</th>
<!-- <th>일자</th> -->
<th>문서 구분</th>
<th>문서 명</th>
</tr>
@ -91,19 +88,19 @@
<tbody>
<c:forEach var="list" items="${list}" varStatus="status">
<tr>
<!-- <td> -->
<!-- <p> -->
<%-- <input name="chk" type="checkbox" value="${list.atchFileId}-${list.fileSn}" title="체크"> --%>
<!-- </p> -->
<!-- </td> -->
<td>
<p>
<input name="chk" type="checkbox" value="${list.atchFileId}-${list.fileSn}" title="체크">
</p>
<a href="#" onclick="fncFileDown('${list.atchFileId}', '${list.fileSn}');"><p>${fn:substring(list.frstRegistPnttm, 0, 10)}</p></a>
</td>
<td>
<p>${fn:substring(list.frstRegistPnttm, 0, 10)}</p>
<a href="#" onclick="fncFileDown('${list.atchFileId}', '${list.fileSn}');"><kc:code codeId="CC702" code="${list.crtAtchFileTy}"/></a>
</td>
<td>
<kc:code codeId="CC702" code="${list.crtAtchFileTy}"/>
</td>
<td>
<c:out value="${list.orignlFileNm}"/>
<a href="#" onclick="fncFileDown('${list.atchFileId}', '${list.fileSn}');"><c:out value="${list.orignlFileNm}"/></a>
</td>
</tr>
</c:forEach>
@ -120,7 +117,7 @@
<!-- //list_상세 -->
<div class="btn_wrap btn_layout05" style="margin-top:30px;">
<div class="btn_left_box">
<button type="button" class="btnType02" onclick="fncDocRegPopup(); return false;">문서 등록</button>
<button type="button" class="btnType02" onclick="adjCourtCnctnFilePop(); return false;">문서 등록</button>
</div>
</div>

View File

@ -77,52 +77,6 @@ function fn_goDetail(crtSeq){
<input type="text" class="search_input" id="searchKeyword" name="searchKeyword" value="<c:out value='${adjCourtCnctnVO.searchKeyword}'/>" placeholder="검색어를 입력하세요.">
<button class="btnType07 btn_search" onclick="fncGoList()">검색</button>
</li>
<%-- <li>
<p class="tit_text">결정일자</p>
<div class="radio_wrap">
<span>
<input ${adjCourtCnctnVO.searchMonth2 eq '' ? 'checked' : ''} value="" type="radio" name="searchMonth2" id="searchMonth">
<label for="searchMonth">전체</label>
</span>
<span>
<input ${adjCourtCnctnVO.searchMonth2 eq '1' ? 'checked' : ''} value="1" type="radio" name="searchMonth2" id="searchMonth1">
<label for="searchMonth1">1개월</label>
</span>
<span>
<input ${adjCourtCnctnVO.searchMonth2 eq '3' ? 'checked' : ''} value="3" type="radio" name="searchMonth2" id="searchMonth3">
<label for="searchMonth3">3개월</label>
</span>
<span>
<input ${adjCourtCnctnVO.searchMonth2 eq '6' ? 'checked' : ''} value="6" type="radio" name="searchMonth2" id="searchMonth6">
<label for="searchMonth6">6개월</label>
</span>
<span>
<input ${adjCourtCnctnVO.searchMonth2 eq '99' ? 'checked' : ''} value="99" type="radio" name="searchMonth2" id="searchMonth2Etc">
<label for="searchMonth2Etc">기간지정</label>
</span>
<div id="sel_date" class="sel_date">
<div class="calendar_wrap">
<input type="text" class="startDate inp" title="검색시작일" id="startDate01" name="searchStartDt" value="${adjCourtCnctnVO.searchStartDt}" data-datecontrol="true" readonly>
<div class="calendar_in" id="calendarName_startDate" style="z-index: 9;">
<button type="button" value="달력 팝업 열기" onclick="return calendarOpen('startDate01-lry','',this)" class="btn_cal"></button>
<div id="startDate01-lry" class="calendarPop" style="display: none;">
<iframe id="startDate01-ifrm" name="startDate01-ifrm" class="calendar-frame" src="/kccadrPb/adm/calendar.html" title=" 달력 팝업" frameborder="0" scrolling="no"></iframe>
</div>
</div>
</div>
~
<div class="calendar_wrap">
<input type="text" class="endDate inp" title="검색종료일" id="endDate" name="searchEndDt" value="${adjCourtCnctnVO.searchEndDt}" data-datecontrol="true" readonly>
<div class="calendar_in" id="calendarName_endDate" style="z-index: 9;">
<button type="button" value="달력 팝업 열기" onclick="return calendarOpen('endDate-lry','',this)" class="btn_cal" ></button>
<div id="endDate-lry" class="calendarPop" style="display: none;">
<iframe id="endDate-ifrm" name="endDate-ifrm" class="calendar-frame" src="/kccadrPb/adm/calendar.html"title=" 달력 팝업" frameborder="0" scrolling="no"></iframe>
</div>
</div>
</div>
</div>
</div>
</li> --%>
</ul>
</div>
</div>

View File

@ -12,50 +12,44 @@
<html>
<head>
<meta http-equiv="Content-Language" content="ko" >
<title>법원연계조정관리 - 수정</title>
<title>법원연계 조정 등록</title>
<script type="text/javaScript" language="javascript">
$(document).ready(function(){
// 배당일자, 보고일자 선택하면 발동되는 event
// 소요일 계산
$('#alctnDe, #rprtDe').on('focusin',function(){
$('#crtAllctDe').on('focusin',function(){
var alctnVal = $('#alctnDe').val();
var rprtVal = $('#rprtDe').val();
if(alctnVal && rprtVal)
{
var returnVal = 0;
alctnVal = alctnVal.replaceAll("-", "");
rprtVal = rprtVal.replaceAll("-", "");
returnVal = Number(rprtVal) - Number(alctnVal);
$('#processDay').val('');
$('#processDay').val(returnVal);
}
// 보고월
if($(this).attr('id') === 'rprtDe')
{
var month = $(this).val().split('-')[1].replace(/(^0+)/, "");
$('#rprtMonth').val(month+'월');
}
var alctnVal = $('#crtAllctDe').val();
var returnVal = StringToDate(alctnVal, 45);
$('#crtAllctDdlDe').val(returnVal);
});
$('#filebutton').click(function (e) {
e.preventDefault();
$('#file_temp').click();
});
});
function StringToDate(date, n) {
let yyyy = date.substring(0, 4);
let mm = date.substring(5, 7);
let dd = date.substring(8, 10);
mm = Number(mm) - 1;
function fn_modify(){
let stringNewDate = new Date(yyyy, mm, dd);
stringNewDate.setDate(stringNewDate.getDate() + n);
return stringNewDate.getFullYear() +
"-" + ((stringNewDate.getMonth() + 1) > 9 ? (stringNewDate.getMonth() + 1).toString() : "0" + (stringNewDate.getMonth() + 1)) +
"-" + (stringNewDate.getDate() > 9 ? stringNewDate.getDate().toString() : "0" + stringNewDate.getDate().toString());
}
function fn_regist(){
var msg = "수정 하시겠습니까?"
if(confirm(msg)){
@ -63,15 +57,20 @@ function fn_modify(){
var data = new FormData(document.cnctnForm);
var url= "/kccadr/adjCourtCnctn/adjCourtCnctnUpdateAjax.do";
_fileForm2.forEach(function(obj, idx) {
if (obj) data.append("file"+idx, obj.fileObj);
});
$.ajax({
type: "POST",
url: url,
data: data,
dataType:'json',
async: false,
processData: false,
contentType: false,
cache: false,
enctype: 'multipart/form-data',
url: url,
data: data,
dataType:'json',
async: false,
processData: false,
contentType: false,
cache: false,
success: function (data) {
alert(data.data);
if(data.status == 'OK')
@ -116,7 +115,7 @@ function fn_GoList(){
<div class="box">
<!-- cont_tit -->
<div class="cont_tit">
<h2>법원연계조정수정</h2>
<h2>법원연계조정등록</h2>
<ul class="cont_nav">
<li class="home"><a href="/"><i></i></a></li>
<li>
@ -125,14 +124,15 @@ function fn_GoList(){
<li>
<p>법원연계조정목록</p>
</li>
<li><span class="cur_nav">법원연계조정수정</span></li>
<li><span class="cur_nav">법원연계조정등록</span></li>
</ul>
</div>
<!-- //cont_tit -->
<form id="cnctnForm" name="cnctnForm" method="post">
<input type="hidden" name="courtSeq" value="<c:out value="${courtVO.courtSeq }" />">
<form id="cnctnForm" name="cnctnForm" method="post" enctype="multipart/form-data">
<!-- 드래그앤 드롭 파라미터 -->
<input type="hidden" name="limitcount" value="10" />
<input type="hidden" name="crtSeq" value="${courtVO.crtSeq}"/>
<input type="hidden" name="crtSn" value="1"/>
<div class="cont">
<!-- //cont_tit -->
<div class="tab_cont on">
@ -146,23 +146,15 @@ function fn_GoList(){
<col style="width: 35%;">
</colgroup>
<tbody class="border_0">
<tr>
<th>번호</th>
<td>
<p class="change_text">
<input type="text" id="courtNum" name="courtNum" value="<c:out value="${fn:trim(courtVO.courtNum) }" />"/>
</p>
</td>
</tr>
<tr>
<th>결정일자</th>
<td>
<div id="sel_date" class="sel_date">
<input readonly="readonly" type="text" class="startDate inp" title="결정일자" id="dcsnDe" name="dcsnDe" value="<c:out value="${courtVO.dcsnDe }" />" data-datecontrol="true">
<div class="calendar_in" id="calendarName_dcsnDe" style="z-index: 9;">
<button type="button" value="달력 팝업 열기" onclick="return calendarOpen('dcsnDe-lry','',this)" class="btn_cal"></button>
<div id="dcsnDe-lry" class="calendarPop" style="display: none;">
<iframe id="startDate01-ifrm" name="dcsnDe-ifrm" class="calendar-frame" src="/kccadrPb/adm/calendar.html" title=" 달력 팝업" frameborder="0" scrolling="no"></iframe>
<input readonly="readonly" type="text" class="startDate inp" title="결정일자" id="crtDcsnDe" name="crtDcsnDe" value="${fn:substring(courtVO.crtDcsnDe, 0, 10)}" data-datecontrol="true">
<div class="calendar_in" id="calendarName_crtDcsnDe" style="z-index: 9;">
<button type="button" value="달력 팝업 열기" onclick="return calendarOpen('crtDcsnDe-lry','',this)" class="btn_cal"></button>
<div id="crtDcsnDe-lry" class="calendarPop" style="display: none;">
<iframe id="startDate01-ifrm" name="crtDcsnDe-ifrm" class="calendar-frame" src="/kccadrPb/adm/calendar.html" title=" 달력 팝업" frameborder="0" scrolling="no"></iframe>
</div>
</div>
</div>
@ -170,11 +162,11 @@ function fn_GoList(){
<th>수령일자</th>
<td>
<div id="sel_date" class="sel_date">
<input readonly="readonly" type="text" class="startDate inp" title="결정일자" id="rcvDe" name="rcvDe" value="<c:out value="${courtVO.rcvDe }" />" data-datecontrol="true">
<div class="calendar_in" id="calendarName_rcvDe" style="z-index: 9;">
<button type="button" value="달력 팝업 열기" onclick="return calendarOpen('rcvDe-lry','',this)" class="btn_cal"></button>
<div id="rcvDe-lry" class="calendarPop" style="display: none;">
<iframe id="startDate01-ifrm" name="rcvDe-ifrm" class="calendar-frame" src="/kccadrPb/adm/calendar.html" title=" 달력 팝업" frameborder="0" scrolling="no"></iframe>
<input readonly="readonly" type="text" class="startDate inp" title="수령일자" id="crtRcptDe" name="crtRcptDe" value="${fn:substring(courtVO.crtRcptDe, 0, 10)}" data-datecontrol="true">
<div class="calendar_in" id="calendarName_crtRcptDe" style="z-index: 9;">
<button type="button" value="달력 팝업 열기" onclick="return calendarOpen('crtRcptDe-lry','',this)" class="btn_cal"></button>
<div id="crtRcptDe-lry" class="calendarPop" style="display: none;">
<iframe id="startDate01-ifrm" name="crtRcptDe-ifrm" class="calendar-frame" src="/kccadrPb/adm/calendar.html" title=" 달력 팝업" frameborder="0" scrolling="no"></iframe>
</div>
</div>
</div>
@ -184,34 +176,24 @@ function fn_GoList(){
<th>배당일자</th>
<td>
<div id="sel_date" class="sel_date">
<input readonly="readonly" type="text" class="alctnDe inp" title="배당일자" id="alctnDe" name="alctnDe" value="<c:out value="${courtVO.alctnDe }" />" data-datecontrol="true" onchange="test(this);">
<input readonly="readonly" type="text" class="crtAllctDe inp" title="배당일자" id="crtAllctDe" name="crtAllctDe" value="${fn:substring(courtVO.crtAllctDe, 0, 10)}" data-datecontrol="true" onchange="test(this);">
<div class="calendar_in" id="calendarName_endDate" style="z-index: 9;">
<button type="button" value="달력 팝업 열기" onclick="return calendarOpen('alctnDe-lry','',this)" class="btn_cal" ></button>
<div id="alctnDe-lry" class="calendarPop" style="display: none;">
<iframe id="alctnDe-ifrm" name="alctnDe-ifrm" class="calendar-frame" src="/kccadrPb/adm/calendar.html"title=" 달력 팝업" frameborder="0" scrolling="no"></iframe>
<button type="button" value="달력 팝업 열기" onclick="return calendarOpen('crtAllctDe-lry','',this)" class="btn_cal" ></button>
<div id="crtAllctDe-lry" class="calendarPop" style="display: none;">
<iframe id="crtAllctDe-ifrm" name="crtAllctDe-ifrm" class="calendar-frame" src="/kccadrPb/adm/calendar.html"title=" 달력 팝업" frameborder="0" scrolling="no"></iframe>
</div>
</div>
</div>
</td>
<th>배당월</th>
<td>
<select id="alctnMonth" name="alctnMonth">
<option value="">선택</option>
<c:forEach var="i" begin="1" end="12" step="1">
<option value="${i}" <c:if test="${fn:trim(courtVO.alctnMonth) eq i }">selected="selected"</c:if> >${i}월</option>
</c:forEach>
</select>
</td>
</tr>
<tr>
<th>사무처리기한</th>
<td>
<%-- <input type="text" title="사무처리기한" id="crtAllctDdlDe" name="crtAllctDdlDe" value="${fn:substring(courtVO.crtAllctDdlDe, 0, 10)}"> --%>
<div id="sel_date" class="sel_date">
<input readonly="readonly" type="text" class="officeWorkDe inp" title="사무처리기한" id="officeWorkDe" name="officeWorkDe" value="<c:out value="${courtVO.officeWorkDe }" />" data-datecontrol="true">
<div class="calendar_in" id="calendarName_officeWorkDe" style="z-index: 9;">
<button type="button" value="달력 팝업 열기" onclick="return calendarOpen('officeWorkDe-lry','',this)" class="btn_cal" ></button>
<div id="officeWorkDe-lry" class="calendarPop" style="display: none;">
<iframe id="officeWorkDe-ifrm" name="officeWorkDe-ifrm" class="calendar-frame" src="/kccadrPb/adm/calendar.html"title=" 달력 팝업" frameborder="0" scrolling="no"></iframe>
<input readonly="readonly" type="text" class="crtAllctDdlDe inp" title="배당일자" id="crtAllctDdlDe" name="crtAllctDdlDe" value="${fn:substring(courtVO.crtAllctDdlDe, 0, 10)}" data-datecontrol="true" onchange="test(this);">
<div class="calendar_in" id="calendarName_endDate" style="z-index: 9;">
<button type="button" value="달력 팝업 열기" onclick="return calendarOpen('crtAllctDdlDe-lry','',this)" class="btn_cal" ></button>
<div id="crtAllctDdlDe-lry" class="calendarPop" style="display: none;">
<iframe id="crtAllctDdlDe-ifrm" name="crtAllctDdlDe-ifrm" class="calendar-frame" src="/kccadrPb/adm/calendar.html"title=" 달력 팝업" frameborder="0" scrolling="no"></iframe>
</div>
</div>
</div>
@ -221,123 +203,91 @@ function fn_GoList(){
<th>보고일자</th>
<td>
<div id="sel_date" class="sel_date">
<input readonly="readonly" type="text" class="rprtDe inp" title="보고일자" id="rprtDe" name="rprtDe" value="<c:out value="${courtVO.rprtDe }" />" data-datecontrol="true">
<div class="calendar_in" id="calendarName_rprtDe" style="z-index: 9;">
<button type="button" value="달력 팝업 열기" onclick="return calendarOpen('rprtDe-lry','',this)" class="btn_cal" ></button>
<div id="rprtDe-lry" class="calendarPop" style="display: none;">
<iframe id="rprtDe-ifrm" name="rprtDe-ifrm" class="calendar-frame" src="/kccadrPb/adm/calendar.html"title=" 달력 팝업" frameborder="0" scrolling="no"></iframe>
<input readonly="readonly" type="text" class="crtRprtDe inp" title="보고일자" id="crtRprtDe" name="crtRprtDe" value="${fn:substring(courtVO.crtRprtDe, 0, 10)}" data-datecontrol="true">
<div class="calendar_in" id="calendarName_crtRprtDe" style="z-index: 9;">
<button type="button" value="달력 팝업 열기" onclick="return calendarOpen('crtRprtDe-lry','',this)" class="btn_cal" ></button>
<div id="crtRprtDe-lry" class="calendarPop" style="display: none;">
<iframe id="crtRprtDe-ifrm" name="crtRprtDe-ifrm" class="calendar-frame" src="/kccadrPb/adm/calendar.html"title=" 달력 팝업" frameborder="0" scrolling="no"></iframe>
</div>
</div>
</div>
</td>
<th>보고월</th>
<td>
<!-- <select id="rprtMonth" name="rprtMonth"> -->
<!-- <option value="">선택</option> -->
<%-- <c:forEach var="i" begin="1" end="12" step="1"> --%>
<%-- <option value="${i}">${i}월</option> --%>
<%-- </c:forEach> --%>
<!-- </select> -->
<input type="text" id="rprtMonth" name="rprtMonth" value="<c:out value="${courtVO.rprtMonth }" />" placeholder="보고일자 선택" />
</td>
</tr>
<tr>
<th>소요일</th>
<td>
<input readonly="readonly" type="text" id="processDay" name="processDay" value="<c:out value="${courtVO.processDay }" />" placeholder=""/>
</td>
</tr>
<tr>
<th>본 사건번호</th>
<td>
<input type="text" id="courtOrgNo" name="courtOrgNo" value="<c:out value="${courtVO.courtOrgNo }" />" />
<input type="text" id="crtOriNo" name="crtOriNo" value="${courtVO.crtOriNo}"/>
<kc:select codeId="CC701" id="crtLinkHouse" name="crtLinkHouse" selectedValue="${courtVO.crtLinkHouse}" />
</td>
<th>조정 사건번호</th>
<td>
<input type="text" id="courtNo" name="courtNo" value="<c:out value="${courtVO.courtNo }" />" />
<input type="text" id="crtNo" name="crtNo" value="${courtVO.crtNo}"/>
</td>
</tr>
<tr>
<th>원고 이름</th>
<td>
<input type="text" id="crtClimntNm" name="crtClimntNm" value="${courtVO.crtClimntNm}"/>
</td>
<th>원고 (대리인) 이름</th>
<td>
<input type="text" id="crtClimntAgntNm" name="crtClimntAgntNm" value="${courtVO.crtClimntAgntNm}"/>
</td>
</tr>
<tr>
<th>원고 연락처</th>
<td>
<input type="text" id="crtClimntPhone" name="crtClimntPhone" value="${courtVO.crtClimntPhone}"/>
</td>
<th>원고 (대리인) 연락처</th>
<td>
<input type="text" id="crtClimntAgtPhone" name="crtClimntAgtPhone" value="${courtVO.crtClimntAgtPhone}"/>
</td>
</tr>
<tr>
<th>원고 정보</th>
<td colspan="3">
<textarea name="crtClimntInfo" id="crtClimntInfo" cols="30" rows="3">${courtVO.crtClimntInfo} </textarea>
</td>
</tr>
<tr>
<th>피고 이름</th>
<td>
<input type="text" id="crtDfndntNm" name="crtDfndntNm" value="${courtVO.crtDfndntNm}" />
</td>
<th>피고 (대리인) 이름</th>
<td>
<input type="text" id="crtDfndntAgntNm" name="crtDfndntAgntNm" value="${courtVO.crtDfndntAgntNm}" />
</td>
</tr>
<tr>
<th>피고 연락처</th>
<td>
<input type="text" id="crtDfndntPhone" name="crtDfndntPhone" value="${courtVO.crtDfndntPhone}" />
</td>
<th>피고 (대리인) 연락처</th>
<td>
<input type="text" id="crtDfndntAgntPhone" name="crtDfndntAgntPhone" value="${courtVO.crtDfndntAgntPhone}" />
</td>
</tr>
<tr>
<th>피고 정보</th>
<td colspan="3">
<textarea name="crtDfndntInfo" id="crtDfndntInfo" cols="30" rows="3">${courtVO.crtDfndntInfo} </textarea>
</td>
</tr>
<tr>
<th>분야</th>
<td>
<input type="text" id="courtFld" name="courtFld" value="<c:out value="${courtVO.courtFld }" />" />
</td>
</tr>
<tr>
<th>신청인 정보</th>
<td colspan="3">
<textarea name="aplcnInfo" id="aplcnInfo" value="<c:out value="${courtVO.aplcnInfo }" />" cols="30" rows="3"><c:out value="${courtVO.aplcnInfo }" /></textarea>
</td>
</tr>
<tr>
<th>피신청인 정보</th>
<td colspan="3">
<textarea name="rspndInfo" id="rspndInfo" value="<c:out value="${courtVO.rspndInfo }" />" cols="30" rows="3"><c:out value="${courtVO.rspndInfo }" /></textarea>
</td>
</tr>
<tr>
<th>원고/<br />신청인(대리인)</th>
<td colspan="3">
<textarea name="aplcnDpty" id="aplcnDpty" value="<c:out value="${courtVO.aplcnDpty }" />" cols="30" rows="3"><c:out value="${courtVO.aplcnDpty }" /></textarea>
</td>
</tr>
<tr>
<th>피고/<br />피신청인(대리인)</th>
<td colspan="3">
<textarea name="rspndDpty" id="rspndDpty" value="<c:out value="${courtVO.rspndDpty }" />" cols="30" rows="3"><c:out value="${courtVO.rspndDpty }" /></textarea>
<kc:select codeId="CC002" id="crtCcTy" name="crtCcTy" selectedValue="${courtVO.crtCcTy}" />
</td>
</tr>
<tr>
<th>사건내용</th>
<td colspan="3">
<textarea name="accdntCn" id="accdntCn" value="<c:out value="${courtVO.accdntCn }" />" cols="30" rows="3"><c:out value="${courtVO.accdntCn }" /></textarea>
<textarea name="crtCn" id="crtCn" cols="30" rows="3">${courtVO.crtCn} </textarea>
</td>
</tr>
<tr>
<th>결과</th>
<td>
<input type="text" id="courtRslt" name="courtRslt" value="<c:out value="${courtVO.courtRslt }" />"/>
</td>
</tr>
<tr style="height: 200px;">
<th>세부결과</th>
<td colspan="3">
<textarea id="courtDetailRslt" name="courtDetailRslt" value="<c:out value="${courtVO.courtDetailRslt }" />" cols="30" rows="5"><c:out value="${courtVO.courtDetailRslt }" /></textarea>
</td>
</tr>
<tr>
<th>조정위원</th>
<td>
<input type="text" id="adjCmsnr" name="adjCmsnr" value="<c:out value="${courtVO.adjCmsnr }" />" />
</td>
<th>수당금액</th>
<td>
<input type="text" id="pay" name="pay" value="<c:out value="${courtVO.pay }" />" />
</td>
</tr>
<tr>
<th>대면기일</th>
<td colspan="3">
<input type="text" id="appDe" name="appDe" value="<c:out value="${courtVO.appDe }" />" size="98" />
</td>
</tr>
<tr>
<th>지급일자</th>
<td>
<input type="text" id="pymntDay" name="pymntDay" value="<c:out value="${courtVO.pymntDay }" />" />
</td>
<th>1차연장</th>
<td>
<input type="text" id="extns" name="extns" value="<c:out value="${courtVO.extns }" />" />
</td>
</tr>
<tr>
<th>비고</th>
<td colspan="3">
<textarea name="rmrks" id="rmrks" value="<c:out value="${courtVO.rmrks }" />" cols="30" rows="5"><c:out value="${courtVO.rmrks }" /></textarea>
</td>
</tr>
</tbody>
</table>
</div>
@ -345,7 +295,7 @@ function fn_GoList(){
<div class="btn_wrap btn_layout01">
<div class="area_left"></div>
<div class="area_right">
<button type="button" class="btnType06" onclick="fn_modify(); return false;">수정</button>
<button type="button" class="btnType06" onclick="fn_regist(); return false;">수정</button>
<button type="button" class="btnType03" onclick="fn_GoList(); return false;">목록</button>
</div>
</div>

View File

@ -131,7 +131,7 @@ function fn_GoList(){
<form id="cnctnForm" name="cnctnForm" method="post" enctype="multipart/form-data">
<!-- 드래그앤 드롭 파라미터 -->
<input type="hidden" name="limitcount" value="10" />
<input type="hidden" name="CrtSn" value="1"/>
<input type="hidden" name="crtSn" value="1"/>
<div class="cont">
<!-- //cont_tit -->
<div class="tab_cont on">

View File

@ -0,0 +1,176 @@
<!DOCTYPE html>
<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="ui" uri="http://egovframework.gov/ctl/ui"%>
<%@ 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="kc" uri="/WEB-INF/tlds/kcc_tld.tld"%>
<html lang="ko">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<script type="text/javascript">
</script>
<title>사건문서 등록</title>
<script type="text/javaScript" language="javascript">
$(document).ready(function(){
$('#filebutton').click(function (e) {
e.preventDefault();
$('#file_temp').click();
});
});
function fn_regist(){
var msg = "등록 하시겠습니까?"
if(confirm(msg)){
//신청인 정보 입력
var data = new FormData(document.listForm);
var url= "/kccadr/adjCourtCnctn/popup/adjCourtCnctnFilePopAjax.do";
_fileForm2.forEach(function(obj, idx) {
if (obj) data.append("file"+idx, obj.fileObj);
});
$.ajax({
type: "POST",
enctype: 'multipart/form-data',
url: url,
data: data,
dataType:'json',
async: false,
processData: false,
contentType: false,
cache: false,
success: function (data) {
alert(data.data);
if(data.status == 'OK')
{
window.opener.location.reload();
window.close();
}
else if(data.status == 'Unauthorized' || data.status == 'BAD_REQUEST')
{
return false;
}
},
error: function (e) { alert("저장에 실패하였습니다."); console.log("ERROR : ", e); }
});
}
}
</script>
<style>
.file_wrap .tbType02{border-bottom: 0}
</style>
</head>
<body>
<form id="listForm" name="listForm" method="post" onsubmit="return false;" enctype="multipart/form-data">
<input type="hidden" name="crtSeq" id="crtSeq" value="<c:out value='${adjCourtCnctnVO.crtSeq}'/>" />
<input type="hidden" name="crtSn" id="crtSn" value="<c:out value='${adjCourtCnctnVO.crtSn}'/>" />
<input type="hidden" name="limitcount" value="10" />
<div class="area_popup supm_popup" id="sub">
<div class="cont_popup">
<table class="pop_tbType01">
<caption>사건문서 등록 : 신청인, 피신청인, 관리자가 사건에 관련된 첨부파일을 등록한다.</caption>
<colgroup>
<col style="width: 200px;">
<col style="width: auto;">
</colgroup>
<tbody>
<tr>
<th scope="row">
<p>문서 구분</p>
</th>
<td>
<p>
<kc:select codeId="CC702" id="crtAtchFileTy" name="crtAtchFileTy" selectedValue="10"/>
</p>
</td>
</tr>
<tr>
<th scope="row" class="req_text">
<p>첨부서류</p>
</th>
<td class="upload_area">
<input type="file" id="file_temp" name="file_temp" class="uploadFile" style="display:none"/>
<button type="button" id="filebutton" class="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>작업명</th>
<th>종류</th>
<th>크기</th>
<th>삭제</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>파일 명</th>
<th>종류</th>
<th>크기</th>
<th>삭제</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">
<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_del" onclick="delAtchFile('<c:out value='${fileList.atchFileId}' />', '<c:out value='${fileList.fileSn}' />'); return false;" title="파일삭제"><i></i></button>
</td>
</tr>
</c:forEach>
</tbody>
</table>
</div>
</td>
</tr>
</tbody>
</table>
<!-- 하단 버튼 -->
<div class="btn_wrap btn_layout04">
<button class="btnType06 btn_edit" onclick="fn_regist();">등록</button>
<button class="btnType03 btn_list" onclick="window.close();">닫기</button>
</div>
<!-- //하단 버튼 -->
</div>
</div>
<!-- //cont -->
</form>
</body>
</html>