材料出库
This commit is contained in:
@@ -19,7 +19,7 @@ namespace NX.ERP.U8.Mom
|
||||
{
|
||||
string strSQL = @"select
|
||||
a.MoId as ProductOrderId,a.moCode as ProductOrderNo,a.CreateDate as ProductDate,a.CreateUser as PreparedBy,
|
||||
b.MoId as id ,b.MoDId as ProductOrderDtlId,b.MoId as ProductOrderId,a.MoCode as ProductOrderNo,a.CreateDate as ProductOrderDate,b.InvCode as ProductCode,b.Qty as Qty,
|
||||
b.MoId as id ,b.MoDId as ProductOrderDtlId,b.MoId as ProductOrderId,ISNULL( b.MDeptCode,'53') as MDeptCode,a.MoCode as ProductOrderNo,a.CreateDate as ProductOrderDate,b.InvCode as ProductCode,b.Qty as Qty,
|
||||
c.AllocateId as id ,c.AllocateId as AllocateId,c.MoDId as ProductOrderDtlId,c.InvCode as MaterialCode,b.MoId as ProductOrderId, c.IssQty as IssQty,c.Qty
|
||||
from mom_order as a
|
||||
left join mom_orderdetail as b on a.MoId=b.MoId
|
||||
@@ -46,6 +46,9 @@ namespace NX.ERP.U8.Mom
|
||||
if (!lookupDetail.TryGetValue(OrderDetail.ProductOrderDtlId, out var momDetail))
|
||||
{
|
||||
lookupDetail.Add(OrderDetail.ProductOrderDtlId, OrderDetail);
|
||||
|
||||
|
||||
|
||||
Order.ProductDtlLst.Add(OrderDetail);
|
||||
}
|
||||
else
|
||||
@@ -54,6 +57,7 @@ namespace NX.ERP.U8.Mom
|
||||
}
|
||||
Order.Allocates.Add(MoAllocate);
|
||||
OrderDetail.ProductAllocateOrderLst.Add(MoAllocate);
|
||||
MoAllocate.momDetail = OrderDetail;
|
||||
return Order;
|
||||
}, param, null, true, "id", 10, System.Data.CommandType.Text);
|
||||
return lookupOrder.Values;
|
||||
|
||||
Reference in New Issue
Block a user