smartScreen
This commit is contained in:
98
DOAN.Model/MES/SmartScreen/EchartsDto.cs
Normal file
98
DOAN.Model/MES/SmartScreen/EchartsDto.cs
Normal file
@@ -0,0 +1,98 @@
|
||||
using Newtonsoft.Json.Converters;
|
||||
|
||||
namespace DOAN.Model.MES.SmartScreen
|
||||
{
|
||||
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// echarts 通用Options返回值
|
||||
/// </summary>
|
||||
public class EchartsOptions
|
||||
{
|
||||
public EchartsTitle Title { get; set; } = null;
|
||||
public EchartsXAxis XAxis { get; set; } = null;
|
||||
public EchartsYAxis YAxis { get; set; } = null;
|
||||
public List<EchartsSeries> Series { get; set; } = new List<EchartsSeries>();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// echarts图表标题
|
||||
///</summary>
|
||||
public class EchartsTitle
|
||||
{
|
||||
public EchartsTitle(string Text,string SubText)
|
||||
{
|
||||
this.Text = Text;
|
||||
this.SubText = SubText;
|
||||
}
|
||||
|
||||
public EchartsTitle(){}
|
||||
public string Text { get; set; } = string.Empty;
|
||||
public string SubText { get; set; } = string.Empty;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// echarts X轴
|
||||
///</summary>
|
||||
public class EchartsXAxis
|
||||
{
|
||||
public List<string> Data { get; set; } = new List<string>();
|
||||
// public string[] Data { get; set; } =Array.Empty<string>();
|
||||
|
||||
// value 数值轴,适用于连续数据 category 类目轴,适用于离散的类目数据 time 时间轴,适用于连续的时序数据 log 对数轴。适用于对数数据
|
||||
public string Type { get; set; } = "category";
|
||||
public string Max { get; set; }
|
||||
public string Min { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// echarts Y轴
|
||||
///</summary>
|
||||
public class EchartsYAxis
|
||||
{
|
||||
public List<string> Data { get; set; } = new List<string>();
|
||||
|
||||
// value 数值轴,适用于连续数据 category 类目轴,适用于离散的类目数据 time 时间轴,适用于连续的时序数据 log 对数轴。适用于对数数据
|
||||
public string Type { get; set; } = "category";
|
||||
public string Max { get; set; }
|
||||
public string Min { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// echarts图表series返回值
|
||||
///</summary>
|
||||
public class EchartsSeries
|
||||
{
|
||||
/// <summary>
|
||||
/// 标签名称
|
||||
/// </summary>
|
||||
public string Name { get; set; } = "category";
|
||||
|
||||
/// <summary>
|
||||
/// bar-柱状图 line-折线图 EchartsSeriesType enum结构
|
||||
/// </summary>
|
||||
public string Type { get; set; } = "bar";
|
||||
|
||||
/// <summary>
|
||||
/// 参数值
|
||||
/// </summary>
|
||||
public List<EchartsSeriesData> Data { get; set; } = new List<EchartsSeriesData>();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// echarts图表series返回值内容
|
||||
///</summary>
|
||||
public class EchartsSeriesData
|
||||
{
|
||||
/// <summary>
|
||||
/// 标签名称
|
||||
/// </summary>
|
||||
public string Name { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 参数值
|
||||
/// </summary>
|
||||
public decimal Value { get; set; } = new decimal();
|
||||
}
|
||||
}
|
||||
49
DOAN.Model/MES/SmartScreen/Product/DigitalTurntableModel.cs
Normal file
49
DOAN.Model/MES/SmartScreen/Product/DigitalTurntableModel.cs
Normal file
@@ -0,0 +1,49 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace DOAN.Model.MES.SmartScreen.Product
|
||||
{
|
||||
/// <summary>
|
||||
/// 数字翻牌器
|
||||
/// </summary>
|
||||
public class DigitalTurntableModel
|
||||
{
|
||||
/// <summary>
|
||||
/// 今日工单数
|
||||
/// </summary>
|
||||
public int WorkorderQuantity { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 今日已经完成工单数
|
||||
/// </summary>
|
||||
public int FinishedWorkorderQuantity { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 今日未完成工单数
|
||||
/// </summary>
|
||||
public int UnFinishedWorkorderQuantity { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 今日生产计划总数
|
||||
/// </summary>
|
||||
public int ProductionPlanQuantity { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 今日生产完成总数
|
||||
/// </summary>
|
||||
public int ProductionFinishQuantity { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 今天动用组数
|
||||
/// </summary>
|
||||
public int GroupQuantity { get; set; }
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user