修复无领料需求的错误
This commit is contained in:
@@ -64,9 +64,12 @@ namespace NX.ERP.U8.Mom
|
|||||||
{
|
{
|
||||||
OrderDetail.SN.Add(SN);
|
OrderDetail.SN.Add(SN);
|
||||||
}
|
}
|
||||||
Order.Allocates.Add(MoAllocate);
|
if (MoAllocate != null)
|
||||||
OrderDetail.ProductAllocateOrderLst.Add(MoAllocate);
|
{
|
||||||
MoAllocate.momDetail = OrderDetail;
|
Order.Allocates.Add(MoAllocate);
|
||||||
|
OrderDetail.ProductAllocateOrderLst.Add(MoAllocate);
|
||||||
|
MoAllocate.momDetail = OrderDetail;
|
||||||
|
}
|
||||||
return Order;
|
return Order;
|
||||||
}, param, null, true, "id", 10, System.Data.CommandType.Text);
|
}, param, null, true, "id", 10, System.Data.CommandType.Text);
|
||||||
return lookupOrder.Values;
|
return lookupOrder.Values;
|
||||||
@@ -101,7 +104,7 @@ namespace NX.ERP.U8.Mom
|
|||||||
{
|
{
|
||||||
where.Add(" b.InvCode like @ProductCode");
|
where.Add(" b.InvCode like @ProductCode");
|
||||||
}
|
}
|
||||||
if (Params.ProductOrderNo != null)
|
if (Params.ProductOrderNo != null && Params.ProductOrderNo.Count() > 0)
|
||||||
{
|
{
|
||||||
where.Add(" a.moCode in @ProductOrderNo ");
|
where.Add(" a.moCode in @ProductOrderNo ");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user