<% Dim prj_code : prj_code = Request("prj_code") Dim prj_name : prj_name = Request("prj_name") %>

검증 근무확인

<% Dim f_menu : f_menu = "nk" %>
프로젝트 프로젝트 선택
단가 설정 원 Confrim 처리
<% dim no : no = 0 query = "" query = query&" select isnull(cast(BB.Id as varchar),'') as ID, isnull(cast(CC.Id as varchar),'') as pay_id, AA.*,isnull(BB.job_add_time_memo,'') as job_add_time_memo, isnull(BB.job_confirm_yn,'N') as job_confirm_yn, "&VbCrlf query = query&" isnull(CC.s_pay_unit,'0') as s_pay_unit, isnull(CC.s_wan,'0') as s_wan, isnull(CC.s_sum, '0') as s_sum, isnull(CC.insert_user,'') as insert_user, "&VbCrlf query = query&" isnull(CC.attribute01,'') as attribute01, isnull(CC.attribute05,'') as attribute05, CC.chk1, CC.chk2,"&VbCrlf query = query&" case when DD.d_order_cnt = '77' then '결재 완료' when DD.d_order_cnt is null then '' else '결재 중' end as d_order_cnt from "&VbCrlf query = query&" ( "&VbCrlf query = query&" select p_sn, ins_user, ins_birth, ins_date, sum(TOK) as TOK, sum(ERROR) as ERROR, sum(NOTEL) as NOTEL from "&VbCrlf query = query&" ( "&VbCrlf query = query&" select left(pvt.p_sn,11) as p_sn, "&VbCrlf query = query&" (select m_name from project2.dbo.man where id = inspection_user) as ins_user, "&VbCrlf query = query&" (select left(m_jumin,6) from project2.dbo.man where id = inspection_user) as ins_birth, "&VbCrlf query = query&" pvt.ins_date, TOK, ERROR, NOTEL from "&VbCrlf query = query&" ( "&VbCrlf query = query&" select * from "&VbCrlf query = query&" ( "&VbCrlf query = query&" select p_sn, inspection_user, convert(varchar, inspection_date, 23) as ins_date, pass_stat from T_INSPECTION_RES where pass_stat in ('TOK', 'ERROR') "&VbCrlf query = query&" union all "&VbCrlf query = query&" select p_sn, inspection_user, convert(varchar, inspection_date, 23) as ins_date, pass_stat from T_INSPECTION_RES_log where pass_stat in ('NOTEL') "&VbCrlf query = query&" ) u "&VbCrlf query = query&" ) a "&VbCrlf query = query&" pivot "&VbCrlf query = query&" ( "&VbCrlf query = query&" count(pass_stat) for pass_stat in (TOK, ERROR, NOTEL) "&VbCrlf query = query&" )as pvt "&VbCrlf query = query&" where len(pvt.inspection_user) <> 8 "&VbCrlf query = query&" ) as PP "&VbCrlf query = query&" group by p_sn, ins_user, ins_birth, ins_date "&VbCrlf query = query&" ) as AA "&VbCrlf query = query&" left join "&VbCrlf query = query&" ( "&VbCrlf query = query&" select id, p_child_sn, neakeun_name, left(neakeun_jumin,6) as neakeun_jumin, date, job_add_time_memo, job_confirm_yn, workload from project2.dbo.neakeun_work "&VbCrlf query = query&" where p_sebu='검증' and ISNULL(workload, '') = '' "&VbCrlf query = query&" ) BB on AA.ins_user=BB.neakeun_name and AA.ins_birth=BB.neakeun_jumin and left(AA.p_sn,11)=BB.p_child_sn and AA.ins_date=BB.date "&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, attribute05, chk1, chk2 from project2.dbo.T_NEAKEUN_PAY "&VbCrlf query = query&" where s_gubun='검증' and ISNULL(attribute02, '') = '' "&VbCrlf query = query&" ) CC on AA.ins_user=CC.m_name and AA.ins_birth=CC.m_jumin and left(AA.p_sn,11)=CC.p_sn and BB.id=CC.attribute01 "&VbCrlf query = query&" left join "&VbCrlf query = query&" ( "&VbCrlf query = query&" select d_no, d_order_cnt from project2.dbo.Document "&VbCrlf query = query&" where d_delok='N' "&VbCrlf query = query&" ) DD on CC.attribute05=DD.d_no "&VbCrlf query = query&" where AA.p_sn = '" & prj_code & "' "&VbCrlf query = query&" order by AA.p_sn, AA.ins_user, AA.ins_date "&VbCrlf 'Response.Write query Rs.open query, adoconn, adopenstatic, adlockreadonly 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 %> <% rs.movenext wend rs.Close %>
순번 프로젝트 코드 펀처 생년월일 근무일자 완료 단가 합계 비고 확인
<%=no %> <%=rs("p_sn") %> <%=rs("ins_user") %>" />" /> <%=rs("ins_birth") %> <%=rs("ins_date") %> <%=rs("TOK") %> checked="checked" <%End If %>/><%=rs("ERROR") %> checked="checked" <%End If %>/><%=rs("NOTEL") %> " class="p_unit" tabindex="<%=no %>" <%=input_readonly %>/>원 <%=FormatNumber(rs("s_sum"),0) %>원 " class="p_etc" tabindex="1000+<%=no %>" <%=input_readonly %> style="width:100%;"/> <%If rs("job_confirm_yn") = "N" Then%> <%Else %> <%If rs("attribute05") = "" Then %> <%Else %> <%=rs("d_order_cnt") %> <%End If %> <%End If %>