This commit is contained in:
2020-02-14 20:36:51 +00:00
parent 7036d0ddd9
commit 49f98efa50
13 changed files with 53 additions and 61 deletions

View File

@@ -22,12 +22,6 @@ namespace AyaNova.DataList
//List to compile each columns where clause fragment for later assembly into sql query
List<string> ColumnWhereClauses = new List<string>();
//StringBuilder sb = new StringBuilder();
bool ThisIsTheFirstColumnWhereGroup = true;
//iterate the list view fields and concatenate a sql query from it
//// [{key:"COLUMN UNIQUE KEY ID",sort:"-" or "+",filter:{any:true/false,items:[{FILTER OBJECT SEE BELOW}]} }, {key:"second column unique key"},{...etc...}]
for (int i = 0; i < listViewArray.Count; i++)
{
StringBuilder sb = new StringBuilder();
@@ -126,9 +120,7 @@ namespace AyaNova.DataList
ThisIsTheFirstFilterItemForThisColumn = false;
}
//we've done at least one now
ThisIsTheFirstColumnWhereGroup = false;
if (ThereAreMultipleFilterItems)
{
//The whole thing was in a group so close this group

View File

@@ -3,10 +3,10 @@ using Newtonsoft.Json.Linq;
using AyaNova.Biz;
namespace AyaNova.DataList
{
internal class UserDataList : AyaDataList
internal class TestUserDataList : AyaDataList
{
public UserDataList()
public TestUserDataList()
{
DefaultListObjectType = AyaType.User;