海波 张
2025-05-22 9ad3666d15deccc40a2aa4d1b96950c78eaf165f
wms/WMSModel.cs
@@ -69,9 +69,14 @@
        /// </summary>
        public string TOOLSTYPE { get; set; }
        /// <summary>
        /// 巷道
        /// 巷道 1-2-3 形式
        /// </summary>
        public string ROADWAY { get; set; }
        /// <summary>
        /// 逻辑库区编码
        /// </summary>
        public string ZONECODE { get; set; }
    }
@@ -158,11 +163,6 @@
        /// 启用
        /// </summary>
        public string C_ENABLE { get; set; }
        /// <summary>
        /// 生产时间
        /// </summary>
        public DateTime PRODUCTIONDATE { get; set; }
        
        /// <summary>
        /// 深度
@@ -641,10 +641,6 @@
        /// </summary>
        public string S_B_STATE { get; set; }
        /// <summary>
        /// 顺序号
        /// </summary>
        public string N_SORT_NO { get; set; }
        /// <summary>
        /// 作业编码
@@ -847,7 +843,7 @@
        /// <summary>
        /// 动作码
        /// </summary>
        public string N_ACTION_CODE { get; set; }
        public int N_ACTION_CODE { get; set; }
    }
@@ -1440,4 +1436,69 @@
        /// </summary>
        public string State { get; set; }
    }
    /// <summary>
    /// 逻辑库区货位关联表
    /// </summary>
    [ST("逻辑库区货位关联表")]
    public class ZoneLoc : BaseModel
    {
        //货位编码
        [SugarColumn(IsPrimaryKey = true)]
        public string S_LOC_CODE { get; set; }
        //逻辑库区编码
        public string S_ZONE_CODE { get; set; }
        [SugarColumn(IsIgnore = true)]
        [Navigate(NavigateType.OneToOne, nameof(S_LOC_CODE), nameof(Location.S_CODE))]
        public Location Loc { get; set; }
    }
    /// <summary>
    /// 逻辑编码相关逻辑库区关联
    /// </summary>
    [ST("逻辑编码关联表")]
    public class Zone : BaseModel
    {
        public string S_NAME { get; set; }
        public string S_NOTE { get; set; }
        public string S_WH_CODE { get; set; }
        public int N_EMPTY_MIN { get; set; }
        public int N_EMPTY_MAX { get; set; }
        [SugarColumn(IsPrimaryKey = true)]
        public string S_CODE { get; set; }
        public string S_AREA_CODE { get; set; }
        public string S_LOC_RULE { get; set; }
        public string S_ZONE_CLS_CODE { get; set; }
        public int N_AVAILABLE_IN { get; set; }
        public int N_TYPE { get; set; }
        public string S_TYPE { get; set; }
        public string S_ITEM_CODE { get; set; }
        public string S_ITEM_NAME { get; set; }
        public string S_BATCH_NO { get; set; }
        public string S_ITEM_CATEGORY { get; set; }
        public string S_OWNER_CODE { get; set; }
        public string S_SUPPLIER_CODE { get; set; }
        public int N_CONNECT_TYPE { get; set; }
        public string S_CONNECT_TYPE { get; set; }
        public int N_LOCK_STATE { get; set; }
        public string S_LOCK_STATE { get; set; }
        public string S_OWNER_NAME { get; set; }
        public string S_SUPPLIER_NAME { get; set; }
        public int N_STORE_MAX { get; set; }
        public string S_STATE_PRE { get; set; }
        public string C_IS_AREA { get; set; }
        public string S_GROUP { get; set; }
        [SugarColumn(IsIgnore = true)]
        [Navigate(NavigateType.OneToMany, nameof(S_CODE), nameof(ZoneLoc.S_LOC_CODE))]
        public List<ZoneLoc> ZoneLocs { get; set; }
    }
}