Merge branch 'develop' of https://gitlab.steamware.net/steamware/mapo-core into develop
This commit is contained in:
@@ -78,7 +78,7 @@
|
||||
</div>
|
||||
<div class="ps-1 fs-4">
|
||||
×
|
||||
@if (item.Tipo == "ART")
|
||||
@if (item.Tipo == "KIT")
|
||||
{
|
||||
<button class="btn btn-info" @onclick="()=>ShowKitDetail(item)" title="KIT">
|
||||
@if (item.KitSplit)
|
||||
|
||||
@@ -114,16 +114,25 @@ namespace MP_TAB_SERV.Components
|
||||
await doUpdate();
|
||||
}
|
||||
|
||||
protected void ShowKitDetail(RegistroScartiModel currItem)
|
||||
protected async Task ShowKitDetail(RegistroScartiModel currItem)
|
||||
{
|
||||
// faccio toggle show item (se era già selezionato --> null!)
|
||||
if (!currItem.Equals(selItem))
|
||||
// deve essere != null in primis...
|
||||
if (currItem != null)
|
||||
{
|
||||
selItem = currItem;
|
||||
}
|
||||
else
|
||||
{
|
||||
selItem = null;
|
||||
// verifico se serve creare split dell'oggetto (hard coded!!!)
|
||||
if (currItem.Tipo == "KIT" && !currItem.KitSplit)
|
||||
{
|
||||
await TabDServ.RegScartiKitSplit(currItem);
|
||||
}
|
||||
// faccio toggle show item (se era già selezionato --> null!)
|
||||
if (!currItem.Equals(selItem))
|
||||
{
|
||||
selItem = currItem;
|
||||
}
|
||||
else
|
||||
{
|
||||
selItem = null;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -14,8 +14,6 @@ namespace MP.Data.DatabaseModels
|
||||
{
|
||||
#region Public Properties
|
||||
|
||||
[Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
||||
public int IdxRSK { get; set; }
|
||||
public string IdxMacchina { get; set; } = "";
|
||||
public DateTime DataOra { get; set; } = DateTime.Now;
|
||||
public string Causale { get; set; } = "";
|
||||
|
||||
@@ -552,6 +552,10 @@ namespace MP.Data
|
||||
{
|
||||
entity.HasKey(e => new { e.IdxMacchina, e.DataOra, e.Causale });
|
||||
});
|
||||
modelBuilder.Entity<RegistroScartiKitModel>(entity =>
|
||||
{
|
||||
entity.HasKey(e => new { e.IdxMacchina, e.DataOra, e.Causale, e.CodArticolo });
|
||||
});
|
||||
|
||||
modelBuilder.Entity<FermiNonQualModel>(entity =>
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user