Exemple #1
0
 public UnitOfWork(
     RepositoryContext context,
     IItemRepository item,
     ICategoryRepository category,
     IFactoryRepository factory,
     IClientRepository client,
     ICharachteristics_ItemRepository charach,
     IOrderRepository orders,
     IOrder_Items_Repository ord_it,
     UserManager <MyUser> userManager,
     SignInManager <MyUser> signInManager,
     RoleManager <MyRole> roleManager,
     ISortHepler <Item> itemSortHelper)
 {
     _context        = context;
     _item           = item;
     _category       = category;
     _factory        = factory;
     _client         = client;
     _charach        = charach;
     _orders         = orders;
     _ord_it         = ord_it;
     _userManager    = userManager;
     _signInManager  = signInManager;
     _roleManager    = roleManager;
     _itemSortHepler = itemSortHelper;
 }
Exemple #2
0
 public FactoryHub(
     IPlayerRepository playerRepository,
     IFactoryRepository repo,
     IEventStore eventStore)
 {
     _playerRepo = playerRepository;
     _repo       = repo;
     _eventStore = eventStore;
 }
Exemple #3
0
 public StocksService(IStocksRepository stocksRepository, IItemsRepository itemsRepository, IFactoryRepository factoryRepository, ILogger <StocksService> logger, IWeeklyProductionRepository weeklyProductionRepository, IJsReportMVCService jsReport)
 {
     _stocksRepository           = stocksRepository;
     _itemsRepository            = itemsRepository;
     _factoryRepository          = factoryRepository;
     _logger                     = logger;
     _weeklyProductionRepository = weeklyProductionRepository;
     _jsReport                   = jsReport;
 }
Exemple #4
0
 public FactoryController(
     IPlayerRepository playerRepo,
     IFactoryRepository factoryRepo,
     IEventStore eventStore)
 {
     _playerRepo  = playerRepo;
     _factoryRepo = factoryRepo;
     _eventStore  = eventStore;
 }
 public WorkshopAppService(IWorkshopRepository workshopRepository,
                           IFactoryRepository factoryRepository,
                           ICityRepository cityRepository,
                           IWorkshopManager workshopManager)
 {
     _workshopRepository = workshopRepository;
     _factoryRepository  = factoryRepository;
     _cityRepository     = cityRepository;
     _workshopManager    = workshopManager;
 }
Exemple #6
0
 public ShippingHub(
     IPlayerRepository playerRepository,
     IFactoryRepository factoryRepository,
     IShippingRepository repo,
     IEntityRepository entityRepo,
     IEventStore eventStore)
 {
     _playerRepo        = playerRepository;
     _factoryRepository = factoryRepository;
     _repo       = repo;
     _entityRepo = entityRepo;
     _eventStore = eventStore;
 }
Exemple #7
0
 public DashBoardService(IOEE_VNRepository repoOee_VN,
                         IOEE_MMRepository repoOee_MM,
                         IOEE_IDRepository repoOee_ID,
                         ICommonService serverCommon,
                         IMachineInformationRepository repoMachineInfomation,
                         IFactoryRepository repofactory)
 {
     _repoOee_VN            = repoOee_VN;
     _repoOee_MM            = repoOee_MM;
     _repoOee_ID            = repoOee_ID;
     _serverCommon          = serverCommon;
     _repoMachineInfomation = repoMachineInfomation;
     _repofactory           = repofactory;
 }
