材料出库

This commit is contained in:
gongxh
2021-03-15 15:50:14 +08:00
parent f56c8806e7
commit 67d0581674
11 changed files with 135 additions and 21 deletions

View File

@@ -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;