Files
sryang 577060bc78 chore: 首次簽入 Thinkyu ASP.NET 專案
- 加入 Visual Studio / ASP.NET .gitignore
- 排除建置輸出、IDE 設定、NuGet packages、大型 MSI 安裝檔
2026-09-10 09:42:37 +08:00

42 lines
1.1 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 身分別_非講師 = "非講師";
///<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);
}
}
}