Other
This commit is contained in:
@@ -0,0 +1,39 @@
|
||||
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<string>("Description"); }
|
||||
set { SetPropertyValue<string>("Description", value); }
|
||||
}
|
||||
[ValueConverter(typeof(TypeToStringConverter)), ImmediatePostData]
|
||||
[TypeConverter(typeof(LocalizedClassInfoTypeConverter))]
|
||||
public Type ObjectType
|
||||
{
|
||||
get { return GetPropertyValue<Type>("ObjectType"); }
|
||||
set
|
||||
{
|
||||
SetPropertyValue<Type>("ObjectType", value);
|
||||
Criterion = String.Empty;
|
||||
}
|
||||
}
|
||||
[CriteriaOptions("ObjectType"), Size(SizeAttribute.Unlimited)]
|
||||
[EditorAlias(EditorAliases.PopupCriteriaPropertyEditor)]
|
||||
public string Criterion
|
||||
{
|
||||
get { return GetPropertyValue<string>("Criterion"); }
|
||||
set { SetPropertyValue<string>("Criterion", value); }
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user