Remind.jsp
上传用户:mingda
上传日期:2017-06-20
资源大小:27691k
文件大小:4k
- <%@ page contentType="text/html; charset=gb2312"%>
- <%@ page import="com.gforce.currency.*,com.gforce.gfoa.*,java.util.*" %>
- <jsp:include page="/CheckLogin.jsp" flush="true"/>
- <html>
- <head>
- <title>GForce OA 2.0 -- <%=SystemParament.GetSystemName()%></title>
- <link href="css/txt.jsp" rel="stylesheet" type="text/css">
- <meta http-equiv="Content-Type" content="text/html; charset=gb2312"><meta http-equiv="pragma" content="no-cache">
- <meta http-equiv="pragma" content="no-cache">
- <meta http-equiv="REFRESH" content="60;URL=Remind.jsp">
- <style>
- .navPoint {
- FONT-SIZE: 9pt;
- ;
- COLOR: black;
- LINE-HEIGHT: 10px;
- FONT-FAMILY: "Webdings";
- border: none;
- overflow: hidden;
- }
- </style>
- <script language="JavaScript" src="/js/changestyle.js"></script>
- <script language="JavaScript">
- <%
- OnlineUserManager.AddNewSession(session);
- Request m_request = new Request(request);
- Session m_session = new Session(session);
- java.util.Date t_Date = new java.util.Date();
- String CurrentTime = StringNew.GetDateString(t_Date,"yyyy-MM-dd HH:mm:ss");
- int iUserID = m_session.GetInt("UserID");
- Vector vt = OnlineMessage.getUnRemindedMsg(iUserID);
- for(int i=0;i<vt.size();i++)
- {
- OnlineMessage.setIsReminded(Integer.parseInt(((Vector)vt.get(i)).get(0).toString()));
- out.println("window.top.focus();");
- out.println("if(confirm("" + UserManager.getPersonnelNameByUserID(Integer.parseInt(((Vector)vt.get(i)).get(4).toString())) + "给您发送了标题为“" + ((Vector)vt.get(i)).get(1).toString() + "”的短信息,现在是否查阅?")){var newwin=window.open("PersonalSpace/ShowMsg.jsp?ID=" + ((Vector)vt.get(i)).get(0).toString() + "");newwin.focus();}");
- }
- String strWeek = StringNew.GetDateString(new Date(),"E");
- strWeek = strWeek.replaceAll("星期日","0");
- strWeek = strWeek.replaceAll("星期一","1");
- strWeek = strWeek.replaceAll("星期二","2");
- strWeek = strWeek.replaceAll("星期三","3");
- strWeek = strWeek.replaceAll("星期四","4");
- strWeek = strWeek.replaceAll("星期五","5");
- strWeek = strWeek.replaceAll("星期六","6");
- int iWeekDay = Integer.parseInt(strWeek);
- String strDate = StringNew.GetDateString(new Date(),"HH:mm");
- vt = SignTypeManager.getUsefulSignType(iUserID,iWeekDay,strDate);
- String strTypeID = "";
- if (vt.size() == 1)
- {
- strTypeID = ((Vector)vt.get(0)).get(0).toString();
- out.println("if(confirm('“" + ((Vector)vt.get(0)).get(1).toString() + "”签到时间到了,现在是否签到?'))window.open('/Operation/SignInAction.jsp?TypeID=" + strTypeID +"','mainFrame');");
- }
- if (vt.size() > 1)
- {
- strTypeID = ((Vector)vt.get(0)).get(0).toString();
- out.println("if(confirm('签到时间到了,现在是否跳转到签到管理页面?'))window.open('/Operation/SignIn.jsp','mainFrame');");
- }
- //公文自动流转
- //返回所有未归档、当前环节最大停留时间达到或超过(上一环节提交时间与当前时间差)的纪录
- Vector Doc_Flow_vt = DocumentManagerPlus.NeedAutoFlow(CurrentTime);
- if (Doc_Flow_vt.size()>0)
- {
- //update 公文中当前环节
- for(int i=0;i<Doc_Flow_vt.size();i++)
- {
- Vector AFT_vt = DocumentManagerPlus.AutoFlowTache(((Vector)Doc_Flow_vt.get(i)).get(0).toString());
- if (AFT_vt.size()==1)
- {
- DocumentManagerPlus.ResetCurrentTache(((Vector)AFT_vt.get(0)).get(0).toString(),((Vector)Doc_Flow_vt.get(i)).get(0).toString());
- }
- }
- }
- //公文处理提醒
- Vector Doc_vt = DocumentManagerPlus.UNReminded(iUserID+"",CurrentTime);
- if (Doc_vt.size()>0)
- {
- for(int i=0;i<Doc_vt.size();i++)
- {
- out.println("window.top.focus();");
- // 提醒用户处理符公文
- if(((Vector)Doc_vt.get(i)).get(2).toString().equalsIgnoreCase(iUserID+""))
- {
- out.println("alert("您有未提交的“" + ((Vector)Doc_vt.get(i)).get(1).toString() + "”,请尽快处理!");");
- }
- else
- {
- out.println("alert("您收到了" + ((Vector)Doc_vt.get(i)).get(10).toString() + "填写的“" + ((Vector)Doc_vt.get(i)).get(1).toString() + "”,请尽快处理!");");
- }
- // 重置Document表中"是否已提醒"标记、"提醒时间"字段
- DocumentManagerPlus.ResetReminded(((Vector)Doc_vt.get(i)).get(0).toString(),CurrentTime);
- }
- }
- %>
- setTimeout("self.location.reload();",60000);
- </script>
- </head>
- <body bgcolor="#E0E0E0" leftmargin="0" topmargin="0" style="width:100%;height:100%;overflow: hidden;">
- <!--<script language="javascript" src="http://oa.GForce.com/oaonline/counter.asp"></script>-->
- </body>
- </html>