#pragma warning disable 1998 public async override global::System.Threading.Tasks.Task ExecuteAsync() { BeginContext(80, 2, true); WriteLiteral("\r\n"); EndContext(); #line 4 "D:\Web Developer\BáoCáoWeb_17110324_NguyễnThanhLâm-17110281_TrầnHồngĐiệp\BookStore_17110324_NguyễnThanhLâm_17110281_TrầnHồngĐiệp\Areas\Customer\Views\Order\OrderPickup.cshtml" ViewData["Title"] = "Index"; Layout = "~/Views/Shared/_Layout.cshtml"; #line default #line hidden BeginContext(170, 2, true); WriteLiteral("\r\n"); EndContext(); BeginContext(172, 4736, false); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("form", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "75fa2c4e94744dc9beded6e6928d3291", async() => { BeginContext(191, 208, true); WriteLiteral("\r\n\r\n <br /><br />\r\n <h2 class=\"text-info\">Order Ready for Pickup : </h2>\r\n <div class=\"border backgroundWhite\">\r\n <div class=\"col-11\">\r\n <div class=\"row\" style=\"padding-top:10px\">\r\n"); EndContext(); BeginContext(795, 57, true); WriteLiteral(" <div class=\"col-4\">\r\n "); EndContext(); BeginContext(853, 111, false); #line 23 "D:\Web Developer\BáoCáoWeb_17110324_NguyễnThanhLâm-17110281_TrầnHồngĐiệp\BookStore_17110324_NguyễnThanhLâm_17110281_TrầnHồngĐiệp\Areas\Customer\Views\Order\OrderPickup.cshtml" Write(Html.Editor("searchEmail", new { htmlAttributes = new { @class = "form-control", @placeholder = "Email..." } })); #line default #line hidden EndContext(); BeginContext(964, 421, true); WriteLiteral(@" </div> </div> </div> <div class=""col-1""> <div class=""row"" style=""padding-top:10px;""> <button type=""submit"" name=""submit"" value=""Search"" class=""btn btn-info form-control""> <i class=""fas fa-search""></i> </button> </div> </div> </div> <div> <br /> <div> "); EndContext(); #line 39 "D:\Web Developer\BáoCáoWeb_17110324_NguyễnThanhLâm-17110281_TrầnHồngĐiệp\BookStore_17110324_NguyễnThanhLâm_17110281_TrầnHồngĐiệp\Areas\Customer\Views\Order\OrderPickup.cshtml" if (Model.Orders.Count() > 0) { #line default #line hidden BeginContext(1444, 168, true); WriteLiteral(" <table class=\"table table-striped border\">\r\n <tr class=\"table-secondary\">\r\n <th>\r\n "); EndContext(); BeginContext(1613, 48, false); #line 44 "D:\Web Developer\BáoCáoWeb_17110324_NguyễnThanhLâm-17110281_TrầnHồngĐiệp\BookStore_17110324_NguyễnThanhLâm_17110281_TrầnHồngĐiệp\Areas\Customer\Views\Order\OrderPickup.cshtml" Write(Html.DisplayNameFor(m => m.Orders[0].DonHang.Id)); #line default #line hidden EndContext(); BeginContext(1661, 91, true); WriteLiteral("\r\n </th>\r\n <th>\r\n "); EndContext(); BeginContext(1753, 56, false); #line 47 "D:\Web Developer\BáoCáoWeb_17110324_NguyễnThanhLâm-17110281_TrầnHồngĐiệp\BookStore_17110324_NguyễnThanhLâm_17110281_TrầnHồngĐiệp\Areas\Customer\Views\Order\OrderPickup.cshtml" Write(Html.DisplayNameFor(m => m.Orders[0].DonHang.PickupName)); #line default #line hidden EndContext(); BeginContext(1809, 91, true); WriteLiteral("\r\n </th>\r\n <th>\r\n "); EndContext(); BeginContext(1901, 61, false); #line 50 "D:\Web Developer\BáoCáoWeb_17110324_NguyễnThanhLâm-17110281_TrầnHồngĐiệp\BookStore_17110324_NguyễnThanhLâm_17110281_TrầnHồngĐiệp\Areas\Customer\Views\Order\OrderPickup.cshtml" Write(Html.DisplayNameFor(m => m.Orders[0].DonHang.KhachHang.Email)); #line default #line hidden EndContext(); BeginContext(1962, 91, true); WriteLiteral("\r\n </th>\r\n <th>\r\n "); EndContext(); BeginContext(2054, 60, false); #line 53 "D:\Web Developer\BáoCáoWeb_17110324_NguyễnThanhLâm-17110281_TrầnHồngĐiệp\BookStore_17110324_NguyễnThanhLâm_17110281_TrầnHồngĐiệp\Areas\Customer\Views\Order\OrderPickup.cshtml" Write(Html.DisplayNameFor(m => m.Orders[0].DonHang.ThanhToan.Name)); #line default #line hidden EndContext(); BeginContext(2114, 91, true); WriteLiteral("\r\n </th>\r\n <th>\r\n "); EndContext(); BeginContext(2206, 60, false); #line 56 "D:\Web Developer\BáoCáoWeb_17110324_NguyễnThanhLâm-17110281_TrầnHồngĐiệp\BookStore_17110324_NguyễnThanhLâm_17110281_TrầnHồngĐiệp\Areas\Customer\Views\Order\OrderPickup.cshtml" Write(Html.DisplayNameFor(m => m.Orders[0].DonHang.VanChuyen.Name)); #line default #line hidden EndContext(); BeginContext(2266, 91, true); WriteLiteral("\r\n </th>\r\n <th>\r\n "); EndContext(); BeginContext(2358, 55, false); #line 59 "D:\Web Developer\BáoCáoWeb_17110324_NguyễnThanhLâm-17110281_TrầnHồngĐiệp\BookStore_17110324_NguyễnThanhLâm_17110281_TrầnHồngĐiệp\Areas\Customer\Views\Order\OrderPickup.cshtml" Write(Html.DisplayNameFor(m => m.Orders[0].DonHang.OrderTime)); #line default #line hidden EndContext(); BeginContext(2413, 91, true); WriteLiteral("\r\n </th>\r\n <th>\r\n "); EndContext(); BeginContext(2505, 51, false); #line 62 "D:\Web Developer\BáoCáoWeb_17110324_NguyễnThanhLâm-17110281_TrầnHồngĐiệp\BookStore_17110324_NguyễnThanhLâm_17110281_TrầnHồngĐiệp\Areas\Customer\Views\Order\OrderPickup.cshtml" Write(Html.DisplayNameFor(m => m.Orders[0].DonHang.Total)); #line default #line hidden EndContext(); BeginContext(2556, 199, true); WriteLiteral("\r\n </th>\r\n <th>\r\n Total Items\r\n </th>\r\n <th></th>\r\n </tr>\r\n\r\n"); EndContext(); #line 70 "D:\Web Developer\BáoCáoWeb_17110324_NguyễnThanhLâm-17110281_TrầnHồngĐiệp\BookStore_17110324_NguyễnThanhLâm_17110281_TrầnHồngĐiệp\Areas\Customer\Views\Order\OrderPickup.cshtml" foreach (var item in Model.Orders) { #line default #line hidden BeginContext(2835, 96, true); WriteLiteral(" <tr>\r\n <td>\r\n "); EndContext(); BeginContext(2932, 37, false); #line 74 "D:\Web Developer\BáoCáoWeb_17110324_NguyễnThanhLâm-17110281_TrầnHồngĐiệp\BookStore_17110324_NguyễnThanhLâm_17110281_TrầnHồngĐiệp\Areas\Customer\Views\Order\OrderPickup.cshtml" Write(Html.DisplayFor(m => item.DonHang.Id)); #line default #line hidden EndContext(); BeginContext(2969, 103, true); WriteLiteral("\r\n </td>\r\n <td>\r\n "); EndContext(); BeginContext(3073, 45, false); #line 77 "D:\Web Developer\BáoCáoWeb_17110324_NguyễnThanhLâm-17110281_TrầnHồngĐiệp\BookStore_17110324_NguyễnThanhLâm_17110281_TrầnHồngĐiệp\Areas\Customer\Views\Order\OrderPickup.cshtml" Write(Html.DisplayFor(m => item.DonHang.PickupName)); #line default #line hidden EndContext(); BeginContext(3118, 103, true); WriteLiteral("\r\n </td>\r\n <td>\r\n "); EndContext(); BeginContext(3222, 50, false); #line 80 "D:\Web Developer\BáoCáoWeb_17110324_NguyễnThanhLâm-17110281_TrầnHồngĐiệp\BookStore_17110324_NguyễnThanhLâm_17110281_TrầnHồngĐiệp\Areas\Customer\Views\Order\OrderPickup.cshtml" Write(Html.DisplayFor(m => item.DonHang.KhachHang.Email)); #line default #line hidden EndContext(); BeginContext(3272, 103, true); WriteLiteral("\r\n </td>\r\n <td>\r\n "); EndContext(); BeginContext(3376, 49, false); #line 83 "D:\Web Developer\BáoCáoWeb_17110324_NguyễnThanhLâm-17110281_TrầnHồngĐiệp\BookStore_17110324_NguyễnThanhLâm_17110281_TrầnHồngĐiệp\Areas\Customer\Views\Order\OrderPickup.cshtml" Write(Html.DisplayFor(m => item.DonHang.ThanhToan.Name)); #line default #line hidden EndContext(); BeginContext(3425, 103, true); WriteLiteral("\r\n </td>\r\n <td>\r\n "); EndContext(); BeginContext(3529, 49, false); #line 86 "D:\Web Developer\BáoCáoWeb_17110324_NguyễnThanhLâm-17110281_TrầnHồngĐiệp\BookStore_17110324_NguyễnThanhLâm_17110281_TrầnHồngĐiệp\Areas\Customer\Views\Order\OrderPickup.cshtml" Write(Html.DisplayFor(m => item.DonHang.VanChuyen.Name)); #line default #line hidden EndContext(); BeginContext(3578, 103, true); WriteLiteral("\r\n </td>\r\n <td>\r\n "); EndContext(); BeginContext(3682, 44, false); #line 89 "D:\Web Developer\BáoCáoWeb_17110324_NguyễnThanhLâm-17110281_TrầnHồngĐiệp\BookStore_17110324_NguyễnThanhLâm_17110281_TrầnHồngĐiệp\Areas\Customer\Views\Order\OrderPickup.cshtml" Write(Html.DisplayFor(m => item.DonHang.OrderTime)); #line default #line hidden EndContext(); BeginContext(3726, 103, true); WriteLiteral("\r\n </td>\r\n <td>\r\n "); EndContext(); BeginContext(3830, 40, false); #line 92 "D:\Web Developer\BáoCáoWeb_17110324_NguyễnThanhLâm-17110281_TrầnHồngĐiệp\BookStore_17110324_NguyễnThanhLâm_17110281_TrầnHồngĐiệp\Areas\Customer\Views\Order\OrderPickup.cshtml" Write(Html.DisplayFor(m => item.DonHang.Total)); #line default #line hidden EndContext(); BeginContext(3870, 103, true); WriteLiteral("\r\n </td>\r\n <td>\r\n "); EndContext(); BeginContext(3974, 45, false); #line 95 "D:\Web Developer\BáoCáoWeb_17110324_NguyễnThanhLâm-17110281_TrầnHồngĐiệp\BookStore_17110324_NguyễnThanhLâm_17110281_TrầnHồngĐiệp\Areas\Customer\Views\Order\OrderPickup.cshtml" Write(Html.DisplayFor(m => item.OrderDetails.Count)); #line default #line hidden EndContext(); BeginContext(4019, 171, true); WriteLiteral("\r\n </td>\r\n <td>\r\n <button type=\"button\" class=\"btn btn-success anchorDetail\" data-id=\""); EndContext(); BeginContext(4191, 15, false); #line 98 "D:\Web Developer\BáoCáoWeb_17110324_NguyễnThanhLâm-17110281_TrầnHồngĐiệp\BookStore_17110324_NguyễnThanhLâm_17110281_TrầnHồngĐiệp\Areas\Customer\Views\Order\OrderPickup.cshtml" Write(item.DonHang.Id); #line default #line hidden EndContext(); BeginContext(4206, 210, true); WriteLiteral("\" data-toggle=\"modal\">\r\n <i class=\"far fa-list-alt\"></i> Details\r\n </button>\r\n </td>\r\n </tr>\r\n"); EndContext(); #line 103 "D:\Web Developer\BáoCáoWeb_17110324_NguyễnThanhLâm-17110281_TrầnHồngĐiệp\BookStore_17110324_NguyễnThanhLâm_17110281_TrầnHồngĐiệp\Areas\Customer\Views\Order\OrderPickup.cshtml" } #line default #line hidden BeginContext(4439, 42, true); WriteLiteral(" </table>\r\n "); EndContext(); BeginContext(4481, 264, false); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("div", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "87a56f131ca24439b0b6385dfbd75f2f", async() => { BeginContext(4719, 20, true); WriteLiteral("\r\n\r\n "); EndContext(); } ); __BookStore_TagHelpers_PageLinkTagHelper = CreateTagHelper <global::BookStore.TagHelpers.PageLinkTagHelper>(); __tagHelperExecutionContext.Add(__BookStore_TagHelpers_PageLinkTagHelper); #line 105 "D:\Web Developer\BáoCáoWeb_17110324_NguyễnThanhLâm-17110281_TrầnHồngĐiệp\BookStore_17110324_NguyễnThanhLâm_17110281_TrầnHồngĐiệp\Areas\Customer\Views\Order\OrderPickup.cshtml" __BookStore_TagHelpers_PageLinkTagHelper.PageModel = Model.PagingInfo; #line default #line hidden __tagHelperExecutionContext.AddTagHelperAttribute("page-model", __BookStore_TagHelpers_PageLinkTagHelper.PageModel, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); #line 105 "D:\Web Developer\BáoCáoWeb_17110324_NguyễnThanhLâm-17110281_TrầnHồngĐiệp\BookStore_17110324_NguyễnThanhLâm_17110281_TrầnHồngĐiệp\Areas\Customer\Views\Order\OrderPickup.cshtml" __BookStore_TagHelpers_PageLinkTagHelper.PageClassesEnabled = true; #line default #line hidden __tagHelperExecutionContext.AddTagHelperAttribute("page-classes-enabled", __BookStore_TagHelpers_PageLinkTagHelper.PageClassesEnabled, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); __BookStore_TagHelpers_PageLinkTagHelper.PageClass = (string)__tagHelperAttribute_0.Value; __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_0); __BookStore_TagHelpers_PageLinkTagHelper.PageClassNormal = (string)__tagHelperAttribute_1.Value; __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_1); __BookStore_TagHelpers_PageLinkTagHelper.PageClassSelected = (string)__tagHelperAttribute_2.Value; __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_2); __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_3); await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); if (!__tagHelperExecutionContext.Output.IsContentModified) { await __tagHelperExecutionContext.SetOutputContentAsync(); } Write(__tagHelperExecutionContext.Output); __tagHelperExecutionContext = __tagHelperScopeManager.End(); EndContext(); BeginContext(4745, 26, true); WriteLiteral("\r\n <br />\r\n"); EndContext(); #line 111 "D:\Web Developer\BáoCáoWeb_17110324_NguyễnThanhLâm-17110281_TrầnHồngĐiệp\BookStore_17110324_NguyễnThanhLâm_17110281_TrầnHồngĐiệp\Areas\Customer\Views\Order\OrderPickup.cshtml" } else { #line default #line hidden BeginContext(4819, 39, true); WriteLiteral(" <p>No Book exists</p>\r\n"); EndContext(); #line 115 "D:\Web Developer\BáoCáoWeb_17110324_NguyễnThanhLâm-17110281_TrầnHồngĐiệp\BookStore_17110324_NguyễnThanhLâm_17110281_TrầnHồngĐiệp\Areas\Customer\Views\Order\OrderPickup.cshtml" } #line default #line hidden BeginContext(4873, 28, true); WriteLiteral(" </div>\r\n </div>\r\n"); EndContext(); } ); __Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.FormTagHelper>(); __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper); __Microsoft_AspNetCore_Mvc_TagHelpers_RenderAtEndOfFormTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.RenderAtEndOfFormTagHelper>(); __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_RenderAtEndOfFormTagHelper); __Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper.Method = (string)__tagHelperAttribute_4.Value; __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_4); await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); if (!__tagHelperExecutionContext.Output.IsContentModified) { await __tagHelperExecutionContext.SetOutputContentAsync(); } Write(__tagHelperExecutionContext.Output); __tagHelperExecutionContext = __tagHelperScopeManager.End(); EndContext(); BeginContext(4908, 863, true); WriteLiteral(@" <div class=""modal fade"" id=""myModal"" tabindex=""-1"" role=""dialog"" aria-hidden=""true""> <div class=""modal-dialog-centered modal-dialog"" role=""document""> <div class=""modal-content""> <div class=""modal-header bg-success text-light""> <div class=""col-10 offset-1""> <center><h5 class=""modal-title"">Order Details</h5></center> </div> <div class=""col-1""> <button type=""button"" class=""float-right btn-outline-secondary close"" data-dismiss=""modal"" aria-label=""Close""> <span aria-hidden=""true"">×</span> </button> </div> </div> <div class=""modal-body justify-content-center"" id=""myModalContent""> </div> </div> </div> </div> "); EndContext(); DefineSection("scripts", async() => { BeginContext(5794, 934, true); WriteLiteral(@" <script> var PostBackURL = '/Customer/Order/GetOrderDetails'; $(function () { $("".anchorDetail"").click(function () { var $buttonClicked = $(this); var id = $buttonClicked.attr('data-id'); $.ajax({ type: ""GET"", url: PostBackURL, contentType: ""application/json; charset=utf-8"", data: { ""Id"": id }, cache: false, datatyype: ""json"", success: function (data) { $('#myModalContent').html(data); $('#myModal').modal('show'); }, error: function () { alert(""Dynamic content load failed""); } }); }); }); </script> "); EndContext(); } ); }
#pragma warning disable 1998 public async override global::System.Threading.Tasks.Task ExecuteAsync() { BeginContext(80, 2, true); WriteLiteral("\r\n"); EndContext(); #line 4 "D:\Web Developer\BáoCáoWeb_17110324_NguyễnThanhLâm-17110281_TrầnHồngĐiệp\BookStore_17110324_NguyễnThanhLâm_17110281_TrầnHồngĐiệp\Areas\Customer\Views\Order\OrderHistory.cshtml" ViewData["Title"] = "Index"; Layout = "~/Views/Shared/_Layout.cshtml"; #line default #line hidden BeginContext(170, 216, true); WriteLiteral("\r\n<br />\r\n<br />\r\n<div class=\"border backgroundWhite\">\r\n <div class=\"row\">\r\n <div class=\"col-6\">\r\n <h2 class=\"text-info\"> Past Order List</h2>\r\n </div>\r\n </div>\r\n <br />\r\n <div>\r\n"); EndContext(); #line 19 "D:\Web Developer\BáoCáoWeb_17110324_NguyễnThanhLâm-17110281_TrầnHồngĐiệp\BookStore_17110324_NguyễnThanhLâm_17110281_TrầnHồngĐiệp\Areas\Customer\Views\Order\OrderHistory.cshtml" if (Model.Orders.Count() > 0) { #line default #line hidden BeginContext(437, 152, true); WriteLiteral(" <table class=\"table table-striped border\">\r\n <tr class=\"table-secondary\">\r\n <th>\r\n "); EndContext(); BeginContext(590, 48, false); #line 24 "D:\Web Developer\BáoCáoWeb_17110324_NguyễnThanhLâm-17110281_TrầnHồngĐiệp\BookStore_17110324_NguyễnThanhLâm_17110281_TrầnHồngĐiệp\Areas\Customer\Views\Order\OrderHistory.cshtml" Write(Html.DisplayNameFor(m => m.Orders[0].DonHang.Id)); #line default #line hidden EndContext(); BeginContext(638, 79, true); WriteLiteral("\r\n </th>\r\n <th>\r\n "); EndContext(); BeginContext(718, 56, false); #line 27 "D:\Web Developer\BáoCáoWeb_17110324_NguyễnThanhLâm-17110281_TrầnHồngĐiệp\BookStore_17110324_NguyễnThanhLâm_17110281_TrầnHồngĐiệp\Areas\Customer\Views\Order\OrderHistory.cshtml" Write(Html.DisplayNameFor(m => m.Orders[0].DonHang.PickupName)); #line default #line hidden EndContext(); BeginContext(774, 79, true); WriteLiteral("\r\n </th>\r\n <th>\r\n "); EndContext(); BeginContext(854, 61, false); #line 30 "D:\Web Developer\BáoCáoWeb_17110324_NguyễnThanhLâm-17110281_TrầnHồngĐiệp\BookStore_17110324_NguyễnThanhLâm_17110281_TrầnHồngĐiệp\Areas\Customer\Views\Order\OrderHistory.cshtml" Write(Html.DisplayNameFor(m => m.Orders[0].DonHang.KhachHang.Email)); #line default #line hidden EndContext(); BeginContext(915, 79, true); WriteLiteral("\r\n </th>\r\n <th>\r\n "); EndContext(); BeginContext(995, 60, false); #line 33 "D:\Web Developer\BáoCáoWeb_17110324_NguyễnThanhLâm-17110281_TrầnHồngĐiệp\BookStore_17110324_NguyễnThanhLâm_17110281_TrầnHồngĐiệp\Areas\Customer\Views\Order\OrderHistory.cshtml" Write(Html.DisplayNameFor(m => m.Orders[0].DonHang.ThanhToan.Name)); #line default #line hidden EndContext(); BeginContext(1055, 79, true); WriteLiteral("\r\n </th>\r\n <th>\r\n "); EndContext(); BeginContext(1135, 60, false); #line 36 "D:\Web Developer\BáoCáoWeb_17110324_NguyễnThanhLâm-17110281_TrầnHồngĐiệp\BookStore_17110324_NguyễnThanhLâm_17110281_TrầnHồngĐiệp\Areas\Customer\Views\Order\OrderHistory.cshtml" Write(Html.DisplayNameFor(m => m.Orders[0].DonHang.VanChuyen.Name)); #line default #line hidden EndContext(); BeginContext(1195, 79, true); WriteLiteral("\r\n </th>\r\n <th>\r\n "); EndContext(); BeginContext(1275, 55, false); #line 39 "D:\Web Developer\BáoCáoWeb_17110324_NguyễnThanhLâm-17110281_TrầnHồngĐiệp\BookStore_17110324_NguyễnThanhLâm_17110281_TrầnHồngĐiệp\Areas\Customer\Views\Order\OrderHistory.cshtml" Write(Html.DisplayNameFor(m => m.Orders[0].DonHang.OrderTime)); #line default #line hidden EndContext(); BeginContext(1330, 79, true); WriteLiteral("\r\n </th>\r\n <th>\r\n "); EndContext(); BeginContext(1410, 51, false); #line 42 "D:\Web Developer\BáoCáoWeb_17110324_NguyễnThanhLâm-17110281_TrầnHồngĐiệp\BookStore_17110324_NguyễnThanhLâm_17110281_TrầnHồngĐiệp\Areas\Customer\Views\Order\OrderHistory.cshtml" Write(Html.DisplayNameFor(m => m.Orders[0].DonHang.Total)); #line default #line hidden EndContext(); BeginContext(1461, 175, true); WriteLiteral("\r\n </th>\r\n <th>\r\n Total Items\r\n </th>\r\n <th></th>\r\n </tr>\r\n\r\n"); EndContext(); #line 50 "D:\Web Developer\BáoCáoWeb_17110324_NguyễnThanhLâm-17110281_TrầnHồngĐiệp\BookStore_17110324_NguyễnThanhLâm_17110281_TrầnHồngĐiệp\Areas\Customer\Views\Order\OrderHistory.cshtml" foreach (var item in Model.Orders) { #line default #line hidden BeginContext(1708, 84, true); WriteLiteral(" <tr>\r\n <td>\r\n "); EndContext(); BeginContext(1793, 37, false); #line 54 "D:\Web Developer\BáoCáoWeb_17110324_NguyễnThanhLâm-17110281_TrầnHồngĐiệp\BookStore_17110324_NguyễnThanhLâm_17110281_TrầnHồngĐiệp\Areas\Customer\Views\Order\OrderHistory.cshtml" Write(Html.DisplayFor(m => item.DonHang.Id)); #line default #line hidden EndContext(); BeginContext(1830, 91, true); WriteLiteral("\r\n </td>\r\n <td>\r\n "); EndContext(); BeginContext(1922, 45, false); #line 57 "D:\Web Developer\BáoCáoWeb_17110324_NguyễnThanhLâm-17110281_TrầnHồngĐiệp\BookStore_17110324_NguyễnThanhLâm_17110281_TrầnHồngĐiệp\Areas\Customer\Views\Order\OrderHistory.cshtml" Write(Html.DisplayFor(m => item.DonHang.PickupName)); #line default #line hidden EndContext(); BeginContext(1967, 91, true); WriteLiteral("\r\n </td>\r\n <td>\r\n "); EndContext(); BeginContext(2059, 50, false); #line 60 "D:\Web Developer\BáoCáoWeb_17110324_NguyễnThanhLâm-17110281_TrầnHồngĐiệp\BookStore_17110324_NguyễnThanhLâm_17110281_TrầnHồngĐiệp\Areas\Customer\Views\Order\OrderHistory.cshtml" Write(Html.DisplayFor(m => item.DonHang.KhachHang.Email)); #line default #line hidden EndContext(); BeginContext(2109, 91, true); WriteLiteral("\r\n </td>\r\n <td>\r\n "); EndContext(); BeginContext(2201, 49, false); #line 63 "D:\Web Developer\BáoCáoWeb_17110324_NguyễnThanhLâm-17110281_TrầnHồngĐiệp\BookStore_17110324_NguyễnThanhLâm_17110281_TrầnHồngĐiệp\Areas\Customer\Views\Order\OrderHistory.cshtml" Write(Html.DisplayFor(m => item.DonHang.ThanhToan.Name)); #line default #line hidden EndContext(); BeginContext(2250, 91, true); WriteLiteral("\r\n </td>\r\n <td>\r\n "); EndContext(); BeginContext(2342, 49, false); #line 66 "D:\Web Developer\BáoCáoWeb_17110324_NguyễnThanhLâm-17110281_TrầnHồngĐiệp\BookStore_17110324_NguyễnThanhLâm_17110281_TrầnHồngĐiệp\Areas\Customer\Views\Order\OrderHistory.cshtml" Write(Html.DisplayFor(m => item.DonHang.VanChuyen.Name)); #line default #line hidden EndContext(); BeginContext(2391, 91, true); WriteLiteral("\r\n </td>\r\n <th>\r\n "); EndContext(); BeginContext(2483, 44, false); #line 69 "D:\Web Developer\BáoCáoWeb_17110324_NguyễnThanhLâm-17110281_TrầnHồngĐiệp\BookStore_17110324_NguyễnThanhLâm_17110281_TrầnHồngĐiệp\Areas\Customer\Views\Order\OrderHistory.cshtml" Write(Html.DisplayFor(m => item.DonHang.OrderTime)); #line default #line hidden EndContext(); BeginContext(2527, 91, true); WriteLiteral("\r\n </th>\r\n <td>\r\n "); EndContext(); BeginContext(2619, 40, false); #line 72 "D:\Web Developer\BáoCáoWeb_17110324_NguyễnThanhLâm-17110281_TrầnHồngĐiệp\BookStore_17110324_NguyễnThanhLâm_17110281_TrầnHồngĐiệp\Areas\Customer\Views\Order\OrderHistory.cshtml" Write(Html.DisplayFor(m => item.DonHang.Total)); #line default #line hidden EndContext(); BeginContext(2659, 91, true); WriteLiteral("\r\n </td>\r\n <td>\r\n "); EndContext(); BeginContext(2751, 45, false); #line 75 "D:\Web Developer\BáoCáoWeb_17110324_NguyễnThanhLâm-17110281_TrầnHồngĐiệp\BookStore_17110324_NguyễnThanhLâm_17110281_TrầnHồngĐiệp\Areas\Customer\Views\Order\OrderHistory.cshtml" Write(Html.DisplayFor(m => item.OrderDetails.Count)); #line default #line hidden EndContext(); BeginContext(2796, 159, true); WriteLiteral("\r\n </td>\r\n <td>\r\n <button type=\"submit\" class=\"btn btn-success anchorDetail\" data-id=\""); EndContext(); BeginContext(2956, 15, false); #line 78 "D:\Web Developer\BáoCáoWeb_17110324_NguyễnThanhLâm-17110281_TrầnHồngĐiệp\BookStore_17110324_NguyễnThanhLâm_17110281_TrầnHồngĐiệp\Areas\Customer\Views\Order\OrderHistory.cshtml" Write(item.DonHang.Id); #line default #line hidden EndContext(); BeginContext(2971, 135, true); WriteLiteral("\" data-toggle=\"modal\">\r\n <i class=\"far fa-list-alt\"></i>Details\r\n </button>\r\n"); EndContext(); #line 81 "D:\Web Developer\BáoCáoWeb_17110324_NguyễnThanhLâm-17110281_TrầnHồngĐiệp\BookStore_17110324_NguyễnThanhLâm_17110281_TrầnHồngĐiệp\Areas\Customer\Views\Order\OrderHistory.cshtml" if (item.DonHang.Status == SD.StatusSubmitted || item.DonHang.Status == SD.StatusInProcess || item.DonHang.Status == SD.StatusCompleted || item.DonHang.Status == SD.StatusReady) { #line default #line hidden BeginContext(3345, 99, true); WriteLiteral(" <button type=\"button\" class=\"btn btn-info btnOrderStatus\" data-id=\""); EndContext(); BeginContext(3445, 15, false); #line 83 "D:\Web Developer\BáoCáoWeb_17110324_NguyễnThanhLâm-17110281_TrầnHồngĐiệp\BookStore_17110324_NguyễnThanhLâm_17110281_TrầnHồngĐiệp\Areas\Customer\Views\Order\OrderHistory.cshtml" Write(item.DonHang.Id); #line default #line hidden EndContext(); BeginContext(3460, 139, true); WriteLiteral("\" data-toggle=\"modal\">\r\n <i class=\"far fa-clock\"></i>Status\r\n </button>\r\n"); EndContext(); #line 86 "D:\Web Developer\BáoCáoWeb_17110324_NguyễnThanhLâm-17110281_TrầnHồngĐiệp\BookStore_17110324_NguyễnThanhLâm_17110281_TrầnHồngĐiệp\Areas\Customer\Views\Order\OrderHistory.cshtml" } #line default #line hidden BeginContext(3630, 58, true); WriteLiteral(" </td>\r\n </tr>\r\n"); EndContext(); #line 89 "D:\Web Developer\BáoCáoWeb_17110324_NguyễnThanhLâm-17110281_TrầnHồngĐiệp\BookStore_17110324_NguyễnThanhLâm_17110281_TrầnHồngĐiệp\Areas\Customer\Views\Order\OrderHistory.cshtml" } #line default #line hidden BeginContext(3707, 34, true); WriteLiteral(" </table>\r\n "); EndContext(); BeginContext(3741, 250, false); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("div", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "7c57eba1a4914fc28e08c258d234c9f5", async() => { BeginContext(3971, 14, true); WriteLiteral("\r\n "); EndContext(); } ); __BookStore_TagHelpers_PageLinkTagHelper = CreateTagHelper <global::BookStore.TagHelpers.PageLinkTagHelper>(); __tagHelperExecutionContext.Add(__BookStore_TagHelpers_PageLinkTagHelper); #line 91 "D:\Web Developer\BáoCáoWeb_17110324_NguyễnThanhLâm-17110281_TrầnHồngĐiệp\BookStore_17110324_NguyễnThanhLâm_17110281_TrầnHồngĐiệp\Areas\Customer\Views\Order\OrderHistory.cshtml" __BookStore_TagHelpers_PageLinkTagHelper.PageModel = Model.PagingInfo; #line default #line hidden __tagHelperExecutionContext.AddTagHelperAttribute("page-model", __BookStore_TagHelpers_PageLinkTagHelper.PageModel, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); #line 91 "D:\Web Developer\BáoCáoWeb_17110324_NguyễnThanhLâm-17110281_TrầnHồngĐiệp\BookStore_17110324_NguyễnThanhLâm_17110281_TrầnHồngĐiệp\Areas\Customer\Views\Order\OrderHistory.cshtml" __BookStore_TagHelpers_PageLinkTagHelper.PageClassesEnabled = true; #line default #line hidden __tagHelperExecutionContext.AddTagHelperAttribute("page-classes-enabled", __BookStore_TagHelpers_PageLinkTagHelper.PageClassesEnabled, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); __BookStore_TagHelpers_PageLinkTagHelper.PageClass = (string)__tagHelperAttribute_0.Value; __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_0); __BookStore_TagHelpers_PageLinkTagHelper.PageClassNormal = (string)__tagHelperAttribute_1.Value; __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_1); __BookStore_TagHelpers_PageLinkTagHelper.PageClassSelected = (string)__tagHelperAttribute_2.Value; __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_2); __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_3); await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); if (!__tagHelperExecutionContext.Output.IsContentModified) { await __tagHelperExecutionContext.SetOutputContentAsync(); } Write(__tagHelperExecutionContext.Output); __tagHelperExecutionContext = __tagHelperScopeManager.End(); EndContext(); BeginContext(3991, 22, true); WriteLiteral("\r\n <br />\r\n"); EndContext(); #line 96 "D:\Web Developer\BáoCáoWeb_17110324_NguyễnThanhLâm-17110281_TrầnHồngĐiệp\BookStore_17110324_NguyễnThanhLâm_17110281_TrầnHồngĐiệp\Areas\Customer\Views\Order\OrderHistory.cshtml" } else { #line default #line hidden BeginContext(4049, 42, true); WriteLiteral(" <p>No category exists...</p>\r\n"); EndContext(); #line 100 "D:\Web Developer\BáoCáoWeb_17110324_NguyễnThanhLâm-17110281_TrầnHồngĐiệp\BookStore_17110324_NguyễnThanhLâm_17110281_TrầnHồngĐiệp\Areas\Customer\Views\Order\OrderHistory.cshtml" } #line default #line hidden BeginContext(4102, 1384, true); WriteLiteral(@" </div> </div> <div class=""modal fade"" id=""myModal"" tabindex=""-1"" role=""dialog"" aria-hidden=""true""> <div class=""modal-dialog-centered modal-dialog"" role=""document""> <div class=""modal-content""> <div class=""modal-header bg-success text-light justify-content-center""> <h5 class=""modal-title"">Order Details</h5> </div> <div class=""modal-body justify-content-center"" id=""myModalContent""> </div> <div class=""modal-footer""> <button type=""button"" class=""btn btn-secondary"" style=""width:20%"" data-dismiss=""modal"">Close</button> </div> </div> </div> </div> <div class=""modal fade"" id=""myOrderStatus"" tabindex=""-1"" role=""dialog"" aria-hidden=""true""> <div class=""modal-dialog modal-dialog-centered"" role=""document""> <div class=""modal-content""> <div class=""modal-header bg-info text-light justify-content-center""> <h5 class=""modal-title"">Order"); WriteLiteral(@" Status</h5> </div> <div class=""modal-body justify-content-center"" id='myOrderStatusContent'> </div> <div class=""modal-footer""> <button type=""button"" class=""btn btn-secondary"" style=""width:20%"" data-dismiss=""modal"">Close</button> </div> </div> </div> </div> "); EndContext(); DefineSection("Scripts", async() => { BeginContext(5505, 1802, true); WriteLiteral(@" <script> var PostBackURL = '/Customer/Order/GetOrderDetails'; var OrderStatusURL = '/Customer/Order/GetOrderStatus'; $(function () { $("".anchorDetail"").click(function () { var $buttonClicked = $(this); var id = $buttonClicked.attr('data-id'); $.ajax({ type: ""GET"", url: PostBackURL, contentType: ""application/json; charset=utf-8"", data: { ""Id"": id }, cache: false, datatyype: ""json"", success: function (data) { $('#myModalContent').html(data); $('#myModal').modal('show'); }, error: function () { alert(""Dynamic content load failed""); } }); }); $("".btnOrderStatus"").click(function () { "); WriteLiteral(@" var $buttonClicked = $(this); var id = $buttonClicked.attr('data-id'); $.ajax({ type: ""GET"", url: OrderStatusURL, contentType: ""application/json; charset=utf-8"", data: { ""Id"": id }, cache: false, datatype: ""json"", success: function (data) { $('#myOrderStatusContent').html(data); $('#myOrderStatus').modal('show'); }, error: function () { alert(""Dynamic content load failed.""); } }); }); }); </script> "); EndContext(); } ); }