|
|
|
@ -22,6 +22,8 @@
|
|
|
|
|
<link rel="stylesheet" type="text/css" href="${ctx}/resources/framework/datepicker/datepicker.css" />
|
|
|
|
|
<script type="text/javascript" src="${ctx}/resources/framework/datepicker/datepicker.js" ></script>
|
|
|
|
|
|
|
|
|
|
<!-- [JS] rolling -->
|
|
|
|
|
<script type="text/javascript" src="${ctx}/resources/3rd-party/rolling/js/jquery.vticker-min.js"></script>
|
|
|
|
|
|
|
|
|
|
<!-- [JS/CSS] tui Grid -->
|
|
|
|
|
<link rel="stylesheet" type="text/css" href="${ctx}/resources/3rd-party/tui/grid/4.21.5/tui-grid/tui-grid.css" />
|
|
|
|
@ -32,8 +34,7 @@
|
|
|
|
|
<script type="text/javascript" src="${ctx}/resources/3rd-party/tuiGrid/js/tui-code-snippet.js" ></script>
|
|
|
|
|
<script type="text/javascript" src="${ctx}/resources/3rd-party/tuiGrid/js/xlsx.full.min.js" ></script>
|
|
|
|
|
|
|
|
|
|
<!-- [JS] rolling -->
|
|
|
|
|
<%-- <script type="text/javascript" src="${ctx}/resources/3rd-party/rolling/js/jquery.vticker-min.js"></script> --%>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- [JS] SheetJS -->
|
|
|
|
|
<!-- <script src="https://cdnjs.cloudflare.com/ajax/libs/xlsx/0.16.1/xlsx.full.min.js" ></script> -->
|
|
|
|
@ -82,13 +83,6 @@
|
|
|
|
|
<script type="text/javascript">
|
|
|
|
|
$(document).ready(function(){
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
sessionStorage.setItem("contextpath", "${pageContext.request.contextPath}");
|
|
|
|
|
var ctx = getContextPath();
|
|
|
|
|
var getContextPath = function() {
|
|
|
|
|
return sessionStorage.getItem("contextpath");
|
|
|
|
|
}
|
|
|
|
|
*/
|
|
|
|
|
// FIXME: 디자인 적용 필요
|
|
|
|
|
// blockUI 적용
|
|
|
|
|
$(document).ajaxStart(function(handler){
|
|
|
|
@ -103,50 +97,7 @@
|
|
|
|
|
//초기화
|
|
|
|
|
XitIncludeBase.init();
|
|
|
|
|
});
|
|
|
|
|
<%--
|
|
|
|
|
$.ajaxSetup({
|
|
|
|
|
cache : false,
|
|
|
|
|
beforeSend:function(jqXhr, settings) {
|
|
|
|
|
jqXhr.setRequestHeader('AJAX',true);
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
$( document ).ajaxError(function( event, jqxhr, settings, thrownError ){
|
|
|
|
|
console.log('BizIncludeBase::ajaxError >>>>> ', thrownError)
|
|
|
|
|
if(settings.dataType==undefined){
|
|
|
|
|
//html 문자열을 객체로 변환 후 메시지만 추출
|
|
|
|
|
var doc = document.createElement("html");
|
|
|
|
|
doc.innerHTML = jqxhr.responseText;
|
|
|
|
|
var msg = $(doc).find('.content_body').eq(0).text();
|
|
|
|
|
if(msg == '')
|
|
|
|
|
msg = jqxhr.responseText;
|
|
|
|
|
alert(msg);
|
|
|
|
|
}else if(settings.dataType=='json'){
|
|
|
|
|
//TODO: 에러처리 화면 깨지는 경우 체크해야 함
|
|
|
|
|
//error 발생시 html type인 경우 반영
|
|
|
|
|
//try{
|
|
|
|
|
//const jsonObject = JSON.stringify(jqxhr.responseText);
|
|
|
|
|
//if(typeof jsonObject === 'object') alert(jsonObject.message)
|
|
|
|
|
//else return document.write(jqxhr.responseText);
|
|
|
|
|
|
|
|
|
|
if(jqxhr.responseJSON?.message){
|
|
|
|
|
alert(jqxhr.responseJSON?.message);
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
else {
|
|
|
|
|
document.write(jqxhr.responseText);
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
//}catch{
|
|
|
|
|
// document.write(jqxhr.responseText);
|
|
|
|
|
// return false;
|
|
|
|
|
//}
|
|
|
|
|
|
|
|
|
|
}else {
|
|
|
|
|
console.log('??? alert(jqxhr.responseText) 으로 처리 했는데 .... document.write(jqxhr.responseText)로 처리해야 하지 않을까????? 확인이 필요');
|
|
|
|
|
alert(jqxhr.responseText);
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
--%>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|