|
|
|
@ -2248,7 +2248,7 @@ namespace Khd.Core.Wpf.Form
|
|
|
|
txtInBox.Text = string.Empty;
|
|
|
|
txtInBox.Text = string.Empty;
|
|
|
|
txtInBarCode.Text = string.Empty;
|
|
|
|
txtInBarCode.Text = string.Empty;
|
|
|
|
txtInScan.Text = string.Empty;
|
|
|
|
txtInScan.Text = string.Empty;
|
|
|
|
|
|
|
|
this.txtInStoreRemark.Text = string.Empty;
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (material == null)
|
|
|
|
if (material == null)
|
|
|
|
@ -2257,6 +2257,7 @@ namespace Khd.Core.Wpf.Form
|
|
|
|
txtInBox.Text = string.Empty;
|
|
|
|
txtInBox.Text = string.Empty;
|
|
|
|
txtInBarCode.Text = string.Empty;
|
|
|
|
txtInBarCode.Text = string.Empty;
|
|
|
|
txtInScan.Text = string.Empty;
|
|
|
|
txtInScan.Text = string.Empty;
|
|
|
|
|
|
|
|
this.txtInStoreRemark.Text = string.Empty;
|
|
|
|
txtInBox.Focus();
|
|
|
|
txtInBox.Focus();
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@ -2269,6 +2270,7 @@ namespace Khd.Core.Wpf.Form
|
|
|
|
txtInBox.Text = string.Empty;
|
|
|
|
txtInBox.Text = string.Empty;
|
|
|
|
txtInBarCode.Text = string.Empty;
|
|
|
|
txtInBarCode.Text = string.Empty;
|
|
|
|
txtInScan.Text = string.Empty;
|
|
|
|
txtInScan.Text = string.Empty;
|
|
|
|
|
|
|
|
this.txtInStoreRemark.Text = string.Empty;
|
|
|
|
txtInBox.Focus();
|
|
|
|
txtInBox.Focus();
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@ -2287,7 +2289,6 @@ namespace Khd.Core.Wpf.Form
|
|
|
|
applyBy = "WPF",
|
|
|
|
applyBy = "WPF",
|
|
|
|
applyDate = System.DateTime.Now,
|
|
|
|
applyDate = System.DateTime.Now,
|
|
|
|
purchaseOrderId = mesBaseBarcodeInfo.PurchaseOrderId,
|
|
|
|
purchaseOrderId = mesBaseBarcodeInfo.PurchaseOrderId,
|
|
|
|
|
|
|
|
|
|
|
|
beginTime = System.DateTime.Now,
|
|
|
|
beginTime = System.DateTime.Now,
|
|
|
|
endTime = DateTime.Now,
|
|
|
|
endTime = DateTime.Now,
|
|
|
|
locationCode = container.locationCode,
|
|
|
|
locationCode = container.locationCode,
|
|
|
|
@ -2298,7 +2299,8 @@ namespace Khd.Core.Wpf.Form
|
|
|
|
operationType = "1",
|
|
|
|
operationType = "1",
|
|
|
|
palletInfoCode = container.containerCode,
|
|
|
|
palletInfoCode = container.containerCode,
|
|
|
|
poNo = mesBaseBarcodeInfo.poNo,
|
|
|
|
poNo = mesBaseBarcodeInfo.poNo,
|
|
|
|
warehouseId = 512
|
|
|
|
warehouseId = 512,
|
|
|
|
|
|
|
|
tips = this.txtInStoreRemark.Text
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
dbContext.Add(wmsRawInstock);
|
|
|
|
dbContext.Add(wmsRawInstock);
|
|
|
|
@ -2352,7 +2354,8 @@ namespace Khd.Core.Wpf.Form
|
|
|
|
operationType = "1",
|
|
|
|
operationType = "1",
|
|
|
|
palletInfoCode = container.containerCode,
|
|
|
|
palletInfoCode = container.containerCode,
|
|
|
|
poNo = mesBaseBarcodeInfo.poNo,
|
|
|
|
poNo = mesBaseBarcodeInfo.poNo,
|
|
|
|
warehouseId = 512
|
|
|
|
warehouseId = 512,
|
|
|
|
|
|
|
|
tips = this.txtInStoreRemark.Text
|
|
|
|
};
|
|
|
|
};
|
|
|
|
dbContext.Add(wmsRawInstock);
|
|
|
|
dbContext.Add(wmsRawInstock);
|
|
|
|
dbContext.SaveChanges();
|
|
|
|
dbContext.SaveChanges();
|
|
|
|
@ -2362,6 +2365,7 @@ namespace Khd.Core.Wpf.Form
|
|
|
|
|
|
|
|
|
|
|
|
txtInBox.Focus();
|
|
|
|
txtInBox.Focus();
|
|
|
|
MsgText.Text = $"入库成功!当前库存:{totalMessage}";
|
|
|
|
MsgText.Text = $"入库成功!当前库存:{totalMessage}";
|
|
|
|
|
|
|
|
this.txtInStoreRemark.Text = string.Empty;
|
|
|
|
txtInBox.Text = string.Empty;
|
|
|
|
txtInBox.Text = string.Empty;
|
|
|
|
txtInBarCode.Text = string.Empty;
|
|
|
|
txtInBarCode.Text = string.Empty;
|
|
|
|
txtInScan.Text = string.Empty;
|
|
|
|
txtInScan.Text = string.Empty;
|
|
|
|
@ -2567,7 +2571,11 @@ namespace Khd.Core.Wpf.Form
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
|
string containerCode = txtInBox.Text;
|
|
|
|
string containerCode = txtInBox.Text;
|
|
|
|
if (containerCode.Length >= 1) MsgText.Text = string.Empty;
|
|
|
|
if (containerCode.Length >= 1)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
MsgText.Text = string.Empty;
|
|
|
|
|
|
|
|
txtInStoreRemark.Text = string.Empty;
|
|
|
|
|
|
|
|
}
|
|
|
|
if (containerCode.Length < 15)
|
|
|
|
if (containerCode.Length < 15)
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
if (!string.IsNullOrEmpty(containerCode))
|
|
|
|
if (!string.IsNullOrEmpty(containerCode))
|
|
|
|
|