AddDepartment.jsp
上传用户:mingda
上传日期:2017-06-20
资源大小:27691k
文件大小:5k
源码类别:

OA系统

开发平台:

Java

  1. <%@ page contentType="text/html; charset=gb2312"%>
  2. <%@ page import="com.gforce.gfoa.*,com.gforce.currency.*,java.util.*" %>
  3. <jsp:include page="/CheckLogin.jsp" flush="true" /> <% Session m_session = new Session(session); %>
  4. <html>
  5. <head>
  6. <meta http-equiv="Content-Type" content="text/html; charset=gb2312"><meta http-equiv="pragma" content="no-cache">
  7. <title>部门管理-- GForce OA 2.0</title>
  8. <link href="/css/txt.jsp" rel="stylesheet" type="text/css">
  9. <script language="JavaScript" src="/js/changestyle.js"></script>
  10. <script language="JavaScript" type="text/javascript">
  11. function checkAddDepartment()
  12. {
  13.     if(document.adddepartment.Name.value=="")
  14.     {
  15.         alert("请输入部门名称!");
  16.         document.adddepartment.Name.focus();
  17.         return false;
  18.     }
  19.     if(document.adddepartment.DepartmentID.value=="")
  20.     {
  21.         alert("选择上级部门!");
  22.         self.SelectDepartment.document.SelectDepartment.Department[0].focus();
  23.         return false;
  24.     }
  25. }
  26. </script>
  27. </head>
  28. <body bgcolor="<%=m_session.GetString("BackColor")%>" leftmargin="0" topmargin="0">
  29. <table width="100%" height="100%" border="0" align="center" cellspacing="0">
  30.     <tr>
  31.         <td align="center" valign="top"><p>&nbsp;</p>
  32.             <form name="adddepartment" action="AddDepartmentAction.jsp" method="post" onSubmit="javascript:return checkAddDepartment();">
  33.             <table  border="0" cellpadding="0" cellspacing="0" width="90%">
  34.                 <tr>
  35.                     <td align="right" valign="middle"><font color="#0A0A0A">部门名称:</font></td>
  36.                     <td align="left" valign="middle" nowrap>
  37.                         <input name="Name" type="text" maxlength="50" size="16">
  38.                     </td>
  39.                 </tr>
  40.                 <tr>
  41.                     <td align="right" valign="top"><font color="#0A0A0A">上级部门:</font></td>
  42.                     <td align="left" valign="middle" nowrap >
  43.                         <iframe id="SelectDepartment" frameborder=1 src="SelectDepartment.jsp" width="100%" height="100%" scrolling="auto"></iframe>
  44.                     </td>
  45.                 </tr>
  46.                         <input name="Station" type="hidden" ID="Station" Value="_0_">
  47.                         <input name="LevelNumber" type="hidden" id="LevelNumber" value="1">
  48.                         <input name="ChildrenAcount" type="hidden" id="ChildrenAcount" value="0">
  49.                         <input name="OrderNumber" type="hidden" id="OrderNumber" value="1">
  50.                         <input name="DepartmentID" type="hidden" id="DepartmentID" value="">
  51.                 <tr>
  52.                     <td align="right" valign="middle"><font color="#0A0A0A">打开时的图标:</font></td>
  53.                     <td align="left" valign="middle" nowrap>
  54.                         <input name="OpenedICO" type="text" maxlength="50" size="20">
  55.                         <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>
  56.                    </td>
  57.                 </tr>
  58.                 <tr>
  59.                     <td align="right" valign="middle"><font color="#0A0A0A">关闭时的图标:</font></td>
  60.                     <td align="left" valign="middle" nowrap>
  61.                         <input name="CloseedICO" type="text" maxlength="50" size="20">
  62.                         <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>
  63.                    </td>
  64.                 </tr>
  65.                         <input name="LinkUrl" type="hidden" value="">
  66.                         <input name="Target" type="hidden" value="">
  67.                         <input name="IsLink" type="hidden" value="0">
  68.                         <input name="IsShow" type="hidden" value="1">
  69.                 <tr>
  70.                     <td align="right" valign="middle"><font color="#0A0A0A">部门简介:</font></td>
  71.                     <td align="left" valign="middle" nowrap>
  72.                         <input name="Content" type="text" maxlength="50" size="38">
  73.                    </td>
  74.                 </tr>
  75. <!--        将是否显示改为固定显示值  2003年5月30日 马登军
  76.                 <tr>
  77.                     <td align="right" valign="middle"><font color="#0A0A0A">是否显示:</font></td>
  78.                     <td align="left" valign="middle" nowrap>
  79.                         <font color="#0A0A0A"><input name="IsShow" type="radio" value="1" checked>是&nbsp; <input name="IsShow" type="radio" value="0">否</font>
  80.                    </td>
  81.                 </tr>
  82. //-->
  83.                 <tr>
  84.                     <td align="right" valign="middle"><font color="#0A0A0A">&nbsp;</font></td>
  85.                     <td align="left" valign="middle" nowrap>
  86.                    </td>
  87.                 </tr>
  88.                 <tr>
  89.                     <td align="right" valign="middle">&nbsp;</td>
  90.                     <td align="left" valign="middle" nowrap>
  91.                         <input type="submit" value="添加">  &nbsp;&nbsp;&nbsp; <input type="reset" value="重填">
  92.                     </td>
  93.                 </tr>
  94.             </table>
  95.             </form>
  96.         </td>
  97.     </tr>
  98. </table>
  99. </body>
  100. </html>