chore: 首次簽入 Thinkyu ASP.NET 專案
- 加入 Visual Studio / ASP.NET .gitignore - 排除建置輸出、IDE 設定、NuGet packages、大型 MSI 安裝檔
This commit is contained in:
@@ -0,0 +1,72 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using System.ComponentModel;
|
||||
using WebLib;
|
||||
|
||||
namespace Education
|
||||
{
|
||||
/// <summary>
|
||||
/// 教材評選 選項(評選項目、評選結果)
|
||||
/// </summary>
|
||||
[DataObject]
|
||||
public class DAC_教材評選選項
|
||||
{
|
||||
public DAC_教材評選選項()
|
||||
{
|
||||
}
|
||||
|
||||
#region 評選項目 (符合 / 修正後符合 / 不符合)
|
||||
|
||||
[DataObjectMethod(DataObjectMethodType.Select)]
|
||||
public NameValueList Select評選項目ForDropDown()
|
||||
{
|
||||
NameValueList result = new NameValueList();
|
||||
result.Add("(請選擇)", "");
|
||||
result.Add("符合", "1");
|
||||
result.Add("修正後符合", "2");
|
||||
result.Add("不符合", "3");
|
||||
return result;
|
||||
}
|
||||
|
||||
public static string Get評選項目名稱(object id)
|
||||
{
|
||||
switch (DAC.GetString(id))
|
||||
{
|
||||
case "1": return "符合";
|
||||
case "2": return "修正後符合";
|
||||
case "3": return "不符合";
|
||||
default: return "";
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region 評選結果 (通過 / 修正後使用 / 不建議使用)
|
||||
|
||||
[DataObjectMethod(DataObjectMethodType.Select)]
|
||||
public NameValueList Select評選結果ForDropDown()
|
||||
{
|
||||
NameValueList result = new NameValueList();
|
||||
result.Add("(請選擇)", "");
|
||||
result.Add("通過,可直接使用", "1");
|
||||
result.Add("修正後使用", "2");
|
||||
result.Add("不建議使用,請重新調整或另行選用", "3");
|
||||
return result;
|
||||
}
|
||||
|
||||
public static string Get評選結果名稱(object id)
|
||||
{
|
||||
switch (DAC.GetString(id))
|
||||
{
|
||||
case "1": return "通過,可直接使用";
|
||||
case "2": return "修正後使用";
|
||||
case "3": return "不建議使用,請重新調整或另行選用";
|
||||
default: return "";
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user