⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 func_emreg.asp

📁 企业办公简单管理系统,可以发布信息以及论坛
💻 ASP
字号:
<SCRIPT LANGUAGE="JavaScript">
<!--
function CheckInput()
{
	if(!dochange(document.theform.telephone))
		return false;
	
	return true;
}	
function dochange(object)
{
		var i,strText,s;
		s=object.value;
		strText="请输入正确值,必须用阿拉伯数字填写";
		 for (i = 0; i < s.length; i++)
		{   
			// Check that current character is number.
			var c = s.charAt(i);
			if (!(((c >= "0") && (c <= "9")) || c == "."))
			{
				object.focus();
				window.alert(strText);
				
				return false;
			}
		}
		return true;
}		
//-->
</SCRIPT>

<!-- #include file="func_verify.asp" -->
<%

dim sumcount,saveserial

set rs = Server.CreateObject("ADODB.Recordset")


if request("saveflag")<>"" then
	dim msg
	saveserial=1
	msg=""

	if trim(request("name"))="" then
		msg=msg & saveserial & "、请输入员工姓名!<br>"
		saveserial=saveserial+1
	end if
	
	if trim(request("Sex"))="" then
		msg=msg & saveserial & "、请选择员工性别!<br>"
		saveserial=saveserial+1
	end if
	
	if trim(request("politics"))="" then
		msg=msg & saveserial & "、请选择员工政治面貌!<br>"
		saveserial=saveserial+1
	end if
	if trim(request("Marry"))="" then
		msg=msg & saveserial & "、请选择员工婚姻状况!<br>"
		saveserial=saveserial+1
	end if	
	if trim(request("Tech_post"))="" then
		msg=msg & saveserial & "、请输入员工职称!<br>"
		saveserial=saveserial+1
	end if	
	if trim(request("Stationid"))="" then
		msg=msg & saveserial & "、请选择员工职务!<br>"
		saveserial=saveserial+1
	end if
	if trim(request("stature"))="" then
		msg=msg & saveserial & "、请输入员工身高!<br>"
		saveserial=saveserial+1
	end if		

	if trim(request("IDCard"))="" then
		msg=msg & saveserial & "、请输入员工身份证号码!<br>"
		saveserial=saveserial+1
	end if
	
	if trim(request("Edu_level"))="" then
		msg=msg & saveserial & "、请输入员工学历!<br>"
		saveserial=saveserial+1
	end if
	if trim(request("degree"))="" then
		msg=msg & saveserial & "、请输入员工学位!<br>"
		saveserial=saveserial+1
	end if	
	if trim(request("speciality"))="" then
		msg=msg & saveserial & "、请输入员工专业!<br>"
		saveserial=saveserial+1
	end if	

	if trim(request("Register"))="" then
		msg=msg & saveserial & "、请输入员工户口地址!<br>"
		saveserial=saveserial+1
	end if
	if trim(request("Reg_postcode"))="" then
		msg=msg & saveserial & "、请输入员工户口地址邮编!<br>"
		saveserial=saveserial+1
	end if



	if saveserial<=1 then
		sql="select * from cci_oa_emreg"
		rs.open sql,connobj,3,3
		rs.addnew

		rs("Name")=request("name")
		rs("Sex")=request("Sex")
		rs("Birthday")=request("year") & "-" & request("month") & "-" & request("day") & " 00:00:00"
		rs("politics")=request("politics")
		rs("Marry")=request("Marry")
		rs("nation")=request("nation")
		rs("Tech_post")=request("Tech_post")
		rs("Stationid")=request("Stationid")	
		rs("InTime")=request("year2") & "-" & request("month2") & "-" & request("day2") & " 00:00:00"	
		rs("stature")=request("stature")	
		rs("IDCard")=request("IDCard")
		rs("Edu_level")=request("Edu_level")
		rs("degree")=request("degree")
		rs("speciality")=request("speciality")
		rs("WorkTime")=request("year3") & "-" & request("month3") & "-" & request("day3") & " 00:00:00"
		if trim(request("PCability"))<>"" then
			rs("PCability")=request("PCability")
		end if
		if trim(request("Application"))<>"" then
			rs("Application")=request("Application")
		end if
		if trim(request("StrongSuit"))<>"" then	
			rs("StrongSuit")=request("StrongSuit")
		end if
		if trim(request("avocation"))<>"" then	
			rs("avocation")=request("avocation")
		end if
		if trim(request("chinese"))<>"" then	
			rs("chinese")=request("chinese")
		end if
		if trim(request("englishL"))<>"" then	
			rs("englishL")=1
		end if
		if trim(request("EnglishT"))<>"" then
			rs("EnglishT")=1
		end if
		if trim(request("EnglishR"))<>"" then
			rs("EnglishR")=1
		end if
		if trim(request("englishW"))<>"" then
			rs("englishW")=1
		end if
		if trim(request("GuangDongL"))<>"" then
			rs("GuangDongL")=1	
		end if
		if trim(request("GuangDongT"))<>"" then
			rs("GuangDongT")=1	
		end if

		rs("Register")=request("Register")
		rs("Reg_postcode")=request("Reg_postcode")
		
		if trim(request("RegTel"))<>"" then
			rs("RegTel")=request("RegTel")
		end if
		if trim(request("Dwelling"))<>"" then	
			rs("Dwelling")=request("Dwelling")
		end if
		if trim(request("Dw_postcode"))<>"" then	
			rs("Dw_postcode")=request("Dw_postcode")
		end if
		if trim(request("DW_Tel"))<>"" then	
			rs("DW_Tel")=request("DW_Tel")
		end if
		if trim(request("Urgency_Tel"))<>"" then	
			rs("Urgency_Tel")=request("Urgency_Tel")
		end if
		if trim(request("Urgency_other"))<>"" then	
			rs("Urgency_other")=request("Urgency_other")
		end if

		rs("status")=1
	
			
		rs.update
		rs.close



		response.redirect "message.asp?rediurl=defaultA.asp&msgurl=首页&msginfo=员工基本信息保存成功!如果还要对该员工录入其他信息,请选择“员工档案维护”!"
	end if
	response.Write("<div align=center><font color=#FF0000>" &msg & "</font></div>")
