20260907 :: 김현정 > 260824 PMS 개선 요청_경영문화본부 1차 반영

This commit is contained in:
2026-09-07 14:55:51 +09:00
parent 60caf35218
commit e46f88d6fb
13 changed files with 729 additions and 1725 deletions

View File

@@ -1,13 +1,22 @@
<!-- #include virtual = "include/header.asp" -->
<!-- #include virtual = "include/left.asp" -->
<%
p_statistics = request("p_statistics")
If p_statistics = "" Then
p_statistics = year(date)
p_statistics_start = request("p_statistics_start")
p_statistics_end = request("p_statistics_end")
If p_statistics_start = "" Then
p_statistics_start = year(date)
If cint(month(date)) <= 3 Then
p_statistics = p_statistics - 1 ' 4<><34> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>⵵ <20><><EFBFBD><EFBFBD> <20><><EFBFBD>̰<EFBFBD>
p_statistics_start = p_statistics_start - 1 ' 4<><34> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>⵵ <20><><EFBFBD><EFBFBD> <20><><EFBFBD>̰<EFBFBD>
End If
End If
If p_statistics_end = "" Then
p_statistics_end = p_statistics_start
End If
If cint(p_statistics_start) > cint(p_statistics_end) Then
tmpYear = p_statistics_start
p_statistics_start = p_statistics_end
p_statistics_end = tmpYear
End If
nowDate = now()
p_costType = request("p_costType")
@@ -91,7 +100,14 @@ p_costType = request("p_costType")
</tr>
<tr>
<td>
Filter <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ϼ<EFBFBD><CFBC><EFBFBD>.
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td>Filter <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ϼ<EFBFBD><CFBC><EFBFBD>.</td>
<td align="right">
<input type="button" id="btnExport" value="Excel Download"/>
</td>
</tr>
</table>
</td>
</tr>
<tr>
@@ -99,9 +115,15 @@ p_costType = request("p_costType")
<table class="table table-sm table-sm2 table-bordered table-head tr-colors" style="font-size:12px;">
<tr>
<td bgcolor="#DFDFDF" style="padding-left:10px;">
<select id="p_statistics">
<select id="p_statistics_start">
<% For i=2018 To year(date) %>
<option value="<%=i%>" <%= iif(cint(i) = cint(p_statistics), " selected ", "") %>><%=cstr(i)%>~<%=RIGHT(cstr(i+1), 2)%></option>
<option value="<%=i%>" <%= iif(cint(i) = cint(p_statistics_start), " selected ", "") %>><%=cstr(i)%></option>
<% Next %>
</select>
~
<select id="p_statistics_end">
<% For i=2018 To year(date)+1 %>
<option value="<%=i%>" <%= iif(cint(i) = cint(p_statistics_end), " selected ", "") %>><%=cstr(i)%></option>
<% Next %>
</select>
</td>
@@ -121,9 +143,6 @@ p_costType = request("p_costType")
95% <20><> : <span class="rate_legend" style="background-color:#e85e5e;"></span>
</span>
</td>
<td bgcolor="#DFDFDF" align="right" style="padding-right:10px;">
<input type="button" id="btnExport" value="Excel Download"/>
</td>
</tr>
</table>
</td>
@@ -224,7 +243,7 @@ p_costType = request("p_costType")
query = query & " WHERE CA.cost_money > 0 " & vbCrLf
query = query & " GROUP BY CA.p_sn " & vbCrLf
query = query & " ) JC ON TPM.p_child_sn = JC.p_sn " & vbCrLf
query = query & " WHERE TPM.p_statistics in ('" & p_statistics & "','" & p_statistics+1 & "') " & vbCrLf
query = query & " WHERE TPM.p_statistics BETWEEN '" & CInt(p_statistics_start) & "' AND '" & CInt(p_statistics_end) & "' " & vbCrLf
if cint(session("Depart_Code")) >= 20 Then
query = query & " AND (p_rsch_dept = '" & session("Depart_Code") & "' " & vbCrLf
' if session("User_Number") = "20180701" Then '<27><>ȿ<EFBFBD><C8BF>
@@ -455,8 +474,8 @@ p_costType = request("p_costType")
e.preventDefault();
});
$("#p_statistics, #p_costType").on("change", function(){
location.href="./projectlist_cost.asp?p_statistics=" + $("#p_statistics option:selected").val()+"&p_costType="+$("#p_costType option:selected").val();
$("#p_statistics_start, #p_statistics_end, #p_costType").on("change", function(){
location.href="./projectlist_cost.asp?p_statistics_start=" + $("#p_statistics_start option:selected").val()+"&p_statistics_end="+$("#p_statistics_end option:selected").val()+"&p_costType="+$("#p_costType option:selected").val();
});
});
</script>