@* For more information on enabling MVC for empty projects, visit http://go.microsoft.com/fwlink/?LinkID=397860 *@ @using LotteryWebApp.Languages; @using LotteryWebApp.Components; @using LotteryWebApp.Common; @using System.Globalization; @model LotoNumberModel @{ string endDate = DateTime.ParseExact(Model.data.date_end, "dd/MM/yyyy HH:mm:ss", CultureInfo.InvariantCulture).ToString("dd/MM/yyyy"); string endTime = DateTime.ParseExact(Model.data.date_end, "dd/MM/yyyy HH:mm:ss", CultureInfo.InvariantCulture).ToString("HH:mm"); string drawnDate = DateTime.ParseExact(Model.data.date_random, "dd/MM/yyyy HH:mm:ss", CultureInfo.InvariantCulture).ToString("dd/MM/yyyy"); }
@{ if (Model.type == Constants.NEW_YORK_NUMBERS_CODE) { } else if (Model.type == Constants.NEW_YORK_WIN4_CODE) { } else if (Model.type == Constants.NEW_YORK_BOLET_CODE) { } else if (Model.type == Constants.NEW_YORK_MAYRAJ_CODE) { } else if (Model.type == Constants.NEW_YORK_LOTTO3_CODE) { } else if (Model.type == Constants.FLORIDA_PICK3_CODE) { } else if (Model.type == Constants.FLORIDA_PICK4_CODE) { } else if (Model.type == Constants.FLORIDA_BOLET_CODE) { } else if (Model.type == Constants.FLORIDA_MAYRAJ_CODE) { } else if (Model.type == Constants.FLORIDA_LOTTO3_CODE) { } else if (Model.type == Constants.BOULCHANS_CODE) {
#@Model.data.id
} }
@if (Model.type != Constants.BOULCHANS_CODE) { if (Model.data.isEvening == Constants.EVENING_CODE) { } else { } } @if (Model.type == Constants.BOULCHANS_CODE) {
@endDate
@endTime
} else {
@drawnDate
}
@{ string[] number = new String[] { }; if (Model.type == Constants.NEW_YORK_NUMBERS_CODE || Model.type == Constants.FLORIDA_PICK3_CODE) { number = Model.data.numberGame.Split(Model.data.split); } else if (Model.type == Constants.NEW_YORK_WIN4_CODE || Model.type == Constants.FLORIDA_PICK4_CODE) { number = Model.data.win4Game.Split(Model.data.split); } else if (Model.type == Constants.NEW_YORK_BOLET_CODE || Model.type == Constants.FLORIDA_BOLET_CODE) { number = Model.data.bolet.Split(Model.data.split); } else if (Model.type == Constants.NEW_YORK_MAYRAJ_CODE || Model.type == Constants.FLORIDA_MAYRAJ_CODE) { number = Model.data.mariaj.Split(Model.data.split); } else if (Model.type == Constants.NEW_YORK_LOTTO3_CODE || Model.type == Constants.FLORIDA_LOTTO3_CODE) { number = Model.data.lotto3.Split(Model.data.split); } else if (Model.type == Constants.BOULCHANS_CODE) { var myList = new List(); myList.Add(Model.data.result); var myArray = myList.ToArray(); number = Model.data.result.Split("-"); } for (int i = 0; i < number.Length; i++) {
@{ if (Model.type == Constants.NEW_YORK_NUMBERS_CODE) { } else if (Model.type == Constants.NEW_YORK_WIN4_CODE) { } else if (Model.type == Constants.NEW_YORK_BOLET_CODE) { } else if (Model.type == Constants.NEW_YORK_MAYRAJ_CODE) { } else if (Model.type == Constants.NEW_YORK_LOTTO3_CODE) { } else if (Model.type == Constants.FLORIDA_PICK3_CODE) { } else if (Model.type == Constants.FLORIDA_PICK4_CODE) { } else if (Model.type == Constants.FLORIDA_BOLET_CODE) { } else if (Model.type == Constants.FLORIDA_MAYRAJ_CODE) { } else if (Model.type == Constants.FLORIDA_LOTTO3_CODE) { } else if (Model.type == Constants.BOULCHANS_CODE) { if (i == 0) { } else { } } }
@number[i]
} }
@{ if (Model.type == Constants.FLORIDA_LOTTO3_CODE || Model.type == Constants.NEW_YORK_LOTTO3_CODE) { //* X from 0 to 9 } }
@{ if (Model.type == Constants.NEW_YORK_NUMBERS_CODE || Model.type == Constants.NEW_YORK_WIN4_CODE || Model.type == Constants.FLORIDA_PICK3_CODE || Model.type == Constants.FLORIDA_PICK4_CODE) { } else { string ticketType = null; if (Model.type == Constants.NEW_YORK_BOLET_CODE || Model.type == Constants.FLORIDA_BOLET_CODE) { ticketType = Constants.BOLET_CODE; } else if (Model.type == Constants.NEW_YORK_MAYRAJ_CODE || Model.type == Constants.FLORIDA_MAYRAJ_CODE) { ticketType = Constants.MAYRAJ_CODE; } else if (Model.type == Constants.NEW_YORK_LOTTO3_CODE || Model.type == Constants.FLORIDA_LOTTO3_CODE) { ticketType = Constants.LOTTO3_CODE; } else if (Model.type == Constants.BOULCHANS_CODE) { ticketType = Constants.BOULCHANS_CODE; }
} }