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

📄 gasregisterform.aspx

📁 小区物业管理系统源代码,密码:123456,
💻 ASPX
字号:
<%--文件名:GasRegisterForm.aspx--%>
<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="GasRegisterForm.aspx.cs" Inherits="ChargeManage_GasRegisterForm" 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>
                费用类型:<asp:DropDownList ID="DropDownList3" runat="server" Width="78px">
                    <asp:ListItem>水费</asp:ListItem>
                    <asp:ListItem>电费</asp:ListItem>
                    <asp:ListItem>气费</asp:ListItem>
                </asp:DropDownList>
                楼栋名称:<asp:DropDownList ID="DropDownList4" runat="server" DataSourceID="SqlDataSource1"
                    DataTextField="楼栋名称" DataValueField="楼栋名称" Width="81px">
                </asp:DropDownList><br />
                &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;
                <asp:Button ID="Button3" runat="server" Text="查询"
                    Width="83px" />&nbsp;<asp:Button ID="Button1" runat="server" OnClick="Button1_Click"
                        Text="新增" Width="83px" />
                <asp:Button ID="Button2" runat="server" Text="登记" Width="83px" OnClick="Button2_Click" />&nbsp;
            </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:MyCommunityDBConnectionString %>"
                        SelectCommand="SELECT DISTINCT * FROM [楼栋信息]"></asp:SqlDataSource>
                    <asp:SqlDataSource ID="SqlDataSource2" runat="server" ConnectionString="<%$ ConnectionStrings:MyCommunityDBConnectionString %>"
                        DeleteCommand="DELETE FROM [水电气费] WHERE [自动编号] = @自动编号" InsertCommand="INSERT INTO [水电气费] ([业主姓名], [表编号], [表底数], [表止数], [计费单价], [费用类型], [计费年份], [计费月份], [业主编号], [楼栋名称], [自动编号]) VALUES (@业主姓名, @表编号, @表底数, @表止数, @计费单价, @费用类型, @计费年份, @计费月份, @业主编号, @楼栋名称, @自动编号)"
                        SelectCommand="SELECT [业主姓名], [表编号], [表底数], [表止数], [计费单价],[费用类型], [计费年份], [计费月份], [业主编号], [楼栋名称], [自动编号] FROM [水电气费] WHERE (([计费年份] = @计费年份) AND ([计费月份] = @计费月份) AND ([费用类型] = @费用类型) AND ([楼栋名称] = @楼栋名称))  AND (登记标志='正在登记')"
                        UpdateCommand="UPDATE [水电气费] SET [表编号] = @表编号, [表底数] = @表底数, [表止数] = @表止数, [计费单价] = @计费单价 WHERE [自动编号] = @自动编号">
                        <DeleteParameters>
                            <asp:Parameter Name="自动编号" Type="Int32" />
                        </DeleteParameters>
                        <UpdateParameters>
                            <asp:Parameter Name="表编号" Type="String" />
                            <asp:Parameter Name="表底数" Type="Double" />
                            <asp:Parameter Name="表止数" Type="Double" />
                            <asp:Parameter Name="计费单价" Type="Double" />
                            <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" />
                            <asp:ControlParameter ControlID="DropDownList3" Name="费用类型" PropertyName="SelectedValue"
                                Type="String" />
                            <asp:ControlParameter ControlID="DropDownList4" Name="楼栋名称" PropertyName="SelectedValue"
                                Type="String" />
                        </SelectParameters>
                        <InsertParameters>
                            <asp:Parameter Name="业主姓名" Type="String" />
                            <asp:Parameter Name="表编号" Type="String" />
                            <asp:Parameter Name="表底数" Type="Double" />
                            <asp:Parameter Name="表止数" Type="Double" />
                            <asp:Parameter Name="计费单价" Type="Double" />
                            <asp:Parameter Name="费用类型" Type="String" />
                            <asp:Parameter Name="计费年份" Type="Int32" />
                            <asp:Parameter Name="计费月份" Type="Int32" />
                            <asp:Parameter Name="业主编号" Type="String" />
                            <asp:Parameter Name="楼栋名称" Type="String" />
                            <asp:Parameter Name="自动编号" Type="Int32" />
                        </InsertParameters>
                    </asp:SqlDataSource>
                    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" BackColor="White"
                        BorderColor="White" BorderStyle="Ridge" BorderWidth="2px" CellPadding="3" CellSpacing="1"
                        DataKeyNames="自动编号" DataSourceID="SqlDataSource2" Font-Names="宋体" Font-Size="Small"
                        GridLines="None" Width="1100px">
                        <FooterStyle BackColor="#C6C3C6" 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="业主姓名" ReadOnly="True" SortExpression="业主姓名" />
                            <asp:BoundField DataField="表编号" HeaderText="表编号" SortExpression="表编号" />
                            <asp:BoundField DataField="表底数" HeaderText="表底数" SortExpression="表底数" />
                            <asp:BoundField DataField="表止数" HeaderText="表止数" SortExpression="表止数" />
                            <asp:BoundField DataField="计费单价" HeaderText="计费单价" SortExpression="计费单价" />
                            <asp:BoundField DataField="费用类型" HeaderText="费用类型" ReadOnly="True" SortExpression="费用类型" />
                            <asp:BoundField DataField="计费年份" HeaderText="计费年份" ReadOnly="True" SortExpression="计费年份" />
                            <asp:BoundField DataField="计费月份" HeaderText="计费月份" ReadOnly="True" SortExpression="计费月份" />
                            <asp:BoundField DataField="业主编号" HeaderText="业主编号" ReadOnly="True" SortExpression="业主编号" />
                            <asp:BoundField DataField="楼栋名称" HeaderText="楼栋名称" ReadOnly="True" SortExpression="楼栋名称" />
                            <asp:BoundField DataField="自动编号" HeaderText="自动编号" ReadOnly="True" SortExpression="自动编号" />
                        </Columns>
                        <RowStyle BackColor="#DEDFDE" ForeColor="Black" />
                        <SelectedRowStyle BackColor="#9471DE" Font-Bold="True" ForeColor="White" />
                        <PagerStyle BackColor="#C6C3C6" ForeColor="Black" HorizontalAlign="Right" />
                        <HeaderStyle BackColor="#4A3C8C" Font-Bold="True" ForeColor="#E7E7FF" HorizontalAlign="Center" />
                    </asp:GridView>
                </asp:Panel>
            </td>
        </tr>
    </table>
</asp:Content>

⌨️ 快捷键说明

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