54 lines
1.5 KiB
C#
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 "";
|
|
}
|
|
}
|
|
}
|
|
}
|