/*********************************************************************** * 功能描述:bucket查询项 * 创建日期:2015-07-13 09:30 * 创建作者:周销军 ***********************************************************************/ using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Pcb.Domain.PageObject { public class BucketItem : SelectableItem { protected const string Separation_Char = "-"; public override string DisplayName { get { if (FirstValue.HasValue && SecondValue.HasValue) { return FirstValue.Value+ Separation_Char + SecondValue.Value; } else if (FirstValue.HasValue) { return FirstValue.Value + "以上"; } else if (SecondValue.HasValue) { return SecondValue.Value + "以下"; } else { return string.Empty; } } } public decimal? FirstValue { get; set; } public decimal? SecondValue { get; set; } public string Unit { get; set; } } }