using System.Collections.Generic;
using ChuPiao.Common.Models;

namespace ChuPiao.AutoPrint.Services
{
    public static class LotPlayMapService
    {
        static LotPlayMapService()
        {
            //if (_lotPlayMapList == null)
            //{
            //    _lotPlayMapList = new Dictionary<int, M_LotPlayModeMapEntity>();
            //    M_LotPlayModeMapService mapService = new M_LotPlayModeMapService();
            //    foreach (M_LotPlayModeMapEntity entity in mapService.GetLotPlayMapList())
            //    {
            //        _lotPlayMapList.Add(entity.M_PlayId, entity);
            //    }
            //}
            /*从配置文件加载配置*/
            /*
1	705	联网22选5	70501	常规玩法	7050101	单式	705	22选5	70501	单式
2	705	联网22选5	70501	常规玩法	7050102	复式	705	22选5	70502	复式
3	704	七星彩	70401	常规玩法	7040101	单式	704	七星彩	70401	单式
4	704	七星彩	70401	常规玩法	7040102	复式	704	七星彩	70402	复式
5	703	排列五	70301	常规玩法	7030101	单式	703	排列5	70301	单式
6	703	排列五	70301	常规玩法	7030102	复式	703	排列5	70302	复式
7	702	联网排列型	70201	排列三	7020101	单式	702	排列三	70201	直选单式
13	702	联网排列型	70201	排列三	7020102	组选	702	排列三	70211	组选三单式
18	702	联网排列型	70201	排列三	7020102	组选	702	排列三	70221	组选六单式
8	702	联网排列型	70201	排列三	7020103	复式	702	排列三	70202	直选复式
15	702	联网排列型	70203	排列三组选3复式	7020301	复式	702	排列三	70212	组三复式
19	702	联网排列型	70204	排列三组选6复式	7020401	复式	702	排列三	70222	组六复式
9	702	联网排列型	70205	排列三直选和值	7020501	和值	702	排列三	70203	直选和值
14	702	联网排列型	70206	排列三组选和值	7020601	和值	702	排列三	70232	组选和值
12	702	联网排列型	70207	排列三直选组合复式	7020701	组合复式	702	排列三	70206	直选组合复式
10	702	联网排列型	70208	排列三直选组合胆拖	7020801	组合胆拖	702	排列三	70204	直选组合胆拖
15	702	联网排列型	70209	排列三组选3胆拖	7020901	胆拖	702	排列三	70214	组三胆拖
20	702	联网排列型	70210	排列三组选6胆拖	7021001	胆拖	702	排列三	70224	组六胆拖
11	702	联网排列型	70211	排列三直选跨度复式	7021101	跨度	702	排列三	70205	直选跨度
17	702	联网排列型	70212	排列三组选3跨度复式	7021201	跨度	702	排列三	70215	组三跨度
21	702	联网排列型	70213	排列三组选6跨度复式	7021301	跨度	702	排列三	70225	组六跨度
22	701	大乐透	70101	常规玩法	7010101	单式	701	大乐透	70101	单式
23	701	大乐透	70101	常规玩法	7010102	复式	701	大乐透	70102	复式
24	701	大乐透	70101	常规玩法	7010103	胆拖	701	大乐透	70103	胆拖
25	701	大乐透	70111	追加玩法	7011101	单式	701	大乐透	70111	追加单式
26	701	大乐透	70111	追加玩法	7011102	复式	701	大乐透	70112	追加复式
27	701	大乐透	70111	追加玩法	7011103	胆拖	701	大乐透	70113	追加胆拖
28	711	大乐透幸运彩	71101	幸运玩法	7110101	单式	701	大乐透	70121	12选2单式
29	711	大乐透幸运彩	71101	幸运玩法	7110102	复式	701	大乐透	70122	12选2复式
30	603	6场半全场胜负	60301	六场	6030101	单式	603	六场半全场	60301	单式
31	603	6场半全场胜负	60301	六场	6030102	复式	603	六场半全场	60302	复式
32	602	4场进球	60201	四场	6020101	单式	602	四场进球	60201	单式
33	602	4场进球	60201	四场	6020102	复式	602	四场进球	60202	复式
34	601	足球胜负平	60101	十四场	6010101	单式	601	胜负彩	60101	十四场单式
35	601	足球胜负平	60101	十四场	6010102	复式	601	胜负彩	60102	十四场复式
36	611	任选9场	61101	九场	6110101	单式	601	胜负彩	60111	九场单式
37	611	任选9场	61101	九场	6110102	复式	601	胜负彩	60112	九场复式

             */
            _lotPlayMapList =new Dictionary<int, M_LotPlayModeMapEntity>();

            M_LotPlayModeMapEntity[] playarr=new M_LotPlayModeMapEntity[37];
            playarr[0] = new M_LotPlayModeMapEntity(705, "联网22选5", 70501, "常规玩法", 7050101, "单式", 705, "22选5", 70501, "单式");
            playarr[1] = new M_LotPlayModeMapEntity(705, "联网22选5", 70501, "常规玩法", 7050102, "复式", 705, "22选5", 70502, "复式");
            playarr[2] = new M_LotPlayModeMapEntity(704, "七星彩", 70401, "常规玩法", 7040101, "单式", 704, "七星彩", 70401, "单式");
            playarr[3] = new M_LotPlayModeMapEntity(704, "七星彩", 70401, "常规玩法", 7040102, "复式", 704, "七星彩", 70402, "复式");
            playarr[4] = new M_LotPlayModeMapEntity(703, "排列五", 70301, "常规玩法", 7030101, "单式", 703, "排列5", 70301, "单式");
            playarr[5] = new M_LotPlayModeMapEntity(703, "排列五", 70301, "常规玩法", 7030102, "复式", 703, "排列5", 70302, "复式");
            playarr[6] = new M_LotPlayModeMapEntity(702, "联网排列型", 70201, "排列三", 7020101, "单式", 702, "排列三", 70201, "直选单式");
            playarr[7] = new M_LotPlayModeMapEntity(702, "联网排列型", 70201, "排列三", 7020102, "组选", 702, "排列三", 70211, "组选三单式");
            playarr[8] = new M_LotPlayModeMapEntity(702, "联网排列型", 70201, "排列三", 7020102, "组选", 702, "排列三", 70221, "组选六单式");
            playarr[9] = new M_LotPlayModeMapEntity(702, "联网排列型", 70201, "排列三", 7020103, "复式", 702, "排列三", 70202, "直选复式");
            playarr[10] = new M_LotPlayModeMapEntity(702, "联网排列型", 70203, "排列三组选3复式", 7020301, "复式", 702, "排列三", 70212, "组三复式");
            playarr[11] = new M_LotPlayModeMapEntity(702, "联网排列型", 70204, "排列三组选6复式", 7020401, "复式", 702, "排列三", 70222, "组六复式");
            playarr[12] = new M_LotPlayModeMapEntity(702, "联网排列型", 70205, "排列三直选和值", 7020501, "和值", 702, "排列三", 70203, "直选和值");
            playarr[13] = new M_LotPlayModeMapEntity(702, "联网排列型", 70206, "排列三组选和值", 7020601, "和值", 702, "排列三", 70232, "组选和值");
            playarr[14] = new M_LotPlayModeMapEntity(702, "联网排列型", 70207, "排列三直选组合复式", 7020701, "组合复式", 702, "排列三", 70206, "直选组合复式");
            playarr[15] = new M_LotPlayModeMapEntity(702, "联网排列型", 70208, "排列三直选组合胆拖", 7020801, "组合胆拖", 702, "排列三", 70204, "直选组合胆拖");
            playarr[16] = new M_LotPlayModeMapEntity(702, "联网排列型", 70209, "排列三组选3胆拖", 7020901, "胆拖", 702, "排列三", 70214, "组三胆拖");
            playarr[17] = new M_LotPlayModeMapEntity(702, "联网排列型", 70210, "排列三组选6胆拖", 7021001, "胆拖", 702, "排列三", 70224, "组六胆拖");
            playarr[18] = new M_LotPlayModeMapEntity(702, "联网排列型", 70211, "排列三直选跨度复式", 7021101, "跨度", 702, "排列三", 70205, "直选跨度");
            playarr[19] = new M_LotPlayModeMapEntity(702, "联网排列型", 70212, "排列三组选3跨度复式", 7021201, "跨度", 702, "排列三", 70215, "组三跨度");
            playarr[20] = new M_LotPlayModeMapEntity(702, "联网排列型", 70213, "排列三组选6跨度复式", 7021301, "跨度", 702, "排列三", 70225, "组六跨度");
            playarr[21] = new M_LotPlayModeMapEntity(701, "大乐透", 70101, "常规玩法", 7010101, "单式", 701, "大乐透",70101 , "单式");
            playarr[22] = new M_LotPlayModeMapEntity(701, "大乐透", 70101, "常规玩法", 7010102, "复式", 701, "大乐透", 70102, "复式");
            playarr[23] = new M_LotPlayModeMapEntity(701, "大乐透", 70101, "常规玩法", 7010103, "胆拖", 701, "大乐透", 70103, "胆拖");
            playarr[24] = new M_LotPlayModeMapEntity(701, "大乐透", 70111, "追加玩法", 7011101, "单式", 701, "大乐透", 70111, "追加单式");
            playarr[25] = new M_LotPlayModeMapEntity(701, "大乐透", 70111, "追加玩法", 7011102, "复式", 701, "大乐透", 70112, "追加复式");
            playarr[26] = new M_LotPlayModeMapEntity(701, "大乐透", 70111, "追加玩法", 7011103, "胆拖", 701, "大乐透", 70113, "追加胆拖");
            playarr[27] = new M_LotPlayModeMapEntity(711, "大乐透幸运彩", 71101, "幸运玩法", 7110101, "单式", 701, "大乐透", 70121, "12选2单式");
            playarr[28] = new M_LotPlayModeMapEntity(711, "大乐透幸运彩", 71101, "幸运玩法", 7110102, "复式", 701, "大乐透", 70122, "12选2复式");
            playarr[29] = new M_LotPlayModeMapEntity(603, "6场半全场胜负", 60301, "六场", 6030101, "单式", 603, "六场半全场", 60301, "单式");
            playarr[30] = new M_LotPlayModeMapEntity(603, "6场半全场胜负", 60301, "六场", 6030102, "复式", 603, "六场半全场", 60302, "复式");
            playarr[31] = new M_LotPlayModeMapEntity(602, "4场进球", 60201, "四场", 6020101, "单式",602 , "四场进球", 60201, "单式");
            playarr[32] = new M_LotPlayModeMapEntity(602, "4场进球", 60201, "四场", 6020102, "复式", 602, "四场进球", 60202, "复式");
            playarr[33] = new M_LotPlayModeMapEntity(601, "足球胜负平", 60101, "十四场", 6010101, "单式", 601, "胜负彩", 60101, "十四场单式");
            playarr[34] = new M_LotPlayModeMapEntity(601, "足球胜负平", 60101, "十四场", 6010102, "复式", 601, "胜负彩", 60102, "十四场复式");
            playarr[35] = new M_LotPlayModeMapEntity(611, "任选9场", 61101, "九场", 6110101, "单式", 601, "胜负彩", 60111, "九场单式");
            playarr[36] = new M_LotPlayModeMapEntity(611, "任选9场", 61101, "九场", 6110102, "复式", 601, "胜负彩", 60112, "九场复式");

            foreach (M_LotPlayModeMapEntity entity in playarr)
            {
                _lotPlayMapList.Add(entity.M_PlayId, entity);
            }
            /*从配置文件加载配置*/
        }

        public static M_LotPlayModeMapEntity GetLotPlayMapByPlayId(int playId)
        {
            return LotPlayMapList[playId];
        }

        private static Dictionary<int, M_LotPlayModeMapEntity> _lotPlayMapList = null;

        public static Dictionary<int, M_LotPlayModeMapEntity> LotPlayMapList
        {
            get
            {
                return _lotPlayMapList;
            }
        }
    }
}
