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

📄 changeuserinfo.jsp

📁 电信的网厅的整站代码
💻 JSP
字号:
<%@ page
	import="java.util.Date,
                 com.doone.data.DataTable,
                 com.doone.fj1w.common.SystemConfig,
                 com.doone.uurm.*,
                 java.text.DateFormat,
                 java.util.Locale,
                 com.doone.data.DacClient,
                 com.doone.util.FileLogger,
                 java.text.SimpleDateFormat"%>
<%@ page contentType="text/html; charset=GBK"%>
<%request.setCharacterEncoding("GBK");%>
<%String sPurvICode="NGB005001";%>
<%
  FileLogger log = new FileLogger();
	WebAuth auth = WebAuth.getInstance(request);

    if ( ! auth.IsAuthed() ) {
	    out.write("<script language=\"javascript\">self.parent.location.replace(\"" + request.getContextPath() + "/view/login/login.jsp" + "\");</script>");
	    return;
    }
	else if ( ! auth.CheckPurv(sPurvICode) ) {
	    out.write("<script language=javascript src=\"../../common/script/RightForbidden.js\"></script>");
	    return;
	}

  try
  {
  Sys_Staff oSys_Staff=Sys_Staff.getInstance(new DacClient(), auth.getUserCode());//UserFactory.getUserBaseInfo(StaffCode);

  SimpleDateFormat f1 = new SimpleDateFormat("yyyy-MM-dd");
  SimpleDateFormat f2 = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");

  DataTable sexList=SystemConfig.getConfigList(SystemConfig.SEX);
%>

<html>
<head>
<title>人员管理</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<link href="../../common/style/main.css" rel="stylesheet" type="text/css" />
<script language="JavaScript" src="../../common/script/Calendar.js"></script>
<script language="JavaScript" src="../../common/script/CalendarLib30.js"></script>
<script language="JavaScript" src="../../common/script/CheckInfo.js"></script>
<script language="JavaScript" src="../../common/script/ChangeStyle.js"></script>
<script language="JavaScript" src="../../common/mainTool.js"></script>
<SCRIPT language=JavaScript>
function check(theForm)
{
	if(theForm.NAME.value=="")
	{
		alert("请填写姓名!");
		theForm.NAME.focus();
		return false;
	}

    if(theForm.BIRTHDAY.value.length>0) {
   if(!CheckDate(theForm.BIRTHDAY.value))
    {
        alert("请正确填写出生日期,例如“1975-01-01”!");
		theForm.BIRTHDAY.focus();
        return false;
    }
    }

   if(theForm.EMAIL.value.length>0)
    {
       if(!ChackEmail(theForm.EMAIL.value))
       {
        alert("请正确填写电子信箱地址,\n例如:\nuser@163.com");
		theForm.EMAIL.focus();
        return false;
      }
    }



   if(theForm.RELATIONTEL.value.length>0)
    {
       if(!CheckPhone(theForm.RELATIONTEL.value))
       {
        alert("请正确填写联系电话,\n例如:\n0591-87654321\n或87654321\n");
		theForm.RELATIONTEL.focus();
        return false;
      }
    }

   if(theForm.MODILESID.value.length>0)
    {
       if(!fucCheckNUM(theForm.MODILESID.value))
       {
        alert("请正确填写手机号码,数字型!");
		theForm.MODILESID.focus();
        return false;
      }
    }



    if(theForm.POSTALCODE.value.length>0)
    {
       if(!CheckPost(theForm.POSTALCODE.value))
       {
        alert("请正确填写邮政编码,6个数字!");
		theForm.POSTALCODE.focus();
        return false;
      }
    }

    return true;
}
</SCRIPT>
</head>
<body>
<DIV id=overDiv
	style="Z-INDEX: 1000; VISIBILITY: hidden; POSITION: absolute"></DIV>
<form action="/manager/changeuserinfo" method="get" name="insertfrm"
	onsubmit="return check(this);">
<table width="100%" border="0" cellpadding="2" cellspacing="1"
	class="InnerTable">
	<tr class="InnerHead">
		<td colspan="2"><jsp:include page="../../common/inc_top.jsp">
			<jsp:param name="purvCode" value="<%=sPurvICode%>" />
		</jsp:include></td>
	</tr>
	<tr>
		<td class="OuterHead" colspan="9">
		<table width="100%" border="0" cellspacing="0" cellpadding="1">
			<tr>
				<td nowrap="nowrap" style="text-align:left"><span id="ItemTitle"><font
					face="webdings">8</font>人员编辑</span></td>
				<td align="right" nowrap></td>
			</tr>
		</table>
		</td>
	</tr>
	<tr>
		<td class="InnerHead" style="text-align:right" width="169">工号</input></td>
		<td class="InnerMain" width="585"><input name="STAFFCODE"
			type="hidden" size="50" maxlength="20"
			value=<%=oSys_Staff.getStaffCode()%>></input><%=oSys_Staff.getStaffCode()%></td>
	</tr>
	<tr>

		<td class="InnerHead" style="text-align:right" width="169"><font
			color="red">*</font>姓名<input name="id" type="hidden"
			value=<%=oSys_Staff.getStaffCode()%>></input></td>
		<td class="InnerMain" width="585"><input name="NAME" type="text"
			size="50" maxlength="20" value=<%=oSys_Staff.getName()%>></input></td>
	</tr>

	<tr>
		<td class="InnerHead" style="text-align:right" width="169">性别</td>
		<td class="InnerMain" width="585"><%String sSex=oSys_Staff.getSex();
          for(int i=0;i<sexList.getRows().getCount();i++)
          {
             out.print("<input name=\"SEX\" type=\"radio\" value=\""+sexList.getRow(i).getString("paravalue")+"\"");
             if(sSex.equalsIgnoreCase(sexList.getRow(i).getString("paravalue"))) out.print("checked");
             out.print(">"+sexList.getRow(i).getString("paradesc")+"</input>");
          }
      %></td>

	</tr>
	<tr>
		<td class="InnerHead" style="text-align:right" width="169">出生日期</td>
		<td class="InnerMain" width="585"><input name="BIRTHDAY" type="text"
			size="20" maxlength="20"
			value="<%=(oSys_Staff.getBirthDay()==null)?"":f1.format(oSys_Staff.getBirthDay())%>"></input>
		<A
			onmouseover="window.status='日期选择器'; overlib('点击选择当前日期-只显示当月的日历'); return true;"
			onmouseout="window.status=''; nd(); return true;"
			href="javascript:show_calendar('insertfrm.BIRTHDAY');"><IMG height=16
			src="../../common/images/selectdate.gif" width=16 border=0> </A>    </td>
	</tr>
	<tr>
		<td class="InnerHead" style="text-align:right" width="169">证件名称</td>
		<td class="InnerMain" width="585"><select name="CARTNAME">
			<% DataTable cartnameList=SystemConfig.getConfigList(SystemConfig.CARTNAME);
         for(int i=0;i<cartnameList.getRows().getCount();i++)
         {
             if(i==0)
             {
               out.println("<option value=\""+cartnameList.getRow(i).getString("paravalue")+"\" selected>"+cartnameList.getRow(i).getString("paradesc")+"</option>");
             }
             else
             {
               out.println("<option value=\""+cartnameList.getRow(i).getString("paravalue")+"\">"+cartnameList.getRow(i).getString("paradesc")+"</option>");
             }
         }
      %>
		</select></td>
	</tr>
	<tr>
		<td class="InnerHead" style="text-align:right" width="169">证件号码</td>
		<td class="InnerMain" width="585"><input name="CARTNO" type="text"
			size="50" maxlength="20" value="<%=oSys_Staff.getCartNo()%>"></input></td>
	</tr>
	<tr>
		<td class="InnerHead" style="text-align:right" width="169">邮件地址</td>
		<td class="InnerMain" width="585"><input name="EMAIL" type="text"
			size="50" maxlength="50" value="<%=oSys_Staff.getEMail()%>"></input></td>
	</tr>
	<tr>
		<td class="InnerHead" style="text-align:right" width="169">联系电话</td>
		<td class="InnerMain" width="585"><input name="RELATIONTEL"
			type="text" size="50" maxlength="30"
			value="<%=oSys_Staff.getRelationTel()%>"></input></td>
	</tr>

	<tr>
		<td class="InnerHead" style="text-align:right" width="169">登记时间</td>

		<td><%=f2.format(oSys_Staff.getCreateTime())%></td>
	</tr>

	<tr>
		<td class="InnerHead" style="text-align:right" width="169">职务</td>
		<td class="InnerMain" width="585"><input name="DUTY" type="text"
			size="50" maxlength="30" value="<%=oSys_Staff.getDuty()%>"></input> <%--      <select name="DUTY">--%>
		<%--      <% DataTable dutyList=SystemConfig.getConfigList(SystemConfig.EDUCATION);--%>
		<%--         for(int i=0;i<dutyList.getRows().getCount();i++)--%> <%--         {--%>
		<%--             if(i==0)--%> <%--             {--%> <%--               out.println("<option value=\""+dutyList.getRow(i).getString("paravalue")+"\" selected>"+dutyList.getRow(i).getString("paradesc")+"</option>");--%>
		<%--             }--%> <%--             else--%> <%--             {--%>
		<%--               out.println("<option value=\""+dutyList.getRow(i).getString("paravalue")+"\">"+dutyList.getRow(i).getString("paradesc")+"</option>");--%>
		<%--             }--%> <%--         }--%> <%--      %>--%> <%--     </select>--%>
		</td>
	</tr>
	<tr>
		<td class="InnerHead" style="text-align:right" width="169">政治面貌</td>
		<td class="InnerMain" width="585"><select name="POLITICS">
			<% DataTable politicsList=SystemConfig.getConfigList(SystemConfig.POLITICS);
          String sPolitics=oSys_Staff.getEducation();
         for(int i=0;i<politicsList.getRows().getCount();i++)
         {
             if(politicsList.getRow(i).getString("paravalue").equalsIgnoreCase(sPolitics))
             {
               out.println("<option value=\""+politicsList.getRow(i).getString("paravalue")+"\" selected>"+politicsList.getRow(i).getString("paradesc")+"</option>");
             }
             else
             {
               out.println("<option value=\""+politicsList.getRow(i).getString("paravalue")+"\">"+politicsList.getRow(i).getString("paradesc")+"</option>");
             }
         }
      %>
		</select>
	</tr>
	<tr>
		<td class="InnerHead" style="text-align:right" width="169">教育程度</td>
		<td class="InnerMain" width="585"><select name="EDUCATION">
			<% DataTable eduList=SystemConfig.getConfigList(SystemConfig.EDUCATION);
         String sEducation=oSys_Staff.getEducation();
         for(int i=0;i<eduList.getRows().getCount();i++)
         {
             if(eduList.getRow(i).getString("paravalue").equalsIgnoreCase(sEducation))
             {
               out.println("<option value=\""+eduList.getRow(i).getString("paravalue")+"\" selected>"+eduList.getRow(i).getString("paradesc")+"</option>");
             }
             else
             {
               out.println("<option value=\""+eduList.getRow(i).getString("paravalue")+"\">"+eduList.getRow(i).getString("paradesc")+"</option>");
             }
         }
      %>
		</select></td>
	</tr>

	<tr>
		<td class="InnerHead" style="text-align:right" width="169">家庭电话</td>
		<td class="InnerMain" width="585"><input name="FAMILYTEL" type="text"
			size="50" maxlength="30" value="<%=oSys_Staff.getFamilyTel()%>"></input></td>
	</tr>

	<tr>
		<td class="InnerHead" style="text-align:right" width="169">手机号码</td>
		<td class="InnerMain" width="585"><input name="MODILESID" type="text"
			size="50" maxlength="30" value="<%=oSys_Staff.getModileSid()%>"></input></td>
	</tr>
	<tr>
		<td class="InnerHead" style="text-align:right" width="169">邮政编码</td>
		<td class="InnerMain" width="585"><input name="POSTALCODE" type="text"
			size="50" maxlength="30" value="<%=oSys_Staff.getPostalcode()%>"></input></td>
	</tr>
	<tr>
		<td class="InnerHead" style="text-align:right" width="169">家庭地址</td>
		<td class="InnerMain" width="585"><input name="FAMILYADDRESS"
			type="text" size="50" maxlength="30"
			value="<%=oSys_Staff.getFamilyAddress()%>"></input></td>
	</tr>

	<tr>
		<td class="InnerMain" colspan="2" align="center"><input type="submit"
			class="button" value="确认"> <input type="button" class="button"
			value="重填" onclick="location.replace(location.href);"></td>
	</tr>
</table>
</form>

</body>
</html>
<%
  }
 catch(RuntimeException e)
{
     log.error("修改用户个人信息出错:",e);
         out.write("<script language=javascript>window.location.href='/manager/view/login/login.jsp';</script>");
      return;
}
%>

⌨️ 快捷键说明

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