|
|
|
|
@ -1495,7 +1495,8 @@ namespace Khd.Core.Wpf.Form
|
|
|
|
|
txtInBox.Text = string.Empty;
|
|
|
|
|
txtInBarCode.Text = string.Empty;
|
|
|
|
|
txtInScan.Text = string.Empty;
|
|
|
|
|
|
|
|
|
|
materialName.Text = string.Empty;
|
|
|
|
|
materialSpec.Text = string.Empty;
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@ -1506,6 +1507,8 @@ namespace Khd.Core.Wpf.Form
|
|
|
|
|
txtInBox.Text = string.Empty;
|
|
|
|
|
txtInBarCode.Text = string.Empty;
|
|
|
|
|
txtInScan.Text = string.Empty;
|
|
|
|
|
materialName.Text = string.Empty;
|
|
|
|
|
materialSpec.Text = string.Empty;
|
|
|
|
|
txtInBox.Focus();
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
@ -1518,6 +1521,8 @@ namespace Khd.Core.Wpf.Form
|
|
|
|
|
txtInBox.Text = string.Empty;
|
|
|
|
|
txtInBarCode.Text = string.Empty;
|
|
|
|
|
txtInScan.Text = string.Empty;
|
|
|
|
|
materialName.Text = string.Empty;
|
|
|
|
|
materialSpec.Text = string.Empty;
|
|
|
|
|
txtInBox.Focus();
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
@ -1566,7 +1571,9 @@ namespace Khd.Core.Wpf.Form
|
|
|
|
|
txtInBox.Text = string.Empty;
|
|
|
|
|
txtInBarCode.Text = string.Empty;
|
|
|
|
|
txtInScan.Text = string.Empty;
|
|
|
|
|
|
|
|
|
|
materialName.Text = string.Empty;
|
|
|
|
|
materialSpec.Text = string.Empty;
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
@ -1579,7 +1586,9 @@ namespace Khd.Core.Wpf.Form
|
|
|
|
|
txtInBox.Text = string.Empty;
|
|
|
|
|
txtInBarCode.Text = string.Empty;
|
|
|
|
|
txtInScan.Text = string.Empty;
|
|
|
|
|
MsgText.Text = "入库失败";
|
|
|
|
|
materialName.Text = string.Empty;
|
|
|
|
|
materialSpec.Text = string.Empty;
|
|
|
|
|
MsgText.Text = "入库异常"+ ex;
|
|
|
|
|
txtInBarCode.Focus();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
@ -1679,7 +1688,12 @@ namespace Khd.Core.Wpf.Form
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
string containerCode = txtInBox.Text;
|
|
|
|
|
if (containerCode.Length >= 1) MsgText.Text = string.Empty;
|
|
|
|
|
if (containerCode.Length >= 1)
|
|
|
|
|
{
|
|
|
|
|
MsgText.Text = string.Empty;
|
|
|
|
|
txtInScan.Text = string.Empty;
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
if (containerCode.Length < 15)
|
|
|
|
|
return;
|
|
|
|
|
if (!string.IsNullOrEmpty(containerCode))
|
|
|
|
|
@ -1718,7 +1732,8 @@ namespace Khd.Core.Wpf.Form
|
|
|
|
|
{
|
|
|
|
|
try
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
materialName.Text = string.Empty;
|
|
|
|
|
materialSpec.Text = string.Empty;
|
|
|
|
|
string barCode = txtInBarCode.Text;
|
|
|
|
|
if (barCode.Length < 19) return;
|
|
|
|
|
|
|
|
|
|
@ -1750,10 +1765,10 @@ namespace Khd.Core.Wpf.Form
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
txtInScan.Text = (material.batchFlag == "1") ? "" : "1.00";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
txtInScan.Text = (material.batchFlag == "1") ? "" : "1.00";
|
|
|
|
|
materialName.Text = mesBaseMaterialInfo.MaterialName;
|
|
|
|
|
materialSpec.Text = mesBaseMaterialInfo.MaterialSpec;
|
|
|
|
|
if (mesBaseMaterialInfo.BatchFlag == "0")
|
|
|
|
|
{
|
|
|
|
|
txtInScan.IsReadOnly = true;
|
|
|
|
|
|