@if (currRecord != null)
{
-
+
}
@if (ListRecords == null)
{
diff --git a/MP.Prog/Pages/Archive.razor.cs b/MP.Prog/Pages/Archive.razor.cs
index 0e843027..13ef9388 100644
--- a/MP.Prog/Pages/Archive.razor.cs
+++ b/MP.Prog/Pages/Archive.razor.cs
@@ -15,6 +15,7 @@ namespace MP.Prog.Pages
#region Private Fields
private List
ArtList;
+
private FileModel currRecord = null;
private List ListRecords;
private List MacList;
@@ -24,7 +25,9 @@ namespace MP.Prog.Pages
#region Protected Fields
- protected string _SearchArt = "###";
+ protected string _SearchArt;
+
+ protected string defCodArt = "";
#endregion Protected Fields
@@ -159,9 +162,9 @@ namespace MP.Prog.Pages
// se son > 3 char... debounce...
if (string.IsNullOrEmpty(value))
{
- _SearchArt = "###";
+ _SearchArt = defCodArt;
}
- if (value.Length >= 3)
+ if (value.Length >= defCodArt.Length)
{
var pUpd = Task.Run(async () =>
{
@@ -234,6 +237,7 @@ namespace MP.Prog.Pages
protected override async Task OnInitializedAsync()
{
DataService.ResetController();
+ SearchArt = defCodArt;
AppMService.ShowSearch = false;
AppMService.PageName = "Archivio File Programmi";
AppMService.PageIcon = "fas fa-folder pr-2";
@@ -246,8 +250,10 @@ namespace MP.Prog.Pages
isLoading = true;
MacList = await DataService.MacchineGetAll();
SelIdxMacc = "0";
+ SearchArt = defCodArt;
+
ArtList = await DataService.ArticoliGetFilt(SearchArt);
- SelCodArt = "###";
+
isLoading = false;
await ReloadData();
}
@@ -264,13 +270,18 @@ namespace MP.Prog.Pages
SearchRecords = null;
ListRecords = null;
AppMService.File_Filter = SelectData.Init(5, 10);
- SearchArt = "###";
+ SearchArt = defCodArt;
await ReloadAllData();
}
protected void ResetSearchArt()
{
- SearchArt = "###";
+ SearchArt = defCodArt;
+ }
+
+ protected void searchArtUpd(string newCod)
+ {
+ SelCodArt = newCod;
}
protected void Select(FileModel selRecord)
diff --git a/MP.Prog/Pages/Setup.razor b/MP.Prog/Pages/Setup.razor
new file mode 100644
index 00000000..9c7b1836
--- /dev/null
+++ b/MP.Prog/Pages/Setup.razor
@@ -0,0 +1,23 @@
+@page "/Setup"
+
+@using MP.Prog.Components
+@using MP.Prog.Data
+
+@inject MessageService AppMService
+
+Setup
+
+
+
+Selezionato @CurrCodArt
+
+@code {
+
+ protected string CurrCodArt { get; set; } = "";
+
+ protected void searchUpd(string newCod)
+ {
+ CurrCodArt = newCod;
+ }
+
+}
\ No newline at end of file