This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user