ResourceReport.aspx
上传用户:autodoor
上传日期:2022-08-04
资源大小:9973k
文件大小:7k
源码类别:

.net编程

开发平台:

Others

  1. <%@ Import Namespace="qminoa.BLL.PM" %>
  2. <%@ Page language="c#" Codebehind="ResourceReport.aspx.cs" AutoEventWireup="false" Inherits="qminoa.Webs.PM.ResourceReportForm" %>
  3. <!doctype HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
  4. <html>
  5. <head>
  6. <title>Resource Report Page</title>
  7. <meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
  8. <link href="styles.css" type="text/css" rel="stylesheet">
  9. </head>
  10. <body>
  11. <form id="ResourceReportForm" method="post" runat="server">
  12. <table cellSpacing="0" cellPadding="0" width="100%" border="0">
  13. <tr>
  14. <td class="tab-active" vAlign="top" height="15"><img height="15" src="images/spacer.gif" width="15"></td>
  15. </tr>
  16. </table>
  17. <table cellSpacing="0" cellPadding="0" width="100%" border="0">
  18. <tr>
  19. <td width="11"><img height="11" src="images/spacer.gif" width="11"></td>
  20. <td>
  21. <asp:hyperlink ID="BackLink1" Text='< 返回' Runat="server" />
  22. </td>
  23. </tr>
  24. <tr>
  25. <td width="11" colspan="2"><img height="11" src="images/spacer.gif" width="11">
  26. </td>
  27. </tr>
  28. <tr>
  29. <td width="11"><img height="11" src="images/spacer.gif" width="11"></td>
  30. <td valign="top">
  31. <table class="tan-border" cellSpacing="11" cellPadding="0" width="100%" border="0" height="526">
  32. <tr vAlign="top">
  33. <td>
  34. <asp:label id="NoData" runat="server" Visible="False" CssClass="header-gray">没有数据!</asp:label>
  35. <asp:datalist id="UserList" runat="server" Width="100%">
  36. <headertemplate>
  37. <table cellSpacing="0" cellPadding="0" width="100%" border="0">
  38. <tr>
  39. <td colspan="3" class="header-gray">成员统计报告</td>
  40. </tr>
  41. <tr>
  42. <td colspan="3">&nbsp;</td>
  43. </tr>
  44. <tr>
  45. <td width="150" class="report-header">开始日期</td>
  46. <td width="150" class="report-header">结束日期</td>
  47. <td width="*" class="report-header">&nbsp;</td>
  48. </tr>
  49. <tr>
  50. <td class="report-text">
  51. <asp:Label ID="StartDate" Runat="server" Text='<%# _startDate.ToString("d") %>' /></td>
  52. <td class="report-text">
  53. <asp:Label ID="EndDate" Runat="server" Text='<%# _endDate.ToString("d") %>' /></td>
  54. <td></td>
  55. </tr>
  56. <tr>
  57. <td colspan="3">&nbsp;</td>
  58. </tr>
  59. </table>
  60. </headertemplate>
  61. <itemtemplate>
  62. <table cellSpacing="0" cellPadding="0" width="100%" border="0">
  63. <tr>
  64. <td width="150" class="report-main-header">成员</td>
  65. <td width="78" align="right" class="report-main-header">所用时间</td>
  66. <td width="*" class="report-main-header">&nbsp;</td>
  67. </tr>
  68. <tr>
  69. <td class="report-text"><%# DataBinder.Eval(Container.DataItem, "FullName") %></td>
  70. <td class="report-text" align="right"><%# DataBinder.Eval(Container.DataItem, "TotalHours") %></td>
  71. <td class="report-text">&nbsp;</td>
  72. </tr>
  73. <tr>
  74. <td height="24" colspan="3">&nbsp;</td>
  75. </tr>
  76. </table>
  77. <table cellSpacing="0" cellPadding="3" width="100%" border="0">
  78. <tr>
  79. <td>
  80. <asp:datagrid id="TimeEntryGrid" DataSource='<%# ListTimeEntry(_user.UserID, (int)DataBinder.Eval(Container.DataItem, "UserID"), _startDate, _endDate) %>' runat="server" BorderStyle="None" Width="100%" CellPadding="4" AutoGenerateColumns="False" Font-Name="Verdana" AllowSorting="True" BorderColor="White" OnSortCommand="TimeEntryGrid_Sort">
  81. <headerstyle Font-Bold="True" CssClass="report-header"></headerstyle>
  82. <columns>
  83. <asp:templatecolumn SortExpression="EntryDate" HeaderText="日期">
  84. <headerstyle HorizontalAlign="Left" Width="150px" CssClass="report-header" VerticalAlign="Middle"></headerstyle>
  85. <itemstyle HorizontalAlign="Left" Width="150px" CssClass="report-text"></itemstyle>
  86. <itemtemplate>
  87. <%# DataBinder.Eval(Container, "DataItem.EntryDate", "{0:d}") %>
  88. </itemtemplate>
  89. </asp:templatecolumn>
  90. <asp:templatecolumn SortExpression="ProjectName" HeaderText="项目">
  91. <headerstyle HorizontalAlign="Left" Width="120px" CssClass="report-header" VerticalAlign="Middle"></headerstyle>
  92. <itemstyle CssClass="report-text" Width="120px" Wrap="False"></itemstyle>
  93. <itemtemplate>
  94. <%# DataBinder.Eval(Container, "DataItem.ProjectName") %>
  95. </itemtemplate>
  96. </asp:templatecolumn>
  97. <asp:templatecolumn SortExpression="CategoryName" HeaderText="进程">
  98. <headerstyle HorizontalAlign="Left" Width="50px" CssClass="report-header" VerticalAlign="Middle"></headerstyle>
  99. <itemstyle CssClass="report-text" Width="50px"></itemstyle>
  100. <itemtemplate>
  101. <%# DataBinder.Eval(Container.DataItem, "CategoryShortName") %>
  102. </itemtemplate>
  103. </asp:templatecolumn>
  104. <asp:templatecolumn SortExpression="Duration" HeaderText="时间">
  105. <headerstyle HorizontalAlign="Right" Width="50px" CssClass="report-header" VerticalAlign="Middle"></headerstyle>
  106. <itemstyle HorizontalAlign="Right" CssClass="report-text" Width="40px"></itemstyle>
  107. <itemtemplate>
  108. <%# DataBinder.Eval(Container.DataItem, "Duration", "{0:f}") %>
  109. </itemtemplate>
  110. </asp:templatecolumn>
  111. <asp:templatecolumn SortExpression="Description" HeaderText="描述">
  112. <headerstyle HorizontalAlign="Left" CssClass="report-header" VerticalAlign="Middle"></headerstyle>
  113. <itemstyle CssClass="report-text" Wrap="False"></itemstyle>
  114. <itemtemplate>
  115. <%# DataBinder.Eval(Container, "DataItem.Description") %>
  116. </itemtemplate>
  117. </asp:templatecolumn>
  118. </columns>
  119. </asp:datagrid>
  120. </td>
  121. </tr>
  122. <tr>
  123. <td height="48">&nbsp;</td>
  124. </tr>
  125. </table>
  126. </itemtemplate>
  127. </asp:datalist>
  128. </td>
  129. </tr>
  130. </table>
  131. </td>
  132. <td width="11"><img height="11" src="images/spacer.gif" width="11"></td>
  133. </tr>
  134. <tr>
  135. <td width="11" colspan="2"><img height="11" src="images/spacer.gif" width="11"></td>
  136. </tr>
  137. <tr>
  138. <td width="11"><img height="11" src="images/spacer.gif" width="11"></td>
  139. <td>
  140. <asp:hyperlink ID="BackLink2" Text='< Back to Reports' Runat="server" />
  141. </td>
  142. </tr>
  143. <tr>
  144. <td vAlign="top" height="15" colspan="5"><img height="15" src="images/spacer.gif" width="15"></td>
  145. </tr>
  146. </table>
  147. </form>
  148. </body>
  149. </html>