| ¶Ô±ÈÐÂÎļþ |
| | |
| | | using Newtonsoft.Json; |
| | | using SqlSugar; |
| | | using WIDESEAWCS_Core.DB.Models; |
| | | |
| | | namespace WIDESEAWCS_Model.Models |
| | | { |
| | | /// <summary> |
| | | /// æºæ¢°æç¶ææ°æ®åºå®ä½ |
| | | /// </summary> |
| | | /// <remarks> |
| | | /// å¯¹åºæ°æ®åºè¡¨ Dt_RobotStateï¼ä½¿ç¨ RowVersion å®ç°ä¹è§å¹¶åæ§å¶ã |
| | | /// å¤æå¯¹è±¡ï¼RobotCraneãCurrentTaskãæ°ç»çï¼ä»¥ JSON å符串åå¨ã |
| | | /// </remarks> |
| | | [SugarTable(nameof(Dt_RobotState), "æºæ¢°æç¶æè¡¨")] |
| | | public class Dt_RobotState : BaseEntity |
| | | { |
| | | /// <summary> |
| | | /// ä¸»é® ID |
| | | /// </summary> |
| | | [SugarColumn(IsPrimaryKey = true, IsIdentity = true, ColumnDescription = "主é®ID")] |
| | | public int Id { get; set; } |
| | | |
| | | /// <summary> |
| | | /// æºæ¢°æ IP å°åï¼å¯ä¸ç´¢å¼ |
| | | /// </summary> |
| | | [SugarColumn(Length = 50, ColumnDescription = "æºæ¢°æIPå°å", IsJsonKey = true)] |
| | | public string IPAddress { get; set; } = string.Empty; |
| | | |
| | | /// <summary> |
| | | /// è¡çæ¬ï¼ç¨äºä¹è§å¹¶åæ§å¶ |
| | | /// </summary> |
| | | /// <remarks> |
| | | /// SqlSugar ä¼èªå¨ç®¡çæ¤åæ®µï¼æ¯æ¬¡æ´æ°æ¶æ°æ®åºèªå¨éå¢ã |
| | | /// æ´æ°æ¶ WHERE RowVersion = @expectedRowVersionï¼æ£æ¥å½±åè¡æ°å¤ææ¯å¦å²çªã |
| | | /// </remarks> |
| | | [SugarColumn(ColumnDescription = "è¡çæ¬ï¼ä¹è§éï¼", IsJsonKey = true)] |
| | | public byte[] RowVersion { get; set; } = Array.Empty<byte>(); |
| | | |
| | | /// <summary> |
| | | /// æ¯å¦å·²è®¢é
æ¶æ¯äºä»¶ |
| | | /// </summary> |
| | | [SugarColumn(ColumnDescription = "æ¯å¦å·²è®¢é
æ¶æ¯äºä»¶", IsJsonKey = true)] |
| | | public bool IsEventSubscribed { get; set; } |
| | | |
| | | /// <summary> |
| | | /// æºæ¢°æè¿è¡æ¨¡å¼ |
| | | /// </summary> |
| | | /// <remarks>1: æå¨æ¨¡å¼, 2: èªå¨æ¨¡å¼</remarks> |
| | | [SugarColumn(ColumnDescription = "è¿è¡æ¨¡å¼", IsNullable = true, IsJsonKey = true)] |
| | | public int? RobotRunMode { get; set; } |
| | | |
| | | /// <summary> |
| | | /// æºæ¢°ææ§å¶æ¨¡å¼ |
| | | /// </summary> |
| | | /// <remarks>1: 客æ·ç«¯æ§å¶, 2: å
¶ä»</remarks> |
| | | [SugarColumn(ColumnDescription = "æ§å¶æ¨¡å¼", IsNullable = true, IsJsonKey = true)] |
| | | public int? RobotControlMode { get; set; } |
| | | |
| | | /// <summary> |
| | | /// æºæ¢°ææèæåå¯¹è±¡ç¶æ |
| | | /// </summary> |
| | | /// <remarks>0: æ ç©æï¼æè空é²ï¼, 1: æç©æï¼å·²æåè´§ç©ï¼</remarks> |
| | | [SugarColumn(ColumnDescription = "æèæåç¶æ", IsNullable = true, IsJsonKey = true)] |
| | | public int? RobotArmObject { get; set; } |
| | | |
| | | /// <summary> |
| | | /// æºæ¢°æè®¾å¤åºç¡ä¿¡æ¯ï¼JSON åºååï¼ |
| | | /// </summary> |
| | | [SugarColumn(Length = 2000, ColumnDescription = "设å¤ä¿¡æ¯JSON", IsJsonKey = true)] |
| | | public string RobotCraneJson { get; set; } = string.Empty; |
| | | |
| | | /// <summary> |
| | | /// æºæ¢°æåå§å宿åå°å¾
æºä½ç¶æ |
| | | /// </summary> |
| | | /// <remarks>Possible values: "Homed", "Homing"</remarks> |
| | | [SugarColumn(Length = 50, ColumnDescription = "åé¶ç¶æ", IsNullable = true, IsJsonKey = true)] |
| | | public string? Homed { get; set; } |
| | | |
| | | /// <summary> |
| | | /// æºæ¢°æå½åæ£å¨æ§è¡çå¨ä½ |
| | | /// </summary> |
| | | [SugarColumn(Length = 50, ColumnDescription = "å½åå¨ä½", IsNullable = true, IsJsonKey = true)] |
| | | public string? CurrentAction { get; set; } |
| | | |
| | | /// <summary> |
| | | /// æºæ¢°æå½åè¿è¡ç¶æ |
| | | /// </summary> |
| | | [SugarColumn(Length = 50, ColumnDescription = "è¿è¡ç¶æ", IsNullable = true, IsJsonKey = true)] |
| | | public string? OperStatus { get; set; } |
| | | |
| | | /// <summary> |
| | | /// æè¿ä¸æ¬¡åè´§å®æçä½ç½®æ°ç»ï¼JSONï¼ |
| | | /// </summary> |
| | | [SugarColumn(Length = 500, ColumnDescription = "åè´§ä½ç½®æ°ç»JSON", IsNullable = true, IsJsonKey = true)] |
| | | public string? LastPickPositionsJson { get; set; } |
| | | |
| | | /// <summary> |
| | | /// æè¿ä¸æ¬¡æ¾è´§å®æçä½ç½®æ°ç»ï¼JSONï¼ |
| | | /// </summary> |
| | | [SugarColumn(Length = 500, ColumnDescription = "æ¾è´§ä½ç½®æ°ç»JSON", IsNullable = true, IsJsonKey = true)] |
| | | public string? LastPutPositionsJson { get; set; } |
| | | |
| | | /// <summary> |
| | | /// çµæ± /è´§ä½æ¡ç å表ï¼JSONï¼ |
| | | /// </summary> |
| | | [SugarColumn(Length = 2000, ColumnDescription = "çµè¯æ¡ç å表JSON", IsNullable = true, IsJsonKey = true)] |
| | | public string? CellBarcodeJson { get; set; } |
| | | |
| | | /// <summary> |
| | | /// æºæ¢°æå½åæ£å¨æ§è¡çä»»å¡ï¼JSON åºååï¼ |
| | | /// </summary> |
| | | [SugarColumn(Length = 2000, ColumnDescription = "å½åä»»å¡JSON", IsNullable = true, IsJsonKey = true)] |
| | | public string? CurrentTaskJson { get; set; } |
| | | |
| | | /// <summary> |
| | | /// æ¯å¦éè¦æ§è¡æçä»»å¡ |
| | | /// </summary> |
| | | [SugarColumn(ColumnDescription = "æ¯å¦æçä»»å¡", IsJsonKey = true)] |
| | | public bool IsSplitPallet { get; set; } |
| | | |
| | | /// <summary> |
| | | /// æ¯å¦éè¦æ§è¡ç»çä»»å¡ |
| | | /// </summary> |
| | | [SugarColumn(ColumnDescription = "æ¯å¦ç»çä»»å¡", IsJsonKey = true)] |
| | | public bool IsGroupPallet { get; set; } |
| | | |
| | | /// <summary> |
| | | /// æºå¨äººå·²å¤çç任塿»æ° |
| | | /// </summary> |
| | | [SugarColumn(ColumnDescription = "å·²å¤ç任塿»æ°", IsJsonKey = true)] |
| | | public int RobotTaskTotalNum { get; set; } |
| | | |
| | | /// <summary> |
| | | /// æ¯å¦å¤äºåçµè¯è¡¥å
æ¨¡å¼ |
| | | /// </summary> |
| | | [SugarColumn(ColumnDescription = "æ¯å¦åçµè¯æ¨¡å¼", IsJsonKey = true)] |
| | | public bool IsInFakeBatteryMode { get; set; } |
| | | |
| | | /// <summary> |
| | | /// å½åæ¹æ¬¡èµ·å§ç¼å· |
| | | /// </summary> |
| | | [SugarColumn(ColumnDescription = "å½åæ¹æ¬¡ç¼å·", IsJsonKey = true)] |
| | | public int CurrentBatchIndex { get; set; } = 1; |
| | | |
| | | /// <summary> |
| | | /// æ¢çä»»å¡å½åé¶æ®µ |
| | | /// </summary> |
| | | [SugarColumn(ColumnDescription = "æ¢çé¶æ®µ", IsJsonKey = true)] |
| | | public int ChangePalletPhase { get; set; } |
| | | |
| | | /// <summary> |
| | | /// æ¯å¦æ«ç NG |
| | | /// </summary> |
| | | [SugarColumn(ColumnDescription = "æ¯å¦æ«ç NG", IsJsonKey = true)] |
| | | public bool IsScanNG { get; set; } |
| | | |
| | | /// <summary> |
| | | /// æ¯å¦çµè¯å°ä½ |
| | | /// </summary> |
| | | [SugarColumn(ColumnDescription = "çµè¯æ¯å¦å°ä½", IsJsonKey = true)] |
| | | public bool BatteryArrived { get; set; } |
| | | } |
| | | } |