当前位置: 首页>>代码示例>>C#>>正文


C# Business.JTicket类代码示例

本文整理汇总了C#中J.SLS.Business.JTicket的典型用法代码示例。如果您正苦于以下问题:C# JTicket类的具体用法?C# JTicket怎么用?C# JTicket使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


JTicket类属于J.SLS.Business命名空间,在下文中一共展示了JTicket类的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: ToElectronicTicket_HPCQ_Mixed

 private JTicket[] ToElectronicTicket_HPCQ_Mixed(int PlayTypeID, string Number, int Multiple, int MaxMultiple, ref double Money)
 {
     JTicket[] ticketArray;
     string[] strArray = base.SplitLotteryNumber(Number);
     if (strArray == null)
     {
         return null;
     }
     if (strArray.Length < 1)
     {
         return null;
     }
     Money = 0.0;
     string[] strArray2 = new string[] { "", "", "", "", "", "", "", "", "", "", "", "" };
     foreach (string str in strArray)
     {
         if (str.StartsWith("[单式]"))
         {
             string[] strArray5;
             (strArray5 = strArray2)[0] = strArray5[0] + str + "\n";
         }
         else if (str.StartsWith("[复式]"))
         {
             string[] strArray6;
             (strArray6 = strArray2)[1] = strArray6[1] + str + "\n";
         }
         else if (str.StartsWith("[组合玩法]"))
         {
             string[] strArray7;
             (strArray7 = strArray2)[2] = strArray7[2] + str + "\n";
         }
         else if (str.StartsWith("[猜大小]"))
         {
             string[] strArray8;
             (strArray8 = strArray2)[3] = strArray8[3] + str + "\n";
         }
         else if (str.StartsWith("[五星通选单式]"))
         {
             string[] strArray9;
             (strArray9 = strArray2)[4] = strArray9[4] + str + "\n";
         }
         else if (str.StartsWith("[五星通选复式]"))
         {
             string[] strArray10;
             (strArray10 = strArray2)[5] = strArray10[5] + str + "\n";
         }
         else if (str.StartsWith("[二星组选单式]"))
         {
             string[] strArray11;
             (strArray11 = strArray2)[6] = strArray11[6] + str + "\n";
         }
         else if (str.StartsWith("[二星组选复式]"))
         {
             string[] strArray12;
             (strArray12 = strArray2)[7] = strArray12[7] + str + "\n";
         }
         else if (str.StartsWith("[二星组选分位]"))
         {
             string[] strArray13;
             (strArray13 = strArray2)[8] = strArray13[8] + str + "\n";
         }
         else if (str.StartsWith("[二星组选包点]"))
         {
             string[] strArray14;
             (strArray14 = strArray2)[9] = strArray14[9] + str + "\n";
         }
         else if (str.StartsWith("[二星组选包胆]"))
         {
             string[] strArray15;
             (strArray15 = strArray2)[10] = strArray15[10] + str + "\n";
         }
         else if (str.StartsWith("[三星包点]"))
         {
             string[] strArray16;
             (strArray16 = strArray2)[11] = strArray16[11] + str + "\n";
         }
     }
     ArrayList list = new ArrayList();
     if (strArray2[0].Length > 0)
     {
         ticketArray = this.ToElectronicTicket_HPCQ_D(0xaf1, strArray2[0].ToString(), Multiple, MaxMultiple, ref Money);
         if (ticketArray != null)
         {
             foreach (JTicket ticket in ticketArray)
             {
                 list.Add(ticket);
             }
         }
     }
     if (strArray2[1].Length > 0)
     {
         ticketArray = this.ToElectronicTicket_HPCQ_F(0xaf2, strArray2[1].ToString(), Multiple, MaxMultiple, ref Money);
         if (ticketArray != null)
         {
             foreach (JTicket ticket2 in ticketArray)
             {
                 list.Add(ticket2);
             }
         }
     }
//.........这里部分代码省略.........
开发者ID:NoobSkie,项目名称:taobao-shop-helper,代码行数:101,代码来源:CQSSC.cs

示例2: ToElectronicTicket_HPCQ_ZH

 private JTicket[] ToElectronicTicket_HPCQ_ZH(int PlayTypeID, string Number, int Multiple, int MaxMultiple, ref double Money)
 {
     string[] strArray = this.AnalyseScheme_ZH(Number, PlayTypeID).Split(new char[] { '\n' });
     if (strArray == null)
     {
         return null;
     }
     if (strArray.Length == 0)
     {
         return null;
     }
     Money = 0.0;
     int num = 0;
     if ((Multiple % MaxMultiple) != 0)
     {
         num = ((Multiple - (Multiple % MaxMultiple)) / MaxMultiple) + 1;
     }
     else
     {
         num = Multiple / MaxMultiple;
     }
     ArrayList list = new ArrayList();
     int multiple = 1;
     double num3 = 0.0;
     for (int i = 1; i < (num + 1); i++)
     {
         if ((i * MaxMultiple) < Multiple)
         {
             multiple = MaxMultiple;
         }
         else
         {
             multiple = Multiple - ((i - 1) * MaxMultiple);
         }
         for (int k = 0; k < strArray.Length; k++)
         {
             string number = "";
             num3 = 0.0;
             number = strArray[k].ToString().Split(new char[] { '|' })[0];
             num3 += 2.0 * double.Parse(strArray[k].ToString().Split(new char[] { '|' })[1]);
             Money += num3 * multiple;
             list.Add(new JTicket(0x12f, this.ConvertFormatToElectronTicket_HPCQ(PlayTypeID, number), multiple, num3 * multiple));
         }
     }
     JTicket[] ticketArray = new JTicket[list.Count];
     for (int j = 0; j < ticketArray.Length; j++)
     {
         ticketArray[j] = (JTicket)list[j];
     }
     return ticketArray;
 }
开发者ID:NoobSkie,项目名称:taobao-shop-helper,代码行数:51,代码来源:CQSSC.cs

示例3: ToElectronicTicket_HPCQ_5X_TXF

 private JTicket[] ToElectronicTicket_HPCQ_5X_TXF(int PlayTypeID, string Number, int Multiple, int MaxMultiple, ref double Money)
 {
     ArrayList list = new ArrayList();
     string content = "";
     string canonicalNumber = "";
     string[] strArray = this.ToSingle_5X_TX(Number, ref canonicalNumber);
     for (int i = 0; i < strArray.Length; i++)
     {
         content = content + strArray[i] + "\n";
     }
     string[] strArray2 = this.AnalyseScheme_5X_TX(content, 0xaf5).Split(new char[] { '\n' });
     if (strArray2 == null)
     {
         return null;
     }
     if (strArray2.Length == 0)
     {
         return null;
     }
     Money = 0.0;
     int num2 = 0;
     if ((Multiple % MaxMultiple) != 0)
     {
         num2 = ((Multiple - (Multiple % MaxMultiple)) / MaxMultiple) + 1;
     }
     else
     {
         num2 = Multiple / MaxMultiple;
     }
     int multiple = 1;
     double num4 = 0.0;
     for (int j = 1; j < (num2 + 1); j++)
     {
         if ((j * MaxMultiple) < Multiple)
         {
             multiple = MaxMultiple;
         }
         else
         {
             multiple = Multiple - ((j - 1) * MaxMultiple);
         }
         for (int m = 0; m < strArray2.Length; m += 5)
         {
             string number = "";
             num4 = 0.0;
             for (int n = 0; n < 5; n++)
             {
                 if ((m + n) < strArray2.Length)
                 {
                     number = number + strArray2[m + n].ToString().Split(new char[] { '|' })[0];
                     num4 += 2.0 * double.Parse(strArray2[m + n].ToString().Split(new char[] { '|' })[1]);
                 }
             }
             Money += num4 * multiple;
             list.Add(new JTicket(0x138, this.ConvertFormatToElectronTicket_HPCQ(0xaf5, number), multiple, num4 * multiple));
         }
     }
     JTicket[] ticketArray = new JTicket[list.Count];
     for (int k = 0; k < ticketArray.Length; k++)
     {
         ticketArray[k] = (JTicket)list[k];
     }
     return ticketArray;
 }
开发者ID:NoobSkie,项目名称:taobao-shop-helper,代码行数:64,代码来源:CQSSC.cs

示例4: ToElectronicTicket_HPJX_RX2

 private JTicket[] ToElectronicTicket_HPJX_RX2(int PlayTypeID, string Number, int Multiple, int MaxMultiple, ref double Money)
 {
     string[] strArray = this.AnalyseScheme_RX1(Number, PlayTypeID).Split(new char[] { '\n' });
     ArrayList list = new ArrayList();
     Money = 0.0;
     for (int i = 0; i < strArray.Length; i++)
     {
         string canonicalNumber = "";
         string[] strArray2 = this.ToSingle_RX2(strArray[i], ref canonicalNumber);
         if (strArray2 == null)
         {
             return null;
         }
         if (strArray2.Length == 0)
         {
             return null;
         }
         int num2 = 0;
         if ((Multiple % MaxMultiple) != 0)
         {
             num2 = ((Multiple - (Multiple % MaxMultiple)) / MaxMultiple) + 1;
         }
         else
         {
             num2 = Multiple / MaxMultiple;
         }
         int multiple = 1;
         double num4 = 0.0;
         for (int k = 1; k < (num2 + 1); k++)
         {
             if ((k * MaxMultiple) < Multiple)
             {
                 multiple = MaxMultiple;
             }
             else
             {
                 multiple = Multiple - ((k - 1) * MaxMultiple);
             }
             for (int m = 0; m < strArray2.Length; m += 5)
             {
                 string number = "";
                 num4 = 0.0;
                 for (int n = 0; n < 5; n++)
                 {
                     if (((m + n) < strArray2.Length) && !string.IsNullOrEmpty(strArray2[m + n].ToString()))
                     {
                         number = number + strArray2[m + n].ToString();
                         num4 += 2.0;
                     }
                 }
                 Money += num4 * multiple;
                 list.Add(new JTicket(0x13c, this.ConvertFormatToElectronTicket_HPJX(PlayTypeID, number), multiple, num4 * multiple));
             }
         }
     }
     JTicket[] ticketArray = new JTicket[list.Count];
     for (int j = 0; j < ticketArray.Length; j++)
     {
         ticketArray[j] = (JTicket)list[j];
     }
     return ticketArray;
 }
开发者ID:NoobSkie,项目名称:taobao-shop-helper,代码行数:62,代码来源:JXSSC.cs

示例5: ToElectronicTicket_HPSD_ZuQ3

 private JTicket[] ToElectronicTicket_HPSD_ZuQ3(int PlayTypeID, string Number, int Multiple, int MaxMultiple, ref double Money)
 {
     string[] strArray = this.AnalyseScheme_ZuQ3(Number, PlayTypeID).Split(new char[] { '\n' });
     if (strArray == null)
     {
         return null;
     }
     if (strArray.Length == 0)
     {
         return null;
     }
     Money = 0.0;
     int num = 0;
     if ((Multiple % MaxMultiple) != 0)
     {
         num = ((Multiple - (Multiple % MaxMultiple)) / MaxMultiple) + 1;
     }
     else
     {
         num = Multiple / MaxMultiple;
     }
     ArrayList list = new ArrayList();
     int multiple = 1;
     double num3 = 0.0;
     for (int i = 1; i < (num + 1); i++)
     {
         if ((i * MaxMultiple) < Multiple)
         {
             multiple = MaxMultiple;
         }
         else
         {
             multiple = Multiple - ((i - 1) * MaxMultiple);
         }
         string number = "";
         num3 = 0.0;
         string str2 = "";
         double num5 = 0.0;
         int num6 = 0;
         for (int k = 0; k < strArray.Length; k++)
         {
             if (strArray[k].ToString().Split(new char[] { '|' }).Length >= 2)
             {
                 if (double.Parse(strArray[k].ToString().Split(new char[] { '|' })[1]) == 1.0)
                 {
                     number = number + strArray[k].ToString().Split(new char[] { '|' })[0] + "\n";
                     num3 += 2.0 * double.Parse(strArray[k].ToString().Split(new char[] { '|' })[1]);
                     num6++;
                     if ((num6 == 5) || (k == (strArray.Length - 1)))
                     {
                         Money += num3 * multiple;
                         list.Add(new JTicket(12, this.ConvertFormatToElectronTicket_HPSD(PlayTypeID, number), multiple, num3 * multiple));
                         number = "";
                         num3 = 0.0;
                         num6 = 0;
                     }
                 }
                 else
                 {
                     str2 = strArray[k].ToString().Split(new char[] { '|' })[0] + "\n";
                     num5 = 2.0 * double.Parse(strArray[k].ToString().Split(new char[] { '|' })[1]);
                     Money += num5 * multiple;
                     list.Add(new JTicket(12, this.ConvertFormatToElectronTicket_HPSD(PlayTypeID, str2), multiple, num5 * multiple));
                 }
             }
         }
         if (number != "")
         {
             Money += num3 * multiple;
             list.Add(new JTicket(12, this.ConvertFormatToElectronTicket_HPSD(PlayTypeID, number), multiple, num3 * multiple));
         }
     }
     JTicket[] ticketArray = new JTicket[list.Count];
     for (int j = 0; j < ticketArray.Length; j++)
     {
         ticketArray[j] = (JTicket)list[j];
     }
     return ticketArray;
 }
开发者ID:NoobSkie,项目名称:taobao-shop-helper,代码行数:79,代码来源:SYYDJ.cs

示例6: ToElectronicTicket_HPSD_Zhi_F

 private JTicket[] ToElectronicTicket_HPSD_Zhi_F(int PlayTypeID, string Number, int Multiple, int MaxMultiple, ref double Money)
 {
     string[] strArray = this.AnalyseScheme(Number, PlayTypeID).Split(new char[] { '\n' });
     if (strArray == null)
     {
         return null;
     }
     if (strArray.Length == 0)
     {
         return null;
     }
     string canonicalNumber = "";
     ArrayList list = new ArrayList();
     if (PlayTypeID == 0x189e)
     {
         for (int k = 0; k < strArray.Length; k++)
         {
             string[] strArray2 = this.ToSingle_3(strArray[k].Split(new char[] { '|' })[0], ref canonicalNumber);
             for (int m = 0; m < strArray2.Length; m++)
             {
                 list.Add(strArray2[m]);
             }
         }
     }
     if (PlayTypeID == 0x18a2)
     {
         for (int n = 0; n < strArray.Length; n++)
         {
             string[] strArray3 = this.ToSingle_ZhiH(strArray[n].Split(new char[] { '|' })[0], ref canonicalNumber);
             for (int num4 = 0; num4 < strArray3.Length; num4++)
             {
                 list.Add(strArray3[num4]);
             }
         }
     }
     ArrayList list2 = new ArrayList();
     Money = 0.0;
     int num5 = 0;
     if ((Multiple % MaxMultiple) != 0)
     {
         num5 = ((Multiple - (Multiple % MaxMultiple)) / MaxMultiple) + 1;
     }
     else
     {
         num5 = Multiple / MaxMultiple;
     }
     int multiple = 1;
     double num7 = 0.0;
     for (int i = 1; i < (num5 + 1); i++)
     {
         if ((i * MaxMultiple) < Multiple)
         {
             multiple = MaxMultiple;
         }
         else
         {
             multiple = Multiple - ((i - 1) * MaxMultiple);
         }
         for (int num9 = 0; num9 < list.Count; num9 += 5)
         {
             string number = "";
             num7 = 0.0;
             for (int num10 = 0; num10 < 5; num10++)
             {
                 if (((num9 + num10) < list.Count) && (list[num9 + num10].ToString().Length >= 2))
                 {
                     number = number + list[num9 + num10].ToString() + "\n";
                     num7 = 2 * (num10 + 1);
                 }
             }
             Money += num7 * multiple;
             list2.Add(new JTicket(0xc9, this.ConvertFormatToElectronTicket_HPSD(PlayTypeID, number), multiple, num7 * multiple));
         }
     }
     JTicket[] ticketArray = new JTicket[list2.Count];
     for (int j = 0; j < ticketArray.Length; j++)
     {
         ticketArray[j] = (JTicket)list2[j];
     }
     return ticketArray;
 }
开发者ID:NoobSkie,项目名称:taobao-shop-helper,代码行数:81,代码来源:SZPL3.cs

示例7: ToElectronicTicket_HPSD_2_F

 private JTicket[] ToElectronicTicket_HPSD_2_F(int PlayTypeID, string Number, int Multiple, int MaxMultiple, ref double Money)
 {
     string[] strArray = this.AnalyseScheme(Number, PlayTypeID).Split(new char[] { '\n' });
     if (strArray == null)
     {
         return null;
     }
     if (strArray.Length == 0)
     {
         return null;
     }
     Money = 0.0;
     int num = 0;
     if ((Multiple % MaxMultiple) != 0)
     {
         num = ((Multiple - (Multiple % MaxMultiple)) / MaxMultiple) + 1;
     }
     else
     {
         num = Multiple / MaxMultiple;
     }
     ArrayList list = new ArrayList();
     int multiple = 1;
     double num3 = 0.0;
     for (int i = 1; i < (num + 1); i++)
     {
         if ((i * MaxMultiple) < Multiple)
         {
             multiple = MaxMultiple;
         }
         else
         {
             multiple = Multiple - ((i - 1) * MaxMultiple);
         }
         for (int k = 0; k < strArray.Length; k++)
         {
             string number = "";
             num3 = 0.0;
             ArrayList list2 = new ArrayList();
             string[] strArray2 = strArray[k].Split(new char[] { ' ' });
             int length = strArray2.Length;
             for (int m = 0; m < (length - 1); m++)
             {
                 for (int num8 = m + 1; num8 < length; num8++)
                 {
                     list2.Add(strArray2[m] + " " + strArray2[num8]);
                 }
             }
             for (int n = 0; n < list2.Count; n++)
             {
                 number = number + list2[n].ToString().Split(new char[] { '|' })[0] + "\n";
                 num3 = 2.0 * double.Parse(strArray[k].ToString().Split(new char[] { '|' })[1]);
             }
             Money += num3 * multiple;
             list.Add(new JTicket(0x69, this.ConvertFormatToElectronTicket_HPSD(PlayTypeID, number), multiple, num3 * multiple));
         }
     }
     JTicket[] ticketArray = new JTicket[list.Count];
     for (int j = 0; j < ticketArray.Length; j++)
     {
         ticketArray[j] = (JTicket)list[j];
     }
     return ticketArray;
 }
开发者ID:NoobSkie,项目名称:taobao-shop-helper,代码行数:64,代码来源:TCCJDLT.cs


注:本文中的J.SLS.Business.JTicket类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。