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,
                            IMapper mapper) : base(repo, mapper)
 {
     //Repository
     this.repositoryMovement = repoMovement;
 }
Esempio n. 3
0
 public UserController(
     IRepositoryMachineMk2 <User> repo,
     IRepositoryMaintenanceMk2 <Permission> repoPermission, IMapper map) : base(repo)
 {
     //Machine
     this.repository = repo;
     //Painting
     this.repositoryPermission = repoPermission;
     this.mapper = map;
 }
 public SparePartController(IRepositoryMaintenanceMk2 <SparePart> repo,
                            IRepositoryMaintenanceMk2 <MovementStockSp> repoMovement,
                            IRepositoryDapper <SparePartViewModel> dap,
                            IMapper mapper) : base(repo, mapper)
 {
     //Repository
     this.repositoryMovement = repoMovement;
     //Dapper
     this.dapper = dap;
 }
Esempio n. 5
0
 public RequisitionStockSpController(IRepositoryMaintenanceMk2 <RequisitionStockSp> repo,
                                     IRepositoryMaintenanceMk2 <MovementStockSp> repoMovement,
                                     IRepositoryMaintenanceMk2 <SparePart> repoSpare,
                                     IRepositoryMachineMk2 <Employee> repoEmployee,
                                     IMapper mapper) : base(repo, mapper)
 {
     // Repository
     this.repositoryMovement = repoMovement;
     this.repositorySpare    = repoSpare;
     this.repositoryEmployee = repoEmployee;
 }
 public UserController(IRepositoryMachineMk2 <User> repo,
                       IRepositoryMaintenanceMk2 <Permission> repoPermission,
                       IHostingEnvironment hostingEnv,
                       IUserService user, IMapper map) : base(repo)
 {
     //Repository
     this.repositoryPermission = repoPermission;
     //Helper
     this.mapper      = map;
     this.userService = user;
     this.hosting     = hostingEnv;
 }
 public ItemController(IRepositoryMaintenanceMk2 <Item> repo,
                       IRepositoryMachineMk2 <Employee> repoEmp,
                       IRepositoryMachineMk2 <EmployeeGroupMis> repoGroupMis,
                       IRepositoryMaintenanceMk2 <ItemType> repoType,
                       IRepositoryMaintenanceMk2 <RequireMaintenance> repoRequireMain,
                       IMapper mapper) : base(repo, mapper)
 {
     // Repository Machine
     this.repositoryEmp      = repoEmp;
     this.repositoryGroupMis = repoGroupMis;
     // Repository Maintenance
     this.repositoryType = repoType;
     this.repositoryRequireMaintenance = repoRequireMain;
 }
Esempio n. 8
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;
 }
 public RequireMaintenanceController(IRepositoryMaintenanceMk2 <RequireMaintenance> repo,
                                     IRepositoryMachineMk2 <ProjectCodeMaster> repoPro,
                                     IRepositoryMachineMk2 <Employee> repoEmp,
                                     IRepositoryMachineMk2 <EmployeeGroupMis> repoGroupMis,
                                     IRepositoryMachineMk2 <AttachFile> repoAttach,
                                     IRepositoryMaintenanceMk2 <RequireMaintenanceHasAttach> repoHasAttach,
                                     IMapper mapper,
                                     IHostingEnvironment hostEnv
                                     ) : base(repo, mapper)
 {
     // Repository Machine
     this.repositoryEmployee  = repoEmp;
     this.repositoryProject   = repoPro;
     this.repositoryGroupMis  = repoGroupMis;
     this.repositoryAttach    = repoAttach;
     this.repositoryHasAttach = repoHasAttach;
     // Helper
     this.emailClass = new Helper.EmailClass();
     // IHost
     this.hostEnvironment = hostEnv;
 }
Esempio n. 10
0
 public GenericController(IRepositoryMaintenanceMk2 <Entity> repo, IMapper mapper)
 {
     this.repository = repo;
     this.mapper     = mapper;
     this.helper     = new HelpersClass <Entity>();
 }
Esempio n. 11
0
 public ItemTypeController(IRepositoryMaintenanceMk2 <ItemType> repo,
                           IMapper mapper) : base(repo, mapper)
 {
 }
 public WorkGroupController(IRepositoryMaintenanceMk2<WorkGroup> repo,
     IMapper mapper) : base(repo,mapper) { }
Esempio n. 13
0
 public ItemMainHasEmployeeController(IRepositoryMaintenanceMk2 <ItemMainHasEmployee> repo,
                                      IRepositoryMachineMk2 <Employee> repoEmp,
                                      IMapper mapper) : base(repo, mapper)
 {
     this.repositoryEmployee = repoEmp;
 }
Esempio n. 14
0
 public BranchController(IRepositoryMaintenanceMk2 <Branch> repo,
                         IMapper mapper) : base(repo, mapper)
 {
 }
Esempio n. 15
0
 public MovementStockSpController(IRepositoryMaintenanceMk2 <MovementStockSp> repo,
                                  IMapper mapper) : base(repo, mapper)
 {
 }
Esempio n. 16
0
 // GET: api/ItemCancelHasAttach
 public ObsoleteItemHasAttachController(IRepositoryMaintenanceMk2 <ObsoleteItemHasAttach> repo,
                                        IMapper mapper) : base(repo, mapper)
 {
 }
 public PermissionController(IRepositoryMaintenanceMk2 <Permission> repo,
                             IMapper mapper) : base(repo, mapper)
 {
 }
Esempio n. 18
0
 public TypeMaintenanceController(IRepositoryMaintenanceMk2 <TypeMaintenance> repo,
                                  IRepositoryMaintenanceMk2 <Item> repoItem,
                                  IMapper mapper) : base(repo, mapper)
 {
     this.repositoryItem = repoItem;
 }