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.
123 lines
3.0 KiB
123 lines
3.0 KiB
using System.Web.UI;
|
|
using System.Web.UI.WebControls;
|
|
using Microsoft.VisualBasic;
|
|
using System;
|
|
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using System.Data;
|
|
using System.Diagnostics;
|
|
using System.ComponentModel;
|
|
|
|
namespace OT.Controls.Toolbar
|
|
{
|
|
/// <summary>
|
|
/// 工具列項目。
|
|
/// </summary>
|
|
[Description("工具列項目。"), Serializable]
|
|
public class ToolbarItem
|
|
{
|
|
|
|
private bool _fEnabled = true;
|
|
private string _fImageUrl = string.Empty;
|
|
private string FKey = string.Empty;
|
|
|
|
/// <summary>
|
|
/// 鍵值。
|
|
/// </summary>
|
|
[Description("鍵值。"), DefaultValue("")]
|
|
public string Key
|
|
{
|
|
get { return FKey; }
|
|
set { FKey = value; }
|
|
}
|
|
/// <summary>
|
|
/// 是否啟用。
|
|
/// </summary>
|
|
[Description("是否啟用。"), DefaultValue(true)]
|
|
public bool Enabled
|
|
{
|
|
get { return _fEnabled; }
|
|
set { _fEnabled = value; }
|
|
}
|
|
|
|
/// <summary>
|
|
/// 是否顯示。
|
|
/// </summary>
|
|
[Description("是否顯示。"), DefaultValue(true)]
|
|
public bool Visible
|
|
{
|
|
get;
|
|
set;
|
|
}
|
|
|
|
/// <summary>
|
|
/// 是否顯示。
|
|
/// </summary>
|
|
[Description("是否需要驗證。"), DefaultValue(true)]
|
|
public bool CausesValidation
|
|
{
|
|
get;
|
|
set;
|
|
}
|
|
|
|
/// <summary>
|
|
/// 選單項目影像的 URL。
|
|
/// </summary>
|
|
[Description("選單項目影像的 URL。"), Editor(typeof(System.Web.UI.Design.ImageUrlEditor), typeof(System.Drawing.Design.UITypeEditor)), DefaultValue(""), System.Web.UI.UrlProperty(), Bindable(true)]
|
|
public string ImageUrl
|
|
{
|
|
get { return _fImageUrl; }
|
|
set { _fImageUrl = value; }
|
|
}
|
|
|
|
/// <summary>
|
|
/// Css樣式名稱
|
|
/// </summary>
|
|
[Description("Css樣式名稱"),DefaultValue("")]
|
|
public string CssClass
|
|
{
|
|
get;
|
|
set;
|
|
}
|
|
|
|
/// <summary>
|
|
/// 索引
|
|
/// </summary>
|
|
[Description("索引")]
|
|
public int Index
|
|
{
|
|
get;
|
|
set;
|
|
}
|
|
|
|
/// <summary>
|
|
/// 最先執行的Js(為開發人員添加如驗證Js使用)
|
|
/// </summary>
|
|
[Description("前置Js"), DefaultValue("")]
|
|
public string PreJs
|
|
{
|
|
get;
|
|
set;
|
|
}
|
|
|
|
/// <summary>
|
|
/// 系統內部Js(晚於PreJs執行)
|
|
/// </summary>
|
|
[Description("系統內部Js"), DefaultValue("")]
|
|
public string Js
|
|
{
|
|
get;
|
|
set;
|
|
}
|
|
|
|
/// <summary>
|
|
/// 執行後臺事件後執行的Js(晚於系統內部Js執行)
|
|
/// </summary>
|
|
[Description("後置Js"), DefaultValue("")]
|
|
public string NextJs
|
|
{
|
|
get;
|
|
set;
|
|
}
|
|
}
|
|
}
|