PayTypeManage.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. Vector vt = PayTypeManager.getAllRecord();
  6. %>
  7. <html>
  8. <head>
  9. <meta http-equiv="Content-Type" content="text/html; charset=gb2312"><meta http-equiv="pragma" content="no-cache">
  10. <title>工资条目管理-- GForce OA 2.0</title>
  11. <link href="../css/txt.jsp" rel="stylesheet" type="text/css">
  12. <script language="JavaScript" src="/js/changestyle.js"></script>
  13. <script language="JavaScript" type="text/javascript">
  14. function checkAddPayType()
  15. {
  16.     if(document.AddPayType.TypeName.value=='')
  17.     {
  18.         alert("请输入工资条目!");
  19.         document.AddAayType.TypeName.focus();
  20.         return false;
  21.     }
  22.     if(document.AddPayType.OrderNumber.value=='')
  23.     {
  24.         alert("请输入排序编号!");
  25.         document.AddPayType.OrderNumber.focus();
  26.         return false;
  27.     }
  28.     if(isNaN(parseInt(document.AddPayType.OrderNumber.value)))
  29.     {
  30.       alert("请输入正确的排序编号!");
  31.       document.AddPayType.OrderNumber.select();
  32.       document.AddPayType.OrderNumber.focus();
  33.       return false;
  34.     }
  35. }
  36. </script>
  37. </head>
  38. <body bgcolor="<%=m_session.GetString("BackColor")%>" leftmargin="0" topmargin="0">
  39.    <table width="100%" height="100%" border="0" align="center" cellspacing="0">
  40.     <tr>
  41.     <td align="center" valign="top">
  42.       <table width="100%" border="0" cellpadding="0" cellspacing="0">
  43.         <tr>
  44.           <td height="50" valign="top" background="../images/dy-back.gif">
  45.             <table width="100%" border="0" cellpadding="0" cellspacing="0">
  46.               <tr valign="middle">
  47.                 <td width="61" align="center" height="20"><img src="../images/dy-01.gif" width="38" height="36"></td>
  48.                 <td width="118" nowrap="nowrap" valign="middle"><strong><font color="#000000">工资条目管理</font></strong></td>
  49.                 <td align="right" nowrap="nowrap" valign="bottom">&nbsp;
  50.                    <!-- 群增<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;-->
  51.                   <!--单增<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;-->
  52.                   <!-- 修改<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;-->
  53.                   <!-- 删除<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;-->
  54.                   <!-- 查看<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;-->
  55.                   <!-- 组合查询<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;-->
  56.                 </td>
  57.               </tr>
  58.             </table>
  59.           </td>
  60.         </tr>
  61.       </table>
  62. <table width="100%" height="100%" border="0" align="center" cellspacing="0">
  63.     <tr>
  64.         <td align="center" valign="top"><p>&nbsp;</p>
  65.             <table width="90%" border="1" cellpadding="3" cellspacing="0" bordercolordark="#ffffff" bordercolorlight="#0a0a0a" style="">
  66.                 <tr align="center" valign="middle" bgcolor="<%=m_session.GetString("TitleColor")%>">
  67.                     <th width="6%" height="24" nowrap><img src="/images/white.gif" width="12"></th>
  68.                     <th width="8%" nowrap><font color="#000000">序号</font></th>
  69.                     <th width="45%" nowrap><font color="#000000">条目名称</font></th>
  70.                     <th width="10%" nowrap><font color="#000000">排序编号</font></th>
  71.                     <th width="11%" nowrap><font color="#000000">添加</font></th>
  72.                     <th width="11%" nowrap><font color="#000000">修改</font></th>
  73.                     <th width="12%" nowrap><font color="#000000">删除</font></th>
  74.                 </tr>
  75.                 <%
  76. for(int i=0;i<vt.size();i++)
  77. {
  78.     String strID = ((Vector)vt.get(i)).get(0).toString();
  79.     if(i % 2 == 0)
  80.         out.println("<tr id="Row"+ i+ "" class="DataRowsSingle" onmouseover="mouseon(this,'image" + i + "');" onmouseout="mouseout(this,'image" + i + "','DataRowsSingle');">");
  81.     else
  82.         out.println("<tr id="Row"+ i+ "" class="DataRowsDouble" onmouseover="mouseon(this,'image" + i + "');" onmouseout="mouseout(this,'image" + i + "','DataRowsDouble');">");
  83.     out.println("<td align="right" valign="middle"><img id="image" + i + "" src="../images/lastpost1.gif" style="display:none;"> </td>");
  84.     out.println("<td align="right" valign="middle">" + (i+1) + "</td>");
  85.     out.println("<td align="left" valign="middle" nowrap>" + ((Vector)vt.get(i)).get(1).toString() + "</td>");
  86.     out.println("<td align="left" valign="middle" nowrap>" + ((Vector)vt.get(i)).get(2).toString() + "</td>");
  87.     out.println("<td align="center" valign="middle" nowrap>&nbsp;</td>");
  88.     out.println("<td align="center" valign="middle" nowrap><a href="EditPayType.jsp?ID=" + strID + "">修改</a></td>");
  89.     out.println("<td align="center" valign="middle" nowrap><a href="DelPayType.jsp?ID=" + strID + "" onclick="return confirm('您确实要删除该工资条目吗?\n删除该工资条目之前必须删除属于该工资条目的所有工资,\n否则会出错,您是否继续?');">删除</a></td>");
  90.     out.println("</tr>");
  91. }
  92. %>
  93.                 <form name="AddPayType" action="AddPayTypeAction.jsp" method="post" onSubmit="javascript:return checkAddPayType();">
  94.                     <tr bgcolor="<%=m_session.GetString("TitleColor")%>">
  95.                         <th align="right" valign="middle" bgcolor="<%=m_session.GetString("TitleColor")%>">&nbsp;</th>
  96.                         <th align="right" valign="middle" bgcolor="<%=m_session.GetString("TitleColor")%>">&nbsp;</th>
  97.                         <th align="left" valign="middle" nowrap bgcolor="<%=m_session.GetString("TitleColor")%>">
  98.                             <input name="TypeName" type="text" maxlength="20"></th>
  99.                         <th align="left" valign="middle" nowrap bgcolor="<%=m_session.GetString("TitleColor")%>">
  100.                             <input name="OrderNumber" type="text" maxlength="5" size="5"></th>
  101.                         <th align="center" valign="middle" nowrap bgcolor="<%=m_session.GetString("TitleColor")%>">
  102.                             <input type="submit" value="添加"></th>
  103.                         <th align="center" valign="middle" nowrap bgcolor="<%=m_session.GetString("TitleColor")%>">&nbsp;</th>
  104.                         <th align="center" valign="middle" nowrap bgcolor="<%=m_session.GetString("TitleColor")%>">&nbsp;</th>
  105.                     </tr>
  106.                 </form>
  107.             </table>
  108.         </td>
  109.     </tr>
  110. </table>
  111. </body>
  112. </html>