예제 #1
0
 public FirstSetupRepo()
 {
     this.session             = HibernateUtil.OpenSession(false);
     this.userRepo            = new UserRepository(session);
     this.projectRepo         = new ProjectRepository(session);
     this.certificateTypeRepo = new InspectorCertificateTypeRepository(session);
     this.seemTypeRepo        = new SeamTypeRepository(session);
     this.permissionRepo      = new PermissionRepository(session);
     this.roleRepo            = new RoleRepository(session);
     this.categoryRepo        = new CategoryRepository(session);
     this.jointOperationRepo  = new JointOperationRepository(session);
     this.pipeTestsRepo       = new PipeTestRepository(session);
     this.sizeTypeRepo        = new MillPipeSizeTypeRepository(session);
     this.plateManRepo        = new PlateManufacturerRepository(session);
     this.heatRepo            = new HeatRepository(session);
     this.plateRepo           = new PlateRepository(session);
     this.purchaseRepo        = new PurchaseOrderRepository(session);
     this.railRepo            = new RailcarRepository(session);
     this.pipeRepo            = new PipeRepository(session);
     this.inspectorRepo       = new InspectorRepository(session);
     this.pipeTestResultRepo  = new PipeTestResultRepository(session);
     this.welderRepo          = new WelderRepository(session);
     componentTypeRepo        = new ComponentTypeRepository(session);
     componentRepo            = new ComponentRepository(session);
     releaseRepo            = new ReleaseNoteRepository(session);
     this.cannedMessageRepo = new CannedMessageRepository(session);
 }
 public ComponentTypeFormController(IComponentRepository componentRepository, ICategoryRepository categoryRepository, IComponentTypeRepository componentTypeRepository, EmbeddedStockContext context)
 {
     _componentTypeRepository = componentTypeRepository;
     _categoryRepository      = categoryRepository;
     _context             = context;
     _componentRepository = componentRepository;
 }
예제 #3
0
 public FirstSetupRepo()
 {
     this.session = HibernateUtil.OpenSession(false);
     this.userRepo = new UserRepository(session);
     this.projectRepo = new ProjectRepository(session);
     this.certificateTypeRepo = new InspectorCertificateTypeRepository(session);
     this.seemTypeRepo = new SeamTypeRepository(session);
     this.permissionRepo = new PermissionRepository(session);
     this.roleRepo = new RoleRepository(session);
     this.categoryRepo = new CategoryRepository(session);
     this.jointOperationRepo = new JointOperationRepository(session);
     this.pipeTestsRepo = new PipeTestRepository(session);
     this.sizeTypeRepo = new MillPipeSizeTypeRepository(session);
     this.plateManRepo = new PlateManufacturerRepository(session);
     this.heatRepo = new HeatRepository(session);
     this.plateRepo = new PlateRepository(session);
     this.purchaseRepo = new PurchaseOrderRepository(session);
     this.railRepo = new RailcarRepository(session);
     this.pipeRepo = new PipeRepository(session);
     this.inspectorRepo = new InspectorRepository(session);
     this.pipeTestResultRepo = new PipeTestResultRepository(session);
     this.welderRepo = new WelderRepository(session);
     componentTypeRepo = new ComponentTypeRepository(session);
     componentRepo = new ComponentRepository(session);
     releaseRepo = new ReleaseNoteRepository(session);
     this.cannedMessageRepo = new CannedMessageRepository(session);
 }
예제 #4
0
 public ComponentRepositories(ISession session)
 {
     this.session           = session;
     this.componentRepo     = new ComponentRepository(session);
     this.componentTypeRepo = new ComponentTypeRepository(session);
     this.repoInspector     = new InspectorRepository(session);
     this.fileRepo          = new FileRepository(session);
 }
예제 #5
0
 public ComponentRepositories(ISession session)
 {
     this.session = session;
     this.componentRepo = new ComponentRepository(session);
     this.componentTypeRepo = new ComponentTypeRepository(session);
     this.repoInspector = new InspectorRepository(session);
     this.fileRepo = new FileRepository(session);
 }
예제 #6
0
 public ComponentTypeController(
     IComponentTypeRepository componentTypeRepository,
     ICategoryRepository categoryRepository,
     IComponentTypeCategoryRepository componentTypeCategoryRepository)
 {
     _componentTypeRepository         = componentTypeRepository;
     _categoryRepository              = categoryRepository;
     _componentTypeCategoryRepository = componentTypeCategoryRepository;
 }
예제 #7
0
 public ComponentTypeService(IComponentTypeRepository componentTypeRepository,
                             IAssetCategoryService assetCategoryService,
                             IAssetTypeService assetTypeService,
                             IEmployeeService employeeService)
 {
     _componentTypeRepository = componentTypeRepository;
     _assetCategoryService    = assetCategoryService;
     _assetTypeService        = assetTypeService;
     _employeeService         = employeeService;
 }
예제 #8
0
 public SettingsRepositories(ISession session)
 {
     this.session             = session;
     this.welderRepo          = new WelderRepository(session);
     this.pipeTestRepo        = new PipeTestRepository(session);
     this.pipeSizeTypeRepo    = new MillPipeSizeTypeRepository(session);
     this.projectRepo         = new ProjectRepository(session);
     this.manufacturerRepo    = new PlateManufacturerRepository(session);
     this.inspectorRepo       = new InspectorRepository(session);
     this.categoryRepo        = new CategoryRepository(session);
     this.jointRepo           = new JointOperationRepository(session);
     this.userRepo            = new UserRepository(session);
     this.roleRepo            = new RoleRepository(session);
     this.permissionRepo      = new PermissionRepository(session);
     this.componentTypeRepo   = new ComponentTypeRepository(session);
     this.certificateTypeRepo = new InspectorCertificateTypeRepository(session);
     this.seamTypeRepo        = new SeamTypeRepository(session);
 }
