public ItemController(IRepositoryMaintenanceMk2 <Item> repo,
                       IRepositoryMachineMk2 <Employee> repoEmp,
                       IRepositoryMachineMk2 <EmployeeGroupMis> repoGroupMis,
                       IRepositoryMaintenanceMk2 <ItemType> repoType,
                       IRepositoryMaintenanceMk2 <RequireMaintenance> repoRequireMain,
                       IRepositoryDapper <ItemViewModel> repoDapper,
                       ExcelWorkBookService excelWorkBook,
                       IHelperService helper,
                       IHostingEnvironment hosting,
                       IMapper mapper) : base(repo, mapper)
 {
     // Repository Machine
     this.repositoryEmp      = repoEmp;
     this.repositoryGroupMis = repoGroupMis;
     // Repository Maintenance
     this.repositoryType = repoType;
     this.repositoryRequireMaintenance = repoRequireMain;
     // Dapper
     this.dapper = repoDapper;
     // Helper
     this.excelWorkBookService = excelWorkBook;
     this.helperService        = helper;
     // Host
     this.hosting = hosting;
 }
 public SparePartController(IRepositoryMaintenanceMk2 <SparePart> repo,
                            IRepositoryMaintenanceMk2 <MovementStockSp> repoMovement,
                            IRepositoryDapper <SparePartViewModel> dap,
                            IMapper mapper) : base(repo, mapper)
 {
     //Repository
     this.repositoryMovement = repoMovement;
     //Dapper
     this.dapper = dap;
 }
예제 #3
0
 // GET: api/ItemHasCancel
 public ObsoleteItemController(IRepositoryMaintenanceMk2 <ObsoleteItem> repo,
                               IRepositoryMaintenanceMk2 <Item> repoItem,
                               IRepositoryMaintenanceMk2 <ObsoleteItemHasAttach> repoHasAttach,
                               IRepositoryMachineMk2 <AttachFile> repoAttach,
                               IRepositoryDapper <ObsoleteItemViewModel> repoDapper,
                               IHostingEnvironment hosting,
                               ExcelWorkBookService bookService,
                               IMapper mapper) : base(repo, mapper)
 {
     //MaintenanceDatabase
     this.repositoryItem      = repoItem;
     this.repositoryHasAttach = repoHasAttach;
     this.dapper = repoDapper;
     // MachineDatabase
     this.repositoryAttach = repoAttach;
     // Ihost
     this.hosting = hosting;
     // Helper
     this.bookService = bookService;
 }
예제 #4
0
 public ServiceDapper(IRepositoryDapper <TEntity> repositoryDapper)
 {
     _repositoryDapper = repositoryDapper;
 }