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

📄 advertisementform.aspx

📁 一个房屋中介系统的源码
💻 ASPX
字号:
<%--文件名:AdvertisementForm.aspx--%>
<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="AdvertisementForm.aspx.cs" Inherits="ContractManage_AdvertisementForm" 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: darkturquoise">
                &nbsp;请输入需要查询发布广告的资料类型:<asp:TextBox ID="TextBox1" runat="server" Width="121px">%%</asp:TextBox>
                资料编号:<asp:TextBox ID="TextBox2" runat="server" Width="113px">%%</asp:TextBox><br />
                &nbsp;经办人员:<asp:TextBox ID="TextBox3" runat="server" Width="139px">%%</asp:TextBox>&nbsp;
                <asp:Button ID="Button1" runat="server" Text="查询" Width="100px" />
                <asp:Button ID="Button2" runat="server" OnClick="Button2_Click" Text="新增" Width="100px" />
                <asp:Button ID="Button3" runat="server" OnClick="Button3_Click" Text="修改" Width="100px" />
            </td>
        </tr>
        <tr>
            <td align="left" style="font-size: 0.8em; width: 2232px; font-family: 宋体; height: 141px;
                background-color: palegoldenrod" valign="top">
                &nbsp;经办人员:<asp:DropDownList ID="DropDownList1" runat="server" Width="62px">
                </asp:DropDownList>
                资料类型:<asp:DropDownList ID="DropDownList2" runat="server" Width="73px">
                    <asp:ListItem>出售房源</asp:ListItem>
                    <asp:ListItem>出租房源</asp:ListItem>
                    <asp:ListItem>求购客源</asp:ListItem>
                    <asp:ListItem>求租客源</asp:ListItem>
                </asp:DropDownList>
                资料编号:<asp:TextBox ID="TextBox6" runat="server" Width="61px"></asp:TextBox>
                媒体名称:<asp:TextBox ID="TextBox7" runat="server" Width="52px"></asp:TextBox><br />
                &nbsp;发布期号:<asp:TextBox ID="TextBox8" runat="server" Width="54px"></asp:TextBox>
                发布日期:<asp:TextBox ID="TextBox9" runat="server" Width="62px">2007-4-10</asp:TextBox>
                截止日期:<asp:TextBox ID="TextBox10" runat="server" Width="59px">2007-4-17</asp:TextBox>
                广告价格(元):<asp:TextBox ID="TextBox11" runat="server" Width="35px"></asp:TextBox><br />
                &nbsp;广告描述:<asp:TextBox ID="TextBox12" runat="server" Height="61px" TextMode="MultiLine"
                    Width="470px">暂无</asp:TextBox><br />
                &nbsp;补充说明:<asp:TextBox ID="TextBox13" runat="server" Width="366px">暂无</asp:TextBox>
                自编号:<asp:TextBox ID="TextBox4" runat="server" Width="38px" BackColor="#E0E0E0" ReadOnly="True"></asp:TextBox></td>
        </tr>
        <tr>
            <td style="width: 2232px; height: 50px; background-color: gainsboro">
                <asp:Panel ID="Panel1" runat="server" Height="150px" ScrollBars="Auto" Width="553px">
                    <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:MyHouseDBConnectionString %>"
                        DeleteCommand="DELETE FROM [广告发布] WHERE [自编号] = @自编号" InsertCommand="INSERT INTO [广告发布] ([经办人员], [资料类型], [资料编号], [发布媒体], [媒体期号], [发布日期], [截止日期], [广告价格], [广告描述], [补充说明]) VALUES (@经办人员, @资料类型, @资料编号, @发布媒体, @媒体期号, @发布日期, @截止日期, @广告价格, @广告描述, @补充说明)"
                        SelectCommand="SELECT * FROM [广告发布] WHERE (([资料类型] LIKE '%' + @资料类型 + '%') AND ([资料编号] LIKE '%' + @资料编号 + '%') AND ([经办人员] LIKE '%' + @经办人员 + '%'))"
                        UpdateCommand="UPDATE [广告发布] SET [经办人员] = @经办人员, [资料类型] = @资料类型, [资料编号] = @资料编号, [发布媒体] = @发布媒体, [媒体期号] = @媒体期号, [发布日期] = @发布日期, [截止日期] = @截止日期, [广告价格] = @广告价格, [广告描述] = @广告描述, [补充说明] = @补充说明 WHERE [自编号] = @自编号">
                        <DeleteParameters>
                            <asp:Parameter Name="自编号" Type="Int32" />
                        </DeleteParameters>
                        <UpdateParameters>
                            <asp:ControlParameter ControlID="DropDownList1" Name="经办人员" PropertyName="SelectedValue"
                                Type="String" />
                            <asp:ControlParameter ControlID="DropDownList2" Name="资料类型" PropertyName="SelectedValue"
                                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="String" />
                            <asp:ControlParameter ControlID="TextBox9" Name="发布日期" PropertyName="Text" Type="DateTime" />
                            <asp:ControlParameter ControlID="TextBox10" Name="截止日期" PropertyName="Text" Type="DateTime" />
                            <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="TextBox4" Name="自编号" PropertyName="Text" Type="Int32" />
                        </UpdateParameters>
                        <SelectParameters>
                            <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" />
                        </SelectParameters>
                        <InsertParameters>
                            <asp:ControlParameter ControlID="DropDownList1" Name="经办人员" PropertyName="SelectedValue"
                                Type="String" />
                            <asp:ControlParameter ControlID="DropDownList2" Name="资料类型" PropertyName="SelectedValue"
                                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="String" />
                            <asp:ControlParameter ControlID="TextBox9" Name="发布日期" PropertyName="Text" Type="DateTime" />
                            <asp:ControlParameter ControlID="TextBox10" Name="截止日期" PropertyName="Text" Type="DateTime" />
                            <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="#999999" BorderStyle="None" BorderWidth="1px" CellPadding="3" DataKeyNames="自编号"
                        DataSourceID="SqlDataSource1" Font-Names="宋体" Font-Size="Small" GridLines="Vertical"
                        OnRowCreated="GridView1_RowCreated" OnSelectedIndexChanged="GridView1_SelectedIndexChanged"
                        Width="1500px">
                        <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="自编号" InsertVisible="False" 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="补充说明" />
                        </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="#DCDCDC" />
                    </asp:GridView>
                </asp:Panel>
            </td>
        </tr>
    </table>
</asp:Content>

⌨️ 快捷键说明

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