diff --git a/server/AyaNova/biz/AyDataTypes.cs b/server/AyaNova/biz/AyDataTypes.cs new file mode 100644 index 00000000..b6aa0809 --- /dev/null +++ b/server/AyaNova/biz/AyDataTypes.cs @@ -0,0 +1,11 @@ +namespace AyaNova.Biz +{ + static class AyDataTypes + { + public const string Date = "date"; + public const string Text = "text"; + public const string Integer = "int"; + public const string Bool = "bool"; + public const string Decimal = "decimal"; + } +} diff --git a/server/AyaNova/biz/FilterOptions.cs b/server/AyaNova/biz/FilterOptions.cs index 402e0c89..6e931a35 100644 --- a/server/AyaNova/biz/FilterOptions.cs +++ b/server/AyaNova/biz/FilterOptions.cs @@ -8,8 +8,14 @@ namespace AyaNova.Biz public class FilterOptions { - public string ListKey { get; set; } - public List Fields { get; set; } + public string Key { get; set; } + public List Flds { get; set; } + + public FilterOptions(string key) + { + Flds = new List(); + Key = key; + } } diff --git a/server/AyaNova/biz/IFilterableObject.cs b/server/AyaNova/biz/IFilterableObject.cs index 26026f4e..ee7c95ea 100644 --- a/server/AyaNova/biz/IFilterableObject.cs +++ b/server/AyaNova/biz/IFilterableObject.cs @@ -14,23 +14,12 @@ namespace AyaNova.Biz { //FILTEROPTIONS COLLECTION - //{list:"widget",fields:[{fld:"name",lt:"WidgetName",type:"text"},{fld:"dollarAmount",lt:"WidgetDollarAmount",type:"currency"}]} + FilterOptions FilterOptions { get; set; } - //VALIDATE FILTER - // /// - // /// Import from the JSON data provided - // /// - // /// Json object containing source record - // /// A collection that can be used to match import records to new records, NOT persistent between imports - // /// JobId for logging or controlling jobs from within processor - // /// True if imported, False if not imported due to invalid or other error (logged in job log) - // Task ImportV7Async(JObject v7ImportData, List importMap, Guid JobId); - - // /// - // /// If true, relaxes validation rules so that incomplete data can be imported - // /// - // bool SeedOrImportRelaxedRulesMode { get; set; } + //VALIDATE FILTER? + + }