end if





%>

  
<table width="100%" align="center" cellpadding="1" cellspacing="1" class=tableborder1>
  <form name="theform" method="post" action="" onSubmit="return CheckInput()">
    <tr > 
      <th height="25" colspan="6" align="center" class=TopLighNav>人员基本信息登记</th>
    </tr>
    <tr> 
      <td width="92" align="center" class=tablebody1>姓名</td>
      <td width="111" class=tablebody1><input name="Name" type="text" id="Name" size="15"></td>
      <td width="71" align="center" class=tablebody1>性别</td>
      <td width="169" class=tablebody1><select name="sex" id="sex">
          <option value="1" selected>男</option>
          <option value="0">女</option>
		  <option value="2">未知</option>
        </select></td>
      <td width="104" align="center" class=tablebody1>出生<br>年月</td>
      <td width="200" class=tablebody1><!-- #include file="func_currtime8.asp" --></td>
    </tr>
    <tr> 
      <td align="center" class=tablebody1>政治<br>面貌</td>
      <td class=tablebody1><select name="politics" id="politics">
          <option value="1">党员</option>
          <option value="2">团员</option>
          <option value="3">其他</option>
        </select></td>
      <td align="center" class=tablebody1>婚姻</td>
      <td class=tablebody1><select name="Marry" id="Marry">
          <option value="0">未婚</option>
          <option value="1">已婚</option>
        </select> </td>
      <td align="center" class=tablebody1>民族</td>
      <td class=tablebody1><select name="nation" id="nation">
	  <option value=1>汉族</option>
