|
@ -2542,6 +2542,16 @@ a.Sequence, |
|
|
throw new Exception("物料:" + chkdr["InvCode"].ToString() + "实际拣料数量小于单据需求数量,单据必须整单拣料,请先核对库存。"); |
|
|
throw new Exception("物料:" + chkdr["InvCode"].ToString() + "实际拣料数量小于单据需求数量,单据必须整单拣料,请先核对库存。"); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
string sql1 = @" SELECT * from ICSWareHouseLotInfoLog WHERE TransType='15' AND TransCode in ({0}) AND WorkPoint='{1}' "; |
|
|
|
|
|
sql1 = string.Format(sql1, ID, WorkPoint); |
|
|
|
|
|
var chkdata1 = Repository().FindDataSetBySql(sql1); |
|
|
|
|
|
DataTable chktable1 = chkdata1.Tables[0]; |
|
|
|
|
|
if (chktable1 != null && chktable1.Rows.Count > 0) |
|
|
|
|
|
{ |
|
|
|
|
|
throw new Exception("工单:" + ID + "已拣料完成,请确认。"); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
#endregion
|
|
|
#endregion
|
|
|
if (table.Rows.Count != 0) |
|
|
if (table.Rows.Count != 0) |
|
|
{ |
|
|
{ |
|
|