feat : 초기자료 > 계도처리 다이얼로그 추가
parent
b10a6eac92
commit
014b6f3af0
@ -0,0 +1,132 @@
|
||||
<%--
|
||||
Created by IntelliJ IDEA.
|
||||
User: kurt
|
||||
Date: 2025. 11. 28.
|
||||
Time: 오후 1:46
|
||||
To change this template use File | Settings | File Templates.
|
||||
--%>
|
||||
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
|
||||
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
|
||||
|
||||
|
||||
<div id="guidance_dialog" style="display:none;">
|
||||
<div class="left">
|
||||
<div class="form-grid">
|
||||
|
||||
<!-- 1줄 -->
|
||||
<div class="form-row">
|
||||
<div class="field-group">
|
||||
<div class="lbl">처리사유</div>
|
||||
<div class="fld">
|
||||
<select name="cpInstructAnswer" id="cpInstructAnswer">
|
||||
<option value=""></option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="field-group empty"></div>
|
||||
</div>
|
||||
|
||||
<!-- 2줄 -->
|
||||
<div class="form-row">
|
||||
<div class="field-group">
|
||||
<div class="lbl">처리일자</div>
|
||||
<div class="fld">
|
||||
<input type="text" id="desDate" name="desDate" class="input calender datepicker" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="field-group empty"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="disdoc-btn-area">
|
||||
<button type="button" class="btn btn-light disdoc-btn" name="" id="guide">계도처리</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
|
||||
let fnGuide = {
|
||||
init: () => {
|
||||
|
||||
|
||||
},
|
||||
|
||||
setCode: () => {
|
||||
|
||||
},
|
||||
|
||||
updateGuide: () => {
|
||||
$.ajax({
|
||||
url: "",
|
||||
type: "post",
|
||||
contentType: 'application/json',
|
||||
success: function(response) {
|
||||
|
||||
//다이얼로그 하이드
|
||||
|
||||
|
||||
//네이게이팅 다음으로
|
||||
|
||||
|
||||
|
||||
//로컬스토리지 mmCodes에 해당 mmCode 제거
|
||||
|
||||
|
||||
|
||||
},
|
||||
error: function(xhr, status, error) {
|
||||
$("#result").text("서손처리 실패");
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
|
||||
|
||||
eventListener: () => {
|
||||
$("#guide").on("click", () => {
|
||||
// 처리사유 벨리데이션
|
||||
|
||||
// 날짜 벨리데이션
|
||||
fnGuide.updateGuide();
|
||||
})
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
$(function () {
|
||||
|
||||
/* 다이얼로그 설정 */
|
||||
$("#guidance_dialog").dialog({
|
||||
autoOpen: false,
|
||||
modal: true,
|
||||
resizable: true,
|
||||
// width: "auto",
|
||||
width: 1000,
|
||||
maxHeight: 800,
|
||||
show: { effect: "drop", direction: "left", duration: 200 },
|
||||
hide: { effect: "drop", direction: "left", duration: 200 },
|
||||
title: "계도처리",
|
||||
open: function () {
|
||||
|
||||
}
|
||||
});
|
||||
|
||||
/* 오늘날짜 기본세팅 */
|
||||
$('#desDate').datepicker('setDate', new Date());
|
||||
|
||||
|
||||
|
||||
});
|
||||
|
||||
|
||||
|
||||
</script>
|
||||
Loading…
Reference in New Issue