[C#]
protected override List<DataFormItemBase> GenerateDataFormItems(PropertyInfoCollection itemProperties, List<DataFormItemBase> dataFormItems)
{
var items = new List<DataFormItemBase>();
DataFormGroupItem dataFormGroupItem = new DataFormGroupItem();
foreach (var propertyInfo in itemProperties)
{
dataFormGroupItem.GroupName = "General";
if (propertyInfo.Key == "Code")
dataFormGroupItem.DataFormItems.Add(new DataFormTextItem() { Name = propertyInfo.Key, Editor = "Text", GroupName = "General" });
else
dataFormGroupItem.DataFormItems.Add(new DataFormTextItem() { Name = propertyInfo.Key, Editor = "Text", GroupName = "General" });
}
items.Add(dataFormGroupItem);
return items;
} |