Stub Customer object
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
using System.Collections.Generic;
|
||||
using System;
|
||||
|
||||
namespace AyaNova.Biz
|
||||
{
|
||||
@@ -9,21 +10,23 @@ namespace AyaNova.Biz
|
||||
|
||||
public static class AyaFormFieldDefinitions
|
||||
{
|
||||
|
||||
//DEFINE VALID KEYS HERE
|
||||
|
||||
// public const string WIDGET_KEY = "widget";
|
||||
// public const string USER_KEY = "user";
|
||||
|
||||
|
||||
|
||||
public static List<string> AyaFormFieldDefinitionKeys
|
||||
{
|
||||
get
|
||||
{
|
||||
//CoreBizObject add here
|
||||
List<string> l = new List<string>{
|
||||
AyaType.Widget.ToString(),AyaType.User.ToString()
|
||||
};
|
||||
//return the names of all AyaTypes that have the corebizobject attribute
|
||||
List<string> l = new List<string>();
|
||||
var values = Enum.GetValues(typeof(AyaType));
|
||||
foreach (AyaType t in values)
|
||||
{
|
||||
if (t.HasAttribute(typeof(CoreBizObjectAttribute)))
|
||||
{
|
||||
l.Add(t.ToString());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
return l;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user