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


C# ITicketHelper.GetBetTypeNameById方法代码示例

本文整理汇总了C#中ITicketHelper.GetBetTypeNameById方法的典型用法代码示例。如果您正苦于以下问题:C# ITicketHelper.GetBetTypeNameById方法的具体用法?C# ITicketHelper.GetBetTypeNameById怎么用?C# ITicketHelper.GetBetTypeNameById使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在ITicketHelper的用法示例。


在下文中一共展示了ITicketHelper.GetBetTypeNameById方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: Render

        /// <summary>
        /// Renders the specified ticket.
        /// </summary>
        /// <param name="ticket">The ticket.</param>
        /// <param name="ticketHelper">The ticket helper.</param>
        /// <param name="ticketData">The ticket data.</param>
        /// <param name="isShowScoreMap">If set to <c>true</c> [is show score map].</param>
        /// <returns>Choice_Template object.</returns>
        public override Choice_Template Render(ITicket ticket, ITicketHelper ticketHelper, List<ITicketData> ticketData, bool isShowScoreMap)
        {
            string betTypeName = ticketHelper.GetBetTypeNameById(ticket.BetTypeId);
            string clientMixParlayDetailFunction;
            string[] components;

            if (string.IsNullOrWhiteSpace(ticketHelper.ClientMixParlaySubbetsDetailFunction))
            {
                components = new string[] { "javascript:showMP(&quot;", ticket.TransId.ToString(), "&quot;,&quot;", ticket.RefNo, "&quot;);" };
                clientMixParlayDetailFunction = string.Join(null, components);
            }
            else
            {
                clientMixParlayDetailFunction = ticketHelper.ClientMixParlaySubbetsDetailFunction;
            }

            components = new string[]
                            {
                                "<a id=\"hidden0\" href=\"",
                                clientMixParlayDetailFunction,
                                "\">",
                                betTypeName,
                                "</a>",
                                "<br/><br/>",
                                "<div id=\"divEvent_",
                                ticket.TransId.ToString(),
                                "\" style=\"display: none\" ></div>"
                            };

            string mixParlay = string.Join(null, components);

            Template.SetValue(mixParlay);

            return Template;
        }
开发者ID:huyjack178,项目名称:harrsion-project,代码行数:43,代码来源:Choice9.cs

示例2: BuildBetType

        protected override void BuildBetType(ITicket ticket, ITicketHelper ticketHelper, List<ITicketData> ticketData)
        {
            if (Template.BetType == null)
            {
                return;
            }

            Template.BetType.betTypeName = ticketHelper.GetBetTypeNameById(ticket.BetTypeId);
        }
开发者ID:huyjack178,项目名称:harrsion-project,代码行数:9,代码来源:Choice405.cs

示例3: BuildColossusBetsTransactionType

        public static string BuildColossusBetsTransactionType(int betTypeId, decimal cashOutPercent, ITicketHelper ticketHelper)
        {
            var betTypeName = ticketHelper.GetBetTypeNameById(betTypeId);

            if (betTypeId == CashOutBetTypeId
                && cashOutPercent > 0)
            {
                return string.Join(string.Empty, new string[] { betTypeName, " ", Formatter.DecFormat(cashOutPercent * 100, 0), "%" });
            }

            return betTypeName;
        }
开发者ID:huyjack178,项目名称:harrsion-project,代码行数:12,代码来源:BuilderExtension.cs

示例4: BuildChoice

        protected override void BuildChoice(ITicket ticket, ITicketHelper ticketHelper, List<ITicketData> ticketData)
        {
            string betTypeName = ticketHelper.GetBetTypeNameById(ticket.BetTypeId);
            string custid = ticket.CustId.ToString();
            string showColosussBetsDetailsHtml = BuildShowColossusBetsDetails(
                ticket.RefNo,
                ticket.WinlostDate.ToString(),
                ticket.TransId.ToString(),
                custid,
                ticket.BetCheck);

            string colosussBetsHtml = BuildColossusBetsHtml(betTypeName, showColosussBetsDetailsHtml);

            Template.SetValue(colosussBetsHtml);
        }
开发者ID:huyjack178,项目名称:harrsion-project,代码行数:15,代码来源:Choice18000.cs

示例5: RenderRTF

        public override List<IRichTextString> RenderRTF(
            ITicket ticket, 
            ITicketHelper ticketHelper, 
            List<ITicketData> ticketData, 
            bool isShowScoreMap, 
            RTFHelper rtfHelper)
        {
            RTFHelper tmpRtfHelper = rtfHelper.Clone();

            string betTypeName = ticketHelper.GetBetTypeNameById(ticket.BetTypeId);
            tmpRtfHelper.RTFRenderer.AddText(betTypeName, tmpRtfHelper.PosFont);

            var choice = tmpRtfHelper.RTFRenderer.Render();
            tmpRtfHelper.RTFRenderer.Clear();

            return new List<IRichTextString>() { choice };
        }
开发者ID:huyjack178,项目名称:harrsion-project,代码行数:17,代码来源:Choice18000.cs

示例6: BuildBetType

        protected override void BuildBetType(ITicket ticket, ITicketHelper ticketHelper, List<ITicketData> ticketData)
        {
            var parentBetTypeId = ticketHelper.GetParentIdByBetTypeId(ticket.BetTypeId);

            Template.BetType.betTypeName = ticketHelper.GetBetTypeNameById(parentBetTypeId);
        }
开发者ID:huyjack178,项目名称:harrsion-project,代码行数:6,代码来源:Choice406.cs

示例7: BuildBetType

 protected override void BuildBetType(ITicket ticket, ITicketHelper ticketHelper, List<ITicketData> ticketData)
 {
     Template.BetType.betTypeName = ticketHelper.GetBetTypeNameById(ticket.BetTypeId, ticket.BetId);
 }
开发者ID:huyjack178,项目名称:harrsion-project,代码行数:4,代码来源:Choice1304.cs

示例8: GetBetTypeName

 protected virtual string GetBetTypeName(int betTypeId, ITicketHelper ticketHelper)
 {
     return ticketHelper.GetBetTypeNameById(betTypeId);
 }
开发者ID:huyjack178,项目名称:harrsion-project,代码行数:4,代码来源:BaseChoiceBuilder.cs

示例9: BuildBetTypeName

        private string BuildBetTypeName(int betTypeId, ITicketHelper ticketHelper)
        {
            var betTypeName = ticketHelper.GetBetTypeNameById(betTypeId);

            return string.Format("{0}{1}{2}", OpenBetTypeNameTag, betTypeName, CloseBetTypeNameTag);
        }
开发者ID:huyjack178,项目名称:harrsion-project,代码行数:6,代码来源:Choice2001.cs

示例10: BuildSport

        protected override void BuildSport(ITicket ticket, ITicketHelper ticketHelper)
        {
            string kenoLeagueInfo = string.Join(null, new string[] { ticketHelper.GetBetTypeNameById(ticket.BetTypeId), " [", ticket.MatchId.ToString(), "]" });

            Template.League.LeagueName.leagueName = kenoLeagueInfo;
        }
开发者ID:huyjack178,项目名称:harrsion-project,代码行数:6,代码来源:Choice1501.cs


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