431 lines
17 KiB
Plaintext
431 lines
17 KiB
Plaintext
<!-- #include virtual = "include/header.asp" -->
|
|
<%
|
|
Response.CharSet = "EUC-KR"
|
|
Response.Expires = 0
|
|
dim Query
|
|
|
|
dim td_Cnt
|
|
dim cnt,i
|
|
dim actval, actval2, actval3, actval4, actval5, actval6, actval7, actval8, actval9, actval10
|
|
dim actval11, actval12, actval13, actval14, actval15, actval16, actval17, actval18, actval19, actval20, actval21, actval22
|
|
dim actval23, actval24, actval25, actval26, actval27, actval28, actval29, actval30, actval31, actval32, actval33, actval34, actval35, actval36
|
|
dim part '어디서 왔나
|
|
dim m_jumin, m_name
|
|
dim new_id
|
|
dim adors2
|
|
dim gap(36)
|
|
dim num
|
|
dim work_date : work_date = "없음"
|
|
dim n_etc
|
|
dim tr_index
|
|
|
|
actval = request("actval")
|
|
actval2 = request("actval2")
|
|
actval3 = request("actval3")
|
|
actval4 = request("actval4")
|
|
actval5 = request("actval5")
|
|
actval6 = request("actval6")
|
|
actval7 = request("actval7")
|
|
actval8 = request("actval8")
|
|
actval9 = request("actval9")
|
|
actval10 = request("actval10")
|
|
actval11 = request("actval11")
|
|
actval12 = request("actval12")
|
|
|
|
part = request("part")
|
|
n_etc = Request("n_etc")'내근직 기타수당
|
|
tr_index = Request("tr_index")'내근직 기타수당
|
|
|
|
if part="myun_input" then
|
|
actval = "txtJumin1"
|
|
actval2 = "txtJumin2"
|
|
actval3 = "txtName"
|
|
actval4 = "txtTel1"
|
|
actval5 = "txtTel2"
|
|
actval6 = "txtTel3"
|
|
actval7 = "txtMobile1"
|
|
actval8 = "txtMobile2"
|
|
actval9 = "txtMobile3"
|
|
actval10 = "txtaddress" '주소
|
|
actval11 = "txt_bank" '은행명
|
|
actval12 = "txt_bank_code" '은행코드
|
|
actval13 = "txt_bank_no" '계좌번호
|
|
actval14 = "txt_m_grade" '면등급명
|
|
actval15 = "txt_m_grade_code" '면등급코드
|
|
actval16 = "txt_activity" '활동여부
|
|
actval17 = "txt_gubun" '주요업무
|
|
actval18 = "txt_gubun_code" '주요업무코드
|
|
actval19 = "txt_date" '등록일자
|
|
actval20 = "txt_note" '비고
|
|
actval21 = "txt_kpc_grade" 'kpc 등급
|
|
actval22 = "new_id" 'New ID
|
|
actval23 = "txt_grade_1" '내등급명
|
|
actval24 = "txt_grade_1_code" '내등급코드
|
|
actval25 = "txt_grade_2" '내등급명
|
|
actval26 = "txt_grade_2_code" '내등급코드
|
|
actval27 = "txt_grade_3" '내등급명
|
|
actval28 = "txt_grade_3_code" '내등급코드
|
|
actval29 = "txt_grade_4" '내등급명
|
|
actval30 = "txt_grade_4_code" '내등급코드
|
|
actval31 = "txt_grade_5" '내등급명
|
|
actval32 = "txt_grade_5_code" '내등급코드
|
|
actval33 = "txt_grade_6" '내등급명
|
|
actval34 = "txt_grade_6_code" '내등급코드
|
|
actval35 = "txt_grade_7" '내등급명
|
|
actval36 = "txt_grade_7_code" '내등급코드
|
|
|
|
elseif part="pay_input" then
|
|
actval = "myun_jumin"
|
|
actval2 = "myun_job"
|
|
actval3 = "m_name"
|
|
elseif part="naekeun_search" then
|
|
actval = "neakeun_jumin"
|
|
actval2 = "neakeun_name"
|
|
elseif part="etc_myun_input" then
|
|
actval = "neakeun_jumin"
|
|
actval2 = "neakeun_name"
|
|
elseif part="man_device" then
|
|
actval = "new_id"
|
|
actval2 = "m_name"
|
|
end if
|
|
|
|
m_name = trim(request("m_name"))
|
|
new_id = trim(request("new_id"))
|
|
if part <> "etc_myun_input" then
|
|
if trim(m_name)="" and trim(new_id)="" then
|
|
Response.Write "<script>"
|
|
Response.Write "window.alert ('면접원 이름 또는 ID를 입력하세요.');"
|
|
Response.Write "window.close();"
|
|
Response.Write "</script>"
|
|
end if
|
|
end if
|
|
set adors2 = server.CreateObject("adodb.recordset")
|
|
|
|
td_Cnt = 1
|
|
%>
|
|
<form method=post name='frm_myun_search'>
|
|
<div align=left >
|
|
<table class="table table-sm table-sm2 table-bordered table-head tr-colors" width='450px'>
|
|
<%if part = "etc_myun_input" then %>
|
|
<tr>
|
|
<td>
|
|
성명 <input type="text" name="m_name" id="m_name" value="<%=m_name %>" onkeypress="gosearch(event);" /> <input type="button" onclick="search_mn();" value="검색" />
|
|
</td>
|
|
</tr>
|
|
<%end if %>
|
|
<tr>
|
|
<td >
|
|
<font color='#0000FF'>해당되는 면접원이름 또는 아래의 "취소" 버튼을 클릭하세요.</font><br>
|
|
<%if part <> "myun_input" then%>
|
|
<font color='red'><b>활동여부가 '활동'인 사람만 보임</b></font>
|
|
<%end if%>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<table border="3" class="table table-sm table-sm2 table-bordered table-head tr-colors" width='450px'>
|
|
<%
|
|
Query = "select id,new_id,m_jumin,m_offer_date,m_activity,m_name,M_bank,m_b_no,m_b_chk,m_addres,m_tel,m_mobile,m_gubun,m_last_work_date,m_grade,m_note,m_etc_note,kpc_grade,grade_1,grade_2,grade_3,grade_4,grade_5,grade_6,grade_7 from man where "
|
|
if Trim(new_id) = "" then
|
|
query = query & " m_name like '%" & m_name & "%' "
|
|
else
|
|
query = query & " new_id like '" & new_id & "%' "
|
|
end if
|
|
if part <> "myun_input" then
|
|
query = query & " and m_activity='활동' "
|
|
end if
|
|
query = query & " order by m_name, m_jumin"
|
|
|
|
adors.Open query, adoconn,adOpenStatic,adLockReadOnly
|
|
|
|
if adors.recordcount > 0 and (m_name <> "" OR new_id <> "") then%>
|
|
<tr>
|
|
<td colspan ='5'>
|
|
입력하신 면접원 <%if Trim(m_name) <> "" then %>이름 <font color=darkblue size=3><b><%=m_name%></b></font>으로<% else %>ID <font color=darkblue size=3><b><%=new_id%></b></font>로<% end if %> <font color=red><b><%=adors.recordcount%></b></font> 명을 찾았습니다.
|
|
</td>
|
|
</tr>
|
|
<tr style="text-align:center;font-weight:bold;background-color:#D8D8D8;">
|
|
<td>이름</td>
|
|
<td>생년월일</td>
|
|
<td>면접원 ID</td>
|
|
<td>핸드폰번호</td>
|
|
<td>마지막 근무일자</td>
|
|
</tr>
|
|
<%
|
|
cnt = 0
|
|
do while not adors.eof
|
|
for i=1 to 22
|
|
gap(i) = ""
|
|
next
|
|
cnt= cnt + 1
|
|
gap(1) = left(trim(adors("m_jumin")),6)
|
|
gap(2) = right(trim(adors("m_jumin")),7)
|
|
gap(3) = adors("m_name")
|
|
if trim(adors("m_tel")) <> "" then
|
|
tmpstr = split(adors("m_tel"),"-")
|
|
for i=0 to ubound(tmpstr)
|
|
gap(i+4) = tmpstr(i)
|
|
next
|
|
else
|
|
gap(4) = ""
|
|
gap(5) = ""
|
|
gap(6) = ""
|
|
end if
|
|
|
|
if trim(adors("m_mobile")) <> "" then
|
|
tmpstr = split(adors("m_mobile"),"-")
|
|
for i=0 to ubound(tmpstr)
|
|
gap(i+7) = tmpstr(i)
|
|
next
|
|
else
|
|
gap(7) = ""
|
|
gap(8) = ""
|
|
gap(9) = ""
|
|
end if
|
|
gap(10) = adors("m_addres")
|
|
gap(12) = adors("m_bank") '은행코드
|
|
'은행이름 가꾸오기
|
|
query = "select * from bank where b_code = '" & gap(12) & "'"
|
|
adors2.Open query, adoconn,adOpenStatic,adLockReadOnly
|
|
if adors2.recordCount > 0 then
|
|
gap(11) = adors2("b_name") '은행명
|
|
end if
|
|
adors2.Close
|
|
|
|
gap(13) = adors("m_b_no") '계좌번호
|
|
gap(15) = adors("m_grade") '등급코드
|
|
'response.Write gap(15)
|
|
'Grade이름 가져오기
|
|
query = "select * from category where 구분 = 'grade' and code = '" & gap(15) & "'"
|
|
adors2.open query, adoconn, adopenstatic, adlockreadonly
|
|
if adors2.recordCount > 0 then
|
|
gap(14) = adors2("name")
|
|
end if
|
|
adoRs2.close
|
|
|
|
gap(24) = adors("grade_1")
|
|
query = "select * from category where 구분 = 'grade' and code = '" & gap(24) & "'"
|
|
adors2.open query, adoconn, adopenstatic, adlockreadonly
|
|
if adors2.recordCount > 0 then
|
|
gap(23) = adors2("name")
|
|
end if
|
|
adoRs2.close
|
|
|
|
gap(26) = adors("grade_2")
|
|
query = "select * from category where 구분 = 'grade' and code = '" & gap(26) & "'"
|
|
adors2.open query, adoconn, adopenstatic, adlockreadonly
|
|
if adors2.recordCount > 0 then
|
|
gap(25) = adors2("name")
|
|
end if
|
|
adoRs2.close
|
|
|
|
gap(28) = adors("grade_3")
|
|
query = "select * from category where 구분 = 'grade' and code = '" & gap(28) & "'"
|
|
adors2.open query, adoconn, adopenstatic, adlockreadonly
|
|
if adors2.recordCount > 0 then
|
|
gap(27) = adors2("name")
|
|
end if
|
|
adoRs2.close
|
|
|
|
gap(30) = adors("grade_4")
|
|
query = "select * from category where 구분 = 'grade' and code = '" & gap(30) & "'"
|
|
adors2.open query, adoconn, adopenstatic, adlockreadonly
|
|
if adors2.recordCount > 0 then
|
|
gap(29) = adors2("name")
|
|
end if
|
|
adoRs2.close
|
|
|
|
gap(32) = adors("grade_5")
|
|
query = "select * from category where 구분 = 'grade' and code = '" & gap(32) & "'"
|
|
adors2.open query, adoconn, adopenstatic, adlockreadonly
|
|
if adors2.recordCount > 0 then
|
|
gap(31) = adors2("name")
|
|
end if
|
|
adoRs2.close
|
|
|
|
gap(34) = adors("grade_6")
|
|
query = "select * from category where 구분 = 'grade' and code = '" & gap(34) & "'"
|
|
adors2.open query, adoconn, adopenstatic, adlockreadonly
|
|
if adors2.recordCount > 0 then
|
|
gap(33) = adors2("name")
|
|
end if
|
|
adoRs2.close
|
|
|
|
gap(36) = adors("grade_7")
|
|
query = "select * from category where 구분 = 'grade' and code = '" & gap(36) & "'"
|
|
adors2.open query, adoconn, adopenstatic, adlockreadonly
|
|
if adors2.recordCount > 0 then
|
|
gap(35) = adors2("name")
|
|
end if
|
|
adoRs2.close
|
|
|
|
|
|
gap(16) = adors("m_activity")
|
|
gap(18) = adors("m_gubun") '업무구분코드
|
|
'일종류 이름 가꾸 오기
|
|
query = "select * from category where 구분 = 'work' and code = '" & gap(18) & "'"
|
|
adors2.Open query, adoconn,adOpenStatic,adLockReadOnly
|
|
gap(17) = adoRs2("name")
|
|
adoRs2.close
|
|
|
|
gap(19) = adors("m_offer_date")
|
|
gap(20) = adors("m_note")
|
|
gap(21) = adors("kpc_grade")
|
|
gap(22) = adors("new_id")
|
|
|
|
query = ""&VbCrlf
|
|
query = query& " select top 1 aa.work_date from "&VbCrlf
|
|
query = query& " ( "&VbCrlf
|
|
query = query& " select neakeun_name as m_name, left(neakeun_jumin,6) as birth_day, date as work_date from neakeun_in_out_time WITH(nolock) "&VbCrlf
|
|
query = query& " union all "&VbCrlf
|
|
query = query& " select m_name, left(m_jumin,6) as birth_day, work_dt from T_MYUN_PAY WITH(nolock) "&VbCrlf
|
|
query = query& " union all "&VbCrlf
|
|
query = query& " select m_name, left(m_jumin,6) as birth_day, work_dt from T_NEAKEUN_PAY WITH(nolock) "&VbCrlf
|
|
query = query& " ) as aa "&VbCrlf
|
|
query = query& " where aa.m_name = '" & gap(3) & "' and aa.birth_day = '" & gap(1) & "' and LEN(aa.work_date) = 10 "
|
|
query = query& " order by work_date desc "&VbCrlf
|
|
adors2.Open query, adoconn,adOpenStatic,adLockReadOnly
|
|
If adors2.recordCount > 0 Then
|
|
work_date = adors2("work_date")
|
|
End If
|
|
adoRs2.close
|
|
%>
|
|
<tr height="30" bgcolor="white" style="cursor:pointer;" onmouseover="this.style.background='#F8E0E0'" onmouseout="this.style.background='#FFFFFF'" onclick="SendName( <%for i=1 to 36%> '<%=gap(i)%>', <%next%> '<%=actval%>','<%=actval2%>','<%=actval3%>','<%=actval4%>','<%=actval5%>','<%=actval6%>','<%=actval7%>','<%=actval8%>','<%=actval9%>','<%=actval10%>', '<%=actval11%>','<%=actval12%>','<%=actval13%>','<%=actval14%>','<%=actval15%>','<%=actval16%>','<%=actval17%>','<%=actval18%>','<%=actval19%>','<%=actval20%>','<%=actval21%>','<%=actval22 %>','<%=actval23%>','<%=actval24 %>', '<%=actval25 %>','<%=actval26 %>','<%=actval27 %>','<%=actval28 %>','<%=actval29 %>','<%=actval30 %>','<%=actval31 %>','<%=actval32 %>','<%=actval33 %>','<%=actval34 %>','<%=actval35 %>','<%=actval36 %>');">
|
|
<td align="left" >
|
|
<%=gap(3)%>
|
|
</td>
|
|
<td><%=gap(1)%></td>
|
|
<td><%=gap(22)%></td>
|
|
<td><%=adors("m_mobile")%></td>
|
|
<td><%=work_date %></td>
|
|
<%
|
|
if cnt mod td_cnt = 0 then%>
|
|
</tr>
|
|
<%
|
|
end if
|
|
adoRs.movenext
|
|
loop
|
|
adoRs.close%>
|
|
<% else %>
|
|
<tr>
|
|
<td>
|
|
입력하신 <%if Trim(m_name) <> "" then %>이름 <font color=darkblue size=3><b><%=m_name%></b></font><% else %>ID <font color=darkblue size=3><b><%=new_id%></b></font><% end if %> 은 <font color=red><b>등록되지 않았거나, 비활동</b></font> 면접원입니다.<br>
|
|
</td>
|
|
</tr>
|
|
<%end if%>
|
|
</table>
|
|
<input type=hidden name="part" value='<%=part%>'>
|
|
<input type=hidden name="num" id="num" value='<%=request("num")%>'>
|
|
</div>
|
|
</form>
|
|
<script>
|
|
function SendName(m_jumin1, m_jumin2, m_name, m_tel1, m_tel2, m_tel3, m_mobile1, m_mobile2, m_mobile3, m_address, m_bank, m_bank_code, m_b_no, m_Grade, m_Grade_code, m_activity, m_gubun, m_gubun_code, m_offer_date, m_note, kpc_grade, new_id,
|
|
grade_1, grade_1_code, grade_2, grade_2_code, grade_3, grade_3_code, grade_4, grade_4_code, grade_5, grade_5_code, grade_6, grade_6_code, grade_7, grade_7_code,
|
|
actval, actval2, actval3, actval4, actval5, actval6, actval7, actval8, actval9, actval10, actval11, actval12, actval13, actval14, actval15, actval16, actval17, actval18, actval19, actval20,
|
|
actval21, actval22, actval23, actval24, actval25, actval26, actval27, actval28, actval29, actval30, actval31, actval32, actval33, actval34, actval35, actval36)
|
|
{
|
|
if (confirm("선택하신 면접원/내근직이 맞습니까?\n이름: "+ m_name +"\n생년월일: "+ m_jumin1) == true)
|
|
{
|
|
var part = document.frm_myun_search.part.value;
|
|
if (part == "qus_progress") {
|
|
eval("opener.document.forms[0]." + actval).value = m_jumin1 + m_jumin2;
|
|
eval("opener.document.forms[0]." + actval2).value = m_name;
|
|
} else if (part == "myun_input") {
|
|
|
|
eval("opener.document.forms[0]." + actval).value = m_jumin1;
|
|
eval("opener.document.forms[0]." + actval2).value = m_jumin2;
|
|
eval("opener.document.forms[0]." + actval3).value = m_name;
|
|
eval("opener.document.forms[0]." + actval4).value = m_tel1;
|
|
eval("opener.document.forms[0]." + actval5).value = m_tel2;
|
|
eval("opener.document.forms[0]." + actval6).value = m_tel3;
|
|
eval("opener.document.forms[0]." + actval7).value = m_mobile1;
|
|
eval("opener.document.forms[0]." + actval8).value = m_mobile2;
|
|
eval("opener.document.forms[0]." + actval9).value = m_mobile3;
|
|
eval("opener.document.forms[0]." + actval10).value = m_address;
|
|
eval("opener.document.forms[0]." + actval11).value = m_bank;
|
|
eval("opener.document.forms[0]." + actval12).value = m_bank_code;
|
|
eval("opener.document.forms[0]." + actval13).value = m_b_no;
|
|
eval("opener.document.forms[0]." + actval14).value = m_Grade;
|
|
eval("opener.document.forms[0]." + actval15).value = m_Grade_code;
|
|
eval("opener.document.forms[0]." + actval16).value = m_activity;
|
|
eval("opener.document.forms[0]." + actval17).value = m_gubun;
|
|
eval("opener.document.forms[0]." + actval18).value = m_gubun_code;
|
|
eval("opener.document.forms[0]." + actval19).value = m_offer_date;
|
|
eval("opener.document.forms[0]." + actval20).value = m_note;
|
|
eval("opener.document.forms[0]." + actval21).value = kpc_grade;
|
|
eval("opener.document.forms[0]." + actval22).value = new_id;
|
|
eval("opener.document.forms[0]." + actval23).value = grade_1;
|
|
eval("opener.document.forms[0]." + actval24).value = grade_1_code;
|
|
eval("opener.document.forms[0]." + actval25).value = grade_2;
|
|
eval("opener.document.forms[0]." + actval26).value = grade_2_code;
|
|
eval("opener.document.forms[0]." + actval27).value = grade_3;
|
|
eval("opener.document.forms[0]." + actval28).value = grade_3_code;
|
|
eval("opener.document.forms[0]." + actval29).value = grade_4;
|
|
eval("opener.document.forms[0]." + actval30).value = grade_4_code;
|
|
eval("opener.document.forms[0]." + actval31).value = grade_5;
|
|
eval("opener.document.forms[0]." + actval32).value = grade_5_code;
|
|
eval("opener.document.forms[0]." + actval33).value = grade_6;
|
|
eval("opener.document.forms[0]." + actval34).value = grade_6_code;
|
|
eval("opener.document.forms[0]." + actval35).value = grade_7;
|
|
eval("opener.document.forms[0]." + actval36).value = grade_7_code;
|
|
if(opener.document.getElementById("work_day_btn") != null){
|
|
opener.document.getElementById("work_day_btn").style.display = "";
|
|
}
|
|
} else if (part == "pay_input") {
|
|
eval("opener.document.forms[0]." + actval).value = m_jumin1 + m_jumin2;
|
|
eval("opener.document.forms[0]." + actval2).value = m_gubun_code;
|
|
eval("opener.document.forms[0]." + actval3).value = m_name;
|
|
} else if (part == "naekeun_search") {
|
|
var n_etc = "<%=n_etc %>";
|
|
var tr_index = "<%=tr_index %>";
|
|
if(n_etc == "1"){
|
|
if(opener != null){
|
|
$(opener.document).find("#p_list tr:eq(" + parseInt(tr_index) + ") td:eq(1)").children('.neakeun_name').val(m_name);
|
|
$(opener.document).find("#p_list tr:eq(" + parseInt(tr_index) + ") td:eq(2)").children('input[name=neakeun_jumin]').val(m_jumin1);
|
|
}else{
|
|
$("#p_list tr:eq(" + parseInt(tr_index) + ") td:eq(1)").children('.neakeun_name').val(m_name);
|
|
$("#p_list tr:eq(" + parseInt(tr_index) + ") td:eq(2)").children('input[name=neakeun_jumin]').val(m_jumin1);
|
|
|
|
prjDialog.dialog("close");
|
|
}
|
|
}else{
|
|
eval("opener.document.forms[0]." + actval).value = m_jumin1 + "0000000";
|
|
eval("opener.document.forms[0]." + actval2).value = m_name;
|
|
}
|
|
} else if (part == "etc_myun_input") {
|
|
eval("opener.document.etc_check.txtJumin_" + $("#num").val()).value = m_jumin1 + "0000000";
|
|
eval("opener.document.etc_check.txtName_" + $("#num").val()).value = m_name;
|
|
} else if (part == "man_device") {
|
|
if('<%=request("device_id")%>' == 'mod'){
|
|
$(opener.document).find("#mod_t_m_name").text("["+new_id+"] " + m_name);
|
|
$(opener.document).find("#mod_m_name").val(new_id);
|
|
}else{
|
|
$(opener.document).find("#man_device_<%=request("device_id")%>").parent().html("<span>["+new_id+"] " + m_name + "</span>");
|
|
opener.deviceManSave(new_id, '<%=request("device_id")%>');
|
|
}
|
|
}
|
|
if(opener != null) window.close();
|
|
} else {
|
|
alert("다시 한번 확인하여 주십시오.");
|
|
return false;
|
|
}
|
|
}
|
|
function search_mn() {
|
|
if ($("#m_name").val() == "") {
|
|
alert("검색할 면접원 또는 내근직 성명을 입력하세요.");
|
|
return;
|
|
}
|
|
var url = "/project_list/myun_search.asp?cutmenu=1&part=etc_myun_input&m_name=" + $("#m_name").val() + "&num=" + $("#num").val();
|
|
location.href = url;
|
|
}
|
|
function gosearch(e) {
|
|
if (e.which) {
|
|
if (e.which == 13) {
|
|
search_mn();
|
|
}
|
|
} else if (window.event) {
|
|
if (window.event.keyCode == 13) {
|
|
search_mn();
|
|
}
|
|
}
|
|
}
|
|
</script> |