|
|
@ -1537,13 +1537,16 @@ namespace ICSSoft.DataProject |
|
|
|
//入库条码
|
|
|
|
else |
|
|
|
{ |
|
|
|
|
|
|
|
if (ScanType == "LOTNO") |
|
|
|
{ |
|
|
|
sql = @"IF NOT EXISTS(SELECT a.ID FROM ICSInventoryLot a WHERE a.LotNo='{2}' AND a.WorkPoint='{3}')
|
|
|
|
BEGIN |
|
|
|
RAISERROR('" + string.Format(language.GetNameByCode("WMSAPIInfo038"), "{2}") + @"',16,1); |
|
|
|
RETURN |
|
|
|
END |
|
|
|
sql = @"
|
|
|
|
IF NOT EXISTS(SELECT a.ID FROM ICSInventoryLot a WHERE a.LotNo = '{2}' AND a.WorkPoint = '{3}') |
|
|
|
BEGIN |
|
|
|
|
|
|
|
RAISERROR('" + string.Format(language.GetNameByCode("WMSAPIInfo038"), "{2}") + @"', 16, 1); |
|
|
|
RETURN |
|
|
|
END |
|
|
|
IF EXISTS(SELECT a.ID FROM ICSWareHouseLotInfo a WHERE a.LotNo='{2}' AND a.WorkPoint='{3}') |
|
|
|
BEGIN |
|
|
|
RAISERROR('" + language.GetNameByCode("WMSAPIInfo039") + @"',16,1); |
|
|
@ -1630,7 +1633,7 @@ namespace ICSSoft.DataProject |
|
|
|
#region 出库检验是否符合源头单据
|
|
|
|
string msg = string.Empty; |
|
|
|
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); |
|
|
|
if (isOut) // && TransType != TransTypeEnum.LOTSplit.GetDescription()
|
|
|
|
{//&& TransType != TransTypeEnum.TransferLibrary.GetDescription()
|
|
|
|