using System; using System.Collections.Generic; using System.Linq; using System.Web; namespace KJH55128_Rec.ViewModels { /// /// 彩种分类及其子项 /// public class ViewLotteryType { public ViewLotteryType(string typeName, string typeCode, List lotterys) { TypeName = typeName; TypeCode = typeCode; Lotterys = lotterys; } public ViewLotteryType() { } public string TypeName { get; set; } public string TypeCode { get; set; } public List Lotterys { get; set; } } /// /// 彩种名称及其code /// public class LotteryItems { private string itemName; private string itemId; private string itemValue; private string simpleSpelling; public LotteryItems(string itemName, string itemId, string itemValue, string simpleSpelling) { this.ItemName = itemName; this.ItemId = itemId; this.ItemValue = itemValue; this.SimpleSpelling = simpleSpelling; } /// /// 名称 /// public string ItemName { get { return itemName; } set { itemName = value; } } /// /// 备用字段 /// public string ItemId { get { return itemId; } set { itemId = value; } } /// /// 数据库枚举码code /// public string ItemValue { get { return itemValue; } set { itemValue = value; } } /// /// 枚举码code简拼 /// public string SimpleSpelling { get { return simpleSpelling; } set { simpleSpelling = value; } } } /// /// 友情链接及其导航 /// public class FriendLink { public FriendLink(string name, string url, string type) { Name = name; Url = url; Type = type; } /// /// 名称 /// /// public string Name { get; set; } /// /// 地址 /// /// public string Url { get; set; } /// /// 链接类型 /// /// public string Type { get; set; } } }