최초커밋

This commit is contained in:
2025-09-29 17:55:08 +09:00
parent 90af30c0d0
commit e39813395a
3334 changed files with 338522 additions and 0 deletions

View File

@@ -0,0 +1,362 @@
<!-- #include virtual = "include/header.asp" -->
<!-- #include virtual = "include/left.asp" -->
<%
tmp_year = request("tmp_year")
if tmp_year = "" then
tmp_year = year(date)
end if
if( 2020 >= tmp_year )then
tmp_year = year(date)
end if
'if( tmp_year > 2023 )then
' tmp_year = year(date)
'end if
Dim departCode : departCode = Session("Depart_Code")
Dim teamPlace : teamPlace = Session("teamplace")
%>
<!-- #include virtual = "statistics/inc_team_project_next.asp" -->
<%
query = ""
query = query & " DELETE FROM #statistics_next "
query = query & " WHERE 1=1 "
if (teamPlace > 3 AND teamPlace < 8) Or session("Depart_Code") = 18 or session("user_number")= "20190108" or session("user_number")= "20031102" Then
if session("User_Number") = "20190601" Then '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
query = query & " AND team_cd NOT IN ('71','72','73') "
' elseif session("User_Number") = "20190301" Then '<27><><EFBFBD><EFBFBD>ö - 2024-06-18 M3<4D>׷<EFBFBD> (20210105)<29><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><>ǥ<EFBFBD><C7A5><EFBFBD><EFBFBD> <20>׻<EFBFBD> <20><><EFBFBD>̵<EFBFBD><CCB5><EFBFBD>, <20><><EFBFBD>ο<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><> <20>Է<EFBFBD><D4B7>ؾ<EFBFBD><D8BE><EFBFBD>.
' query = query & " AND team_cd NOT IN ('73') "
elseif session("User_Number") = "20160205" then '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
query = query & " AND team_cd NOT IN ('61','62','63','64','65','66') "
elseif session("User_Number") = "20210107" then '<27>Ż<EFBFBD><C5BB><EFBFBD>
query = query & " AND team_cd NOT IN ('91') "
elseif session("User_Number") = "20210801" then '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
query = query & " AND team_cd NOT IN ('93') "
else
query = query & " AND 1=2 "
end if
' elseif session("User_Number") = "20200302" Then '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
' query = query & " AND team_cd NOT IN ('71','72') "
else
query = query & " AND team_cd <> '" & departCode & "' "
End If
'response.write teamPlace
'response.write query
adoconn.Execute query
%>
<!-- Content Wrapper. Contains page content -->
<div class="content-wrapper">
<style>
</style>
<!-- Content Header (Page header) -->
<div class="content-header">
<h1><3E><><EFBFBD><EFBFBD><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">
<form name='team_project_count' method='post'>
<table width="100%" cellpadding="0" cellspacing="0" border="0" style="border-collapse:collapse;" >
<tr>
<td>
<select name=tmp_year>
<%
Dim temp_minus_yyyy
temp_minus_yyyy = 0
%>
<%for i=cint(year(date)+temp_minus_yyyy) to 2021 step -1 %>
<OPTION value='<%=i%>' <%if cint(i) = cint(tmp_year) then%> selected<%end if%> ><%=i%></OPTION>
<%next%>
</SELECT>
<button type="button" class='btn btn-sm btn-primary' onclick='goView();'><3E><>ȸ</button>
</td>
</tr>
<tr>
<td>
1. <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
<table class="table table-sm table-sm2 table-bordered table-head tr-colors mb-0">
<tr>
<td width="20%" class="text-center"><3E>μ<EFBFBD></td>
<td width="20%" class="text-center"><3E><><EFBFBD>ֽ<EFBFBD><D6BD><EFBFBD></td>
<td width="20%" class="text-center"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
<td width="20%" class="text-center"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
<td width="20%" class="text-center"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
</tr>
<% '1. <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
query = ""
query = query & " SELECT team_name, team_cd, "&VbCrlf
query = query & " SUM(p_total_cost) as p_total_cost, "&VbCrlf
query = query & " SUM(p_cont_cost) as p_cont_cost, SUM(est_money) as est_money, "&VbCrlf
query = query & " SUM(act_money) as act_money, SUM(cost_money) as cost_money, "&VbCrlf
query = query & " SUM(entertain_money) as entertain_money, SUM(tf_money) as tf_money, "&VbCrlf
query = query & " SUM(benefit) as benefit "&VbCrlf
query = query & " FROM "&VbCrlf
query = query & " ( "&VbCrlf
query = query & " SELECT team_name, team_cd, p_sn, "&VbCrlf'p_total_cost, "
query = query & " case when LEFT(p_sn, 2) = '" &RIGHT(tmp_year, 2)-1& "' Then "&VbCrlf
query = query & " case when SUM(p_total_cost)='0' Then SUM(p_cont_cost) else SUM(p_total_cost) end "&VbCrlf
query = query & " else SUM(p_total_cost) end as p_total_cost, "&VbCrlf '##### <20>̿<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE> <20><><EFBFBD>ֽ<EFBFBD><D6BD><EFBFBD> <20><> <20>հ<EFBFBD> -> 0<><30><EFBFBD≯<EFBFBD> <20><><EFBFBD>ֽ<EFBFBD><D6BD><EFBFBD> = <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>(2018-10-24)
query = query & " p_decide_date, "&VbCrlf
query = query & " weeknum, "&VbCrlf
query = query & " SUM(p_cont_cost) as p_cont_cost, SUM(est_money) as est_money, "&VbCrlf
query = query & " SUM(act_money) as act_money, SUM(cost_money) as cost_money, "&VbCrlf
query = query & " SUM(entertain_money) as entertain_money, SUM(tf_money) as tf_money, "&VbCrlf
query = query & " SUM(benefit) as benefit "&VbCrlf
query = query & " FROM #statistics_next "&VbCrlf
query = query & " WHERE ( substring(p_decide_date, 1,4) = '" & tmp_year & "' OR ( substring(p_decide_date, 1,4) = '" & tmp_year - 1 & "' AND p_statistics = '" & tmp_year & "')) "&VbCrlf
query = query & " GROUP BY team_name, team_cd, p_sn, p_decide_date, weeknum "&VbCrlf
query = query & " ) T "&VbCrlf
query = query & " where 1=1 "&VbCrlf
query = query & " GROUP BY team_name, team_cd "&VbCrlf
query = query & " ORDER BY team_name "&VbCrlf
'Response.Write query & "<br>"
adors.Open query, adoconn, adOpenStatic, adLockReadOnly
if adors.RecordCount > 0 then
%>
<%
sum_total_cost = 0
sum_cont_cost = 0
sum_est_money = 0
sum_benefit = 0
For i = 1 To adors.RecordCount
%>
<tr>
<td class="text-center"><a href="javascript:detailView('<%=adors("team_cd")%>')"><%=adors("team_name")%></a></td>
<td class="text-right"><%=formatnumber(adors("p_total_cost"),0) %></td>
<td class="text-right"><%=formatnumber(adors("p_cont_cost"),0) %></td>
<td class="text-right"><%=formatnumber(adors("est_money"),0) %></td>
<td class="text-right"><%=formatnumber(adors("benefit"),0) %></td>
</tr>
<%
sum_total_cost = sum_total_cost + cdbl(adors("p_total_cost"))
sum_cont_cost = sum_cont_cost + cdbl(adors("p_cont_cost"))
sum_est_money = sum_est_money + cdbl(adors("est_money"))
sum_benefit = sum_benefit + cdbl(adors("benefit"))
adors.MoveNext
Next
%>
<tr>
<td class="text-center font-weight-bold"><3E><> <20><></td>
<td class="text-right font-weight-bold"><%=formatnumber(sum_total_cost,0) %></td>
<td class="text-right font-weight-bold"><%=formatnumber(sum_cont_cost,0) %></td>
<td class="text-right font-weight-bold"><%=formatnumber(sum_est_money,0) %></td>
<td class="text-right font-weight-bold"><%=formatnumber(sum_benefit,0) %></td>
</tr>
<%
end if' if adors.RecordCount > 0 then
adors.Close
%>
</table>
</td>
</tr>
<!-------------------1. <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>------------------------------------------------------------------------------------------------------------------------------------------------------>
<!-------------------2. <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>------------------------------------------------------------------------------------------------------------------------------------------------------>
<tr>
<td>
2. <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
<table class="table table-sm table-sm2 table-bordered table-head tr-colors mb-0">
<tr>
<td width="20%" class="text-center"><3E>μ<EFBFBD></td>
<td width="20%" class="text-center"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
<td width="20%" class="text-center"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
<td width="20%" class="text-center"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>+<2B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
<td width="20%" class="text-center"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
</tr>
<% '2. <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
query = ""
query = query & " SELECT team_name, team_cd, "
query = query & " SUM(p_total_cost) as p_total_cost, "
query = query & " SUM(p_cont_cost) as p_cont_cost, SUM(est_money) as est_money, "
query = query & " SUM(act_money) as act_money, SUM(cost_money) as cost_money, "
query = query & " SUM(entertain_money) as entertain_money, SUM(tf_money) as tf_money, "
query = query & " SUM(benefit) as benefit "
query = query & " FROM "
query = query & " ( "
query = query & " SELECT team_name, team_cd, p_sn, p_total_cost, "
query = query & " SUM(p_cont_cost) as p_cont_cost, SUM(est_money) as est_money, "
query = query & " SUM(act_money) as act_money, SUM(cost_money) as cost_money, "
query = query & " SUM(entertain_money) as entertain_money, SUM(tf_money) as tf_money, "
query = query & " SUM(benefit) as benefit "
query = query & " FROM #statistics_next "&VbCrlf
query = query & " WHERE (LEFT(p_sn, 2) = '" & RIGHT(tmp_year, 2) & "' OR (LEFT(p_sn, 2) = '" & RIGHT(tmp_year, 2) - 1 & "' AND p_statistics = '" & tmp_year & "')) "&VbCrlf
'@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ <20><><EFBFBD><EFBFBD> @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
query = query & " AND p_progress_status = '008' AND complete_yn = '0' "
'@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ <20><><EFBFBD><EFBFBD> @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
query = query & " GROUP BY team_name, team_cd, p_sn, p_total_cost "
query = query & " ) T "
query = query & " where 1=1 "&VbCrlf
query = query & " GROUP BY team_name, team_cd "
query = query & " ORDER BY team_name "
'Response.Write query & "<br>"
If tmp_year <> "0000" then
adors.Open query, adoconn,adOpenStatic,adLockReadOnly
if adors.RecordCount > 0 then
%>
<!-- loop start -->
<%
sum_cont_cost = 0
sum_est_money = 0
sum_act_money = 0
sum_benefit = 0
For i = 1 To adors.RecordCount
%>
<tr>
<td class="text-center"><a href="javascript:detailView('<%=adors("team_cd")%>')"><%=adors("team_name")%></a></td>
<td class="text-right"><%=formatnumber(adors("p_cont_cost"),0) %></td>
<td class="text-right"><%=formatnumber(adors("est_money"),0) %></td>
<td class="text-right"><%=formatnumber(cdbl(adors("act_money")) + cdbl(adors("cost_money")) + cdbl(adors("entertain_money")) + cdbl(adors("tf_money")),0) %></td>
<td class="text-right"><%=formatnumber(adors("benefit"),0) %></td>
</tr>
<%
sum_cont_cost = sum_cont_cost + cdbl(adors("p_cont_cost"))
sum_est_money = sum_est_money + cdbl(adors("est_money"))
sum_act_money = sum_act_money + cdbl(adors("act_money")) + cdbl(adors("cost_money")) + cdbl(adors("entertain_money")) + cdbl(adors("tf_money"))
sum_benefit = sum_benefit + cdbl(adors("benefit"))
adors.movenext
next
%>
<tr>
<td class="text-center font-weight-bold"><3E><> <20><></td>
<td class="text-right font-weight-bold"><%=formatnumber(sum_cont_cost,0) %></td>
<td class="text-right font-weight-bold"><%=formatnumber(sum_est_money,0) %></td>
<td class="text-right font-weight-bold"><%=formatnumber(sum_act_money,0) %></td>
<td class="text-right font-weight-bold"><%=formatnumber(sum_benefit,0) %></td>
</tr>
<%
end if' if adors.RecordCount > 0 then
adors.Close
End if
%>
</table>
</td>
</tr>
<!-------------------2. <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>------------------------------------------------------------------------------------------------------------------------------------------------------>
<!-------------------3. <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>------------------------------------------------------------------------------------------------------------------------------------------------------>
<tr>
<td>
3. <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
<table class="table table-sm table-sm2 table-bordered table-head tr-colors mb-0">
<tr>
<td width="20%" class="text-center"><3E>μ<EFBFBD></td>
<td width="20%" class="text-center"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
<td width="20%" class="text-center"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
<td width="20%" class="text-center"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>+<2B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
<td width="20%" class="text-center"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
</tr>
<%
query = ""
query = query & " SELECT team_name, team_cd, "
query = query & " SUM(p_total_cost) as p_total_cost, "
query = query & " SUM(p_cont_cost) as p_cont_cost, SUM(est_money) as est_money, "
query = query & " SUM(act_money) as act_money, SUM(cost_money) as cost_money, "
query = query & " SUM(entertain_money) as entertain_money, SUM(tf_money) as tf_money, "
query = query & " SUM(benefit) as benefit "
query = query & " FROM "
query = query & " ( "
query = query & " SELECT LEFT(p_con_date_end, 7) as p_con_date_end, team_name, team_cd, p_sn, p_total_cost, "
query = query & " SUM(p_cont_cost) as p_cont_cost, SUM(est_money) as est_money, "
query = query & " SUM(act_money) as act_money, SUM(cost_money) as cost_money, "
query = query & " SUM(entertain_money) as entertain_money, SUM(tf_money) as tf_money, "
query = query & " SUM(benefit) as benefit "
query = query & " FROM #statistics_next "&VbCrlf
query = query & " WHERE p_statistics = '" & tmp_year & "' "
'@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ <20><><EFBFBD><EFBFBD> @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
query = query & " AND complete_yn = '1' "
'@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ <20><><EFBFBD><EFBFBD> @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
query = query & " GROUP BY LEFT(p_con_date_end, 7), team_name, team_cd, p_sn, p_total_cost "
query = query & " ) T "
query = query & " where 1=1 "&VbCrlf
query = query & " GROUP BY team_name, team_cd "
query = query & " ORDER BY team_name "
'Response.Write query & "<br>"
If tmp_year <> "0000" then
adors.Open query, adoconn,adOpenStatic,adLockReadOnly
if adors.RecordCount > 0 then
%>
<!-- loop start -->
<%
sum_cont_cost = 0
sum_est_money = 0
sum_act_money = 0
sum_benefit = 0
For i = 1 To adors.RecordCount
%>
<tr>
<td class="text-center"><a href="javascript:detailView('<%=adors("team_cd")%>')"><%=adors("team_name")%></a></td>
<td class="text-right"><%=formatnumber(adors("p_cont_cost"),0) %></td>
<td class="text-right"><%=formatnumber(adors("est_money"),0) %></td>
<td class="text-right"><%=formatnumber(cdbl(adors("act_money")) + cdbl(adors("cost_money")) + cdbl(adors("entertain_money")) + cdbl(adors("tf_money")),0) %></td>
<td class="text-right"><%=formatnumber(adors("benefit"),0) %></td>
</tr>
<%
sum_cont_cost = sum_cont_cost + cdbl(adors("p_cont_cost"))
sum_est_money = sum_est_money + cdbl(adors("est_money"))
sum_act_money = sum_act_money + cdbl(adors("act_money")) + cdbl(adors("cost_money")) + cdbl(adors("entertain_money")) + cdbl(adors("tf_money"))
sum_benefit = sum_benefit + cdbl(adors("benefit"))
adors.movenext
next
%>
<tr>
<td class="text-center font-weight-bold"><3E><> <20><></td>
<td class="text-right font-weight-bold"><%=formatnumber(sum_cont_cost,0) %></td>
<td class="text-right font-weight-bold"><%=formatnumber(sum_est_money,0) %></td>
<td class="text-right font-weight-bold"><%=formatnumber(sum_act_money,0) %></td>
<td class="text-right font-weight-bold"><%=formatnumber(sum_benefit,0) %></td>
</tr>
<%
end if' if adors.RecordCount > 0 then
adors.Close
End if
%>
</table>
</td>
</tr>
</table>
</form>
</div>
</div>
</div>
</div>
</div>
<!-- /.content -->
<!-- REQUIRED SCRIPTS -->
<script>
function goView() {
var tmp_year = document.team_project_count.tmp_year.value;
var url = "team_project_count.asp?tmp_year=" + tmp_year;
document.team_project_count.action = url;
document.team_project_count.submit();
}
function detailView(depart){
var tmp_year = document.team_project_count.tmp_year.value;
var tmp_month = "0";
var p_depart = depart;
var url = "team_project_popup.asp?tmp_year=" + tmp_year + "&tmp_month=" + tmp_month + "&p_depart="+p_depart;
url = url + "&command=popup";
window.open(url,"","left=50 ,top=0, menubar=no, location=no ,status=no ,toolbar=no ,width=1060, height=650 ,scrollbars=yes ,resizable=yes");
}
$(function(){
});
</script>
</div>
<!-- /.content-wrapper -->
<!-- #include virtual = "include/footer.asp" -->