PopNotifyMessage.aspx
资源名称:OA_at.rar [点击查看]
上传用户:tree100901
上传日期:2007-06-03
资源大小:2295k
文件大小:3k
源码类别:
OA系统
开发平台:
C#
- <%@ Register TagPrefix="cc1" Namespace="EeekSoft.Web" Assembly="EeekSoft.Web.PopupWin" %>
- <%@ Page language="c#" Codebehind="PopNotifyMessage.aspx.cs" AutoEventWireup="false" Inherits="OA.PopNotifyMessage" %>
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
- <HTML>
- <HEAD>
- <title>NotifyMessage</title>
- <meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">
- <meta content="C#" name="CODE_LANGUAGE">
- <meta content="JavaScript" name="vs_defaultClientScript">
- <meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
- <script language="javascript">
- var intCallID1=0;
- var intCallID2=0;
- var intCallID3=0;
- var intCallID4=0;
- function Init()
- {
- if(document.all.Hidden2.value==""){
- GetNewMessage();
- setInterval("GetNewMessage()",5000);
- }
- }
- function GetNewMessage()
- {
- document.all.Hidden2.value='';
- document.all.Hidden3.value='';
- document.all.Hidden4.value='';
- document.all.Hidden5.value='';
- Service.useService("http://218.84.107.8:88/OA/WebService1/OAService.asmx?WSDL","MessageService");
- intCallID1=Service.MessageService.callService(RealTime_Result1,"GetNewMessage",document.all.Hidden1.value);
- intCallID2=Service.MessageService.callService(RealTime_Result2,"GetNewFile",document.all.Hidden1.value);
- intCallID3=Service.MessageService.callService(RealTime_Result3,"GetNewDocument",document.all.Hidden1.value);
- intCallID4=Service.MessageService.callService(RealTime_Result4,"GetNewMeeting",document.all.Hidden1.value);
- }
- function RealTime_Result1(result)
- {
- if(result.error)
- {
- document.all.Hidden2.value="";
- }
- else
- {
- if(document.all.Hidden2.value==""&&result.value != ""){
- document.all.Hidden2.value= result.value;
- document.forms(0).submit();
- }
- }
- }
- function RealTime_Result2(result)
- {
- if(result.error)
- {
- document.all.Hidden3.value="";
- }
- else
- {
- if(document.all.Hidden3.value==""&&result.value != ""){
- document.all.Hidden3.value= result.value;
- document.forms(0).submit();
- }
- }
- }
- function RealTime_Result3(result)
- {
- if(result.error)
- {
- document.all.Hidden4.value="";
- }
- else
- {
- if(document.all.Hidden4.value==""&&result.value != ""){
- document.all.Hidden4.value= result.value;
- document.forms(0).submit();
- }
- }
- }
- function RealTime_Result4(result)
- {
- if(result.error)
- {
- document.all.Hidden5.value="";
- }
- else
- {
- if(document.all.Hidden5.value==""&&result.value != ""){
- document.all.Hidden5.value= result.value;
- document.forms(0).submit();
- }
- }
- }
- </script>
- </HEAD>
- <body leftMargin="5" topMargin="5" onload="Init()" rightMargin="1">
- <form id="Form1" method="post" runat="server">
- <div id="Service" style="BEHAVIOR: url(webservice.htc)"><FONT face="宋体"></FONT></div>
- <cc1:PopupWin id="PopupWin1" runat="server" Width="170px" linktarget="_blank" ActionType="OpenLink"
- DockMode="BottomRight" autoshow="False" hideafter="-1" title="提示" OffsetY="0" OffsetX="0"></cc1:PopupWin>
- <INPUT id="Hidden1" type="hidden" name="Hidden1" runat="server"><INPUT id="Hidden2" type="hidden" name="Hidden2" runat="server">
- <INPUT id="Hidden3" type="hidden" name="Hidden3" runat="server"><INPUT id="Hidden4" type="hidden" name="Hidden4" runat="server"><INPUT id="Hidden5" type="hidden" name="Hidden5" runat="server"></form>
- </body>
- </HTML>