Exemple #8
0
        public UnitOfWork(IDapperContext context, IFactoryRepository factory)
        {
            Context       = context;
            _factory      = factory;
            _repositories = new Dictionary <Type, object>();

            // Example of reading SqlCommandTimeOut value from web.config
            //int timeout;
            //var temp = ConfigurationManager.AppSettings["SqlCommandTimeOut"];
            //if (!int.TryParse(temp, out timeout))
            //{
            //    timeout = 30;
            //}
        }
 public GatewayAppService(IRepository <GatewayType, int> gatewayTypeRepository,
                          IGatewayRepository gatewayRepository,
                          IWorkshopRepository workshopRepository,
                          IFactoryRepository factoryRepository,
                          ICityRepository cityRepository,
                          IGatewayManager gatewayManager)
 {
     _gatewayTypeRepository = gatewayTypeRepository;
     _gatewayRepository     = gatewayRepository;
     _workshopRepository    = workshopRepository;
     _factoryRepository     = factoryRepository;
     _cityRepository        = cityRepository;
     _gatewayManager        = gatewayManager;
 }
 public CityAppService(ICityManager cityManager, ICityRepository cityRepository,
                       IGatewayRepository gatewayRepository,
                       IWorkshopRepository workshopRepository,
                       IFactoryRepository factoryRepository,
                       IDeviceRepository deviceRepository,
                       IRepository <Region, int> regionRepository)
 {
     _cityManager        = cityManager;
     _cityRepository     = cityRepository;
     _gatewayRepository  = gatewayRepository;
     _workshopRepository = workshopRepository;
     _factoryRepository  = factoryRepository;
     _deviceRepository   = deviceRepository;
     _regionRepository   = regionRepository;
 }
Exemple #11
0
 public AccountController(UserManager <ApplicationUser> userManager,
                          SignInManager <ApplicationUser> signInManager,
                          RoleManager <IdentityRole> roleManager,
                          IFactoryRepository factoryRepository,
                          ITechManagerRepository techManagerRepository)
 {
     _userManager           = userManager;
     _signInManager         = signInManager;
     _roleManager           = roleManager;
     _factoryRepository     = factoryRepository;
     _techManagerRepository = techManagerRepository;
     if (RouteData != null)
     {
         _tenant = (Tenant)RouteData.Values.SingleOrDefault(r => r.Key == "tenant").Value;
     }
 }
Exemple #12
0
 public TrendService(IOEE_VNRepository repoOee_VN,
                     IOEE_MMRepository repoOee_MM,
                     IOEE_IDRepository repoOee_ID,
                     ICommonService serverCommon,
                     IMachineInformationRepository repoMachineInfomation,
                     IFactoryRepository repofactory,
                     IMapper mapper,
                     MapperConfiguration configMapper)
 {
     _repoOee_VN            = repoOee_VN;
     _repoOee_MM            = repoOee_MM;
     _repoOee_ID            = repoOee_ID;
     _serverCommon          = serverCommon;
     _repoMachineInfomation = repoMachineInfomation;
     _repofactory           = repofactory;
     _mapper       = mapper;
     _configMapper = configMapper;
 }
 public InspectionImportService(AppDbContext appDbContext,
                                IFileProvider fileProvider,
                                IPassionBrandRepository passionBrandRepository,
                                IInspectionRepository inspectionRepository,
                                IFactoryRepository factoryRepository,
                                IFinalWeekRepository finalWeekRepository,
                                ITechManagerRepository techManagerRepository,
                                UserManager <ApplicationUser> userManager)
 {
     _fileProvider           = fileProvider;
     _appDbContext           = appDbContext;
     _passionBrandRepository = passionBrandRepository;
     _inspectionRepository   = inspectionRepository;
     _factoryRepository      = factoryRepository;
     _finalWeekRepository    = finalWeekRepository;
     _techManagerRepository  = techManagerRepository;
     _userManager            = userManager;
 }
        /// <summary>
        ///
        /// </summary>
        /// <param name="tipo"></param>
        /// <returns></returns>
        public static IFactoryRepository GetInstance(String nomeTipoFabricaConcreta)
        {
            //"Cefet.Elicite.Persistencia.FactoryNHibernateDao":
            Type tipoFabricaConcreta = Type.GetType(nomeTipoFabricaConcreta);

            try
            {
                obj = (IFactoryRepository)Activator.CreateInstance(tipoFabricaConcreta);
                if (obj == null)
                {
                    throw new DaoException("Não foi possível criar objeto do tipo: '" + tipoFabricaConcreta.FullName + "'");
                }
                return(obj);
            }
            catch (Exception ex)
            {
                throw new DaoException("Não foi possível criar objeto do tipo: '" + tipoFabricaConcreta.FullName + "'", ex);
            }
        }
