Beispiel #1
0
        /// <summary>
        /// 资产盘点计划
        /// </summary>
        /// <param name="item"></param>
        public void AddAssetsInventoryPlan(InventoryAttribute item)
        {
            _inventoryRep.Add(item);
            var details = new List <InventoryDetailAttribute>();
            var assets  = _assetsService.Get(item.AssetsNums);

            foreach (var asset in assets)
            {
                details.Add(new InventoryDetailAttribute
                {
                    InventoryFormNo = item.EntityId,
                    AssetsNo        = asset.AssetsNum,
                    UsedNum1        = asset.UsedNum1,
                    InventoryPerson = item.InventoryPerson,
                    InventoryDate   = item.InventoryDate
                });
            }
            _inventoryDetailRep.Add(details);
        }
 public void AddAssetsInventoryDetail(InventoryDetailAttribute item)
 {
     _assetsInventoryDetailRep.Add(item);
 }