rlzy_lrda.aspx
资源名称:OASystem.rar [点击查看]
上传用户:lishan0805
上传日期:2019-12-08
资源大小:12048k
文件大小:21k
源码类别:
OA系统
开发平台:
C#
- <%@ Page Language="C#" AutoEventWireup="true" CodeFile="rlzy_lrda.aspx.cs" Inherits="rlzy_lrda" %>
- <%@ Register Assembly="WebDate" Namespace="WebDate" TagPrefix="cc1" %>
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml" >
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
- <title>档案录入</title>
- <link href="../css/link.css" type="text/css" />
- <style type="text/css">
- <!--
- .style1 {
- color: #FFFFFF;
- font-weight: bold;
- }
- .style2 {font-size: 12px}
- .style2 {font-size: 12px}
- -->
- </style>
- <link href="../css/link.css" type="text/css" />
- <style type="text/css">
- <!--
- .style3 {color: #FFFFFF}
- .style4 {color: #FF0000}
- .tx {height: 16px; width: 30px; border-color: black black #000000; border-top-width: 0px; border-right-width: 0px; border-
- bottom-width: 1px; border-left-width: 0px; font-size: 9pt; background-color: #eeeeee; color: #0000FF}
- -->
- </style>
- <script type="text/javascript" language="JavaScript">
- <!--
- function check()
- {
- if(document.Form1.txtNumber.value=="")
- {
- alert ("请填写编号!")
- document.Form1.txtNumber.focus()
- return false
- }
- var canceled = false;
- if (document.Form1.txtName.value=="")
- {
- alert ("请输入姓名!")
- document.Form1.txtName.focus()
- return false
- }
- if(document.Form1.txtName.value.length <2)
- {
- alert ("姓名需要至少2个字符!")
- document.Form1.txtName.value = "";
- document.Form1.txtName.focus()
- return false
- }
- if(document.Form1.txtlonig.value == "")
- {
- alert ("登陆名不能为空!")
- document.Form1.txtlonig.value = "";
- document.Form1.txtlonig.focus()
- return false
- }
- if (document.Form1.ddGender.value=="0") {
- alert ("请选择性别!")
- document.Form1.ddGender.focus()
- return false
- }
- if (document.Form1.txtBloodtype.value=="0") {
- alert ("请选择血型!")
- document.Form1.txtBloodtype.focus()
- return false
- }
- if(document.Form1.txtStature.value !="")
- {
- var Stature = document.Form1.txtStature.value;
- //验证是否是数字
- if(isNaN(Stature))
- {
- alert("身高必须是数字!")
- document.Form1.txtStature.value = "";
- document.Form1.txtStature.focus()
- return false;
- }
- }
- if(document.Form1.txtAvoirdupois.value !="")
- {
- var Avoirdupois = document.Form1.txtAvoirdupois.value;
- //验证是否是数字
- if(isNaN(Avoirdupois))
- {
- alert("体重必须是数字!")
- document.Form1.txtAvoirdupois.value = "";
- document.Form1.txtAvoirdupois.focus()
- return false;
- }
- }
- if(document.Form1.txtMobile.value!="")
- {
- var mobile = document.Form1.txtMobile.value;
- var myreg = /^(((13[0-9]{1})|159|(15[0-9]{1}))+d{8})$/;
- if(mobile.length!=11)
- {
- alert("请输入合法的手机号码位数!");
- document.Form1.txtMobile.value = "";
- document.Form1.txtMobile.focus();
- return false;
- }
- if(!myreg.test(mobile))
- {
- alert("请输入合法的手机号码!");
- document.Form1.txtMobile.value = "";
- document.Form1.txtMobile.focus();
- return false;
- }
- }
- if(document.Form1.txtEMail.value !="")
- {
- var pattern = /^([a-z0-9A-Z]+[-|.]?)+[a-z0-9A-Z]@([a-z0-9A-Z]+(-[a-z0-9A-Z]+)?.)+[a-zA-Z]{2,}$/;
- var b = pattern.test(document.Form1.txtEMail.value);
- if(b)
- {
- }else
- {
- alert("eMail格式不正确! 如: wc840302@163.com");
- document.Form1.txtEMail.value = "";
- document.Form1.txtEMail.focus()
- return false;
- }
- }
- if(document.Form1.txtStatuscard.value !="")
- {
- var num = document.Form1.txtStatuscard.value;
- if (isNaN(num))
- {
- alert("身份证必须是数字!");
- document.Form1.txtStatuscard.value = "";
- document.Form1.txtStatuscard.focus()
- return false;
- }
- if(num.length<15||num.length==16||num.length==17||num.length>18)
- {
- alert("身份证位数不对!");
- document.Form1.txtStatuscard.value = "";
- document.Form1.txtStatuscard.focus()
- return false;
- }
- }
- if(document.Form1.txtPhone.value!="")
- {
- var str=document.Form1.txtPhone.value;
- var reg=/(^[0-9]{3,4}-[0-9]{3,8}$)|(^[0-9]{3,8}$)|(^([0-9]{3,4})[0-9]{3,8}$)|(^0{0,1}13[0-9]{9}$)/
- if(reg.test(str))
- {
- alert("请输入合法的电话号码!如:01067231100");
- document.Form1.txtPhone.value = "";
- document.Form1.txtPhone.focus();
- return false;
- }
- }
- if(document.Form1.txtPostalcode.value!="")
- {
- var you = document.Form1.txtPostalcode.value;
- var bian = /^[0-9]{6}$/;
- if(!bian.test(you))
- {
- alert("请输入合法的邮编!");
- document.Form1.txtPostalcode.value = "";
- document.Form1.txtPostalcode.focus();
- return false;
- }
- }
- if(document.Form1.txtAddresspostalcode.value!="")
- {
- var you = document.Form1.txtAddresspostalcode.value;
- var bian = /^[0-9]{6}$/;
- if(!bian.test(you))
- {
- alert("请输入合法的邮编!");
- document.Form1.txtAddresspostalcode.value = "";
- document.Form1.txtAddresspostalcode.focus();
- return false;
- }
- }
- if(document.Form1.txtFamilyPhone.value!="")
- {
- var str=document.Form1.txtFamilyPhone.value;
- var reg=/(^[0-9]{3,4}-[0-9]{3,8}$)|(^[0-9]{3,8}$)|(^([0-9]{3,4})[0-9]{3,8}$)|(^0{0,1}13[0-9]{9}$)/
- if(reg.test(str))
- {
- alert("请输入合法的电话号码!如:01067231100");
- document.Form1.txtFamilyPhone.value = "";
- document.Form1.txtFamilyPhone.focus();
- return false;
- }
- }
- }
- -->
- </script>
- </head>
- <body >
- <form id="Form1" name="form1" method="post" action="" onsubmit="return check()" runat="server">
- <table width="96%" border="0" cellpadding="0" cellspacing="0" bgcolor="#5AAE18">
- <tr>
- <td width="6" height="21"><img alt="" src="../images/images_wc/leftlin.gif" width="6" height="21" /></td>
- <td width="936" bgcolor="#5AAE18"><div align="center"><span class="style3"><span class="style1">档 案 录 入
- </span></span></div></td>
- <td width="6" height="21"><img alt="" src="../images/images_wc/rightlin.gif" width="6" height="21" /></td>
- </tr>
- </table>
- <table width="96%" border="0" cellpadding="3" cellspacing="1" bgcolor="#5AAE18">
- <tr bgcolor="#FFFFFF">
- <td width="15%"><div align="right"><span class="style2"><span class="note">编 号:</span></span><span class="style2"><span
- class="note"></span></span></div></td>
- <td width="27%">
- <asp:TextBox ID="txtNumber" runat="server" Width="115px" Enabled="False"></asp:TextBox>
- </td>
- <td width="58%"><div align="left"><span class="style2"><span class="note"> 姓名:</span></span>
- <asp:TextBox ID="txtName" runat="server" Width="100px"></asp:TextBox>
- <span class="style4">*</span> <span class="style2"><span class="note"> 曾用名:</span></span><asp:TextBox ID="txtEverName" runat="server" Width="100px"></asp:TextBox>
- <span class="style2"><span class="note">
- <br />
- 登陆名:</span></span><asp:TextBox ID="txtlonig" runat="server" Width="100px"></asp:TextBox><span class="style2"><span class="note"> (默认密码66666)</span></span></div></td>
- </tr>
- <tr bgcolor="#FFFFFF">
- <td style="height: 29px"><div align="right"><span class="style2"><span class="note">性 别:</span></span></div></td>
- <td style="height: 29px">
- <asp:DropDownList ID="ddGender" runat="server">
- <asp:ListItem Value="0">选择性别</asp:ListItem>
- <asp:ListItem Value="1">男</asp:ListItem>
- <asp:ListItem Value="2">女</asp:ListItem>
- </asp:DropDownList></td>
- <td style="height: 29px"><div align="left"><span class="style2"><span class="note"> 出生日期:</span></span>
- <cc1:webdate id="wdBirth" runat="server" Text=""></cc1:webdate>
-
- <br />
- <span class="style2"><span class="note">婚姻状况: </span></span><asp:TextBox ID="txtMarriage" runat="server"></asp:TextBox>
- </div></td>
- </tr>
- <tr bgcolor="#FFFFFF">
- <td><div align="right"><span class="style2"><span class="note">籍 贯:</span></span></div></td>
- <td>
- <asp:DropDownList ID="ddNative" runat="server" DataSourceID="Native"
- DataTextField="n_native" DataValueField="n_id">
- <asp:ListItem Value="选择籍贯">选择籍贯</asp:ListItem>
- </asp:DropDownList>
- <asp:SqlDataSource ID="Native" runat="server" ConnectionString="<%$ ConnectionStrings:wc_OA_DBConnectionString2 %>"
- SelectCommand="SELECT [n_id], [n_native] FROM [native]"></asp:SqlDataSource>
- </td>
- <td><span class="style2"><span class="note">户口所在地: </span></span><asp:DropDownList ID="ddProvince" runat="server" DataSourceID="Province"
- DataTextField="p_province" DataValueField="p_id">
- </asp:DropDownList><asp:SqlDataSource ID="Province" runat="server" ConnectionString="<%$ ConnectionStrings:wc_OA_DBConnectionString3 %>"
- SelectCommand="SELECT [p_id], [p_province] FROM [province]"></asp:SqlDataSource>
- <span class="style2"><span class="note">民族:</span></span><asp:DropDownList ID="ddNation" runat="server" DataSourceID="Nation" DataTextField="na_nation"
- DataValueField="na_id">
- </asp:DropDownList><asp:SqlDataSource ID="Nation" runat="server" ConnectionString="<%$
- ConnectionStrings:OA_DBConnectionString %>"
- SelectCommand="SELECT [na_id], [na_nation] FROM [nation]"></asp:SqlDataSource>
- <span lang="EN-US" style="font-size:12.0pt;color:black">
-
- </span></td>
- </tr>
- <tr bgcolor="#FFFFFF">
- <td style="height: 29px"><div align="right"><span class="style2"><span class="note">身 高:</span></span></div></td>
- <td style="height: 29px">
- <asp:TextBox ID="txtStature" runat="server" Width="60px"></asp:TextBox><span class="style2"><span class="note">厘米</span></span></td>
- <td style="height: 29px"> <span class="style2"><span class="note">体 重:</span></span><asp:TextBox ID="txtAvoirdupois" runat="server" Width="90px"></asp:TextBox>
- <span class="style2"><span class="note">千克</span></span></td>
- </tr>
- <tr bgcolor="#FFFFFF">
- <td style="height: 29px"><div align="right"><span class="style2"><span class="note">政治面貌:</span></span></div></td>
- <td style="height: 29px">
- <asp:DropDownList ID="ddVisage" runat="server" DataSourceID="Visage"
- DataTextField="v_visage" DataValueField="v_id">
- </asp:DropDownList><asp:SqlDataSource ID="Visage" runat="server" ConnectionString="<%$
- ConnectionStrings:OA_DBConnectionString %>"
- SelectCommand="SELECT [v_id], [v_visage] FROM [visage]"></asp:SqlDataSource>
- </td>
- <td style="height: 29px"><span class="style2"><span class="note">身份证号:</span></span><asp:TextBox ID="txtStatuscard" runat="server"></asp:TextBox></td>
- </tr>
- <tr bgcolor="#FFFFFF">
- <td><div align="right"><span class="style2"><span class="note">健康状况:</span></span></div></td>
- <td>
- <asp:TextBox ID="txtHealth" runat="server">良好</asp:TextBox></td>
- <td><div align="left"><span class="style2"><span class="note">血型: </span></span>
- <asp:DropDownList ID="txtBloodtype" runat="server">
- <asp:ListItem Value="0">选择血型</asp:ListItem>
- <asp:ListItem Value="1">A</asp:ListItem>
- <asp:ListItem Value="2">B</asp:ListItem>
- <asp:ListItem Value="3">O</asp:ListItem>
- <asp:ListItem Value="4">未知</asp:ListItem>
- </asp:DropDownList></div></td>
- </tr>
- <tr bgcolor="#FFFFFF">
- <td><div align="right"><span class="style2"><span class="note">目前电话:</span></span></div></td>
- <td>
- <asp:TextBox ID="txtPhone" runat="server"></asp:TextBox></td>
- <td><div align="left"><span class="style2"><span class="note"> 手机: </span></span>
- <asp:TextBox ID="txtMobile" runat="server" Width="101px"></asp:TextBox>
- <span class="style2"><span class="note">电子邮件:</span></span>
- <asp:TextBox ID="txtEMail" runat="server"></asp:TextBox></div></td>
- </tr>
- <tr bgcolor="#5AAE18">
- <td colspan="3"><div align="center" class="style3">
- <div align="center"><strong>教育及工作经历相关</strong></div>
- </div></td>
- </tr>
- <tr bgcolor="#FFFFFF">
- <td style="height: 29px"><div align="right"> <div align="right"><span class="style2"><span class="note">毕业学校</span></span>:<span class="style2"><span
- class="note"></span></span></div></div></td>
- <td style="height: 29px">
- <asp:TextBox ID="txtFinishSchool" runat="server"></asp:TextBox></td>
- <td style="height: 29px"><span class="style2"><span class="note">专业:<asp:TextBox ID="txtSpeciality" runat="server" Width="139px"></asp:TextBox>
- 学历:
- <asp:DropDownList ID="ddLearn" runat="server" DataSourceID="Learn" DataTextField="l_learn" DataValueField="l_id">
- </asp:DropDownList><asp:SqlDataSource ID="Learn" runat="server" ConnectionString="<%$
- ConnectionStrings:OA_DBConnectionString %>"
- SelectCommand="SELECT [l_id], [l_learn] FROM [learn]"></asp:SqlDataSource>
- </span></span></td>
- </tr>
- <tr bgcolor="#FFFFFF">
- <td><div align="right"><span class="style2"><span class="note">毕业日期</span></span>:<span class="style2"><span
- class="note"></span></span></div></td>
- <td><span class="style2"><span class="note">
- <cc1:webdate id="wdGraduatetime" runat="server"></cc1:webdate>
- </span></span></td>
- <td><div align="left"><span class="style2"><span class="note"> 学 位:
- <asp:TextBox ID="txtDegree" runat="server"></asp:TextBox></span></span></div></td>
- </tr>
- <tr bgcolor="#FFFFFF">
- <td><div align="right"><span class="style2"><span class="note">外语语种:</span></span></div></td>
- <td><span class="style2"><span class="note">
- <asp:TextBox ID="txtLanguage" runat="server"></asp:TextBox>
- </span></span></td>
- <td><span class="style2"><span class="note"> 外语水平: <asp:TextBox ID="txtLanguageLevel"
- runat="server"></asp:TextBox>
- </span></span></td>
- </tr>
- <tr bgcolor="#FFFFFF">
- <td><div align="right"><span class="style2"><span class="note">获得证书(外语): </span></span></div></td>
- <td><span class="style2"><span class="note">
- <asp:TextBox ID="txtLanguageLetter" runat="server"></asp:TextBox></span></span></td>
- <td><div align="left"><span class="style2"><span class="note"> 计算机水平:<asp:TextBox ID="txtComputerLevel"
- runat="server"></asp:TextBox></span></span></div></td>
- </tr>
- <tr bgcolor="#FFFFFF">
- <td><div align="right"><span class="style2"><span class="note">获得证书(电脑): </span></span></div></td>
- <td><span class="style2"><span class="note">
- <asp:TextBox ID="txtComputerLetter" runat="server"></asp:TextBox></span></span></td>
- <td><span class="style2"><span class="note">计算机擅长:<asp:TextBox ID="txtComputerGood" runat="server"></asp:TextBox>
- 普通话水平:
- <asp:TextBox ID="txtMandarinLevel" runat="server"></asp:TextBox></span></span></td>
- </tr>
- <tr bgcolor="#FFFFFF">
- <td><div align="right"><span class="style2"><span class="note">家庭地址:</span></span></div></td>
- <td>
- <asp:TextBox ID="txtFamilyaddress" runat="server"></asp:TextBox></td>
- <td><div align="left">
- <span class="style2"><span class="note">邮 编: </span></span>
- <asp:TextBox ID="txtPostalcode" runat="server"></asp:TextBox></div></td>
- </tr>
- <tr bgcolor="#FFFFFF">
- <td><div align="right"><span class="style2"><span class="note">现住址:</span></span></div></td>
- <td>
- <asp:TextBox ID="txtAddress" runat="server"></asp:TextBox>
- </td>
- <td><p align="left"><span class="style2"><span class="note"> 家庭电话: </span></span><asp:TextBox
- ID="txtFamilyPhone" runat="server"></asp:TextBox></p></td>
- </tr>
- <tr bgcolor="#FFFFFF">
- <td><div align="right"><span class="style2"><span class="note">住址邮编:</span></span> </div></td>
- <td>
- <asp:TextBox ID="txtAddresspostalcode" runat="server"></asp:TextBox></td>
- <td><div align="left"><span class="style2"><span class="note">家庭情况: </span></span><asp:TextBox ID="txtFamilycircs" runat="server" Width="368px"></asp:TextBox>
- </div></td>
- </tr>
- <tr bgcolor="#FFFFFF">
- <td><div align="right"><span class="style2"><span class="note">档案存放地:</span></span></div></td>
- <td>
- <asp:TextBox ID="txtRecordLocus" runat="server"></asp:TextBox></td>
- <td><div align="left">
- <span class="style2"><span class="note">职 称: </span></span><asp:TextBox ID="txtJobName" runat="server"></asp:TextBox>
- </div></td>
- </tr>
- <tr bgcolor="#FFFFFF">
- <td><div align="right"><span class="style2"><span class="note">何时参加工作:</span></span> </div></td>
- <td>
- <asp:TextBox ID="txtWhenJoinWork" runat="server"></asp:TextBox></td>
- <td><span class="style2"><span class="note">何时到本单位工作:</span></span><asp:TextBox ID="txtWhenThisWork" runat="server"></asp:TextBox>
- </td>
- </tr>
- <tr bgcolor="#FFFFFF">
- <td><div align="right"><span class="style2"><span class="note">累计工龄:</span></span></div></td>
- <td>
- <asp:TextBox ID="txtAddlEngth" runat="server"></asp:TextBox></td>
- <td><div align="left"> <span class="style2"><span class="note">本单位工龄:</span></span><asp:TextBox ID="txtThisUnitLength" runat="server"></asp:TextBox>
- </div></td>
- </tr>
- <tr bgcolor="#FFFFFF">
- <td style="height: 66px"><div align="right"><span class="style2"><span class="note">所在部门 :</span></span></div></td>
- <td style="height: 66px">
- <asp:DropDownList ID="ddDepartment" runat="server" DataSourceID="Department"
- DataTextField="dept_department" DataValueField="dept_id">
- </asp:DropDownList><asp:SqlDataSource ID="Department" runat="server" ConnectionString="<%$
- ConnectionStrings:OA_DBConnectionString %>"
- SelectCommand="SELECT [dept_id], [dept_department] FROM [department]"></asp:SqlDataSource>
- </td>
- <td style="height: 66px"><div align="left"><span class="style2"><span class="note">职务:</span></span>
- <asp:TextBox ID="txtButy" runat="server"></asp:TextBox>
- </div></td>
- </tr>
- <tr bgcolor="#FFFFFF">
- <td style="height: 58px"><div align="right"><span class="style2"><span class="note">备 注:</span></span></div></td>
- <td colspan="2" style="height: 58px">
- <asp:TextBox ID="txtRemark" runat="server" Rows="3" TextMode="MultiLine" Width="353px"></asp:TextBox></td>
- </tr>
- <tr bgcolor="#FFFFFF">
- <td><div align="right"><span class="style2"><span class="note">录入人:</span></span></div></td>
- <td colspan="2">
- <asp:TextBox ID="txtBookerid" runat="server" Enabled="False" ></asp:TextBox></td>
- </tr>
- <tr bgcolor="#FFFFFF">
- <td colspan="3" style="height: 31px"><div align="left"></div>
- <div align="center">
- <table width="580" border="0" cellpadding="0" cellspacing="0">
- <tr>
- <td width="455" style="height: 27px">
- <asp:Button ID="btnRefer" runat="server" Text="正式提交" Height="24px" OnClick="btnRefer_Click" />
- <input type="reset" style="FONT-SIZE: 12px; HEIGHT: 24px" value= " 重 填 " />
- <input name="按钮" type="button" style="FONT-SIZE: 12px; HEIGHT: 24px" value= "切换到档案管理" onclick="javascript:document.location.href='dagl.aspx'"/>
- </td>
- <td width="125" style="height: 27px"> </td>
- </tr>
- </table>
- </div>
- </td>
- </tr>
- </table>
- <p> </p>
- </form>
- </body>
- </html>