1400 lines
82 KiB
Plaintext
1400 lines
82 KiB
Plaintext
<!-- #include virtual = "include/header.asp" -->
|
|
<!-- #include virtual = "include/left.asp" -->
|
|
<%
|
|
dim x_position
|
|
dim gap(200)
|
|
dim sel_list : sel_list = Request("sel_list")
|
|
dim jumin, jumin_1, jumin_2
|
|
Dim D_Code_First ' 입사 기준 부서
|
|
Dim D_Code ' 현재 기준 부서
|
|
Dim T_Code ' 현재 기준 팀
|
|
|
|
query = ""
|
|
query = query&" Select p_no, p_depart, p_depart_first, p_team, p_team_place, p_name, p_job_part, p_pos, p_pos_first, p_tel, p_tel2, p_tel3, p_user_mail, p_name_eng, "&VbCrlf
|
|
query = query&" krc_in_date, krc_out_date, birthday, dbo.Jumin_Decode(jumin) as jumin, zip_code1, address1_1, address1_2, military_service_st_date, military_service_end_date, "&VbCrlf
|
|
query = query&" military_type, military_grade, p_user_mail2, zip_code2, address2_1, address2_2, zip_code3, address3_1, address3_2, marriage, marriage_date, "&VbCrlf
|
|
query = query&" license_date_1, license_name_1, license_grage_1, license_class_1, license_date_2, license_name_2, license_grage_2, license_class_2, license_date_3, "&VbCrlf
|
|
query = query&" license_name_3, license_grage_3, license_class_3, edu_date_1, edu_name_1, edu_study_1, edu_end_chk_1, edu_point_1, edu_date_2, edu_name_2, "&VbCrlf
|
|
query = query&" edu_study_2, edu_end_chk_2, edu_point_2, edu_date_3, edu_name_3, edu_study_3, edu_end_chk_3, edu_point_3, edu_date_4, edu_name_4, edu_study_4, "&VbCrlf
|
|
query = query&" edu_end_chk_4, edu_point_4, edu_date_5, edu_name_5, edu_study_5, edu_end_chk_5, edu_point_5, career_year_sum, career_month_sum, career_year_1, "&VbCrlf
|
|
query = query&" career_month_1, career_date_1, career_company_name_1, career_company_part_1, career_company_part_job_1, career_company_part_grade_1, career_year_2, "&VbCrlf
|
|
query = query&" career_month_2, career_date_2, career_company_name_2, career_company_part_2, career_company_part_job_2, career_company_part_grade_2, career_year_3, "&VbCrlf
|
|
query = query&" career_month_3, career_date_3, career_company_name_3, career_company_part_3, career_company_part_job_3, career_company_part_grade_3, career_year_4, "&VbCrlf
|
|
query = query&" career_month_4, career_date_4, career_company_name_4, career_company_part_4, career_company_part_job_4, career_company_part_grade_4, career_year_5, "&VbCrlf
|
|
query = query&" career_month_5, career_date_5, career_company_name_5, career_company_part_5, career_company_part_job_5, career_company_part_grade_5, p_depart_last, "&VbCrlf
|
|
query = query&" p_pos_last, military_1, military_2, krc_now_date, krc_power, p_ip, krc_probation_yn, krc_probation_stdt, krc_probation_enddt, p_depart_now, p_team_now, p_rank_now, "&VbCrlf
|
|
query = query&" p_position_now, p_job_now, p_tel_ip "&VbCrlf
|
|
query = query&" from project2.dbo.person where p_no='" & sel_list & "' "&VbCrlf
|
|
|
|
Rs.Open query, adoconn, 1
|
|
|
|
D_Code_First = Rs("p_depart_first")
|
|
D_Code = Rs("p_depart_now")
|
|
T_Code = Rs("p_team_now")
|
|
|
|
jumin = split(Rs("jumin"),"-")
|
|
jumin_1 = jumin(0)
|
|
jumin_2 = jumin(1)
|
|
%>
|
|
<!-- Content Wrapper. Contains page content -->
|
|
<div class="content-wrapper">
|
|
<style>
|
|
.file_btn input[type="file"]{
|
|
position: absolute;
|
|
width: 1px;
|
|
height: 1px;
|
|
padding: 0;
|
|
margin: -1px;
|
|
overflow: hidden;
|
|
clip:rect(0,0,0,0);
|
|
border: 0;
|
|
}
|
|
|
|
td{
|
|
text-align:center;
|
|
vertical-align:middle;
|
|
}
|
|
.nocenter{
|
|
text-align:left;
|
|
}
|
|
</style>
|
|
<!-- 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">
|
|
<form name='frmmember' method='post'>
|
|
<input type="hidden" name="p_no" id="p_no" value="<%=Rs("p_no") %>" />
|
|
<input type="hidden" name='i_posi' value=''>
|
|
<input type="hidden" name='check_jumin' value=''>
|
|
<input type="hidden" name="person_edit" id="person_edit" value="1" />
|
|
<div class="search_modal"></div>
|
|
<table width="100%" cellpadding="0" cellspacing="0" border="0">
|
|
<tr>
|
|
<td style="padding:0 0 5 0;">
|
|
<font class="brown">성명 입력 후 엔터 혹은 검색버튼을 클릭하시면 기존 기록을 불러오실 수 있습니다.</font>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<table class="information_p table table-sm table-sm2 table-bordered table-head tr-colors">
|
|
<tr>
|
|
<td rowspan="5" style='width:120px;'>
|
|
<input type='file' name='img_up' id='img_up' accept="image/jpeg" style="display:none"/>
|
|
<div class="file_btn" style='display:inline;'>
|
|
<img src='' id="p_img" style='width:100%;cursor:pointer;' title="이미지 업로드(click)" onclick="document.all.img_up.click();">
|
|
</div>
|
|
</td>
|
|
<td colspan="4" ><b style="font-size:24px;">社 員 人 事 카 드</b> (대외비)</td>
|
|
</tr>
|
|
<tr>
|
|
<td >성명(한글)</td>
|
|
<td class="nocenter">
|
|
<input type="text" name="p_name" id="p_name" value="<%=Rs("p_name") %>" />
|
|
<img src="/images/common/btn_smallsrch2.gif" id="p_search" align="absmiddle" style="CURSOR:pointer;"/>
|
|
</td>
|
|
<td >성명(영문)</td>
|
|
<td class="nocenter">
|
|
<input type="text" name ="p_name_eng" id="p_name_eng" value="<%=Rs("p_name_eng") %>" >
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td >주민번호</td>
|
|
<td class="nocenter">
|
|
<input type="number" name = 'p_jumin1' id="p_jumin1" value="<%=jumin_1 %>" style="width:80px;" > -
|
|
<input type="password" name = 'p_jumin2' id="p_jumin2" value="<%=jumin_2 %>" style="width:80px;" >
|
|
<input type="hidden" name="jumin_ok" id="jumin_ok" value="1" />
|
|
<button type="button" name="jumin_chk" id="jumin_chk" class="btn btn-sm btn-secondary">인증</button>
|
|
</td>
|
|
<td >실제생일</td> <img src="" />
|
|
<td class="nocenter">
|
|
<input type="text" class="date_picker" name="p_birthday" id="p_birthday" value="<%=mid(Rs("birthday"),1,10)%>" style="width:150px" />
|
|
<%
|
|
if Rs("birthday") <> "" then
|
|
if cstr(mid(Rs("birthday"),12,1)) = "양" then
|
|
tmp_radio = "양"
|
|
elseif cstr(mid(Rs("birthday"),12,1)) = "음" then
|
|
tmp_radio = "음"
|
|
end if
|
|
end if
|
|
%>
|
|
<input type="radio" class="none" name = 'p_sun_moon' value='양' <% if tmp_radio = "양" then %> checked <% end if %>> 양력
|
|
<input type="radio" class="none" name = 'p_sun_moon' value='음' <% if tmp_radio = "음" then %> checked <% end if %>> 음력
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>결혼여부</td>
|
|
<td class="nocenter">
|
|
<%
|
|
if Rs("marriage") <> "" then
|
|
if Rs("marriage") = "기혼" then
|
|
tmp_radio = "기혼"
|
|
elseif Rs("marriage") = "미혼" then
|
|
tmp_radio = "미혼"
|
|
end if
|
|
end if
|
|
%>
|
|
<input type="radio" class="none" name = 'p_marriage' value='기혼' <% if tmp_radio = "기혼" then %> checked <% end if %>> 기혼
|
|
<input type="radio" class="none" name = 'p_marriage' value='미혼' <% if tmp_radio = "미혼" then %> checked <% end if %>> 미혼
|
|
</td>
|
|
<td>결혼기념일</td>
|
|
<td class="nocenter">
|
|
<input type="text" class="date_picker" name="p_marriage_date" id="p_marriage_date" value="<%=Rs("marriage_date")%>" style="width:150px;" <%if tmp_radio = "미혼" Then Response.Write "disabled='disabled'" End If%> readonly="readonly">
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>자택전화</td>
|
|
<%
|
|
|
|
if Rs("p_tel") <> "" then
|
|
tmpstr=split(Rs("p_tel"),"-")
|
|
tmp_value1 = tmpstr(0)
|
|
tmp_value2 = tmpstr(1)
|
|
tmp_value3 = tmpstr(2)
|
|
else
|
|
tmp_value1 = ""
|
|
tmp_value2 = ""
|
|
tmp_value3 = ""
|
|
end if
|
|
%>
|
|
<td class="nocenter">
|
|
<input type="text" name ='p_tel1' value="<%=tmp_value1%>" style="width:50px" > -
|
|
<input type="text" name ='p_tel2' value="<%=tmp_value2%>" style="width:50px" > -
|
|
<input type="text" name ='p_tel3' value="<%=tmp_value3%>" style="width:50px" >
|
|
</td>
|
|
<td>휴대전화</td>
|
|
<%
|
|
if Rs("p_tel2") <> "" then
|
|
tmpstr=split(Rs("p_tel2"),"-")
|
|
tmp_value1 = tmpstr(0)
|
|
tmp_value2 = tmpstr(1)
|
|
tmp_value3 = tmpstr(2)
|
|
else
|
|
tmp_value1 = ""
|
|
tmp_value2 = ""
|
|
tmp_value3 = ""
|
|
end if
|
|
%>
|
|
<td class="nocenter">
|
|
<input type="text" name ='p_move_tel1' value="<%=tmp_value1%>" style="width:50px" > -
|
|
<input type="text" name ='p_move_tel2' value="<%=tmp_value2%>" style="width:50px" > -
|
|
<input type="text" name ='p_move_tel3' value="<%=tmp_value3%>" style="width:50px" >
|
|
</td>
|
|
</tr>
|
|
</table><br>
|
|
<table class="address table table-sm table-sm2 table-bordered table-head tr-colors">
|
|
<tr>
|
|
<td width="120px" rowspan="6">주소</td>
|
|
<td width="120px" rowspan="2">본인<br>(주민등록상)</td>
|
|
<td class="nocenter">
|
|
<input type="text" name ='p_zip_code1' id="p_zip_code1" value='<%=Rs("zip_code1") %>' style="width:80px" readonly="readonly" />
|
|
<a href="javascript:win_open('1')"><img src="/images/common/btn_post.gif" align="absmiddle"></a>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="nocenter">
|
|
<input type="text" name ='p_address1_1' id="p_address1_1" value='<%=Rs("address1_1") %>' style="width:300px" readonly="readonly" />-
|
|
<input type="text" name ='p_address1_2' id="p_address1_2" value='<%=Rs("address1_2") %>' style="width:250px" >
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td rowspan="2">본인<br>(실거주지)</td>
|
|
<td class="nocenter">
|
|
<input type="text" name ='p_zip_code2' id="p_zip_code2" value='<%=Rs("zip_code2") %>' style="width:80px" readonly="readonly" />
|
|
<a href="javascript:win_open('2')"><img src="/images/common/btn_post.gif" align="absmiddle"></a>
|
|
<img src="/images/common/btn_same.gif" align="absmiddle" id="add_img" style="CURSOR:pointer;">
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="nocenter">
|
|
<input type="text" name ='p_address2_1' id="p_address2_1" value='<%=Rs("address2_1") %>' style="width:300px" readonly="readonly" />-
|
|
<input type="text" name ='p_address2_2' id="p_address2_2" value='<%=Rs("address2_2") %>' style="width:250px" >
|
|
</td>
|
|
</tr>
|
|
</table><br>
|
|
<table class="general table table-sm table-sm2 table-bordered table-head tr-colors">
|
|
<tr>
|
|
<td width="120px" rowspan="4">일반사항</td>
|
|
<td colspan="2">회사메일 (ID만 작성)</td>
|
|
<td colspan="4">개인메일(최대 <font class="tahoma">30</font>자)</td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan="2">
|
|
<%
|
|
dim p_user_mail
|
|
if Rs("p_user_mail")<>"" Then
|
|
p_user_mail = split(Rs("p_user_mail"),"@")
|
|
Else
|
|
ReDim p_user_mail(1)
|
|
End IF
|
|
%>
|
|
<input type="text" class="en_num_cls" name = 'p_user_mail' id="p_user_mail" value='<%=p_user_mail(0)%>' style="ime-mode:disabled;width:80px;" >
|
|
<img src="/images/common/btn_smallsrch2.gif" align="absmiddle" id="search_email" style="CURSOR:pointer;" title="이메일 확인" />
|
|
<span class="mail_check"></span>
|
|
</td>
|
|
<td colspan="4">
|
|
<%
|
|
dim p_user_mail2
|
|
if Rs("p_user_mail2")<>"" Then
|
|
p_user_mail2 = split(Rs("p_user_mail2"),"@")
|
|
Else
|
|
ReDim p_user_mail2(1)
|
|
End IF
|
|
%>
|
|
<input type="text" class="en_num_cls" name="p_user_mail2_1" id="p_user_mail2_1" value="<%=p_user_mail2(0) %>" ><!-- 2014-10-23 -->
|
|
<span>@</span>
|
|
<input type="text" class="en_num_cls" name="p_user_mail2_2" id="p_user_mail2_2" value="<%=p_user_mail2(1) %>" title="이메일 주소 뒷 자리">
|
|
<select name="sel_mail" id="sel_mail" style="width:auto;" title="이메일 주소 뒷 자리 선택입력">
|
|
<option value="">직접입력</option>
|
|
<option value="naver.com">naver.com</option>
|
|
<option value="daum.net">daum.net</option>
|
|
<option value="hotmail.com">hotmail.com</option>
|
|
<option value="nate.com">nate.com</option>
|
|
<option value="yahoo.co.kr">yahoo.co.kr</option>
|
|
<option value="paran.com">paran.com</option>
|
|
<option value="empas.com">empas.com</option>
|
|
<option value="dreamwiz.com">dreamwiz.com</option>
|
|
<option value="freechal.com">freechal.com</option>
|
|
<option value="lycos.co.kr">lycos.co.kr</option>
|
|
<option value="korea.com">korea.com</option>
|
|
<option value="gmail.com">gmail.com</option>
|
|
<option value="hanmir.com">hanmir.com</option>
|
|
</select>
|
|
<input type="hidden" name ='p_user_mail2' id="p_user_mail2" value='<%=gap(12)%>'>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan="6" style="text-align:center;">전산시스템 등록
|
|
<!--
|
|
<img src="/images/common/btn_smallsrch2.gif" align="absmiddle" id="tel_ip_search" style="CURSOR:pointer;">
|
|
-->
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td width="120px">내선번호</td>
|
|
<td >
|
|
<input type="text" name ='p_krc_tel' id="p_krc_tel" value="<%=right(Rs("p_tel3"),4) %>" readonly="readonly" />
|
|
<input type="hidden" name="p_krc_tel3" id="p_krc_tel3" value="<%=Rs("p_tel3") %>" />
|
|
<button type="button" name='tel_edit' id='tel_edit'>수정</button>
|
|
</td>
|
|
<td >개인 IP</td>
|
|
<td >
|
|
<input type="text" name ='p_krc_ip' id="p_krc_ip" value="<%=Rs("p_ip")%>" readonly="readonly" />
|
|
<button type="button" name='ip_edit' id='ip_edit'>수정</button>
|
|
</td>
|
|
<td >전화기 IP</td>
|
|
<td >
|
|
<input type="text" name ='p_krc_tel_ip' id="p_krc_tel_ip" value="<%=replace(Rs("p_ip"),".13.",".14.")%>" readonly="readonly" />
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<br/>
|
|
<div style="text-align:left">
|
|
<label><input type="checkbox" name="military_x" id="military_x" value="1" <%If Rs("military_type")="해당없음" Then response.write "checked='checked'" End If %>/>해당 없음</label>
|
|
</div>
|
|
<table class="military table table-sm table-sm2 table-bordered table-head tr-colors">
|
|
<tr>
|
|
<td width="120px" rowspan="3">병역사항<br />
|
|
<input type="checkbox" name="military_exmption" id="military_exmption" value="1" <%If Rs("military_type")="면제" Then response.write "checked='checked'" End If %>/>면제
|
|
</td>
|
|
<td>복무기간</td>
|
|
<td>군별/병과</td>
|
|
<td>계급</td>
|
|
<td>전역구분</td>
|
|
</tr>
|
|
<tr class="military_tr1">
|
|
<td >
|
|
<input type="text" class="date_picker" name ='p_military_service_st' id="p_military_service_st" value='<%=Rs("military_service_st_date") %>' style="width:150px;" readonly="readonly" > -
|
|
<input type="text" class="date_picker" name ='p_military_service_end' id="p_military_service_end" value='<%=Rs("military_service_end_date") %>' style="width:150px;" readonly="readonly" >
|
|
</td>
|
|
<td ><input type="text" name="p_military_1" id="p_military_1" value='<%=Rs("military_1") %>' style="width:100%;"></td>
|
|
<td ><input type="text" name="p_military_grade" id="p_military_grade" value='<%=Rs("military_grade") %>' style="width:100%;"></td>
|
|
<td ><input type="text" name="p_military_type" id="p_military_type" value='<%=Rs("military_type") %>' style="width:100%;"></td>
|
|
</tr>
|
|
<tr>
|
|
<td>면제사유</td>
|
|
<td colspan="4"><input type="text" name="p_military_2" id="p_military_2" value='<%=Rs("military_2")%>' style="width:100%;"></td>
|
|
</tr>
|
|
</table>
|
|
<br>
|
|
<table class="table table-sm table-sm2 table-bordered table-head tr-colors">
|
|
<tr>
|
|
<td width="70" rowspan="4">면허/자격<br>사항</td>
|
|
<td>취득년월</td>
|
|
<td>자격명</td>
|
|
<td>등급</td>
|
|
<td>시행청</td>
|
|
</tr>
|
|
<%
|
|
x_position = x_position + 47
|
|
for i=1 to 3
|
|
%>
|
|
<tr class="license">
|
|
<td>
|
|
<img src="/images/common/btn_reply_del.jpg" align="absmiddle" onclick="txt_clear('license','<%=i%>');" style='CURSOR:pointer;'>
|
|
<input type="text" class="date_picker" name="p_license_date" id="p_license_date_<%=i %>" value='<%=Rs("license_date_"&i) %>' style="width:70px;" readonly="readonly" >
|
|
</td>
|
|
<td ><input type="text" name='p_license_name' value='<%=Rs("license_name_"&i) %>' style="width:250px;" ></td>
|
|
<td ><input type="text" name='p_license_grade' value='<%=Rs("license_grage_"&i) %>' style="width:80px;" ></td>
|
|
<td ><input type="text" name='p_license_class' value='<%=Rs("license_class_"&i) %>' style="width:150px;" ></td>
|
|
</tr>
|
|
<%
|
|
next
|
|
%>
|
|
</table>
|
|
<br>
|
|
<table class="table table-sm table-sm2 table-bordered table-head tr-colors">
|
|
<tr>
|
|
<td width="120px" rowspan="6">학력사항</td>
|
|
<td>학력구분</td>
|
|
<td>기간(년월)</td>
|
|
<td>학교명</td>
|
|
<td>전공</td>
|
|
<td>졸업구분</td>
|
|
<td>학점</td>
|
|
</tr>
|
|
<%
|
|
dim edu_date
|
|
for i=1 to 5
|
|
if Rs("edu_date_"&i)<>"" Then
|
|
edu_date = split(Rs("edu_date_"&i),",")
|
|
Else
|
|
Redim edu_date(1)
|
|
edu_date(0)=""
|
|
edu_date(1)=""
|
|
End If
|
|
%>
|
|
<tr class="education">
|
|
<td>
|
|
<%if i=1 then
|
|
Response.Write "고등학교"
|
|
elseif i = 2 then
|
|
Response.Write "전문대학"
|
|
elseif i = 3 then
|
|
Response.Write "대학교"
|
|
elseif i = 4 then
|
|
Response.Write "대학원(석)"
|
|
elseif i = 5 then
|
|
Response.Write "대학원(박)"
|
|
end if%>
|
|
</td>
|
|
<td>
|
|
<img src="/images/common/btn_reply_del.jpg" align="absmiddle" onclick="txt_clear('edu','<%=i%>');" style='CURSOR:pointer;'>
|
|
<input type="text" class="date_picker" name="p_edu_st_date" id="p_edu_st_date_<%=i %>" value='<%=edu_date(0) %>' style="width:150px;" readonly="readonly" /> -
|
|
<input type="text" class="date_picker" name="p_edu_end_date" id="p_edu_end_date_<%=i %>" value='<%=edu_date(1) %>' style="width:150px;" readonly="readonly" />
|
|
</td>
|
|
<td ><input type="text" name='p_edu_name' value='<%=Rs("edu_name_"&i) %>' style="width:140px;" ></td>
|
|
<td ><input type="text" name='p_edu_study' value='<%=Rs("edu_study_"&i) %>' style="width:110px;" ></td>
|
|
<td ><input type="text" name='p_edu_end_chk' value='<%=Rs("edu_end_chk_"&i) %>' style="width:60px;" onclick="showHideLayersAll(edu_end,'<%=i%>');" style='CURSOR:pointer;'></td>
|
|
<td ><input type="text" name='p_edu_point' value='<%=Rs("edu_point_"&i) %>' style="width:50px;" ></td>
|
|
</tr>
|
|
<%
|
|
next
|
|
%>
|
|
</table>
|
|
<br>
|
|
<table class="table table-sm table-sm2 table-bordered table-head tr-colors">
|
|
<tr>
|
|
<td width="120px" rowspan="7">경력사항</td>
|
|
<td colspan="6">
|
|
총 경력년수
|
|
<input type="text" name='p_career_year_sum' value='<%=Rs("career_year_sum") %>' style="text-align:right;width:50px" readonly="readonly" > 년<!-- readonly -->
|
|
<input type="text" name='p_career_month_sum' value='<%=Rs("career_month_sum") %>' style="text-align:right;width:50px" readonly="readonly" > 개월 <!-- readonly -->
|
|
<b class="k_darkorange">(회사명을 입력해야만 경력 년수가 계산됩니다.)</b>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>경력년수</td>
|
|
<td>기간(년월)</td>
|
|
<td>회사명</td>
|
|
<td>부서명</td>
|
|
<td>직무</td>
|
|
<td>직급</td>
|
|
</tr>
|
|
<%
|
|
x_position = x_position + 34
|
|
Dim career_date
|
|
for i=1 to 5
|
|
if Rs("career_date_"&i)<>"" Then
|
|
career_date = split(Rs("career_date_"&i),",")
|
|
Else
|
|
ReDim career_date(1)
|
|
career_date(0)=""
|
|
career_date(1)=""
|
|
End If
|
|
%>
|
|
<tr class="career">
|
|
<td>
|
|
<input type="text" name='p_career_year' id="p_career_year_<%=i %>" value='<%=Rs("career_year_"&i) %>' style="width:20px;" readonly="readonly" >
|
|
<input type="text" name='p_career_month' id="p_career_month_<%=i %>" value='<%=Rs("career_month_"&i) %>' style="width:20px;" readonly="readonly" >
|
|
</td>
|
|
<td>
|
|
<img src="/images/common/btn_reply_del.jpg" align="absmiddle" onclick="txt_clear('career','<%=i%>');" style='CURSOR:pointer;'>
|
|
<input type="text" class="date_picker" name="p_career_st_date" id="p_career_st_date_<%=i %>" value='<%=career_date(0) %>' style="width:150px;" readonly="readonly" /> -
|
|
<input type="text" class="date_picker" name="p_career_end_date" id="p_career_end_date_<%=i %>" value='<%=career_date(1) %>' style="width:150px;" readonly="readonly" />
|
|
</td>
|
|
<td><input type="text" name='p_company_name' value='<%=Rs("career_company_name_"&i) %>' style="width:150px;" ></td>
|
|
<td><input type="text" name='p_company_part' value='<%=Rs("career_company_part_"&i) %>' style="width:100px;" ></td>
|
|
<td><input type="text" name='p_company_part_job' value='<%=Rs("career_company_part_job_"&i) %>' style="width:100px;" ></td>
|
|
<td><input type="text" name='p_company_part_grade' value='<%=Rs("career_company_part_grade_"&i) %>' style="width:60px;" ></td>
|
|
</tr>
|
|
<%
|
|
next
|
|
%>
|
|
</table>
|
|
<br>
|
|
<table class="table table-sm table-sm2 table-bordered table-head tr-colors">
|
|
<tr>
|
|
<td width="10%" rowspan="4">입사기록</td>
|
|
<td>입사일자</td>
|
|
<td>
|
|
<input type="text" class="date_picker" name="p_krc_in_date" id="p_krc_in_date" value="<%=Rs("krc_in_date") %>" style="width:150px;text-align:right" readonly="readonly" />
|
|
</td>
|
|
<td width="10%" rowspan="4">퇴사기록</td>
|
|
<td>퇴사일자</td>
|
|
<td >
|
|
<input type="text" class="date_picker" name="p_krc_out_date" id="p_krc_out_date" value="<%=Rs("krc_out_date") %>" style="width:150px;text-align:right" readonly="readonly" />
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>본부</td>
|
|
<td >
|
|
<select name="sel_p_depart_first" id="sel_p_depart_first" >
|
|
<option value='' >= 입사부서 = </option>
|
|
<%
|
|
SQL=" Select D_Code, D_Name, before_cd1, before_cd2, before_cd3 from N_Depart where flag='1' "
|
|
adoRs.Open SQL, adoconn, 1
|
|
while not adoRs.eof
|
|
Response.Write "<option value='" & adoRs("D_Code") & "' "
|
|
If (D_Code_First = adoRs("D_Code")) or (D_Code_First = adoRs("before_cd1")) or (D_Code_First = adoRs("before_cd2")) or (D_Code_First = adoRs("before_cd3")) Then
|
|
Response.Write "selected='selected'"
|
|
End If
|
|
Response.Write ">" & adoRs("D_Name") & "</option>"
|
|
adoRs.movenext
|
|
wend
|
|
adoRs.close
|
|
%>
|
|
</select>
|
|
</td>
|
|
<td>최종부서</td>
|
|
<td >
|
|
<select name="sel_p_depart_last" id="sel_p_depart_last" >
|
|
<option value='' >= 퇴사부서 =</option>
|
|
<%
|
|
SQL=" Select D_Code, D_Name, before_cd1, before_cd2, before_cd3 from N_Depart where flag='1' "
|
|
adoRs.Open SQL, adoconn, 1
|
|
while not adoRs.eof
|
|
Response.Write "<option value='" & adoRs("D_Code") & "' "
|
|
If D_code = adoRs("D_Code") Then
|
|
Response.Write "selected='selected'"
|
|
End If
|
|
Response.Write ">" & adoRs("D_Name") & "</option>"
|
|
adoRs.movenext
|
|
wend
|
|
adoRs.close
|
|
%>
|
|
</select>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>직급</td>
|
|
<td >
|
|
<select name="sel_p_pos_first" id="sel_p_pos_first" >
|
|
<option value='' >= 입사직급 = </option>
|
|
<%
|
|
SQL=" Select R_Code, R_name from N_Rank where flag='1' "
|
|
adoRs.Open SQL, adoconn, 1
|
|
while not adoRs.eof
|
|
Response.Write "<option value='" & adoRs("R_Code") & "'"
|
|
If Rs("p_pos_first") = adoRs("R_Code") Then
|
|
Response.Write "selected='selected'"
|
|
End If
|
|
Response.Write ">" & adoRs("R_Name") & "</option>"
|
|
adoRs.movenext
|
|
wend
|
|
adoRs.close
|
|
%>
|
|
</select>
|
|
</td>
|
|
<td>최종직급</td>
|
|
<td >
|
|
<select name="sel_p_pos_last" id="sel_p_pos_last" >
|
|
<option value='' >= 퇴사직급 =</option>
|
|
<%
|
|
SQL=" Select R_Code, R_name from N_Rank where flag='1' "
|
|
adoRs.Open SQL, adoconn, 1
|
|
while not adoRs.eof
|
|
Response.Write "<option value='" & adoRs("R_Code") & "'"
|
|
If Rs("p_pos_first") = adoRs("R_Code") Then
|
|
Response.Write "selected='selected'"
|
|
End If
|
|
Response.Write ">" & adoRs("R_Name") & "</option>"
|
|
adoRs.movenext
|
|
wend
|
|
adoRs.close
|
|
%>
|
|
</select>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<br>
|
|
<table class="table table-sm table-sm2 table-bordered table-head tr-colors">
|
|
<tr>
|
|
<td width="120px" rowspan="3">현재<br><font class="tahoma">History</font></td>
|
|
<td rowspan="3">
|
|
<input type="text" class="date_picker" name="p_krc_now_date" id="p_krc_now_date" value="<%=Rs("krc_now_date") %>" style="width:150px;text-align:right" readonly="readonly" > 기준
|
|
</td>
|
|
<td>부서</td>
|
|
<td >
|
|
<select name="sel_p_depart" id="sel_p_depart" >
|
|
<option value='' >= 현재부서 = </option>
|
|
<%
|
|
If sel_list <> "" Then
|
|
SQL=" Select D_Code, D_Name, before_cd1, before_cd2, before_cd3 from N_Depart where flag='1' "
|
|
adoRs.Open SQL, adoconn, 1
|
|
while not adoRs.eof
|
|
Response.Write "<option value='" & adoRs("D_Code") & "' "
|
|
If D_code = adoRs("D_Code") Then
|
|
Response.Write "selected='selected'"
|
|
End If
|
|
Response.Write ">" & adoRs("D_Name") & "</option>"
|
|
adoRs.movenext
|
|
wend
|
|
adoRs.close
|
|
End IF
|
|
%>
|
|
</select>
|
|
</td>
|
|
<td>팀</td>
|
|
<td >
|
|
<select name="sel_p_team" id="sel_p_team"><!--'팀명-->
|
|
<option value='' >= 현재팀 =</option>
|
|
<%
|
|
If sel_list <> "" Then
|
|
|
|
SQL=" select T_Name, T_Code from V_Department where D_Code='"&D_Code&"' "
|
|
adoRs.Open SQL, adoconn, 1
|
|
while not adoRs.eof
|
|
Response.Write "<option value='" & adoRs("T_Code") & "' "
|
|
|
|
If Cint(T_Code) = Cint(adoRs("T_Code")) Then
|
|
Response.Write "selected='selected'"
|
|
End If
|
|
|
|
Response.Write ">" & adoRs("T_Name") & "</option>"
|
|
adoRs.movenext
|
|
wend
|
|
adoRs.close
|
|
End IF
|
|
%>
|
|
</select>
|
|
</td>
|
|
|
|
</tr>
|
|
<tr>
|
|
<td>직급</td>
|
|
<td >
|
|
<select name="sel_p_pos" id="sel_p_pos" ><!--'직급-->
|
|
<option value='' >= 현재직급 =</option>
|
|
<%
|
|
If sel_list<>"" Then
|
|
SQL=" Select R_Code, R_name from N_Rank where flag='1' "
|
|
adoRs.Open SQL, adoconn, 1
|
|
while not adoRs.eof
|
|
Response.Write "<option value='" & adoRs("R_Code") & "'"
|
|
If Rs("p_rank_now") = adoRs("R_Code") Then
|
|
Response.Write "selected='selected'"
|
|
End If
|
|
Response.Write ">" & adoRs("R_Name") & "</option>"
|
|
adoRs.movenext
|
|
wend
|
|
adoRs.close
|
|
End IF
|
|
%>
|
|
</select>
|
|
</td>
|
|
<td>직책</td>
|
|
<td >
|
|
<select name='sel_p_team_place'><!--'팀장여부-->
|
|
<option value='' >= 회사 내 직책 =</option>
|
|
<%
|
|
SQL=" Select P_Code, P_name from N_Position where flag='1' "
|
|
adoRs.Open SQL, adoconn, 1
|
|
while not adoRs.eof
|
|
Response.Write "<option value='" & adoRs("P_Code") & "'"
|
|
If Rs("p_position_now") = adoRs("P_Code") Then
|
|
Response.Write "Selected='selected' "
|
|
End If
|
|
Response.Write ">" & adoRs("P_Name") & "</option>"
|
|
adoRs.movenext
|
|
wend
|
|
adoRs.close
|
|
%>
|
|
</select>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>직무</td>
|
|
<td >
|
|
<select name="sel_p_krc_job_part" id="sel_p_krc_job_part" ><!--'직급-->
|
|
<option value='' >= 회사내 담당 업무 =</option>
|
|
<%
|
|
SQL=" Select code, name from category_인사관리용 where 구분='담당업무' and d_yes_no='no' "
|
|
adoRs.Open SQL, adoconn, 1
|
|
while not adoRs.eof
|
|
Response.Write "<option value='" & adoRs("code") & "'"
|
|
If Cint(Rs("p_job_now")) = Cint(adoRs("code")) Then
|
|
Response.Write "Selected='selected' "
|
|
End If
|
|
Response.Write ">" & adoRs("name") & "</option>"
|
|
adoRs.movenext
|
|
wend
|
|
adoRs.close
|
|
%>
|
|
</select>
|
|
</td>
|
|
</tr>
|
|
</table> </tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td style="padding:10 0 0 0;"><button type="button" class="btn btn-primary btn-block" onclick="gap_save();">저장하기</button></td>
|
|
</tr>
|
|
</table>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<!-- /.content -->
|
|
<script src="http://dmaps.daum.net/map_js_init/postcode.v2.js"></script>
|
|
<!-- REQUIRED SCRIPTS -->
|
|
<script>
|
|
function JuminChk(jumin){
|
|
|
|
var fmt = RegExp(/^\d{6}[1234]\d{6}$/);
|
|
var buf = new Array(13);
|
|
|
|
if(!fmt.test(jumin)){
|
|
alert("주민번호 형식에 맞지 않습니다.");
|
|
return false;
|
|
}
|
|
|
|
for (var i=0; i< buf.length; i++){
|
|
buf[i] = parseInt(jumin.charAt(i));
|
|
}
|
|
var multiple = [2,3,4,5,6,7,8,9,2,3,4,5];
|
|
var sum = 0;
|
|
|
|
for (var i=0; i<12; i++){
|
|
sum += (buf[i] *= multiple[i]);
|
|
}
|
|
|
|
if ((11-(sum % 11)) % 10 != buf[12]){
|
|
alert("잘못된 주민등록번호 입니다.");
|
|
return false;
|
|
}
|
|
return true;
|
|
}
|
|
function gap_save() {
|
|
//이미지 업로드
|
|
if (chk_data() == true) {
|
|
if($("#img_up").length > 0){
|
|
var birth = $("#p_jumin1").val();
|
|
var sex = $("#p_jumin2").val().charAt(0);
|
|
var name = $("#p_name").val();
|
|
|
|
var img_name = birth+"_"+sex+"_"+name;
|
|
|
|
var formData = new FormData();
|
|
formData.append("img_file", $("#img_up")[0].files[0]);
|
|
formData.append("img_name", img_name);
|
|
formData.append("ImgChk", "1");
|
|
|
|
img_ajax(formData);
|
|
}
|
|
document.frmmember.action = "personnel_card_ok.asp";
|
|
document.frmmember.submit();
|
|
}
|
|
|
|
}
|
|
|
|
function chkLen(str) {//주민번호 길이 확인
|
|
if (allTrim(str).length == 6) {
|
|
document.frmmember.txt_jumin2.focus();
|
|
}
|
|
}
|
|
|
|
function chk_data() {
|
|
var information_p;
|
|
$(".information_p input:not(#img_up)").each(function () {
|
|
if ($(this).prop("disabled") == false) {
|
|
if ($(this).val() == "") {
|
|
information_p = false;
|
|
return false;
|
|
} else {
|
|
information_p = true;
|
|
return false;
|
|
}
|
|
}
|
|
})
|
|
if (information_p == false) {
|
|
alert("기본 인적 사항을 입력하여 주십시오.(성명, 주민번호, 전화 등등)");
|
|
return false;
|
|
}
|
|
|
|
if ($("#p_jumin1").val().toString().length != 6) {
|
|
alert("주민번호의 생년월일을 다시 입력하여 주십시오.");
|
|
return false;
|
|
}
|
|
|
|
if ($("#p_jumin2").val().toString().length != 7) {
|
|
alert("주민번호의 뒤 7자리를 다시 입력하여 주십시오.");
|
|
return false;
|
|
}
|
|
|
|
if ($(".address input").val() == "") {
|
|
alert("주소를 입력하여 주십시오.");
|
|
return false;
|
|
}
|
|
|
|
if (($("#p_krc_tel").val() == "" ) || ($("#p_krc_ip").val() == "" ) || ($("#p_krc_tel_ip").val() == "" ) ){
|
|
alert("전산시스템의 내용을 입력하여 주십시오.");
|
|
return false;
|
|
}
|
|
|
|
if ($(".mail_check").text() == "사용불가(중복)") {
|
|
alert("회사 메일이 중복됩니다.\n다시 입력하여 주십시오.");
|
|
return false;
|
|
}
|
|
|
|
if ($("#military_x").is(":checked") == false) {
|
|
if ($("#military_exmption").is(":checked") == true && $("#p_military_2").val() == "") {
|
|
alert("면제사유를 입력하여 주십시오.");
|
|
return false;
|
|
}
|
|
if ($("#military_exmption").is(":checked") == false && $(".military_tr1 input").val() == "") {
|
|
alert("병역사항을 입력하여 주십시오.");
|
|
return false;
|
|
}
|
|
}
|
|
|
|
var lincense;
|
|
$(".license").each(function (i) {
|
|
if ($("input[name=p_license_date]:eq(" + i + ")").val() != "") {
|
|
if ($("input[name=p_license_name]:eq(" + i + ")").val() == "") {
|
|
lincense = false;
|
|
return false;
|
|
} else {
|
|
lincense = true;
|
|
}
|
|
}
|
|
});
|
|
if (lincense == false) {
|
|
alert("면허 사항을 입력하여 주십시오.");
|
|
return false;
|
|
}
|
|
|
|
var career;
|
|
$(".career").each(function (i) {
|
|
if ($("input[name=p_career_st_date]:eq(" + i + ")").val() != "") {
|
|
if ($("input[name=p_career_end_date]:eq(" + i + ")").val() == "" ) {
|
|
career = false;
|
|
return false;
|
|
} else {
|
|
career = true;
|
|
}
|
|
}
|
|
});
|
|
|
|
if (career == false) {
|
|
alert("경력 사항을 입력하여 주십시오.");
|
|
return false;
|
|
}
|
|
|
|
if ($("#p_krc_in_date").val() == "" || $("#sel_p_depart_first").val() == "" || $("#sel_p_pos_first").val() == "") {
|
|
alert("입사기록을 입력하여 주십시오.");
|
|
return false;
|
|
}
|
|
|
|
if ($("#p_krc_out_date").val() != "") {
|
|
if ($("#sel_p_depart_last").val() == "" || $("#sel_p_pos_last").val() == "") {
|
|
alert("퇴사기록을 입력하여 주십시오.");
|
|
return false;
|
|
}
|
|
}
|
|
|
|
if ($("#p_krc_now_date").val() == "") {
|
|
alert("현재 부서의 입력 기준 일자를 입력하여 주십시오.");
|
|
$("#p_krc_now_date").focus();
|
|
return false;
|
|
} else {
|
|
if ($("#sel_p_team_place").val() == "" || $("#sel_p_krc_job_part").val() == "") {
|
|
alert("현재 직책/직무를 입력하여 주십시오.");
|
|
return false;
|
|
}
|
|
}
|
|
|
|
$("#p_user_mail2").val($("#p_user_mail2_1").val() + "@" + $("#p_user_mail2_2").val());
|
|
$("#p_user_mail").val($("#p_user_mail").val().split("@")[0] + "@kric.com");
|
|
|
|
//alert("성공");
|
|
return true;
|
|
}
|
|
//##### 주소 검색
|
|
function win_open(x) {
|
|
new daum.Postcode({
|
|
oncomplete: function (data) {
|
|
$("input[name=p_zip_code" + x + "]").val((data.postcode != "" ? data.postcode.replace('-', '') : data.zonecode));
|
|
if (data.userSelectedType == 'R') {
|
|
$("input[name=p_address" + x + "_1]").val(data.roadAddress + " " + data.buildingName + "");
|
|
} else {
|
|
$("input[name=p_address" + x + "_1]").val(data.jibunAddress + " " + data.buildingName + "");
|
|
}
|
|
//console.log(data);
|
|
}
|
|
}).open();
|
|
}
|
|
|
|
//img check
|
|
function img_chk(){
|
|
var img = new Image();
|
|
|
|
var url = '/images/management/img/<%=jumin(0)%>_<%=left(jumin(1),1) %>_<%=Rs("p_name")%>.jpg';
|
|
img.src = url
|
|
|
|
img.onload = function(){
|
|
$("#p_img").attr("src", url);
|
|
}
|
|
|
|
img.onerror = function(){
|
|
$("#p_img").attr("src", '/images/management/img_up.png');
|
|
}
|
|
}
|
|
|
|
//사진 첨부
|
|
function img_attach(e){
|
|
|
|
$(".file_btn").empty();
|
|
|
|
var files = this.files[0];
|
|
|
|
var reader = new FileReader();
|
|
|
|
reader.onload = function(f){
|
|
var img = new Image();
|
|
img.src = f.target.result;
|
|
img.width = 120;
|
|
img.height = 150;
|
|
$(".file_btn").append("<a href=\"javascript:void(0);\" onclick=\"img_delete(\'" + files.name + "\')\" id=\"file_id\" class=\"file_id\"><img src=\'"+ f.target.result + "\' dtata-file = '" + files.name + "' class='sel_file' title='삭제' style='width:100%;'></a>");
|
|
|
|
}
|
|
|
|
reader.readAsDataURL(files);
|
|
|
|
}
|
|
|
|
//사진 삭제
|
|
function img_delete(index){
|
|
var agent = navigator.userAgent.toLowerCase();
|
|
|
|
if(confirm(index+"의 파일을 삭제 하시겠습니까?")){
|
|
$(".file_btn").empty();
|
|
|
|
$(".file_btn").append("<img src=\"/images/management/img_up.png\" id=\"p_img\" style=\"width:100%;cursor:pointer;\" title=\"이미지 업로드(click)\" onclick=\"document.all.img_up.click();\">");
|
|
|
|
if (agent.indexOf("msie") != -1) { // ie 일때
|
|
$("#img_up").replaceWith( $("#img_up").clone(true) );
|
|
} else { // 그외
|
|
$("#img_up").val("");
|
|
}
|
|
|
|
alert("삭제 완료");
|
|
}else{
|
|
alert("취소 완료");
|
|
return false;
|
|
}
|
|
|
|
}
|
|
|
|
function img_ajax(data){
|
|
var chk
|
|
$.ajax({
|
|
url:"personnel_card_img_ajax.asp",
|
|
enctype:'multipart/form-data',
|
|
type:"POST",
|
|
data:data,
|
|
cache: false,
|
|
async: false,
|
|
contentType: false,
|
|
processData: false,
|
|
success:function(res){
|
|
chk = res;
|
|
},
|
|
error:function(res){
|
|
chk = '9';
|
|
}
|
|
});
|
|
return chk;
|
|
}
|
|
|
|
$(function () {
|
|
img_chk();
|
|
|
|
$("#img_up").click(function(e){
|
|
if($("#p_jumin1").val() == "" || $("#p_jumin2").val() == ""){
|
|
alert("성명, 주민번호를 입력 후 완료 해주십시오..");
|
|
return false;
|
|
}else{
|
|
$("#img_up").off().on("change", img_attach);
|
|
}
|
|
|
|
});
|
|
|
|
$("#p_military_2").prop('disabled', true);
|
|
$("#p_military_2").css('background', "gray");
|
|
|
|
//한글입력 안되게 처리
|
|
$(".en_num_cls").keydown(function (event) {
|
|
var inputVal = $(this).val();
|
|
$(this).css('ime-mode', 'disabled');
|
|
$(this).val(inputVal.replace(/[ㄱ-ㅎ|ㅏ-ㅣ|가-획]/gi, ''));
|
|
});
|
|
|
|
//결혼여부
|
|
$("input[name=p_marriage]").click(function () {
|
|
var p_marriage = $(this).val();
|
|
if (p_marriage == "미혼") {
|
|
$("input[name=p_marriage_date]").prop("disabled", true);
|
|
$("input[name=p_marriage_date]").css("background", "gray");
|
|
$("input[name=p_marriage_date]").val("");
|
|
} else {
|
|
$("input[name=p_marriage_date]").prop("disabled", false);
|
|
$("input[name=p_marriage_date]").css("background", "");
|
|
}
|
|
});
|
|
|
|
//주소
|
|
$("#add_img").click(function () {
|
|
if ($("#p_zip_code1").val() != "") {
|
|
$("#p_zip_code2").val($("#p_zip_code1").val());
|
|
$("#p_address2_1").val($("#p_address1_1").val());
|
|
$("#p_address2_2").val($("#p_address1_2").val());
|
|
} else {
|
|
alert("주민등록상의 주소지를 입력하여 주십시오.");
|
|
return false;
|
|
}
|
|
});
|
|
|
|
//Jquery Dialog(Modal)
|
|
$("#p_search").click(function () {
|
|
var s_name = $("input[name=p_name]").val();
|
|
if (s_name == "") {
|
|
alert("이름을 입력하여 주십시오.");
|
|
return false;
|
|
} else {
|
|
var url = "personnel_card_ajax.asp?s_name=" + s_name;
|
|
modal_open(url, '0');
|
|
}
|
|
});
|
|
|
|
//$("#tel_ip_search").click(function () {
|
|
$("#tel_edit").click(function () {
|
|
var url = "ip_list.asp";
|
|
modal_open(url, 'ok', 'tel');
|
|
});
|
|
|
|
$("#ip_edit").click(function () {
|
|
var url = "ip_list.asp?tel_num="+$("#p_krc_tel").val();
|
|
modal_open(url, 'ok', 'ip');
|
|
});
|
|
|
|
function modal_open(url, a, gubun) {
|
|
var txt;
|
|
$("body").css({
|
|
overflow: 'hidden'
|
|
});
|
|
if (a == 'ok') { txt = "완료"; } else if (a == "1") { txt = "다음"; } else { txt = "완료"; }
|
|
var searchModal = $(".search_modal").dialog({
|
|
autoOpen: false,
|
|
modal: true,
|
|
resizable: false,
|
|
position: { my: "center"},
|
|
show: "blind",
|
|
width: "400",
|
|
height: "500",
|
|
title: "검색",
|
|
open: function () {
|
|
$(".ui-widget-overlay").css({
|
|
opacity: 0.5,
|
|
filter: "Alpha(Opacity=50)",
|
|
backgroundColor: "gray"
|
|
});
|
|
},
|
|
close: function (event, ui) {
|
|
$("body").css({
|
|
overflow: 'inherit'
|
|
});
|
|
url = "";
|
|
searchModal.dialog("close");
|
|
|
|
},
|
|
buttons: [
|
|
{
|
|
text: txt,
|
|
click: function () {
|
|
var tel_num = $("#tel_num").text();
|
|
var ip_num = $("#ip_num").text();
|
|
if (gubun == 'tel') {
|
|
if (tel_num == "") {
|
|
alert("내선번호를 선택하여 주십시오.");
|
|
return false;
|
|
} else {
|
|
$("input[name=p_krc_tel]").val(tel_num);
|
|
//$("input[name=p_krc_tel3]").val("02-"+"3415-"+tel_num);
|
|
$("input[name=p_krc_tel3]").val(tel_num);
|
|
alert("수정 완료");
|
|
searchModal.dialog("close");
|
|
}
|
|
} else if (gubun == "ip") {
|
|
if (ip_num == "") {
|
|
alert("IP를 선택하여 주십시오.");
|
|
return false;
|
|
} else {
|
|
$("input[name=p_krc_ip]").val(ip_num);
|
|
$("input[name=p_krc_tel_ip]").val(ip_num.replace('.13.', '.14.'));
|
|
alert("지정 완료");
|
|
searchModal.dialog("close");
|
|
}
|
|
} else {
|
|
searchModal.dialog("close");
|
|
}
|
|
}
|
|
}
|
|
]
|
|
});
|
|
|
|
$(".search_modal").load(url, function () {
|
|
searchModal.dialog("open");
|
|
});
|
|
}
|
|
|
|
//사내 Email 증복 체크
|
|
$("#search_email").click(function () {
|
|
var s_email = $("#p_user_mail").val();
|
|
if (s_email == "") {
|
|
alert("이메일 지정하여 주십시오.");
|
|
$("#p_user_mail").focus();
|
|
return false;
|
|
} else {
|
|
$.ajax({
|
|
url: "personnel_card_check_ajax.asp",
|
|
type: "post",
|
|
data: { "s_email": s_email },
|
|
success: function (response, textStatus, jqXHR) {
|
|
//alert(response);
|
|
if (response == "0") {
|
|
$(".mail_check").text("사용가능");
|
|
} else {
|
|
$(".mail_check").text("사용불가(중복)");
|
|
}
|
|
|
|
},
|
|
complete: function () {
|
|
//alert("comment complete");
|
|
}, error: function () {
|
|
alert("Web Service Error.");
|
|
}
|
|
});
|
|
}
|
|
});
|
|
|
|
//개인 Email
|
|
function eamil_check(a) {
|
|
if (a != "") {
|
|
$("#p_user_mail2_2").val(a);
|
|
$("#p_user_mail2_2").prop('readonly', true);
|
|
} else {
|
|
$("#p_user_mail2_2").val("");
|
|
$("#p_user_mail2_2").prop('readonly', false);
|
|
}
|
|
}
|
|
|
|
$("#sel_mail").click(function () {
|
|
eamil_check($("#sel_mail").val());
|
|
});
|
|
|
|
//병역사항
|
|
$("#military_x").click(function () {
|
|
var military_x = $(this);
|
|
if (military_x.prop('checked')) {
|
|
$(".military input").each(function () {
|
|
if ($(this).prop("name") != "p_military_type") {
|
|
$(this).prop('disabled', true);
|
|
$(".military input:checkbox").prop('checked', false);
|
|
$(this).css('background', "gray");
|
|
$(this).val("");
|
|
}
|
|
$("#p_military_type").val("해당없음");
|
|
$("#p_military_type").prop("readonly", true);
|
|
});
|
|
} else {
|
|
$("#p_military_type").prop("readonly", false);
|
|
$("#military_exmption").prop("disabled", false);
|
|
$(".military_tr1 input").prop('disabled', false);
|
|
$(".military_tr1 input").css('background', "");
|
|
$(".military_tr1 input").val("");
|
|
}
|
|
});
|
|
|
|
<%If Rs("military_type")="해당없음" Then %>
|
|
$(".military input").each(function () {
|
|
if ($(this).prop("name") != "p_military_type") {
|
|
$(this).prop('disabled', true);
|
|
$(".military input:checkbox").prop('checked', false);
|
|
$(this).css('background', "gray");
|
|
$(this).val("");
|
|
}
|
|
$("#p_military_type").prop("readonly", true);
|
|
});
|
|
<%End If%>
|
|
|
|
//병역(면제)
|
|
$("#military_exmption").click(function () {
|
|
var military_exmption = $(this);
|
|
if (military_exmption.prop('checked')) {
|
|
$("#p_military_2").prop('disabled', false);
|
|
$("#p_military_2").css('background', "");
|
|
|
|
$(".military_tr1 input").each(function () {
|
|
if ($(this).prop("name") != "p_military_type") {
|
|
$(this).prop('disabled', true);
|
|
$(this).css('background', "gray");
|
|
$(this).val("");
|
|
}
|
|
$("#p_military_type").val("면제");
|
|
$("#p_military_type").prop("readonly", true);
|
|
});
|
|
} else {
|
|
$("#p_military_type").prop("readonly", false);
|
|
$("#p_military_2").prop('disabled', true);
|
|
$("#p_military_2").css('background', "gray");
|
|
$("#p_military_2").val("");
|
|
|
|
$(".military_tr1 input").prop('disabled', false);
|
|
$(".military_tr1 input").css('background', "");
|
|
$(".military_tr1 input").val("");
|
|
}
|
|
});
|
|
|
|
<%If Rs("military_type")="면제" Then %>
|
|
$("#p_military_2").prop('disabled', false);
|
|
$("#p_military_2").css('background', "");
|
|
|
|
$(".military_tr1 input").each(function () {
|
|
if ($(this).prop("name") != "p_military_type") {
|
|
$(this).prop('disabled', true);
|
|
$(this).css('background', "gray");
|
|
$(this).val("");
|
|
}
|
|
$("#p_military_type").prop("readonly", true);
|
|
});
|
|
<%End If%>
|
|
|
|
|
|
$("input[name=p_military_1]").click(function () {
|
|
var st_date = $("input[name=military_service_st]").val().split('-');
|
|
var end_date = $("input[name=military_service_end]").val().split('-');
|
|
|
|
var date1 = new Date(st_date[0], st_date[1]);
|
|
var date2 = new Date(end_date[0], end_date[1]);
|
|
|
|
if (date1 > date2) {
|
|
alert("기간 입력이 잘못 되었습니다.");
|
|
var end_date = $("input[name=military_service_end]").val("");
|
|
return false;
|
|
}
|
|
});
|
|
|
|
|
|
|
|
//학력 기간
|
|
$("input[name=p_edu_end_date]").each(function (i) {
|
|
$("input[name=p_edu_name]:Eq(" + i + ")").click(function () {
|
|
var st_date = $("input[name=p_edu_st_date]:Eq(" + i + ")").val().split('-');
|
|
var end_date = $("input[name=p_edu_end_date]:Eq(" + i + ")").val().split('-');
|
|
|
|
var date1 = new Date(st_date[0], st_date[1]);
|
|
var date2 = new Date(end_date[0], end_date[1]);
|
|
|
|
if (date1 > date2) {
|
|
alert("기간 입력이 잘못 되었습니다.");
|
|
var end_date = $("input[name=p_edu_end_date]:Eq(" + i + ")").val("");
|
|
return false;
|
|
}
|
|
});
|
|
});
|
|
|
|
$("#p_jumin1").off().on("keyup",function(){
|
|
if($(this).val().length == 6)
|
|
{
|
|
$("#p_jumin1").blur();
|
|
$("#p_jumin2").focus();
|
|
}
|
|
});
|
|
|
|
$("#jumin_chk").on("click", function(){
|
|
var jumin1 = $("#p_jumin1").val();
|
|
var jumin2 = $("#p_jumin2").val();
|
|
|
|
if(jumin1 == "" || jumin2 == ""){
|
|
alert("주민번호를 입력하여 주십시오.");
|
|
jumin1 == "" ? $("#p_jumin1").focus() : $("#p_jumin2").focus();
|
|
return false;
|
|
}
|
|
|
|
if(JuminChk(jumin1+jumin2) == false){
|
|
$("#jumin_ok").val("0");
|
|
return false;
|
|
}
|
|
|
|
$("#p_jumin1").after("<span>"+$("#p_jumin1").val()+"</span>");
|
|
//var pattern = /(?<=.{1})./gi;
|
|
var pattern = /.{6}$/;;
|
|
jumin2 = jumin2.replace(pattern, '******');
|
|
$("#p_jumin2").after("<span>"+jumin2+"</span>");
|
|
$("#p_jumin1").attr("type","hidden");
|
|
$("#p_jumin2").attr("type","hidden");
|
|
$("#jumin_ok").val("1");
|
|
$("#jumin_chk").replaceWith("<i class='ui-icon ui-icon-check'></i><i style=\"color:red;\">인증완료</i>");
|
|
});
|
|
|
|
|
|
//경력별 년월
|
|
$("input[name=p_career_end_date]").each(function (i) {
|
|
$(this).on("change",function(){
|
|
//$("input[name=p_company_name]:Eq(" + i + ")").click(function () {
|
|
|
|
if ($("input[name=p_career_st_date]:Eq(" + i + ")").val() == "" || $("input[name=p_career_end_date]:Eq(" + i + ")") == "") {
|
|
alert("기간을 입력하여 주십시오.");
|
|
return false;
|
|
}
|
|
|
|
$("input[name=p_career_year_sum]").val("0");
|
|
$("input[name=p_career_month_sum]").val("0");
|
|
|
|
var st_date = $("input[name=p_career_st_date]:Eq(" + i + ")").val().split('-');
|
|
var end_date = $("input[name=p_career_end_date]:Eq(" + i + ")").val().split('-');
|
|
|
|
var date1 = new Date(st_date[0], st_date[1]);
|
|
var date2 = new Date(end_date[0], end_date[1]);
|
|
|
|
if (date1 > date2) {
|
|
alert("기간 입력이 잘못 되었습니다.");
|
|
var end_date = $("input[name=p_career_end_date]:Eq(" + i + ")").val("");
|
|
return false;
|
|
}
|
|
|
|
var diff1 = end_date[0] - st_date[0];
|
|
var diff2 = (diff1 * 12 + end_date[1] * 1) - st_date[1];
|
|
|
|
var diff_year = parseInt(diff2 / 12);
|
|
var diff_month = parseInt(diff2 % 12);
|
|
|
|
if (st_date = "" || end_date == "") {
|
|
$("input[name=p_career_year]:eq(" + i + ")").val("");
|
|
$("input[name=p_career_month]:eq(" + i + ")").val("");
|
|
}
|
|
|
|
$("input[name=p_career_year]:eq(" + i + ")").val(diff_year);
|
|
$("input[name=p_career_month]:eq(" + i + ")").val(diff_month);
|
|
|
|
var a=0;
|
|
var b=0;
|
|
$("input[name=p_career_year]").each(function(e){
|
|
if($(this).val() != ""){
|
|
a += parseInt($(this).val());
|
|
b += parseInt($("input[name=p_career_month]").eq(e).val());
|
|
}
|
|
});
|
|
y_m_sum(a, b);
|
|
|
|
});
|
|
});
|
|
|
|
//총 년,개월
|
|
function y_m_sum(yy, mm) {
|
|
var yy = parseInt(yy);
|
|
var mm = parseInt(mm);
|
|
var y_sum = parseInt($("input[name=p_career_year_sum]").val()) || 0;
|
|
var m_sum = parseInt($("input[name=p_career_month_sum]").val()) || 0;
|
|
|
|
y_sum = y_sum + yy;
|
|
m_sum = m_sum + mm;
|
|
|
|
if (m_sum > 11) {
|
|
y_sum = y_sum + (parseInt(m_sum / 12));
|
|
m_sum = m_sum - ((parseInt(m_sum / 12)) * 12);
|
|
}
|
|
|
|
$("input[name=p_career_year_sum]").val(y_sum);
|
|
$("input[name=p_career_month_sum]").val(m_sum);
|
|
}
|
|
|
|
//달력
|
|
$(".date_picker").each(function () {
|
|
var tag_name = $(this).prop("name");
|
|
var d_format;
|
|
if (tag_name == "p_military_service_st" || tag_name == "p_military_service_end" || tag_name == "p_license_date" || tag_name == "p_edu_st_date" || tag_name == "p_edu_end_date" || tag_name == "p_career_st_date" || tag_name == "p_career_end_date") {
|
|
d_format = "yy-mm";
|
|
} else {
|
|
d_format = "yy-mm-dd";
|
|
}
|
|
$(this).
|
|
changeYear: true,
|
|
changeMonth: true,
|
|
prevText: '이전 달',
|
|
nextText: '다음 달',
|
|
yearRange: '1900:+10',
|
|
dateFormat: d_format,
|
|
monthNames: ['1월', '2월', '3월', '4월', '5월', '6월', '7월', '8월', '9월', '10월', '11월', '12월'],
|
|
monthNamesShort: ['1월', '2월', '3월', '4월', '5월', '6월', '7월', '8월', '9월', '10월', '11월', '12월'],
|
|
showMonthAfterYear: true,
|
|
yearSuffix: '년'
|
|
});
|
|
});
|
|
|
|
$("#sel_p_depart").change(function(){
|
|
var d_code = $(this).val();
|
|
var sel_html = $(this).html();
|
|
$("#sel_p_depart_last").val($(this).val());
|
|
$.ajax({
|
|
url: "personnel_card_depart_ajax.asp",
|
|
data: { "d_code": d_code },
|
|
type: "post",
|
|
success: function (response, textStatus, jqXHR) {
|
|
if (d_code != "") {
|
|
$("#sel_p_team").empty();
|
|
$("#sel_p_team").append(response);
|
|
} else {
|
|
$("#sel_p_team").empty();
|
|
$("#sel_p_team").append(txt2);
|
|
}
|
|
}, error: function () {
|
|
alert("Web Service Error.");
|
|
}
|
|
});
|
|
});
|
|
});
|
|
</script>
|
|
</div>
|
|
<!-- /.content-wrapper -->
|
|
<!-- #include virtual = "include/footer.asp" --> |