<option value=2>回族</option>
<option value=3>藏族</option>
<option value=4>壮族</option>
<option value=5>瑶族</option>
<option value=6>彝族</option>
<option value=7>阿昌族</option>
<option value=8>白族</option>
<option value=9>布依族</option>
<option value=10>傣族</option>
<option value=11>侗族</option>
<option value=12>土家族</option>
<option value=13>独龙族</option>
<option value=14>仡佬族</option>
<option value=15>哈尼族</option>
<option value=16>基诺族</option>
<option value=17>景颇族</option>
<option value=18>拉祜族</option>
<option value=19>黎族</option>
<option value=20>傈僳族</option>
<option value=21>珞巴族</option>
<option value=22>毛南族</option>
<option value=23>门巴族</option>
<option value=24>苗族</option>
<option value=25>仫佬族</option>
<option value=26>纳西族</option>
<option value=27>怒族</option>
<option value=28>普米族</option>
<option value=29>羌族</option>
<option value=30>畲族</option>
<option value=31>水族</option>
<option value=32>维吾尔族</option>
<option value=33>哈萨克族</option>
<option value=34>塔塔尔族</option>
<option value=35>满族</option>
<option value=36>蒙古族</option>
<option value=37>土族</option>
<option value=38>东乡族</option>
<option value=39>撒拉族</option>
<option value=40>保安族</option>
<option value=41>鄂伦春族</option>
<option value=42>鄂温克族</option>
<option value=43>达斡尔族</option>
<option value=44>赫哲族</option>
<option value=45>乌兹别克族</option>
<option value=46>柯尔克孜族</option>
<option value=47>锡伯族</option>
<option value=48>裕固族</option>
<option value=49>朝鲜族</option>
<option value=50>布朗族</option>
<option value=51>德昂族</option>
<option value=52>佤族</option>
<option value=53>塔吉克斯坦族</option>
<option value=54>俄罗斯族</option>
<option value=55>高山族</option>
<option value=56>京族</option>
        </select> </td>
    </tr>
    <tr> 
      <td align="center" class=tablebody1>职称</td>
      <td class=tablebody1><input name="Tech_post" type="text" id="Tech_post" size="15"> 
      </td>
      <td align="center" class=tablebody1>应聘<br>职位</td>
      <td class=tablebody1><select name="stationid"><%
	  
	  sql="select stationname,id from cci_station"
	  rs.open sql,connobj,1,1
	  do while not rs.eof
	  	if rs("id")=session("stationid") then
			response.Write "<option value=" & rs("id") & " selected>" & rs("stationname") & "</option>"
		else	
	  		response.Write "<option value=" & rs("id") & ">" & rs("stationname") & "</option>"
	  	end if
		rs.movenext
	  loop 
	  rs.close
	  
	  %></select> </td>
      <td width="104" align="center" class=tablebody1>入职<br>日期</td>
      <td class=tablebody1><!-- #include file="func_currtime7.asp" --></td>
    </tr>
    <tr> 
      <td align="center" class=tablebody1>身高</td>
      <td class=tablebody1><input name="stature" type="text" id="stature" size="15"> 
      </td>
      <td align="center" class=tablebody1>身份证</td>
      <td colspan="3" class=tablebody1><input name="IDCard" type="text" id="IDCard" size="55" maxlength="20"> 
      </td>
    </tr>
    <tr> 
      <td align="center" class=tablebody1>学历</td>
      <td class=tablebody1><select name="Edu_level" id="Edu_level">
          <option value="1">初中</option>
          <option value="2">中专</option>
		  <option value="3">高中</option>
          <option value="4">大专</option>
          <option value="5">本科</option>
          <option value="6">硕士</option>
          <option value="7">博士</option>
        </select> </td>
      <td align="center" class=tablebody1>学位</td>
      <td class=tablebody1><input name="degree" type="text" id="degree" size="15" maxlength="20"> 
      </td>
      <td align="center" class=tablebody1>专业</td>
      <td class=tablebody1><input name="speciality" type="text" id="speciality" size="25" maxlength="40"> 
      </td>
    </tr>
    <tr> 
      <td align="center" class=tablebody1>计算机<br>能力</td>
      <td class=tablebody1><input name="PCability" type="text" id="PCability" size="15" maxlength="100"> 
      </td>
      <td align="center" class=tablebody1>应用<br>软件</td>
      <td class=tablebody1><input name="Application" type="text" id="Application" size="15" maxlength="100"> 
      </td>
      <td align="center" class=tablebody1>参加<br>工作</td>
      <td class=tablebody1> 
        <!-- #include file="func_currtime6.asp" -->
      </td>
    </tr>
    <tr> 
      <td align="center" class=tablebody1>专业<br>特长</td>
      <td colspan="3" class=tablebody1><input name="StrongSuit" type="text" id="StrongSuit" size="40" maxlength="200"> 
      </td>
      <td align="center" class=tablebody1>业余<br>爱好</td>
      <td class=tablebody1><input name="avocation" type="text" id="avocation" size="25" maxlength="100"> 
      </td>
    </tr>
    <tr> 
      <td  rowspan="2" align="center" class=tablebody1>语言<br>能力</td>
      <td align="center" class=tablebody1>普通话</td>
      <td colspan="3" align="center" class=tablebody1>英语</td>
      <td align="center" class=tablebody1>粤语</td>
    </tr>
    <tr> 
      <td align="center" class=tablebody1><input type="radio" name="chinese" value="1">熟练 <input type="radio" name="chinese" value="2">精通</td>
      <td colspan="3" align="center" class=tablebody1><input name="englishL" type="checkbox" id="englishL" value="checkbox">
