@if (currRecord != null)
{
-
+
}
@if (ListRecords == null)
{
@@ -89,7 +89,7 @@
Size |
State |
Macchina |
-
Articolo |
+
Tags |
Modificato |
@*
Controllo | *@
@@ -136,8 +136,10 @@
@record.Macchina.Descrizione
- @record.Articolo.Disegno
- @record.Articolo.DescArticolo
+ @foreach (var item in record.Tags)
+ {
+ @item.TagId
+ }
|
@record.LastMod.ToString("yyyy.MM.dd")
diff --git a/MP.Prog/Pages/Archive.razor.cs b/MP.Prog/Pages/Archive.razor.cs
index f9279fde..b7230ead 100644
--- a/MP.Prog/Pages/Archive.razor.cs
+++ b/MP.Prog/Pages/Archive.razor.cs
@@ -13,20 +13,19 @@ namespace MP.Prog.Pages
{
#region Private Fields
- private List ArtList;
-
private FileModel currRecord = null;
private List ListRecords;
private List MacList;
private List SearchRecords;
+ private List TagList;
#endregion Private Fields
#region Protected Fields
- protected string _SearchArt;
+ protected string _SearchTag;
- protected string defCodArt = "";
+ protected string defTag = "";
#endregion Protected Fields
@@ -170,26 +169,26 @@ namespace MP.Prog.Pages
[Inject]
protected NavigationManager NavManager { get; set; }
- protected string SearchArt
+ protected string SearchTag
{
get
{
- return _SearchArt;
+ return _SearchTag;
}
set
{
isLoading = true;
- _SearchArt = value;
+ _SearchTag = value;
// se son > 3 char... debounce...
if (string.IsNullOrEmpty(value))
{
- _SearchArt = defCodArt;
+ _SearchTag = defTag;
}
- if (value.Length >= defCodArt.Length)
+ if (value.Length >= defTag.Length)
{
var pUpd = Task.Run(async () =>
{
- ArtList = await DataService.ArticoliGetFilt(SearchArt);
+ TagList = await DataService.TagGetFilt(SearchTag);
});
pUpd.Wait();
}
@@ -289,7 +288,7 @@ namespace MP.Prog.Pages
protected override async Task OnInitializedAsync()
{
DataService.ResetController();
- SearchArt = defCodArt;
+ SearchTag = defTag;
AppMService.ShowSearch = false;
AppMService.PageName = "Archivio File Programmi";
AppMService.PageIcon = "fas fa-folder pr-2";
@@ -302,9 +301,9 @@ namespace MP.Prog.Pages
isLoading = true;
MacList = await DataService.MacchineGetAll();
SelIdxMacc = "0";
- SearchArt = defCodArt;
+ SearchTag = defTag;
- ArtList = await DataService.ArticoliGetFilt(SearchArt);
+ TagList = await DataService.TagGetFilt(SearchTag);
isLoading = false;
await ReloadData();
@@ -322,13 +321,13 @@ namespace MP.Prog.Pages
SearchRecords = null;
ListRecords = null;
AppMService.File_Filter = SelectData.Init(5, 10);
- SearchArt = defCodArt;
+ SearchTag = defTag;
await ReloadAllData();
}
protected void ResetSearchArt()
{
- SearchArt = defCodArt;
+ SearchTag = defTag;
}
protected void searchArtUpd(string newCod)
diff --git a/MP.Prog/Pages/Setup.razor b/MP.Prog/Pages/Setup.razor
index d7f551ca..cef56f59 100644
--- a/MP.Prog/Pages/Setup.razor
+++ b/MP.Prog/Pages/Setup.razor
@@ -8,45 +8,6 @@
Setup
-
-
@code {
- protected string _oldText = "Prova primo testo";
- protected string _newText = "Prova secondo testo";
-
- protected string oldText
- {
- get
- {
- return _oldText;
- }
- set
- {
- _oldText = value;
- }
- }
-
- protected string newText
- {
- get
- {
- return _newText;
- }
- set
- {
- _newText = value;
- }
- }
-
}
\ No newline at end of file
|