최초커밋
This commit is contained in:
251
approval/douzone_excel.asp
Normal file
251
approval/douzone_excel.asp
Normal file
@@ -0,0 +1,251 @@
|
||||
<!-- #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><3E>ڵ<EFBFBD><DAB5><EFBFBD>ǥ</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"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></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">Ű<><C5B0><EFBFBD><EFBFBD> (<28><><EFBFBD><EFBFBD> <20><EFBFBD>)</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">ȸ<><C8B8><EFBFBD>ڵ<EFBFBD></td>
|
||||
<td class="align-middle text-center"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ڵ<EFBFBD></td>
|
||||
<td class="align-middle text-center"><3E>ڷᱸ<DAB7><E1B1B8></td>
|
||||
<td class="align-middle text-center"><3E><>ǥ<EFBFBD><C7A5><EFBFBD><EFBFBD></td>
|
||||
<td class="align-middle text-center"><3E><EFBFBD><DFBB><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td class="align-middle text-center"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td class="align-middle text-center"><3E><><EFBFBD>ް<EFBFBD><DEB0><EFBFBD></td>
|
||||
<td class="align-middle text-center"><3E>ΰ<EFBFBD><CEB0><EFBFBD></td>
|
||||
<td class="align-middle text-center"><3E>հ<EFBFBD><D5B0><EFBFBD></td>
|
||||
<td class="align-middle text-center"><3E>ܻ<EFBFBD>/<2F><><EFBFBD><EFBFBD><EFBFBD>ޱ<EFBFBD></td>
|
||||
<td class="align-middle text-center"><3E><><EFBFBD><EFBFBD><EFBFBD>ڹ<EFBFBD>ȣ</td>
|
||||
<td class="align-middle text-center">ǰ<>dz<EFBFBD><C7B3><EFBFBD></td>
|
||||
<td class="align-middle text-center"><3E><><EFBFBD>䳻<EFBFBD><E4B3BB></td>
|
||||
<td class="align-middle text-center"><3E><><EFBFBD><EFBFBD><EFBFBD>μ<EFBFBD></td>
|
||||
<td class="align-middle text-center"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ</td>
|
||||
<td class="align-middle text-center"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD>ڵ<EFBFBD></td>
|
||||
<td class="align-middle text-center"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td class="align-middle text-center"><3E><><EFBFBD>ڿ<EFBFBD><DABF><EFBFBD></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: "<22>ڵ<EFBFBD><DAB5><EFBFBD>ǥ_" + dt,
|
||||
filename: "<22>ڵ<EFBFBD><DAB5><EFBFBD>ǥ_" + 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" -->
|
||||
Reference in New Issue
Block a user