|
|
|
|
@ -39,10 +39,12 @@ namespace SlnMesnac.WPF.Page
|
|
|
|
|
// 加载地点选项(3001-3024)
|
|
|
|
|
private void LoadLocations()
|
|
|
|
|
{
|
|
|
|
|
for (int i = 3001; i <= 3024; i++)
|
|
|
|
|
for (int i = 301; i <= 312; i++)
|
|
|
|
|
{
|
|
|
|
|
this.StartComboBox.Items.Add(i.ToString());
|
|
|
|
|
EndComboBox.Items.Add(i.ToString());
|
|
|
|
|
this.StartComboBox.Items.Add(i.ToString()+"A");
|
|
|
|
|
this.StartComboBox.Items.Add(i.ToString() + "B");
|
|
|
|
|
EndComboBox.Items.Add(i.ToString()+"A");
|
|
|
|
|
EndComboBox.Items.Add(i.ToString() + "B");
|
|
|
|
|
}
|
|
|
|
|
StartComboBox.Items.Add("异常库位3066");
|
|
|
|
|
EndComboBox.Items.Add("异常库位3066");
|
|
|
|
|
@ -80,9 +82,15 @@ namespace SlnMesnac.WPF.Page
|
|
|
|
|
endCode = "3066";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
WmsBaseLocation? startLocation = SqlSugarClient.Queryable<WmsBaseLocation>().Where(it => it.AgvPositionCode == startCode).First();
|
|
|
|
|
WmsBaseLocation? endLocation = SqlSugarClient.Queryable<WmsBaseLocation>().Where(it => it.AgvPositionCode == endCode).First();
|
|
|
|
|
|
|
|
|
|
WmsBaseLocation? startLocation = SqlSugarClient.Queryable<WmsBaseLocation>().Where(it => it.LocationCode == startCode).First();
|
|
|
|
|
WmsBaseLocation? endLocation = SqlSugarClient.Queryable<WmsBaseLocation>().Where(it => it.LocationCode == endCode).First();
|
|
|
|
|
WmsPalletInfo? wmsPalletInfo = SqlSugarClient.Queryable<WmsPalletInfo>().InnerJoin<WmsBaseLocation>((x,y) => x.Amount == 0 && y.LocationCode == startCode).First();
|
|
|
|
|
|
|
|
|
|
if (wmsPalletInfo == null) {
|
|
|
|
|
MessageBox.Show("起点库位托盘未清空,无法移库!");
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (startLocation.LocationStatus != 0)
|
|
|
|
|
{
|
|
|
|
|
MessageBox.Show("起点库位不可用,状态被锁定!");
|
|
|
|
|
|