Ejemplo n.º 1
0
 public static MatchNew FindMatchByMatchBetViaMatchingIDIgnoreColor(MatchBetNew new1, List<MatchNew> list1)
 {
     MatchNew newww3 = new MatchNew();
     MatchNew new4 = new MatchNew();
     if ((new1.get_HomeMatchingID() > 0) & (new1.get_AwayMatchingID() > 0))
     {
         new1.GenerateUpperCaseInfo();
         if (new1.get_BetCoverage() == EnumCollection.eBetCoverage.FT)
         {
             if (new1.get_BetType() == EnumCollection.eBetType.HDP)
             {
                 foreach (MatchNew new3 in list1)
                 {
                     if ((((new3.get_Type() == EnumCollection.eMatchType.Match) & (new3.get_HomeMatchingID() > 0)) & (new3.get_AwayMatchingID() > 0)) && (((new1.get_HomeMatchingID() == new3.get_HomeMatchingID()) & (new1.get_AwayMatchingID() == new3.get_AwayMatchingID())) & (new1.get_HDP() == new3.get_FTHDP())))
                     {
                         return new3;
                     }
                 }
                 return new4;
             }
             foreach (MatchNew new3 in list1)
             {
                 if ((((new3.get_Type() == EnumCollection.eMatchType.Match) & (new3.get_HomeMatchingID() > 0)) & (new3.get_AwayMatchingID() > 0)) && (((new1.get_HomeMatchingID() == new3.get_HomeMatchingID()) & (new1.get_AwayMatchingID() == new3.get_AwayMatchingID())) & (new1.get_HDP() == new3.get_FTOU())))
                 {
                     return new3;
                 }
             }
             return new4;
         }
         if (new1.get_BetType() == EnumCollection.eBetType.HDP)
         {
             foreach (MatchNew new3 in list1)
             {
                 if ((((new3.get_Type() == EnumCollection.eMatchType.Match) & (new3.get_HomeMatchingID() > 0)) & (new3.get_AwayMatchingID() > 0)) && (((new1.get_HomeMatchingID() == new3.get_HomeMatchingID()) & (new1.get_AwayMatchingID() == new3.get_AwayMatchingID())) & (new1.get_HDP() == new3.get_HalfHDP())))
                 {
                     return new3;
                 }
             }
             return new4;
         }
         foreach (MatchNew new3 in list1)
         {
             if ((((new3.get_Type() == EnumCollection.eMatchType.Match) & (new3.get_HomeMatchingID() > 0)) & (new3.get_AwayMatchingID() > 0)) && (((new1.get_HomeMatchingID() == new3.get_HomeMatchingID()) & (new1.get_AwayMatchingID() == new3.get_AwayMatchingID())) & (new1.get_HDP() == new3.get_HalfOU())))
             {
                 return new3;
             }
         }
     }
     return new4;
 }
Ejemplo n.º 2
0
 public static MatchNew FindMatchByMatchBetFuzzyIgnoreColor(MatchBetNew new1, List<MatchNew> list1)
 {
     MatchNew new3 = new MatchNew();
     MatchNew new4 = new MatchNew();
     new1.GenerateUpperCaseInfo();
     if (new1.get_BetCoverage() == EnumCollection.eBetCoverage.FT)
     {
         if (new1.get_BetType() == EnumCollection.eBetType.HDP)
         {
             foreach (MatchNew neww3 in list1)
             {
                 if ((neww3.get_Type() == EnumCollection.eMatchType.Match) && ((CommonFunction.isFuzzyEqual(new1.get_HomeNameUpper(), neww3.get_HomeName().ToUpper()) & CommonFunction.isFuzzyEqual(new1.get_AwayNameUpper(), neww3.get_AwayName().ToUpper())) & (new1.get_HDP() == neww3.get_FTHDP())))
                 {
                     return neww3;
                 }
             }
             return new4;
         }
         foreach (MatchNew neww3 in list1)
         {
             if ((neww3.get_Type() == EnumCollection.eMatchType.Match) && ((CommonFunction.isFuzzyEqual(new1.get_HomeNameUpper(), neww3.get_HomeName().ToUpper()) & CommonFunction.isFuzzyEqual(new1.get_AwayNameUpper(), neww3.get_AwayName().ToUpper())) & (new1.get_HDP() == neww3.get_FTOU())))
             {
                 return neww3;
             }
         }
         return new4;
     }
     if (new1.get_BetType() == EnumCollection.eBetType.HDP)
     {
         foreach (MatchNew neww3 in list1)
         {
             if ((neww3.get_Type() == EnumCollection.eMatchType.Match) && ((CommonFunction.isFuzzyEqual(new1.get_HomeNameUpper(), neww3.get_HomeName().ToUpper()) & CommonFunction.isFuzzyEqual(new1.get_AwayNameUpper(), neww3.get_AwayName().ToUpper())) & (new1.get_HDP() == neww3.get_HalfHDP())))
             {
                 return neww3;
             }
         }
         return new4;
     }
     foreach (MatchNew neww3 in list1)
     {
         if ((neww3.get_Type() == EnumCollection.eMatchType.Match) && ((CommonFunction.isFuzzyEqual(new1.get_HomeNameUpper(), neww3.get_HomeName().ToUpper()) & CommonFunction.isFuzzyEqual(new1.get_AwayNameUpper(), neww3.get_AwayName().ToUpper())) & (new1.get_HDP() == neww3.get_HalfOU())))
         {
             return neww3;
         }
     }
     return new4;
 }
