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

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. <%
  5. Request m_request = new Request(request);
  6. int iSysDirID = m_request.GetInt("SysDirID");
  7. Vector vt = AssetTypeManager.getBySysDirIDRecord(iSysDirID);
  8. %>
  9. <html>
  10. <head>
  11. <meta http-equiv="Content-Type" content="text/html; charset=gb2312"><meta http-equiv="pragma" content="no-cache">
  12. <title>资产类型管理-- GForce OA 2.0</title>
  13. <link href="../css/txt.jsp" rel="stylesheet" type="text/css">
  14. <script language="JavaScript" src="/js/changestyle.js"></script>
  15. <script language="JavaScript" type="text/javascript">
  16. function CheckAddAssetType()
  17. {
  18.     if(document.AddAssetType.TypeName.value=='')
  19.     {
  20.         alert("请输入资产类型名称!");
  21.         document.AddAssetType.TypeName.focus();
  22.         return false;
  23.     }
  24. }
  25. </script>
  26. </head>
  27. <body bgcolor="<%=m_session.GetString("BackColor")%>" leftmargin="0" topmargin="0">
  28.    <table width="100%" height="100%" border="0" align="center" cellspacing="0">
  29.     <tr>
  30.     <td align="center" valign="top">
  31.       <table width="100%" border="0" cellpadding="0" cellspacing="0">
  32.         <tr>
  33.           <td height="50" valign="top" background="../images/dy-back.gif">
  34.             <table width="100%" border="0" cellpadding="0" cellspacing="0">
  35.               <tr valign="middle">
  36.                 <td width="61" align="center" height="20"><img src="../images/dy-01.gif" width="38" height="36"></td>
  37.                 <td width="118" nowrap="nowrap" valign="middle"><strong><font color="#000000">车辆类型管理</font></strong></td>
  38.                 <td align="right" nowrap="nowrap" valign="bottom">&nbsp;
  39.                    <!-- 群增<img src="../images/MulAdd.gif" onMouseOver="this.src='../images/MulAdd_a.gif';" onMouseOut="this.src='../images/MulAdd.gif';" border="0" height="22" width="59">&nbsp;-->
  40.                   <!--单增<img src="../images/Single.gif" onMouseOver="this.src='../images/Single_a.gif';" onMouseOut="this.src='../images/Single.gif';" border="0" height="22" width="59">&nbsp;-->
  41.                   <!-- 修改<img src="../images/Update.gif" onMouseOver="this.src='../images/Update_a.gif';" onMouseOut="this.src='../images/Update.gif';" border="0" height="22" width="59">&nbsp;-->
  42.                   <!-- 删除<img src="../images/Del.gif" onMouseOver="this.src='../images/Del_a.gif';" onMouseOut="this.src='../images/Del.gif';" border="0" height="22" width="59">&nbsp;-->
  43.                   <!-- 查看<img src="../images/Query.gif" onMouseOver="this.src='../images/Query_a.gif';" onMouseOut="this.src='../images/Query.gif';" border="0" height="22" width="59">&nbsp;-->
  44.                   <!-- 组合查询<img src="../images/GroupQuery.gif" onMouseOver="this.src='../images/GroupQuery_a.gif';" onMouseOut="this.src='../images/GroupQuery.gif';" border="0" height="22" width="79">&nbsp;-->
  45.                 </td>
  46.               </tr>
  47.             </table>
  48.           </td>
  49.         </tr>
  50.       </table>
  51. <table width="100%" height="100%" border="0" align="center" cellspacing="0">
  52.     <tr>
  53.         <td align="center" valign="top"><p>&nbsp;</p>
  54.             <table width="90%" border="1" cellpadding="3" cellspacing="0" bordercolordark="#ffffff" bordercolorlight="#000000" style="">
  55.                 <tr align="center" valign="middle" bgcolor="<%=m_session.GetString("TitleColor")%>">
  56.                     <th width="3%" height="24" nowrap><img src="/images/white.gif" width="12"></th>
  57.                     <th width="6%" nowrap><font color="#000000">序号</font></th>
  58.                     <th width="40%" nowrap><font color="#000000">资产类型名称</font></th>
  59.                     <th width="11%" nowrap><font color="#000000">添加</font></th>
  60.                     <th width="11%" nowrap><font color="#000000">修改</font></th>
  61.                     <th width="12%" nowrap><font color="#000000">删除</font></th>
  62.                 </tr>
  63.                 <%
  64. for(int i=0;i<vt.size();i++)
  65. {
  66.     String strID = ((Vector)vt.get(i)).get(0).toString();
  67.     if(i % 2 == 0)
  68.         out.println("<tr id="Row"+ i+ "" class="DataRowsSingle" onmouseover="mouseon(this,'image" + i + "');" onmouseout="mouseout(this,'image" + i + "','DataRowsSingle');">");
  69.     else
  70.         out.println("<tr id="Row"+ i+ "" class="DataRowsDouble" onmouseover="mouseon(this,'image" + i + "');" onmouseout="mouseout(this,'image" + i + "','DataRowsDouble');">");
  71.     out.println("<td align="right" valign="middle"><img id="image" + i + "" src="../images/lastpost1.gif" style="display:none;"> </td>");
  72.     out.println("<td align="right" valign="middle">" + (i+1) + "</td>");
  73.     out.println("<td align="left" valign="middle" nowrap onclick="openeditwindow('AssetFieldsManage1.jsp?AssetTypeID=" + strID + "')" title="在此单击查看、修改该资产类型的字段名称">" + ((Vector)vt.get(i)).get(1).toString() + "</td>");
  74.     out.println("<td align="center" valign="middle" nowrap>&nbsp;</td>");
  75.     out.println("<td align="center" valign="middle" nowrap><a href="EditAssetType.jsp?SysDirID="+iSysDirID+"&ID=" + strID + "">修改</a></td>");
  76.     out.println("<td align="center" valign="middle" nowrap><a href="DelAssetType.jsp?SysDirID="+iSysDirID+"&ID=" + strID + "" onclick="return confirm('您确实要删除该资产类型吗?\n删除该类型之前必须删除该类型所有相关资产记录,\n否则会出错,您是否继续?');">删除</a></td>");
  77.     out.println("</tr>");
  78. }
  79. %>
  80.                 <form name="AddAssetType" action="AddAssetTypeAction.jsp?SysDirID=<%=iSysDirID%>" method="post" onSubmit="javascript:return CheckAddAssetType();">
  81.                     <tr bgcolor="<%=m_session.GetString("TitleColor")%>">
  82.                         <th align="right" valign="middle" bgcolor="<%=m_session.GetString("TitleColor")%>">&nbsp;</th>
  83.                         <th align="right" valign="middle" bgcolor="<%=m_session.GetString("TitleColor")%>">&nbsp;</th>
  84.                         <th align="left" valign="middle" nowrap bgcolor="<%=m_session.GetString("TitleColor")%>">
  85.                             <input name="TypeName" type="text" maxlength="60"></th>
  86.                             <input name="SysDirID" type="hidden" Value="<%=iSysDirID%>"></th>
  87.                         <th align="center" valign="middle" nowrap bgcolor="<%=m_session.GetString("TitleColor")%>">
  88.                             <input type="submit" value="添加"></th>
  89.                         <th align="center" valign="middle" nowrap bgcolor="<%=m_session.GetString("TitleColor")%>">&nbsp;</th>
  90.                         <th align="center" valign="middle" nowrap bgcolor="<%=m_session.GetString("TitleColor")%>">&nbsp;</th>
  91.                     </tr>
  92.                 </form>
  93.             </table>
  94.         </td>
  95.     </tr>
  96. </table>
  97. </body>
  98. </html>