Files
thinkyu/教育訓練系統/Web/DAC/課程企劃/DAC_教材評選綜合評估.cs
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.5 KiB
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel;
using WebLib;
namespace Education
{
[DataObject]
public class DAC_教材評選綜合評估
{
public DAC_教材評選綜合評估()
{
}
[DataObjectMethod(DataObjectMethodType.Select)]
public NameValueList SelectForList()
{
NameValueList result = new NameValueList();
result.Add("不符合目標", "1");
result.Add("符合目標", "2");
result.Add("符合目標且能引起學習興趣", "3");
return result;
}
[DataObjectMethod(DataObjectMethodType.Select)]
public NameValueList SelectForDropDown()
{
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 "";
}
}
}
}