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

📄 commonrepairform.aspx

📁 小区物业管理系统源代码,密码:123456,
💻 ASPX
字号:
<%--文件名:CommonRepairForm.aspx--%>
<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="CommonRepairForm.aspx.cs" Inherits="CommunityManage_CommonRepairForm" 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="TextBox1" runat="server" Width="263px">%%</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="TextBox2" runat="server" Width="137px">HMGGWX</asp:TextBox>
                财产名称:<asp:DropDownList ID="DropDownList1" runat="server" DataSourceID="SqlDataSource1"
                    DataTextField="财产名称" DataValueField="财产编号" Width="122px">
                </asp:DropDownList>
                报修日期:<asp:TextBox ID="TextBox3" runat="server" Width="64px">2006-1-15</asp:TextBox><br />
                &nbsp;报修人员:<asp:TextBox ID="TextBox4" runat="server" Width="75px">X</asp:TextBox>
                故障现象:<asp:TextBox ID="TextBox5" runat="server" Width="320px">X</asp:TextBox><br />
                &nbsp;受理人员:<asp:TextBox ID="TextBox6" runat="server" Width="75px">X</asp:TextBox>
                处理意见:<asp:TextBox ID="TextBox7" runat="server" Width="320px">X</asp:TextBox><br />
                &nbsp;修理日期:<asp:TextBox ID="TextBox8" runat="server" Width="75px">2006-1-16</asp:TextBox>
                修理人员:<asp:TextBox ID="TextBox9" runat="server" Width="91px">X</asp:TextBox>
                修理费用:<asp:TextBox ID="TextBox10" runat="server" Width="36px">0</asp:TextBox>
                材料费用:<asp:TextBox ID="TextBox11" runat="server" Width="36px">0</asp:TextBox><br />
                &nbsp;修理结果:<asp:TextBox ID="TextBox12" runat="server" Height="59px" TextMode="MultiLine"
                    Width="472px"></asp:TextBox><br />
                &nbsp;补充说明:<asp:TextBox ID="TextBox13" runat="server" Width="241px">暂无</asp:TextBox>&nbsp;<asp:Button
                    ID="Button1" runat="server" OnClick="Button1_Click" Text="新增" Width="70px" />
                <asp:Button ID="Button2" runat="server" OnClick="Button2_Click" Text="修改" Width="70px" />
                <asp:Button ID="Button4" runat="server" OnClick="Button4_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 * FROM [公共财产] WHERE 当前状态='正在使用'"></asp:SqlDataSource>
                    <asp:SqlDataSource ID="SqlDataSource2" 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="DropDownList1" Name="财产编号" PropertyName="SelectedValue"
                                Type="String" />
                            <asp:ControlParameter ControlID="DropDownList1" Name="财产名称" PropertyName="SelectedItem.Text"
                                Type="String" />
                            <asp:ControlParameter ControlID="TextBox3" Name="报修日期" PropertyName="Text" Type="DateTime" />
                            <asp:ControlParameter ControlID="TextBox4" Name="报修人员" PropertyName="Text" Type="String" />
                            <asp:ControlParameter ControlID="TextBox5" Name="故障现象" PropertyName="Text" Type="String" />
                            <asp:ControlParameter ControlID="TextBox6" Name="受理人员" PropertyName="Text" Type="String" />
                            <asp:ControlParameter ControlID="TextBox7" Name="处理意见" PropertyName="Text" Type="String" />
                            <asp:ControlParameter ControlID="TextBox8" Name="修理日期" PropertyName="Text" Type="DateTime" />
                            <asp:ControlParameter ControlID="TextBox9" Name="修理人员" PropertyName="Text" Type="String" />
                            <asp:ControlParameter ControlID="TextBox10" Name="修理费用" PropertyName="Text" Type="Double" />
                            <asp:ControlParameter ControlID="TextBox11" Name="材料费用" PropertyName="Text" Type="Double" />
                            <asp:ControlParameter ControlID="TextBox12" Name="修理结果" PropertyName="Text" Type="String" />
                            <asp:ControlParameter ControlID="TextBox13" Name="补充说明" PropertyName="Text" Type="String" />
                            <asp:ControlParameter ControlID="TextBox2" Name="维修编号" PropertyName="Text" Type="String" />
                        </UpdateParameters>
                        <InsertParameters>
                            <asp:ControlParameter ControlID="TextBox2" Name="维修编号" PropertyName="Text" Type="String" />
                            <asp:ControlParameter ControlID="DropDownList1" Name="财产编号" PropertyName="SelectedValue"
                                Type="String" />
                            <asp:ControlParameter ControlID="DropDownList1" Name="财产名称" PropertyName="SelectedItem.Text"
                                Type="String" />
                            <asp:ControlParameter ControlID="TextBox3" Name="报修日期" PropertyName="Text" Type="DateTime" />
                            <asp:ControlParameter ControlID="TextBox4" Name="报修人员" PropertyName="Text" Type="String" />
                            <asp:ControlParameter ControlID="TextBox5" Name="故障现象" PropertyName="Text" Type="String" />
                            <asp:ControlParameter ControlID="TextBox6" Name="受理人员" PropertyName="Text" Type="String" />
                            <asp:ControlParameter ControlID="TextBox7" Name="处理意见" PropertyName="Text" Type="String" />
                            <asp:ControlParameter ControlID="TextBox8" Name="修理日期" PropertyName="Text" Type="DateTime" />
                            <asp:ControlParameter ControlID="TextBox9" Name="修理人员" PropertyName="Text" Type="String" />
                            <asp:ControlParameter ControlID="TextBox10" Name="修理费用" PropertyName="Text" Type="Double" />
                            <asp:ControlParameter ControlID="TextBox11" Name="材料费用" PropertyName="Text" Type="Double" />
                            <asp:ControlParameter ControlID="TextBox12" Name="修理结果" PropertyName="Text" Type="String" />
                            <asp:ControlParameter ControlID="TextBox13" 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="2500px">
                        <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="#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 + -