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

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. int iMyID = m_session.GetInt("UserID");
  6. String strIP = request.getRemoteAddr();
  7. Request m_request = new Request(request);
  8. int intSignID = m_request.GetInt("ID");
  9. int iUserID = m_request.GetInt("UserID");
  10. String strStartDate =  m_request.GetString("StartDate");
  11. String strEndDate =  m_request.GetString("EndDate");
  12. if(intSignID < 1)
  13. {
  14. %>
  15. <script language="JavaScript" type="text/JavaScript">
  16. alert("请选择正确的签到记录,修改失败!");
  17. history.back();
  18. </script>
  19. <%
  20. }
  21. else
  22. {
  23. Vector vt = SignManager.getSignByID(intSignID);
  24. if(vt.size()==1)
  25. {
  26. %>
  27. <html>
  28. <head>
  29. <meta http-equiv="Content-Type" content="text/html; charset=gb2312"><meta http-equiv="pragma" content="no-cache">
  30. <title>签到管理-- GForce OA 2.0</title>
  31. <link href="/css/txt.jsp" rel="stylesheet" type="text/css">
  32. <SCRIPT language="JavaScript" src="/Calendar/PopUpCalendarDlg.js"></SCRIPT>
  33. <script language="JavaScript" type="text/javascript">
  34. </script>
  35. </head>
  36. <body bgcolor="<%=m_session.GetString("BackColor")%>" leftmargin="0" topmargin="0">
  37. <table width="100%" height="100%" border="0" align="center" cellspacing="0">
  38.     <tr>
  39.         <td align="center" valign="top"><p>&nbsp;</p>
  40.             <form name="EditSign" action="/Operation/SignLinkEditAction.jsp?UserID=<%=iUserID%>&StartDate=<%=strStartDate%>&EndDate=<%=strEndDate%>" method="post">
  41.             <table  border="0" cellpadding="0" cellspacing="0" width="90%">
  42.                 <tr>
  43.                     <td align="right" valign="middle"><font color="#0A0A0A">备注:</font></td>
  44.                     <td align="left" valign="middle" nowrap>
  45.                       <input name="ID" type="hidden" value="<%=((Vector)vt.get(0)).get(0).toString()%>">
  46.                       <input name="UserID" type="hidden" value="<%=((Vector)vt.get(0)).get(1).toString()%>">
  47.                       <input name="SignTypeID" type="hidden" value="<%=((Vector)vt.get(0)).get(2).toString()%>">
  48.                       <input name="SignTime" type="hidden" value="<%=((Vector)vt.get(0)).get(3).toString()%>">
  49.                       <input name="SignIP" type="hidden" value="<%=((Vector)vt.get(0)).get(4).toString()%>">
  50.                       <%
  51.                       int iIsNormal = 0;
  52.                       if (((Vector)vt.get(0)).get(5).toString().equalsIgnoreCase("true")) iIsNormal = 1;
  53.                       %>
  54.                       <input name="IsNormal" type="hidden" value="<%=iIsNormal%>">
  55.                       <input name="EditUserID" type="hidden" value="<%=iMyID%>">
  56.                       <input name="EditIP" type="hidden" value="<%=strIP%>">
  57.                       <textarea name="Remark" cols="30" rows="5"><%=((Vector)vt.get(0)).get(6).toString()%></textarea>
  58.                     </td>
  59.                 </tr>
  60.                  <tr>
  61.                     <td align="right" valign="middle">&nbsp;</td>
  62.                 </tr>
  63.                 <tr>
  64.                     <td align="right" valign="middle">&nbsp;</td>
  65.                     <td align="left" valign="middle" nowrap>
  66.                         <input type="submit" value="修改">&nbsp;&nbsp;
  67.                         <input type="reset" value="重填">&nbsp;&nbsp;
  68.                         <input type="button" value="返回" onclick="window.location='SignLinkManage.jsp?UserID=<%=iUserID%>&StartDate=<%=strStartDate%>&EndDate=<%=strEndDate%>';">
  69.                    </td>
  70.                 </tr>
  71.             </table>
  72.             </form>
  73.         </td>
  74.     </tr>
  75. </table>
  76. </body>
  77. </html>
  78. <%
  79. }
  80. else
  81. {
  82. %>
  83. <script language="JavaScript" type="text/JavaScript">
  84. alert("该记录已经被删除或者您没有权限修改此记录,修改失败!");
  85. history.back();
  86. </script>
  87. <%
  88. }
  89. }
  90. %>