📄 personupdate.jsp
字号:
<%@ page contentType="text/html; charset=GBK" %>
<%@ page import="DIC.*,java.util.*,person.*" %>
<%request.setCharacterEncoding("gb2312");%>
<%
String IDCARD=request.getParameter("IDCARD");
String FUNSERVERID = request.getParameter("FUNSERVERID");
PERSON person = new PERSON();
PersonBean pb = new PersonBean();
String sqlstr="select * from FUNSERVER_PERSONNEL where IDCARD='"+IDCARD+"' and FUNSERVERID='"+FUNSERVERID+"'";
pb = person.GetBeanBySQL(sqlstr);
%>
<html>
<head>
<title>
personadd
</title>
</head>
<script language="JavaScript" src="calendar.js"></script>
<!--script>
function check(){
var a=document.all["SUBAREA"];
var b=document.all["FUNSERVERID"];
var c=document.all["PERSONNELNAME"];
var d=document.all["PHONE"];
var e=document.all["IDCARD"];
var ZANZHUID=document.all["ZANZHUID"];
var SEX=document.all["SEX"];
var NATION=document.all["NATION"];
var NATIVEPLACE=document.all["NATIVEPLACE"];
var HOME=document.all["HOME"];
//var NEWPLACE=document.all["NEWPLACE"];
var WORKINGTYPE=document.all["WORKINGTYPE"];
var PERSONNELLEVEL=document.all["PERSONNELLEVEL"];
var PTYPE=document.all["PTYPE"];
if(a.value==1){alert("请先选择娱乐场所所在分区!");a.focus();return false;}
if(b.value==1){alert("请先选择娱乐场所!");b.focus();return false;}
if(c.value.length==0){alert("请输入姓名!");c.focus();return false;}
if(d.value.length==0){alert("请输入联系电话!");d.focus();return false;}
if(e.value.length==0){alert("请输入身份证!");e.focus();return false;}
if(e.value.length!=15&&e.value.length!=18){alert("输入身份证不合法!");e.focus();return false;}
if(ZANZHUID.value.length==0){alert("请输入暂住证号!");ZANZHUID.focus();return false;}
if(SEX.value==123){alert("请选择性别!");SEX.focus();return false;}
if(NATION.value==123){alert("请选择民族!");NATION.focus();return false;}
if(NATIVEPLACE.value==0){alert("请输入藉贯!");NATIVEPLACE.focus();return false;}
if(HOME.value==0){alert("请输入家庭住址!");HOME.focus();return false;}
//if(NEWPLACE.value==0){alert("请输入暂住住址!");NEWPLACE.focus();return false;}
if(WORKINGTYPE.value==123){alert("请选择工作类型!");WORKINGTYPE.focus();return false;}
if(PERSONNELLEVEL.value==123){alert("请选择职位等级!");PERSONNELLEVEL.focus();return false;}
if(PTYPE.value==123){alert("请选择人员类型!");PTYPE.focus();return false;}
return true;
}
function change(){
var a=document.all["SUBAREA"].value;
//alert(a);
window.location="personadd.jsp?subarea="+a;
}
function aa(){
if(document.all["SUBAREA"].value==1){alert("请先选择娱乐场所所在分区!");}
}
<script>
function check(){
window.close();
}
</script>
</script-->
<body bgcolor="#C9D1D0">
<strong>娱乐服务从业人员信息修改:
<%Date today = new Date();
int hours = today.getHours();
int minute = today.getMinutes();
int SS = today.getSeconds();
if(hours>=0 && hours<12){
out.print("上午好!");
}else{
out.println("下午好!");
}//String time=String.valueOf(hours)+":"+String.valueOf(minute)+":"+String.valueOf(SS);
//out.print(time);
String[] weekdays = {"日","一","二","三","四","五","六"};
out.print("\n今天是" + (today.getYear()+1900) + "-" + (today.getMonth()+1) + "-" + (today.getDate()) + "日星期" + weekdays[today.getDay()]);%>
</strong>
<form name="" action="personupdate_do.jsp" method="POST" >
<table width="756" height="257" border="1" align="center" cellpadding="1" cellspacing="0" bordercolor="#000000">
<tr>
<td width="119" height="29"><font size="2">娱乐场所所在分区:</font></td>
<td width="195"> <select name="SUBAREA" >
<option value="1">--请选区--</option>
<%
// String subarea=request.getParameter("subarea");
DicOperate operate=new DicOperate();
DICBean db= new DICBean();
operate.setTableName("dic_subarea");
List lst=operate.QryRcdByValue("");
for(int i=0;i<lst.size();i++){
db=(DICBean)lst.get(i);
%>
<option value="<%=db.getDIC_CODE()%>" <%if(db.getDIC_CODE().equals(pb.getSUBAREA())){%> selected <%}%>>--<%=db.getDIC_TEXT()%>--</option>
<%}
%>
</select> </td>
<td width="72"><font size="2">场 所:</font></td>
<td colspan="3"><select name="FUNSERVERID">
<option value="1">--请选场所--</option>
<%
//PERSON person = new PERSON();
PersonBean pb1 = new PersonBean();
String sql="select * from FUNSERVER_LIST ";
lst=person.GetRecordBySql(sql);
for(int i=0;i<lst.size();i++){
pb1=(PersonBean)lst.get(i);
%>
<option value="<%=pb1.getFUNSERVERID()%>"<%if(pb1.getFUNSERVERID().equals(pb.getFUNSERVERID())){%> selected <%}%>><%=pb1.getFUNSERVERNAME()%></option>
<%
}
%>
<option></option>
</select></td>
</tr>
<tr>
<td height="25"><font size="2">姓 名:</font></td>
<td> <input name="PERSONNELNAME" type="text" size="15" maxlength="30" value="<%=pb.getPERSONNELNAME()%>"></td>
<td><font size="2">联系电话:</font></td>
<td width="126"><input name="PHONE" type="text" size="15" maxlength="15" value="<%=pb.getPHONE()%>" ></td>
<td width="75"><font size="2">身份证号:</font></td>
<td width="143"><input name="IDCARD" type="text" size="18" maxlength="18" value="<%=pb.getIDCARD()%>"></td>
</tr>
<tr>
<td height="26"><font size="2">暂 住 证 号:</font></td>
<td colspan="5"><input name="ZANZHUID" type="text" size="30" maxlength="30" value="<%=pb.getZANZHUID()%>"></td>
</tr>
<tr>
<td height="25"><font size="2">性 别:</font></td>
<td><select name="SEX">
<option value="123">--请选性别--</option>
<%
// DicOperate operate=new DicOperate();
// DICBean db= new DICBean();
operate.setTableName("DIC_SEX");
lst=operate.QryRcdByValue("");
for(int i=0;i<lst.size();i++){
db=(DICBean)lst.get(i);
%>
<option value="<%=db.getDIC_CODE()%>"<%if(db.getDIC_CODE().equals(pb.getSEX())){%> selected <%}%>><%=db.getDIC_TEXT()%></option>
<%}
%>
</select></td>
<td><font size="2">民 族:</font></td>
<td><select name="NATION">
<option value="123">--请选民族--</option>
<%
// DicOperate operate=new DicOperate();
// DICBean db= new DICBean();
operate.setTableName("DIC_NATIVE");
lst=operate.QryRcdByValue("");
for(int i=0;i<lst.size();i++){
db=(DICBean)lst.get(i);
%>
<option value="<%=db.getDIC_CODE()%>"<%if(db.getDIC_CODE().equals(pb.getNATION())){%> selected <%}%>><%=db.getDIC_TEXT()%></option>
<%}
%>
</select></td>
<td><font size="2">籍 贯:</font></td>
<td><input name="NATIVEPLACE" type="text" size="10" maxlength="6" value="<%=pb.getNATIVEPLACE()%>"></td>
</tr>
<tr>
<td height="25"><font size="2">家 庭 住 址:</font></td>
<td colspan="5"><input name="HOME" type="text" size="50" maxlength="200" value="<%=pb.getHOME()%>"></td>
</tr>
<tr>
<td height="25"><font size="2">暂 住 住 址:</font></td>
<td colspan="5"><input name="NEWPLACE" type="text" size="50" maxlength="200" value="<%=pb.getNOWPLACE()%>"></td>
</tr>
<tr>
<td height="25"><font size="2">工 作 类 型:</font></td>
<td><select name="WORKINGTYPE">
<option value="123">--请选工作类型--</option>
<%
// DicOperate operate=new DicOperate();
// DICBean db= new DICBean();
operate.setTableName("DIC_FSWORKTYPE");
lst=operate.QryRcdByValue("");
for(int i=0;i<lst.size();i++){
db=(DICBean)lst.get(i);
%>
<option value="<%=db.getDIC_CODE()%>"<%if(db.getDIC_CODE().equals(pb.getWORKINGTYPE())){%> selected <%}%>><%=db.getDIC_TEXT()%></option>
<%}
%>
</select></td>
<td><font size="2">职位等级:</font></td>
<td><select name="PERSONNELLEVEL">
<option value="123">--请选职位--</option>
<%
// DicOperate operate=new DicOperate();
// DICBean db= new DICBean();
operate.setTableName("DIC_FSPERSONLEVEL");
lst=operate.QryRcdByValue("");
for(int i=0;i<lst.size();i++){
db=(DICBean)lst.get(i);
%>
<option value="<%=db.getDIC_CODE()%>"<%if(db.getDIC_CODE().equals(pb.getPERSONNELLEVEL().trim())){%> selected <%}%>><%=db.getDIC_TEXT()%></option>
<%}
%>
</select></td>
<td><font size="2">登记时间:</font></td>
<td><input name="REGISTERTIME" type="text" size="18" maxlength="18" value="<% Calendar CD = Calendar.getInstance();
int month=CD.get(Calendar.MONTH)+1;
int day=CD.get(Calendar.DATE);
String strMM=String.valueOf(month);
String strDD=String.valueOf(day);
if (month<10) strMM="0"+strMM;
if (day<10) strDD="0"+strDD;
out.print(CD.get(Calendar.YEAR)+"-"+strMM+"-"+strDD);%>" onFocus="calendar()"></td>
</tr>
<tr>
<td height="25"><font size="2">人 员 类 别:</font></td>
<td height="25" colspan="5"><select name="PTYPE">
<option value="123">--请选人员类别--</option>
<%
// DicOperate operate=new DicOperate();
// DICBean db= new DICBean();
operate.setTableName("DIC_PTYPE");
lst=operate.QryRcdByValue("");
for(int i=0;i<lst.size();i++){
db=(DICBean)lst.get(i);
%>
<option value="<%=db.getDIC_CODE()%>"<%if(db.getDIC_CODE().equals(pb.getPTYPE())){%> selected <%}%>>----<%=db.getDIC_TEXT()%>----</option>
<%}
%>
</select></td>
</tr>
<tr>
<td height="25" colspan="6"><div align="center">
<input name="" type="submit" value="修 改">
<input name="Input" type="reset" value="重 置">
</div></td>
</tr>
</table>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -