first commit -push
This commit is contained in:
23
RobotNet.Script.Shares/Dashboard/DailyMissionDto.cs
Normal file
23
RobotNet.Script.Shares/Dashboard/DailyMissionDto.cs
Normal file
@@ -0,0 +1,23 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace RobotNet.Script.Shares.Dashboard;
|
||||
|
||||
public class DailyMissionDto
|
||||
{
|
||||
[Range(0, int.MaxValue)]
|
||||
public int Completed { get; set; }
|
||||
[Range(0, int.MaxValue)]
|
||||
public int Error { get; set; }
|
||||
[Range(0, int.MaxValue)]
|
||||
public int Total { get; set; }
|
||||
[Range(0, int.MaxValue)]
|
||||
public int CompletedRate { get; set; }
|
||||
[Range(0, double.MaxValue)]
|
||||
public double TaktTimeMin { get; set; }
|
||||
[Range(0, double.MaxValue)]
|
||||
public double TaktTimeAverage { get; set; }
|
||||
[Range(0, double.MaxValue)]
|
||||
public double TaktTimeMax { get; set; }
|
||||
[Range(0, int.MaxValue)]
|
||||
public int RobotOnline { get; set; }
|
||||
}
|
||||
14
RobotNet.Script.Shares/Dashboard/DailyPerformanceDto.cs
Normal file
14
RobotNet.Script.Shares/Dashboard/DailyPerformanceDto.cs
Normal file
@@ -0,0 +1,14 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace RobotNet.Script.Shares.Dashboard;
|
||||
|
||||
public class DailyPerformanceDto
|
||||
{
|
||||
public string Label { get; set; } = string.Empty;
|
||||
[Range(0, int.MaxValue)]
|
||||
public int Completed { get; set; }
|
||||
[Range(0, int.MaxValue)]
|
||||
public int Error { get; set; }
|
||||
[Range(0, int.MaxValue)]
|
||||
public int Other { get; set; }
|
||||
}
|
||||
11
RobotNet.Script.Shares/Dashboard/DashboardDto.cs
Normal file
11
RobotNet.Script.Shares/Dashboard/DashboardDto.cs
Normal file
@@ -0,0 +1,11 @@
|
||||
namespace RobotNet.Script.Shares.Dashboard;
|
||||
|
||||
public class DashboardDto
|
||||
{
|
||||
public string TimeUpdate { get; set; } = DateTime.Now.ToString("dd/MM/yyy HH:mm:ss");
|
||||
public DailyMissionDto DailyMission { get; set; } = new ();
|
||||
public DailyPerformanceDto TodayPerformance { get; set; } = new();
|
||||
public DailyPerformanceDto ThisWeekPerformance { get; set; } = new();
|
||||
public TaktTimeMissionDto[] TaktTimeMissions { get; set; } = [];
|
||||
public DailyPerformanceDto[] TotalMissionPerformance { get; set; } = [];
|
||||
}
|
||||
14
RobotNet.Script.Shares/Dashboard/TaktTimeMissionDto.cs
Normal file
14
RobotNet.Script.Shares/Dashboard/TaktTimeMissionDto.cs
Normal file
@@ -0,0 +1,14 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace RobotNet.Script.Shares.Dashboard;
|
||||
|
||||
public class TaktTimeMissionDto
|
||||
{
|
||||
public string Label { get; set; } = string.Empty;
|
||||
[Range(0, double.MaxValue)]
|
||||
public double Min { get; set; }
|
||||
[Range(0, double.MaxValue)]
|
||||
public double Max { get; set; }
|
||||
[Range(0, double.MaxValue)]
|
||||
public double Average { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user