DutyReport.aspx
上传用户:xgw_05
上传日期:2009-12-11
资源大小:20208k
文件大小:3k
源码类别:

OA系统

开发平台:

C#

  1. <%@ Page language="c#" Codebehind="DutyReport.aspx.cs" AutoEventWireup="false" Inherits="UDS.SubModule.WorkAttendance.Report.DutyReport" %>
  2. <%@ Register TagPrefix="cr" Namespace="CrystalDecisions.Web" Assembly="CrystalDecisions.Web, Version=9.1.5000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304" %>
  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. <FONT face="宋体">
  48. <cr:crystalreportviewer id="cv_Duty" style="Z-INDEX: 101; LEFT: 0px; POSITION: absolute; TOP: 0px" runat="server"
  49. Height="50px" Width="350px" DisplayGroupTree="False"></cr:crystalreportviewer>
  50. <DIV id="div_opt" style="DISPLAY: none; Z-INDEX: 102; LEFT: 320px; WIDTH: 400px; POSITION: absolute; TOP: 288px; HEIGHT: 40px"
  51. ms_positioning="FlowLayout">&nbsp;
  52. <asp:LinkButton id="lbtn_IEPrint" runat="server">IE打印预览</asp:LinkButton>&nbsp;格式转换
  53. <asp:DropDownList id="ddl_FileFormat" runat="server">
  54. <asp:ListItem Value="pdf">Pdf</asp:ListItem>
  55. <asp:ListItem Value="doc">Word</asp:ListItem>
  56. </asp:DropDownList>
  57. <asp:Button id="btn_Change" runat="server" Text="转换"></asp:Button>
  58. </DIV>
  59. </FONT>
  60. </form>
  61. </body>
  62. </HTML>