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

OA系统

开发平台:

C#

  1. <%@ Page language="c#" Codebehind="PopNotifyDocument.aspx.cs" AutoEventWireup="false" Inherits="OA.PopNotifyDocument" %>
  2. <%@ Register TagPrefix="cc1" Namespace="EeekSoft.Web" Assembly="EeekSoft.Web.PopupWin" %>
  3. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
  4. <HTML>
  5. <HEAD>
  6. <title>NotifyDocument</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. GetNewDocument();
  17. setInterval("GetNewDocument()",5000);
  18. }
  19. }
  20. function GetNewDocument()
  21. {
  22.   document.all.Hidden2.value='';
  23.   Service.useService("http://218.84.107.8/OA/WebService1/OAService.asmx?WSDL","DocumentService");
  24.   intCallID=Service.DocumentService.callService(RealTime_Result,"GetNewDocument",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" HideAfter="-1" LinkTarget="blank" ActionType="OpenLink"
  46. ColorStyle="Red" OffsetX="0" OffsetY="10" Message="有新的文档!" Height="82px" 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>