|
|
@@ -2410,8 +2410,8 @@ namespace Business.ResourceExamineManagement
|
|
|
{
|
|
|
//获取工艺路线数据:product_code=物料编码
|
|
|
List<RoutingOpDetail> allRoutings = _routingOpDetail.Select(p => morders.Select(m => m.product_code).Contains(p.RoutingCode));
|
|
|
- //获取标准BOM数据
|
|
|
- List<ProductStructureMaster> productStructures = GetProductStructure(morders.Select(p => p.product_code).Distinct().ToList());
|
|
|
+ ////获取标准BOM数据
|
|
|
+ //List<ProductStructureMaster> allProductStructures = GetProductStructure(morders.Select(p => p.product_code).Distinct().ToList());
|
|
|
|
|
|
//工单主表
|
|
|
List<WorkOrdMaster> workOrds = new List<WorkOrdMaster>();
|
|
|
@@ -2460,8 +2460,10 @@ namespace Business.ResourceExamineManagement
|
|
|
workOrdRoutings.Add(woRouting);
|
|
|
}
|
|
|
|
|
|
- //添加工单物料数据
|
|
|
- var curStructures = productStructures.Where(p => p.ParentItem == item.product_code).ToList();
|
|
|
+ ////添加工单物料数据
|
|
|
+ //var curStructures = allProductStructures.Where(p => p.ParentItem == item.product_code).ToList();
|
|
|
+
|
|
|
+ List<ProductStructureMaster> curStructures = GetProductStructure(new List<string> { item.product_code });
|
|
|
foreach (var structure in curStructures)
|
|
|
{
|
|
|
//添加工单的物料信息
|