This commit is contained in:
2018-11-29 16:15:13 +00:00
parent 0ba9b971ef
commit 6ed176201c
3 changed files with 61 additions and 1 deletions

View File

@@ -0,0 +1,22 @@
using System;
using System.Collections.Generic;
using AyaNova.Biz;
namespace AyaNova.Biz
{
public class FilterOptions
{
public string ListKey { get; set; }
public List<FilterField> Fields { get; set; }
}
public class FilterField
{
public string Fld { get; set; }
public string Lt { get; set; }
public string Type { get; set; }
}
}

View File

@@ -0,0 +1,37 @@
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using AyaNova.Models;
using Newtonsoft.Json.Linq;
namespace AyaNova.Biz
{
/// <summary>
/// Interface for biz objects that support list filtering
/// </summary>
internal interface IFilterableObject
{
//FILTEROPTIONS COLLECTION
//{list:"widget",fields:[{fld:"name",lt:"WidgetName",type:"text"},{fld:"dollarAmount",lt:"WidgetDollarAmount",type:"currency"}]}
//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; }
}
}