📄 querydepreciationform.aspx
字号:
<%--文件名:QueryDepreciationForm.aspx--%>
<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="QueryDepreciationForm.aspx.cs" Inherits="DepreciationManage_QueryDepreciationForm" Title="当前位置:折旧管理->统计月度折旧" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<table style="width: 556px; height: 161px">
<tr>
<td align="left" style="font-size: 0.8em; width: 2232px; font-family: 宋体; height: 16px;
background-color: mediumturquoise">
年份:<asp:DropDownList ID="DropDownList1" runat="server">
<asp:ListItem>2006</asp:ListItem>
<asp:ListItem>2007</asp:ListItem>
<asp:ListItem>2008</asp:ListItem>
<asp:ListItem>2009</asp:ListItem>
<asp:ListItem>2010</asp:ListItem>
<asp:ListItem>2011</asp:ListItem>
<asp:ListItem>2012</asp:ListItem>
<asp:ListItem>2013</asp:ListItem>
<asp:ListItem>2014</asp:ListItem>
<asp:ListItem>2015</asp:ListItem>
<asp:ListItem>2016</asp:ListItem>
<asp:ListItem>2017</asp:ListItem>
<asp:ListItem>2018</asp:ListItem>
<asp:ListItem>2019</asp:ListItem>
<asp:ListItem>2020</asp:ListItem>
</asp:DropDownList>
月份:<asp:DropDownList ID="DropDownList2" runat="server">
<asp:ListItem>1</asp:ListItem>
<asp:ListItem>2</asp:ListItem>
<asp:ListItem>3</asp:ListItem>
<asp:ListItem>4</asp:ListItem>
<asp:ListItem>5</asp:ListItem>
<asp:ListItem>6</asp:ListItem>
<asp:ListItem>7</asp:ListItem>
<asp:ListItem>8</asp:ListItem>
<asp:ListItem>9</asp:ListItem>
<asp:ListItem>10</asp:ListItem>
<asp:ListItem>11</asp:ListItem>
<asp:ListItem>12</asp:ListItem>
</asp:DropDownList>
部门:<asp:DropDownList ID="DropDownList3" runat="server" DataSourceID="SqlDataSource1"
DataTextField="部门名称" DataValueField="部门名称" Width="82px">
</asp:DropDownList>
<asp:Button ID="Button1" runat="server" Text="查询累计折旧" Width="100px" />
<asp:Button ID="Button2" runat="server" OnClick="Button2_Click" Text="打印累计折旧" Width="100px" />
</td>
</tr>
<tr>
<td style="width: 2232px; height: 100px; background-color: gainsboro">
<asp:Panel ID="Panel1" runat="server" Height="320px" ScrollBars="Auto" Width="553px">
<asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:MyAssetsDBConnectionString %>"
SelectCommand="SELECT * FROM [公司部门]"></asp:SqlDataSource>
<asp:SqlDataSource ID="SqlDataSource2" runat="server" ConnectionString="<%$ ConnectionStrings:MyAssetsDBConnectionString %>"
SelectCommand="SELECT [所属类别], [资产编号], [资产名称], [资产原值], [折旧方法], [月度折旧额] FROM [累计折旧查询视图] WHERE (([折旧年份] = @折旧年份) AND ([折旧月份] = @折旧月份) AND ([使用部门] = @使用部门))">
<SelectParameters>
<asp:ControlParameter ControlID="DropDownList1" Name="折旧年份" PropertyName="SelectedValue"
Type="Int32" />
<asp:ControlParameter ControlID="DropDownList2" Name="折旧月份" PropertyName="SelectedValue"
Type="Int32" />
<asp:ControlParameter ControlID="DropDownList3" Name="使用部门" PropertyName="SelectedValue"
Type="String" />
</SelectParameters>
</asp:SqlDataSource>
<asp:GridView ID="GridView1" runat="server" AllowSorting="True" AutoGenerateColumns="False"
BackColor="White" BorderColor="#999999" BorderStyle="None" BorderWidth="1px"
CellPadding="3" DataKeyNames="资产编号" DataSourceID="SqlDataSource2" Font-Names="宋体"
Font-Size="Small" GridLines="Vertical" Width="550px">
<FooterStyle BackColor="#CCCCCC" ForeColor="Black" />
<Columns>
<asp:BoundField DataField="所属类别" HeaderText="所属类别" SortExpression="所属类别" />
<asp:BoundField DataField="资产编号" HeaderText="资产编号" ReadOnly="True" SortExpression="资产编号" />
<asp:BoundField DataField="资产名称" HeaderText="资产名称" SortExpression="资产名称" />
<asp:BoundField DataField="资产原值" HeaderText="资产原值" SortExpression="资产原值" />
<asp:BoundField DataField="折旧方法" HeaderText="折旧方法" SortExpression="折旧方法" />
<asp:BoundField DataField="月度折旧额" HeaderText="月度折旧额" SortExpression="月度折旧额" />
</Columns>
<RowStyle BackColor="#EEEEEE" ForeColor="Black" />
<SelectedRowStyle BackColor="#008A8C" Font-Bold="True" ForeColor="White" />
<PagerStyle BackColor="#999999" ForeColor="Black" HorizontalAlign="Center" />
<HeaderStyle BackColor="#000084" Font-Bold="True" ForeColor="White" HorizontalAlign="Center" />
<AlternatingRowStyle BackColor="#DCDCDC" />
</asp:GridView>
</asp:Panel>
</td>
</tr>
</table>
</asp:Content>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -