TimbratureUpdate(TimbratureModel currItem)
- {
- bool answ = false;
- try
- {
- dbController.TimbratureUpdate(currItem);
- // invalido la cache...
- await InvalidateAllCache();
- answ = true;
- }
- catch
- { }
- return answ;
- }
-#endif
}
}
\ No newline at end of file
diff --git a/GPW.CORE.WRKLOG/Components/DayCheckEditor.razor.cs b/GPW.CORE.WRKLOG/Components/DayCheckEditor.razor.cs
index 3588a20..9fc08c4 100644
--- a/GPW.CORE.WRKLOG/Components/DayCheckEditor.razor.cs
+++ b/GPW.CORE.WRKLOG/Components/DayCheckEditor.razor.cs
@@ -1,3 +1,4 @@
+using GPW.CORE.Comp;
using GPW.CORE.Data.DbModels;
using Microsoft.AspNetCore.Components;
diff --git a/GPW.CORE.WRKLOG/Components/TimbList.razor b/GPW.CORE.WRKLOG/Components/TimbList.razor
index 157b607..764c5b6 100644
--- a/GPW.CORE.WRKLOG/Components/TimbList.razor
+++ b/GPW.CORE.WRKLOG/Components/TimbList.razor
@@ -27,7 +27,14 @@
}
|
-
+ @if (EnableEdit)
+ {
+
+ }
+ else
+ {
+
+ }
|
@if (@item.Entrata == false)
@@ -36,9 +43,15 @@
}
|
-
+ @if (EnableEdit)
+ {
+
+ }
+ else
+ {
+
+ }
|
-
}
@@ -65,6 +78,9 @@
}
}
+ [Parameter]
+ public bool EnableEdit { get; set; } = false;
+
[Parameter]
public EventCallback ReqDelete { get; set; }
diff --git a/GPW.CORE.WRKLOG/Components/TimbrEditor.razor b/GPW.CORE.WRKLOG/Components/TimbrEditor.razor
index f7a7542..4e17062 100644
--- a/GPW.CORE.WRKLOG/Components/TimbrEditor.razor
+++ b/GPW.CORE.WRKLOG/Components/TimbrEditor.razor
@@ -75,7 +75,7 @@
@if (ListTimbRich != null)
{
-
+
}
else
{
diff --git a/GPW.CORE.WRKLOG/GPW.CORE.WRKLOG.csproj b/GPW.CORE.WRKLOG/GPW.CORE.WRKLOG.csproj
index aafb9ff..9c1fe2e 100644
--- a/GPW.CORE.WRKLOG/GPW.CORE.WRKLOG.csproj
+++ b/GPW.CORE.WRKLOG/GPW.CORE.WRKLOG.csproj
@@ -7,8 +7,15 @@
enable
+
+
+
+
+
+
+
diff --git a/GPW.CORE.WRKLOG/Pages/Test.razor.cs b/GPW.CORE.WRKLOG/Pages/Test.razor.cs
index e8e7e3c..008d7de 100644
--- a/GPW.CORE.WRKLOG/Pages/Test.razor.cs
+++ b/GPW.CORE.WRKLOG/Pages/Test.razor.cs
@@ -16,6 +16,7 @@ using GPW.CORE.WRKLOG.Shared;
using GPW.CORE.WRKLOG.Components;
using GPW.CORE.Data.DbModels;
using GPW.CORE.WRKLOG.Data;
+using GPW.CORE.Comp;
namespace GPW.CORE.WRKLOG.Pages
{