This commit is contained in:
2021-07-09 22:56:42 +00:00
parent 28393ba641
commit 3f036c1bda
2 changed files with 47 additions and 7 deletions

View File

@@ -511,12 +511,11 @@ namespace AyaNova.DataList
//ClientCriteria format for this list is "OBJECTID,AYATYPE"
var crit = (clientCriteria ?? "").Split(',').Select(z => z.Trim()).ToArray();
if (crit.Length > 1)
{
//will be filtered from different types, show all workorders from Customer, Project and nothing else at this time (others but for sub lists like workorderitemunits etc)
{
int nType = 0;
if (!int.TryParse(crit[1], out nType)) return ret;
AyaType forType = (AyaType)nType;
if (forType != AyaType.Unit) return ret;//only supports Unit currently but could be more later
if (forType != AyaType.Unit) return ret;//could be more later
long lId = 0;
if (!long.TryParse(crit[0], out lId)) return ret;