mirror of
https://gitee.com/langsisi_admin/serein-flow
synced 2026-04-05 15:56:33 +08:00
为ioc容器增加了可能存在的循环依赖提示
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
using Net462DllTest.Enums;
|
||||
using Net462DllTest.LogicControl;
|
||||
using Net462DllTest.Trigger;
|
||||
using Serein.Library.Attributes;
|
||||
using System;
|
||||
@@ -126,4 +127,109 @@ namespace Net462DllTest.Model
|
||||
}
|
||||
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 数据代理,防止View修改
|
||||
/// </summary>
|
||||
[AutoRegister]
|
||||
public class PlcVarModelDataProxy
|
||||
{
|
||||
private readonly PlcVarModel plcVarModel;
|
||||
public PlcVarModelDataProxy(PlcVarModel plcVarModel)
|
||||
{
|
||||
this.plcVarModel = plcVarModel;
|
||||
}
|
||||
/// <summary>
|
||||
/// 车位号
|
||||
/// </summary>
|
||||
public Int16 SpaceNum { get => plcVarModel.SpaceNum; }
|
||||
|
||||
/// <summary>
|
||||
/// 上位机指令
|
||||
/// </summary>
|
||||
public Int16 CmdForPLC { get => plcVarModel.CmdForPLC; }
|
||||
|
||||
/// <summary>
|
||||
/// PLC当前存取车位号
|
||||
/// </summary>
|
||||
public Int16 DoingSpaceNum { get => plcVarModel.DoingSpaceNum; }
|
||||
|
||||
/// <summary>
|
||||
/// 下位机状态
|
||||
/// </summary>
|
||||
public Int16 PLCState { get => plcVarModel.PLCState; }
|
||||
|
||||
/// <summary>
|
||||
/// 门1正常待机车位号,存车完成地面车位0
|
||||
/// </summary>
|
||||
public Int16 Door1CurSpaceNum { get => plcVarModel.Door1CurSpaceNum; }
|
||||
|
||||
/// <summary>
|
||||
/// 门2正常待机车位号,存车完成地面车位0
|
||||
/// </summary>
|
||||
public Int16 Door2CurSpaceNum { get => plcVarModel.Door2CurSpaceNum; }
|
||||
|
||||
/// <summary>
|
||||
/// 下位机运行模式
|
||||
/// </summary>
|
||||
public Int16 PLCRunMode { get => plcVarModel.PLCRunMode; }
|
||||
|
||||
/// <summary>
|
||||
/// 执行的门号
|
||||
/// </summary>
|
||||
public Int16 DoorVar { get => plcVarModel.DoorVar; }
|
||||
|
||||
/// <summary>
|
||||
/// 门1是否开到位
|
||||
/// </summary>
|
||||
public bool IsDoor1OpenDone { get => plcVarModel.IsDoor1OpenDone; }
|
||||
|
||||
/// <summary>
|
||||
/// 门1是否关到位
|
||||
/// </summary>
|
||||
public bool IsDoor1ClosedDone { get => plcVarModel.IsDoor1ClosedDone; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 门2是否开到位
|
||||
/// </summary>
|
||||
public bool IsDoor2OpenDone { get => plcVarModel.IsDoor2OpenDone; }
|
||||
|
||||
/// <summary>
|
||||
/// 门2是否关到位
|
||||
/// </summary>
|
||||
public bool IsDoor2ClosedDone { get => plcVarModel.IsDoor2ClosedDone; }
|
||||
|
||||
/// <summary>
|
||||
/// 通道1是否有车
|
||||
/// </summary>
|
||||
public bool HasCarInTone1 { get => plcVarModel.HasCarInTone1; }
|
||||
|
||||
/// <summary>
|
||||
/// 通道2是否有车
|
||||
/// </summary>
|
||||
public bool HasCarInTone2 { get => plcVarModel.HasCarInTone2; }
|
||||
|
||||
/// <summary>
|
||||
/// 下位机异常代码
|
||||
/// </summary>
|
||||
public Int16 ErrorCode { get => plcVarModel.ErrorCode; }
|
||||
|
||||
/// <summary>
|
||||
/// 2层以上的空板是否在待机
|
||||
/// </summary>
|
||||
public bool IsOver2FlowStanded { get => plcVarModel.IsOver2FlowStanded; }
|
||||
|
||||
/// <summary>
|
||||
/// 1号门指示灯
|
||||
/// </summary>
|
||||
public bool Gate1Light { get => plcVarModel.Gate1Light; }
|
||||
|
||||
/// <summary>
|
||||
/// 2号门指示灯
|
||||
/// </summary>
|
||||
public bool Gate2Light { get => plcVarModel.Gate2Light; }
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user