<input name="englishT" type="checkbox" id="englishT" value="checkbox">
        <input name="englishR" type="checkbox" id="englishR" value="checkbox">
        <input name="englishW" type="checkbox" id="englishW" value="checkbox">
        写 </td>
      <td align="center" class=tablebody1><input name="GuangDongL" type="checkbox" id="GuangDongL" value="checkbox">
<input name="GuangDongT" type="checkbox" id="GuangDongT" value="checkbox">
        说</td>
    </tr>
    <tr > 
      <td rowspan="2" align="center" class=tablebody1>户口<br>所在地</td>
      <td colspan="5" class=tablebody1><input name="Register" type="text" id="Register" size="90" maxlength="100"></td>
    </tr>
    <tr > 
      <td class=tablebody1>邮政<br>编码</td>
      <td colspan="2" class=tablebody1><input name="Reg_postcode" type="text" id="Reg_postcode" size="20" maxlength="6"></td>
      <td align="center" class=tablebody1>联系<br>电话</td>
      <td class=tablebody1><input name="RegTel" type="text" id="RegTel" size="25" maxlength="30"></td>
    </tr>
    <tr > 
      <td rowspan="2" align="center" class=tablebody1>现住址</td>
      <td colspan="5" class=tablebody1><input name="Dwelling" type="text" id="Dwelling" size="90" maxlength="100"></td>
    </tr>
    <tr > 
      <td height="20" class=tablebody1>邮政<br>编码</td>
      <td colspan="2" class=tablebody1><input name="Dw_postcode" type="text" id="Dw_postcode" size="20" maxlength="6"></td>
      <td align="center" class=tablebody1>联系<br>电话</td>
      <td class=tablebody1><input name="DW_Tel" type="text" id="DW_Tel" size="25" maxlength="30"></td>
    </tr>
    <tr > 
      <td align="center" class=tablebody1>紧急<br>联系</td>
      <td class=tablebody1>电话</td>
      <td colspan="2" class=tablebody1><input name="Urgency_Tel" type="text" id="Urgency_Tel" size="20" maxlength="30"></td>
      <td align="center" class=tablebody1>其他<br>电话</td>
      <td class=tablebody1><input name="Urgency_other" type="text" id="Urgency_other" size="25" maxlength="30"></td>
    </tr>
    <tr> 
      <td colspan="6" align="center" class=tablebody1><input type="submit" name="Submit" value=" 保 存 "></td>
    </tr>
    <input type=hidden name=saveflag value="1">
  </form>
</table>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -