This commit is contained in:
@@ -51,7 +51,7 @@ namespace AyaNova.KPI
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
System.Text.StringBuilder sbData = new System.Text.StringBuilder();
|
JArray jData = new JArray();
|
||||||
string sMeta = string.Empty;
|
string sMeta = string.Empty;
|
||||||
|
|
||||||
#if (DEBUG && AYSHOWKPIQUERYINFO)
|
#if (DEBUG && AYSHOWKPIQUERYINFO)
|
||||||
@@ -82,7 +82,7 @@ namespace AyaNova.KPI
|
|||||||
{
|
{
|
||||||
//only one column and it's the zeroth json string column
|
//only one column and it's the zeroth json string column
|
||||||
if (!dr.IsDBNull(0))
|
if (!dr.IsDBNull(0))
|
||||||
sbData.Append(dr.GetString(0));
|
jData.Add(JObject.Parse(dr.GetString(0)));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -135,8 +135,8 @@ namespace AyaNova.KPI
|
|||||||
|
|
||||||
return JObject.FromObject(new
|
return JObject.FromObject(new
|
||||||
{
|
{
|
||||||
meta = sMeta,
|
meta = JObject.Parse(sMeta),
|
||||||
data = sbData
|
data = jData
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,8 +1,4 @@
|
|||||||
using System.Collections.Generic;
|
|
||||||
using Newtonsoft.Json.Linq;
|
|
||||||
using AyaNova.Biz;
|
using AyaNova.Biz;
|
||||||
using System.Linq;
|
|
||||||
using System;
|
|
||||||
|
|
||||||
namespace AyaNova.KPI
|
namespace AyaNova.KPI
|
||||||
{
|
{
|
||||||
@@ -12,7 +8,7 @@ namespace AyaNova.KPI
|
|||||||
private string _dataQuery = null;
|
private string _dataQuery = null;
|
||||||
private string _errorMessage = null;
|
private string _errorMessage = null;
|
||||||
|
|
||||||
public AuthorizationRoles AllowedRoles { get => BizRoles.GetRoleSet(AyaType.WorkOrderItemLabor).ReadFullRecord; }
|
public AuthorizationRoles AllowedRoles { get => AuthorizationRoles.Tech | AuthorizationRoles.TechRestricted; }
|
||||||
|
|
||||||
public string MetaQuery => _metaQuery;
|
public string MetaQuery => _metaQuery;
|
||||||
public string DataQuery => _dataQuery;
|
public string DataQuery => _dataQuery;
|
||||||
|
|||||||
Reference in New Issue
Block a user