|
@ -5,16 +5,17 @@ |
|
|
|
|
|
|
|
|
@{ |
|
|
@{ |
|
|
ViewData["Title"] = "My Orders"; |
|
|
ViewData["Title"] = "My Orders"; |
|
|
var headerList = new List<Header>() { |
|
|
|
|
|
new Header() { Controller = "Catalog", Text = "Back to catalog" }, |
|
|
|
|
|
new Header() { Text = " / " }, |
|
|
|
|
|
new Header() { Controller = "OrderManagement", Text = "Orders Management" } }; |
|
|
|
|
|
|
|
|
var headerList = new List<Header>() |
|
|
|
|
|
{ |
|
|
|
|
|
new Header() {Controller = "Catalog", Text = "Back to catalog"}, |
|
|
|
|
|
new Header() {Text = " / "}, |
|
|
|
|
|
new Header() {Controller = "OrderManagement", Text = "Orders Management"} |
|
|
|
|
|
}; |
|
|
var shippingInfo = ViewData["ShippingInfo"] as List<ShippingInformation>; |
|
|
var shippingInfo = ViewData["ShippingInfo"] as List<ShippingInformation>; |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
<div class="esh-orders"> |
|
|
<div class="esh-orders"> |
|
|
<partial name="_Header" model="headerList" /> |
|
|
|
|
|
|
|
|
<partial name="_Header" model="headerList"/> |
|
|
|
|
|
|
|
|
<div class="container"> |
|
|
<div class="container"> |
|
|
<article class="esh-orders-titles row"> |
|
|
<article class="esh-orders-titles row"> |
|
@ -22,8 +23,11 @@ |
|
|
<section class="esh-orders-title col-2">Date</section> |
|
|
<section class="esh-orders-title col-2">Date</section> |
|
|
<section class="esh-orders-title col-1">Total</section> |
|
|
<section class="esh-orders-title col-1">Total</section> |
|
|
<section class="esh-orders-title col-1">Status</section> |
|
|
<section class="esh-orders-title col-1">Status</section> |
|
|
<section class="esh-orders-title col-2">Shipping date</section> |
|
|
|
|
|
<section class="esh-orders-title col-2">Estimated arrival date</section> |
|
|
|
|
|
|
|
|
@if (shippingInfo != null) |
|
|
|
|
|
{ |
|
|
|
|
|
<section class="esh-orders-title col-2">Shipping date</section> |
|
|
|
|
|
<section class="esh-orders-title col-2">Estimated arrival date</section> |
|
|
|
|
|
} |
|
|
<section class="esh-orders-title col-2"></section> |
|
|
<section class="esh-orders-title col-2"></section> |
|
|
|
|
|
|
|
|
</article> |
|
|
</article> |
|
@ -36,28 +40,33 @@ |
|
|
<section class="esh-orders-item col-2">@item.Date.ToShortDateString()</section> |
|
|
<section class="esh-orders-item col-2">@item.Date.ToShortDateString()</section> |
|
|
<section class="esh-orders-item col-1">$ @Html.DisplayFor(modelItem => item.Total)</section> |
|
|
<section class="esh-orders-item col-1">$ @Html.DisplayFor(modelItem => item.Total)</section> |
|
|
<section class="esh-orders-item col-1">@Html.DisplayFor(modelItem => item.Status)</section> |
|
|
<section class="esh-orders-item col-1">@Html.DisplayFor(modelItem => item.Status)</section> |
|
|
<section class="esh-orders-item col-2"> |
|
|
|
|
|
@for (var i = 0; i < shippingInfo.Count(); i++) |
|
|
|
|
|
{ |
|
|
|
|
|
var si = shippingInfo[i]; |
|
|
|
|
|
if (si.OrderNumber.Equals(item.OrderNumber)) |
|
|
|
|
|
|
|
|
@if (shippingInfo != null) |
|
|
|
|
|
{ |
|
|
|
|
|
<section class="esh-orders-item col-2"> |
|
|
|
|
|
@for (var i = 0; i < shippingInfo.Count(); i++) |
|
|
{ |
|
|
{ |
|
|
@si.ShippingTime.ToShortDateString(); |
|
|
|
|
|
break; |
|
|
|
|
|
|
|
|
var si = shippingInfo[i]; |
|
|
|
|
|
if (si.OrderNumber.Equals(item.OrderNumber)) |
|
|
|
|
|
{ |
|
|
|
|
|
@si.ShippingTime.ToShortDateString() |
|
|
|
|
|
; |
|
|
|
|
|
break; |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
</section> |
|
|
|
|
|
<section class="esh-orders-item col-2"> |
|
|
|
|
|
@for (var i = 0; i < shippingInfo.Count(); i++) |
|
|
|
|
|
{ |
|
|
|
|
|
var si = shippingInfo[i]; |
|
|
|
|
|
if (si.OrderNumber.Equals(item.OrderNumber)) |
|
|
|
|
|
|
|
|
</section> |
|
|
|
|
|
<section class="esh-orders-item col-2"> |
|
|
|
|
|
@for (var i = 0; i < shippingInfo.Count(); i++) |
|
|
{ |
|
|
{ |
|
|
@si.ArrivalTime.ToShortDateString(); |
|
|
|
|
|
break; |
|
|
|
|
|
|
|
|
var si = shippingInfo[i]; |
|
|
|
|
|
if (si.OrderNumber.Equals(item.OrderNumber)) |
|
|
|
|
|
{ |
|
|
|
|
|
@si.ArrivalTime.ToShortDateString() |
|
|
|
|
|
; |
|
|
|
|
|
break; |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
</section> |
|
|
|
|
|
|
|
|
</section> |
|
|
|
|
|
} |
|
|
<section class="esh-orders-item col-1"> |
|
|
<section class="esh-orders-item col-1"> |
|
|
<a class="esh-orders-link" asp-controller="Order" asp-action="Detail" asp-route-orderId="@item.OrderNumber">Detail</a> |
|
|
<a class="esh-orders-link" asp-controller="Order" asp-action="Detail" asp-route-orderId="@item.OrderNumber">Detail</a> |
|
|
</section> |
|
|
</section> |
|
@ -71,8 +80,4 @@ |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</div> |