Beispiel #1
0
 /// <summary>
 /// 主数据服务实现的构造函数
 /// </summary>
 public SettingService(IUnitOfWork unitOfWork,
                       IAssetsRepository AssetsRepository,
                       //IAssProcessRecordRepository AssProcessRecordRepository,
                       IDepartmentRepository departmentRepository,
                       IcoreUserRepository coreUserRepository,
                       IAssetsTypeRepository assetsTypeRepository,
                       IAssetsBrandRepository assetsBrandRepository,
                       IAssetsProRepository assetsProRepository,
                       IAssetsRoleRepository assetsRoleRepository,
                       IAssetsTeamRepository assetsTeamRepository,
                       IAssetsUserRepository assetsUserRepository,
                       IDepartmentRepository assetsDepartmentRepository,
                       IDbContext dbContext)
 {
     _unitOfWork       = unitOfWork;
     _AssetsRepository = AssetsRepository;
     //_AssProcessRecordRepository = AssProcessRecordRepository;
     _departmentRepository  = departmentRepository;
     _coreUserRepository    = coreUserRepository;
     _assetsTypeRepository  = assetsTypeRepository;
     _assetsBrandRepository = assetsBrandRepository;
     _assetsProRepository   = assetsProRepository;
     _assetsRoleRepository  = assetsRoleRepository;
     _assetsTeamRepository  = assetsTeamRepository;
     _assetsUserRepository  = assetsUserRepository;
     _departmentRepository  = assetsDepartmentRepository;
     SMOSECDbContext        = (SMOSECDbContext)dbContext;
 }
Beispiel #2
0
 /// <summary>
 /// 成本中心服务实现的构造函数
 /// </summary>
 public AssUserService(IUnitOfWork unitOfWork,
                       IAssetsUserRepository AssetsUserRepository,
                       IAssetsRepository AssetsRepository)
 {
     _unitOfWork           = unitOfWork;
     _AssetsUserRepository = AssetsUserRepository;
     _AssetsRepository     = AssetsRepository;
 }