CalendarPlansLink.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. <%
  5. Request m_request = new Request(request);
  6. int intCalendarPlansID = m_request.GetInt("ID");
  7. if(intCalendarPlansID<1)
  8. {
  9. %>
  10. <script language="JavaScript" type="text/JavaScript">
  11. alert("请选择正确的日程计划,查看资料失败!");
  12. history.back();
  13. </script>
  14. <%
  15. }
  16. else
  17. {
  18. int intUserID = m_session.GetInt("UserID");
  19. Vector vt = CalendarPlansManager.getRecordByID(intCalendarPlansID,intUserID);
  20. if(vt.size()==1)
  21. {
  22. %>
  23. <html>
  24. <head>
  25. <meta http-equiv="Content-Type" content="text/html; charset=gb2312"><meta http-equiv="pragma" content="no-cache">
  26. <title>日程计划-- GForce OA 2.0</title>
  27. <link href="../css/txt.jsp" rel="stylesheet" type="text/css">
  28. </head>
  29. <body bgcolor="<%=m_session.GetString("BackColor")%>" leftmargin="0" topmargin="0">
  30. <table width="100%" height="100%" border="0" align="center" cellpadding="0" cellspacing="0">
  31.   <tr>
  32.     <td align="center" valign="top">
  33.       <table width="95%"  border="0" cellpadding="0" cellspacing="5">
  34.         <tr>
  35.           <td width="100" align="right" valign="middle" nowrap><font color="#0A0A0A">计划主题:</font></td>
  36.           <td align="left" valign="middle"> <%=((Vector)vt.get(0)).get(2).toString()%>
  37.           </td>
  38.         </tr>
  39.         <tr>
  40.           <td width="100" align="right" valign="middle" nowrap><font color="#0A0A0A">计划内容:</font></td>
  41.           <td align="left" valign="middle"> <%=((Vector)vt.get(0)).get(3).toString()%></td>
  42.         </tr>
  43.         <tr>
  44.           <td width="100" align="right" valign="middle" nowrap><font color="#0A0A0A">增加日期:</font></td>
  45.           <td align="left" valign="middle"> <%=StringNew.GetDateString(((Vector)vt.get(0)).get(4).toString(),"yyyy-MM-dd")%>
  46.           </td>
  47.         </tr>
  48.         <tr>
  49.           <td width="100" align="right" valign="middle" nowrap><font color="#0A0A0A">计划开始时间:</font></td>
  50.           <td align="left" valign="middle"> <%=StringNew.GetDateString(((Vector)vt.get(0)).get(5).toString(),"yyyy-MM-dd")%>
  51.           </td>
  52.         </tr>
  53.         <tr>
  54.           <td width="100" align="right" valign="middle" nowrap><font color="#0A0A0A">计划结束时间:</font></td>
  55.           <td align="left" valign="middle"> <%=StringNew.GetDateString(((Vector)vt.get(0)).get(6).toString(),"yyyy-MM-dd")%>
  56.           </td>
  57.         </tr>
  58.         <tr>
  59.           <td width="100" align="right" valign="middle" nowrap><font color="#0A0A0A">实际开始时间:</font></td>
  60.           <td align="left" valign="middle"> <%=StringNew.GetDateString(((Vector)vt.get(0)).get(7).toString(),"yyyy-MM-dd")%>
  61.           </td>
  62.         </tr>
  63.         <tr>
  64.           <td width="100" align="right" valign="middle" nowrap><font color="#0A0A0A">实际结束时间:</font></td>
  65.           <td align="left" valign="middle"> <%=StringNew.GetDateString(((Vector)vt.get(0)).get(8).toString(),"yyyy-MM-dd")%>
  66.           </td>
  67.         </tr>
  68.         <tr>
  69.           <td width="100" align="right" valign="middle" nowrap><font color="#0A0A0A">重要等级:</font></td>
  70.           <td align="left" valign="middle"> <%=((Vector)vt.get(0)).get(9).toString()%>级
  71.           </td>
  72.         </tr>
  73.         <tr>
  74.           <td width="100" align="right" valign="middle" nowrap><font color="#0A0A0A">提醒时间间隔:</font></td>
  75.           <td align="left" valign="middle"> <%=((Vector)vt.get(0)).get(10).toString()%>小时</td>
  76.         </tr>
  77.         <tr>
  78.           <td width="100" align="right" valign="middle" nowrap><font color="#0A0A0A">是否公开:</font></td>
  79.           <td align="left" valign="middle">
  80.             <%
  81.                           if(((Vector)vt.get(0)).get(11).toString().equalsIgnoreCase("true"))
  82.                              out.print("完成");
  83.                           else
  84.                              out.print("未完成");
  85.                        %>
  86.         </tr>
  87.         <tr>
  88.           <td width="100" align="right" valign="middle" nowrap><font color="#0A0A0A">备注:</font></td>
  89.           <td align="left" valign="middle"> <%=((Vector)vt.get(0)).get(12).toString()%>
  90.           </td>
  91.         </tr>
  92.         <tr>
  93.           <td width="100" align="right" valign="middle" nowrap>&nbsp;</td>
  94.           <td align="left" valign="middle"> </td>
  95.         </tr>
  96.         <tr>
  97.           <td width="100" align="right" valign="middle" nowrap>&nbsp;</td>
  98.           <td align="right" valign="middle">
  99.             <input type="button" value="关闭" onclick="window.close()">
  100.           </td>
  101.         </tr>
  102.       </table>
  103.             </form>
  104.         </td>
  105.     </tr>
  106. </table>
  107. </body>
  108. </html>
  109. <%
  110. }
  111. else
  112. {
  113. %>
  114. <script language="JavaScript" type="text/JavaScript">
  115. alert("该记录已经被删除或者您没有权限查看此记录,查看资料失败!");
  116. history.back();
  117. </script>
  118. <%
  119. }
  120. }
  121. %>