/// <summary> /// 资产领用 /// </summary> /// <param name="item"></param> public void AddAssetsAquair(AquairAttribute item) { _aquairRep.Add(item); var details = new List <AquairDetailAttribute>(); var assets = _assetsService.Get(item.AssetsNums); foreach (var asset in assets) { details.Add(new AquairDetailAttribute { AcquireFormNo = item.EntityId, AssetsNo = asset.AssetsNum, AquairCounts = asset.Counts }); } _aquairDetailRep.Add(details); _assetsMainRep.UpdateUsePeople(item.AcquirePerson, item.AssetsNums); }
public void AddAssetsAquairDetail(AquairDetailAttribute item) { _assetsAquairDetailRep.Add(item); }