department_attribute_sub_new.jsp
资源名称:NetOffice.rar [点击查看]
上传用户:guhaomin
上传日期:2007-06-10
资源大小:23203k
文件大小:7k
源码类别:
电子政务应用
开发平台:
Java
- <%@ page errorPage="/vnex/ErrorPage.jsp" %>
- <%@ taglib uri="/vnex_hr.tld" prefix="hr" %>
- <%@ taglib uri="/vnex.tld" prefix="vnex" %>
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
- <HTML><jsp:include page="/vnex/page/FORM_HEAD.jsp" />
- <script language="JavaScript" src="/vnex/util/popSelect.js"></script>
- <script language="JavaScript1.2" src="/vnex/util/strutil.js"></script>
- <script language="JavaScript" src="/vnex/util/validate.js"></script>
- <script language=JavaScript >
- function docheck()
- {
- if(isEmpty(myform.divisionName.value) || isEmptyStr(myform.divisionName.value) )
- {
- alert("请输入部门名称");
- myform.divisionName.focus();
- return false;
- }
- if (myform.divisionName.value == myform.parentDivisionName.value )
- {
- alert("部门名称不能和父部门名称重复!");
- myform.divisionName.focus();
- return false;
- }
- if (myform.divisionName.value.length > 20)
- {
- alert("部门名称长度小于20!");
- myform.divisionName.focus();
- return false;
- }
- if (myform.divisionDuty.value.length > 50)
- {
- alert("部门职能长度小于50!");
- myform.divisionDuty.focus();
- return false;
- }
- if (myform.managerId.value == -1)
- {
- alert("必须选择部门主管!");
- return false;
- }
- if (!(isTelephone(myform.telephone.value)) || (myform.telephone.value.length>20))
- {
- alert("电话号码无效!");
- myform.telephone.focus();
- return false;
- }
- if (!(isTelephone(myform.fax.value)) || (myform.fax.value.length>20))
- {
- alert("传真号码无效!");
- myform.fax.focus();
- return false;
- }
- if (myform.location.value.length > 15)
- {
- alert("办公地址长度小于15!");
- myform.location.focus();
- return false;
- }
- if ( !(isZIPCode(myform.zipCode.value)) )
- {
- alert("邮政编码必须是数字,6位!");
- myform.zipCode.focus();
- return false;
- }
- if (!(isEmail(myform.email.value)))
- {
- alert("email 不合法!");
- myform.email.focus();
- return false;
- }
- myform.action="/mainctrl/organization/addDivisionProcess";
- myform.submit();
- }
- </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 name="myform" method="post" action="">
- <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 width="600" border=0 cellpadding="2">
- <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>>>
- 增加下属新部门</font></td>
- </tr>
- <tr bgcolor="#fafafa">
- <td width="118"><font class=strong> 部门名称:</font></td>
- <td width="371">
- <input type="text" name="divisionName" class=text size="24"> *  (注:带*为必填内容)
- </td>
- </tr>
- <tr bgcolor="#e0e0e0">
- <td width="118"><font class=strong> 上级部门:</font></td>
- <td width="70%"> <%=request.getParameter("name")%>
- <% String id = request.getParameter("id");%>
- <input type=hidden name=parentDivisionId value="<%=id%>">
- <input type=hidden name=parentDivisionName value="<%=request.getParameter("name")%>">
- </td>
- </tr>
- <tr bgcolor="#fafafa">
- <td width="118"><font class=strong> 部门主管:</font></td>
- <td width="371"> <hr:EmployeeList divisionId="-1">
- <select name="managerId">
- <option value="-1">--请选择--</option>
- <vnex:items >
- <option value="<hr:EmployeeAttribute attribute="id"/>"
- > <hr:EmployeeAttribute attribute="employee_name"/> </option>
- </vnex:items>
- </select>
- </hr:EmployeeList> *  </td>
- </tr>
- <tr bgcolor="#fafafa">
- <td width="118"><font class=strong> 部门职能:</font></td>
- <td width="371">
- <textarea rows="5" name="divisionDuty" cols="59"></textarea>
- </td>
- </tr>
- <tr bgcolor="#e0e0e0">
- <td width="118"><font class=strong> 电话:</font></td>
- <td width="371">
- <input type="text" name="telephone" class=text size="24">
- </td>
- </tr>
- <tr bgcolor="#fafafa">
- <td width="118"><font class=strong> 传真:</font></td>
- <td width="371">
- <input type="text" name="fax" class=text size="24">
- </td>
- </tr>
- <tr bgcolor="#e0e0e0">
- <td width="118"><font class=strong> 办公地址:</font></td>
- <td width="371">
- <input type="text" name="location" class=text size="24">
- </td>
- </tr>
- <tr bgcolor="#fafafa">
- <td width="118"><font class=strong> 邮编:</font></td>
- <td width="371">
- <input type="text" name="zipCode" class=text size="24">
- </td>
- </tr>
- <tr bgcolor="#e0e0e0">
- <td width="118"><font class=strong> E_mail:</font></td>
- <td width="371">
- <input type="text" name="email" class=text size="24" maxlength="30">
- </td>
- </tr>
- <tr bgcolor="#fafafa" height="30">
- <td colspan="2" align="center">
- <input type="button" value="保存" name="B3" onclick="docheck()" class=text>
-
- <input type="reset" value="放弃" name="B2" onclick="window.location='/mainctrl/organization/getAllDivision'" 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>