251 lines
8.1 KiB
Plaintext
251 lines
8.1 KiB
Plaintext
<!-- #include virtual = "include/header.asp" -->
|
|
<!-- #include virtual = "include/left.asp" -->
|
|
<%
|
|
|
|
%>
|
|
<!-- Content Wrapper. Contains page content -->
|
|
<div class="content-wrapper">
|
|
<style>
|
|
#rsTb tbody td{
|
|
mso-number-format: '@'
|
|
}
|
|
@keyframes ldio-suc7j3meaz {
|
|
0% { opacity: 1 }
|
|
50% { opacity: .5 }
|
|
100% { opacity: 1 }
|
|
}
|
|
.ldio-suc7j3meaz div {
|
|
margin: 10px;
|
|
display: flex;
|
|
border-radius:30px;
|
|
flex: auto;
|
|
animation: ldio-suc7j3meaz 1s cubic-bezier(0.5,0,0.5,1) infinite;
|
|
}.ldio-suc7j3meaz div:nth-child(1) {
|
|
background: #172f59;
|
|
animation-delay: -0.6s;
|
|
}.ldio-suc7j3meaz div:nth-child(2) {
|
|
background: #ffc000;
|
|
animation-delay: -0.4s;
|
|
}.ldio-suc7j3meaz div:nth-child(3) {
|
|
background: #172f59;
|
|
animation-delay: -0.2s;
|
|
}.ldio-suc7j3meaz div:nth-child(4) {
|
|
background: #ffc000;
|
|
animation-delay: -1s;
|
|
}
|
|
.loadingio-spinner-bars-10euvebw46w {
|
|
z-index: 9999;
|
|
position: fixed;
|
|
left: 0;
|
|
top: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
display: flex;
|
|
background-color:#ffffff80;
|
|
}
|
|
.ldio-suc7j3meaz {
|
|
width: 300px;
|
|
height: 76px;
|
|
margin: auto;
|
|
display: flex;
|
|
}
|
|
</style>
|
|
<!-- Content Header (Page header) -->
|
|
<div class="content-header">
|
|
<h1>ÀÚµ¿ÀüÇ¥</h1>
|
|
</div>
|
|
<!-- /.content-header -->
|
|
<div id="loader" class="loadingio-spinner-bars-10euvebw46w" style="display:none;">
|
|
<div class="ldio-suc7j3meaz">
|
|
<div></div>
|
|
<div></div>
|
|
<div></div>
|
|
<div></div>
|
|
</div>
|
|
</div>
|
|
<!-- Main content -->
|
|
<div class="content-body">
|
|
<div class="content">
|
|
<div class="container-fluid">
|
|
<div class="row">
|
|
<div class="col-12">
|
|
<div class="input-group mb-1">
|
|
<div class="input-group-prepend">
|
|
<span class="input-group-text bg-lightblue justify-content-center">Áõºù¿ù</span>
|
|
</div>
|
|
<select class="form-control" id="searchMonth">
|
|
<% For i = 0 To -7 Step -1 %>
|
|
<option value="<%=LEFT(DateAdd("m", i, date), 7) %>" <%If yyyy & "-" & mm = LEFT(DateAdd("m", i, date), 7) Then %> selected <%End If %>><%=LEFT(DateAdd("m", i, date), 7) %></option>
|
|
<% Next %>
|
|
</select>
|
|
<div class="input-group-addon ml-1">
|
|
<button type="button" class="btn btn-sm btn-success h-100 px-2" id="filterBtn"><i class="fas fa-search"></i></button>
|
|
</div>
|
|
<div class="input-group-prepend ml-1">
|
|
<span class="input-group-text bg-olive justify-content-center">Ű¿öµå (¸ðµç Ç׸ñ)</span>
|
|
</div>
|
|
<input type="text" class="form-control border w-50" id="f-keyword" value="">
|
|
<div class="input-group-addon ml-1">
|
|
<button type="button" class="btn btn-sm btn-success h-100 px-2" id="excel_btn">Excel Download</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="col-12 mt-2">
|
|
<div style="height:650px;overflow-y:scroll;" id="rsTb">
|
|
<table class="table table-sm table-sm2 table-bordered table-head tr-colors" style="font-size:10px;letter-spacing:-1px;">
|
|
<thead>
|
|
<tr>
|
|
<td class="align-middle text-center">ȸ»çÄÚµå</td>
|
|
<td class="align-middle text-center">»ç¾÷ÀåÄÚµå</td>
|
|
<td class="align-middle text-center">ÀڷᱸºÐ</td>
|
|
<td class="align-middle text-center">ÀüÇ¥À¯Çü</td>
|
|
<td class="align-middle text-center">¹ß»ýÀÏÀÚ</td>
|
|
<td class="align-middle text-center">°ú¼¼±¸ºÐ</td>
|
|
<td class="align-middle text-center">°ø±Þ°¡¾×</td>
|
|
<td class="align-middle text-center">ºÎ°¡¼¼</td>
|
|
<td class="align-middle text-center">ÇÕ°è¾×</td>
|
|
<td class="align-middle text-center">¿Ü»ó/¹ÌÁö±Þ±Ý</td>
|
|
<td class="align-middle text-center">»ç¾÷ÀÚ¹øÈ£</td>
|
|
<td class="align-middle text-center">ǰÀdz»¿ª</td>
|
|
<td class="align-middle text-center">Àû¿ä³»¿ª</td>
|
|
<td class="align-middle text-center">»ç¿ëºÎ¼</td>
|
|
<td class="align-middle text-center">ÇÁ·ÎÁ§Æ®</td>
|
|
<td class="align-middle text-center">ÇÁ·ÎÁ§Æ®ÄÚµå</td>
|
|
<td class="align-middle text-center">»çÀ¯±¸ºÐ</td>
|
|
<td class="align-middle text-center">ÀüÀÚ¿©ºÎ</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="align-middle text-center">CO_CD</td>
|
|
<td class="align-middle text-center">IN_DIV_CD</td>
|
|
<td class="align-middle text-center">ACCT_TY</td>
|
|
<td class="align-middle text-center">ACCT_FG</td>
|
|
<td class="align-middle text-center">REF_DT</td>
|
|
<td class="align-middle text-center">TAX_FG</td>
|
|
<td class="align-middle text-center">CLSG_AM</td>
|
|
<td class="align-middle text-center">CLSV_AM</td>
|
|
<td class="align-middle text-center">CLSH_AM</td>
|
|
<td class="align-middle text-center">MISU_AM</td>
|
|
<td class="align-middle text-center">REG_NB</td>
|
|
<td class="align-middle text-center">ISU_DOC</td>
|
|
<td class="align-middle text-center">RMK_DC</td>
|
|
<td class="align-middle text-center">CT_DEPT</td>
|
|
<td class="align-middle text-center">PJT_CD</td>
|
|
<td class="align-middle text-center"> </td>
|
|
<td class="align-middle text-center">NONSUB_TY</td>
|
|
<td class="align-middle text-center">JEONJA_YN</td>
|
|
</tr>
|
|
</thead>
|
|
<tbody></tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<!-- /.content -->
|
|
<%
|
|
|
|
%>
|
|
<!-- REQUIRED SCRIPTS -->
|
|
<script>
|
|
var retJson = [];
|
|
var pjtCdList = [];
|
|
var seT = undefined;
|
|
$(function(){
|
|
$("#filterBtn").on("click", function(){
|
|
var searchMonth = $("#searchMonth").children("option:selected").val();
|
|
$.ajax({
|
|
url: "/approval/doc_confirm_ajax.asp",
|
|
type: "POST",
|
|
data: {"command":"douzone", "smonth":searchMonth},
|
|
beforeSend: function(){
|
|
$("#loader").show();
|
|
},
|
|
success: function(ret){
|
|
retJson = JSON.parse(ret);
|
|
setTableData(retJson);
|
|
pjtCdList = uniq($.grep(retJson, function(obj){ return obj.pjt_chk == "1"; }), ["CO_CD", "PJT_CD", "p_child_sn"]);
|
|
if(pjtCdList.length > 0){
|
|
insertPjtCd(pjtCdList);
|
|
}
|
|
|
|
$("#f-keyword").val("");
|
|
$("#loader").hide();
|
|
}
|
|
});
|
|
});
|
|
|
|
$("#f-keyword").on("keyup", function(){
|
|
if(seT != undefined){
|
|
clearTimeout(seT);
|
|
}
|
|
seT = setTimeout(function(){
|
|
setTableData(retJson);
|
|
}, 500);
|
|
});
|
|
|
|
$("#excel_btn").on("click", function(){
|
|
var dt = new Date().format("yyyyMMdd");
|
|
$("#rsTb > table").table2excel({
|
|
name: "ÀÚµ¿ÀüÇ¥_" + dt,
|
|
filename: "ÀÚµ¿ÀüÇ¥_" + dt,
|
|
fileext: ".xls"
|
|
});
|
|
});
|
|
});
|
|
|
|
function setTableData(jsonList){
|
|
var keyword = $("#f-keyword").val() || "";
|
|
|
|
var tmpJsonList = [];
|
|
if(keyword == ""){
|
|
tmpJsonList = jsonList;
|
|
}else{
|
|
tmpJsonList = $.grep(jsonList, function(obj){ return JSON.stringify(obj).indexOf(keyword) > -1; });
|
|
}
|
|
|
|
var tmpHTML = "";
|
|
$.each(tmpJsonList, function(idx, obj){
|
|
tmpHTML += "<tr>";
|
|
tmpHTML += "<td>"+ obj.CO_CD +"</td>";
|
|
tmpHTML += "<td>"+ obj.IN_DIV_CD +"</td>";
|
|
tmpHTML += "<td>"+ obj.ACCT_TY +"</td>";
|
|
tmpHTML += "<td>"+ obj.ACCT_FG +"</td>";
|
|
tmpHTML += "<td>"+ obj.REF_DT +"</td>";
|
|
tmpHTML += "<td>"+ obj.TAX_FG +"</td>";
|
|
tmpHTML += "<td>"+ obj.CLSG_AM +"</td>";
|
|
tmpHTML += "<td>"+ obj.CLSV_AM +"</td>";
|
|
tmpHTML += "<td>"+ obj.CLSH_AM +"</td>";
|
|
tmpHTML += "<td>"+ obj.MISU_AM +"</td>";
|
|
tmpHTML += "<td>"+ obj.REG_NB +"</td>";
|
|
tmpHTML += "<td>"+ obj.ISU_DOC +"</td>";
|
|
tmpHTML += "<td>"+ obj.RMK_DC +"</td>";
|
|
tmpHTML += "<td>"+ obj.CT_DEPT +"</td>";
|
|
tmpHTML += "<td>"+ obj.PJT_CD +"</td>";
|
|
tmpHTML += "<td>"+ obj.p_child_sn +"</td>";
|
|
tmpHTML += "<td>"+ obj.NONSUB_TY +"</td>";
|
|
tmpHTML += "<td>"+ obj.JEONJA_YN +"</td>";
|
|
tmpHTML += "</tr>";
|
|
});
|
|
|
|
$("#rsTb > table > tbody").html(tmpHTML);
|
|
}
|
|
|
|
function insertPjtCd(pjtArr){
|
|
$.ajax({
|
|
url: "/approval/doc_confirm_ajax.asp",
|
|
type: "POST",
|
|
data: {"command":"douzone_pjt", "pjt":JSON.stringify(pjtArr)},
|
|
beforeSend: function(){
|
|
$("#loader").show();
|
|
},
|
|
success: function(ret){
|
|
$("#loader").hide();
|
|
}
|
|
});
|
|
}
|
|
</script>
|
|
</div>
|
|
<!-- /.content-wrapper -->
|
|
<!-- #include virtual = "include/footer.asp" --> |