60 lines
1.6 KiB
C#
60 lines
1.6 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("核心職能", "核心");
|
|
result.Add("專業職能", "專業");
|
|
result.Add("管理職能", "管理");
|
|
return result;
|
|
}
|
|
|
|
[DataObjectMethod(DataObjectMethodType.Select)]
|
|
public NameValueList SelectForDropDown()
|
|
{
|
|
NameValueList result = new NameValueList();
|
|
result.Add("(請選擇)", "");
|
|
result.Add("核心職能", "核心");
|
|
result.Add("專業職能", "專業");
|
|
result.Add("管理職能", "管理");
|
|
return result;
|
|
}
|
|
|
|
public static string Get計畫別名稱(object id)
|
|
{
|
|
switch (DAC.GetString(id))
|
|
{
|
|
case "1":
|
|
return "人提";
|
|
case "2":
|
|
return "人派";
|
|
case "3":
|
|
return "一般";
|
|
case "核心":
|
|
return "核心職能";
|
|
case "專業":
|
|
return "專業職能";
|
|
case "管理":
|
|
return "管理職能";
|
|
default:
|
|
return "";
|
|
}
|
|
}
|
|
}
|
|
}
|