Files
thinkyu/branches/1150807/DAC/領據系統/單位別.cs
T
sryang 577060bc78 chore: 首次簽入 Thinkyu ASP.NET 專案
- 加入 Visual Studio / ASP.NET .gitignore
- 排除建置輸出、IDE 設定、NuGet packages、大型 MSI 安裝檔
2026-09-10 09:42:37 +08:00

54 lines
1.6 KiB
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using WebLib;
namespace Education
{
public class 單位別
{
public const string 單位別_節 = "節";
public const string 單位別_時 = "時";
public const string 單位別_天 = "天";
public const string 單位別_場 = "場";
public const string 單位別_式 = "式";
public const string 單位別_千字 = "千字";
///<summary>
/// 單位別 輸入用下拉清單資料
///</summary>
public static NameValueList InputSelectList = new NameValueList()
{
{ "(請選擇)", "" },
{ "節", 單位別_節 },
{ "時", 單位別_時 },
{ "天", 單位別_天 },
{ "場", 單位別_場 },
{ "式", 單位別_式 },
{ "千字", 單位別_千字 },
};
///<summary>
/// 單位別 查詢用下拉清單資料
///</summary>
public static NameValueList SearchSelectList = new NameValueList()
{
{ "(全部)", "" },
{ "節", 單位別_節 },
{ "時", 單位別_時 },
{ "天", 單位別_天 },
{ "場", 單位別_場 },
{ "式", 單位別_式 },
{ "千字", 單位別_千字 },
};
///<summary>
/// 單位別 由值取得名稱
///</summary>
public static string GetName(object value)
{
return InputSelectList.GetName(value);
}
}
}