⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 computeform.aspx

📁 某纸业公司的固定资产管理系统
💻 ASPX
字号:
<%--文件名:ComputeForm.aspx--%>
<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="ComputeForm.aspx.cs" Inherits="DepreciationManage_ComputeForm" 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">
                &nbsp; 折旧年份:<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>&nbsp;<asp:Button ID="Button3" runat="server" Text="查询" Width="64px" />
                <asp:Button ID="Button1" runat="server" OnClick="Button1_Click"
                    Text="导入折旧数据" Width="106px" />
                <asp:Button ID="Button2" runat="server" OnClick="Button2_Click" Text="转入累计折旧" Width="106px" />
                </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 %>"
                        DeleteCommand="DELETE FROM [折旧核算表] WHERE [自编号] = @自编号" 
                        SelectCommand="SELECT [资产编号], [资产名称], [月度折旧额], [补充说明], [自编号], [使用部门], [所属类别], [资产原值], [累计折旧], [折旧方法], [折旧月数], [已提月数], [预计净残值], [折旧年份], [折旧月份] FROM [折旧核算表] WHERE (([折旧年份] = @折旧年份) AND ([折旧月份] = @折旧月份))"
                        UpdateCommand="UPDATE [折旧核算表] SET [月度折旧额] = @月度折旧额, [补充说明] = @补充说明 WHERE [自编号] = @自编号">
                        <DeleteParameters>
                            <asp:Parameter Name="自编号" Type="Int32" />
                        </DeleteParameters>
                        <UpdateParameters>
                            <asp:Parameter Name="月度折旧额" Type="Double" />
                            <asp:Parameter Name="补充说明" Type="String" />
                            <asp:Parameter Name="自编号" Type="Int32" />
                        </UpdateParameters>
                        <SelectParameters>
                            <asp:ControlParameter ControlID="DropDownList1" Name="折旧年份" PropertyName="SelectedValue"
                                Type="Int32" />
                            <asp:ControlParameter ControlID="DropDownList2" Name="折旧月份" PropertyName="SelectedValue"
                                Type="Int32" />
                        </SelectParameters>
                    </asp:SqlDataSource>
                    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" BackColor="White"
                        BorderColor="#999999" BorderStyle="None" BorderWidth="1px" CellPadding="3" DataKeyNames="自编号"
                        DataSourceID="SqlDataSource1" Font-Names="宋体" Font-Size="Small" GridLines="Vertical"
                        OnRowCreated="GridView1_RowCreated" Width="1200px" AllowSorting="True">
                        <FooterStyle BackColor="#CCCCCC" ForeColor="Black" />
                        <Columns>
                            <asp:CommandField ButtonType="Button" HeaderText="编辑" ShowEditButton="True" />
                            <asp:TemplateField HeaderText="删除" ShowHeader="False">
                                <ItemTemplate>
                                    <asp:Button ID="Button1" runat="server" CausesValidation="False" CommandName="Delete"
                                        Text="删除" />
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:BoundField DataField="资产编号" HeaderText="资产编号" SortExpression="资产编号" ReadOnly="True" />
                            <asp:BoundField DataField="资产名称" HeaderText="资产名称" SortExpression="资产名称" ReadOnly="True" />
                            <asp:BoundField DataField="月度折旧额" HeaderText="月度折旧额" SortExpression="月度折旧额" />
                            <asp:BoundField DataField="补充说明" HeaderText="补充说明" SortExpression="补充说明" />
                            <asp:BoundField DataField="自编号" HeaderText="自编号" InsertVisible="False" ReadOnly="True"
                                SortExpression="自编号" />
                            <asp:BoundField DataField="使用部门" HeaderText="使用部门" SortExpression="使用部门" ReadOnly="True" />
                            <asp:BoundField DataField="所属类别" HeaderText="所属类别" SortExpression="所属类别" ReadOnly="True" />
                            <asp:BoundField DataField="资产原值" HeaderText="资产原值" SortExpression="资产原值" ReadOnly="True" />
                            <asp:BoundField DataField="累计折旧" HeaderText="累计折旧" SortExpression="累计折旧" ReadOnly="True" />
                            <asp:BoundField DataField="折旧方法" HeaderText="折旧方法" SortExpression="折旧方法" ReadOnly="True" />
                            <asp:BoundField DataField="折旧月数" HeaderText="折旧月数" SortExpression="折旧月数" ReadOnly="True" />
                            <asp:BoundField DataField="已提月数" HeaderText="已提月数" SortExpression="已提月数" ReadOnly="True" />
                            <asp:BoundField DataField="预计净残值" HeaderText="预计净残值" SortExpression="预计净残值" ReadOnly="True" />
                            <asp:BoundField DataField="折旧年份" HeaderText="折旧年份" SortExpression="折旧年份" ReadOnly="True" />
                            <asp:BoundField DataField="折旧月份" HeaderText="折旧月份" SortExpression="折旧月份" ReadOnly="True" />
                        </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="Gainsboro" />
                    </asp:GridView>
                </asp:Panel>
            </td>
        </tr>
    </table>
</asp:Content>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -