using MongoDB.Bson; using Newtonsoft.Json; using System; using System.Collections.Generic; using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Threading.Tasks; namespace HH.WMS.Entitys.Algorithm { /// /// 仓库结构-AutoBom /// //[DataContract] public class AutoBomStockStructreEntity { [JsonIgnore] public ObjectId _id { get; set; } /// /// CN_GUID /// public string CN_GUID { get; set; } /// /// 仓库编号 /// public string CN_S_STOCK_CODE { set; get; } /// /// 排前缀 /// public string CN_S_ROW_PREFIX { set; get; } /// /// 排 /// public string CN_S_ROW { set; get; } /// /// 列前缀 /// public string CN_S_COL_PREFIX { set; get; } /// /// 列 /// public int CN_N_COL { set; get; } /// /// 已生成列数 /// public int CN_N_CREATED_COL_NUM { set; get; } /// /// 起始列 /// public string CN_S_START_COL_NUM { set; get; } /// /// 层前缀 /// public string CN_S_FLOOR_PREFIX { set; get; } /// /// 层数 /// public int CN_N_FLOOR { set; get; } /// /// 已生成层数 /// public int CN_N_CREATED_FLOOR_NUM { set; get; } /// /// 起始层 /// public string CN_S_START_FLOOR_NUM { set; get; } /// /// 巷道 /// public string CN_S_ROADWAY { set; get; } /// /// 创建人 /// public string CN_S_CREATOR { set; get; } /// /// /// public string CN_S_CREATOR_NAME { set; get; } /// /// /// public DateTime CN_T_CREATE { set; get; } /// /// /// public string CN_S_MODIFY_BY { set; get; } /// /// /// public string CN_S_MODIFY_NAME { set; get; } /// /// /// public DateTime? CN_T_MODIFY { set; get; } /// /// 库区编码 /// public string CN_S_AREA_CODE { set; get; } /// /// 是否可生成货位 /// public string CN_C_IS_ALLOW_GENERATE { set; get; } #region 根据起始列号和起始行号做判断 /// /// 起始行号(层号) /// public int first_row { get { int n = 1; int.TryParse(CN_S_START_FLOOR_NUM, out n); return n; } } /// /// 起始列号 /// public int first_column { get { int n = 1; int.TryParse(CN_S_START_COL_NUM, out n); return n; } } /// /// 起始行长度(层) /// public int first_row_count { get { return CN_S_START_FLOOR_NUM.Length; } } /// /// 起始列长度 /// public int first_column_count { get { return CN_S_START_COL_NUM.Length; } } #endregion } }