최초커밋
This commit is contained in:
44
inspection/punching_cnt.asp
Normal file
44
inspection/punching_cnt.asp
Normal file
@@ -0,0 +1,44 @@
|
||||
<!-- #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" ><3E><>ó</td>
|
||||
<td align="center" ><3E>ٹ<EFBFBD><D9B9><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td align="center" >Ÿ<><C5B8></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>
|
||||
Reference in New Issue
Block a user