温馨提示:代码在线浏览功能只能做为源码浏览参考,不能展示项目的全部,如果想更进一步了解该代码请下载:固定资产管理系统源码
当前文件路径:DepreciationManage/DepreciationManage/QueryDepreciationForm.aspx

1<%--文件名:QueryDepreciationForm.aspx--%> 2
<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="QueryDepreciationForm.aspx.cs" Inherits="DepreciationManage_QueryDepreciationForm" Title="当前位置:折旧管理->统计月度折旧" %> 3
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server"> 4
<table style="width: 556px; height: 161px"> 5
<tr> 6
<td align="left" style="font-size: 0.8em; width: 2232px; font-family: 宋体; height: 16px; 7
background-color: mediumturquoise"> 8
年份:<asp:DropDownList ID="DropDownList1" runat="server"> 9
<asp:ListItem>2006</asp:ListItem> 10
<asp:ListItem>2007</asp:ListItem> 11
<asp:ListItem>2008</asp:ListItem> 12
<asp:ListItem>2009</asp:ListItem> 13
<asp:ListItem>2010</asp:ListItem> 14
<asp:ListItem>2011</asp:ListItem> 15
<asp:ListItem>2012</asp:ListItem> 16
<asp:ListItem>2013</asp:ListItem> 17
<asp:ListItem>2014</asp:ListItem> 18
<asp:ListItem>2015</asp:ListItem> 19
<asp:ListItem>2016</asp:ListItem> 20
<asp:ListItem>2017</asp:ListItem> 21
<asp:ListItem>2018</asp:ListItem> 22
<asp:ListItem>2019</asp:ListItem> 23
<asp:ListItem>2020</asp:ListItem> 24
</asp:DropDownList> 25
月份:<asp:DropDownList ID="DropDownList2" runat="server"> 26
<asp:ListItem>1</asp:ListItem> 27
<asp:ListItem>2</asp:ListItem> 28
<asp:ListItem>3</asp:ListItem> 29
<asp:ListItem>4</asp:ListItem> 30
<asp:ListItem>5</asp:ListItem> 31
<asp:ListItem>6</asp:ListItem> 32
<asp:ListItem>7</asp:ListItem> 33
<asp:ListItem>8</asp:ListItem> 34
<asp:ListItem>9</asp:ListItem> 35
<asp:ListItem>10</asp:ListItem> 36
<asp:ListItem>11</asp:ListItem> 37
<asp:ListItem>12</asp:ListItem> 38
</asp:DropDownList> 39
部门:<asp:DropDownList ID="DropDownList3" runat="server" DataSourceID="SqlDataSource1" 40
DataTextField="部门名称" DataValueField="部门名称" Width="82px"> 41
</asp:DropDownList> 42
<asp:Button ID="Button1" runat="server" Text="查询累计折旧" Width="100px" /> 43
<asp:Button ID="Button2" runat="server" OnClick="Button2_Click" Text="打印累计折旧" Width="100px" /> 44
</td> 45
</tr> 46
<tr> 47
<td style="width: 2232px; height: 100px; background-color: gainsboro"> 48
<asp:Panel ID="Panel1" runat="server" Height="320px" ScrollBars="Auto" Width="553px"> 49
<asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:MyAssetsDBConnectionString %>" 50
SelectCommand="SELECT * FROM [公司部门]"></asp:SqlDataSource> 51
<asp:SqlDataSource ID="SqlDataSource2" runat="server" ConnectionString="<%$ ConnectionStrings:MyAssetsDBConnectionString %>" 52
SelectCommand="SELECT [所属类别], [资产编号], [资产名称], [资产原值], [折旧方法], [月度折旧额] FROM [累计折旧查询视图] WHERE (([折旧年份] = @折旧年份) AND ([折旧月份] = @折旧月份) AND ([使用部门] = @使用部门))"> 53
<SelectParameters> 54
<asp:ControlParameter ControlID="DropDownList1" Name="折旧年份" PropertyName="SelectedValue" 55
Type="Int32" /> 56
<asp:ControlParameter ControlID="DropDownList2" Name="折旧月份" PropertyName="SelectedValue" 57
Type="Int32" /> 58
<asp:ControlParameter ControlID="DropDownList3" Name="使用部门" PropertyName="SelectedValue" 59
Type="String" /> 60
</SelectParameters> 61
</asp:SqlDataSource> 62
<asp:GridView ID="GridView1" runat="server" AllowSorting="True" AutoGenerateColumns="False" 63
BackColor="White" BorderColor="#999999" BorderStyle="None" BorderWidth="1px" 64
CellPadding="3" DataKeyNames="资产编号" DataSourceID="SqlDataSource2" Font-Names="宋体" 65
Font-Size="Small" GridLines="Vertical" Width="550px"> 66
<FooterStyle BackColor="#CCCCCC" ForeColor="Black" /> 67
<Columns> 68
<asp:BoundField DataField="所属类别" HeaderText="所属类别" SortExpression="所属类别" /> 69
<asp:BoundField DataField="资产编号" HeaderText="资产编号" ReadOnly="True" SortExpression="资产编号" /> 70
<asp:BoundField DataField="资产名称" HeaderText="资产名称" SortExpression="资产名称" /> 71
<asp:BoundField DataField="资产原值" HeaderText="资产原值" SortExpression="资产原值" /> 72
<asp:BoundField DataField="折旧方法" HeaderText="折旧方法" SortExpression="折旧方法" /> 73
<asp:BoundField DataField="月度折旧额" HeaderText="月度折旧额" SortExpression="月度折旧额" /> 74
</Columns> 75
<RowStyle BackColor="#EEEEEE" ForeColor="Black" /> 76
<SelectedRowStyle BackColor="#008A8C" Font-Bold="True" ForeColor="White" /> 77
<PagerStyle BackColor="#999999" ForeColor="Black" HorizontalAlign="Center" /> 78
<HeaderStyle BackColor="#000084" Font-Bold="True" ForeColor="White" HorizontalAlign="Center" /> 79
<AlternatingRowStyle BackColor="#DCDCDC" /> 80
</asp:GridView> 81
</asp:Panel> 82
</td> 83
</tr> 84
</table> 85
</asp:Content> 86
87




