PopNotifyFile.aspx
资源名称:OA_at.rar [点击查看]
上传用户:tree100901
上传日期:2007-06-03
资源大小:2295k
文件大小:2k
源码类别:
OA系统
开发平台:
C#
- <%@ Register TagPrefix="cc1" Namespace="EeekSoft.Web" Assembly="EeekSoft.Web.PopupWin" %>
- <%@ Page language="c#" Codebehind="PopNotifyFile.aspx.cs" AutoEventWireup="false" Inherits="OA.PopNotifyFile" %>
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
- <HTML>
- <HEAD>
- <title>NotifyFile</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 intCallID=0;
- function Init()
- {
- if(document.all.Hidden2.value==""){
- GetNewFile();
- setInterval("GetNewFile()",5000);
- }
- }
- function GetNewFile()
- {
- document.all.Hidden2.value='';
- Service.useService("http://218.84.107.8/OA/WebService1/OAService.asmx?WSDL","FileService");
- intCallID=Service.FileService.callService(RealTime_Result,"GetNewFile",document.all.Hidden1.value);
- }
- function RealTime_Result(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();
- }
- }
- }
- </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)"></div>
- <div style="WIDTH: 100%; HEIGHT: 100%" align="center"><cc1:popupwin id="PopupWin1" title="提示" runat="server" Height="82px" Message="有新的文件!" OffsetY="10"
- OffsetX="0" ActionType="OpenLink" LinkTarget="blank" HideAfter="-1" DockMode="BottomRight" Width="160px"></cc1:popupwin></div>
- <INPUT id="Hidden1" type="hidden" name="Hidden1" runat="server"><INPUT id="Hidden2" type="hidden" name="Hidden2" runat="server">
- </form>
- </body>
- </HTML>