public void ReturnProdLineRawMaterial(string productLine, string productLineFacility, string[][] huDetails, DateTime? effectiveDate) { if (huDetails == null) { throw new Entity.Exception.BusinessException("投料的条码明细不能为空"); } var returnInputs = new List<Entity.PRD.ReturnInput>(); foreach (var huDetail in huDetails) { var returnInput = new Entity.PRD.ReturnInput(); returnInput.HuId = huDetail[0]; returnInput.Qty = decimal.Parse(huDetail[1]); returnInputs.Add(returnInput); } effectiveDate = effectiveDate.HasValue ? effectiveDate.Value : DateTime.Now; this.productionLineMgr.ReturnRawMaterial(productLine, productLineFacility, returnInputs, effectiveDate.Value); }
public void ReturnOrderRawMaterial(string orderNo, string traceCode, int? operation, string opReference, string[][] huDetails, DateTime? effectiveDate) { if (huDetails == null) { throw new Entity.Exception.BusinessException("投料的条码明细不能为空"); } var returnInputs = new List<Entity.PRD.ReturnInput>(); foreach (var huDetail in huDetails) { var returnInput = new Entity.PRD.ReturnInput(); returnInput.HuId = huDetail[0]; returnInput.Qty = decimal.Parse(huDetail[1]); returnInputs.Add(returnInput); } effectiveDate = effectiveDate.HasValue ? effectiveDate.Value : DateTime.Now; this.productionLineMgr.ReturnRawMaterial(orderNo, traceCode, operation, opReference, returnInputs, effectiveDate.Value); }