using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.ComponentModel.DataAnnotations;
using Sleis.Validation.Attribute;
namespace Sleis.Models.CustomFields
{
public class CustomFieldModel : BaseIdentityModel
{
///
/// What will show in the management console
///
public virtual string Name { get; set; }
public virtual string Desc { get; set; }
public virtual string Help { get; set; }
public virtual string Label { get; set; }
///
/// Optional regular expression that will be used in validation of that data
///
public virtual string FormatExpression { get; set; }
public virtual CustomFieldEntityType Entity { get; set; }
public virtual CustomFieldDataType Type { get; set; }
public virtual CustomFieldDataStyleType ManagementStyle { get; set; }
public virtual CustomFieldDataStyleType PublicStyle { get; set; }
public virtual int LastReportingYear { get; set; }
///
/// Used to order the fields on the screen
///
public virtual int Index { get; set; }
public override void SetContext(string parentContext)
{
ValidationContxt = parentContext;
}
}
}