材料入库导入增加序号
This commit is contained in:
@@ -121,5 +121,24 @@ namespace BLL
|
||||
|
||||
}
|
||||
|
||||
public static IEnumerable GePrintListByInputMasterIds(List<string> inputMasterIds)
|
||||
{
|
||||
var q = from x in Funs.DB.Tw_InputDetail
|
||||
join mat in Funs.DB.HJGL_MaterialCodeLib on x.MaterialCode equals mat.MaterialCode into mm
|
||||
from mat in mm.DefaultIfEmpty()
|
||||
join y in Funs.DB.Tw_InputMaster on x.InputMasterId equals y.Id
|
||||
where inputMasterIds.Contains(x.InputMasterId)
|
||||
orderby y.CusBillCode , x.MaterialCode
|
||||
select new
|
||||
{
|
||||
入库单编号 = y.CusBillCode,
|
||||
材料编码 = x.MaterialCode,
|
||||
材料名称 = mat.MaterialName,
|
||||
材料描述 = mat.MaterialDef,
|
||||
计划数量 = x.PlanNum,
|
||||
实际数量 = x.ActNum,
|
||||
};
|
||||
return q;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user