first commit -push

This commit is contained in:
dungtt
2025-10-15 15:15:53 +07:00
parent 674ae395be
commit a9577c5756
885 changed files with 74595 additions and 0 deletions

View 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; }
}

View 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; }
}

View 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; } = [];
}

View 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; }
}