This commit is contained in:
@@ -134,11 +134,27 @@ namespace AyaNova.Biz
|
||||
}
|
||||
|
||||
//Autocomplete and tagonly query terms now set for consumption by PickListFetcher, ready to fetch...
|
||||
List<NameIdActiveItem> items = await PickListFetcher.GetResponseAsync(PickList, AutoCompleteQuery, TagSpecificQuery, inactive, preIds,variant, ct, log);
|
||||
List<NameIdActiveItem> items = await PickListFetcher.GetResponseAsync(PickList, AutoCompleteQuery, TagSpecificQuery, inactive, preIds, variant, ct, log);
|
||||
return items;
|
||||
}
|
||||
|
||||
|
||||
//get picklist display for a single item
|
||||
//used to populate UI with picklist format display for items
|
||||
internal async Task<string> GetTemplatedNameAsync(AyaType ayaType, long id, string variant, ILogger log)
|
||||
{
|
||||
long[] preIds = { id };
|
||||
var PickList = PickListFactory.GetAyaPickList(ayaType);
|
||||
//Autocomplete and tagonly query terms now set for consumption by PickListFetcher, ready to fetch...
|
||||
List<NameIdActiveItem> items = await PickListFetcher.GetResponseAsync(PickList, null, null, true, preIds, variant, ct, log);
|
||||
if (items.Count == 0)
|
||||
{
|
||||
return string.Empty;
|
||||
}
|
||||
return items[0].Name;
|
||||
}
|
||||
|
||||
|
||||
//get picklist templates, basically all the object types that support picklists
|
||||
internal List<NameIdItem> GetListOfAllPickListTypes(long translationId)
|
||||
{
|
||||
@@ -146,8 +162,6 @@ namespace AyaNova.Biz
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
//UPDATE
|
||||
//
|
||||
@@ -171,7 +185,7 @@ namespace AyaNova.Biz
|
||||
return false;
|
||||
if (bAdd)
|
||||
await ct.PickListTemplate.AddAsync(o);
|
||||
|
||||
|
||||
await ct.SaveChangesAsync();
|
||||
|
||||
//Log modification and save context
|
||||
|
||||
Reference in New Issue
Block a user