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

📄 ownerform.aspx

📁 小区物业管理系统源代码,密码:123456,
💻 ASPX
字号:
<%--文件名:OwnerForm.aspx--%>
<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="OwnerForm.aspx.cs" Inherits="BaseManage_OwnerForm" Title="当前位置:基本管理->业主登记管理" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <table style="width: 558px; height: 1px">
        <tr>
            <td align="left" style="font-size: 0.8em; width: 584px; font-family: 宋体; height: 21px;
                background-color: darkturquoise">
                &nbsp;请输入需要查询的业主编号:<asp:TextBox ID="TextBox4" runat="server" Width="290px">%%</asp:TextBox>
                <asp:Button
                    ID="Button3" runat="server" Text="查询" Width="70px" /></td>
        </tr>
        <tr>
            <td align="left" style="font-size: 0.8em; width: 584px; font-family: 宋体; height: 21px;
                background-color: palegoldenrod">
                &nbsp;业主编号:<asp:TextBox ID="TextBox1" runat="server" Width="82px">X</asp:TextBox>
                业主姓名:<asp:TextBox ID="TextBox2" runat="server" Width="52px">X</asp:TextBox>
                身份证号码:<asp:TextBox ID="TextBox3" runat="server" Width="170px">X</asp:TextBox><br />
                &nbsp;楼栋名称:<asp:DropDownList ID="DropDownList1" runat="server" DataSourceID="SqlDataSource1"
                    DataTextField="楼栋名称" DataValueField="楼栋名称" Width="75px">
                </asp:DropDownList>
                单元名称:<asp:TextBox ID="TextBox5" runat="server" Width="45px">X</asp:TextBox>
                房号名称:<asp:TextBox ID="TextBox6" runat="server" Width="66px">X</asp:TextBox>
                房屋性质:<asp:DropDownList ID="DropDownList2" runat="server" Width="66px">
                    <asp:ListItem>住宅</asp:ListItem>
                    <asp:ListItem>商用</asp:ListItem>
                    <asp:ListItem>其他</asp:ListItem>
                </asp:DropDownList><br />
                &nbsp;房屋类型:<asp:TextBox ID="TextBox8" runat="server" Width="66px">X</asp:TextBox>
                建筑面积(m2):<asp:TextBox ID="TextBox9" runat="server" Width="25px">0</asp:TextBox>
                套内面积(m2):<asp:TextBox ID="TextBox10" runat="server" Width="22px">0</asp:TextBox>
                入住日期:<asp:TextBox ID="TextBox13" runat="server" Width="70px">2005-8-1</asp:TextBox>
                &nbsp;常住人员:<asp:TextBox ID="TextBox11" runat="server" Width="144px">X</asp:TextBox>
                联系电话:<asp:TextBox ID="TextBox12" runat="server" Width="110px">X</asp:TextBox>
                当前状态:<asp:DropDownList ID="DropDownList3" runat="server" Width="69px">
                    <asp:ListItem>已入住</asp:ListItem>
                    <asp:ListItem>未入住</asp:ListItem>
                    <asp:ListItem>其他</asp:ListItem>
                </asp:DropDownList><br />
                &nbsp;补充说明:<asp:TextBox ID="TextBox15" runat="server" Width="311px">暂无</asp:TextBox>
                <asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="新增" Width="70px" />&nbsp;<asp:Button
                    ID="Button2" runat="server" OnClick="Button2_Click" Text="修改" Width="70px" />
            </td>
        </tr>
        <tr>
            <td style="overflow: auto; width: 584px; height: 103px; background-color: gainsboro">
                <asp:Panel ID="Panel1" runat="server" Height="150px" ScrollBars="Auto" Width="555px">
                    <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:MyCommunityDBConnectionString %>"
                        SelectCommand="SELECT DISTINCT * FROM [楼栋信息]"></asp:SqlDataSource>
                    <asp:SqlDataSource ID="SqlDataSource2" runat="server" ConnectionString="<%$ ConnectionStrings:MyCommunityDBConnectionString %>"
                        SelectCommand="SELECT * FROM [业主信息] WHERE ([业主编号] LIKE '%' + @业主编号 + '%') AND (业主编号 NOT IN (SELECT 业主编号 FROM dbo.迁出信息))" DeleteCommand="DELETE FROM [业主信息] WHERE [业主编号] = @业主编号" InsertCommand="INSERT INTO [业主信息] ([业主编号], [业主姓名], [身份证号码], [楼栋名称], [单元名称], [房号名称], [房屋性质], [房屋类型], [建筑面积], [套内面积], [常住人员], [联系电话], [入住日期], [当前状态], [补充说明]) VALUES (@业主编号, @业主姓名, @身份证号码, @楼栋名称, @单元名称, @房号名称, @房屋性质, @房屋类型, @建筑面积, @套内面积, @常住人员, @联系电话, @入住日期, @当前状态, @补充说明)" UpdateCommand="UPDATE [业主信息] SET [业主姓名] = @业主姓名, [身份证号码] = @身份证号码, [楼栋名称] = @楼栋名称, [单元名称] = @单元名称, [房号名称] = @房号名称, [房屋性质] = @房屋性质, [房屋类型] = @房屋类型, [建筑面积] = @建筑面积, [套内面积] = @套内面积, [常住人员] = @常住人员, [联系电话] = @联系电话, [入住日期] = @入住日期, [当前状态] = @当前状态, [补充说明] = @补充说明 WHERE [业主编号] = @业主编号">
                        <DeleteParameters>
                            <asp:Parameter Name="业主编号" Type="String" />
                        </DeleteParameters>
                        <UpdateParameters>
                            <asp:ControlParameter ControlID="TextBox2" Name="业主姓名" PropertyName="Text" Type="String" />
                            <asp:ControlParameter ControlID="TextBox3" Name="身份证号码" PropertyName="Text" Type="String" />
                            <asp:ControlParameter ControlID="DropDownList1" Name="楼栋名称" PropertyName="SelectedValue"
                                Type="String" />
                            <asp:ControlParameter ControlID="TextBox5" Name="单元名称" PropertyName="Text" Type="String" />
                            <asp:ControlParameter ControlID="TextBox6" Name="房号名称" PropertyName="Text" Type="String" />
                            <asp:ControlParameter ControlID="DropDownList2" Name="房屋性质" PropertyName="SelectedValue"
                                Type="String" />
                            <asp:ControlParameter ControlID="TextBox8" Name="房屋类型" PropertyName="Text" Type="String" />
                            <asp:ControlParameter ControlID="TextBox9" Name="建筑面积" PropertyName="Text" Type="Double" />
                            <asp:ControlParameter ControlID="TextBox10" Name="套内面积" PropertyName="Text" Type="Double" />
                            <asp:ControlParameter ControlID="TextBox11" Name="常住人员" PropertyName="Text" Type="String" />
                            <asp:ControlParameter ControlID="TextBox12" Name="联系电话" PropertyName="Text" Type="String" />
                            <asp:ControlParameter ControlID="TextBox13" Name="入住日期" PropertyName="Text" Type="DateTime" />
                            <asp:ControlParameter ControlID="DropDownList3" Name="当前状态" PropertyName="SelectedValue"
                                Type="String" />
                            <asp:ControlParameter ControlID="TextBox15" Name="补充说明" PropertyName="Text" Type="String" />
                            <asp:ControlParameter ControlID="TextBox1" Name="业主编号" PropertyName="Text" Type="String" />
                        </UpdateParameters>
                        <SelectParameters>
                            <asp:ControlParameter ControlID="TextBox4" Name="业主编号" PropertyName="Text" Type="String" />
                        </SelectParameters>
                        <InsertParameters>
                            <asp:ControlParameter ControlID="TextBox1" Name="业主编号" PropertyName="Text" Type="String" />
                            <asp:ControlParameter ControlID="TextBox2" Name="业主姓名" PropertyName="Text" Type="String" />
                            <asp:ControlParameter ControlID="TextBox3" Name="身份证号码" PropertyName="Text" Type="String" />
                            <asp:ControlParameter ControlID="DropDownList1" Name="楼栋名称" PropertyName="SelectedValue"
                                Type="String" />
                            <asp:ControlParameter ControlID="TextBox5" Name="单元名称" PropertyName="Text" Type="String" />
                            <asp:ControlParameter ControlID="TextBox6" Name="房号名称" PropertyName="Text" Type="String" />
                            <asp:ControlParameter ControlID="DropDownList2" Name="房屋性质" PropertyName="SelectedValue"
                                Type="String" />
                            <asp:ControlParameter ControlID="TextBox8" Name="房屋类型" PropertyName="Text" Type="String" />
                            <asp:ControlParameter ControlID="TextBox9" Name="建筑面积" PropertyName="Text" Type="Double" />
                            <asp:ControlParameter ControlID="TextBox10" Name="套内面积" PropertyName="Text" Type="Double" />
                            <asp:ControlParameter ControlID="TextBox11" Name="常住人员" PropertyName="Text" Type="String" />
                            <asp:ControlParameter ControlID="TextBox12" Name="联系电话" PropertyName="Text" Type="String" />
                            <asp:ControlParameter ControlID="TextBox13" Name="入住日期" PropertyName="Text" Type="DateTime" />
                            <asp:ControlParameter ControlID="DropDownList3" Name="当前状态" PropertyName="SelectedValue"
                                Type="String" />
                            <asp:ControlParameter ControlID="TextBox15" Name="补充说明" PropertyName="Text" 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" OnRowCreated="GridView1_RowCreated" OnSelectedIndexChanged="GridView1_SelectedIndexChanged"
                        Width="1500px">
                        <FooterStyle BackColor="#C6C3C6" ForeColor="Black" />
                        <Columns>
                            <asp:CommandField ButtonType="Button" HeaderText="选择" ShowSelectButton="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="房号名称" 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="常住人员" SortExpression="常住人员" />
                            <asp:BoundField DataField="联系电话" HeaderText="联系电话" SortExpression="联系电话" />
                            <asp:BoundField DataField="入住日期" HeaderText="入住日期" SortExpression="入住日期" />
                            <asp:BoundField DataField="当前状态" HeaderText="当前状态" SortExpression="当前状态" />
                            <asp:BoundField DataField="补充说明" HeaderText="补充说明" SortExpression="补充说明" />
                        </Columns>
                        <RowStyle BackColor="#DEDFDE" ForeColor="Black" />
                        <SelectedRowStyle BackColor="#9471DE" Font-Bold="True" ForeColor="White" />
                        <PagerStyle BackColor="#C6C3C6" ForeColor="Black" HorizontalAlign="Right" />
                        <HeaderStyle BackColor="Navy" 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 + -