From 632ef88fc20d71d093531ae89879763f8b859c28 Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Wed, 13 Jan 2021 18:43:53 +0000 Subject: [PATCH] --- server/AyaNova/PickList/PickListParams.cs | 27 +++++++++++++++-------- 1 file changed, 18 insertions(+), 9 deletions(-) diff --git a/server/AyaNova/PickList/PickListParams.cs b/server/AyaNova/PickList/PickListParams.cs index 7a93f950..66a84dd6 100644 --- a/server/AyaNova/PickList/PickListParams.cs +++ b/server/AyaNova/PickList/PickListParams.cs @@ -5,15 +5,15 @@ using AyaNova.Biz; namespace AyaNova.PickList { -/* - /// The AyaType object type to select from - /// The query to filter the returned list by. Query text as provided will be case sensitively matched to all templated fields. - /// Independantely of this, if an addition space separated string that begins with two consecutive periods is encountered that will be considered a separate match to the TAGS collection of each object - /// So a tag query might be entered as "..zon some" which would match all tags LIKE 'zon' and template fields LIKE 'some' - /// Include inactive objects in the returned list - /// Return only specific items (for pre-selected items on forms) - /// Some lists optionally take a variant string, e.g. User type "inside","outside" etc -*/ + /* + /// The AyaType object type to select from + /// The query to filter the returned list by. Query text as provided will be case sensitively matched to all templated fields. + /// Independantely of this, if an addition space separated string that begins with two consecutive periods is encountered that will be considered a separate match to the TAGS collection of each object + /// So a tag query might be entered as "..zon some" which would match all tags LIKE 'zon' and template fields LIKE 'some' + /// Include inactive objects in the returned list + /// Return only specific items (for pre-selected items on forms) + /// Some lists optionally take a variant string, e.g. User type "inside","outside" etc + */ public sealed class PickListParams { @@ -31,6 +31,15 @@ namespace AyaNova.PickList [FromBody] public string ListVariant { get; set; } + + public PickListParams() + { + AyaType = AyaType.NoType; + Query = string.Empty; + Inactive = false; + PreselectedIds = new List(); + ListVariant = string.Empty; + } } } \ No newline at end of file