|
|
|
|
@ -470,12 +470,15 @@ namespace Khd.Core.Wpf.Form
|
|
|
|
|
.ToList();
|
|
|
|
|
List<string> list = wmsRawOutstocks.Select(t => t.endStationCode).ToList();
|
|
|
|
|
List<long?> orderIds = wmsRawOutstocks.Select(t => t.rawOutstockId).ToList();
|
|
|
|
|
|
|
|
|
|
BaseEquip baseEquip = dbContext.BaseEquip.First(t => t.objid == 10);
|
|
|
|
|
string nowStationCode = baseEquip.endStationCode;
|
|
|
|
|
Dispatcher.Invoke(() =>
|
|
|
|
|
{
|
|
|
|
|
this.OutOrder.Text = "待出库单:\n" + list.Distinct().Join("\n");
|
|
|
|
|
this.OutOrder.Text = "当前:"+nowStationCode+"\n" +"待出库单:\n" + list.Distinct().Join("\n");
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
var baseEquip = dbContext.BaseEquip.First(t => t.objid == 10);
|
|
|
|
|
|
|
|
|
|
if (!string.IsNullOrEmpty(baseEquip.endStationCode))
|
|
|
|
|
{
|
|
|
|
|
#region 待测试
|
|
|
|
|
@ -1431,12 +1434,11 @@ namespace Khd.Core.Wpf.Form
|
|
|
|
|
{
|
|
|
|
|
try
|
|
|
|
|
{
|
|
|
|
|
//剩余出库单
|
|
|
|
|
int count = OutTaskNumber.Items.Count;
|
|
|
|
|
using var scope = _host.Services.CreateScope();
|
|
|
|
|
using var dbContext = scope.ServiceProvider.GetRequiredService<DefaultDbContext>();
|
|
|
|
|
BaseEquip baseEquip = dbContext.BaseEquip.First(t => t.objid == 10);
|
|
|
|
|
baseEquip.endStationCode = string.Empty;
|
|
|
|
|
baseEquip.ud3 = null;
|
|
|
|
|
dbContext.Update(baseEquip);
|
|
|
|
|
|
|
|
|
|
var wcsCmd = dbContext.WcsTask
|
|
|
|
|
.Where(t => t.taskStatus == 6 || t.taskStatus == 3)
|
|
|
|
|
.Where(t => t.nextPointId == 10)
|
|
|
|
|
@ -1449,6 +1451,7 @@ namespace Khd.Core.Wpf.Form
|
|
|
|
|
{
|
|
|
|
|
if (wcsCmd.taskType == 32)//领料
|
|
|
|
|
{
|
|
|
|
|
if(count>)
|
|
|
|
|
MessageBoxResult messageBoxResult = HandyControl.Controls.MessageBox.Show("是否需要背负式小车返回?", "提示信息", MessageBoxButton.YesNoCancel, MessageBoxImage.Information);
|
|
|
|
|
if (messageBoxResult == MessageBoxResult.Yes)
|
|
|
|
|
{
|
|
|
|
|
@ -1463,6 +1466,11 @@ namespace Khd.Core.Wpf.Form
|
|
|
|
|
}
|
|
|
|
|
else if (messageBoxResult == MessageBoxResult.Cancel)
|
|
|
|
|
{
|
|
|
|
|
BaseEquip baseEquip = dbContext.BaseEquip.First(t => t.objid == 10);
|
|
|
|
|
baseEquip.endStationCode = string.Empty;
|
|
|
|
|
baseEquip.ud3 = null;
|
|
|
|
|
dbContext.Update(baseEquip);
|
|
|
|
|
dbContext.SaveChanges();
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
if (wcsCmd.taskStatus == 3)
|
|
|
|
|
|