StaffReport.aspx
上传用户:xuming1973
上传日期:2014-02-27
资源大小:17511k
文件大小:3k
源码类别:

WEB源码(ASP,PHP,...)

开发平台:

C#

  1. <%@ Register TagPrefix="cr1" Namespace="CrystalDecisions.Web" Assembly="CrystalDecisions.Web, Version=9.1.5000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304" %>
  2. <%@ Page language="c#" Codebehind="StaffReport.aspx.cs" AutoEventWireup="false" Inherits="UDS.SubModule.Staff.Report.StaffReport" %>
  3. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
  4. <HTML>
  5. <HEAD>
  6. <title>人员报表</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>
  12. function displayoptionlabel()
  13. {
  14. var obj = document.getElementById('div_opt');
  15. if(obj != null)
  16. if(document.getElementById('div_opt').style.display != "none")
  17. {
  18. var left = parseInt(obj.style.left.substring(0,obj.style.left.length-2));
  19. var top = parseInt(obj.style.top.substring(0,obj.style.top.length-2));
  20. var width = parseInt(obj.style.width.substring(0,obj.style.width.length-2));
  21. var height = parseInt(obj.style.height.substring(0,obj.style.height.length-2));
  22. if( (event.x>(left+width)) || (event.y<top-80) || (event.y>top+height+20))
  23. {
  24. //alert('1');
  25. document.getElementById('div_opt').style.display = "none";
  26. }
  27. }
  28. else
  29. {
  30. if(event.x<10)
  31. {
  32. document.getElementById('div_opt').style.display = "";
  33. document.getElementById('div_opt').style.left= event.x;
  34. document.getElementById('div_opt').style.top= event.y;
  35. }
  36. else
  37. {
  38. document.getElementById('div_opt').style.display = "none";
  39. }
  40. }
  41. //obv.innerText = "event.x="+event.x+" event.y="+event.y+" left:"+left+" width:"+width+" left+width:"+(left+width)+" top:"+top+" top+height:"+(top+height);
  42. }
  43. </script>
  44. </HEAD>
  45. <body  MS_POSITIONING="GridLayout">
  46. <form id="Form1" method="post" runat="server">
  47. <CR1:CRYSTALREPORTVIEWER id="crv_StaffList" style="Z-INDEX: 102; LEFT: 0px; POSITION: absolute; TOP: 8px"
  48. runat="server" Height="50px" Width="350px" DisplayGroupTree="False"></CR1:CRYSTALREPORTVIEWER>
  49. <DIV id="div_opt" style="DISPLAY: none; Z-INDEX: 103; LEFT: 24px; WIDTH: 400px; POSITION: absolute; TOP: 232px; HEIGHT: 40px"
  50. ms_positioning="FlowLayout">&nbsp;
  51. <asp:linkbutton id="lbtn_IEPrint" runat="server">IE打印预览</asp:linkbutton>&nbsp;格式转换
  52. <asp:dropdownlist id="ddl_FileFormat" runat="server">
  53. <asp:ListItem Value="pdf">Pdf</asp:ListItem>
  54. <asp:ListItem Value="doc">Word</asp:ListItem>
  55. </asp:dropdownlist><asp:button id="btn_Change" runat="server" Text="转换"></asp:button></DIV>
  56. </form>
  57. </body>
  58. </HTML>