Ejemplo n.º 3
0
        public static MatchNew FindMatchByMatchBetSingleName(MatchBetNew new1, List<MatchNew> list1)
        {
            MatchNew neww3 = new MatchNew();
            MatchNew new4 = new MatchNew();
            new1.GenerateUpperCaseInfo();
            if (new1.get_BetCoverage() == EnumCollection.eBetCoverage.FT)
            {
                if (new1.get_BetType() == EnumCollection.eBetType.HDP)
                {
                    foreach (MatchNew new3 in list1)
                    {
                        if ((new3.get_Type() == EnumCollection.eMatchType.Match) && (((((new1.get_HomeNameUpper() == new3.get_HomeName().ToUpper()) | (new1.get_AwayNameUpper() == new3.get_AwayName().ToUpper())) & (new1.get_HDP() == new3.get_FTHDP())) & (new1.get_HomeColor() == new3.get_FTHomeColor())) & (new1.get_AwayColor() == new3.get_FTAwayColor())))
                        {
                            return new3;
                        }
                    }
                    return new4;
                }
                foreach (MatchNew new3 in list1)
                {
                    if ((new3.get_Type() == EnumCollection.eMatchType.Match) && (((new1.get_HomeNameUpper() == new3.get_HomeName().ToUpper()) | (new1.get_AwayNameUpper() == new3.get_AwayName().ToUpper())) & (new1.get_HDP() == new3.get_FTOU())))
                    {
                        return new3;
                    }
                }
                return new4;
            }
            if (new1.get_BetType() == EnumCollection.eBetType.HDP)
            {
                foreach (MatchNew new3 in list1)
                {
                    if ((new3.get_Type() == EnumCollection.eMatchType.Match) && ((((new1.get_HomeNameUpper() == new3.get_HomeName().ToUpper()) | (new1.get_AwayNameUpper() == new3.get_AwayName().ToUpper())) & (new1.get_HDP() == new3.get_HalfHDP())) & ((((new1.get_HomeColor() == new3.get_HalfHomeColor()) & (new1.get_AwayColor() == new3.get_HalfAwayColor())) & (new1.get_HDP() != "0.0")) | (new1.get_HDP() == "0.0"))))
                    {
                        return new3;
                    }
                }
                return new4;
            }

            foreach (MatchNew new3 in list1)
            {
                if ((new3.get_Type() == EnumCollection.eMatchType.Match) && (((new1.get_HomeNameUpper() == new3.get_HomeName().ToUpper()) | (new1.get_AwayNameUpper() == new3.get_AwayName().ToUpper())) & (new1.get_HDP() == new3.get_HalfOU())))
                {
                    return new3;
                }
            }
            return new4;
        }
Ejemplo n.º 4
0
 public MatchBetNew Clone()
 {
     MatchBetNew new3 = new MatchBetNew();
     new3.set_CreateDate(this._datCreate);
     new3.set_SportType(this._objSportType);
     new3.set_MatchID(this._strMatchID);
     new3.set_ID(this._strID);
     new3.set_ID2(this._strID2);
     new3.set_Company(this._strCompany);
     new3.set_League(this._strLeague);
     new3.set_HomeName(this._strHomeName);
     new3.set_AwayName(this._strAwayName);
     new3.set_SelectedMatch(this._strMatchSelected);
     new3.set_HomeColor(this._clrHome);
     new3.set_AwayColor(this._clrAway);
     new3.set_HomeBetLink(this._strHomeBetLink);
     new3.set_AwayBetLink(this._strAwayBetLink);
     new3.set_SelectedBetLink(this._strSelectedBetLink);
     new3.set_MatchDate(this._strMatchDate);
     new3.set_BetDate(this._strBetDate);
     new3.set_HDP(this._strHdp);
     new3.set_Odds(this._dblOdds);
     new3.set_BetAmount(this._strAmount);
     new3.set_OddsType(this._objOddsType);
     new3.set_BetCoverage(this._objBetCoverage);
     new3.set_BetType(this._objBetType);
     new3.set_BetTarget(this._objBetTarget);
     new3.set_BetFollowMethod(this._objBetFollowMethod);
     new3.set_MemberName(this._strMemberName);
     new3.set_MaxBetAmount(this._strMaxBet);
     new3.set_HomeScore(this._intHomeScore);
     new3.set_AwayScore(this._intAwayScore);
     new3.set_Description(this._strDescription);
     new3.set_HomeMatchingID(this._intHomeMatchingID);
     new3.set_AwayMatchingID(this._intAwayMatchingID);
     new3.set_HomeMatchingName(this._strHomeMatchingName);
     new3.set_AwayMatchingName(this._strAwayMatchingName);
     new3.set_LeagueMatchingID(this._intLeagueMatchingID);
     new3.set_GameType(this._objGameType);
     new3.set_RunningStatus(this._objRunningStatus);
     new3.set_EstimatePayout(this._dclEstimatePayout);
     new3.set_MatchResult(this._objMatchResult);
     if (this._objMatchResultInfo != null)
     {
         new3.set_MatchResultInfo(this._objMatchResultInfo.CloneObject());
     }
     new3.set_Company(this._strCompany);
     new3.set_ReceiptID(this._strReceiptID);
     new3.set_IPAddress(this._strIPAddress);
     new3.set_ClientName(this._strClientName);
     new3.set_IsUpdated(this.get_IsUpdated());
     new3.set_UniqueID(this.get_UniqueID());
     new3.set_ReceiptStatus(this._objReceiptStatus);
     new3.set_IsReceiptOccupied(this._isReceiptOccupied);
     new3.set_Info1(this.get_Info1());
     new3.set_Info2(this.get_Info2());
     new3.set_Info3(this.get_Info3());
     new3.set_Info4(this.get_Info4());
     new3.GenerateUpperCaseInfo();
     return new3;
 }