| 순번 |
내근직 |
생년월일 |
업무구분 |
근무일자 |
근무시간 |
단가 |
추가수당1 |
추가수당2 |
합계 |
비고 |
확인 |
|
<%
dim no : no = 0
query = ""
query = query &" select isnull(cast(AA.Id as varchar),'') as ID, isnull(cast(BB.Id as varchar),'') as PAY_ID, AA.p_child_sn as p_sn, AA.neakeun_name, left(AA.neakeun_jumin,6) as neakeun_jumin, AA.p_sebu, AA.date, AA.job_add_time_memo, AA.job_confirm_yn, "&VbCrlf
query = query &" isnull(BB.s_pay_unit,'0') as s_pay_unit, isnull(BB.s_wan,'0') as s_wan, isnull(AA.extra_pay1,'') as extra_pay1, isnull(AA.extra_pay2,'') as extra_pay2, isnull(BB.s_sum,'0') as s_sum, ISNULL(BB.insert_user,'') as insert_user, "&VbCrlf
query = query &" isnull(BB.attribute01,'') as attribute01, isnull(BB.attribute05,'') as attribute05, "&VbCrlf
query = query &" case when CC.d_order_cnt = '77' then '결재 완료' when CC.d_order_cnt is null then '' else '결재 중' end as d_order_cnt "&VbCrlf
query = query &" from project2.dbo.neakeun_work AA "&VbCrlf
query = query &" left join "&VbCrlf
query = query &" ( "&VbCrlf
query = query &" select ID, p_sn, m_name, left(m_jumin,6) as m_jumin, s_pay_unit, s_wan, s_sum, insert_user, attribute01, attribute02, attribute05 "&VbCrlf
query = query &" from project2.dbo.T_NEAKEUN_PAY "&VbCrlf
query = query &" ) BB on cast(AA.id as varchar)=BB.attribute01 "&VbCrlf
query = query &" left join "&VbCrlf
query = query &" ( "&VbCrlf
query = query &" select d_no, d_order_cnt "&VbCrlf
query = query &" from project2.dbo.Document where d_delok='N' "&VbCrlf
query = query &" ) CC on BB.attribute05=CC.d_no "&VbCrlf
query = query &" where AA.p_child_sn='" & prj_code & "' and AA.workload='ETC' and BB.attribute02='ETC' "&VbCrlf
'Response.Write query
Rs.open query, adoconn, adopenstatic, adlockreadonly
if not rs.eof Then
Dim input_readonly
while not rs.eof
If rs("job_confirm_yn") = "Y" Then
input_readonly = "readonly='reaonldy'"
else
input_readonly = ""
End If
no = no + 1
%>
| <%=no %> |
/>
|
/> |
" <%=input_readonly %>/> |
" readonly='readonly' /> |
" <%=input_readonly %>/> |
" <%=input_readonly %>/> |
<%if rs("extra_pay1")="1" Then%>O<%End If %>" > |
<%if rs("extra_pay2")="1" Then%>O<%End If %>" > |
<%=formatnumber(rs("s_sum"), 0) %> 원" /> |
" <%=input_readonly %>/> |
<%If rs("job_confirm_yn") = "N" Then%>
<%Else %>
<%If rs("attribute05") = "" Then %>
<%Else %>
<%=rs("d_order_cnt") %>
<%End If %>
<%End If %>
|
<%If rs("job_confirm_yn") = "N" Then%>
<%End If %>
|
<%
rs.movenext
wend
rs.Close
End If
%>
|