This commit is contained in:
2018-11-29 17:44:27 +00:00
parent 6ed176201c
commit 7e3f6805ed
3 changed files with 23 additions and 17 deletions

View File

@@ -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";
}
}

View File

@@ -8,8 +8,14 @@ namespace AyaNova.Biz
public class FilterOptions
{
public string ListKey { get; set; }
public List<FilterField> Fields { get; set; }
public string Key { get; set; }
public List<FilterField> Flds { get; set; }
public FilterOptions(string key)
{
Flds = new List<FilterField>();
Key = key;
}
}

View File

@@ -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
// /// <summary>
// /// Import from the JSON data provided
// /// </summary>
// /// <param name="v7ImportData">Json object containing source record</param>
// /// <param name="importMap">A collection that can be used to match import records to new records, NOT persistent between imports</param>
// /// <param name="JobId">JobId for logging or controlling jobs from within processor</param>
// /// <returns>True if imported, False if not imported due to invalid or other error (logged in job log)</returns>
// Task<bool> ImportV7Async(JObject v7ImportData, List<ImportAyaNova7MapItem> importMap, Guid JobId);
// /// <summary>
// /// If true, relaxes validation rules so that incomplete data can be imported
// /// </summary>
// bool SeedOrImportRelaxedRulesMode { get; set; }
//VALIDATE FILTER?
}