Update gestione editing articoli x SPEC
This commit is contained in:
+14
-14
@@ -5,7 +5,7 @@
|
||||
<Nullable>enable</Nullable>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<RootNamespace>MP.SPEC</RootNamespace>
|
||||
<Version>6.16.2604.2715</Version>
|
||||
<Version>8.16.2604.2717</Version>
|
||||
<UserSecretsId>1800a78a-6ff1-40f9-b490-87fb8bfc1394</UserSecretsId>
|
||||
<SatelliteResourceLanguages>en</SatelliteResourceLanguages>
|
||||
</PropertyGroup>
|
||||
@@ -39,19 +39,19 @@
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Microsoft.AspNetCore.Authentication.Negotiate" Version="8.0.24" />
|
||||
<PackageReference Include="Microsoft.AspNetCore.Components" Version="8.0.24" />
|
||||
<PackageReference Include="Microsoft.AspNetCore.Components.Web" Version="8.0.24" />
|
||||
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
|
||||
<PackageReference Include="NLog.Targets.OpenTelemetryProtocol" Version="1.2.6" />
|
||||
<PackageReference Include="NLog.Web.AspNetCore" Version="5.3.14" />
|
||||
<PackageReference Include="OpenTelemetry.Exporter.Console" Version="1.15.3" />
|
||||
<PackageReference Include="OpenTelemetry.Exporter.OpenTelemetryProtocol" Version="1.15.3" />
|
||||
<PackageReference Include="OpenTelemetry.Extensions.Hosting" Version="1.15.3" />
|
||||
<PackageReference Include="OpenTelemetry.Instrumentation.AspNetCore" Version="1.15.2" />
|
||||
<PackageReference Include="OpenTelemetry.Instrumentation.SqlClient" Version="1.15.2" />
|
||||
<PackageReference Include="OpenTelemetry.Instrumentation.StackExchangeRedis" Version="1.15.0-beta.1" />
|
||||
<PackageReference Include="System.Text.Encodings.Web" Version="8.0.0" />
|
||||
<PackageReference Include="Microsoft.AspNetCore.Authentication.Negotiate" />
|
||||
<PackageReference Include="Microsoft.AspNetCore.Components" />
|
||||
<PackageReference Include="Microsoft.AspNetCore.Components.Web" />
|
||||
<PackageReference Include="Newtonsoft.Json" />
|
||||
<PackageReference Include="NLog.Targets.OpenTelemetryProtocol" />
|
||||
<PackageReference Include="NLog.Web.AspNetCore" />
|
||||
<PackageReference Include="OpenTelemetry.Exporter.Console" />
|
||||
<PackageReference Include="OpenTelemetry.Exporter.OpenTelemetryProtocol" />
|
||||
<PackageReference Include="OpenTelemetry.Extensions.Hosting" />
|
||||
<PackageReference Include="OpenTelemetry.Instrumentation.AspNetCore" />
|
||||
<PackageReference Include="OpenTelemetry.Instrumentation.SqlClient" />
|
||||
<PackageReference Include="OpenTelemetry.Instrumentation.StackExchangeRedis" />
|
||||
<PackageReference Include="System.Text.Encodings.Web" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
||||
@@ -45,7 +45,14 @@
|
||||
<div class="col-3">
|
||||
<div class="input-group">
|
||||
<span class="input-group-text">Codice</span>
|
||||
<input type="text" class="form-control" placeholder="Articolo" @bind-value="@currRecord.CodArticolo">
|
||||
@if(isNewArt)
|
||||
{
|
||||
<input type="text" class="form-control" placeholder="Articolo" @bind-value="@currRecord.CodArticolo">
|
||||
}
|
||||
else
|
||||
{
|
||||
<input type="text" class="form-control" disabled placeholder="Articolo" @bind-value="@currRecord.CodArticolo">
|
||||
}
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-5">
|
||||
|
||||
@@ -76,19 +76,24 @@ namespace MP.SPEC.Pages
|
||||
|
||||
#region Protected Methods
|
||||
|
||||
private bool isNewArt = false;
|
||||
|
||||
/// <summary>
|
||||
/// Crea nuovo record e va in editing...
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
protected async Task addNew()
|
||||
{
|
||||
isNewArt = true;
|
||||
currRecord = new AnagArticoliModel()
|
||||
{
|
||||
CodArticolo = $"_NEW_{DateTime.Now:yyyyMMdd.HHmmss}",
|
||||
DescArticolo = "Nuovo articolo",
|
||||
Azienda = selAzienda != "*" ? selAzienda : "MAPO",
|
||||
Disegno = "",
|
||||
Tipo = "ART"
|
||||
Tipo = "ART",
|
||||
CurrRev = "",
|
||||
ProdRev = ""
|
||||
};
|
||||
await Task.Delay(1);
|
||||
}
|
||||
@@ -128,6 +133,8 @@ namespace MP.SPEC.Pages
|
||||
}
|
||||
private string searchVal { get; set; } = "";
|
||||
|
||||
private string chkDisabled => isNewArt ? "" : "disabled";
|
||||
|
||||
protected async Task cancel()
|
||||
{
|
||||
currRecord = null;
|
||||
@@ -188,30 +195,36 @@ namespace MP.SPEC.Pages
|
||||
|
||||
protected void ResetData()
|
||||
{
|
||||
isNewArt = false;
|
||||
currRecord = null;
|
||||
}
|
||||
|
||||
protected async Task resetSel()
|
||||
{
|
||||
isNewArt = false;
|
||||
currRecord = null;
|
||||
await Task.Delay(1);
|
||||
}
|
||||
|
||||
protected async Task selRecord(AnagArticoliModel selRec)
|
||||
{
|
||||
isNewArt = false;
|
||||
currRecord = selRec;
|
||||
await Task.Delay(1);
|
||||
}
|
||||
protected async Task cloneRecord(AnagArticoliModel selRec)
|
||||
{
|
||||
isNewArt = true;
|
||||
// creo record duplicato...
|
||||
AnagArticoliModel newRec = new AnagArticoliModel()
|
||||
{
|
||||
Azienda = selRec.Azienda,
|
||||
CodArticolo = selRec.CodArticolo,
|
||||
CodArticolo = $"clone-{selRec.CodArticolo}",
|
||||
DescArticolo = $"CLONE - {selRec.DescArticolo}",
|
||||
Disegno = selRec.Disegno,
|
||||
Tipo = selRec.Tipo
|
||||
Tipo = selRec.Tipo,
|
||||
CurrRev = "",
|
||||
ProdRev = ""
|
||||
};
|
||||
currRecord = newRec;
|
||||
await Task.Delay(1);
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<body>
|
||||
<i>Modulo MAPOSPEC </i>
|
||||
<h4>Versione: 6.16.2604.2715</h4>
|
||||
<h4>Versione: 8.16.2604.2717</h4>
|
||||
<br /> Note di rilascio:
|
||||
<ul>
|
||||
<li>
|
||||
|
||||
@@ -1 +1 @@
|
||||
6.16.2604.2715
|
||||
8.16.2604.2717
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<item>
|
||||
<version>6.16.2604.2715</version>
|
||||
<version>8.16.2604.2717</version>
|
||||
<url>https://nexus.steamware.net/repository/SWS/MP-SPEC/stable/LAST/MP.SPEC.zip</url>
|
||||
<changelog>https://nexus.steamware.net/repository/SWS/MP-SPEC/stable/LAST/ChangeLog.html</changelog>
|
||||
<mandatory>false</mandatory>
|
||||
|
||||
Reference in New Issue
Block a user