using System; using DevExpress.Xpo; using System.ComponentModel; using DevExpress.Persistent.Base; using DevExpress.Persistent.BaseImpl; using DevExpress.ExpressApp.Utils; using DevExpress.ExpressApp.Editors; namespace SISBusiness.Module { [DefaultClassOptions, ImageName("Action_Filter"), NavigationItem(false), CreatableItem(false)] public class FilteringCriterion : BaseObject { public FilteringCriterion(Session session) : base(session) { } public string Description { get { return GetPropertyValue("Description"); } set { SetPropertyValue("Description", value); } } [ValueConverter(typeof(TypeToStringConverter)), ImmediatePostData] [TypeConverter(typeof(LocalizedClassInfoTypeConverter))] public Type ObjectType { get { return GetPropertyValue("ObjectType"); } set { SetPropertyValue("ObjectType", value); Criterion = String.Empty; } } [CriteriaOptions("ObjectType"), Size(SizeAttribute.Unlimited)] [EditorAlias(EditorAliases.PopupCriteriaPropertyEditor)] public string Criterion { get { return GetPropertyValue("Criterion"); } set { SetPropertyValue("Criterion", value); } } } }