This commit is contained in:
@@ -16,7 +16,10 @@ Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpYXQiOiIxNTQ0NTU5NzAwIiwiZXhwIjoi
|
|||||||
User
|
User
|
||||||
- Create one filter and sort test that can be adapted for all other objects so we know each object has one basic test for it's filter and sort code
|
- Create one filter and sort test that can be adapted for all other objects so we know each object has one basic test for it's filter and sort code
|
||||||
- Probably just filter by name and sort by active to be most universal
|
- Probably just filter by name and sort by active to be most universal
|
||||||
|
ENUM
|
||||||
|
- Need route to get enum values and lt by providing a lowercase name of the enum (used for building filter UI for enum types)
|
||||||
|
- Client needs to pick enum value adn display localized
|
||||||
|
|
||||||
NEXT
|
NEXT
|
||||||
- This should be the point that the lists code is concluded and can move on to the other SERVER items below then back to client stuff in the middle here
|
- This should be the point that the lists code is concluded and can move on to the other SERVER items below then back to client stuff in the middle here
|
||||||
|
|
||||||
|
|||||||
@@ -7,6 +7,8 @@ namespace AyaNova.Biz
|
|||||||
public const string Integer = "int";
|
public const string Integer = "int";
|
||||||
public const string Bool = "bool";
|
public const string Bool = "bool";
|
||||||
public const string Decimal = "decimal";
|
public const string Decimal = "decimal";
|
||||||
public const string Tags="tags";
|
public const string Tags = "tags";
|
||||||
|
public const string Enum = "enum";//enums are just integers in the db so the sql code handles it like an int, but the client needs to know it's an enum
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -635,7 +635,7 @@ namespace AyaNova.Biz
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
case AyDataType.Enum://enums are just ints to the db, but it's a special type so the client can recognize it
|
||||||
case AyDataType.Decimal:
|
case AyDataType.Decimal:
|
||||||
case AyDataType.Integer: //whole numbers, not only integer
|
case AyDataType.Integer: //whole numbers, not only integer
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -155,6 +155,7 @@ namespace AyaNova.Biz
|
|||||||
AddField("active", "CommonActive", AyDataType.Bool).
|
AddField("active", "CommonActive", AyDataType.Bool).
|
||||||
AddField("tags", "Tags", AyDataType.Tags).
|
AddField("tags", "Tags", AyDataType.Tags).
|
||||||
AddField("EmployeeNumber", "UserEmployeeNumber", AyDataType.Text).
|
AddField("EmployeeNumber", "UserEmployeeNumber", AyDataType.Text).
|
||||||
|
AddField("usertype", "UserUserType", AyDataType.Enum).
|
||||||
AddField("notes", "WidgetNotes", AyDataType.Text);
|
AddField("notes", "WidgetNotes", AyDataType.Text);
|
||||||
|
|
||||||
if (localizeToLocaleId != 0)
|
if (localizeToLocaleId != 0)
|
||||||
@@ -224,7 +225,7 @@ namespace AyaNova.Biz
|
|||||||
{
|
{
|
||||||
cleanedItems.Append(CleanUserForReturn(item));
|
cleanedItems.Append(CleanUserForReturn(item));
|
||||||
}
|
}
|
||||||
|
|
||||||
var pageLinks = new PaginationLinkBuilder(Url, routeName, null, pagingOptions, totalRecordCount).PagingLinksObject();
|
var pageLinks = new PaginationLinkBuilder(Url, routeName, null, pagingOptions, totalRecordCount).PagingLinksObject();
|
||||||
ApiPagedResponse<System.Object> pr = new ApiPagedResponse<System.Object>(cleanedItems, pageLinks);
|
ApiPagedResponse<System.Object> pr = new ApiPagedResponse<System.Object>(cleanedItems, pageLinks);
|
||||||
return pr;
|
return pr;
|
||||||
|
|||||||
Reference in New Issue
Block a user