<% 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, "&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 prj_code, tel_inspection_user as n_name, n_birth, tel_inspection_date as n_date, "&VbCrlf query = query &" count(case when b.tel_del_yn='N' and b.tel_result = '1' then '1' end) as t_cnt, "&VbCrlf query = query &" count(case when b.tel_del_yn='Y' and b.tel_result = '2' then '2' end) as r_cnt, "&VbCrlf query = query &" count(case when b.tel_del_yn='N' and b.tel_result = '2' then '3' end) as e_cnt "&VbCrlf query = query &" from "&VbCrlf query = query &" ( "&VbCrlf query = query &" select (select intranet_project from new_cati.dbo.project where prj_code = a.prj_code) as prj_code, tel_inspection_user, "&VbCrlf query = query &" case "&VbCrlf query = query &" when len(tel_inspection_uid) = 8 then (select cast(p_no as varchar) as p_no from project2.dbo.person where p_no=tel_inspection_uid) "&VbCrlf query = query &" else (select left(m_jumin,6) from project2.dbo.man where id=tel_inspection_uid) "&VbCrlf query = query &" end as n_birth, "&VbCrlf query = query &" convert(varchar,tel_inspection_date,23) as tel_inspection_date, "&VbCrlf query = query &" tel_del_yn, tel_result "&VbCrlf query = query &" from new_cati.dbo.T_INSPECTION_CATI as a "&VbCrlf query = query &" where a.tel_del_yn <> '' and a.tel_inspection_user <> '' "&VbCrlf query = query &" ) as b "&VbCrlf query = query &" group by b.prj_code, b.tel_inspection_user, b.n_birth, b.tel_inspection_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.n_name=BB.neakeun_name and AA.n_birth=BB.neakeun_jumin and left(AA.prj_code,11)=BB.p_child_sn and AA.n_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 from project2.dbo.T_NEAKEUN_PAY "&VbCrlf query = query &" where s_gubun='감청' AND ISNULL(attribute02, '') = '' "&VbCrlf query = query &" ) CC on AA.n_name=CC.m_name and AA.n_birth=CC.m_jumin and left(AA.prj_code,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 prj_code = '" & prj_code & "' "&VbCrlf query = query &" and (n_birth is not null and len(cast(n_birth as varchar)) <> 8) "&VbCrlf query = query &" order by AA.prj_code, AA.n_name, AA.n_birth,AA.n_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("prj_code") %> <%=rs("n_name") %>" />" /> <%=rs("n_birth") %> <%=rs("n_date") %> <%=rs("t_cnt") %> <%=rs("e_cnt") %> <%=rs("r_cnt") %> " 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 %>