예제 #1
0
        public override string GetNumberList1(List <string> pNumberList, string playName, List <int> pRXWZ = null)
        {
            string str = "";

            ConfigurationStatus.PlayBase playInfo = CommFunc.GetPlayInfo(playName);
            if (AppInfo.Current.Lottery.Group == ConfigurationStatus.LotteryGroup.GPSSC)
            {
                List <string> list5;
                int           num3;
                string        str4;
                if (CommFunc.CheckPlayIsFS(playName))
                {
                    return(CommFunc.Join(pNumberList, "_").Replace("*", "#"));
                }
                if (playName.Contains("定位胆"))
                {
                    return(CommFunc.Join(pNumberList).Replace("*", ""));
                }
                if (CommFunc.CheckPlayIsZuX(playName))
                {
                    if (playName.Contains("复式"))
                    {
                        str = CommFunc.Join(pNumberList);
                    }
                    if (CommFunc.CheckPlayIsRX(playName))
                    {
                        str = this.GetRXWZString(pRXWZ) + str;
                    }
                    return(str);
                }
                if (CommFunc.CheckPlayIsRX(playName))
                {
                    int           count = playInfo.IndexList.Count;
                    List <string> list2 = CommFunc.GetCombinations(CommFunc.ConvertIntToStrList(pRXWZ), count, "");
                    List <string> pList = new List <string>();
                    for (int i = 0; i < list2.Count; i++)
                    {
                        List <int> list4 = CommFunc.ConvertSameListInt(list2[i]);
                        list5 = new List <string>();
                        num3  = 0;
                        while (num3 < pNumberList.Count)
                        {
                            string        str2  = pNumberList[num3];
                            List <string> list6 = new List <string>();
                            int           num4  = 0;
                            for (int j = 0; j < 5; j++)
                            {
                                string str3 = "#";
                                if (list4.Contains(j))
                                {
                                    str3 = str2[num4++].ToString();
                                }
                                list6.Add(str3);
                            }
                            str4 = CommFunc.Join(list6, "_");
                            list5.Add(str4);
                            num3++;
                        }
                        string item = CommFunc.Join(list5, ",");
                        pList.Add(item);
                    }
                    return(CommFunc.Join(pList, ","));
                }
                list5 = new List <string>();
                for (num3 = 0; num3 < pNumberList.Count; num3++)
                {
                    str4 = pNumberList[num3];
                    str4 = CommFunc.Join(str4, "_", -1);
                    list5.Add(str4);
                }
                return(CommFunc.Join(list5, ","));
            }
            if (AppInfo.Current.Lottery.Group == ConfigurationStatus.LotteryGroup.GP11X5)
            {
                if (CommFunc.CheckPlayIsDS(playName))
                {
                    return(CommFunc.Join(pNumberList, ",").Replace(" ", "_"));
                }
                if (CommFunc.CheckPlayIsFS(playName))
                {
                    str = CommFunc.Join(pNumberList, "-");
                }
                return(str);
            }
            if (AppInfo.Current.Lottery.Group != ConfigurationStatus.LotteryGroup.GPPK10)
            {
                return(str);
            }
            if (CommFunc.CheckPlayIsDS(playName))
            {
                return(CommFunc.Join(pNumberList, ",").Replace(" ", "_"));
            }
            if (CommFunc.CheckPlayIsFS(playName))
            {
                return(CommFunc.Join(pNumberList, "_").Replace(" ", "-").Replace("*", ""));
            }
            return(CommFunc.Join(pNumberList, "-").Replace("*", ""));
        }