AddDepartment.jsp
资源名称:OA.rar [点击查看]
上传用户:mingda
上传日期:2017-06-20
资源大小:27691k
文件大小:5k
源码类别:
OA系统
开发平台:
Java
- <%@ page contentType="text/html; charset=gb2312"%>
- <%@ page import="com.gforce.gfoa.*,com.gforce.currency.*,java.util.*" %>
- <jsp:include page="/CheckLogin.jsp" flush="true" /> <% Session m_session = new Session(session); %>
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=gb2312"><meta http-equiv="pragma" content="no-cache">
- <title>部门管理-- GForce OA 2.0</title>
- <link href="/css/txt.jsp" rel="stylesheet" type="text/css">
- <script language="JavaScript" src="/js/changestyle.js"></script>
- <script language="JavaScript" type="text/javascript">
- function checkAddDepartment()
- {
- if(document.adddepartment.Name.value=="")
- {
- alert("请输入部门名称!");
- document.adddepartment.Name.focus();
- return false;
- }
- if(document.adddepartment.DepartmentID.value=="")
- {
- alert("选择上级部门!");
- self.SelectDepartment.document.SelectDepartment.Department[0].focus();
- return false;
- }
- }
- </script>
- </head>
- <body bgcolor="<%=m_session.GetString("BackColor")%>" leftmargin="0" topmargin="0">
- <table width="100%" height="100%" border="0" align="center" cellspacing="0">
- <tr>
- <td align="center" valign="top"><p> </p>
- <form name="adddepartment" action="AddDepartmentAction.jsp" method="post" onSubmit="javascript:return checkAddDepartment();">
- <table border="0" cellpadding="0" cellspacing="0" width="90%">
- <tr>
- <td align="right" valign="middle"><font color="#0A0A0A">部门名称:</font></td>
- <td align="left" valign="middle" nowrap>
- <input name="Name" type="text" maxlength="50" size="16">
- </td>
- </tr>
- <tr>
- <td align="right" valign="top"><font color="#0A0A0A">上级部门:</font></td>
- <td align="left" valign="middle" nowrap >
- <iframe id="SelectDepartment" frameborder=1 src="SelectDepartment.jsp" width="100%" height="100%" scrolling="auto"></iframe>
- </td>
- </tr>
- <input name="Station" type="hidden" ID="Station" Value="_0_">
- <input name="LevelNumber" type="hidden" id="LevelNumber" value="1">
- <input name="ChildrenAcount" type="hidden" id="ChildrenAcount" value="0">
- <input name="OrderNumber" type="hidden" id="OrderNumber" value="1">
- <input name="DepartmentID" type="hidden" id="DepartmentID" value="">
- <tr>
- <td align="right" valign="middle"><font color="#0A0A0A">打开时的图标:</font></td>
- <td align="left" valign="middle" nowrap>
- <input name="OpenedICO" type="text" maxlength="50" size="20">
- <a href="" onclick="return uploadimage(document.adddepartment.OpenedICO,document.all.OpenedICOImg);"><font color="#0A0A0A"><img src="/images/tree/folderopen.gif" width="19" height="19" id="OpenedICOImg" align="absbottom" border="0">上传图片</font></a>
- </td>
- </tr>
- <tr>
- <td align="right" valign="middle"><font color="#0A0A0A">关闭时的图标:</font></td>
- <td align="left" valign="middle" nowrap>
- <input name="CloseedICO" type="text" maxlength="50" size="20">
- <a href="" onclick="return uploadimage(document.adddepartment.CloseedICO,document.all.CloseedICOImg);"><font color="#0A0A0A"><img src="/images/tree/folderclosed.gif" width="19" height="19" id="CloseedICOImg" align="absbottom" border="0">上传图片</font></a>
- </td>
- </tr>
- <input name="LinkUrl" type="hidden" value="">
- <input name="Target" type="hidden" value="">
- <input name="IsLink" type="hidden" value="0">
- <input name="IsShow" type="hidden" value="1">
- <tr>
- <td align="right" valign="middle"><font color="#0A0A0A">部门简介:</font></td>
- <td align="left" valign="middle" nowrap>
- <input name="Content" type="text" maxlength="50" size="38">
- </td>
- </tr>
- <!-- 将是否显示改为固定显示值 2003年5月30日 马登军
- <tr>
- <td align="right" valign="middle"><font color="#0A0A0A">是否显示:</font></td>
- <td align="left" valign="middle" nowrap>
- <font color="#0A0A0A"><input name="IsShow" type="radio" value="1" checked>是 <input name="IsShow" type="radio" value="0">否</font>
- </td>
- </tr>
- //-->
- <tr>
- <td align="right" valign="middle"><font color="#0A0A0A"> </font></td>
- <td align="left" valign="middle" nowrap>
- </td>
- </tr>
- <tr>
- <td align="right" valign="middle"> </td>
- <td align="left" valign="middle" nowrap>
- <input type="submit" value="添加"> <input type="reset" value="重填">
- </td>
- </tr>
- </table>
- </form>
- </td>
- </tr>
- </table>
- </body>
- </html>