修改结构
This commit is contained in:
38
CleanMachine.Model/EnumFormType.cs
Normal file
38
CleanMachine.Model/EnumFormType.cs
Normal file
@@ -0,0 +1,38 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
namespace CleanMachineHMI.Domain.Enums
|
||||
{
|
||||
/// <summary>
|
||||
/// 窗体类别
|
||||
/// </summary>
|
||||
public enum EnumFormType
|
||||
{
|
||||
Main,
|
||||
MainDetail,
|
||||
MechineCheck,
|
||||
Login,
|
||||
Manual,
|
||||
Parameter,
|
||||
WorkingDataRecord,
|
||||
PlcItemConfig,
|
||||
PlcAlarmLog,
|
||||
IoMonitor,
|
||||
CurrWorkingIR,
|
||||
CleanMode,
|
||||
ContaminationDTL,
|
||||
ContaminationType,
|
||||
Role,
|
||||
User,
|
||||
SheetType,
|
||||
Warning,
|
||||
WorkingPallet,
|
||||
Log,
|
||||
Base,
|
||||
DataSearch,
|
||||
WarningLog,
|
||||
Maintenance
|
||||
}
|
||||
}
|
||||
19
CleanMachine.Model/EnumOperateType.cs
Normal file
19
CleanMachine.Model/EnumOperateType.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace CleanMachineHMI.Domain.Enums
|
||||
{
|
||||
/// <summary>
|
||||
/// 操作类型
|
||||
/// </summary>
|
||||
public enum EnumOperateType
|
||||
{
|
||||
Add,
|
||||
Edit,
|
||||
Deleted,
|
||||
Select,
|
||||
}
|
||||
}
|
||||
20
CleanMachine.Model/FormModel.cs
Normal file
20
CleanMachine.Model/FormModel.cs
Normal file
@@ -0,0 +1,20 @@
|
||||
using CleanMachineHMI.Domain.Enums;
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
|
||||
namespace CleanMachineHMI.Domain.Models.ViewModels
|
||||
{
|
||||
/// <summary>
|
||||
/// 窗体模型
|
||||
/// </summary>
|
||||
public class FormModel<T> where T : Type
|
||||
{
|
||||
public T Form { get; set; }
|
||||
|
||||
public EnumFormType FormType { get; set; }
|
||||
}
|
||||
}
|
||||
32
CleanMachine.Model/UserInfo.cs
Normal file
32
CleanMachine.Model/UserInfo.cs
Normal file
@@ -0,0 +1,32 @@
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace CleanMachineHMI.Domain.Models.ViewModels
|
||||
{
|
||||
/// <summary>
|
||||
/// 用户信息
|
||||
/// </summary>
|
||||
public class UserInfo
|
||||
{
|
||||
public int UserId { get; set; }
|
||||
|
||||
public string UserCode { get; set; }
|
||||
|
||||
public string UserName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 性别.0:男;1:女。
|
||||
/// </summary>
|
||||
public int Gender { get; set; }
|
||||
|
||||
public string ScheduleCode { get; set; }
|
||||
public int RoleId { get; set; }
|
||||
|
||||
public int RoleGrade { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user