Пример #1
0
        /// <summary>
        /// 资产报修
        /// </summary>
        /// <param name="item"></param>
        public void AddAssetsRepair(RepairAttribute item)
        {
            _repairRepository.Add(item);
            var details = new List <RepairDetailAttribute>();
            var assets  = _assetsService.Get(item.AssetsNums);

            foreach (var asset in assets)
            {
                details.Add(new RepairDetailAttribute
                {
                    RepairFoemNo  = item.EntityId,
                    AssetsNo      = asset.AssetsNum,
                    ErrorDescript = ""
                });
            }
            _repairDetailRep.Add(details);
            _assetsMainRep.UpdateUsePeople(item.RepairPerson, item.AssetsNums);
        }
Пример #2
0
 public void AddAssetsRepairDetail(RepairDetailAttribute item)
 {
     _assetsRepairDetailRep.Add(item);
 }