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

📄 contractform.aspx

📁 一个房屋中介系统的源码
💻 ASPX
字号:
<%--文件名:ContractForm.aspx--%>
<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="ContractForm.aspx.cs" Inherits="ContractManage_ContractForm" 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="69px">%%</asp:TextBox>
                经办人员:<asp:TextBox ID="TextBox4" runat="server" Width="60px">%%</asp:TextBox>&nbsp;<asp:Button
                    ID="Button1" runat="server" Text="查询" Width="80px" />
                <asp:Button ID="Button2" runat="server" OnClick="Button2_Click" Text="新增" Width="80px" />
                <asp:Button ID="Button3" runat="server" OnClick="Button3_Click" Text="修改" Width="80px" />
            </td>
        </tr>
        <tr>
            <td align="left" style="font-size: 0.8em; width: 2232px; font-family: 宋体; height: 141px;
                background-color: palegoldenrod" valign="top">
                &nbsp;自编号:<asp:TextBox ID="TextBox20" runat="server" Width="28px" BackColor="#E0E0E0" ReadOnly="True"></asp:TextBox>
                经办人员:<asp:DropDownList ID="DropDownList1" runat="server" Width="64px">
                </asp:DropDownList>
                资料类型:<asp:DropDownList ID="DropDownList2" runat="server" Width="78px">
                    <asp:ListItem>出售房源</asp:ListItem>
                    <asp:ListItem>出租房源</asp:ListItem>
                    <asp:ListItem>求购客源</asp:ListItem>
                    <asp:ListItem>求租客源</asp:ListItem>
                </asp:DropDownList>
                资料编号:<asp:TextBox ID="TextBox7" runat="server" Width="90px"></asp:TextBox><br />
                &nbsp;合同编号:<asp:TextBox ID="TextBox8" runat="server" Width="137px"></asp:TextBox>
                成交日期:<asp:TextBox ID="TextBox9" runat="server" Width="60px">2007-5-1</asp:TextBox>
                成交金额(元):<asp:TextBox ID="TextBox10" runat="server" Width="88px"></asp:TextBox><br />
                &nbsp;付款方式:<asp:DropDownList ID="DropDownList3" runat="server" Width="114px">
                </asp:DropDownList>
                客户佣金(元):<asp:TextBox ID="TextBox12" runat="server" Width="80px"></asp:TextBox>
                业主佣金(元):<asp:TextBox ID="TextBox13" runat="server" Width="70px"></asp:TextBox>
                <br />
                &nbsp;客户姓名:<asp:TextBox ID="TextBox14" runat="server" Width="74px"></asp:TextBox>
                身份证号码:<asp:TextBox ID="TextBox15" runat="server" Width="136px"></asp:TextBox>
                联系电话:<asp:TextBox ID="TextBox16" runat="server" Width="90px"></asp:TextBox><br />
                &nbsp;电子邮箱:<asp:TextBox ID="TextBox17" runat="server" Width="95px"></asp:TextBox>
                合同文件名:<asp:TextBox ID="TextBox18" runat="server" Width="151px"></asp:TextBox>&nbsp;<asp:Button
                    ID="Button4" runat="server" OnClick="Button4_Click" Text="显示合同文件" Width="126px" /><br />
                &nbsp;补充说明:<asp:TextBox ID="TextBox19" runat="server" Width="470px">暂无</asp:TextBox><br />
                &nbsp;<asp:FileUpload ID="FileUpload1" runat="server" Width="408px" />&nbsp;<asp:Button
                    ID="btnUpload" runat="server" OnClick="btnUpload_Click" Text="上传合同文件" Width="127px" /></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 '%' + @合同编号 + '%') 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="TextBox8" Name="合同编号" PropertyName="Text" Type="String" />
                            <asp:ControlParameter ControlID="TextBox9" Name="成交日期" PropertyName="Text" Type="DateTime" />
                            <asp:ControlParameter ControlID="TextBox10" Name="成交金额" PropertyName="Text" Type="Double" />
                            <asp:ControlParameter ControlID="DropDownList3" Name="付款方式" PropertyName="SelectedValue"
                                Type="String" />
                            <asp:ControlParameter ControlID="TextBox12" Name="客户佣金" PropertyName="Text" Type="Double" />
                            <asp:ControlParameter ControlID="TextBox13" Name="业主佣金" PropertyName="Text" Type="Double" />
                            <asp:ControlParameter ControlID="TextBox14" Name="客户姓名" PropertyName="Text" Type="String" />
                            <asp:ControlParameter ControlID="TextBox15" Name="身份证号码" PropertyName="Text" Type="String" />
                            <asp:ControlParameter ControlID="TextBox16" Name="联系电话" PropertyName="Text" Type="String" />
                            <asp:ControlParameter ControlID="TextBox17" Name="电子邮箱" PropertyName="Text" Type="String" />
                            <asp:ControlParameter ControlID="TextBox18" Name="合同文件" PropertyName="Text" Type="String" />
                            <asp:ControlParameter ControlID="TextBox19" Name="补充说明" PropertyName="Text" Type="String" />
                            <asp:ControlParameter ControlID="TextBox20" 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" />
                            <asp:ControlParameter ControlID="TextBox4" 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="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="Double" />
                            <asp:ControlParameter ControlID="DropDownList3" Name="付款方式" PropertyName="SelectedValue"
                                Type="String" />
                            <asp:ControlParameter ControlID="TextBox12" Name="客户佣金" PropertyName="Text" Type="Double" />
                            <asp:ControlParameter ControlID="TextBox13" Name="业主佣金" PropertyName="Text" Type="Double" />
                            <asp:ControlParameter ControlID="TextBox14" Name="客户姓名" PropertyName="Text" Type="String" />
                            <asp:ControlParameter ControlID="TextBox15" Name="身份证号码" PropertyName="Text" Type="String" />
                            <asp:ControlParameter ControlID="TextBox16" Name="联系电话" PropertyName="Text" Type="String" />
                            <asp:ControlParameter ControlID="TextBox17" Name="电子邮箱" PropertyName="Text" Type="String" />
                            <asp:ControlParameter ControlID="TextBox18" Name="合同文件" PropertyName="Text" Type="String" />
                            <asp:ControlParameter ControlID="TextBox19" 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="2300px">
                        <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="客户姓名" />
                            <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 + -