/// <summary> /// 构造函数 /// </summary> public AssetController(IAssetTypeService assetTypeService, IAssetService assetService, IAssetTransactionService assetTransactionService, IAssetInventoryService assetInventoryService) { this.AssetTypeService = assetTypeService; this.AssetService = assetService; this.AssetTransactionService = assetTransactionService; this.AssetInventoryService = assetInventoryService; }
// // GET: /Area/ public AssetInventoryController(IUserService userService, IAssetInventoryService assetInventoryService, IAssetService assetService) { this.UserService = userService; this.AssetInventoryService = assetInventoryService; this.AssetService = assetService; var inventories = new List <SelectListItem>(); this.AssetInventoryService.GetInventories().ForEach(it => { inventories.Add(new SelectListItem() { Text = it.Title + "-------" + it.Status.ToString(), Value = it.Id.ToString() }); }); ViewBag.Inventories = inventories; }
// // GET: /Area/ public NoticeController(IUserService userService, INotificationService notificationService, IAssetInventoryService assetInventoryService, IAnnouncementService announcementService) { this.UserService = userService; this.NotificationService = notificationService; this.AssetInventoryService = assetInventoryService; this.AnnouncementService = announcementService; }