NotifyMessage.aspx
资源名称:OA_at.rar [点击查看]
上传用户:tree100901
上传日期:2007-06-03
资源大小:2295k
文件大小:2k
源码类别:
OA系统
开发平台:
C#
- <%@ Page language="c#" Codebehind="NotifyMessage.aspx.cs" AutoEventWireup="false" Inherits="OA.NotifyMessage" %>
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
- <HTML>
- <HEAD>
- <title>NotifyMessage</title>
- <meta name="GENERATOR" Content="Microsoft Visual Studio .NET 7.1">
- <meta name="CODE_LANGUAGE" Content="C#">
- <meta name="vs_defaultClientScript" content="JavaScript">
- <meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
- <script language="javascript">
- var intCallID=0;
- function Init()
- {
- if(divMessage.innerHTML==""){
- GetNewMessage();
- setInterval("GetNewMessage()",5000);
- }
- }
- function GetNewMessage()
- {
- divMessage.innerHTML='';
- Service.useService("http://218.84.107.8/OA/WebService1/OAService.asmx?WSDL","MessageService");
- intCallID=Service.MessageService.callService(RealTime_Result,"GetNewMessage",document.all.Hidden1.value);
- }
- function RealTime_Result(result)
- {
- if(result.error)
- {
- divMessage.innerHTML="";
- }
- else
- {
- if(divMessage.innerHTML==""&&result.value != ""){
- divMessage.innerHTML= "<img src='images//grayDots.gif'border='0'> <a style= 'CURSOR:hand;'onclick=javascript:OpenWin();>你的短信来了!</a>";
- window.setInterval("divMessage.style.color ='#6699ff'",500);
- window.setInterval("divMessage.style.color ='white'",500);
- }
- }
- }
- function OpenWin(){
- window.open('DisplayMessage.aspx?PersonID='+document.all.Hidden1.value,'_blank','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,left=0,top=0,width=100,height=100');
- setInterval("GetNewMessage()",5000);
- }
- </script>
- </HEAD>
- <body onload="Init()"oncontextmenu='return false' bgcolor="lightgrey" topmargin="5" leftmargin="1" rightmargin="1">
- <form id="Form1" method="post" runat="server">
- <INPUT style="Z-INDEX: 101; LEFT: 8px; POSITION: absolute; TOP: 8px" type="hidden" id="Hidden1"
- name="Hidden1" runat="server">
- <div id="Service" style="behavior:url(webservice.htc)"></div>
- <div id="divMessage" style="FONT-SIZE: 9pt; VERTICAL-ALIGN: baseline; COLOR: MARSON; FONT-FAMILY: 宋体; TEXT-ALIGN: center"
- align="center"></div>
- </form>
- </body>
- </HTML>