This commit is contained in:
2020-04-09 16:38:26 +00:00
parent fd475b06ce
commit d3de360a15
3 changed files with 15 additions and 4 deletions

View File

@@ -37,7 +37,9 @@ todo: Server ops EMAIL address for server to send health messages to!!!!
- Boot config setting
- maybe this should be mirrored as a setting in global biz admin as well because the biz admin needs to know about critical server issues or impending doom of the server (disk space etc) just as much as OPS
- also OPS people are not always trustworthy
todo: at server, should corebizobjects have an interface for them set in their model so that they can be identified as such
- and then they can be forced to have the common attributes like searchableobject etc?
DO CLIENT STUFF NOW COME BACK TO THIS STUFF LATER

View File

@@ -229,6 +229,15 @@ namespace AyaNova.Biz
await Search.ProcessUpdatedObjectKeywordsAsync(SearchParams);
}
public async Task<Search.SearchIndexProcessObjectParameters> GetSearchResultSummary(long id)
{
var obj = await ct.User.SingleOrDefaultAsync(m => m.Id == id);
var SearchParams = new Search.SearchIndexProcessObjectParameters();
if (obj != null)
SearchParams.AddText(obj.Notes).AddText(obj.Name).AddText(obj.EmployeeNumber).AddText(obj.Tags).AddCustomFields(obj.CustomFields);
return SearchParams;
}
////////////////////////////////////////////////////////////////////////////////////////////////
//DELETE

View File

@@ -215,9 +215,9 @@ namespace AyaNova.Biz
{
var obj = await ct.Widget.SingleOrDefaultAsync(m => m.Id == id);
var SearchParams = new Search.SearchIndexProcessObjectParameters();
SearchParams.AddText(obj.Notes).AddText(obj.Name).AddText(obj.Serial).AddText(obj.Tags).AddCustomFields(obj.CustomFields);
return SearchParams;
if (obj != null)
SearchParams.AddText(obj.Notes).AddText(obj.Name).AddText(obj.Serial).AddText(obj.Tags).AddCustomFields(obj.CustomFields);
return SearchParams;
}
////////////////////////////////////////////////////////////////////////////////////////////////