예제 #1
0
        public static Globe_ClueLineAnimal GetBase(Globe_Clue item)
        {
            Globe_ClueLineAnimal model = null;

            try
            {
                model = new Globe_ClueLineAnimal()
                {
                    Id          = item.Id,
                    Code        = item.Code,
                    First_Name  = item.First_Name,
                    First_Type  = item.First_Type,
                    Limit_Max   = item.Limit_Max,
                    Limit_Min   = item.Limit_Min,
                    IsEnable    = item.IsEnable,
                    Second_Name = item.Second_Name,
                    Second_Type = item.Second_Type,
                    Return_Pay  = Convert.ToDecimal(item.Return_Pay),
                    Return_Pay2 = Convert.ToDecimal(item.Return_Pay2),
                };
            }
            catch (Exception ex)
            {
                LogHelper.Error(ex);
            }
            return(model);
        }
예제 #2
0
        /// <summary>
        /// 获取正码
        /// </summary>
        /// <param name="Globe_Clue_List">原始特码集合</param>
        /// <param name="Globe_List">彩球集合</param>
        /// <param name="Size_Special_List">各码集合</param>
        /// <returns></returns>
        public static List <Globe_ClueLineAnimal> Get_Globe(List <Globe_Clue> Globe_Clue_List, List <Animal_Info> Animal_Info_List, List <Globe> Globe_List)
        {
            List <Globe_ClueLineAnimal> list = new List <Globe_ClueLineAnimal>();

            try
            {
                Animal_Info_List = (from animal in Animal_Info_List orderby animal.Code select animal).ToList();
                List <Globe_Clue> list_s = (from g in Globe_Clue_List orderby g.Code where g.First_Type == (int)GlobeClueType.LineAnimal select g).ToList();

                list_s.ForEach(item =>
                {
                    Globe_ClueLineAnimal globe_Special = Globe_ClueLineAnimal.GetBase(item);
                    globe_Special.Set_Animal(item, Animal_Info_List, Globe_List);
                    list.Add(globe_Special);
                });
            }
            catch (Exception ex)
            {
                LogHelper.Error(ex);
            }
            return(list);
        }