Files
KIN/inspection/punching_cnt.asp
2025-09-29 17:55:08 +09:00

44 lines
1.6 KiB
Plaintext

<!-- #include virtual = "lib/config.asp" -->
<%
Response.CharSet = "EUC-KR"
dim prj_code : prj_code = Request("prj_code")
dim prj_name : prj_name = unescape(Request("prj_name"))
%>
<form id="prj_search" method="post">
<table class="table table-sm table-sm2 table-bordered table-head tr-colors">
<tr>
<td align="center" colspan="3">(<%=prj_code %>) <%=prj_name %></td>
</tr>
<tr>
<td align="center" >ÆÝó</td>
<td align="center" >±Ù¹«ÀÏÀÚ</td>
<td align="center" >Ÿ¼ö</td>
</tr>
<%
query = ""
query = query&" select left(tProcode,11) as prj_code, tUserID, convert(char(10),tEndDate,23) as date, "
query = query&" sum(cast(REPLACE(tPunchCount,'-','') as int)) as tPunchCount "
query = query&" from punching.dbo.tb_PunchLogInfo "
query = query&" where tUserID in "
query = query&" ( "
query = query&" select tuserid from punching.dbo.tb_mgrusers "
query = query&" ) "
query = query&" and left(tProcode,11) = '" & prj_code & "' and tPunchCount <> '0' "
query = query&" group by left(tProcode,11), tUserID, convert(char(10),tEndDate,23) "
query = query&" order by date "
Rs.open query, adoconn, adopenstatic, adlockreadonly
while not rs.eof
%>
<tr class="prj_pick">
<td align="center"><%=Rs("tUserID") %></td>
<td align="center"><%=Rs("date") %></td>
<td align="center"><%=formatNumber(Rs("tPunchCount"), 0) %></td>
</tr>
<%
rs.movenext
wend
Rs.close
%>
</table>
</form>