Skip to content

Commit

Permalink
changes
Browse files Browse the repository at this point in the history
  • Loading branch information
victorrar committed Dec 24, 2020
1 parent 8df8904 commit ac6d130
Show file tree
Hide file tree
Showing 8 changed files with 81 additions and 70 deletions.
13 changes: 13 additions & 0 deletions .idea/.idea.TRPZ_PrintService/.idea/contentModel.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

123 changes: 56 additions & 67 deletions .idea/.idea.TRPZ_PrintService/.idea/workspace.xml

Large diffs are not rendered by default.

Binary file modified .vs/TRPZ_PrintService/DesignTimeBuild/.dtbcache.v2
Binary file not shown.
Binary file modified .vs/TRPZ_PrintService/v16/.suo
Binary file not shown.
6 changes: 3 additions & 3 deletions TRPZ_PrintService/Pages/EditMIO.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -18,19 +18,19 @@
<input class="form-control" type="text" asp-for="Fmodel.Description"/><br/>

<label>Material</label>
<select asp-for="Fmodel.MaterialId" asp-items="Model.Materials"></select>
<select class="form-control" asp-for="Fmodel.MaterialId" asp-items="Model.Materials"></select>
<br/>

<label>Printer</label>
<select asp-for="Fmodel.PrinterId" asp-items="Model.Printers"></select>
<select class="form-control" asp-for="Fmodel.PrinterId" asp-items="Model.Printers"></select>
<br/>

<label>Scale</label>
<input class="form-control" type="text" asp-for="Fmodel.Scale"/>
<br/>

<label>Post-processing</label>
<select asp-for="Fmodel.PostProcessingId" asp-items="Model.PostProcessings"></select>
<select class="form-control" asp-for="Fmodel.PostProcessingId" asp-items="Model.PostProcessings"></select>
<br/>

<label>HasSolubleSupports</label>
Expand Down
6 changes: 6 additions & 0 deletions TRPZ_PrintService/Pages/ManageOrders.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@
<th>
Order Status
</th>
<th>
Price
</th>
<th>
Models
</th>
Expand Down Expand Up @@ -63,6 +66,9 @@
throw new ArgumentOutOfRangeException();
}
</td>
<td>
@Html.DisplayFor(modelItem => order.PriceTotal)
</td>
<td>
@Html.DisplayFor(modelItem => order.Models.Count)

Expand Down
2 changes: 2 additions & 0 deletions TRPZ_PrintService/Pages/ManageOrders.cshtml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ public async Task<IActionResult> OnGet(string? type)
Orders = await _context.Orders
.Include(order => order.Client)
.Include(order => order.Models)
.ThenInclude(order => order.PostProcessing)
.Where(order => order.Status == Order.OrderStatus.Sent ||
order.Status == Order.OrderStatus.Confirmed)
.OrderByDescending(order => order.Timestamp)
Expand All @@ -38,6 +39,7 @@ public async Task<IActionResult> OnGet(string? type)
Orders = await _context.Orders
.Include(order => order.Client)
.Include(order => order.Models)
.ThenInclude(order => order.PostProcessing)
.Where(order => order.Status != Order.OrderStatus.NotSent)
.OrderByDescending(order => order.Timestamp)
.ToListAsync();
Expand Down
1 change: 1 addition & 0 deletions TRPZ_PrintService/Pages/MyOrders.cshtml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ public void OnGet(string? id)

Orders = _context.Orders
.Include(order => order.Models)
.ThenInclude(order => order.PostProcessing)
.Where(order => order.Client.Id == id)
.OrderByDescending(order => order.Timestamp)
.ToList();
Expand Down

0 comments on commit ac6d130

Please sign in to comment.