diff --git a/CutList.Web/Components/Pages/Jobs/Edit.razor b/CutList.Web/Components/Pages/Jobs/Edit.razor index ae055c8..806b99f 100644 --- a/CutList.Web/Components/Pages/Jobs/Edit.razor +++ b/CutList.Web/Components/Pages/Jobs/Edit.razor @@ -3,7 +3,12 @@ @inject JobService JobService @inject MaterialService MaterialService @inject StockItemService StockItemService +@inject CutListPackingService PackingService +@inject PurchaseItemService PurchaseItemService @inject NavigationManager Navigation +@inject IJSRuntime JS +@using CutList.Core +@using CutList.Core.Nesting @using CutList.Core.Formatting @using CutList.Web.Data.Entities @@ -11,10 +16,7 @@
@if (!IsNew && job.IsLocked) @@ -73,6 +75,16 @@ else } +Some items could not be placed. This usually means no stock lengths are configured for the material, or parts are too long.
+Total Stock Bars
+Total Pieces
+Total Waste
+Efficiency
+Ready to cut from existing inventory
+Everything available in stock
+ } +Click Optimize to calculate the most efficient cut list.
+| # | +Stock Length | +Cuts | +Waste | +
|---|---|---|---|
| @binNumber | +@ArchUnits.FormatFromInches(bin.Length) | ++ @foreach (var item in bin.Items) + { + + @(string.IsNullOrWhiteSpace(item.Name) ? ArchUnits.FormatFromInches(item.Length) : $"{item.Name} ({ArchUnits.FormatFromInches(item.Length)})") + + } + | +@ArchUnits.FormatFromInches(bin.RemainingLength) | +
Loading...
-} -else if (job == null) -{ -Customer: @job.Customer
- } -Some items could not be placed. This usually means no stock lengths are configured for the material, or parts are too long.
-Total Stock Bars
-Total Pieces
-Total Waste
-Efficiency
-Ready to cut from existing inventory
-Need to order from supplier
- } -| # | -Stock Length | -Cuts | -Waste | -
|---|---|---|---|
| @binNumber | -@ArchUnits.FormatFromInches(bin.Length) | -- @foreach (var item in bin.Items) - { - - @(string.IsNullOrWhiteSpace(item.Name) ? ArchUnits.FormatFromInches(item.Length) : $"{item.Name} ({ArchUnits.FormatFromInches(item.Length)})") - - } - | -@ArchUnits.FormatFromInches(bin.RemainingLength) | -