This commit is contained in:
2018-12-12 22:21:44 +00:00
parent 125cd51d6b
commit 5ab3c899fb
4 changed files with 10 additions and 4 deletions

View File

@@ -7,6 +7,8 @@ namespace AyaNova.Biz
public const string Integer = "int";
public const string Bool = "bool";
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
}
}

View File

@@ -635,7 +635,7 @@ namespace AyaNova.Biz
}
}
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.Integer: //whole numbers, not only integer
{

View File

@@ -155,6 +155,7 @@ namespace AyaNova.Biz
AddField("active", "CommonActive", AyDataType.Bool).
AddField("tags", "Tags", AyDataType.Tags).
AddField("EmployeeNumber", "UserEmployeeNumber", AyDataType.Text).
AddField("usertype", "UserUserType", AyDataType.Enum).
AddField("notes", "WidgetNotes", AyDataType.Text);
if (localizeToLocaleId != 0)
@@ -224,7 +225,7 @@ namespace AyaNova.Biz
{
cleanedItems.Append(CleanUserForReturn(item));
}
var pageLinks = new PaginationLinkBuilder(Url, routeName, null, pagingOptions, totalRecordCount).PagingLinksObject();
ApiPagedResponse<System.Object> pr = new ApiPagedResponse<System.Object>(cleanedItems, pageLinks);
return pr;