-
Notifications
You must be signed in to change notification settings - Fork 0
/
TravelLocal.aspx.cs
104 lines (94 loc) · 2.59 KB
/
TravelLocal.aspx.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
public partial class TravelLocal : TravelPage
{
protected void Page_Load(object sender, EventArgs e)
{
}
public System.Xml.XmlDocument _discountdatas;
public System.Xml.XmlDocument discountdatas
{
get
{
if (_discountdatas == null)
{
TravelData list = new TravelData();
//list.MaxDay = "30";
//list.MinDay = "0";
// list.MinPrice = "0";
list.MaxPrice = "1000";
list.Page = "1";
list.Pagenum = "8";
list.Type = "InterfaceInfoSendConditionTravelXmlI";
// Response.Write(list.XMLUrl);
_discountdatas = list.dataList;
}
return _discountdatas;
}
}
public string[] citys
{
get
{
string sql = "select city from city_info ";
HotelCloud.Data.ADOHelper help1 = new HotelCloud.Data.ADOHelper();
DataSet ds = help1.ExecuteGet(sql);
string[] city = new string[ds.Tables[0].Rows.Count];
for (int i = 0; i < ds.Tables[0].Rows.Count; i++)
{
city[i] = ds.Tables[0].Rows[i]["city"].ToString();
}
// string[] city = new string[] { "北京","上海","广州","深圳"};
return city;
}
}
public int picqty = 7;
public int itemqty = 9;
public int m;
public System.Xml.XmlDocument _chinadata;
public System.Xml.XmlDocument chinadata
{
get
{
if(_chinadata==null)
{
_chinadata =getFromToData(ThisCity, "川");
}
return _chinadata;
}
}
public System.Xml.XmlDocument _neardata;
public System.Xml.XmlDocument neardata
{
get
{
if(_neardata==null)
{
_neardata =getFromToData(ThisCity, ThisCity);
}
return _neardata;
}
}
public System.Xml.XmlDocument _hotdata;
public System.Xml.XmlDocument hotdata
{
get
{
if(_hotdata==null)
{
_hotdata =getFromToData(ThisCity, "");
}
return _hotdata;
}
}
}