Fix display info x NegotDocMover
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
<TargetFramework>net6.0</TargetFramework>
|
||||
<Nullable>enable</Nullable>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Version>2.0.2402.1308</Version>
|
||||
<Version>2.0.2402.1310</Version>
|
||||
<Copyright>Egalware 2021+</Copyright>
|
||||
</PropertyGroup>
|
||||
|
||||
|
||||
@@ -57,6 +57,12 @@ namespace SHERPA.BBM.CORE.DbModels
|
||||
[Column("BasketId")]
|
||||
public int BasketId { get; set; } = 0;
|
||||
|
||||
[Column("CodBasket")]
|
||||
public string CodBasket { get; set; } = "";
|
||||
|
||||
[Column("DescBasket")]
|
||||
public string DescBasket { get; set; } = "";
|
||||
|
||||
[Column("RagSoc")]
|
||||
public string RagSoc { get; set; } = "";
|
||||
|
||||
|
||||
@@ -27,6 +27,9 @@ namespace SHERPA.BBM.CORE.DbModels
|
||||
[Column("ResTypeId")]
|
||||
public int ResTypeId { get; set; } = 0;
|
||||
|
||||
[Column("ResName")]
|
||||
public string ResName { get; set; } = "";
|
||||
|
||||
[Column("UM"), MaxLength(50)]
|
||||
public string UM { get; set; } = "nr";
|
||||
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
CREATE OR ALTER VIEW [dbo].[v_ItemsData]
|
||||
AS
|
||||
|
||||
|
||||
WITH cteOrdRes AS
|
||||
(
|
||||
SELECT o.ItemId
|
||||
@@ -28,6 +29,7 @@ WITH cteOrdRes AS
|
||||
)
|
||||
|
||||
SELECT i.*
|
||||
,ISNULL(r.Name, i.ResTypeId) AS ResName
|
||||
,ISNULL(d.DocNum,0) AS DocNumRef
|
||||
,ISNULL(o.OrdNum,0) AS OrdNumRef
|
||||
,ISNULL(t.TagNum,0) AS TagsNumRef
|
||||
@@ -35,6 +37,7 @@ FROM dbo.Items AS i
|
||||
LEFT OUTER JOIN cteOrdRes AS o ON i.ItemId = o.ItemId
|
||||
LEFT OUTER JOIN cteDoc AS d ON i.ItemId = d.ItemId
|
||||
LEFT OUTER JOIN cteTag AS t ON i.ItemId = t.ItemId
|
||||
LEFT OUTER JOIN ResType AS r ON i.ResTypeId = r.ResTypeId
|
||||
|
||||
GO
|
||||
|
||||
|
||||
@@ -10,7 +10,6 @@
|
||||
<th>Cod</th>
|
||||
<th>Descrizione</th>
|
||||
<th class="text-right">Importo</th>
|
||||
<th class="text-right">Fatturazione</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@@ -20,20 +19,21 @@
|
||||
<td class="text-nowrap">
|
||||
<button class="btn btn-sm btn-info" @onclick="() => Move(record)"><span class="fas fa-arrows-alt-h"></span></button>
|
||||
</td>
|
||||
<td>
|
||||
<div title="@record.NegotDescript">@record.CodNegotiation</div>
|
||||
<div>@record.CodDoc</div>
|
||||
@*<div class="small">@record.DataIns.ToString("ddd yyyy.MM.dd HH:mm")</div>*@
|
||||
<td class="text-nowrap">
|
||||
<div>@record.RagSoc</div>
|
||||
<div class="small" title="@record.DescBasket">@record.CodBasket</div>
|
||||
<div class="small" title="@record.NegotDescript">@record.CodNegotiation</div>
|
||||
<div class="small">@record.CodDoc</div>
|
||||
</td>
|
||||
<td>
|
||||
<div>@record.Descript</div>
|
||||
<div class="small">@record.Note</div>
|
||||
</td>
|
||||
<td class="text-right text-nowrap" title="Importo"><b>@record.Importo.ToString("C2")</b></td>
|
||||
<td class="text-right text-nowrap">
|
||||
@if (record.DocType == BbmDocType.ConfermaOrdine)
|
||||
<td class="text-right text-nowrap" title="Importo">
|
||||
<b>@record.Importo.ToString("C2")</b>
|
||||
@if (record.Fatturato > 0)
|
||||
{
|
||||
<div title="Fatturato"><b>@record.Fatturato.ToString("C2")</b> [F]</div>
|
||||
<div title="Fatturato" class="small">@record.Fatturato.ToString("C2") [F]</div>
|
||||
<div title="Incassato" class="small">@record.Incassato.ToString("C2") [I]</div>
|
||||
}
|
||||
</td>
|
||||
|
||||
@@ -7,10 +7,9 @@
|
||||
<thead>
|
||||
<tr>
|
||||
<th></th>
|
||||
<th>Cod</th>
|
||||
<th>Cli/Bask/Trat</th>
|
||||
<th>Descrizione</th>
|
||||
<th class="text-right">Importo</th>
|
||||
<th class="text-right">Fatturazione</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@@ -20,17 +19,26 @@
|
||||
<td class="text-nowrap">
|
||||
<button class="btn btn-sm btn-info" @onclick="() => Move(record)"><span class="fas fa-arrows-alt-h"></span></button>
|
||||
</td>
|
||||
<td>
|
||||
<td class="text-nowrap">
|
||||
<div>@record.RagSoc</div>
|
||||
<div>@record.CodNegotiation</div>
|
||||
<div class="small">@record.DataIns.ToString("ddd yyyy.MM.dd HH:mm")</div>
|
||||
<div class="small" title="@record.BaskDescript">@record.CodBasket</div>
|
||||
<div class="small">@record.CodNegotiation</div>
|
||||
</td>
|
||||
<td>
|
||||
<div>@record.Descript</div>
|
||||
<div class="small">@record.NumDocs</div>
|
||||
<div class="small d-flex justify-content-between">
|
||||
<div>
|
||||
@record.DataIns.ToString("ddd yyyy.MM.dd HH:mm")
|
||||
</div>
|
||||
<div>
|
||||
#doc: <b>@record.NumDocs</b>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td class="text-right text-nowrap" title="Importo">
|
||||
<b>@record.Importo.ToString("C2")</b>
|
||||
<div title="Fatturato" class="small">@record.Fatturato.ToString("C2") [F]</div>
|
||||
</td>
|
||||
<td class="text-right text-nowrap" title="Importo"><b>@record.Importo.ToString("C2")</b></td>
|
||||
<td class="text-right text-nowrap" title="Fatturato"><b>@record.Fatturato.ToString("C2")</b></td>
|
||||
</tr>
|
||||
}
|
||||
</tbody>
|
||||
|
||||
@@ -75,7 +75,7 @@
|
||||
<Sorter ParamName="Cod" IsAsc="@sortAsc" CurrParam="@sortField" sortReq="SortRequested"></Sorter>
|
||||
</th>
|
||||
<th>
|
||||
Tipo
|
||||
Categoria
|
||||
<Sorter ParamName="Tipo" IsAsc="@sortAsc" CurrParam="@sortField" sortReq="SortRequested"></Sorter>
|
||||
</th>
|
||||
<th>
|
||||
@@ -119,7 +119,7 @@
|
||||
}
|
||||
</td>
|
||||
<td>@record.CodItem</td>
|
||||
<td>@record.ResTypeId</td>
|
||||
<td>@record.ResName</td>
|
||||
<td>@record.UM</td>
|
||||
<td>@record.Descript</td>
|
||||
<td class="text-right">
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
<TargetFramework>net6.0</TargetFramework>
|
||||
<UserSecretsId>60fcdaab-6c1e-4bec-9d88-f7727ef1c12c</UserSecretsId>
|
||||
<ApplicationIcon>wwwroot\favicon.ico</ApplicationIcon>
|
||||
<Version>2.0.2402.1308</Version>
|
||||
<Version>2.0.2402.1310</Version>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
<Copyright>Egalware 2021+</Copyright>
|
||||
|
||||
Reference in New Issue
Block a user