温馨提示:代码在线浏览功能只能做为源码浏览参考,不能展示项目的全部,如果想更进一步了解该代码请下载:Asp.net房产中介管理系统源码及常用文档
当前文件路径:HouseManage/ContractManage/ContractForm.aspx

1<%--文件名:ContractForm.aspx--%> 2
<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="ContractForm.aspx.cs" Inherits="ContractManage_ContractForm" Title="当前位置:成交管理->租售成交管理" %> 3
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server"> 4
<table style="width: 556px; height: 161px"> 5
<tr> 6
<td align="left" style="font-size: 0.8em; width: 2232px; font-family: 宋体; height: 16px; 7
background-color: darkturquoise"> 8
请输入需要查询成交合同的资料类型:<asp:TextBox ID="TextBox1" runat="server" Width="121px">%%</asp:TextBox> 9
资料编号:<asp:TextBox ID="TextBox2" runat="server" Width="113px">%%</asp:TextBox><br /> 10
合同编号:<asp:TextBox ID="TextBox3" runat="server" Width="69px">%%</asp:TextBox> 11
经办人员:<asp:TextBox ID="TextBox4" runat="server" Width="60px">%%</asp:TextBox> <asp:Button 12
ID="Button1" runat="server" Text="查询" Width="80px" /> 13
<asp:Button ID="Button2" runat="server" OnClick="Button2_Click" Text="新增" Width="80px" /> 14
<asp:Button ID="Button3" runat="server" OnClick="Button3_Click" Text="修改" Width="80px" /> 15
</td> 16
</tr> 17
<tr> 18
<td align="left" style="font-size: 0.8em; width: 2232px; font-family: 宋体; height: 141px; 19
background-color: palegoldenrod" valign="top"> 20
自编号:<asp:TextBox ID="TextBox20" runat="server" Width="28px" BackColor="#E0E0E0" ReadOnly="True"></asp:TextBox> 21
经办人员:<asp:DropDownList ID="DropDownList1" runat="server" Width="64px"> 22
</asp:DropDownList> 23
资料类型:<asp:DropDownList ID="DropDownList2" runat="server" Width="78px"> 24
<asp:ListItem>出售房源</asp:ListItem> 25
<asp:ListItem>出租房源</asp:ListItem> 26
<asp:ListItem>求购客源</asp:ListItem> 27
<asp:ListItem>求租客源</asp:ListItem> 28
</asp:DropDownList> 29
资料编号:<asp:TextBox ID="TextBox7" runat="server" Width="90px"></asp:TextBox><br /> 30
合同编号:<asp:TextBox ID="TextBox8" runat="server" Width="137px"></asp:TextBox> 31
成交日期:<asp:TextBox ID="TextBox9" runat="server" Width="60px">2007-5-1</asp:TextBox> 32
成交金额(元):<asp:TextBox ID="TextBox10" runat="server" Width="88px"></asp:TextBox><br /> 33
付款方式:<asp:DropDownList ID="DropDownList3" runat="server" Width="114px"> 34
</asp:DropDownList> 35
客户佣金(元):<asp:TextBox ID="TextBox12" runat="server" Width="80px"></asp:TextBox> 36
业主佣金(元):<asp:TextBox ID="TextBox13" runat="server" Width="70px"></asp:TextBox> 37
<br /> 38
客户姓名:<asp:TextBox ID="TextBox14" runat="server" Width="74px"></asp:TextBox> 39
身份证号码:<asp:TextBox ID="TextBox15" runat="server" Width="136px"></asp:TextBox> 40
联系电话:<asp:TextBox ID="TextBox16" runat="server" Width="90px"></asp:TextBox><br /> 41
电子邮箱:<asp:TextBox ID="TextBox17" runat="server" Width="95px"></asp:TextBox> 42
合同文件名:<asp:TextBox ID="TextBox18" runat="server" Width="151px"></asp:TextBox> <asp:Button 43
ID="Button4" runat="server" OnClick="Button4_Click" Text="显示合同文件" Width="126px" /><br /> 44
补充说明:<asp:TextBox ID="TextBox19" runat="server" Width="470px">暂无</asp:TextBox><br /> 45
<asp:FileUpload ID="FileUpload1" runat="server" Width="408px" /> <asp:Button 46
ID="btnUpload" runat="server" OnClick="btnUpload_Click" Text="上传合同文件" Width="127px" /></td> 47
</tr> 48
<tr> 49
<td style="width: 2232px; height: 50px; background-color: gainsboro"> 50
<asp:Panel ID="Panel1" runat="server" Height="150px" ScrollBars="Auto" Width="553px"> 51
<asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:MyHouseDBConnectionString %>" 52
DeleteCommand="DELETE FROM [租售成交] WHERE [自编号] = @自编号" InsertCommand="INSERT INTO [租售成交] ([经办人员], [资料类型], [资料编号], [合同编号], [成交日期], [成交金额], [付款方式], [客户佣金], [业主佣金], [客户姓名], [身份证号码], [联系电话], [电子邮箱], [合同文件], [补充说明]) VALUES (@经办人员, @资料类型, @资料编号, @合同编号, @成交日期, @成交金额, @付款方式, @客户佣金, @业主佣金, @客户姓名, @身份证号码, @联系电话, @电子邮箱, @合同文件, @补充说明)" 53
SelectCommand="SELECT * FROM [租售成交] WHERE (([资料类型] LIKE '%' + @资料类型 + '%') AND ([资料编号] LIKE '%' + @资料编号 + '%') AND ([合同编号] LIKE '%' + @合同编号 + '%') AND ([经办人员] LIKE '%' + @经办人员 + '%'))" 54
UpdateCommand="UPDATE [租售成交] SET [经办人员] = @经办人员, [合同编号] = @合同编号, [成交日期] = @成交日期, [成交金额] = @成交金额, [付款方式] = @付款方式, [客户佣金] = @客户佣金, [业主佣金] = @业主佣金, [客户姓名] = @客户姓名, [身份证号码] = @身份证号码, [联系电话] = @联系电话, [电子邮箱] = @电子邮箱, [合同文件] = @合同文件, [补充说明] = @补充说明 WHERE [自编号] = @自编号"> 55
<DeleteParameters> 56
<asp:Parameter Name="自编号" Type="Int32" /> 57
</DeleteParameters> 58
<UpdateParameters> 59
<asp:ControlParameter ControlID="DropDownList1" Name="经办人员" PropertyName="SelectedValue" 60
Type="String" /> 61
<asp:ControlParameter ControlID="TextBox8" Name="合同编号" PropertyName="Text" Type="String" /> 62
<asp:ControlParameter ControlID="TextBox9" Name="成交日期" PropertyName="Text" Type="DateTime" /> 63
<asp:ControlParameter ControlID="TextBox10" Name="成交金额" PropertyName="Text" Type="Double" /> 64
<asp:ControlParameter ControlID="DropDownList3" Name="付款方式" PropertyName="SelectedValue" 65
Type="String" /> 66
<asp:ControlParameter ControlID="TextBox12" Name="客户佣金" PropertyName="Text" Type="Double" /> 67
<asp:ControlParameter ControlID="TextBox13" Name="业主佣金" PropertyName="Text" Type="Double" /> 68
<asp:ControlParameter ControlID="TextBox14" Name="客户姓名" PropertyName="Text" Type="String" /> 69
<asp:ControlParameter ControlID="TextBox15" Name="身份证号码" PropertyName="Text" Type="String" /> 70
<asp:ControlParameter ControlID="TextBox16" Name="联系电话" PropertyName="Text" Type="String" /> 71
<asp:ControlParameter ControlID="TextBox17" Name="电子邮箱" PropertyName="Text" Type="String" /> 72
<asp:ControlParameter ControlID="TextBox18" Name="合同文件" PropertyName="Text" Type="String" /> 73
<asp:ControlParameter ControlID="TextBox19" Name="补充说明" PropertyName="Text" Type="String" /> 74
<asp:ControlParameter ControlID="TextBox20" Name="自编号" PropertyName="Text" Type="Int32" /> 75
</UpdateParameters> 76
<SelectParameters> 77
<asp:ControlParameter ControlID="TextBox1" Name="资料类型" PropertyName="Text" Type="String" /> 78
<asp:ControlParameter ControlID="TextBox2" Name="资料编号" PropertyName="Text" Type="String" /> 79
<asp:ControlParameter ControlID="TextBox3" Name="合同编号" PropertyName="Text" Type="String" /> 80
<asp:ControlParameter ControlID="TextBox4" Name="经办人员" PropertyName="Text" Type="String" /> 81
</SelectParameters> 82
<InsertParameters> 83
<asp:ControlParameter ControlID="DropDownList1" Name="经办人员" PropertyName="SelectedValue" 84
Type="String" /> 85
<asp:ControlParameter ControlID="DropDownList2" Name="资料类型" PropertyName="SelectedValue" 86
Type="String" /> 87
<asp:ControlParameter ControlID="TextBox7" Name="资料编号" PropertyName="Text" Type="String" /> 88
<asp:ControlParameter ControlID="TextBox8" Name="合同编号" PropertyName="Text" Type="String" /> 89
<asp:ControlParameter ControlID="TextBox9" Name="成交日期" PropertyName="Text" Type="DateTime" /> 90
<asp:ControlParameter ControlID="TextBox10" Name="成交金额" PropertyName="Text" Type="Double" /> 91
<asp:ControlParameter ControlID="DropDownList3" Name="付款方式" PropertyName="SelectedValue" 92
Type="String" /> 93
<asp:ControlParameter ControlID="TextBox12" Name="客户佣金" PropertyName="Text" Type="Double" /> 94
<asp:ControlParameter ControlID="TextBox13" Name="业主佣金" PropertyName="Text" Type="Double" /> 95
<asp:ControlParameter ControlID="TextBox14" Name="客户姓名" PropertyName="Text" Type="String" /> 96
<asp:ControlParameter ControlID="TextBox15" Name="身份证号码" PropertyName="Text" Type="String" /> 97
<asp:ControlParameter ControlID="TextBox16" Name="联系电话" PropertyName="Text" Type="String" /> 98
<asp:ControlParameter ControlID="TextBox17" Name="电子邮箱" PropertyName="Text" Type="String" /> 99
<asp:ControlParameter ControlID="TextBox18" Name="合同文件" PropertyName="Text" Type="String" /> 100
<asp:ControlParameter ControlID="TextBox19" Name="补充说明" PropertyName="Text" Type="String" /> 101
</InsertParameters> 102
</asp:SqlDataSource> 103
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" BackColor="White" 104
BorderColor="#999999" BorderStyle="None" BorderWidth="1px" CellPadding="3" DataKeyNames="自编号" 105
DataSourceID="SqlDataSource1" Font-Names="宋体" Font-Size="Small" GridLines="Vertical" 106
OnRowCreated="GridView1_RowCreated" OnSelectedIndexChanged="GridView1_SelectedIndexChanged" 107
Width="2300px"> 108
<FooterStyle BackColor="#CCCCCC" ForeColor="Black" /> 109
<Columns> 110
<asp:CommandField ButtonType="Button" HeaderText="选择" ShowSelectButton="True" /> 111
<asp:TemplateField HeaderText="删除" ShowHeader="False"> 112
<ItemTemplate> 113
<asp:Button ID="Button1" runat="server" CausesValidation="False" CommandName="Delete" 114
Text="删除" /> 115
</ItemTemplate> 116
</asp:TemplateField> 117
<asp:BoundField DataField="自编号" HeaderText="自编号" InsertVisible="False" ReadOnly="True" 118
SortExpression="自编号" /> 119
<asp:BoundField DataField="经办人员" HeaderText="经办人员" SortExpression="经办人员" /> 120
<asp:BoundField DataField="资料类型" HeaderText="资料类型" SortExpression="资料类型" /> 121
<asp:BoundField DataField="资料编号" HeaderText="资料编号" SortExpression="资料编号" /> 122
<asp:BoundField DataField="合同编号" HeaderText="合同编号" SortExpression="合同编号" /> 123
<asp:BoundField DataField="成交日期" HeaderText="成交日期" SortExpression="成交日期" /> 124
<asp:BoundField DataField="成交金额" HeaderText="成交金额" SortExpression="成交金额" /> 125
<asp:BoundField DataField="付款方式" HeaderText="付款方式" SortExpression="付款方式" /> 126
<asp:BoundField DataField="客户佣金" HeaderText="客户佣金" SortExpression="客户佣金" /> 127
<asp:BoundField DataField="业主佣金" HeaderText="业主佣金" SortExpression="业主佣金" /> 128
<asp:BoundField DataField="客户姓名" HeaderText="客户姓名" SortExpression="客户姓名" /> 129
<asp:BoundField DataField="身份证号码" HeaderText="身份证号码" SortExpression="身份证号码" /> 130
<asp:BoundField DataField="联系电话" HeaderText="联系电话" SortExpression="联系电话" /> 131
<asp:BoundField DataField="电子邮箱" HeaderText="电子邮箱" SortExpression="电子邮箱" /> 132
<asp:BoundField DataField="合同文件" HeaderText="合同文件" SortExpression="合同文件" /> 133
<asp:BoundField DataField="补充说明" HeaderText="补充说明" SortExpression="补充说明" /> 134
</Columns> 135
<RowStyle BackColor="#EEEEEE" ForeColor="Black" /> 136
<SelectedRowStyle BackColor="#008A8C" Font-Bold="True" ForeColor="White" /> 137
<PagerStyle BackColor="#999999" ForeColor="Black" HorizontalAlign="Center" /> 138
<HeaderStyle BackColor="#000084" Font-Bold="True" ForeColor="White" HorizontalAlign="Center" /> 139
<AlternatingRowStyle BackColor="#DCDCDC" /> 140
</asp:GridView> 141
</asp:Panel> 142
</td> 143
</tr> 144
</table> 145
</asp:Content> 146
147




