初始化项目
This commit is contained in:
36
AUTS.Domain.ViewModels/AutsChart/Node.cs
Normal file
36
AUTS.Domain.ViewModels/AutsChart/Node.cs
Normal file
@@ -0,0 +1,36 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace AUTS.Domain.ViewModels.AutsChart
|
||||
{
|
||||
public class Node
|
||||
{
|
||||
public Node() { }
|
||||
public Node(int id, string str, string img, List<Node> node, string color,string backgroundcolor ="")
|
||||
{
|
||||
nodeId = id;
|
||||
text = str;
|
||||
nodes = node;
|
||||
icon = img;
|
||||
this.color = color;
|
||||
this.backColor = backgroundcolor;
|
||||
}
|
||||
public Node(int id, string str, List<Node> node, string color, string backgroundcolor = "")
|
||||
{
|
||||
nodeId = id;
|
||||
text = str;
|
||||
nodes = node;
|
||||
this.color = color;
|
||||
this.backColor = backgroundcolor;
|
||||
}
|
||||
public int nodeId { get; set; } //树的节点Id,区别于数据库中保存的数据Id。若要存储数据库数据的Id,添加新的Id属性;若想为节点设置路径,类中添加Path属性
|
||||
public string text { get; set; } //节点名称
|
||||
public string icon { get; set; }
|
||||
public string color { get; set; }
|
||||
public string backColor { get; set; }
|
||||
public List<Node> nodes { get; set; } //子节点,可以用递归的方法读取,方法在下一章会总结
|
||||
}
|
||||
}
|
||||
19
AUTS.Domain.ViewModels/AutsChart/RequestOrderStats.cs
Normal file
19
AUTS.Domain.ViewModels/AutsChart/RequestOrderStats.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace AUTS.Domain.ViewModels
|
||||
{
|
||||
public class RequestOrderStats
|
||||
{
|
||||
public DateTime? StartDate { get; set; }
|
||||
|
||||
public DateTime? EndDate { get; set; }
|
||||
|
||||
public int ProjectID { get; set; }
|
||||
|
||||
public bool IsOrder { get; set; }
|
||||
}
|
||||
}
|
||||
21
AUTS.Domain.ViewModels/AutsChart/RequestOrdersPlanned.cs
Normal file
21
AUTS.Domain.ViewModels/AutsChart/RequestOrdersPlanned.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace AUTS.Domain.ViewModels
|
||||
{
|
||||
public class RequestOrdersPlanned
|
||||
{
|
||||
public DateTime? StartDate { get; set; }
|
||||
|
||||
public DateTime? EndDate { get; set; }
|
||||
|
||||
public int ProjectID { get; set; }
|
||||
|
||||
public bool IsOrder { get; set; }
|
||||
|
||||
public int id { get; set; }
|
||||
}
|
||||
}
|
||||
16
AUTS.Domain.ViewModels/AutsChart/RequestOrdersRealTime.cs
Normal file
16
AUTS.Domain.ViewModels/AutsChart/RequestOrdersRealTime.cs
Normal file
@@ -0,0 +1,16 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace AUTS.Domain.ViewModels
|
||||
{
|
||||
public class RequestOrdersRealTime
|
||||
{
|
||||
public int ProjectID { get; set; }
|
||||
|
||||
public int Order { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
20
AUTS.Domain.ViewModels/AutsChart/RequestStatsInProduc.cs
Normal file
20
AUTS.Domain.ViewModels/AutsChart/RequestStatsInProduc.cs
Normal file
@@ -0,0 +1,20 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace AUTS.Domain.ViewModels.AutsChart
|
||||
{
|
||||
public class RequestStatsInProduc
|
||||
{
|
||||
public DateTime? StartDate { get; set; }
|
||||
|
||||
public DateTime? EndDate { get; set; }
|
||||
|
||||
public int ProjectID { get; set; }
|
||||
|
||||
public string Order { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
37
AUTS.Domain.ViewModels/AutsChart/VM_DevNestable.cs
Normal file
37
AUTS.Domain.ViewModels/AutsChart/VM_DevNestable.cs
Normal file
@@ -0,0 +1,37 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace AUTS.Domain.ViewModels
|
||||
{
|
||||
public class VM_DevNestable
|
||||
{
|
||||
public int ServiceID { get; set; }
|
||||
public string HtmlText { get; set; }
|
||||
public string TerminalName { get; set; }
|
||||
public string TerminalType { get; set; }
|
||||
public string TerminalMAC { get; set; }
|
||||
public DateTime? ServiceLastActiveDateTime { get; set; }
|
||||
|
||||
public List<VM_AppListNestable> AppList { get; set; }
|
||||
|
||||
public VM_DevNestable()
|
||||
{
|
||||
AppList = new List<VM_AppListNestable>();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public class VM_AppListNestable
|
||||
{
|
||||
public string AppHtmlText { get; set; }
|
||||
public string AppName { get; set; }
|
||||
public string AppVersion { get; set; }
|
||||
public DateTime? LastActiveDateTime { get; set; }
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
47
AUTS.Domain.ViewModels/AutsChart/VM_OrderRealTimeStats.cs
Normal file
47
AUTS.Domain.ViewModels/AutsChart/VM_OrderRealTimeStats.cs
Normal file
@@ -0,0 +1,47 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace AUTS.Domain.ViewModels
|
||||
{
|
||||
public class VM_OrderRealTimeStats
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public class OrderTestLogData
|
||||
{
|
||||
/// <summary>
|
||||
/// 实际产量
|
||||
/// </summary>
|
||||
public int Total { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 时间
|
||||
/// </summary>
|
||||
public DateTime StartTime { get; set; }
|
||||
public string DAYS { get; set; }
|
||||
}
|
||||
|
||||
public class TbTotalDic
|
||||
{
|
||||
/// <summary>
|
||||
/// 计划产量
|
||||
/// </summary>
|
||||
public int PlanTotal { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 实际产量
|
||||
/// </summary>
|
||||
public int ActualTotal { get; set; }
|
||||
|
||||
public TbTotalDic()
|
||||
{
|
||||
PlanTotal = 0;
|
||||
ActualTotal = 0;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
65
AUTS.Domain.ViewModels/AutsChart/VM_TBL_OrderStats.cs
Normal file
65
AUTS.Domain.ViewModels/AutsChart/VM_TBL_OrderStats.cs
Normal file
@@ -0,0 +1,65 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace AUTS.Domain.ViewModels
|
||||
{
|
||||
public class VM_TBL_OrderStats
|
||||
{
|
||||
/// <summary>
|
||||
/// 站名
|
||||
/// </summary>
|
||||
public List<Entities.TBL_Project> ProjectList { get; set; }
|
||||
|
||||
public string SearchKey { get; set; }
|
||||
|
||||
public List<Entities.TBL_Orders> OrderList { get; set; }
|
||||
public RealTimeOrderInfo OrderInfo { get; set; }
|
||||
|
||||
//public VM_TBL_OrderStats()
|
||||
//{
|
||||
// OrderInfo = new RealTimeOrderInfo();
|
||||
//}
|
||||
}
|
||||
|
||||
public class RealTimeOrderInfo
|
||||
{
|
||||
/// <summary>
|
||||
/// 订单号
|
||||
/// </summary>
|
||||
public string OrderNo { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 客户
|
||||
/// </summary>
|
||||
public string CustomerAbbr { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 机型
|
||||
/// </summary>
|
||||
public string ProjectName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 创建时间
|
||||
/// </summary>
|
||||
public string CreateTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 交期时间
|
||||
/// </summary>
|
||||
public string DeliveryTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 订单数量
|
||||
/// </summary>
|
||||
public int OrderCount { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 工艺站描述
|
||||
/// </summary>
|
||||
public string StationDes { get; set; }
|
||||
}
|
||||
|
||||
}
|
||||
66
AUTS.Domain.ViewModels/AutsChart/VM_TreeNode.cs
Normal file
66
AUTS.Domain.ViewModels/AutsChart/VM_TreeNode.cs
Normal file
@@ -0,0 +1,66 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace AUTS.Domain.ViewModels
|
||||
{
|
||||
public class VM_TreeNode
|
||||
{
|
||||
/// <summary>
|
||||
/// id
|
||||
/// </summary>
|
||||
public int id { get; set; }
|
||||
/// <summary>
|
||||
/// 文本
|
||||
/// </summary>
|
||||
public string text { get; set; }
|
||||
/// <summary>
|
||||
/// 图标
|
||||
/// </summary>
|
||||
public string icon { get; set; }
|
||||
/// <summary>
|
||||
/// 是否有子节点
|
||||
/// </summary>
|
||||
public bool children { get; set; }
|
||||
/// <summary>
|
||||
/// 类型
|
||||
/// </summary>
|
||||
public string type { get; set; }
|
||||
/// <summary>
|
||||
/// 状态
|
||||
/// </summary>
|
||||
public string state { get; set; }
|
||||
}
|
||||
|
||||
public class VM_TreeView
|
||||
{
|
||||
/// <summary>
|
||||
/// 文本
|
||||
/// </summary>
|
||||
public string text { get; set; }
|
||||
public string icon { get; set; }
|
||||
public string backColor { get; set; }
|
||||
public int id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 文本
|
||||
/// </summary>
|
||||
public List<VM_TreeNodes> nodes { get; set; }
|
||||
|
||||
public VM_TreeView()
|
||||
{
|
||||
nodes = new List<VM_TreeNodes>();
|
||||
}
|
||||
}
|
||||
|
||||
public class VM_TreeNodes
|
||||
{
|
||||
/// <summary>
|
||||
/// 文本
|
||||
/// </summary>
|
||||
public string text { get; set; }
|
||||
public string backColor { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user