Ejemplo n.º 1
0
        //
        // GET: /Area/

        public AssetController(IUserService userService,
                               IAssetTypeService assetTypeService,
                               IAssetService assetService,
                               IAssetAttributeService assetAttributeService)
        {
            this.UserService           = userService;
            this.AssetTypeService      = assetTypeService;
            this.AssetService          = assetService;
            this.AssetAttributeService = assetAttributeService;

            var types = new List <SelectListItem>();

            types.Add(new SelectListItem()
            {
                Text = "--选择分类--", Value = null
            });
            this.AssetTypeService.GetAll().ForEach(it =>
            {
                types.Add(new SelectListItem()
                {
                    Text = it.Name, Value = it.Id.ToString()
                });
            });
            ViewBag.Types = types;
        }
Ejemplo n.º 2
0
 public ExcelService(IAreaService areaService, IAssetAttributeService attributeService,
                     IAssetAttributeValueService attributeValueService, ILocationService locationService,
                     IAssetTypeService assetTypeService, IAssetService assetService, ICampusService campusService)
 {
     this._areaService           = areaService;
     this._attributeService      = attributeService;
     this._attributeValueService = attributeValueService;
     this._locationService       = locationService;
     this._assetTypeService      = assetTypeService;
     this._assetService          = assetService;
     this._campusService         = campusService;
 }
Ejemplo n.º 3
0
 public AssetController(IAssetService assetService, IAssetTypeService assetTypeService, IAreaService areaService, ILocationService locationService,
                        IAssetAttributeService assetAttributeService, IAssetAttributeValueService assetAttributeValueService, IReportService reportService, IAssetLogService assetLogService, ApplicationUserManager applicationUserManager)
 {
     this._assetAttributeService      = assetAttributeService;
     this._assetTypeService           = assetTypeService;
     this._areaService                = areaService;
     this._assetService               = assetService;
     this._assetAttributeValueService = assetAttributeValueService;
     this._reportService              = reportService;
     this._assetLogService            = assetLogService;
     this.applicationUserManager      = applicationUserManager;
     this._locationService            = locationService;
 }
Ejemplo n.º 4
0
 public ExcelController(IAreaService areaService, IAssetAttributeService attributeService,
                        IAssetAttributeValueService attributeValueService, ILocationService locationService,
                        IAssetTypeService assetTypeService, IAssetService assetService, ICampusService campusService,
                        IAssetAttributeService assetAttributeService, ApplicationUserManager _userManager)
 {
     this.areaService           = areaService;
     this.attributeService      = attributeService;
     this.attributeValueService = attributeValueService;
     this.locationService       = locationService;
     this.assetTypeService      = assetTypeService;
     this.assetService          = assetService;
     this.campusService         = campusService;
     this.assetAttributeService = assetAttributeService;
     this._userManager          = _userManager;
 }
 public AssetAttributesController(
     IAssetAttributeService assetAttributeService)
 {
     _assetAttributeService = assetAttributeService;
 }
Ejemplo n.º 6
0
 public AssetTypeController(IAssetTypeService assetTypeService, IAssetAttributeService assetAttributeService)
 {
     this.AssetTypeService      = assetTypeService;
     this.AssetAttributeService = assetAttributeService;
 }