findperson.jsp

来自「java jsp教程」· JSP 代码 · 共 105 行

JSP
105
字号
<%@ page contentType="text/html; charset=GBK" %>
<%@ page import=" com.icss.resourceone.sdk.framework.*" %>

<%
response.setHeader("Pragma", "No-cache");
response.setHeader("Cache-Control", "no-cache");
response.setDateHeader("Expires", 0);
%>
<html>
<head>
<title>查找人员</title>
<LINK href="<%=request.getContextPath()%>/css/style.css" type=text/css rel=stylesheet>
<script language="javascript">
function selectUnit(orgUuid) {
	wx=200;
	wy=200;
	urlstr="<%=request.getContextPath()%>/servlet/SelectOrgTreeServlet?type=9&rootUuid=" + orgUuid;
	x=(window.screen.width-wx)/2;
	y=(window.screen.height-wy)/2;
	wposition=",left="+x+",top="+y;
	window.open(urlstr,"选择人员所属单位","width="+wx+",height="+wy+",scrollbars=yes,status=yes"+wposition); 
}
</script>
</head>
<%
	String root = request.getContextPath();
    //String orgid=request.getParameter("orgid");
    //if(orgid==null)
    	//orgid="";
    //String orgName = request.getParameter("orgName");
    //if(orgName==null)
    	//orgName="";
%>
<%
	System.out.println("[jsp]FindPerson.jsp");
	Organization org = (Organization) request.getAttribute("curOrg");
	Person person = (Person) request.getAttribute("person");
	//String curDeptUuid = (String) request.getAttribute("curDeptUuid");
	//String curDeptCode = (String) request.getAttribute("curDeptCode");
	String curOrgUuid = (String) request.getAttribute("curOrgUuid");
	String curOrgCode = (String) request.getAttribute("curOrgCode");
	String curOrgName = (String) request.getAttribute("curOrgName");
	System.out.println("[check]curOrgUuid|curOrgCode|curOrgName---->"+curOrgUuid+"|"+curOrgCode+"|"+curOrgName);
%>
<body background="/resourceone/images/grid.gif" text="#000000" leftmargin="0" topmargin="10">
<form name="form1" >
<input type="hidden" name="option" value="search">
<input type="hidden" name="orgid" value="<%=curOrgUuid%>">
<input type="hidden" name="orgName" value="<%=curOrgName%>">
<script>
function _submit(){
	document.form1.action = "<%=request.getContextPath()%>/servlet/ROSearchPersonServlet";
	document.form1.orgid.value = document.form1.affiliatedOrgId.value;
	document.form1.orgName.value = document.form1.affiliatedOrgName.value;
	document.form1.submit();
}
</script>
<table width="620" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
      <td>
        <table width="95%" border="0" cellspacing="1" cellpadding="2" align="center" bgcolor="#B3C4DB" bordercolordark="#DFDFFF" bordercolorlight="#003366">
          <tr>
            <td  align="center" height="23" bgcolor="#A6D0F2" colspan="4">查找人员</td>
          </tr>
          <tr bgcolor="EEF4FF" >
            <td align="right">帐号:</td>
            <td >
              <input type="text" name="UserID" size="15" maxlength="255"  class="txt1">
            </td>
            <td width="29%" align="right">所属机构:</td>
            <td width="28%" ><input type="hidden" name="affiliatedOrgId" value="<%=curOrgCode%>">
			<input type="text" name="affiliatedOrgName" value="<%=curOrgName%>" readonly="">
			<span id="auditedOrgImg">
				<img src="<%=root%>/images/icon-15.gif" alt="选择审计单位" name="unit" width="22" height="15" class="bt1" style="cursor:hand;" onClick="selectUnit('<%=curOrgUuid%>')">
			</span>
			</td>

          </tr>
		  <tr  bgcolor="EEF4FF">
            <td width="23%" align="right">姓名:</td>
            <td width="20%">
              <input type="text" name="CnName" size="15" maxlength="255"   class="txt1">
            </td>
                <td align="right"></td>
            <td></td>

		  </tr>

        </table>
    </td>
  </tr>
  <tr>
    <td valign="top" align="center">
    <br>
      <img src="<%=request.getContextPath()%>/images/find.gif" style="cursor:hand" border="0" onclick="_submit()">
      </td>
  </tr>
  <tr>
    <td>&nbsp;</td>
  </tr>
</table>
</form>
</body>
</html>

⌨️ 快捷键说明

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