示例#1
0
        public ProcessController(IInspectionService inspetionService,
                                 IProcessService processService,
                                 IOverSeaService overseaService,
                                 ICountryService countryService,
                                 IStoreService storeService,
                                 IWorkplaceService workplaceService,
                                 IFeedbackService feedbackService,
                                 IObservationService observationService,
                                 ITrackService trackService
                                 )
        {
            this._inspetionService = inspetionService;
            this._processService   = processService;

            this._overseaService     = overseaService;
            this._countryService     = countryService;
            this._storeService       = storeService;
            this._workplaceService   = workplaceService;
            this._feedbackService    = feedbackService;
            this._observationService = observationService;
            this._trackService       = trackService;

            // 目前登入者可用權限
            this._UserPermission = new UserPermission(storeService, workplaceService);
        }
 public QueryController(IAdaptationService adaptationService, IGraduationService graduationService,
                        IIdentityService ıdentityService, IAwardService awardService, IBirthCertificateService birthCertificateService,
                        ICourseService courseService, ICriminalService criminalService, IDesignationService designationService,
                        IPermissionService permissionService, IPromotionService promotionService, ITemporaryDutyService temporaryDutyService,
                        IForeignLanguageService foreignLanguageService, IWorkingPriceService workingPriceService, ITradeUnionInfoService tradeUnionInfoService,
                        IMilitaryService militaryService, IWorkplaceService workplaceService, IPriceTypeService priceTypeService, ITisJobCodeService tisJobCodeService,
                        IAdminStatusService adminStatusService, IDailyWorkingTimeService dailyWorkingTimeService, IPrivateStatusService privateStatusService, IMaritalStatusService maritalStatusService, IGenderService genderService, IWorkingStatusService workingStatusService, IWorkplaceHeadquartersService workplaceHeadquartersService)
 {
     _adaptationService            = adaptationService;
     _graduationService            = graduationService;
     _ıdentityService              = ıdentityService;
     _awardService                 = awardService;
     _birthCertificateService      = birthCertificateService;
     _courseService                = courseService;
     _criminalService              = criminalService;
     _designationService           = designationService;
     _permissionService            = permissionService;
     _promotionService             = promotionService;
     _temporaryDutyService         = temporaryDutyService;
     _foreignLanguageService       = foreignLanguageService;
     _workingPriceService          = workingPriceService;
     _tradeUnionInfoService        = tradeUnionInfoService;
     _militaryService              = militaryService;
     _workplaceService             = workplaceService;
     _priceTypeService             = priceTypeService;
     _tisJobCodeService            = tisJobCodeService;
     _adminStatusService           = adminStatusService;
     _dailyWorkingTimeService      = dailyWorkingTimeService;
     _privateStatusService         = privateStatusService;
     _maritalStatusService         = maritalStatusService;
     _genderService                = genderService;
     _workingStatusService         = workingStatusService;
     _workplaceHeadquartersService = workplaceHeadquartersService;
 }
示例#3
0
 /// <summary>
 /// Constructor
 /// </summary>
 public WorkplaceBaseController(IWorkplaceService workplaceSerive)
 {
     if (workplaceSerive == null)
     {
         throw new ArgumentNullException("workplaceSerive");
     }
     this.workplaceSerive = workplaceSerive;
 }
 public WorkplaceController(
     [FromServices] IWorkplaceService workplaceService,
     [FromServices] ISpaceServiceClient spaceServiceClient,
     [FromServices] IOfficeServiceClient officeServiceClient)
 {
     this.workplaceService    = workplaceService;
     this.spaceServiceClient  = spaceServiceClient;
     this.officeServiceClient = officeServiceClient;
 }
示例#5
0
        public AddBreakdownViewModel(
            IWorkplaceService entityService,
            IBreakdownService breakdownService)
            : base(entityService)
        {
            this.breakdownService = breakdownService;

            SendCommand = new RelayCommand(Send, () => CanSend);

            Breakdown = new Breakdown();
        }
示例#6
0
 public DesignationController(IIdentityService ıdentityService, IDesignationService designationService,
                              IReasonForDesignationService reasonForDesignationService, IWorkplaceService workplaceService, IDesignationStatusService designationStatusService, IDesignationApprovalService designationApprovalService, ITisJobCodeService tisJobCodeService)
 {
     _ıdentityService             = ıdentityService;
     _designationService          = designationService;
     _reasonForDesignationService = reasonForDesignationService;
     _workplaceService            = workplaceService;
     _designationStatusService    = designationStatusService;
     _designationApprovalService  = designationApprovalService;
     _tisJobCodeService           = tisJobCodeService;
 }
