You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
98 lines
2.7 KiB
98 lines
2.7 KiB
using System;
|
|
using System.ComponentModel;
|
|
using System.Drawing.Design;
|
|
using System.IO;
|
|
using System.Reflection;
|
|
|
|
namespace OT.Controls.GridView
|
|
{
|
|
/// <summary>
|
|
/// GridView Sort class[排序]
|
|
/// </summary>
|
|
[TypeConverter(typeof(ExpandableObjectConverter))]
|
|
public class GridViewSort
|
|
{
|
|
Assembly _assembly = Assembly.GetExecutingAssembly();
|
|
|
|
private string _sortAscImage = "~/Images/Asc.gif";
|
|
private string _sortAscText = "升序";
|
|
private string _sortDescImage = "~/Images/Desc.gif";
|
|
private string _sortDescText = "降序";
|
|
|
|
/// <summary>
|
|
/// 升序提示图片
|
|
/// </summary>
|
|
/// <value>
|
|
/// The sort asc image.
|
|
/// </value>
|
|
[NotifyParentProperty(true), Editor("System.Web.UI.Design.UrlEditor", typeof(UITypeEditor)), DefaultValue("~/Images/Asc.gif"), Category("扩展"), Description("升序提示图片")]
|
|
public string SortAscImage
|
|
{
|
|
get
|
|
{
|
|
return this._sortAscImage;
|
|
}
|
|
set
|
|
{
|
|
this._sortAscImage = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// 升序提示文本
|
|
/// </summary>
|
|
/// <value>
|
|
/// The sort asc text.
|
|
/// </value>
|
|
[Category("扩展"), Browsable(true), NotifyParentProperty(true), Description("升序提示文本"), DefaultValue("升序")]
|
|
public string SortAscText
|
|
{
|
|
get
|
|
{
|
|
return this._sortAscText;
|
|
}
|
|
set
|
|
{
|
|
this._sortAscText = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// 降序提示图片
|
|
/// </summary>
|
|
/// <value>
|
|
/// The sort desc image.
|
|
/// </value>
|
|
[Description("降序提示图片"), DefaultValue("~/Images/Desc.gif"), Category("扩展"), Editor("System.Web.UI.Design.UrlEditor", typeof(UITypeEditor)), NotifyParentProperty(true), Browsable(true)]
|
|
public string SortDescImage
|
|
{
|
|
get
|
|
{
|
|
return this._sortDescImage;
|
|
}
|
|
set
|
|
{
|
|
this._sortDescImage = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// 降序提示文本
|
|
/// </summary>
|
|
/// <value>
|
|
/// The sort desc text.
|
|
/// </value>
|
|
[DefaultValue("降序"), Description("降序提示文本"), NotifyParentProperty(true), Category("扩展")]
|
|
public string SortDescText
|
|
{
|
|
get
|
|
{
|
|
return this._sortDescText;
|
|
}
|
|
set
|
|
{
|
|
this._sortDescText = value;
|
|
}
|
|
}
|
|
}
|
|
}
|