PopNotifyFile.aspx
上传用户:tree100901
上传日期:2007-06-03
资源大小:2295k
文件大小:2k
源码类别:

OA系统

开发平台:

C#

  1. <%@ Register TagPrefix="cc1" Namespace="EeekSoft.Web" Assembly="EeekSoft.Web.PopupWin" %>
  2. <%@ Page language="c#" Codebehind="PopNotifyFile.aspx.cs" AutoEventWireup="false" Inherits="OA.PopNotifyFile" %>
  3. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
  4. <HTML>
  5. <HEAD>
  6. <title>NotifyFile</title>
  7. <meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">
  8. <meta content="C#" name="CODE_LANGUAGE">
  9. <meta content="JavaScript" name="vs_defaultClientScript">
  10. <meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
  11. <script language="javascript">
  12. var intCallID=0;
  13. function Init()
  14. {
  15. if(document.all.Hidden2.value==""){
  16. GetNewFile();
  17. setInterval("GetNewFile()",5000);
  18. }
  19. }
  20. function GetNewFile()
  21. {
  22.   document.all.Hidden2.value='';
  23.   Service.useService("http://218.84.107.8/OA/WebService1/OAService.asmx?WSDL","FileService");
  24.   intCallID=Service.FileService.callService(RealTime_Result,"GetNewFile",document.all.Hidden1.value);
  25. }
  26. function RealTime_Result(result)
  27. {
  28.  if(result.error)
  29.  {
  30.   document.all.Hidden2.value="";
  31.  }
  32.  else
  33.  {
  34.  if(document.all.Hidden2.value==""&&result.value != ""){
  35.  document.all.Hidden2.value= result.value;
  36.  document.forms(0).submit();
  37.  }
  38.  }
  39. }
  40. </script>
  41. </HEAD>
  42. <body leftMargin="5" topMargin="5" onload="Init()" rightMargin="1">
  43. <form id="Form1" method="post" runat="server">
  44. <div id="Service" style="BEHAVIOR: url(webservice.htc)"></div>
  45. <div style="WIDTH: 100%; HEIGHT: 100%" align="center"><cc1:popupwin id="PopupWin1" title="提示" runat="server" Height="82px" Message="有新的文件!" OffsetY="10"
  46. OffsetX="0" ActionType="OpenLink" LinkTarget="blank" HideAfter="-1" DockMode="BottomRight" Width="160px"></cc1:popupwin></div>
  47. <INPUT id="Hidden1" type="hidden" name="Hidden1" runat="server"><INPUT id="Hidden2" type="hidden" name="Hidden2" runat="server">
  48. </form>
  49. </body>
  50. </HTML>