Exemple #15
0
 public DeviceAppService(IDeviceRepository deviceRepository,
                         IRepository <DeviceType> deviceTypeRepository,
                         IGatewayRepository gatewayRepository,
                         IWorkshopRepository workshopRepository,
                         IFactoryRepository factoryRepository,
                         ICityRepository cityRepository,
                         IDeviceManager deviceManager,
                         IFieldRepository fieldRepository
                         )
 {
     _deviceRepository     = deviceRepository;
     _deviceTypeRepository = deviceTypeRepository;
     _gatewayRepository    = gatewayRepository;
     _workshopRepository   = workshopRepository;
     _factoryRepository    = factoryRepository;
     _cityRepository       = cityRepository;
     _deviceManager        = deviceManager;
     _fieldRepository      = fieldRepository;
 }
Exemple #16
0
 public CommonService(IMapper mapper,
                      MapperConfiguration configMapper,
                      IFactoryRepository repoFactory,
                      IShiftRepository repoShift,
                      IActionTimeForOEERepository repoActionTime,
                      IMachineInformationRepository repoMachineInfomation,
                      IMachineTypeRepository repoMachineType,
                      IOEE_VNRepository repoOee_VN,
                      IOEE_MMRepository repoOee_MM,
                      IOEE_IDRepository repoOee_ID
                      )
 {
     _repoFactory           = repoFactory;
     _repoShift             = repoShift;
     _mapper                = mapper;
     _configMapper          = configMapper;
     _repoActionTime        = repoActionTime;
     _repoMachineInfomation = repoMachineInfomation;
     _repoMachineType       = repoMachineType;
     _repoOee_VN            = repoOee_VN;
     _repoOee_MM            = repoOee_MM;
     _repoOee_ID            = repoOee_ID;
 }
Exemple #17
0
 public FactoryManager(IFactoryRepository factoryRepositories)
 {
     _factoryRepositories = factoryRepositories;
 }
 public FactoriesController(IFactoryRepository <Factory> repository, IMapper mapper)
 {
     _factoryRepository = repository;
     _mapper            = mapper;
 }
Exemple #19
0
 public DeviceBaseService(IFactoryRepository repository)
 {
     _repository = repository;
 }
Exemple #20
0
 public UnitOfWork(IFactoryRepository <SubSkill, Skill, Level, SpecifyingSkill.Entities.SpecifyingSkill> factoryRepository, IDataContext <SubSkill, Skill, Level, SpecifyingSkill.Entities.SpecifyingSkill> db)
 {
     // Debug.WriteLine("Create  UnitOfWork KM");
     _factoryRepository = factoryRepository;
     _db = db;
 }
Exemple #21
0
 public ManufacturerController(IFactoryRepository manufacturerRepository)
 {
     _manufacturerRepository = manufacturerRepository;
 }
Exemple #22
0
 public FactoryPartsService(IMapper mapper, ICategoryRepository categoryRepository, IFactoryRepository factoryRepository, IFactoryPartsRepository factoryPartsRepository)
 {
     _mapper                 = mapper;
     _categoryRepository     = categoryRepository;
     _factoryPartsRepository = factoryPartsRepository;
 }
Exemple #23
0
 public FactoryService(IMapper mapper, IFactoryRepository factoryRepository)
 {
     _mapper            = mapper;
     _factoryRepository = factoryRepository;
 }
Exemple #24
0
 public FactoryAppService(IFactoryRepository factoryRepository, ICityRepository cityRepository, IFactoryManager factoryManager)
 {
     _factoryRepository = factoryRepository;
     _cityRepository    = cityRepository;
     _factoryManager    = factoryManager;
 }