예제 #9
0
 public SettingsRepositories(ISession session)
 {
     this.session = session;
     this.welderRepo = new WelderRepository(session);
     this.pipeTestRepo = new PipeTestRepository(session);
     this.pipeSizeTypeRepo = new MillPipeSizeTypeRepository(session);
     this.projectRepo = new ProjectRepository(session);
     this.manufacturerRepo = new PlateManufacturerRepository(session);
     this.inspectorRepo = new InspectorRepository(session);
     this.categoryRepo = new CategoryRepository(session);
     this.jointRepo = new JointOperationRepository(session);
     this.userRepo = new UserRepository(session);
     this.roleRepo = new RoleRepository(session);
     this.permissionRepo = new PermissionRepository(session);
     this.componentTypeRepo = new ComponentTypeRepository(session);
     this.certificateTypeRepo = new InspectorCertificateTypeRepository(session);
     this.seamTypeRepo = new SeamTypeRepository(session);
 }
예제 #10
0
 public ImportRepository(ISession session)
 {
    pipeRepo = new PipeRepository(session);
    plateRepo = new PlateRepository(session);
    heatRepo = new HeatRepository(session);
    railcarRepo = new RailcarRepository(session);
    releaseNoteRepo = new ReleaseNoteRepository(session);
    plateManufacturerRepo = new PlateManufacturerRepository(session);
    sizeTypeRepo = new MillPipeSizeTypeRepository(session);
    seamTypeRepo = new SeamTypeRepository(session);
    orderRepo = new PurchaseOrderRepository(session);
    fileRepo = new FileRepository(session);
    projectRepo = new ProjectRepository(session);
    portionRepo = new PortionRepository(session);
    jointRepo = new JointRepository(session);
    componentRepo = new ComponentRepository(session);
    spoolRepo = new SpoolRepository(session);
    componentTypeRepo = new ComponentTypeRepository(session);
 }
예제 #11
0
 public ImportRepository(ISession session)
 {
     pipeRepo              = new PipeRepository(session);
     plateRepo             = new PlateRepository(session);
     heatRepo              = new HeatRepository(session);
     railcarRepo           = new RailcarRepository(session);
     releaseNoteRepo       = new ReleaseNoteRepository(session);
     plateManufacturerRepo = new PlateManufacturerRepository(session);
     sizeTypeRepo          = new MillPipeSizeTypeRepository(session);
     seamTypeRepo          = new SeamTypeRepository(session);
     orderRepo             = new PurchaseOrderRepository(session);
     fileRepo              = new FileRepository(session);
     projectRepo           = new ProjectRepository(session);
     portionRepo           = new PortionRepository(session);
     jointRepo             = new JointRepository(session);
     componentRepo         = new ComponentRepository(session);
     spoolRepo             = new SpoolRepository(session);
     componentTypeRepo     = new ComponentTypeRepository(session);
 }
예제 #12
0
 public ComponentTypeService(IComponentTypeRepository componentTypeRepository)
 {
     this.componentTypeRepository = componentTypeRepository;
 }
예제 #13
0
 public ComponentFormController(EmbeddedStockContext context, IComponentTypeRepository typeDb)
 {
     _context = context;
     _typeDb  = typeDb;
 }
 public ComponentTypeService(IOptions <AppSettings> appSettings, IComponentTypeRepository componentTypeRepository)
 {
     _componentTypeRepository = componentTypeRepository;
     _appSettings             = appSettings.Value;
 }
예제 #15
0
 public CategoryController(IComponentTypeRepository componentTypeRepository, IServiceProvider serviceProvider)
 {
     _componentTypeRepository = componentTypeRepository;
     _context = serviceProvider.GetRequiredService <ApplicationDbContext>();
 }
예제 #16
0
 public ComponentTypeController(ApplicationDbContext context, IComponentTypeRepository repository)
 {
     _context    = context;
     _repository = repository;
 }
예제 #17
0
 public ComponentTypeController()
 {
     componentTypeRepository = new ComponentTypeRepository();
 }
예제 #18
0
 public UserRepository()
 {
     componentRepository     = new ComponentRepository();
     componentTypeRepository = new ComponentTypeRepository();
     this._connectionString  = ConfigurationManager.ConnectionStrings["DefaultConnection"].ConnectionString;
 }
예제 #19
0
 public ResultViewComponent(IComponentRepository compDb, ICategoryRepository catDb, IComponentTypeRepository typeDb)
 {
     _componentDb = compDb;
     _categoryDb  = catDb;
     _typeDb      = typeDb;
 }
 public ComponentController(IComponentRepository componentRepository, IComponentTypeRepository componentTypeRepository)
 {
     _componentRepository     = componentRepository;
     _componentTypeRepository = componentTypeRepository;
 }
예제 #21
0
 public ResultViewComponent(IComponentRepository componentRepository, IComponentTypeRepository componentTypeRepository)
 {
     _componentRepository     = componentRepository;
     _componentTypeRepository = componentTypeRepository;
 }