<%if command <> "excel" then %>
|
* 최대 30명 까지 표시됩니다.
|
<% end if %>
| ID |
업무 |
이름 |
생년월일 |
전화번호 |
최근업무 |
비고 |
에러율 |
면접원 등급 |
<%
For i = 1 To UBOUND(n_grade)
%>
<%=n_grade(i, 1) %> |
<%
Next
%>
KPC 등급 |
활동여부 |
은행 |
계좌 |
<%
If command <> "" then
query = "select "
if command <> "excel" then
query = query & " top 30 "
end if
query = query & " new_id, m_name, left(m_jumin,7) as m_jumin, case when replace(isnull(m_mobile,''), '-', '') <> '' then m_mobile else isnull(m_tel, '') end as m_tel, "
query = query & " (select top 1 name from category where code = isnull(m.m_Grade, '') and 구분 = 'grade') as m_grade, "
'-- grade_1 grade_2 grade_3 grade_4 grade_5 grade_6 grade_7
query = query & " (select top 1 name from category where code = isnull(m.grade_0, '') and 구분 = 'grade') as grade_0, "
query = query & " (select top 1 name from category where code = isnull(m.grade_1, '') and 구분 = 'grade') as grade_1, "
query = query & " (select top 1 name from category where code = isnull(m.grade_2, '') and 구분 = 'grade') as grade_2, "
query = query & " (select top 1 name from category where code = isnull(m.grade_3, '') and 구분 = 'grade') as grade_3, "
query = query & " (select top 1 name from category where code = isnull(m.grade_4, '') and 구분 = 'grade') as grade_4, "
query = query & " (select top 1 name from category where code = isnull(m.grade_5, '') and 구분 = 'grade') as grade_5, "
query = query & " (select top 1 name from category where code = isnull(m.grade_6, '') and 구분 = 'grade') as grade_6, "
query = query & " (select top 1 name from category where code = isnull(m.grade_7, '') and 구분 = 'grade') as grade_7, "
query = query & " (select top 1 name from category where code = isnull(m.kpc_grade, '') and 구분 = 'grade') as kpc_grade, "
query = query & " (select top 1 name from category where code = m.m_gubun and 구분 = 'work') as m_gubun, "
query = query & " (select top 1 b_fullname from bank where b_code = m.m_bank) as m_bank, substring(m_b_no,0,len(m_b_no)-1) + '**' as m_b_no "
query = query & ", isnull(er_rate, '0') as er_rate, m_activity, m_note, m_offer_date, m_last_work_date from man m "
query = query & " left outer join ( "
query = query & " select m_no, cast(round(sum(er_cnt) * 1.00 / SUM(t_cnt) * 100.00, 2) as numeric(4,1)) as er_rate from ( "
query = query & " select r.m_no, case when pass_stat = 'ERROR' then 1 else 0 end as er_cnt, 1 as t_cnt from RES r inner join T_INSPECTION_RES tir On r.r_sn = tir.r_sn "
query = query & " where r.DelGubun='N' and r_error is null and s_error is null and m_error is null "
if m_p_sn <> "" then
query = query & " and (r.p_sn in (Select p_child_sn from T_PROJECT_FCS where p_sn in (Select p_sn From T_PROJECT_METHOD where p_method_cd = '2' and p_child_sn like '%" & m_p_sn & "%')) or r.p_sn like '%" & m_p_sn & "%' ) "
end if
query = query & " union all "
query = query & " select m.new_id, case when tel_result = '2' then 1 else 0 end as er_cnt, 1 as t_cnt from new_cati.dbo.T_INSPECTION_CATI tic inner join man m on tic.tel_client_no = m.id WHERE tel_del_yn='N' "
if m_p_sn <> "" then
query = query & " and tic.prj_code in (Select prj_code From new_cati.dbo.project Where intranet_project like '%" & m_p_sn & "%') "
end if
query = query & " ) T group by m_no "
query = query & " ) E on m.new_id = E.m_no "
query = query & " where substring(m_jumin,7,1) <> 0 "
if m_name <> "" then
query = query & " and m_name like '%" & m_name & "%' "
end if
if m_grade <> "" then
query = query & " and isnull(m.m_Grade, '') like '%" & m_grade & "%' "
end if
if grade_0 <> "" then
query = query & " and isnull(m.grade_0, '') like '%" & grade_0 & "%' "
end if
if grade_1 <> "" then
query = query & " and isnull(m.grade_1, '') like '%" & grade_1 & "%' "
end if
if grade_2 <> "" then
query = query & " and isnull(m.grade_2, '') like '%" & grade_2 & "%' "
end if
if grade_3 <> "" then
query = query & " and isnull(m.grade_3, '') like '%" & grade_3 & "%' "
end if
if grade_4 <> "" then
query = query & " and isnull(m.grade_4, '') like '%" & grade_4 & "%' "
end if
if grade_5 <> "" then
query = query & " and isnull(m.grade_5, '') like '%" & grade_5 & "%' "
end if
if grade_6 <> "" then
query = query & " and isnull(m.grade_6, '') like '%" & grade_6 & "%' "
end if
if grade_7 <> "" then
query = query & " and isnull(m.grade_7, '') like '%" & grade_7 & "%' "
end if
if kpc_grade <> "" then
query = query & " and isnull(kpc_grade, '') like '%" & kpc_grade & "%' "
end if
if new_id <> "" then
query = query & " and new_id like '%" & new_id & "%' "
end if
if m_p_sn <> "" then
query = query & " and new_id in ( "
query = query & " Select distinct m_no From( "
query = query & " select m_no from res where (p_sn in ( "
query = query & " select p_child_sn from T_PROJECT_FCS where p_sn in ( "
query = query & " Select p_sn From T_PROJECT_METHOD where p_method_cd = '2' and p_child_sn like '%" & m_p_sn & "%')) "
query = query & " or p_sn like '%" & m_p_sn & "%' ) "
query = query & " and DelGubun = 'N' and r_error is null and s_error is null and m_error is null "
query = query & " union all "
query = query & " select new_id From new_cati.dbo.logfile l inner join man m on l.log_user = m.id "
query = query & " where l.prj_code in (Select prj_code From new_cati.dbo.project Where intranet_project like '%" & m_p_sn & "%') "
query = query & " union all "
query = query & " select m.new_id from neakeun_work n inner join man m on left(n.neakeun_jumin, 6) = LEFT(m.m_jumin,6) and n.neakeun_name = m.m_name where n.p_child_sn like '%" & m_p_sn & "%' "
query = query & " ) T "
query = query & " ) "
end if
if m_tel <> "" then
query = query & " and (replace(m_tel,'-','') like '%" & replace(m_tel,"-","") & "%' or replace(m_mobile,'-','') like '%" & replace(m_tel,"-","") & "%') "
end if
query = query & " and M_activity in ( "
If m_activity1 <> "" then
query = query & " '" & m_activity1 & "',"
end if
if m_activity2 <> "" then
query = query & " '" & m_activity2 & "',"
End IF
IF m_activity3 <> "" then
query = query & " '" & m_activity3 & "',"
ENd IF
IF m_activity4 <> "" then
query = query & " '" & m_activity4 & "',"
End If
query = query & " '빈칸') "
query = query & "and m_gubun in ("
If m_gubun1 <> "" then
query = query & " '" & m_gubun1 &"',"
End If
If m_gubun2 <> "" then
query = query & " '" & m_gubun2 &"',"
End If
If m_gubun3 <> "" then
query = query & " '" & m_gubun3 &"',"
End If
If m_gubun4 <> "" then
query = query & " '" & m_gubun4 &"',"
End If
If m_gubun5 <> "" then
query = query & " '" & m_gubun5 &"',"
End If
If m_gubun6 <> "" then
query = query & " '" & m_gubun6 &"',"
End If
If m_gubun7 <> "" then
query = query & " '" & m_gubun7 &"',"
End If
If m_gubun8 <> "" then
query = query & " '" & m_gubun8 &"',"
End If
If m_gubun9 <> "" then
query = query & " '" & m_gubun9 &"',"
End If
If m_gubun10 <> "" then
query = query & " '" & m_gubun10 &"',"
End If
If m_gubun11 <> "" then
query = query & " '" & m_gubun11 &"',"
End If
If m_gubun12 <> "" then
query = query & " '" & m_gubun12 &"',"
End If
If m_gubun13 <> "" then
query = query & " '" & m_gubun13 &"',"
End If
If m_gubun14 <> "" then
query = query & " '" & m_gubun14 &"',"
End If
If m_gubun15 <> "" then
query = query & " '" & m_gubun15 &"',"
End If
If m_gubun16 <> "" then
query = query & " '" & m_gubun16 &"',"
End If
If m_gubun17 <> "" then
query = query & " '" & m_gubun17 &"',"
End If
If m_gubun99 <> "" then
query = query & " '" & m_gubun99 &"',"
End If
query = query & " '빈칸')"
If m_offer_date <> "" then
query = query & " and m_offer_date between '" & m_offer_date_st & "' and '" & m_offer_date_end & "' "
End If
If m_last_work_date <> "" then
query = query & " and m_last_work_date between '" & m_last_work_date_st & "' and '" & m_last_work_date_end & "' "
End If
if p_method <> "" then
query = query & " and cast(m.id as varchar) in ( "
query = query & " select isnull(cast(id as varchar), '') as id from "
query = query & " ( select m_name, m_jumin from "
query = query & " ( select p_sn, m_name, left(m_jumin,6) as m_jumin from T_NEAKEUN_PAY union all "
query = query & " select p_sn, m_name, left(m_jumin,6) as m_jumin from T_MYUN_PAY union all "
query = query & " select p_sn, m_name, left(m_jumin,6) as m_jumin from myun_pay ) T "
query = query & " where p_sn in (select p_child_sn from T_PROJECT_METHOD where p_method_cd = '" & p_method & "' and p_child_sn is not null ) "
query = query & " group by m_name, m_jumin "
query = query & " ) s left outer join man m on s.m_name = m.m_name and s.m_jumin = left(m.m_jumin,6)) "
end if
query = query & " order by new_id "
AdoRs.open query, adoconn, adopenstatic, adlockreadonly
'response.Write query
i = 1
do until AdoRs.eof
i = i+1
tit = 4 + (i mod 2)
%>
| <%= AdoRs("new_id")%> |
<%= AdoRs("m_gubun")%> |
<%= AdoRs("m_name")%> |
<%= AdoRs("m_jumin")%> |
<%= AdoRs("m_tel")%> |
<%= AdoRs("m_last_work_date")%> |
<%= AdoRs("m_note")%> |
<%= AdoRs("er_rate")%>(<% if cint(AdoRs("er_rate")) <= 10 then response.Write "A" else if cint(AdoRs("er_rate")) <= 30 then response.Write "B" else if cint(AdoRs("er_rate")) <= 40 then response.Write "C" else if cint(AdoRs("er_rate")) < 50 then response.Write "D" else response.write "F" end if %>) |
<%= AdoRs("m_grade")%> |
<%= AdoRs("grade_0")%> |
<%= AdoRs("grade_1")%> |
<%= AdoRs("grade_2")%> |
<%= AdoRs("grade_3")%> |
<%= AdoRs("grade_4")%> |
<%= AdoRs("grade_5")%> |
<%= AdoRs("grade_6")%> |
<%= AdoRs("grade_7")%> |
<%= AdoRs("kpc_grade")%> |
<%= AdoRs("m_activity")%> |
"><%= AdoRs("m_bank")%> |
<%= AdoRs("m_b_no")%> |
<%
AdoRs.moveNext
loop
AdoRs.close
if i = 1 then
%>
| 검색된 자료가 없습니다 |
<%
end If
end If
%>
|