Update pag remnants
This commit is contained in:
@@ -63,6 +63,13 @@ namespace NKC.Data.DbModels
|
||||
get => LMm * WMm;
|
||||
}
|
||||
|
||||
|
||||
[NotMapped]
|
||||
public string RemDtmx
|
||||
{
|
||||
get => $"MT{MaterialNav.MatExtCode:00000000}-{LMm*1000:00000000}-{WMm*1000:00000000}";
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Navigation property to Material
|
||||
/// </summary>
|
||||
|
||||
@@ -10,10 +10,10 @@
|
||||
<div class="px-2">
|
||||
<h2>Remnants</h2>
|
||||
</div>
|
||||
<div class="px-2">
|
||||
width <div class="px-2">
|
||||
@if (processing)
|
||||
{
|
||||
<span class="spinner-border"></span> <i>...working...</i>
|
||||
<span class="spinner-border"></span> <i>...working...</i>
|
||||
}
|
||||
</div>
|
||||
<div class="px-2">
|
||||
@@ -68,11 +68,11 @@
|
||||
<thead>
|
||||
<tr>
|
||||
<th></th>
|
||||
<th>Cod</th>
|
||||
<th>Descr</th>
|
||||
<th>Location</th>
|
||||
<th>Qr</th>
|
||||
<th>Material</th>
|
||||
<th>Size <sub>L x W x T (mm)</sub></th>
|
||||
<th class="text-center">Qty</th>
|
||||
<th class="text-right">L x W x T (mm)</th>
|
||||
<th class="text-right">Location</th>
|
||||
<th class="text-right">Note</th>
|
||||
</tr>
|
||||
</thead>
|
||||
@@ -80,28 +80,44 @@
|
||||
@foreach (var record in ListRecords)
|
||||
{
|
||||
<tr>
|
||||
<td class="text-nowrap">
|
||||
<button class="btn btn-sm btn-info" @onclick="() => Select(record)" title="Show Detail">
|
||||
<i class="fas fa-search"></i>
|
||||
</button>
|
||||
<button class="btn btn-sm btn-primary" @onclick="() => Edit(record)" title="Edit">
|
||||
<i class="fas fa-pencil-alt"></i>
|
||||
</button>
|
||||
<button class="btn btn-sm btn-warning" @onclick="() => Clone(record)" title="Duplicate">
|
||||
<i class="fas fa-code-branch"></i>
|
||||
</button>
|
||||
<button class="btn btn-sm btn-success" @onclick="() => Print(record)" title="Print label">
|
||||
<i class="fas fa-print"></i>
|
||||
</button>
|
||||
<td class="text-nowrap pr-2" style="width:6rem;">
|
||||
<div class="row mb-2">
|
||||
<div class="col-6 px-2">
|
||||
<button class="btn btn-sm btn-block btn-info" @onclick="() => Select(record)" title="Show Detail">
|
||||
<i class="fas fa-search"></i>
|
||||
</button>
|
||||
</div>
|
||||
<div class="col-6 px-2">
|
||||
<button class="btn btn-sm btn-block btn-primary" @onclick="() => Edit(record)" title="Edit">
|
||||
<i class="fas fa-pencil-alt"></i>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-6 px-2">
|
||||
<button class="btn btn-sm btn-block btn-success" @onclick="() => Print(record)" title="Print label">
|
||||
<i class="fas fa-print"></i>
|
||||
</button>
|
||||
</div>
|
||||
<div class="col-6 px-2">
|
||||
<button class="btn btn-sm btn-block btn-warning" @onclick="() => Clone(record)" title="Duplicate">
|
||||
<i class="fas fa-code-branch"></i>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td style="width: 80px;">
|
||||
<img src="@getImgUrl(record.RemDtmx)" class="img-fluid" width="72" />
|
||||
</td>
|
||||
<td>
|
||||
<div class="small">@record.RemDtmx</div>
|
||||
<div>
|
||||
<b>@record.MaterialNav.MatExtCode</b>
|
||||
</td>
|
||||
<td>
|
||||
<span class="small">@record.MaterialNav.MatDesc</span>
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
@record.Location
|
||||
<span class="small">@record.LMm x @record.WMm x @record.TMm</span>
|
||||
</td>
|
||||
<td>
|
||||
<div class="d-flex justify-content-center">
|
||||
@@ -117,9 +133,9 @@
|
||||
</div>
|
||||
</td>
|
||||
<td class="text-right">
|
||||
<span class="small">@record.LMm x @record.WMm x @record.TMm</span>
|
||||
@record.Location
|
||||
</td>
|
||||
<td class="text-right">
|
||||
<td class="text-right" style="min-width: 10rem;">
|
||||
<span class="small">@record.Note</span>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
@@ -87,6 +87,10 @@ namespace REMAN.Pages
|
||||
[Inject]
|
||||
protected MessageService AppMService { get; set; }
|
||||
|
||||
|
||||
[Inject]
|
||||
protected IConfiguration Configuration { get; set; }
|
||||
|
||||
protected int SelMatID
|
||||
{
|
||||
get
|
||||
@@ -103,6 +107,19 @@ namespace REMAN.Pages
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Restituisce URL immagine QRCode
|
||||
/// </summary>
|
||||
/// <param name="QrValue">Parametro da renderizzare con QRCode</param>
|
||||
/// <returns></returns>
|
||||
protected string getImgUrl(object QrValue)
|
||||
{
|
||||
string baseUrl = $"{Configuration["ZCodeUrl"]}/HOME/QR_site/JSON?val=";
|
||||
string payload = "{'baseUrl':'{0}','parameters':['" + $"{QrValue}" + "']}";
|
||||
string answ = $"{baseUrl}{payload}";
|
||||
return answ;
|
||||
}
|
||||
|
||||
protected int totalCount
|
||||
{
|
||||
get
|
||||
|
||||
@@ -9,5 +9,6 @@
|
||||
"ConnectionStrings": {
|
||||
"NKC.DB": "Server=SQL2016DEV;Database=Sauder_NKC; User ID=sa;Password=keyhammer16; integrated security=False; MultipleActiveResultSets=True; App=REMAN;",
|
||||
"Redis": "localhost:6379"
|
||||
}
|
||||
},
|
||||
"ZCodeUrl": "https://qrcode.steamware.net/"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user