Exemple #25
0
 public UnitOfWork(DbContext DbContext, IFactoryRepository factory)
 {
     RepositoryFactory = factory;
     _dbContext        = DbContext;
 }
 public FactoryDomainService(IFactoryRepository repository, IFactoryOpened factoryOpened)
 {
     this.factoryOpened = factoryOpened;
     this.repository = repository;
 }
Exemple #27
0
 public FactoryService(IFactoryRepository bar, IDomainObjectFactory factory)
 {
     _bar = bar;
     _factory = factory;
 }
 public FactoryController(IFactoryRepository factoryRepository)
 {
     _factoryRepository = factoryRepository;
 }
 public RepositoryWrapper(
     FactoryManagementContext dbContext,
     IAddressRepository Address,
     ICustomerRepository Customer,
     IDepartmentRepository Department,
     IEquipmentRepository Equipment,
     IEquipmentCategoryRepository EquipmentCategory,
     IExpenseRepository Expense,
     IExpenseTypeRepository ExpenseType,
     IFactoryRepository Factory,
     IIncomeRepository Income,
     IIncomeTypeRepository IncomeType,
     IInvoiceRepository Invoice,
     IInvoiceTypeRepository InvoiceType,
     IItemRepository Item,
     IItemCategoryRepository ItemCategory,
     IItemStatusRepository ItemStatus,
     IPayableRepository Payable,
     IPaymentStatusRepository PaymentStatus,
     IPhoneRepository Phone,
     IProductionRepository Production,
     IPurchaseRepository Purchase,
     IPurchaseTypeRepository PurchaseType,
     IRecievableRepository Recievable,
     IRoleRepository Role,
     ISalesRepository Sales,
     IStaffRepository Staff,
     IStockRepository Stock,
     IStockInRepository StockIn,
     IStockOutRepository StockOut,
     ISupplierRepository Supplier,
     ITransactionRepository Transaction,
     ITransactionTypeRepository TransactionType,
     IUserAuthInfoRepository UserAuthInfo,
     IUserRoleRepository UserRole,
     IUtilService util,
     IApiResourceMappingRepository ApiResourceMappingRepository)
 {
     this.dbContext          = dbContext;
     this._Address           = Address;
     this._Customer          = Customer;
     this._Department        = Department;
     this._Equipment         = Equipment;
     this._EquipmentCategory = EquipmentCategory;
     this._Expense           = Expense;
     this._ExpenseType       = ExpenseType;
     this._Income            = Income;
     this._IncomeType        = IncomeType;
     this._Invoice           = Invoice;
     this._InvoiceType       = InvoiceType;
     this._Item            = Item;
     this._ItemCategory    = ItemCategory;
     this._ItemStatus      = ItemStatus;
     this._Payable         = Payable;
     this._PaymentStatus   = PaymentStatus;
     this._Phone           = Phone;
     this._Production      = Production;
     this._Purchase        = Purchase;
     this._PurchaseType    = PurchaseType;
     this._Recievable      = Recievable;
     this._Role            = Role;
     this._Sales           = Sales;
     this._Staff           = Staff;
     this._Stock           = Stock;
     this._StockIn         = StockIn;
     this._StockOut        = StockOut;
     this._Supplier        = Supplier;
     this._Transaction     = Transaction;
     this._TransactionType = TransactionType;
     this._UserAuthInfo    = UserAuthInfo;
     this._UserRole        = UserRole;
     this._util            = util;
     this._ApiResourceMappingRepository = ApiResourceMappingRepository;
 }
Exemple #30
0
 public UnitsController(IFactoryRepository <Unit> repository, IMapper mapper)
 {
     _unitRepository = repository;
     _mapper         = mapper;
 }
Exemple #31
0
 public UnitOfWork(IFactoryRepository factoryRepository, IDataContext db)
 {
     _factoryRepository = factoryRepository;
     _db = db;
 }
Exemple #32
0
 public TanksController(IFactoryRepository <Tank> repository, IMapper mapper)
 {
     _tankRepository = repository;
     _mapper         = mapper;
 }