45 lines
1.3 KiB
C#
45 lines
1.3 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Web;
|
|
using WebLib;
|
|
|
|
namespace Education
|
|
{
|
|
public class 付款方式
|
|
{
|
|
public const string 付款方式_匯款 = "匯款";
|
|
public const string 付款方式_支票 = "支票";
|
|
public const string 付款方式_現金 = "現金";
|
|
|
|
///<summary>
|
|
/// 身分別 輸入用下拉清單資料
|
|
///</summary>
|
|
public static NameValueList InputSelectList = new NameValueList()
|
|
{
|
|
{ "(請選擇)", "" },
|
|
{ "匯款", 付款方式_匯款 },
|
|
{ "支票", 付款方式_支票 },
|
|
{ "現金", 付款方式_現金 },
|
|
};
|
|
|
|
///<summary>
|
|
/// 身分別 查詢用下拉清單資料
|
|
///</summary>
|
|
public static NameValueList SearchSelectList = new NameValueList()
|
|
{
|
|
{ "(全部)", "" },
|
|
{ "匯款", 付款方式_匯款 },
|
|
{ "支票", 付款方式_支票 },
|
|
{ "現金", 付款方式_現金 },
|
|
};
|
|
|
|
///<summary>
|
|
/// 身分別 由值取得名稱
|
|
///</summary>
|
|
public static string GetName(object value)
|
|
{
|
|
return InputSelectList.GetName(value);
|
|
}
|
|
}
|
|
} |