You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

49 lines
1.3 KiB
C#

using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace POSV.Entity.Report
{
[Serializable]
[JsonObject(MemberSerialization.OptIn)]
public class GridObject : IComparable<GridObject>
{
[JsonProperty(PropertyName = "Name")]
public string Name { get; set; }
[JsonProperty(PropertyName = "HeaderText")]
public string HeaderText { get; set; }
[JsonProperty(PropertyName = "DataPropertyName")]
public string DataPropertyName { get; set; }
[JsonProperty(PropertyName = "Width")]
public int Width { get; set; }
[JsonProperty(PropertyName = "Order")]
public int Order { get; set; }
[JsonProperty(PropertyName = "Display")]
public bool Display { get; set; }
[JsonProperty(PropertyName = "AllowEdit")]
public bool AllowEdit { get; set; } = false;
[JsonProperty(PropertyName = "EditorType")]
public string EditorType { get; set; } = "DevComponents.DotNetBar.SuperGrid.GridTextBoxXEditControl";
public int CompareTo(GridObject other)
{
if (other == null) return -1;
if (this.Order > other.Order)
{
return -1;
}
return 1;
}
}
}