This commit is contained in:
2019-01-09 00:00:12 +00:00
parent 4d2b2c0a53
commit 7627120bb6
2 changed files with 9 additions and 33 deletions

View File

@@ -4,7 +4,10 @@ namespace AyaNova.Biz
{
public static class FormAvailableFields
{
private const string WIDGET = "widget";
public static List<string> AvailableFormKeys
{
get
@@ -27,34 +30,7 @@ namespace AyaNova.Biz
List<FormField> l = new List<FormField>();
switch (key)
{
case WIDGET:
/*"Widget":"Widget",
"WidgetList":"Widgets",
"WidgetName":"Name",
"WidgetSerial":"Serial #",
"WidgetDollarAmount":"Price",
"WidgetCount":"Count",
"WidgetRoles":"Roles",
"WidgetStartDate":"Start",
"WidgetEndDate":"End",
"WidgetNotes":"Notes",
"WidgetCustom1": "Custom1",
"WidgetCustom2": "Custom2",
"WidgetCustom3": "Custom3",
"WidgetCustom4": "Custom4",
"WidgetCustom5": "Custom5",
"WidgetCustom6": "Custom6",
"WidgetCustom7": "Custom7",
"WidgetCustom8": "Custom8",
"WidgetCustom9": "Custom9",
"WidgetCustom10": "Custom10",
"WidgetCustom11": "Custom11",
"WidgetCustom12": "Custom12",
"WidgetCustom13": "Custom13",
"WidgetCustom14": "Custom14",
"WidgetCustom15": "Custom15",
"WidgetCustom16": "Custom16", */
case WIDGET:
l.Add(new FormField("WidgetName", false, false));//is not shared localized text key and not hideable as it is in the validation rules for widget
l.Add(new FormField("WidgetSerial"));//not in validation rules...you get the idea
l.Add(new FormField("WidgetDollarAmount"));
@@ -81,13 +57,12 @@ namespace AyaNova.Biz
l.Add(new FormField("WidgetCustom14", false, true, true));
l.Add(new FormField("WidgetCustom15", false, true, true));
l.Add(new FormField("WidgetCustom16", false, true, true));
break;
default:
throw new System.ArgumentOutOfRangeException($"FormAvailableFields: {key} is not a valid form key");
}
return l;
}