Example #1
0
        public async Task UpdateStatus(EntityResultOutput <Guid> input)
        {
            var @rentmachine = _rentMachineRepository.Get(input.Id);

            @rentmachine.TenantId = AbpSession.GetTenantId();

            @rentmachine.Status = "Return";
            int i = 0;
            await _rentMachineRepository.UpdateAsync(@rentmachine);
        }
Example #2
0
        public CutPlanDetailOutput GetDetail(EntityResultOutput <Guid> input)
        {
            var @cutplan = _cutplanRepository
                           .GetAll()
                           .Where(e => e.Id == input.Id)
                           .ToList().FirstOrDefault();

            if (@cutplan == null)
            {
                throw new UserFriendlyException("Could not found the event, maybe it's deleted.");
            }
            return(@cutplan.MapTo <CutPlanDetailOutput>());
        }
Example #3
0
        public EstimateConsumptionDetail GetDetail(EntityResultOutput <Guid> input)
        {
            var @estimateconsumption = _estimateConsumptionRepository
                                       .GetAll()
                                       .Where(e => e.Id == input.Id)
                                       .ToList().FirstOrDefault();

            if (@estimateconsumption == null)
            {
                throw new UserFriendlyException("Could not found the event, maybe it's deleted.");
            }
            return(@estimateconsumption.MapTo <EstimateConsumptionDetail>());
        }
        public CustomeFieldSetupDetailDto GetDetail(EntityResultOutput <Guid> input)
        {
            var @customefieldsetup = _customefieldsetupRepository
                                     .GetAll()
                                     .Where(e => e.Id == input.Id)
                                     .ToList().FirstOrDefault();

            if (@customefieldsetup == null)
            {
                throw new UserFriendlyException("Could not found the event, maybe it's deleted.");
            }
            return(@customefieldsetup.MapTo <CustomeFieldSetupDetailDto>());
        }
Example #5
0
        public DepartmentDto GetDetail(EntityResultOutput <Guid> input)
        {
            var @department = _departmentRepository
                              .GetAll()
                              .Where(e => e.Id == input.Id)
                              .ToList().FirstOrDefault();

            if (@department == null)
            {
                throw new UserFriendlyException("Could not found the event, maybe it's deleted.");
            }

            return(@department.MapTo <DepartmentDto>());
        }
        public AssetVerificationHeaderDto GetDetail(EntityResultOutput <Guid> input)
        {
            var assetVerificationHeader = _assetVerificationHeaderRepository
                                          .GetAll()
                                          .Where(e => e.Id == input.Id)
                                          .ToList().FirstOrDefault();

            if (assetVerificationHeader == null)
            {
                throw new UserFriendlyException("Could not found the event, maybe it's deleted.");
            }

            return(assetVerificationHeader.MapTo <AssetVerificationHeaderDto>());
        }
Example #7
0
        public RentMachineDetailOutputDto GetDetail(EntityResultOutput <Guid> input)
        {
            var @rentmachine = _rentMachineRepository
                               .GetAll()
                               .Where(e => e.Id == input.Id)
                               .ToList().FirstOrDefault();

            if (@rentmachine == null)
            {
                throw new UserFriendlyException("Could not found the event, maybe it's deleted.");
            }

            return(@rentmachine.MapTo <RentMachineDetailOutputDto>());
        }
        public StockReceiveHeaderListDto GetDetail(EntityResultOutput <Guid> input)
        {
            var @stockReceiveHeader = _stockReceiveHeaderRepository
                                      .GetAll()
                                      .Include(x => x.ReceiveNoteItems)
                                      .Where(e => e.Id == input.Id)
                                      .ToList().FirstOrDefault();

            if (@stockReceiveHeader == null)
            {
                throw new UserFriendlyException("Could not found the event, maybe it's deleted.");
            }

            return(@stockReceiveHeader.MapTo <StockReceiveHeaderListDto>());
        }
Example #9
0
        public EventHeaderDto GetDetail(EntityResultOutput <Guid> input)
        {
            var @eventHeader = _eventHeaderRepository
                               .GetAll()
                               .Include(x => x.Albums)
                               .Include(x => x.Invitees)
                               .Where(e => e.Id == input.Id)
                               .ToList().FirstOrDefault();

            if (@eventHeader == null)
            {
                throw new UserFriendlyException("Could not found the event, maybe it's deleted.");
            }

            return(@eventHeader.MapTo <EventHeaderDto>());
        }
Example #10
0
        public OperationPoolDto GetDetail(EntityResultOutput <Guid> input)
        {
            var @operation = _operationPoolRepository
                             .GetAll()
                             .Include(x => x.FolderDetails)
                             .Include(x => x.FootDetails)
                             .Include(x => x.AttatchmentDetails)
                             .Include(x => x.NeedleDetails)
                             .Include(x => x.ThreadDetails)
                             .Include(x => x.WorkCycleImages)
                             .Include(x => x.WorkCycleVideos)

                             .Where(e => e.Id == input.Id)
                             .ToList().FirstOrDefault();

            if (@operation == null)
            {
                throw new UserFriendlyException("Could not found the event, maybe it's deleted.");
            }

            return(@operation.MapTo <OperationPoolDto>());
        }