tiskanje bulk + vrsni red opreacij na tiskanju
This commit is contained in:
@@ -39,99 +39,114 @@
|
||||
</span>
|
||||
</h4>
|
||||
|
||||
<div class="card pt-2" style="width: 595pt; margin-bottom:10px;">
|
||||
<div class="card-body">
|
||||
<div class="row">
|
||||
<div class="col-12 text-right">
|
||||
<button id="btnPrint" type="button" class="btn btn-sm btn-primary btn-print ladda-button pull-right" data-style="zoom-out"><i class="ion ion-md-print"></i> Natisni</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="card pt-2" style="width: 595pt">
|
||||
<div id="print-content" class="card-body pb-4 pl-4 pt-0" style="padding-right: 2rem !important">
|
||||
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<address class="mb-0">
|
||||
<strong>@Html.DisplayFor(modelItem => Model.PartItem.ProjectPart.Project.Company.Title)</strong> <br/>
|
||||
</address>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<hr/>
|
||||
|
||||
<h4 class="font-weight-bold mb-3">
|
||||
Projekt št.: @Html.DisplayFor(modelItem => Model.PartItem.ProjectPart.Project.ProjectNumberFormatted)
|
||||
</h4>
|
||||
|
||||
<div class="text-big mb-3" style="margin-top: 0 !important; margin-bottom: 0 !important;">
|
||||
@Html.DisplayFor(modelItem => Model.PartItem.ProjectPart.Project.Title)
|
||||
</div>
|
||||
|
||||
<div class="mb-3" style="margin-top: 0 !important; margin-bottom: 0 !important;">
|
||||
<label style="margin-top: 0 !important; margin-bottom: 0 !important;">Del projekta</label>:
|
||||
<strong class="font-weight-semibold">@Html.DisplayFor(modelItem => Model.PartItem.ProjectPartNumberFormatted)</strong>
|
||||
</div>
|
||||
|
||||
<div class="mb-3" style="margin-top: 0 !important; margin-bottom: 0 !important;">
|
||||
<label style="margin-top: 0 !important; margin-bottom: 0 !important;">Artikel</label>:
|
||||
<strong class="font-weight-semibold">@Html.DisplayFor(modelItem => Model.PartItem.Item.Title)</strong>
|
||||
</div>
|
||||
<div class="mb-3" style="margin-top: 0 !important; margin-bottom: 0 !important;">
|
||||
<label style="margin-top: 0 !important; margin-bottom: 0 !important;">Material</label>:
|
||||
<strong class="font-weight-semibold">@Html.DisplayFor(modelItem => Model.PartItem.Material.Title)</strong>
|
||||
</div>
|
||||
<div class="mb-3" style="margin-top: 0 !important; margin-bottom: 0 !important;">
|
||||
<label style="margin-top: 0 !important; margin-bottom: 0 !important;">Dimenzije surovca</label>:
|
||||
<strong class="font-weight-semibold">@Html.DisplayFor(modelItem => Model.PartItem.MaterialDimensions)</strong>
|
||||
</div>
|
||||
<div class="mb-3" style="margin-top: 0 !important; margin-bottom: 0 !important;">
|
||||
<label style="margin-top: 0 !important; margin-bottom: 0 !important;">Število kosov</label>:
|
||||
<strong class="font-weight-semibold">@Html.DisplayFor(modelItem => Model.PartItem.NumberOfItems)</strong>
|
||||
</div>
|
||||
|
||||
@if (!string.IsNullOrEmpty(Model.PartItem.ProjectPart.PathOfPlans))
|
||||
@for (int i = 0; i < Model.Items.Count; i++)
|
||||
{
|
||||
<div class="mb-3" style="margin-top: 0 !important; margin-bottom: 0 !important;">
|
||||
<label style="margin-top: 0 !important; margin-bottom: 0 !important;">Pot načrtov</label>:
|
||||
<strong class="font-weight-semibold">@Html.DisplayFor(modelItem => Model.PartItem.ProjectPart.PathOfPlans)</strong>
|
||||
</div>
|
||||
}
|
||||
|
||||
@if (!string.IsNullOrEmpty(Model.PartItem.Note))
|
||||
{
|
||||
<div class="mb-3" style="margin-top: 0 !important; margin-bottom: 0 !important;">
|
||||
<br />
|
||||
<i class="">@Html.DisplayFor(modelItem => Model.PartItem.Note)</i>
|
||||
</div>
|
||||
}
|
||||
|
||||
<br/>
|
||||
|
||||
<h6>Operacije</h6>
|
||||
<div class="table-responsive mb-4">
|
||||
<table class="table m-0 table-bordered">
|
||||
<thead style="font-size: 0.75rem">
|
||||
<tr>
|
||||
<th style="width: 30px">#</th>
|
||||
<th class="py-1">
|
||||
Operacija
|
||||
</th>
|
||||
<th class="py-1" style="width: 150px">
|
||||
Čas
|
||||
</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody style="font-size: 0.75rem">
|
||||
@foreach (var item in Model.Operations)
|
||||
{
|
||||
<tr>
|
||||
<td>
|
||||
@(Model.Operations.IndexOf(item) + 1)
|
||||
</td>
|
||||
<td>@Html.DisplayFor(x => item.Operation.Title)</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
var item = Model.Items[i];
|
||||
<div style="@(i > 0 ? "page-break-before: always;" : "")">
|
||||
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<address class="mb-0">
|
||||
<strong>@Html.DisplayFor(modelItem => item.PartItem.ProjectPart.Project.Company.Title)</strong> <br/>
|
||||
</address>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<hr/>
|
||||
|
||||
<h4 class="font-weight-bold mb-3">
|
||||
Projekt št.: @Html.DisplayFor(modelItem => item.PartItem.ProjectPart.Project.ProjectNumberFormatted)
|
||||
</h4>
|
||||
|
||||
<div class="text-big mb-3" style="margin-top: 0 !important; margin-bottom: 0 !important;">
|
||||
@Html.DisplayFor(modelItem => item.PartItem.ProjectPart.Project.Title)
|
||||
</div>
|
||||
|
||||
<div class="mb-3" style="margin-top: 0 !important; margin-bottom: 0 !important;">
|
||||
<label style="margin-top: 0 !important; margin-bottom: 0 !important;">Del projekta</label>:
|
||||
<strong class="font-weight-semibold">@Html.DisplayFor(modelItem => item.PartItem.ProjectPartNumberFormatted)</strong>
|
||||
</div>
|
||||
|
||||
<div class="mb-3" style="margin-top: 0 !important; margin-bottom: 0 !important;">
|
||||
<label style="margin-top: 0 !important; margin-bottom: 0 !important;">Artikel</label>:
|
||||
<strong class="font-weight-semibold">@Html.DisplayFor(modelItem => item.PartItem.Item.Title)</strong>
|
||||
</div>
|
||||
<div class="mb-3" style="margin-top: 0 !important; margin-bottom: 0 !important;">
|
||||
<label style="margin-top: 0 !important; margin-bottom: 0 !important;">Material</label>:
|
||||
<strong class="font-weight-semibold">@Html.DisplayFor(modelItem => item.PartItem.Material.Title)</strong>
|
||||
</div>
|
||||
<div class="mb-3" style="margin-top: 0 !important; margin-bottom: 0 !important;">
|
||||
<label style="margin-top: 0 !important; margin-bottom: 0 !important;">Dimenzije surovca</label>:
|
||||
<strong class="font-weight-semibold">@Html.DisplayFor(modelItem => item.PartItem.MaterialDimensions)</strong>
|
||||
</div>
|
||||
<div class="mb-3" style="margin-top: 0 !important; margin-bottom: 0 !important;">
|
||||
<label style="margin-top: 0 !important; margin-bottom: 0 !important;">Število kosov</label>:
|
||||
<strong class="font-weight-semibold">@Html.DisplayFor(modelItem => item.PartItem.NumberOfItems)</strong>
|
||||
</div>
|
||||
|
||||
@if (!string.IsNullOrEmpty(item.PartItem.ProjectPart.PathOfPlans))
|
||||
{
|
||||
<div class="mb-3" style="margin-top: 0 !important; margin-bottom: 0 !important;">
|
||||
<label style="margin-top: 0 !important; margin-bottom: 0 !important;">Pot načrtov</label>:
|
||||
<strong class="font-weight-semibold">@Html.DisplayFor(modelItem => item.PartItem.ProjectPart.PathOfPlans)</strong>
|
||||
</div>
|
||||
}
|
||||
|
||||
@if (!string.IsNullOrEmpty(item.PartItem.Note))
|
||||
{
|
||||
<div class="mb-3" style="margin-top: 0 !important; margin-bottom: 0 !important;">
|
||||
<br />
|
||||
<i class="">@Html.DisplayFor(modelItem => item.PartItem.Note)</i>
|
||||
</div>
|
||||
}
|
||||
|
||||
<br/>
|
||||
|
||||
<h6>Operacije</h6>
|
||||
<div class="table-responsive mb-4">
|
||||
<table class="table m-0 table-bordered">
|
||||
<thead style="font-size: 0.75rem">
|
||||
<tr>
|
||||
<th style="width: 30px">#</th>
|
||||
<th class="py-1">
|
||||
Operacija
|
||||
</th>
|
||||
<th class="py-1" style="width: 150px">
|
||||
Čas
|
||||
</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody style="font-size: 0.75rem">
|
||||
@{ var opIndex = 0; }
|
||||
@foreach (var op in item.Operations)
|
||||
{
|
||||
opIndex++;
|
||||
<tr>
|
||||
<td>@opIndex</td>
|
||||
<td>@Html.DisplayFor(x => op.Operation.Title)</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
}
|
||||
|
||||
</div>
|
||||
<div class="card-footer">
|
||||
<button id="btnPrint" type="button" class="btn btn-primary btn-print ladda-button pull-right" data-style="zoom-out"><i class="ion ion-md-print"></i> Natisni</button>
|
||||
</div>
|
||||
</div>
|
||||
@Html.AntiForgeryToken()
|
||||
|
||||
Reference in New Issue
Block a user