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

📄 commonpropertyform.aspx

📁 小区物业管理系统源代码,密码:123456,
💻 ASPX
字号:
<%--文件名:CommonPropertyForm.aspx--%>
<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="CommonPropertyForm.aspx.cs" Inherits="BaseManage_CommonPropertyForm" 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: palegoldenrod">
                &nbsp;财产编号:<asp:TextBox ID="TextBox1" runat="server" Width="75px">HMA0001</asp:TextBox>
                财产名称:<asp:TextBox ID="TextBox2" runat="server" Width="156px">1号游泳池</asp:TextBox>
                规格型号:<asp:TextBox ID="TextBox3" runat="server" Width="83px">200平方米</asp:TextBox>&nbsp;<br />
                &nbsp;所属类别:<asp:TextBox ID="TextBox4" runat="server" Width="122px">建筑物</asp:TextBox>
                财产原值(元):<asp:TextBox ID="TextBox5" runat="server" Width="81px">200000</asp:TextBox>
                启用日期:<asp:TextBox ID="TextBox6" runat="server" Width="85px">2005-8-1</asp:TextBox><br />
                &nbsp;存放位置:<asp:TextBox ID="TextBox7" runat="server" Width="155px">中庭花园</asp:TextBox>
                当前状态:<asp:TextBox ID="TextBox8" runat="server" BackColor="White" Width="75px">正在使用</asp:TextBox>
                保管人员:<asp:TextBox ID="TextBox9" runat="server" Width="85px">武朝胜</asp:TextBox><br />
                &nbsp;补充说明:<asp:TextBox ID="TextBox10" runat="server" BackColor="White" Width="234px">暂无</asp:TextBox>&nbsp;
                <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" />
                <asp:Button ID="Button3" runat="server" OnClick="Button3_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 %>"
                        DeleteCommand="DELETE FROM [公共财产] WHERE [财产编号] = @财产编号" InsertCommand="INSERT INTO [公共财产] ([财产编号], [财产名称], [规格型号], [所属类别], [财产原值], [启用日期], [存放位置], [当前状态], [保管人员], [补充说明]) VALUES (@财产编号, @财产名称, @规格型号, @所属类别, @财产原值, @启用日期, @存放位置, @当前状态, @保管人员, @补充说明)"
                        SelectCommand="SELECT * FROM [公共财产]" 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="TextBox4" Name="所属类别" PropertyName="Text" Type="String" />
                            <asp:ControlParameter ControlID="TextBox5" Name="财产原值" PropertyName="Text" Type="Double" />
                            <asp:ControlParameter ControlID="TextBox6" Name="启用日期" PropertyName="Text" Type="DateTime" />
                            <asp:ControlParameter ControlID="TextBox7" Name="存放位置" PropertyName="Text" Type="String" />
                            <asp:ControlParameter ControlID="TextBox8" Name="当前状态" PropertyName="Text" Type="String" />
                            <asp:ControlParameter ControlID="TextBox9" Name="保管人员" PropertyName="Text" Type="String" />
                            <asp:ControlParameter ControlID="TextBox10" Name="补充说明" PropertyName="Text" Type="String" />
                            <asp:ControlParameter ControlID="TextBox1" Name="财产编号" PropertyName="Text" Type="String" />
                        </UpdateParameters>
                        <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="TextBox4" Name="所属类别" PropertyName="Text" Type="String" />
                            <asp:ControlParameter ControlID="TextBox5" Name="财产原值" PropertyName="Text" Type="Double" />
                            <asp:ControlParameter ControlID="TextBox6" Name="启用日期" PropertyName="Text" Type="DateTime" />
                            <asp:ControlParameter ControlID="TextBox7" Name="存放位置" PropertyName="Text" Type="String" />
                            <asp:ControlParameter ControlID="TextBox8" Name="当前状态" PropertyName="Text" Type="String" />
                            <asp:ControlParameter ControlID="TextBox9" Name="保管人员" PropertyName="Text" Type="String" />
                            <asp:ControlParameter ControlID="TextBox10" Name="补充说明" PropertyName="Text" Type="String" />
                        </InsertParameters>
                    </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" OnSelectedIndexChanged="GridView1_SelectedIndexChanged"
                        Width="1000px">
                        <FooterStyle BackColor="#CCCCCC" 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="补充说明" />
                        </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 + -