position_detail.jsp
资源名称:NetOffice.rar [点击查看]
上传用户:guhaomin
上传日期:2007-06-10
资源大小:23203k
文件大小:8k
源码类别:
电子政务应用
开发平台:
Java
- <%@ page errorPage="/vnex/ErrorPage.jsp" %>
- <%@ taglib uri="/vnex.tld" prefix="vnex" %>
- <%@ taglib uri="/vnex_organization.tld" prefix="org" %>
- <%@ page import="com.vnex.intranet.organization.value.*"%>
- <%@ page import="com.vnex.intranet.organization.proxy.*"%>
- <jsp:useBean id="positionProxyBean" scope="Application" class="com.vnex.intranet.organization.proxy.PositionProxyBean" />
- <%
- int did = Integer.parseInt(request.getParameter("id"));
- int pid = Integer.parseInt(request.getParameter("pid"));
- String dname = request.getParameter("name");
- DutyValueBean duinfo = (DutyValueBean)positionProxyBean.getDuty(did);
- ArrayList array =(ArrayList) positionProxyBean.getEmpsByDuty(did);
- ArrayList dparray = (ArrayList)positionProxyBean.getPrivilegesByDuty(did);
- %>
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
- <HTML>
- <jsp:include page="/vnex/page/FORM_HEAD.jsp" />
- <script language="JavaScript">
- function dosubmit()
- {
- if(myform.dutyTitle.value == "")
- {
- alert("职位名称不能为空!");
- myform.dutyTitle.focus();
- return false;
- }
- if(myform.dutyTitle.value.length > 30)
- {
- alert("职位名称长度不能大于30!");
- myform.dutyTitle.focus();
- return false;
- }
- if(myform.description.value.length > 50)
- {
- alert("描述长度不能大于50!");
- myform.description.focus();
- return false;
- }
- if(myform.demandSkill.value.length > 50)
- {
- alert("要求技能长度不能大于50!");
- myform.demandSkill.focus();
- return false;
- }
- if(myform.checkStandard.value.length > 50)
- {
- alert("考核标准长度不能大于50!");
- myform.checkStandard.focus();
- return false;
- }
- myform.action="/mainctrl/organization/updatePosition";
- myform.submit();
- }
- function CheckAll(form)
- {
- for (var i=0;i<form.elements.length;i++)
- {
- var e = form.elements[i];
- if (e.name != 'chkall')
- e.checked = form.chkall.checked;
- }
- }
- </script>
- <BODY text=#000000 vLink=#000000 aLink=#000000 link=#000000 bgColor=#ffffff topMargin=20 leftmargin="0" marginwidth="0" marginheight="0">
- <script language="JavaScript" src="/vnex/menu/dockmenu_hr.js"></script>
- <script language="JavaScript" src="/vnex/menu/dockmenu.js"></script>
- <DIV align=center>
- <form method=POST name="myform">
- <input type=hidden name="dutyId" value=<%=did%>>
- <input type=hidden name="divisionId" value=<%=duinfo.getDivisionId()%>>
- <input type=hidden name="divisionName" value='<%=dname%>' >
- <TABLE class=outter cellSpacing=0 cellPadding=0 width=600 border=0>
- <tbody>
- <jsp:include page="/vnex/page/TTOA_TABLE_TOP.jsp" />
- <TR>
- <TD colSpan=3 align="center">
- <br>
- <!--个人信息开始 -->
- <table width="600" border="1" cellspacing="1" bordercolor="#666666">
- <tr>
- <td bgcolor="#fafafa">
- <table class=title cellspacing=1 cellpadding=2 width="600" border=0>
- <tr bgcolor="#666666">
- <td colspan="2"><font class="strongw">
- <a href="/mainctrl/home/index"><font color="#FFFFFF">首页</font></a>>>
- <a href="/mainctrl/hr/main"><font color="#FFFFFF">人力资源</font></a>>>
- <a href="/mainctrl/organization/getAllDivision"><font color="#FFFFFF">组织结构与职位管理</font></a>>>
- <a href="/mainctrl/organization/getAllPosition?id=<%=pid%>&name=<%=dname%>"><font color="#FFFFFF">职位管理</font></a>>>
- 职位详细信息</font></td>
- </tr>
- <tr bgcolor="#e0e0e0">
- <td width="19%"><font class=strong> 职位名称:</font></td>
- <td width="81%"><input type=text name="dutyTitle" value="<%=duinfo.getDutyTitle()%>" class="text">
- *  (注:带*为必填内容)</td>
- </tr>
- <tr>
- <td bgcolor="#fafafa" width="19%"><font class=strong> 任职职员:</font></td>
- <td bgcolor="#fafafa" width="81%">
- <% if (array != null)
- {
- for (int i=0;i<array.size();i++)
- {
- String empname = (String)array.get(i);
- %>
- <%=empname%>
- <%}}%>
- </td>
- </tr>
- <tr>
- <td bgcolor="#e0e0e0" width="19%"><font class=strong> 职位描述:</font></td>
- <td bgcolor="#e0e0e0" width="81%">
- <textarea name="description" cols="59" rows="5" class="text"><%=duinfo.getDescription()%></textarea> </td>
- </tr>
- <tr>
- <td bgcolor="#fafafa" width="19%"><font class=strong> 要求技能:</font></td>
- <td bgcolor="#fafafa" width="81%">
- <textarea name="demandSkill" cols="59" rows="5" class="text"><%=duinfo.getDemandSkill()%></textarea>
- </td>
- </tr>
- <tr>
- <td bgcolor="#e0e0e0" width="19%"><font class=strong> 考核标准:</font></td>
- <td bgcolor="#e0e0e0" width="81%">
- <textarea name="checkStandard" cols="59" rows="5" class="text"><%=duinfo.getCheckStandard()%></textarea>
- </td>
- </tr>
- </table>
- <table class=title cellspacing=1 cellpadding=2 width="600" border=0>
- <tr bgcolor="#fafafa">
- <td colspan="3"><font class=strong> 职位权限:</font></td>
- </tr>
- <tr align=center>
- <td width="42"><font class=strong>选择</font></td>
- <td width="154"><font class=strong>权限分组</font></td>
- <td width="295"><font class=strong>权限名称</font></td>
- </tr>
- <% if (dparray!= null)
- {
- System.out.println("size--"+dparray.size());
- Integer[] privs = new Integer[dparray.size()];
- for(int i=0;i<dparray.size();i++)
- {
- privs[i] = new Integer(((PrivilegeValueBean)dparray.get(i)).getPrivilegeId());
- }
- pageContext.setAttribute("privs",privs);
- }
- %>
- <org:PrivilegeList> <vnex:items>
- <org:PrivilegeAttribute attribute="throwRow"/>
- <tr align="center" bgcolor="<vnex:itemsColor />">
- <td width="42">
- <input type="checkbox" name="ids" Value=<org:PrivilegeAttribute attribute="id"/>
- <org:PrivilegeAttribute attribute="isChecked"/> ></td>
- <td colspan=2>
- <table width="100%" border="0" cellspacing="0" cellpadding="0">
- <tr>
- <td width="200" align="center"> <font class=strong><org:PrivilegeAttribute attribute="groupNoRepeat"/></font></td>
- <td aling="left"> <org:PrivilegeAttribute attribute="name"/></td>
- </tr>
- </table>
- </tr>
- </vnex:items> </org:PrivilegeList>
- <% pageContext.removeAttribute("privs");%>
- <% String name = request.getParameter("name");%>
- <tr align=center bgcolor="#fafafa">
- <td width="42">
- <input onClick=CheckAll(this.form) type=checkbox value=on name="chkall">
- </td>
- <td colspan="2" align="left"> 全选</td>
- </tr>
- <tr bgcolor="#fafafa" height="30" align="center">
- <td colspan="3">
- <input type="button" value="保存" onclick="dosubmit()" name="B3" class=text>
-
- <input type="button" value="放弃" name="B1" onclick="location='/mainctrl/organization/getAllPosition?id=<%=duinfo.getDivisionId()%>&name=<%=name%>'" class=text>
- </td>
- </tr>
- </table>
- </td>
- </tr>
- </table>
- <jsp:include page="/vnex/page/TTOA_HELP.jsp" />
- </TD>
- </TR>
- <jsp:include page="/vnex/page/TTOA_TABLE_BOTTOM.jsp" />
- </TBODY>
- </TABLE>
- <BR>
- <jsp:include page="/vnex/page/TTOA_PRODUCER_LOGO.jsp" />
- </form>
- </DIV>
- </BODY>
- </HTML>