Merge
This commit is contained in:
commit
d4cfe86e6c
2 changed files with 8 additions and 11 deletions
|
@ -10848,7 +10848,7 @@ SET @sqlSpace = '
|
||||||
SI.ItemID as ItemID,
|
SI.ItemID as ItemID,
|
||||||
SI.ItemName as TextSearch,
|
SI.ItemName as TextSearch,
|
||||||
STYPE.DisplayName as ColumnType,
|
STYPE.DisplayName as ColumnType,
|
||||||
SI.ItemName as FullType,
|
STYPE.DisplayName as FullType,
|
||||||
SI.PackageID as PackageID
|
SI.PackageID as PackageID
|
||||||
FROM @ItemsService AS I
|
FROM @ItemsService AS I
|
||||||
INNER JOIN ServiceItems AS SI ON I.ItemID = SI.ItemID
|
INNER JOIN ServiceItems AS SI ON I.ItemID = SI.ItemID
|
||||||
|
|
|
@ -61,8 +61,6 @@ namespace WebsitePanel.WebPortal
|
||||||
for (int i = 0; i < dt.Rows.Count; ++i)
|
for (int i = 0; i < dt.Rows.Count; ++i)
|
||||||
{
|
{
|
||||||
DataRow row = dt.Rows[i];
|
DataRow row = dt.Rows[i];
|
||||||
if ((fullType == null) || (fullType.Length == 0) || (fullType == row["FullType"].ToString()))
|
|
||||||
{
|
|
||||||
Dictionary<string, string> obj = new Dictionary<string, string>();
|
Dictionary<string, string> obj = new Dictionary<string, string>();
|
||||||
obj["ColumnType"] = row["ColumnType"].ToString();
|
obj["ColumnType"] = row["ColumnType"].ToString();
|
||||||
obj["TextSearch"] = row["TextSearch"].ToString();
|
obj["TextSearch"] = row["TextSearch"].ToString();
|
||||||
|
@ -71,7 +69,6 @@ namespace WebsitePanel.WebPortal
|
||||||
obj["FullType"] = row["FullType"].ToString();
|
obj["FullType"] = row["FullType"].ToString();
|
||||||
dataList.Add(obj);
|
dataList.Add(obj);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
var jsonSerialiser = new JavaScriptSerializer();
|
var jsonSerialiser = new JavaScriptSerializer();
|
||||||
var json = jsonSerialiser.Serialize(dataList);
|
var json = jsonSerialiser.Serialize(dataList);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue