焊接修改
This commit is contained in:
@@ -203,5 +203,29 @@ namespace BLL
|
||||
TwInoutplandetailRelationService.AddList(twinoutplandetailRelationList, inOutPlanMasterId);
|
||||
|
||||
}
|
||||
|
||||
|
||||
public static IEnumerable GetPrintListByOutputMasterIds(List<string> outputMasterIds)
|
||||
{
|
||||
var q = from x in Funs.DB.Tw_InOutPlanDetail_Relation
|
||||
join y in Funs.DB.HJGL_MaterialCodeLib on x.MaterialCode equals y.MaterialCode
|
||||
join plan in Funs.DB.Tw_InOutPlanMaster on x.InOutPlanMasterId equals plan.Id
|
||||
join master in Funs.DB.Tw_OutputMaster on plan.Id equals master.InOutPlanMasterId
|
||||
join pipe in Funs.DB.HJGL_Pipeline on x.PipelineId equals pipe.PipelineId
|
||||
where outputMasterIds.Contains(master.Id)
|
||||
orderby master.CusBillCode
|
||||
select new
|
||||
{
|
||||
出库单编号 = master.CusBillCode,
|
||||
管线号=pipe.PipelineCode,
|
||||
预制组件号= x.PrefabricatedComponents,
|
||||
材料编码 = x.MaterialCode,
|
||||
材料名称 = y.MaterialName,
|
||||
材料描述 = y.MaterialDef,
|
||||
单位=y.MaterialUnit,
|
||||
所需量 = x.Number,
|
||||
};
|
||||
return q;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user