You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

98 lines
1.9 KiB
C#

namespace DS.WMS.Core.WmsModule.Dtos;
/// <summary>
///
/// </summary>
public class StoreAreaPositionInfo
{
public List<WmsStoreHouse> StoreHouses { get; set; }
}
public class WmsStoreHouse
{
/// <summary>
///
/// </summary>
public string StoreCode { get; set; }
/// <summary>
///
/// </summary>
public string StoreName { get; set; }
public AreaPositionMap AreaPositionMap { get; set; }
}
public class AreaPosition
{
public string StoreHouse { get; set; }
/// <summary>
/// 仓库
/// </summary>
public string StoreHouseName { get; set; }
public string AreaCode { get; set; }
public string AreaName { get; set; }
public int RowNum { get; set; }
public int ColumnNum { get; set; }
public int RowLength { get; set; }
public int ColumnLength { get; set; }
public int BoxCount { get; set; }
public int BoxVolume { get; set; }
}
public class AreaRow
{
public int RowNum { get; set; }
public List<AreaPosition> AreaPositions = new List<AreaPosition>();
public AreaPosition GetColumn(int column)
{
var res = new AreaPosition();
res.ColumnNum = 0;
if (AreaPositions.Count == 0)
{
return res;
}
if (AreaPositions.Where(x=>x.ColumnNum == column).Count()>0)
{
res = AreaPositions.First(x => x.ColumnNum == column);
}
return res;
}
}
public class AreaPositionMap
{
public List<AreaRow> RowList = new List<AreaRow>();
public AreaRow GetRow(int row)
{
var res = new AreaRow();
res.RowNum = 0;
if (RowList.Count == 0)
{
return res;
}
if (RowList.Where(x=>x.RowNum == row).Count()>0)
{
res = RowList.First(x => x.RowNum == row);
}
return res;
}
}