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

1<%--文件名:TraceForm.aspx--%> 2
<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="TraceForm.aspx.cs" Inherits="ContractManage_TraceForm" 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="139px">%%</asp:TextBox> 11
<asp:Button ID="Button1" runat="server" Text="查询" Width="100px" /> 12
<asp:Button ID="Button2" runat="server" OnClick="Button2_Click" Text="新增" Width="100px" /> 13
<asp:Button ID="Button3" runat="server" OnClick="Button3_Click" Text="修改" Width="100px" /> 14
</td> 15
</tr> 16
<tr> 17
<td align="left" style="font-size: 0.8em; width: 2232px; font-family: 宋体; height: 141px; 18
background-color: palegoldenrod" valign="top"> 19
经办人员:<asp:DropDownList ID="DropDownList1" runat="server" Width="62px"> 20
</asp:DropDownList> 21
资料类型:<asp:DropDownList ID="DropDownList2" runat="server" Width="73px"> 22
<asp:ListItem>出售房源</asp:ListItem> 23
<asp:ListItem>出租房源</asp:ListItem> 24
<asp:ListItem>求购客源</asp:ListItem> 25
<asp:ListItem>求租客源</asp:ListItem> 26
</asp:DropDownList> 27
资料编号:<asp:TextBox ID="TextBox6" runat="server" Width="61px"></asp:TextBox> 28
跟进日期:<asp:TextBox ID="TextBox7" runat="server" Width="52px">2007-5-1</asp:TextBox><br /> 29
跟进方式:<asp:DropDownList ID="DropDownList3" runat="server" Width="73px"> 30
</asp:DropDownList> 补充说明:<asp:TextBox ID="TextBox10" runat="server" Width="215px">暂无</asp:TextBox> 31
自编号:<asp:TextBox ID="TextBox4" runat="server" BackColor="#E0E0E0" ReadOnly="True" 32
Width="38px"></asp:TextBox><br /> 33
跟进内容:<asp:TextBox ID="TextBox9" runat="server" Height="84px" TextMode="MultiLine" 34
Width="470px"></asp:TextBox></td> 35
</tr> 36
<tr> 37
<td style="width: 2232px; height: 50px; background-color: gainsboro"> 38
<asp:Panel ID="Panel1" runat="server" Height="150px" ScrollBars="Auto" Width="553px"> 39
<asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:MyHouseDBConnectionString %>" 40
DeleteCommand="DELETE FROM [经纪跟进] WHERE [自编号] = @自编号" InsertCommand="INSERT INTO [经纪跟进] ([经办人员], [资料类型], [资料编号], [跟进日期], [跟进方式], [跟进内容], [补充说明]) VALUES (@经办人员, @资料类型, @资料编号, @跟进日期, @跟进方式, @跟进内容, @补充说明)" 41
SelectCommand="SELECT * FROM [经纪跟进] WHERE (([资料编号] LIKE '%' + @资料编号 + '%') AND ([经办人员] LIKE '%' + @经办人员 + '%') AND ([资料类型] LIKE '%' + @资料类型 + '%'))" 42
UpdateCommand="UPDATE [经纪跟进] SET [经办人员] = @经办人员, [资料类型] = @资料类型, [资料编号] = @资料编号, [跟进日期] = @跟进日期, [跟进方式] = @跟进方式, [跟进内容] = @跟进内容, [补充说明] = @补充说明 WHERE [自编号] = @自编号"> 43
<DeleteParameters> 44
<asp:Parameter Name="自编号" Type="Int32" /> 45
</DeleteParameters> 46
<UpdateParameters> 47
<asp:ControlParameter ControlID="DropDownList1" Name="经办人员" PropertyName="SelectedValue" 48
Type="String" /> 49
<asp:ControlParameter ControlID="DropDownList2" Name="资料类型" PropertyName="SelectedValue" 50
Type="String" /> 51
<asp:ControlParameter ControlID="TextBox6" Name="资料编号" PropertyName="Text" Type="String" /> 52
<asp:ControlParameter ControlID="TextBox7" Name="跟进日期" PropertyName="Text" Type="DateTime" /> 53
<asp:ControlParameter ControlID="DropDownList3" Name="跟进方式" PropertyName="SelectedValue" 54
Type="String" /> 55
<asp:ControlParameter ControlID="TextBox9" Name="跟进内容" PropertyName="Text" Type="String" /> 56
<asp:ControlParameter ControlID="TextBox10" Name="补充说明" PropertyName="Text" Type="String" /> 57
<asp:ControlParameter ControlID="TextBox4" Name="自编号" PropertyName="Text" Type="Int32" /> 58
</UpdateParameters> 59
<SelectParameters> 60
<asp:ControlParameter ControlID="TextBox2" Name="资料编号" PropertyName="Text" Type="String" /> 61
<asp:ControlParameter ControlID="TextBox3" Name="经办人员" PropertyName="Text" Type="String" /> 62
<asp:ControlParameter ControlID="TextBox1" Name="资料类型" PropertyName="Text" Type="String" /> 63
</SelectParameters> 64
<InsertParameters> 65
<asp:ControlParameter ControlID="DropDownList1" Name="经办人员" PropertyName="SelectedValue" 66
Type="String" /> 67
<asp:ControlParameter ControlID="DropDownList2" Name="资料类型" PropertyName="SelectedValue" 68
Type="String" /> 69
<asp:ControlParameter ControlID="TextBox6" Name="资料编号" PropertyName="Text" Type="String" /> 70
<asp:ControlParameter ControlID="TextBox7" Name="跟进日期" PropertyName="Text" Type="DateTime" /> 71
<asp:ControlParameter ControlID="DropDownList3" Name="跟进方式" PropertyName="SelectedValue" 72
Type="String" /> 73
<asp:ControlParameter ControlID="TextBox9" Name="跟进内容" PropertyName="Text" Type="String" /> 74
<asp:ControlParameter ControlID="TextBox10" Name="补充说明" PropertyName="Text" Type="String" /> 75
</InsertParameters> 76
</asp:SqlDataSource> 77
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" BackColor="White" 78
BorderColor="#999999" BorderStyle="None" BorderWidth="1px" CellPadding="3" DataKeyNames="自编号" 79
DataSourceID="SqlDataSource1" Font-Names="宋体" Font-Size="Small" GridLines="Vertical" 80
OnRowCreated="GridView1_RowCreated" OnSelectedIndexChanged="GridView1_SelectedIndexChanged" 81
Width="1500px"> 82
<FooterStyle BackColor="#CCCCCC" ForeColor="Black" /> 83
<Columns> 84
<asp:CommandField ButtonType="Button" HeaderText="选择" ShowSelectButton="True" /> 85
<asp:TemplateField HeaderText="删除" ShowHeader="False"> 86
<ItemTemplate> 87
<asp:Button ID="Button1" runat="server" CausesValidation="False" CommandName="Delete" 88
Text="删除" /> 89
</ItemTemplate> 90
</asp:TemplateField> 91
<asp:BoundField DataField="自编号" HeaderText="自编号" InsertVisible="False" ReadOnly="True" 92
SortExpression="自编号" /> 93
<asp:BoundField DataField="经办人员" HeaderText="经办人员" SortExpression="经办人员" /> 94
<asp:BoundField DataField="资料类型" HeaderText="资料类型" SortExpression="资料类型" /> 95
<asp:BoundField DataField="资料编号" HeaderText="资料编号" SortExpression="资料编号" /> 96
<asp:BoundField DataField="跟进日期" HeaderText="跟进日期" SortExpression="跟进日期" /> 97
<asp:BoundField DataField="跟进方式" HeaderText="跟进方式" SortExpression="跟进方式" /> 98
<asp:BoundField DataField="跟进内容" HeaderText="跟进内容" SortExpression="跟进内容" /> 99
<asp:BoundField DataField="补充说明" HeaderText="补充说明" SortExpression="补充说明" /> 100
</Columns> 101
<RowStyle BackColor="#EEEEEE" ForeColor="Black" /> 102
<SelectedRowStyle BackColor="#008A8C" Font-Bold="True" ForeColor="White" /> 103
<PagerStyle BackColor="#999999" ForeColor="Black" HorizontalAlign="Center" /> 104
<HeaderStyle BackColor="#000084" Font-Bold="True" ForeColor="White" HorizontalAlign="Center" /> 105
<AlternatingRowStyle BackColor="#DCDCDC" /> 106
</asp:GridView> 107
</asp:Panel> 108
</td> 109
</tr> 110
</table> 111
</asp:Content> 112
113




