|
|
|
|
@ -31,6 +31,7 @@ using System.Windows.Input;
|
|
|
|
|
using System.Windows;
|
|
|
|
|
using System.Windows.Controls;
|
|
|
|
|
using System.Collections.ObjectModel;
|
|
|
|
|
using static HandyControl.Tools.Interop.InteropValues;
|
|
|
|
|
|
|
|
|
|
namespace Khd.Core.Wpf.Form
|
|
|
|
|
{
|
|
|
|
|
@ -1269,7 +1270,7 @@ namespace Khd.Core.Wpf.Form
|
|
|
|
|
wcsTask.taskStatus = 0;
|
|
|
|
|
wcsTask.createTime = DateTime.Now;
|
|
|
|
|
wcsTask.useFlag = 1;
|
|
|
|
|
wcsTask.objid=Global.SnowId.NextId();
|
|
|
|
|
wcsTask.objid = Global.SnowId.NextId();
|
|
|
|
|
WcsTaskLog wcsTaskLog = CoreMapper.Map<WcsTaskLog>(wcsTask);
|
|
|
|
|
dbContext.Add(wcsTaskLog);
|
|
|
|
|
dbContext.Update(wcsTask);
|
|
|
|
|
@ -1633,6 +1634,11 @@ namespace Khd.Core.Wpf.Form
|
|
|
|
|
/// <param name="sender"></param>
|
|
|
|
|
/// <param name="e"></param>
|
|
|
|
|
private void InRawBaseLocaltion_Click(object sender, RoutedEventArgs e)
|
|
|
|
|
{
|
|
|
|
|
ScanInBox();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private void ScanInBox()
|
|
|
|
|
{
|
|
|
|
|
try
|
|
|
|
|
{
|
|
|
|
|
@ -1818,7 +1824,7 @@ namespace Khd.Core.Wpf.Form
|
|
|
|
|
createDate = System.DateTime.Now,
|
|
|
|
|
safeFlag = material.safeFlag
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
dbContext.WmsRawStock.Add(newRawStock);
|
|
|
|
|
dbContext.SaveChanges();
|
|
|
|
|
HandyControl.Controls.MessageBox.Success("入库成功!");
|
|
|
|
|
@ -2274,7 +2280,7 @@ namespace Khd.Core.Wpf.Form
|
|
|
|
|
List<MesBaseMaterialInfo> materialInfos = new List<MesBaseMaterialInfo>();
|
|
|
|
|
if (!string.IsNullOrEmpty(MaterialName.Text))
|
|
|
|
|
{
|
|
|
|
|
materialInfos = dbContext.MesBaseMaterialInfo.Where(t => t.MaterialName.Contains(MaterialName.Text)).ToList();
|
|
|
|
|
materialInfos = dbContext.MesBaseMaterialInfo.Where(t => t.MaterialName.Contains(MaterialName.Text) || t.MaterialCode.Contains(MaterialName.Text) || t.MaterialSpec.Contains(MaterialName.Text)).ToList();
|
|
|
|
|
materialIds = materialInfos.Select(t => t.MaterialId).ToList();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@ -2317,6 +2323,7 @@ namespace Khd.Core.Wpf.Form
|
|
|
|
|
//wmsRawStocksId = b.rawStockId,
|
|
|
|
|
locationCode = a.locationCode,
|
|
|
|
|
materialId = b.materialId,
|
|
|
|
|
materialCode = c.MaterialCode,
|
|
|
|
|
materialName = c.MaterialName,
|
|
|
|
|
materialSpec = c.MaterialSpec,
|
|
|
|
|
palletInfoCode = b.palletInfoCode,
|
|
|
|
|
@ -2335,6 +2342,7 @@ namespace Khd.Core.Wpf.Form
|
|
|
|
|
totalAmount = string.Join("\n", t.Select(x => x.totalAmount)),
|
|
|
|
|
frozenAmount = string.Join("\n", t.Select(x => x.frozenAmount)),
|
|
|
|
|
materialId = string.Join("\n", t.Select(x => x.materialId)),
|
|
|
|
|
materialCode = string.Join("\n", t.Select(x => x.materialCode)),
|
|
|
|
|
materialName = string.Join("\n", t.Select(x => x.materialName[..(x.materialName.Length > 20 ? 20 : x.materialName.Length)])),
|
|
|
|
|
materialNameSrc = string.Join("\n", t.Select(x => x.materialName)),
|
|
|
|
|
materialSpec = string.Join("\n", t.Select(x => x.materialSpec[..(x.materialSpec.Length > 20 ? 20 : x.materialSpec.Length)])),
|
|
|
|
|
@ -3574,5 +3582,30 @@ namespace Khd.Core.Wpf.Form
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private void Form1_KeyDown(object sender, KeyEventArgs e)
|
|
|
|
|
{
|
|
|
|
|
if (e.Key == Key.Enter)
|
|
|
|
|
{
|
|
|
|
|
// 触发按钮的点击事件
|
|
|
|
|
CallSelectedItem.Clear();
|
|
|
|
|
GetPersonCallMaterialData();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 扫描入库enter
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="sender"></param>
|
|
|
|
|
/// <param name="e"></param>
|
|
|
|
|
private void ScanInKeyDown(object sender, KeyEventArgs e)
|
|
|
|
|
{
|
|
|
|
|
if (e.Key == Key.Enter)
|
|
|
|
|
{
|
|
|
|
|
// 触发按钮的点击事件
|
|
|
|
|
ScanInBox();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|