Files
KIN/inspection/interviewer_search.asp
2025-09-29 17:55:08 +09:00

615 lines
47 KiB
Plaintext

<!-- #include virtual = "include/header.asp" -->
<%
dim command
command = Request("command")
if command <> "excel" then
%>
<!-- #include virtual = "include/left.asp" -->
<!-- Content Wrapper. Contains page content -->
<div class="content-wrapper">
<!-- Content Header (Page header) -->
<div class="content-header">
<h1>면접원/내근직 검색</h1>
</div>
<!-- /.content-header -->
<!-- Main content -->
<div class="content-body">
<div class="content">
<div class="container-fluid">
<div class="row">
<div class="col-12">
<%
End If
if command = "excel" then
Response.CacheControl = "public"
Response.ContentType = "application/vnd.ms-excel"
Response.AddHeader "Content-Disposition","attachment;filename=내근직_면접원_검색리스트.xls"
end if
dim new_id
dim m_name
dim m_grade, grade_1, grade_2, grade_3, grade_4, grade_5, grade_6, grade_7
dim kpc_grade
dim m_activity1, m_activity2, m_activity3, m_activity4
dim p_method
dim m_gubun1, m_gubun2, m_gubun3, m_gubun4, m_gubun5, m_gubun6, m_gubun7, m_gubun8, m_gubun9, m_gubun10, m_gubun11, m_gubun12, m_gubun13, m_gubun14, m_gubun15, m_gubun16, m_gubun17, m_gubun99
dim m_tel
dim m_offer_date
dim m_offer_date_st
dim m_offer_date_end
dim m_last_work_date
dim m_last_work_date_st
dim m_last_work_date_end
dim m_p_sn
dim n_grade()
m_offer_date_st=year(date) & "-" & zeroFormat(month(date),2) & "-" & zeroFormat(day(date),2)
m_offer_date_end=year(date) & "-" & zeroFormat(month(date),2) & "-" & zeroFormat(day(date),2)
If request("m_offer_date_st") <> "" then
m_offer_date_st = request("m_offer_date_st")
end If
If request("m_offer_date_end") <> "" then
m_offer_date_end = request("m_offer_date_end")
end If
m_last_work_date_st=year(date) & "-" & zeroFormat(month(date),2) & "-" & zeroFormat(day(date),2)
m_last_work_date_end=year(date) & "-" & zeroFormat(month(date),2) & "-" & zeroFormat(day(date),2)
If request("m_last_work_date_st") <> "" then
m_last_work_date_st = request("m_last_work_date_st")
end If
If request("m_last_work_date_end") <> "" then
m_last_work_date_end = request("m_last_work_date_end")
end If
new_id = request("new_id")
m_name = request("m_name")
m_grade = request("m_grade")
grade_1 = request("grade_1")
grade_2 = request("grade_2")
grade_3 = request("grade_3")
grade_4 = request("grade_4")
grade_5 = request("grade_5")
grade_6 = request("grade_6")
grade_7 = request("grade_7")
kpc_grade = request("kpc_grade")
m_activity1 = request("m_activity1")
m_activity2 = request("m_activity2")
m_activity3 = request("m_activity3")
m_activity4 = request("m_activity4")
p_method = request("p_method")
m_p_sn = request("m_p_sn")
m_gubun1 = request("m_gubun1")
m_gubun2 = request("m_gubun2")
m_gubun3 = request("m_gubun3")
m_gubun4 = request("m_gubun4")
m_gubun5 = request("m_gubun5")
m_gubun6 = request("m_gubun6")
m_gubun7 = request("m_gubun7")
m_gubun8 = request("m_gubun8")
m_gubun9 = request("m_gubun9")
m_gubun10 = request("m_gubun10")
m_gubun11 = request("m_gubun11")
m_gubun12 = request("m_gubun12")
m_gubun13 = request("m_gubun13")
m_gubun14 = request("m_gubun14")
m_gubun15 = request("m_gubun15")
m_gubun16 = request("m_gubun16")
m_gubun17 = request("m_gubun17")
m_gubun99 = request("m_gubun99")
m_tel = request("m_tel")
m_offer_date = request("m_offer_date")
m_last_work_date = request("m_last_work_date")
sql = " SELECT d_cost_code, d_cost_name FROM direct_costcode "
sql = sql & " WHERE d_cost_useyn = 'Y' AND d_cost_kind = 'field' AND d_cost_parents = '2' AND d_cost_code NOT IN (8, 9) "
adoRs.open sql, adoconn, adopenstatic, adlockreadonly
redim n_grade(adoRs.recordCount, 2)
For i = 1 To adoRs.recordCount
n_grade(i, 1) = adors("d_cost_name")
n_grade(i, 2) = adors("d_cost_code")
adoRs.MoveNext
Next
adoRs.Close
%>
<%if command <> "excel" then %>
<% Dim f_menu : f_menu = "my" %>
<!-- #include file = "f_menu.asp" -->
<%End If%>
<form name="frm_man" method="post" >
<%if command <> "excel" then %>
<table width="1200px" class="table table-sm table-sm2 table-bordered table-head tr-colors">
<tr>
<td width="10%" align="center">ID</td>
<td width="40%" ><input type="text" name = "new_id" value="<%=new_id %>"/></td>
<td width="10%" align="center" >이름</td>
<td width="40%" ><input type="text" name = "m_name" value="<%=m_name %>"/></td>
</tr>
<tr>
<td width="10%" align="center">활동여부</td>
<td width="40%" >
<input type="checkbox" name="m_activity1" value="활동" <%if m_activity1="활동" or m_activity1 & m_activity2 & m_activity3 & m_activity4 = "" then %> checked="checked" <%end if %> />활동&nbsp;
<input type="checkbox" name="m_activity2" value="비활동" <%if m_activity2="비활동" or m_activity1 & m_activity2 & m_activity3 & m_activity4 = "" then %> checked="checked" <%end if %> />비활동&nbsp;
<input type="checkbox" name="m_activity3" value="경고" <%if m_activity3="경고" or m_activity1 & m_activity2 & m_activity3 & m_activity4 = "" then %> checked="checked" <%end if %> />경고&nbsp;
<input type="checkbox" name="m_activity4" value="불량" <%if m_activity4="불량" or m_activity1 & m_activity2 & m_activity3 & m_activity4 = "" then %> checked="checked" <%end if %> />불량
</td>
<td width="10%" align="center">전화번호</td>
<td width="40%"><input type="text" name = "m_tel" value="<%=m_tel %>"/></td>
</tr>
<tr>
<td width="10%" align="center">투입프로젝트</td>
<td width="40%" ><input type="text" name = "m_p_sn" value="<%=m_p_sn %>"/></td>
<td width="10%" align="center" >
조사방법
</td>
<td width="40%" >
<select name = "p_method">
<option value="" >전체</option>
<%
query = " select * from T_PROJECT_METHOD_CD "
AdoRs.open query, adoconn, adopenstatic, adlockreadonly
do until AdoRs.Eof
%>
<option value="<%=AdoRs("p_method_cd") %>" <%if p_method = cstr(AdoRs("p_method_cd")) then %> selected <%end if %>><%=AdoRs("p_method_nm") %></option>
<%
AdoRs.moveNext
loop
AdoRs.close
%>
</select>
</td>
</tr>
<tr>
<td width="10%" align="center" >
면접원 등급
</td>
<td width="40%" >
<select name = "m_grade">
<option value="" >전체</option>
<option value="01" <%if m_grade = "01" then %> selected <%end if %>>A</option>
<option value="02" <%if m_grade = "02" then %> selected <%end if %>>B</option>
<option value="03" <%if m_grade = "03" then %> selected <%end if %>>C</option>
<option value="04" <%if m_grade = "04" then %> selected <%end if %>>D</option>
<option value="05" <%if m_grade = "05" then %> selected <%end if %>>E</option>
<option value="06" <%if m_grade = "06" then %> selected <%end if %>>F</option>
<option value="07" <%if m_grade = "07" then %> selected <%end if %>>G</option>
<option value="08" <%if m_grade = "08" then %> selected <%end if %>>H</option>
</select>
</td>
<td width="10%" align="center" >
KPC 등급
</td>
<td width="40%" >
<select name = "kpc_grade">
<option value="" >전체</option>
<option value="A" <%if kpc_grade = "A" then %> selected <%end if %>>A</option>
<option value="B" <%if kpc_grade = "B" then %> selected <%end if %>>B</option>
<option value="C" <%if kpc_grade = "C" then %> selected <%end if %>>C</option>
<option value="D" <%if kpc_grade = "D" then %> selected <%end if %>>D</option>
<option value="E" <%if kpc_grade = "E" then %> selected <%end if %>>E</option>
<option value="F" <%if kpc_grade = "F" then %> selected <%end if %>>F</option>
<option value="G" <%if kpc_grade = "G" then %> selected <%end if %>>G</option>
<option value="H" <%if kpc_grade = "H" then %> selected <%end if %>>H</option>
</select>
</td>
</tr>
<tr>
<td width="10%" align="center" >
면접원 등급
</td>
<td width="90%" colspan="3">
<table width="100%" class="table table-sm table-sm2 table-bordered table-head tr-colors">
<tr>
<%
For i = 1 To UBOUND(n_grade)
%>
<td align="center" width="<%=1/UBOUND(n_grade) * 100 %>%"><%= n_grade(i, 1) %></td>
<%
NEXT
%>
</tr>
<tr>
<%
For i = 1 To UBOUND(n_grade)
%>
<td align="center" >
<select name = "grade_<%=n_grade(i, 2) %>">
<option value="" >전체</option>
<option value="01" <% execute("if grade_" & n_grade(i, 2) & "= ""01"" then response.write ""selected"" end if") %>>A</option>
<option value="02" <% execute("if grade_" & n_grade(i, 2) & "= ""02"" then response.write ""selected"" end if") %>>B</option>
<option value="03" <% execute("if grade_" & n_grade(i, 2) & "= ""03"" then response.write ""selected"" end if") %>>C</option>
<option value="04" <% execute("if grade_" & n_grade(i, 2) & "= ""04"" then response.write ""selected"" end if") %>>D</option>
<option value="05" <% execute("if grade_" & n_grade(i, 2) & "= ""05"" then response.write ""selected"" end if") %>>E</option>
<option value="06" <% execute("if grade_" & n_grade(i, 2) & "= ""06"" then response.write ""selected"" end if") %>>F</option>
<option value="07" <% execute("if grade_" & n_grade(i, 2) & "= ""07"" then response.write ""selected"" end if") %>>G</option>
<option value="08" <% execute("if grade_" & n_grade(i, 2) & "= ""08"" then response.write ""selected"" end if") %>>H</option>
</select>
</td>
<%
Next
%>
</tr>
</table>
</td>
</tr>
<tr>
<td width="10%" align="center" >
주요업무
</td>
<td width="90%" colspan="3">
<table width="100%" class="table table-sm table-sm2 table-bordered table-head tr-colors">
<tr>
<td><input type="checkbox" name="m_gubun1" value="21" <%if m_gubun1="21" then %> checked="checked" <%end if %> />모니터링</td>
<td><input type="checkbox" name="m_gubun2" value="31" <%if m_gubun2="31" then %> checked="checked" <%end if %> />전화조사</td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td><input type="checkbox" name="m_gubun3" value="10" <%if m_gubun3="10" then %> checked="checked" <%end if %> />면접원_서울</td>
<td><input type="checkbox" name="m_gubun4" value="12" <%if m_gubun4="12" then %> checked="checked" <%end if %> />면접원_부산</td>
<td><input type="checkbox" name="m_gubun5" value="13" <%if m_gubun5="13" then %> checked="checked" <%end if %> />면접원_대구</td>
<td><input type="checkbox" name="m_gubun6" value="14" <%if m_gubun6="14" then %> checked="checked" <%end if %> />면접원_대전</td>
<td><input type="checkbox" name="m_gubun7" value="15" <%if m_gubun7="15" then %> checked="checked" <%end if %> />면접원_광주</td>
<td><input type="checkbox" name="m_gubun8" value="16" <%if m_gubun8="16" then %> checked="checked" <%end if %> />면접원_강원</td>
<td><input type="checkbox" name="m_gubun9" value="17" <%if m_gubun9="17" then %> checked="checked" <%end if %> />면접원_제주</td>
<td></td>
</tr>
<tr>
<td><input type="checkbox" name="m_gubun10" value="41" <%if m_gubun10="41" then %> checked="checked" <%end if %> />AS</td>
<td><input type="checkbox" name="m_gubun11" value="42" <%if m_gubun11="42" then %> checked="checked" <%end if %> />펀치</td>
<td><input type="checkbox" name="m_gubun12" value="43" <%if m_gubun12="43" then %> checked="checked" <%end if %> />코딩</td>
<td><input type="checkbox" name="m_gubun13" value="44" <%if m_gubun13="44" then %> checked="checked" <%end if %> />검증</td>
<td><input type="checkbox" name="m_gubun14" value="45" <%if m_gubun14="45" then %> checked="checked" <%end if %> />녹음해독</td>
<td><input type="checkbox" name="m_gubun15" value="46" <%if m_gubun15="46" then %> checked="checked" <%end if %> />컨택</td>
<td></td>
<td></td>
</tr>
<tr>
<td><input type="checkbox" name="m_gubun16" value="51" <%if m_gubun16="51" then %> checked="checked" <%end if %> />소개자</td>
<td><input type="checkbox" name="m_gubun17" value="52" <%if m_gubun17="52" then %> checked="checked" <%end if %> />기타</td>
<td><input type="checkbox" name="m_gubun99" value="99" <%if m_gubun99="99" then %> checked="checked" <%end if %> />비활동</td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
</table>
</td>
</tr>
<tr>
<td width="10%" align="center" >
등록일자
</td>
<td width="90%" colspan="3">
<input type="radio" name="m_offer_date" value="" <%if m_offer_date="" then %> checked="checked" <%end if %> />전체
&nbsp;
<input type="radio" name="m_offer_date" value="기간" <%if m_offer_date="기간" then %> checked="checked" <%end if %> />기간
<input type="text" style="width:120;text-align:center;CURSOR: pointer;" value="<%=m_offer_date_st %>" name="m_offer_date_st" readonly OnClick="winopn('/include/calendar.html?actval=m_offer_date_st')">
<img src="/images/common/btn_calendar.jpg" align="absmiddle" OnClick="winopn('/include/calendar.html?actval=m_offer_date_st')" style="cursor:pointer;">
~
<input type="text" style="width:120;text-align:center;CURSOR: pointer;" value="<%=m_offer_date_end %>" name="m_offer_date_end" readonly OnClick="winopn('/include/calendar.html?actval=m_offer_date_end')">
<img src="/images/common/btn_calendar.jpg" align="absmiddle" OnClick="winopn('/include/calendar.html?actval=m_offer_date_end')" style="cursor:pointer;">
</td>
</tr>
<tr>
<td width="10%" align="center" >
최근업무일자
</td>
<td width="90%" colspan="3">
<input type="radio" name="m_last_work_date" value="" <%if m_last_work_date="" then %> checked="checked" <%end if %> />전체
&nbsp;
<input type="radio" name="m_last_work_date" value="기간" <%if m_last_work_date="기간" then %> checked="checked" <%end if %> />기간
<input type="text" style="width:120;text-align:center;CURSOR: pointer;" value="<%=m_last_work_date_st %>" name="m_last_work_date_st" readonly OnClick="winopn('/include/calendar.html?actval=m_last_work_date_st')">
<img src="/images/common/btn_calendar.jpg" align="absmiddle" OnClick="winopn('/include/calendar.html?actval=m_last_work_date_st')" style="cursor:pointer;">
~
<input type="text" style="width:120;text-align:center;CURSOR: pointer;" value="<%=m_last_work_date_end %>" name="m_last_work_date_end" readonly OnClick="winopn('/include/calendar.html?actval=m_last_work_date_end')">
<img src="/images/common/btn_calendar.jpg" align="absmiddle" OnClick="winopn('/include/calendar.html?actval=m_last_work_date_end')" style="cursor:pointer;">
</td>
</tr>
<tr>
<td colspan="4" align="center">
<a href="javascript:search_go('view');"><img src="/images/common/btn_smallsrch.gif" /></a>
<a href="javascript:search_go('excel');"><img src="/images/common/btn_smallexcel.gif" /></a>
</td>
</tr>
<% end if %>
<tr>
<td colspan="4">
<table width="100%" class="table table-sm table-sm2 table-bordered table-head tr-colors">
<%if command <> "excel" then %>
<tr>
<td colspan = "20" >
<font color="red">* 최대 30명 까지 표시됩니다.</font>
</td>
</tr>
<% end if %>
<tr height="30px">
<td align="center" width="4%">ID</td>
<td align="center" width="5%">업무</td>
<td align="center" width="6%">이름</td>
<td align="center" width="6%">생년월일</td>
<td align="center" width="7%">전화번호</td>
<td align="center" width="6%">최근업무</td>
<td align="center" width="14%">비고</td>
<td align="center" width="4%">에러율</td>
<td align="center" width="3%">면접원<br />등급</td>
<%
For i = 1 To UBOUND(n_grade)
%>
<td align="center" width="3%"><%=n_grade(i, 1) %></td>
<%
Next
%>
<td align="center" width="3%">KPC<br />등급</td>
<td align="center" width="6%">활동여부</td>
<td align="center" width="6%">은행</td>
<td align="center" width="9%">계좌</td>
</tr>
<%
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_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_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)
%>
<tr height="20px">
<td align="center" class="tit<%= tit%>"><%= AdoRs("new_id")%>&nbsp;</td>
<td align="center" class="tit<%= tit%>"><%= AdoRs("m_gubun")%>&nbsp;</td>
<td align="center" class="tit<%= tit%>"><%= AdoRs("m_name")%>&nbsp;</td>
<td align="center" class="tit<%= tit%>"><%= AdoRs("m_jumin")%>&nbsp;</td>
<td align="center" class="tit<%= tit%>"><%= AdoRs("m_tel")%>&nbsp;</td>
<td align="center" class="tit<%= tit%>"><%= AdoRs("m_last_work_date")%>&nbsp;</td>
<td align="center" class="tit<%= tit%>"><%= AdoRs("m_note")%>&nbsp;</td>
<td align="center" class="tit<%= tit%>"><%= 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 %>)&nbsp;</td>
<td align="center" class="tit<%= tit%>"><%= AdoRs("m_grade")%>&nbsp;</td>
<td align="center" class="tit<%= tit%>"><%= AdoRs("grade_1")%>&nbsp;</td>
<td align="center" class="tit<%= tit%>"><%= AdoRs("grade_2")%>&nbsp;</td>
<td align="center" class="tit<%= tit%>"><%= AdoRs("grade_3")%>&nbsp;</td>
<td align="center" class="tit<%= tit%>"><%= AdoRs("grade_4")%>&nbsp;</td>
<td align="center" class="tit<%= tit%>"><%= AdoRs("grade_5")%>&nbsp;</td>
<td align="center" class="tit<%= tit%>"><%= AdoRs("grade_6")%>&nbsp;</td>
<td align="center" class="tit<%= tit%>"><%= AdoRs("grade_7")%>&nbsp;</td>
<td align="center" class="tit<%= tit%>"><%= AdoRs("kpc_grade")%>&nbsp;</td>
<td align="center" class="tit<%= tit%>"><%= AdoRs("m_activity")%>&nbsp;</td>
<td align="center" class="tit<%= tit%>"><%= AdoRs("m_bank")%>&nbsp;</td>
<td align="center" class="tit<%= tit%>"><%= AdoRs("m_b_no")%>&nbsp;</td>
</tr>
<%
AdoRs.moveNext
loop
AdoRs.close
if i = 1 then
%>
<tr height="100px">
<td colspan="20" align="center" >검색된 자료가 없습니다</td>
</tr>
<%
end If
end If
%>
</table>
</td>
</tr>
</table>
</form>
<%if command <> "excel" then%>
</div>
</div>
</div>
</div>
</div>
<!-- /.content -->
<!-- REQUIRED SCRIPTS -->
<script>
function search_go(command) {
var frm = document.frm_man;
if (!frm.m_activity1.checked && !frm.m_activity2.checked && !frm.m_activity3.checked && !frm.m_activity4.checked) {
alert("활동여부 중 검색할 항목을 체크해주세요.");
return;
}
if (!frm.m_gubun1.checked && !frm.m_gubun2.checked && !frm.m_gubun3.checked && !frm.m_gubun4.checked &&
!frm.m_gubun5.checked && !frm.m_gubun6.checked && !frm.m_gubun7.checked && !frm.m_gubun8.checked &&
!frm.m_gubun9.checked && !frm.m_gubun10.checked && !frm.m_gubun11.checked && !frm.m_gubun12.checked &&
!frm.m_gubun13.checked && !frm.m_gubun14.checked && !frm.m_gubun15.checked && !frm.m_gubun16.checked && !frm.m_gubun17.checked && !frm.m_gubun99.checked) {
alert("주요업무 중 검색할 항목을 체크해주세요.");
return;
}
if (frm.m_p_sn.value != "" && frm.m_p_sn.value.length < 6) {
alert("프로젝트 코드는 6자리 이상 입력하셔야합니다.");
return;
}
frm.action = "./interviewer_search.asp?command=" + command;
frm.submit();
}
</script>
</div>
<!-- /.content-wrapper -->
<!-- #include virtual = "include/footer.asp" -->
<% end if %>