chore: 首次簽入 Thinkyu ASP.NET 專案
- 加入 Visual Studio / ASP.NET .gitignore - 排除建置輸出、IDE 設定、NuGet packages、大型 MSI 安裝檔
This commit is contained in:
@@ -0,0 +1,53 @@
|
||||
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 "";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user