| Description | +Total Duration (min) | +% Duration | +Chart | +
|---|---|---|---|
|
+ @item.AlarmDescription
+ |
+
+ @Math.Round(item.Duration,2)
+ |
+
+
+ @if (totalVar != 0)
+ {
+ @calcPercDur((double)item.Duration)
+ }
+
+ |
+
+
+
+
+ |
+
| Description | +Count | +Frequency | +Chart | +
|---|---|---|---|
|
+ @record.AlarmDescription
+ |
+
+ @record.EventCount
+ |
+
+
+ @if (totalVar != 0)
+ {
+ @calcPercFreq((double)record.EventCount)
+ }
+
+ |
+
+
+
+
+ |
+
| ID | @if (!compMode) { +ID | Created | Topic | Machine Group | Team in Charge | Counter Var | +Rem. Hours | } -Rem. Hours | Job Description | @if (!compMode) { @@ -115,17 +133,25 @@ @foreach (var record in ListRecords) {|||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @record.PMTaskeNav.ExtIdx | @if (!compMode) { +@record.PMTaskeNav.ExtIdx | @record.DtCreation.ToString("yyyy-MM-dd HH:mm:ss") | @record.PMTaskeNav.TopicNav.Description | @record.PMTaskeNav.MachGroupNav.Description | @record.PMTaskeNav.UserTeamNav.Description | @record.CounterNav.Description | +@record.PMTaskeNav.JobDescription | + } + else + { + @*@($"{record.CountRemainVal:N0}") | *@ +
+ @record.PMTaskeNav.JobDescription
+ |
}
- @record.PMTaskeNav.JobDescription | @if (!compMode) {
@@ -149,5 +175,21 @@
}
+
+
diff --git a/MP.MONO.UI/Components/MaintTaskPending.razor.cs b/MP.MONO.UI/Components/MaintTaskPending.razor.cs
index 2a313bb..f1b8601 100644
--- a/MP.MONO.UI/Components/MaintTaskPending.razor.cs
+++ b/MP.MONO.UI/Components/MaintTaskPending.razor.cs
@@ -54,6 +54,18 @@ namespace MP.MONO.UI.Components
[Parameter]
public EventCallback
-
-
-
-
-
-
-
-
-
-
+
diff --git a/MP.MONO.UI/Components/MaintTaskSched.razor.cs b/MP.MONO.UI/Components/MaintTaskSched.razor.cs
index a01dad3..b620a77 100644
--- a/MP.MONO.UI/Components/MaintTaskSched.razor.cs
+++ b/MP.MONO.UI/Components/MaintTaskSched.razor.cs
@@ -23,6 +23,7 @@ namespace MP.MONO.UI.Components
protected async Task ResetData()
{
showAddNew = false;
+ showEdit = false;
currRec = null;
await ReloadData();
}
@@ -51,6 +52,8 @@ namespace MP.MONO.UI.Components
private ListMaintenance's Task: Scheduled+
+
- @if (!showAddNew)
- {
-
- }
+
+
@@ -45,99 +53,112 @@
}
else
{
- @if (showAddNew)
+ @if (showAddNew || showEdit)
{
+
+
+
+
Maintenance's Task Setup+
+
+
+
+
+
-
+
+
+
-
}
-
- }
+ @if (currPMTaskId > 0)
+ {
+
-
- }
+ }
+
+ }
+
+
+ }
+
-
+
+
@if (!string.IsNullOrEmpty(item.CssIcon))
{
-
-
}
else
@@ -24,19 +23,29 @@
@item.Title
-
+ @item.Title
@item.Title
}
+
*@
-
-
+ @item.Value
-
-
-
+
+
+
- }
+
+
+ @item.Value
+
+
+ @if (item.ShowBar)
+ {
+
+
+ }
+
+
+
+
- @currVal.ToString("N0")
-
-
-
-
+@if (singleLine)
+{
+
+
+
+}
+else
+{
+
+ @currVal.ToString("N0")
+
+
+
+
+}
diff --git a/MP.MONO.UI/Components/ProgBar.razor.cs b/MP.MONO.UI/Components/ProgBar.razor.cs
index 6e8b168..bee0f2e 100644
--- a/MP.MONO.UI/Components/ProgBar.razor.cs
+++ b/MP.MONO.UI/Components/ProgBar.razor.cs
@@ -18,6 +18,10 @@ namespace MP.MONO.UI.Components
[Parameter]
public int yelLim { get; set; } = 20;
+
+ [Parameter]
+ public bool singleLine { get; set; } = false;
+
#endregion Public Properties
#region Private Properties
diff --git a/MP.MONO.UI/Components/ToolsOverview.razor b/MP.MONO.UI/Components/ToolsOverview.razor
index 327860e..8f01479 100644
--- a/MP.MONO.UI/Components/ToolsOverview.razor
+++ b/MP.MONO.UI/Components/ToolsOverview.razor
@@ -38,12 +38,11 @@
+
+
+ @SelectedTool
+
+
+
+}
\ No newline at end of file
diff --git a/MP.MONO.UI/Components/ToolsPlot.razor.cs b/MP.MONO.UI/Components/ToolsPlot.razor.cs
new file mode 100644
index 0000000..ab8aac0
--- /dev/null
+++ b/MP.MONO.UI/Components/ToolsPlot.razor.cs
@@ -0,0 +1,156 @@
+using Microsoft.AspNetCore.Components;
+using MP.MONO.Core.DTO;
+using MP.MONO.Data;
+using MP.MONO.Data.DTO;
+using MP.MONO.UI.Data;
+using Newtonsoft.Json;
+using static MP.MONO.Core.Enums;
+
+namespace MP.MONO.UI.Components
+{
+ public partial class ToolsPlot
+ {
+ #region Public Properties
+
+ [Parameter]
+ public int MachineId { get; set; } = 1;
+
+ public string ToolId
+ {
+ get => _selTool.Replace(" ", "_");
+ }
+
+ [Parameter]
+ public string SelectedTool
+ {
+ get => _selTool;
+ set => _selTool = value;
+ }
+
+ [Parameter]
+ public DataLogFilter SelFilter
+ {
+ get => _SelFilter;
+ set { _SelFilter = value; }
+ }
+
+ #endregion Public Properties
+
+ #region Protected Fields
+
+ protected DateTime lastRec = DateTime.Now.AddMinutes(-1);
+ protected List
+ @if (LevelVal == null || LevelVal.Count == 0)
+ {
+
+
+
+
+ @SelectedTool
+
+
+
+}
diff --git a/MP.MONO.UI/Components/ToolsPlotRT.razor.cs b/MP.MONO.UI/Components/ToolsPlotRT.razor.cs
new file mode 100644
index 0000000..2fee97a
--- /dev/null
+++ b/MP.MONO.UI/Components/ToolsPlotRT.razor.cs
@@ -0,0 +1,213 @@
+using Microsoft.AspNetCore.Components;
+using MP.MONO.Core.DTO;
+using MP.MONO.Data;
+using Newtonsoft.Json;
+
+namespace MP.MONO.UI.Components
+{
+ public partial class ToolsPlotRT
+ {
+ #region Protected Fields
+
+ protected DateTime lastRec = DateTime.Now.AddMinutes(-1);
+
+ protected Dictionary
+ @if (LevelVal == null || LevelVal.Count == 0)
+ {
+
+
|