<% Dim eSQL, eObjdb set eObjdb = Server.CreateObject("ADODB.Recordset") DBConnect() eSQL="" eSQL=eSQL&" SELECT distinct dbo.codeLabel('position', RI.r_position, NULL) AS r_position, dbo.codeLabel('pay', RE.e_district_cd, RI.r_position) AS r_pay, " eSQL=eSQL&" RD.exit_cd, RE.e_exit_nm, RE.e_full_nm, RE.e_full_ad, " eSQL=eSQL&" isnull(RI2.r_name,'') as L_NAME, isnull(dbo.base64_decode(RI2.r_phone),'') as L_PHONE, case when RI2.r_position = 1 then '조장' when RI2.r_position = 4 then '감독관' else '' end as L_GRADE, " eSQL=eSQL&" RE.e_assembly_place, RE.e_assembly_time, RE.e_stay_nm, RE.e_stay_tel, RE.e_stay_add, " eSQL=eSQL&" case when RE.s_stay = 1 then '숙박' when RE.s_stay = 2 then '비숙박' else '미정' end as s_stay " eSQL=eSQL&" FROM R_Info RI JOIN R_Deploy RD ON RI.r_phone = RD.r_phone " eSQL=eSQL&" JOIN R_Exit RE ON RD.exit_cd = RE.e_full_it " eSQL=eSQL&" LEFT JOIN (select IN_RI2.r_phone, IN_RI2.r_name, IN_RI2.r_position, RD2.exit_cd from R_Info IN_RI2 JOIN R_Deploy RD2 ON IN_RI2.r_phone = RD2.r_phone) RI2 on RI2.exit_cd=RD.exit_cd and RI2.r_position = case when ri.r_position = 1 then 4 else 1 end " eSQL=eSQL&" WHERE dbo.base64_decode(RI.r_phone) = '" & Session("phone") & "' " eObjdb.Open eSQL,DBConn,3,1,1 'exit_cd = eObjdb("exit_cd") %>
<% If eObjdb.RecordCount > 0 Then %>
<%=eObjdb("r_position") %>

<% Do while Not eObjdb.Eof %>
<%=eObjdb("e_exit_nm") %>(<%=eObjdb("s_stay") %>)

<%=eObjdb("e_full_nm") %>
<%=eObjdb("e_full_ad") %>

<% IF eObjdb("r_position") <> "감독관" THEN %>
<%=eObjdb("L_NAME")%> - <%=eObjdb("L_PHONE") %>

<% END IF %>
" style="font-size: calc(11px + 0.2vw);">
직책 이름 연락처 성별 거주시군

<% eObjdb.MoveNext Loop Else %>
<% End IF %>
<% DBClose() %>