冒林杰 2 years ago
parent
commit
8e6c1b7d1c
  1. 9
      ICSSoft.WMS.WebAPI/ICSSoft.DataProject/ICSSubmitService.cs

9
ICSSoft.WMS.WebAPI/ICSSoft.DataProject/ICSSubmitService.cs

@ -1537,11 +1537,14 @@ namespace ICSSoft.DataProject
//入库条码 //入库条码
else else
{ {
if (ScanType == "LOTNO") if (ScanType == "LOTNO")
{ {
sql = @"IF NOT EXISTS(SELECT a.ID FROM ICSInventoryLot a WHERE a.LotNo='{2}' AND a.WorkPoint='{3}')
sql = @"
IF NOT EXISTS(SELECT a.ID FROM ICSInventoryLot a WHERE a.LotNo = '{2}' AND a.WorkPoint = '{3}')
BEGIN BEGIN
RAISERROR('" + string.Format(language.GetNameByCode("WMSAPIInfo038"), "{2}") + @"',16,1);
RAISERROR('" + string.Format(language.GetNameByCode("WMSAPIInfo038"), "{2}") + @"', 16, 1);
RETURN RETURN
END END
IF EXISTS(SELECT a.ID FROM ICSWareHouseLotInfo a WHERE a.LotNo='{2}' AND a.WorkPoint='{3}') IF EXISTS(SELECT a.ID FROM ICSWareHouseLotInfo a WHERE a.LotNo='{2}' AND a.WorkPoint='{3}')
@ -1630,7 +1633,7 @@ namespace ICSSoft.DataProject
#region 出库检验是否符合源头单据 #region 出库检验是否符合源头单据
string msg = string.Empty; string msg = string.Empty;
bool isLimit = false; bool isLimit = false;
string sqlCheckSign = @"select F_EnabledMark from Sys_SRM_Items where F_EnCode = 'OutWithLocationCode'";
string sqlCheckSign = @"select F_EnabledMark from Sys_SRM_Items where F_EnCode = 'OutWithLocationCode' and F_EnabledMark = '1'";
DataTable flag = DBHelper.SQlReturnData(sqlCheckSign, cmd); DataTable flag = DBHelper.SQlReturnData(sqlCheckSign, cmd);
if (isOut) // && TransType != TransTypeEnum.LOTSplit.GetDescription() if (isOut) // && TransType != TransTypeEnum.LOTSplit.GetDescription()
{//&& TransType != TransTypeEnum.TransferLibrary.GetDescription() {//&& TransType != TransTypeEnum.TransferLibrary.GetDescription()

Loading…
Cancel
Save