최초커밋
This commit is contained in:
305
inspection/MoneyList.asp
Normal file
305
inspection/MoneyList.asp
Normal file
@@ -0,0 +1,305 @@
|
||||
<!-- #include virtual = "include/header.asp" -->
|
||||
<!-- #include virtual = "include/left.asp" -->
|
||||
<!-- Content Wrapper. Contains page content -->
|
||||
<div class="content-wrapper">
|
||||
<style>
|
||||
button.ui-datepicker-current {
|
||||
display: none;
|
||||
}
|
||||
.txt{
|
||||
font-size: 11px;
|
||||
letter-spacing: 0px;
|
||||
}
|
||||
th.t_label{
|
||||
vertical-align:middle;
|
||||
text-align:center;
|
||||
}
|
||||
.ui-datepicker-trigger{
|
||||
cursor: pointer;
|
||||
}
|
||||
.DTFC_Cloned tbody{
|
||||
cursor:pointer
|
||||
}
|
||||
.dataTables_wrapper .dataTables_filter input{
|
||||
background:#fff;
|
||||
}
|
||||
table.dataTable tbody th, table.dataTable tbody td{
|
||||
padding:2px;
|
||||
}
|
||||
.dataTables_scrollBody > table.dataTable{
|
||||
margin-left:0;
|
||||
}
|
||||
.DTFC_LeftBodyLiner > table.dataTable{
|
||||
width: calc(100% - 2px) !important;
|
||||
}
|
||||
.DTFC_ScrollWrapper{
|
||||
overflow-x: auto;
|
||||
height:536px !important;
|
||||
}
|
||||
.MoneyList_filterSelect{
|
||||
width:220px !important;
|
||||
display:inline-block;
|
||||
}
|
||||
</style>
|
||||
<!-- Content Header (Page header) -->
|
||||
<div class="content-header">
|
||||
<h1><3E><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD></h1>
|
||||
</div>
|
||||
<!-- /.content-header -->
|
||||
<!-- Main content -->
|
||||
<div class="content-body">
|
||||
<div class="content">
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<table class='table table-sm table-sm2 table-bordered table-head tr-colors' id="MoneyList" style="font-size:11px;">
|
||||
<thead class="ui-widget-header">
|
||||
<tr>
|
||||
<th class="t_label select-filter">ȸ<br><3E><></th>
|
||||
<th class="t_label select-filter"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<br><3E>ڵ<EFBFBD></th>
|
||||
<th class="t_label select-filter"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<br><3E><></th>
|
||||
<th class="t_label select-filter"><3E><><br><3E><></th>
|
||||
<th class="t_label select-filter"><3E>ֹ<EFBFBD><br><3E><>ȣ</th>
|
||||
<th class="t_label select-filter"><3E><><br><3E><></th>
|
||||
<th class="t_label select-filter"><3E><><br><3E><></th>
|
||||
<th class="t_label select-filter"><3E><><br><3E><></th>
|
||||
<th class="t_label select-filter"><3E><><br><3E>ݾ<EFBFBD></th>
|
||||
<th class="t_label select-filter"><3E>ٹ<EFBFBD><br><3E><>¥</th>
|
||||
<th class="t_label select-filter"><3E><><EFBFBD><EFBFBD><br><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></th>
|
||||
<th class="t_label select-filter"><3E><>ȭ<br><3E><>ȣ</th>
|
||||
<th class="t_label select-filter"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></th>
|
||||
<th class="t_label select-filter"><3E><><EFBFBD><EFBFBD><br><3E><>ȣ</th>
|
||||
<th class="t_label select-filter"><3E><><EFBFBD><EFBFBD>No</th>
|
||||
<th class="t_label select-filter"><3E><><EFBFBD><EFBFBD><br>S/V</th>
|
||||
<th class="t_label select-filter"><3E>Է<EFBFBD><br><3E><>¥</th>
|
||||
<th class="t_label select-filter"><3E><><EFBFBD><EFBFBD><br><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ</th>
|
||||
<th class="t_label select-filter"><3E><><br><3E><></th>
|
||||
</tr>
|
||||
</thead>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /.content -->
|
||||
<!-- REQUIRED SCRIPTS -->
|
||||
<script>
|
||||
var lang_kor = {
|
||||
"decimal" : "",
|
||||
"emptyTable" : "<22>˻<EFBFBD><CBBB><EFBFBD> <20><><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE> <20><><EFBFBD><EFBFBD><EFBFBD>ϴ<EFBFBD>.(<28>ٹ<EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>Ͽ<EFBFBD> <20>ֽʽÿ<CABD>.)",
|
||||
"info" : "_START_ - _END_ (<28><> _TOTAL_ <20><>)",
|
||||
"infoEmpty" : "0<><30>",
|
||||
"infoFiltered" : "(<28><>ü _MAX_ <20><> <20><> <20>˻<EFBFBD><CBBB><EFBFBD><EFBFBD><EFBFBD>)",
|
||||
"infoPostFix" : "",
|
||||
"thousands" : ",",
|
||||
"lengthMenu" : "_MENU_ <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>",
|
||||
"loadingRecords" : " ",
|
||||
"processing" : "Loading...",
|
||||
"search" : "<22>˻<EFBFBD> : ",
|
||||
"zeroRecords" : "<22>˻<EFBFBD><CBBB><EFBFBD> <20><><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE> <20><><EFBFBD><EFBFBD><EFBFBD>ϴ<EFBFBD>.(<28>ٹ<EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>Ͽ<EFBFBD> <20>ֽʽÿ<CABD>.)",
|
||||
"paginate" : {
|
||||
"first" : "ù <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>",
|
||||
"last" : "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>",
|
||||
"next" : "<22><><EFBFBD><EFBFBD>",
|
||||
"previous" : "<22><><EFBFBD><EFBFBD>"
|
||||
},
|
||||
"aria" : {
|
||||
"sortAscending" : " : <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>",
|
||||
"sortDescending" : " : <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>"
|
||||
},
|
||||
"buttons":{
|
||||
"colvisRestore": "<22>ʱ<EFBFBD>ȭ"
|
||||
}
|
||||
};
|
||||
|
||||
var table = $('#MoneyList').DataTable({
|
||||
"ajax":{
|
||||
"type": "POST",
|
||||
"url": "Ajax_Money.asp",
|
||||
"dataType": "JSON",
|
||||
"async": "true",
|
||||
"data":{
|
||||
MoneyDate: function(){ if($("#MoneyDate").val() !=undefined){return $("#MoneyDate").val()}else{ return (new Date()).format("yyyy-MM") }}
|
||||
}
|
||||
},
|
||||
"columns":[
|
||||
{"data": "Company", "class":"txt dt-body-center details-control",},//0
|
||||
{"data": "P_Sn", "class":"txt dt-body-center",},//1
|
||||
{"data": "P_Subject", "class":"txt dt-body-center",},//2
|
||||
{"data": "P_Name", "class":"txt dt-body-center",},//3
|
||||
{"data": "M_Jumin", "class":"txt dt-body-center",},//4
|
||||
{"data": "M_Work", "class":"txt dt-body-center",},//5
|
||||
{"data": "Danga", "class":"txt dt-body-center",},//6
|
||||
{"data": "Cnt", "class":"txt dt-body-center",},//7
|
||||
{"data": "Allowance", "class":"txt dt-body-center",},//8
|
||||
{"data": "WorkDate", "class":"txt dt-body-center",},//9
|
||||
{"data": "Doc_Date", "class":"txt dt-body-center",},//10
|
||||
{"data": "M_Phone", "class":"txt dt-body-center",},//11
|
||||
{"data": "M_Bank", "class":"txt dt-body-center",},//12
|
||||
{"data": "M_Acount", "class":"txt dt-body-center",},//13
|
||||
{"data": "P_No", "class":"txt dt-body-center",},//14
|
||||
{"data": "P_SV", "class":"txt dt-body-center",},//15
|
||||
{"data": "ConfirmDate", "class":"txt dt-body-center",},//16
|
||||
{"data": "D_No", "class":"txt dt-body-center",},//17
|
||||
{"data": "M_Gubun", "class":"txt dt-body-center",},//18
|
||||
],
|
||||
"columnDefs":[
|
||||
{"width":"12%", "targets":2},
|
||||
{"searchable":false, "visible":false, "targets":14},
|
||||
],
|
||||
"dom":'lBfrtip',
|
||||
"scrollY":"450px",
|
||||
'processing': true,
|
||||
"fixedHeader": true,
|
||||
"language":lang_kor,
|
||||
"paging":false,
|
||||
"order": [[ 1, "asc" ]],
|
||||
"cache":true,
|
||||
"autoWidth":false,
|
||||
"buttons": [
|
||||
{
|
||||
extend: 'copy',
|
||||
text: 'List Copy',
|
||||
},
|
||||
{
|
||||
extend: 'excel',
|
||||
text: 'Excel Down',
|
||||
title: '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>(Excel)'
|
||||
},
|
||||
{
|
||||
extend: 'csv',
|
||||
text: 'CSV',
|
||||
title: '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>(<28><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>)',
|
||||
exportOptions: {
|
||||
modifier: {
|
||||
search: 'none'
|
||||
}
|
||||
}
|
||||
},
|
||||
],
|
||||
"filterDropDown": {
|
||||
columns: [
|
||||
{ idx: 9 },
|
||||
{ idx: 3 },
|
||||
{ idx: 1 },
|
||||
{ idx: 2 },
|
||||
{ idx: 15}
|
||||
],
|
||||
}
|
||||
});
|
||||
|
||||
function TableFilter(json){
|
||||
$("#MoneyList_filterSelect9").empty();
|
||||
$("#MoneyList_filterSelect3").empty();
|
||||
$("#MoneyList_filterSelect1").empty();
|
||||
$("#MoneyList_filterSelect2").empty();
|
||||
$("#MoneyList_filterSelect15").empty();
|
||||
|
||||
var arr=[];
|
||||
var arr2=[];
|
||||
for(var i=0; i<json.data.length; i++){
|
||||
if(arr.indexOf(json.data[i].WorkDate) == -1){
|
||||
arr.push(json.data[i].WorkDate);
|
||||
}
|
||||
}
|
||||
arr.sort();
|
||||
$("#MoneyList_filterSelect9").append("<option value=''><3E>ٹ<EFBFBD><D9B9><EFBFBD>¥</option>");
|
||||
for(var i=0; i<arr.length; i++){
|
||||
$("#MoneyList_filterSelect9").append("<option value='"+arr[i]+"'>"+arr[i]+"</option>");
|
||||
}
|
||||
arr.length=0;
|
||||
|
||||
for(var i=0; i<json.data.length; i++){
|
||||
if(arr.indexOf(json.data[i].P_Name) == -1){
|
||||
arr.push(json.data[i].P_Name);
|
||||
}
|
||||
}
|
||||
arr.sort();
|
||||
$("#MoneyList_filterSelect3").append("<option value=''><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></option>");
|
||||
for(var i=0; i<arr.length; i++){
|
||||
$("#MoneyList_filterSelect3").append("<option value='"+arr[i]+"'>"+arr[i]+"</option>");
|
||||
}
|
||||
arr.length=0;
|
||||
|
||||
for(var i=0; i<json.data.length; i++){
|
||||
if(arr.indexOf(json.data[i].P_Sn) == -1){
|
||||
arr.push(json.data[i].P_Sn);
|
||||
}
|
||||
}
|
||||
arr.sort();
|
||||
$("#MoneyList_filterSelect1").append("<option value=''><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD>ڵ<EFBFBD></option>");
|
||||
for(var i=0; i<arr.length; i++){
|
||||
$("#MoneyList_filterSelect1").append("<option value='"+arr[i]+"'>"+arr[i]+"</option>");
|
||||
}
|
||||
arr.length=0;
|
||||
|
||||
|
||||
for(var i=0; i<json.data.length; i++){
|
||||
if(arr.indexOf(json.data[i].P_Subject) == -1){
|
||||
arr.push(json.data[i].P_Subject);
|
||||
}
|
||||
}
|
||||
arr.sort();
|
||||
$("#MoneyList_filterSelect2").append("<option value=''><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE></option>");
|
||||
for(var i=0; i<arr.length; i++){
|
||||
$("#MoneyList_filterSelect2").append("<option value='"+arr[i]+"'>"+arr[i]+"</option>");
|
||||
}
|
||||
arr.length=0;
|
||||
for(var i=0; i<json.data.length; i++){
|
||||
if(arr.indexOf(json.data[i].P_SV) == -1){
|
||||
arr.push(json.data[i].P_SV);
|
||||
}
|
||||
}
|
||||
arr.sort();
|
||||
$("#MoneyList_filterSelect15").append("<option value=''><3E><><EFBFBD><EFBFBD>S/V</option>");
|
||||
for(var i=0; i<arr.length; i++){
|
||||
$("#MoneyList_filterSelect15").append("<option value='"+arr[i]+"'>"+arr[i]+"</option>");
|
||||
}
|
||||
arr.length=0;
|
||||
}
|
||||
|
||||
$(function() {
|
||||
var hh="";
|
||||
hh += "<div style='display: inline-block;float: right;'>";
|
||||
hh += " <label><3E>ٹ<EFBFBD><D9B9><EFBFBD>: </label>";
|
||||
hh += " <input type='text' style='cursor:pointer;' class='date' name='MoneyDate' id='MoneyDate' value='"+(new Date()).format("yyyy-MM")+"' readonly='readonly' />";
|
||||
hh += "</div>";
|
||||
|
||||
$("#MoneyList_filterWrapper").append(hh);
|
||||
|
||||
$('#MoneyDate').datepicker({
|
||||
dateFormat: 'mm-yy',
|
||||
changeMonth: true,
|
||||
changeYear: true,
|
||||
showButtonPanel: true,
|
||||
onClose: function(dateText, inst) {
|
||||
var month = $("#ui-datepicker-div .ui-datepicker-month :selected").val();
|
||||
var year = $("#ui-datepicker-div .ui-datepicker-year :selected").val();
|
||||
$(this).val($.datepicker.formatDate('yy-mm', new Date(year, month, 1)));
|
||||
|
||||
table.ajax.reload( function ( json ){
|
||||
TableFilter(json);
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
$("#MoneyDate").focus(function () {
|
||||
$(".ui-datepicker-calendar").hide();
|
||||
$("#ui-datepicker-div").position({
|
||||
my: "center top",
|
||||
at: "center bottom",
|
||||
of: $(this)
|
||||
});
|
||||
});
|
||||
|
||||
$("#MoneyDate").on('click', function () {
|
||||
var selDate = new Date($("#MoneyDate").val());
|
||||
$("#ui-datepicker-div .ui-datepicker-year option[value='" + selDate.getFullYear() + "']").prop("selected", true);
|
||||
$("#ui-datepicker-div .ui-datepicker-month option[value='" + selDate.getMonth() + "']").prop("selected", true);
|
||||
});
|
||||
});
|
||||
</script>
|
||||
</div>
|
||||
<!-- /.content-wrapper -->
|
||||
<!-- #include virtual = "include/footer.asp" -->
|
||||
Reference in New Issue
Block a user