-
-
-
-
-
-
- @if (currRecord.Qty > 0 && !string.IsNullOrEmpty(currRecord.CodArtParent) && !string.IsNullOrEmpty(currRecord.CodArtChild))
+ @if (string.IsNullOrEmpty(EditRecord.CodArtChild))
{
-
+
+ }
+ else
+ {
+
+
+
+
+ }
+
+
+
+
+
+
+
+
+
+
+
+ @if (EditRecord.Qty > 0 && !string.IsNullOrEmpty(EditRecord.CodArtParent) && !string.IsNullOrEmpty(EditRecord.CodArtChild))
+ {
+
}
else
{
@@ -91,7 +132,7 @@
@if (enabKitSearch && !string.IsNullOrEmpty(SearchParent) && totalCount == 0)
{
-
+
}
@@ -104,14 +145,14 @@
|
- @if (currRecord != null)
+ @if (EditRecord != null)
{
}
|
- Articolo Parent |
- Articolo Child |
- KIT Qty |
+ Cod Kit (Parent) |
+ Articolo (Child) |
+ Art/Kit Qty |
|
diff --git a/MP.SPEC/Pages/KIT.razor.cs b/MP.SPEC/Pages/KIT.razor.cs
index d23173c7..a7d55d73 100644
--- a/MP.SPEC/Pages/KIT.razor.cs
+++ b/MP.SPEC/Pages/KIT.razor.cs
@@ -29,7 +29,7 @@ namespace MP.SPEC.Pages
public void Dispose()
{
- currRecord = null;
+ EditRecord = null;
ListTipoArt = null;
ListAziende = null;
SearchRecords = null;
@@ -146,7 +146,7 @@ namespace MP.SPEC.Pages
codParent = "";
}
}
- currRecord = new TemplateKitModel()
+ EditRecord = new TemplateKitModel()
{
CodArtParent = codParent,
CodArtChild = "",
@@ -157,7 +157,7 @@ namespace MP.SPEC.Pages
protected async Task DoCancel()
{
- currRecord = null;
+ EditRecord = null;
ReloadData();
await Task.Delay(1);
}
@@ -171,7 +171,7 @@ namespace MP.SPEC.Pages
CodArtChild = "",//selRec.CodArtParent,
Qty = selRec.Qty
};
- currRecord = newRec;
+ EditRecord = newRec;
await Task.Delay(1);
}
@@ -187,7 +187,7 @@ namespace MP.SPEC.Pages
await Task.Delay(1);
var done = await MDService.TemplateKitDelete(selRec);
- currRecord = null;
+ EditRecord = null;
ReloadData();
await Task.Delay(1);
}
@@ -199,7 +199,7 @@ namespace MP.SPEC.Pages
await Task.Delay(1);
var done = await MDService.TemplateKitUpsert(selRec);
- currRecord = null;
+ EditRecord = null;
ReloadData();
await Task.Delay(1);
}
@@ -239,7 +239,7 @@ namespace MP.SPEC.Pages
protected void ResetData()
{
- currRecord = null;
+ EditRecord = null;
}
protected void ResetParent()
@@ -250,12 +250,12 @@ namespace MP.SPEC.Pages
protected void ResetSel()
{
- currRecord = null;
+ EditRecord = null;
}
protected void SelRecord(TemplateKitModel selRec)
{
- currRecord = selRec;
+ EditRecord = selRec;
}
protected void SetNumPage(int newNum)
@@ -271,7 +271,7 @@ namespace MP.SPEC.Pages
protected void UpdateData()
{
- currRecord = null;
+ EditRecord = null;
ReloadData();
}
@@ -279,14 +279,27 @@ namespace MP.SPEC.Pages
#region Private Fields
- private TemplateKitModel? currRecord = null;
+ ///
+ /// Boolear controllo visualizzazione ricerca articoli
+ ///
+ private bool doSearchArt = false;
+
+ private TemplateKitModel? EditRecord = null;
+
private bool enabKitCount = false;
+
private bool enabKitSearch = false;
+
private List
? ListAziende;
+
private List? ListRecords;
+
private List? ListTipoArt;
+
private int minChar = 2;
+
private string sCodChild = "";
+
private List? SearchRecords;
#endregion Private Fields
@@ -294,6 +307,7 @@ namespace MP.SPEC.Pages
#region Private Properties
private int _currPage { get; set; } = 1;
+
private int _numRecord { get; set; } = 10;
private int currPage
@@ -325,6 +339,7 @@ namespace MP.SPEC.Pages
}
private string sCodParent { get; set; } = "";
+
private bool ShowCharts { get; set; } = false;
#endregion Private Properties
@@ -342,6 +357,27 @@ namespace MP.SPEC.Pages
isLoading = false;
}
+ ///
+ /// Toggle modale ricerca articoli
+ ///
+ private void SearchArtToggle()
+ {
+ doSearchArt = !doSearchArt;
+ }
+
+ ///
+ /// Salva selezione articolo
+ ///
+ ///
+ private void SetCodArtChild(string codArt)
+ {
+ if (EditRecord != null)
+ {
+ EditRecord.CodArtChild = codArt;
+ doSearchArt = false;
+ }
+ }
+
#endregion Private Methods
}
}
\ No newline at end of file
diff --git a/MP.SPEC/Pages/TestBtn.razor.cs b/MP.SPEC/Pages/TestBtn.razor.cs
index 4f88a6c7..82bfe58d 100644
--- a/MP.SPEC/Pages/TestBtn.razor.cs
+++ b/MP.SPEC/Pages/TestBtn.razor.cs
@@ -22,7 +22,7 @@ namespace MP.SPEC.Pages
public partial class TestBtn
{
[Inject]
- protected MessageService MService { get; set; } = null!;
+ protected MsgServiceSpec MService { get; set; } = null!;
public EventCallback newBcMsg { get; set; }
diff --git a/MP.SPEC/Program.cs b/MP.SPEC/Program.cs
index 321a060f..75ca897f 100644
--- a/MP.SPEC/Program.cs
+++ b/MP.SPEC/Program.cs
@@ -6,6 +6,7 @@ using Microsoft.AspNetCore.Components.Web;
using Microsoft.AspNetCore.StaticFiles;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.FileProviders;
+using MP.Data.Services;
using MP.SPEC.Components;
using MP.SPEC.Data;
using MP.SPEC.Services;
@@ -56,12 +57,13 @@ builder.Services.AddRazorPages();
builder.Services.AddServerSideBlazor();
builder.Services.AddSingleton(redisMultiplexer);
builder.Services.AddSingleton();
-builder.Services.AddScoped();
+builder.Services.AddSingleton();
+builder.Services.AddSingleton();
+builder.Services.AddScoped();
builder.Services.AddBlazoredLocalStorage();
builder.Services.AddBlazoredSessionStorage();
builder.Services.AddHttpClient();
-builder.Services.AddSingleton();
logger.Info("Aggiunti services");
diff --git a/MP.SPEC/Resources/ChangeLog.html b/MP.SPEC/Resources/ChangeLog.html
index d614d506..8070d5e2 100644
--- a/MP.SPEC/Resources/ChangeLog.html
+++ b/MP.SPEC/Resources/ChangeLog.html
@@ -1,6 +1,6 @@
Modulo MAPOSPEC
- Versione: 6.16.2504.919
+ Versione: 6.16.2504.1007
Note di rilascio:
-
diff --git a/MP.SPEC/Resources/VersNum.txt b/MP.SPEC/Resources/VersNum.txt
index f657b0d1..0269c5cd 100644
--- a/MP.SPEC/Resources/VersNum.txt
+++ b/MP.SPEC/Resources/VersNum.txt
@@ -1 +1 @@
-6.16.2504.919
+6.16.2504.1007
diff --git a/MP.SPEC/Resources/manifest.xml b/MP.SPEC/Resources/manifest.xml
index a60e1ca4..7fbd1950 100644
--- a/MP.SPEC/Resources/manifest.xml
+++ b/MP.SPEC/Resources/manifest.xml
@@ -1,6 +1,6 @@
-
- 6.16.2504.919
+ 6.16.2504.1007
https://nexus.steamware.net/repository/SWS/MP-SPEC/stable/LAST/MP.SPEC.zip
https://nexus.steamware.net/repository/SWS/MP-SPEC/stable/LAST/ChangeLog.html
false
diff --git a/MP.SPEC/appsettings.Production.json b/MP.SPEC/appsettings.Production.json
index b8e8fcb2..1980ac8c 100644
--- a/MP.SPEC/appsettings.Production.json
+++ b/MP.SPEC/appsettings.Production.json
@@ -9,6 +9,7 @@
},
"AllowedHosts": "*",
"ConnectionStrings": {
+ "MP.All": "Server=localhost\\SQLEXPRESS;Database=MoonPro; User ID=steamware;Password=viadante16; integrated security=False; MultipleActiveResultSets=True; App=MP.SPEC;",
"MP.Data": "Server=localhost\\SQLEXPRESS;Database=MoonPro; User ID=steamware;Password=viadante16; integrated security=False; MultipleActiveResultSets=True; App=MP.SPEC;",
"MP.Flux": "Server=localhost\\SQLEXPRESS;Database=MoonPro_FluxData; User ID=sa;Password=keyhammer16; integrated security=False; MultipleActiveResultSets=True; App=MP.SPEC;",
"MP.Inve": "Server=localhost\\SQLEXPRESS;Database=MoonPro_MAG; User ID=sa;Password=keyhammer16; integrated security=False; MultipleActiveResultSets=True; App=MP.SPEC;",
diff --git a/MP.SPEC/appsettings.json b/MP.SPEC/appsettings.json
index 1d4c6534..f37378f6 100644
--- a/MP.SPEC/appsettings.json
+++ b/MP.SPEC/appsettings.json
@@ -48,6 +48,7 @@
},
"AllowedHosts": "*",
"ConnectionStrings": {
+ "MP.All": "Server=SQL2016DEV;Database=MoonPro; User ID=sa;Password=keyhammer16; integrated security=False; MultipleActiveResultSets=True; App=MP.SPEC;",
"MP.Data": "Server=SQL2016DEV;Database=MoonPro; User ID=sa;Password=keyhammer16; integrated security=False; MultipleActiveResultSets=True; App=MP.SPEC;",
"MP.Flux": "Server=SQL2016DEV;Database=MoonPro_FluxData; User ID=sa;Password=keyhammer16; integrated security=False; MultipleActiveResultSets=True; App=MP.SPEC;",
"MP.Inve": "Server=SQL2016DEV;Database=MoonPro_MAG; User ID=sa;Password=keyhammer16; integrated security=False; MultipleActiveResultSets=True; App=MP.SPEC;",