|
|
|
|
@ -5740,16 +5740,16 @@ namespace Khd.Core.Wpf.Form
|
|
|
|
|
this.LocaltionGrid.Children.Clear();
|
|
|
|
|
this.LocaltionGrid.RowDefinitions.Clear();
|
|
|
|
|
this.LocaltionGrid.ColumnDefinitions.Clear();
|
|
|
|
|
List<long> list = wmsBaseLocations.Select(t => t.warehouseId).Distinct().ToList();
|
|
|
|
|
List<long> list = wmsBaseLocations.Select(t => t.warehouseId).Distinct().ToList();//库位的楼层
|
|
|
|
|
int? column = 0;
|
|
|
|
|
|
|
|
|
|
for (var i = 0; i < list.Count; i++)
|
|
|
|
|
{
|
|
|
|
|
this.LocaltionGrid.RowDefinitions.Add(new RowDefinition() { Height = new GridLength(1.0, GridUnitType.Star) });
|
|
|
|
|
var grid = new Grid();
|
|
|
|
|
List<WmsBaseLocation> locations = wmsBaseLocations.Where(t => t.warehouseId == list[i]).ToList();
|
|
|
|
|
var row = locations.Max(t => t.locRow);
|
|
|
|
|
column = locations.Max(t => t.locColumn);
|
|
|
|
|
List<WmsBaseLocation> locations = wmsBaseLocations.Where(t => t.warehouseId == list[i]).ToList();//本楼层库位数量
|
|
|
|
|
var row = locations.Max(t => t.locRow);//最大行数
|
|
|
|
|
column = locations.Max(t => t.locColumn);//最大列数
|
|
|
|
|
if (list[0] == 231 && i == 0)
|
|
|
|
|
{
|
|
|
|
|
grid.RowDefinitions.Add(new RowDefinition() { Height = new GridLength(1.0, GridUnitType.Star) });
|
|
|
|
|
|