Update x fix compilazione SPEC e IOC x modifiche nomi modelli dati AnagArticoli in AnagArticoliModel

This commit is contained in:
Samuele Locatelli
2025-04-04 18:44:27 +02:00
parent 306e83b6d6
commit 258cbf105b
12 changed files with 30 additions and 30 deletions
+6 -6
View File
@@ -249,7 +249,7 @@ namespace MP.IOC.Data
/// </summary>
/// <param name="currRec"></param>
/// <returns></returns>
public async Task<bool> ArticoliDeleteRecord(AnagArticoli currRec)
public async Task<bool> ArticoliDeleteRecord(AnagArticoliModel currRec)
{
bool fatto = await SpecDbController.ArticoliDeleteRecord(currRec);
await resetCacheArticoli();
@@ -262,9 +262,9 @@ namespace MP.IOC.Data
/// <param name="numRecord"></param>
/// <param name="searchVal"></param>
/// <returns></returns>
public async Task<List<AnagArticoli>> ArticoliGetSearch(int numRecord, string azienda, string searchVal)
public async Task<List<AnagArticoliModel>> ArticoliGetSearch(int numRecord, string azienda, string searchVal)
{
List<AnagArticoli>? result = new List<AnagArticoli>();
List<AnagArticoliModel>? result = new List<AnagArticoliModel>();
Stopwatch stopWatch = new Stopwatch();
stopWatch.Start();
string readType = "DB";
@@ -274,7 +274,7 @@ namespace MP.IOC.Data
RedisValue rawData = redisDb.StringGet(currKey);
if (rawData.HasValue)
{
result = JsonConvert.DeserializeObject<List<AnagArticoli>>($"{rawData}");
result = JsonConvert.DeserializeObject<List<AnagArticoliModel>>($"{rawData}");
readType = "REDIS";
}
else
@@ -286,7 +286,7 @@ namespace MP.IOC.Data
}
if (result == null)
{
result = new List<AnagArticoli>();
result = new List<AnagArticoliModel>();
}
stopWatch.Stop();
TimeSpan ts = stopWatch.Elapsed;
@@ -299,7 +299,7 @@ namespace MP.IOC.Data
/// </summary>
/// <param name="currRec"></param>
/// <returns></returns>
public async Task<bool> ArticoliUpdateRecord(AnagArticoli currRec)
public async Task<bool> ArticoliUpdateRecord(AnagArticoliModel currRec)
{
bool fatto = await SpecDbController.ArticoliUpdateRecord(currRec);
await resetCacheArticoli();
+1 -1
View File
@@ -1,6 +1,6 @@
<body>
<i>Modulo MP-IOC </i>
<h4>Versione: 6.16.2503.1418</h4>
<h4>Versione: 6.16.2504.418</h4>
<br /> Note di rilascio:
<ul>
<li>
+1 -1
View File
@@ -1 +1 @@
6.16.2503.1418
6.16.2504.418
+1 -1
View File
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<item>
<version>6.16.2503.1418</version>
<version>6.16.2504.418</version>
<url>https://nexus.steamware.net/repository/SWS/MP-IOC/stable/LAST/MP.IOC.zip</url>
<changelog>https://nexus.steamware.net/repository/SWS/MP-IOC/stable/LAST/ChangeLog.html</changelog>
<mandatory>false</mandatory>
+1 -1
View File
@@ -314,7 +314,7 @@ namespace MP.SPEC.Components
private DossierModel? currRecordClone = null;
private List<AnagArticoli>? ListArticoli;
private List<AnagArticoliModel>? ListArticoli;
private List<AnagGruppi>? ListGruppiFase;
private List<Macchine>? ListMacchine;
+6 -6
View File
@@ -270,7 +270,7 @@ namespace MP.SPEC.Data
/// </summary>
/// <param name="currRec"></param>
/// <returns></returns>
public async Task<bool> ArticoliDeleteRecord(AnagArticoli currRec)
public async Task<bool> ArticoliDeleteRecord(AnagArticoliModel currRec)
{
bool fatto = await dbController.ArticoliDeleteRecord(currRec);
await resetCacheArticoli();
@@ -283,9 +283,9 @@ namespace MP.SPEC.Data
/// <param name="numRecord"></param>
/// <param name="searchVal"></param>
/// <returns></returns>
public async Task<List<AnagArticoli>> ArticoliGetSearch(int numRecord, string azienda, string searchVal)
public async Task<List<AnagArticoliModel>> ArticoliGetSearch(int numRecord, string azienda, string searchVal)
{
List<AnagArticoli>? result = new List<AnagArticoli>();
List<AnagArticoliModel>? result = new List<AnagArticoliModel>();
Stopwatch stopWatch = new Stopwatch();
stopWatch.Start();
string readType = "DB";
@@ -295,7 +295,7 @@ namespace MP.SPEC.Data
RedisValue rawData = redisDb.StringGet(currKey);
if (rawData.HasValue)
{
result = JsonConvert.DeserializeObject<List<AnagArticoli>>($"{rawData}");
result = JsonConvert.DeserializeObject<List<AnagArticoliModel>>($"{rawData}");
readType = "REDIS";
}
else
@@ -307,7 +307,7 @@ namespace MP.SPEC.Data
}
if (result == null)
{
result = new List<AnagArticoli>();
result = new List<AnagArticoliModel>();
}
stopWatch.Stop();
TimeSpan ts = stopWatch.Elapsed;
@@ -320,7 +320,7 @@ namespace MP.SPEC.Data
/// </summary>
/// <param name="currRec"></param>
/// <returns></returns>
public async Task<bool> ArticoliUpdateRecord(AnagArticoli currRec)
public async Task<bool> ArticoliUpdateRecord(AnagArticoliModel currRec)
{
bool fatto = await dbController.ArticoliUpdateRecord(currRec);
await resetCacheArticoli();
+1 -1
View File
@@ -5,7 +5,7 @@
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<RootNamespace>MP.SPEC</RootNamespace>
<Version>6.16.2503.2116</Version>
<Version>6.16.2504.418</Version>
<UserSecretsId>1800a78a-6ff1-40f9-b490-87fb8bfc1394</UserSecretsId>
<SatelliteResourceLanguages>en</SatelliteResourceLanguages>
</PropertyGroup>
+9 -9
View File
@@ -82,7 +82,7 @@ namespace MP.SPEC.Pages
/// <returns></returns>
protected async Task addNew()
{
currRecord = new AnagArticoli()
currRecord = new AnagArticoliModel()
{
CodArticolo = $"_NEW_{DateTime.Now:yyyyMMdd.HHmmss}",
DescArticolo = "Nuovo articolo",
@@ -140,7 +140,7 @@ namespace MP.SPEC.Pages
/// </summary>
/// <param name="selRec"></param>
/// <returns></returns>
protected async Task deleteRecord(AnagArticoli selRec)
protected async Task deleteRecord(AnagArticoliModel selRec)
{
if (!await JSRuntime.InvokeAsync<bool>("confirm", "Eliminazione Articolo: sei sicuro di voler procedere?"))
return;
@@ -193,15 +193,15 @@ namespace MP.SPEC.Pages
await Task.Delay(1);
}
protected async Task selRecord(AnagArticoli selRec)
protected async Task selRecord(AnagArticoliModel selRec)
{
currRecord = selRec;
await Task.Delay(1);
}
protected async Task cloneRecord(AnagArticoli selRec)
protected async Task cloneRecord(AnagArticoliModel selRec)
{
// creo record duplicato...
AnagArticoli newRec = new AnagArticoli()
AnagArticoliModel newRec = new AnagArticoliModel()
{
Azienda = selRec.Azienda,
CodArticolo = selRec.CodArticolo,
@@ -214,7 +214,7 @@ namespace MP.SPEC.Pages
}
protected async Task update(AnagArticoli selRec)
protected async Task update(AnagArticoliModel selRec)
{
if (!await JSRuntime.InvokeAsync<bool>("confirm", "Confermi di voler salvare le modifiche?"))
return;
@@ -236,11 +236,11 @@ namespace MP.SPEC.Pages
#region Private Fields
private string _selAzienda = "*";
private AnagArticoli? currRecord = null;
private AnagArticoliModel? currRecord = null;
private List<AnagGruppi>? ListAziende;
private List<AnagArticoli>? ListRecords;
private List<AnagArticoliModel>? ListRecords;
private List<ListValues>? ListTipoArt;
private List<AnagArticoli>? SearchRecords;
private List<AnagArticoliModel>? SearchRecords;
#endregion Private Fields
+1 -1
View File
@@ -294,7 +294,7 @@ namespace MP.SPEC.Pages
private PODLExpModel? _currRecord = null;
private AnagGruppi currGruppoSel = new AnagGruppi();
private PODLExpModel currRecordControlli = new PODLExpModel();
private List<AnagArticoli>? ListArticoli;
private List<AnagArticoliModel>? ListArticoli;
private List<AnagGruppi>? ListAziende;
private List<AnagGruppi>? ListGruppiFase;
private List<Macchine>? ListMacchine;
+1 -1
View File
@@ -1,6 +1,6 @@
<body>
<i>Modulo MAPOSPEC </i>
<h4>Versione: 6.16.2503.2116</h4>
<h4>Versione: 6.16.2504.418</h4>
<br /> Note di rilascio:
<ul>
<li>
+1 -1
View File
@@ -1 +1 @@
6.16.2503.2116
6.16.2504.418
+1 -1
View File
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<item>
<version>6.16.2503.2116</version>
<version>6.16.2504.418</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>