TermResultHistory.cshtml 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. @*
  2. For more information on enabling MVC for empty projects, visit http://go.microsoft.com/fwlink/?LinkID=397860
  3. *@
  4. @using LotteryWebApp.Languages;
  5. @using LotteryWebApp.Controllers;
  6. @using LotteryWebApp.Common;
  7. @using LotteryWebApp.Service;
  8. @model TermResultHistoryModel
  9. @{
  10. for (int i = 0; i < Model.listTerm.Count; i++)
  11. {
  12. Term term = Model.listTerm[i];
  13. string[] data_one = term.numberGame.Split(term.split);
  14. string[] data_two = term.win4Game.Split(term.split);
  15. string[] bolet = term.bolet.Split(term.split);
  16. string[] mayraj = term.mariaj.Split(term.split);
  17. string[] lotto3 = term.lotto3.Split(term.split);
  18. <div class="row">
  19. <div class="col-3" style="text-align:center; padding-left: 25px;">
  20. @{
  21. if (Model.termType != Constants.BOULCHANS_CODE)
  22. {
  23. if (term.isEvening == Constants.MORNING_CODE || term.isEvening == Constants.MIDDAY_CODE)
  24. {
  25. <img src="~/img/ico-sun 1.png" />
  26. }
  27. else
  28. {
  29. <img src="~/img/moon-lg 7.png" />
  30. }
  31. }
  32. }
  33. <h6>@term.date_random</h6>
  34. </div>
  35. <div class="col-9">
  36. <div>
  37. @{
  38. if (Model.termType == Constants.BOULCHANS_CODE)
  39. {
  40. string[] boulchains = new string[] { };
  41. var myList = new List<string>();
  42. myList.Add(term.result);
  43. var myArray = myList.ToArray();
  44. boulchains = myList.ToArray();
  45. @await Component.InvokeAsync("LotoNumberHistory", new {data= boulchains, term = term, type = Constants.BOULCHANS_CODE,})
  46. }
  47. else if (Model.termType == Constants.NEW_YORK_BOLET_CODE)
  48. {
  49. @await Component.InvokeAsync("LotoNumberHistory", new {data= data_one, type = Constants.NEW_YORK_NUMBERS_CODE,})
  50. @await Component.InvokeAsync("LotoNumberHistory", new {data= data_two, type = Constants.NEW_YORK_WIN4_CODE,})
  51. @await Component.InvokeAsync("LotoNumberHistory", new {data= bolet, type = Constants.NEW_YORK_BOLET_CODE,})
  52. @await Component.InvokeAsync("LotoNumberHistory", new {data= mayraj, type = Constants.NEW_YORK_MAYRAJ_CODE,})
  53. @await Component.InvokeAsync("LotoNumberHistory", new {data= lotto3, type = Constants.NEW_YORK_LOTTO3_CODE,})
  54. }
  55. else if (Model.termType == Constants.GEORGIA_BOLET_CODE)
  56. {
  57. @await Component.InvokeAsync("LotoNumberHistory", new { data = data_one, type = Constants.GEORGIA_CASH3_CODE, })
  58. @await Component.InvokeAsync("LotoNumberHistory", new { data = data_two, type = Constants.GEORGIA_CASH4_CODE, })
  59. @await Component.InvokeAsync("LotoNumberHistory", new { data = bolet, type = Constants.NEW_YORK_BOLET_CODE, })
  60. @await Component.InvokeAsync("LotoNumberHistory", new { data = mayraj, type = Constants.NEW_YORK_MAYRAJ_CODE, })
  61. @await Component.InvokeAsync("LotoNumberHistory", new { data = lotto3, type = Constants.NEW_YORK_LOTTO3_CODE, })
  62. }
  63. else if (Model.termType == Constants.TEXAS_BOLET_CODE)
  64. {
  65. @await Component.InvokeAsync("LotoNumberHistory", new { data = data_one, type = Constants.TEXAS_PICK3_CODE, })
  66. @await Component.InvokeAsync("LotoNumberHistory", new { data = data_two, type = Constants.TEXAS_DAILY4_CODE, })
  67. @await Component.InvokeAsync("LotoNumberHistory", new { data = bolet, type = Constants.NEW_YORK_BOLET_CODE, })
  68. @await Component.InvokeAsync("LotoNumberHistory", new { data = mayraj, type = Constants.NEW_YORK_MAYRAJ_CODE, })
  69. @await Component.InvokeAsync("LotoNumberHistory", new { data = lotto3, type = Constants.NEW_YORK_LOTTO3_CODE, })
  70. }
  71. else if (Model.termType == Constants.TENNESSEE_BOLET_CODE)
  72. {
  73. @await Component.InvokeAsync("LotoNumberHistory", new { data = data_one, type = Constants.TENNESSEE_CASH3_CODE, })
  74. @await Component.InvokeAsync("LotoNumberHistory", new { data = data_two, type = Constants.TENNESSEE_CASH4_CODE, })
  75. @await Component.InvokeAsync("LotoNumberHistory", new { data = bolet, type = Constants.NEW_YORK_BOLET_CODE, })
  76. @await Component.InvokeAsync("LotoNumberHistory", new { data = mayraj, type = Constants.NEW_YORK_MAYRAJ_CODE, })
  77. @await Component.InvokeAsync("LotoNumberHistory", new { data = lotto3, type = Constants.NEW_YORK_LOTTO3_CODE, })
  78. }
  79. else
  80. {
  81. @await Component.InvokeAsync("LotoNumberHistory", new {data= data_one, type = Constants.FLORIDA_PICK3_CODE,})
  82. @await Component.InvokeAsync("LotoNumberHistory", new {data= data_two, type = Constants.FLORIDA_PICK4_CODE,})
  83. @await Component.InvokeAsync("LotoNumberHistory", new {data= bolet, type = Constants.FLORIDA_BOLET_CODE,})
  84. @await Component.InvokeAsync("LotoNumberHistory", new {data= mayraj, type = Constants.FLORIDA_MAYRAJ_CODE,})
  85. @await Component.InvokeAsync("LotoNumberHistory", new {data= lotto3, type = Constants.FLORIDA_LOTTO3_CODE,})
  86. }
  87. }
  88. </div>
  89. </div>
  90. </div>
  91. <hr class="line2" style=" margin: -5px 10px 15px 10px;" />
  92. }
  93. }