TermResultHistory.cshtml 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  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.AFTERNOON_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
  56. {
  57. @await Component.InvokeAsync("LotoNumberHistory", new {data= data_one, type = Constants.FLORIDA_PICK3_CODE,})
  58. @await Component.InvokeAsync("LotoNumberHistory", new {data= data_two, type = Constants.FLORIDA_PICK4_CODE,})
  59. @await Component.InvokeAsync("LotoNumberHistory", new {data= bolet, type = Constants.FLORIDA_BOLET_CODE,})
  60. @await Component.InvokeAsync("LotoNumberHistory", new {data= mayraj, type = Constants.FLORIDA_MAYRAJ_CODE,})
  61. @await Component.InvokeAsync("LotoNumberHistory", new {data= lotto3, type = Constants.FLORIDA_LOTTO3_CODE,})
  62. }
  63. }
  64. </div>
  65. </div>
  66. </div>
  67. <hr class="line2" style=" margin: -5px 10px 15px 10px;" />
  68. }
  69. }