本文整理汇总了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("", ticket.TransId.ToString(), "","", ticket.RefNo, "");" };
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;
}
示例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);
}
示例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;
}
示例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);
}
示例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 };
}
示例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);
}
示例7: BuildBetType
protected override void BuildBetType(ITicket ticket, ITicketHelper ticketHelper, List<ITicketData> ticketData)
{
Template.BetType.betTypeName = ticketHelper.GetBetTypeNameById(ticket.BetTypeId, ticket.BetId);
}
示例8: GetBetTypeName
protected virtual string GetBetTypeName(int betTypeId, ITicketHelper ticketHelper)
{
return ticketHelper.GetBetTypeNameById(betTypeId);
}
示例9: BuildBetTypeName
private string BuildBetTypeName(int betTypeId, ITicketHelper ticketHelper)
{
var betTypeName = ticketHelper.GetBetTypeNameById(betTypeId);
return string.Format("{0}{1}{2}", OpenBetTypeNameTag, betTypeName, CloseBetTypeNameTag);
}
示例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;
}