服务端的TigerApi 框架,基于.NET6 2024 版本
Ben Lin
2024-10-16 a592da60f0db0d4eb950a81a8530e965444be7b1
Tiger.Model.Net/Entitys/MES/ParameterEntity/PositionParameter.cs
@@ -38,6 +38,10 @@
        /// </summary>
        public string SN { get; set; }
        /// <summary>
        /// 数量
        /// </summary>
        public string Qty { get; set; }
        /// <summary>
        /// 当前操作提交的不良代码,没有则留空
        /// </summary>
        public string DFT_CODE { get; set; }
@@ -53,6 +57,10 @@
        /// 整个工序操作是否完成
        /// </summary>
        public bool IsFinished { get; set; } = false;
        /// <summary>
        /// 短消息
        /// </summary>
        public ShortMessage ShortMsg { get; set; }
        /// <summary>
        /// 当前操作的工单对象
        /// </summary>
@@ -81,6 +89,10 @@
        /// 当前操作返回的数据
        /// </summary>
        public object Data { get; set; }
        /// <summary>
        /// 工序信息
        /// </summary>
        public OperInfo OperInfo { get; set; }
    }
@@ -99,7 +111,8 @@
        /// 包装行为当前执行的操作代码,包括:<br/>
        /// Scan:扫码,扫描当前包装层级的条码<br/>
        /// Print:打印,打印当前包装层级的标签<br/>
        /// Complete:完成,完成全部包装后结束行为<br/>
        /// Complete:完成,完成全部包装<br/>
        /// Weighing:称重,完成包装后对整个包装成称重<br/>
        /// </summary>
        public string ExecCode { get; set; }
        /// <summary>
@@ -114,6 +127,10 @@
        /// 当前操作的包装层级的标签条码
        /// </summary>
        public string PkgSN { get; set; }
        /// <summary>
        /// 当前操作的包装层级的重量信息
        /// </summary>
        public WeightInfo WeightInfo { get; set; }
    }
    public class PackingActionOutput
@@ -124,6 +141,7 @@
        /// Scan:扫码,扫描当前包装层级的条码<br/>
        /// Print:打印,打印当前包装层级的标签<br/>
        /// Complete:完成,已保存包装数据<br/>
        /// Weighing:称重,完成包装后对整个包装成称重<br/>
        /// </summary>
        public string ExecCode { get; set; }
        /// <summary>
@@ -141,10 +159,17 @@
    /// </summary>
    public class WipPkg
    {
        public string WorkBatch { get; set; }
        public string RULE_CODE { get; set; }
        public string RULE_NAME { get; set; }
        public string PROD_CODE { get; set; }
        public string ITEM_CODE { get; set; }
        public WipPkgItem Item { get; set; }
        public bool IsFinished { get; set; } = false;
        public bool NeedWeighing { get; set; } = false;
        public bool IsWeighed { get; set; } = false;
        public WeightInfo WeightInfo { get; set; } = new WeightInfo();
        public bool IsFinished => Item.IsFinished;
        public bool IsReachedEndNode { get; set; } = false;
    }
    /// <summary>
@@ -161,7 +186,7 @@
        public MES_WIP_PKG Package { get; set; }
        public bool IsFinished { get; set; } = false;
        public List<WipPkgItem> Items { get; set; } = new List<WipPkgItem>();
        public int TotalQty => Items.Any() ? Items.Sum(q => q.TotalQty) : 1;
    }
    /// <summary>
@@ -203,8 +228,48 @@
        /// 是否批次物料
        /// </summary>
        public bool IsBatchItem { get; set; }
        public List<BAS_ITEM> SubItems { get; set; } = new List<BAS_ITEM>();
        public List<MES_WIP_ASSY> Records { get; set; } = new List<MES_WIP_ASSY>();
        public bool IsFinished { get; set; } = false;
    }
    /// <summary>
    /// 称重信息
    /// </summary>
    public class WeightInfo
    {
        public double Weight { get; set; }
        public string Unit { get; set; }
    }
    /// <summary>
    /// 工序信息
    /// </summary>
    public class OperInfo
    {
        public string NextNode { get; set; } = "   —   ";
        public string CurNode { get; set; } = "   —   ";
        public bool IsReachedEndNode { get; set; } = false;
        public int InputQty { get; set; } = 0;
        public List<WorkStepInfo> StepsInfo { get; set; } = new List<WorkStepInfo>();
    }
    /// <summary>
    /// 工步信息
    /// </summary>
    public class WorkStepInfo
    {
        public string ID { get; set; }
        public string Name { get; set; }
        public int Sequence { get; set; }
        public string NodeID { get; set; }
        public string NodeType { get; set; }
        public MES_WO_NODE Node { get; set; }
        public MES_WO_OPER OperSetting { get; set; }
        public MES_WO_NODE_ACT NodeAct { get; set; }
        public MES_WO_ACTION ActSetting { get; set; }
        public string Status { get; set; }
        public string Message { get; set; }
    }
}