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

📄 manageregisterform.aspx

📁 小区物业管理系统源代码,密码:123456,
💻 ASPX
字号:
<%--文件名:ManageRegisterForm.aspx--%>
<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="ManageRegisterForm.aspx.cs" Inherits="ChargeManage_ManageRegisterForm" 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" Width="56px">
                    <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" Width="39px">
                    <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="78px">
                </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" OnClick="Button2_Click" Text="登记" Width="83px" />&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 (登记标志='正在登记')"
                        UpdateCommand="UPDATE [物管费用] SET [计费单价] = @计费单价 WHERE [自动编号] = @自动编号">
                        <DeleteParameters>
                            <asp:Parameter Name="自动编号" Type="Int32" />
                        </DeleteParameters>
                        <UpdateParameters>
                            <asp:Parameter Name="计费单价" Type="Double" />
                        </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" />
                        </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="Double" />
                            <asp:Parameter Name="计费年份" Type="Int32" />
                            <asp:Parameter Name="计费月份" Type="Int32" />
                            <asp:Parameter Name="登记标志" Type="String" />
                            <asp:Parameter Name="业主编号" Type="String" />
                        </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="1000px">
                        <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="业主姓名" ReadOnly="True" 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="登记标志" />
                            <asp:BoundField DataField="业主编号" HeaderText="业主编号" ReadOnly="True" SortExpression="业主编号" />
                            <asp:BoundField DataField="自动编号" HeaderText="自动编号" InsertVisible="False" 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 + -