示例#7
0
 public WorkplaceServiceServer(
     [FromServices] IRabbitMQPersistentConnection persistentConnection,
     [FromServices] IWorkplaceService workplaceService,
     [FromServices] ILogger <WorkplaceServiceServer> logger,
     [FromServices] IMapper autoMapper)
 {
     this.persistentConnection = persistentConnection;
     this.workplaceService     = workplaceService;
     this.logger     = logger;
     this.autoMapper = autoMapper;
     CreateConsumerChannel(RequestQueueName);
     logger.LogInformation("WorkplaceService: created a queue called [" + RequestQueueName + "]");
 }
 public IdentityController(IIdentityService ıdentityService, IWorkplaceService workplaceService,
                           IMaritalStatusService maritalStatusService, IGenderService genderService, IDisabilityStatusService disabilityStatusService,
                           IBloodGroupService bloodGroupService, IServiceInfoService serviceInfoService, ICurrentStatusService currentStatusService,
                           IWorkingStatusService workingStatusService, IShiftInfoService shiftInfoService, IAdminStatusService adminStatusService, IProvinceService provinceService, ITisJobCodeService tisJobCodeService, IPrivateStatusService privateStatusService)
 {
     _ıdentityService         = ıdentityService;
     _workplaceService        = workplaceService;
     _maritalStatusService    = maritalStatusService;
     _genderService           = genderService;
     _disabilityStatusService = disabilityStatusService;
     _bloodGroupService       = bloodGroupService;
     _serviceInfoService      = serviceInfoService;
     _currentStatusService    = currentStatusService;
     _workingStatusService    = workingStatusService;
     _shiftInfoService        = shiftInfoService;
     _adminStatusService      = adminStatusService;
     _provinceService         = provinceService;
     _tisJobCodeService       = tisJobCodeService;
     _privateStatusService    = privateStatusService;
 }
示例#9
0
            public UserPermission(IStoreService storeService, IWorkplaceService workplaceService)
            {
                string department = UserModel.GetUserData().DepartmentID;
                string store      = UserModel.GetUserData().PosStore;

                List <Store>     storeList     = storeService.GetAll().ToList();
                List <Workplace> workplaceList = workplaceService.GetAll().ToList();

                int flag = GetDepartmentFlag(department);

                if (department != GlobalSettings.IT)
                {
                    storeList     = storeList.Where(x => x.CX_StoreNo == store).ToList();
                    workplaceList = workplaceList.Where(x => x.FG_Department == flag).ToList();
                }

                this.AllowStore     = storeList;
                this.AllowWorkplace = workplaceList;
                this.AllowStatus    = Status.GetProcessStatus();
            }
示例#10
0
        //private readonly int FileMax = 100 * 100 * 100;

        public InspectionController(IInspectionService inspetionService,
                                    IOverSeaService overseaService,
                                    ICountryService countryService,
                                    IStoreService storeService,
                                    IWorkplaceService workplaceService,
                                    IFeedbackService feedbackService,
                                    IObservationService observationService,
                                    ITrackService trackService
                                    )
        {
            this._inspetionService = inspetionService;

            this._overseaService     = overseaService;
            this._countryService     = countryService;
            this._storeService       = storeService;
            this._workplaceService   = workplaceService;
            this._feedbackService    = feedbackService;
            this._observationService = observationService;
            this._trackService       = trackService;
        }
示例#11
0
 public HomeController(IUsersService users, IWorkplaceService workplaces)
     : base()
 {
     this.users      = users;
     this.workplaces = workplaces;
 }
 public HomeController(IIdentityService ıdentityService, IWorkplaceService workplaceService, IDisabilityStatusService disabilityStatusService)
 {
     _ıdentityService         = ıdentityService;
     _workplaceService        = workplaceService;
     _disabilityStatusService = disabilityStatusService;
 }
 public WorkplacesViewModel(IWorkplaceService entityService)
     : base(entityService)
 {
 }
示例#14
0
 /// <summary>
 /// Workplace Constructor
 /// </summary>
 public WorkplaceController(IWorkplaceService workplaceService)
 {
     this.workplaceService = workplaceService;
 }