예제 #1
0
        public GetDcNumberForInvoiceResponseDto GetDcNumberForInvoice(GetInvoiceNumberRequestDto getInvoiceNumberRequestDto)
        {
            GetDcNumberForInvoiceResponseDto response = new GetDcNumberForInvoiceResponseDto();

            try
            {
                response = rInvoiceProvider.GetDcNumberForInvoice(getInvoiceNumberRequestDto);
                response.ServiceResponseStatus = 1;
            }
            catch (SSException applicationException)
            {
                response = new GetDcNumberForInvoiceResponseDto
                {
                    ServiceResponseStatus = 0,
                    ErrorMessage          = applicationException.Message,
                    ErrorCode             = applicationException.ExceptionCode
                };
            }
            catch (Exception exception)
            {
                response = new GetDcNumberForInvoiceResponseDto
                {
                    ServiceResponseStatus = 0,
                    ErrorCode             = ExceptionAttributes.ExceptionCodes.InternalServerError,
                    ErrorMessage          = exception.Message
                };
            }

            return(response);
        }
예제 #2
0
        public GetDcNumberForInvoiceResponseDto GetDcNumberForInvoice(GetInvoiceNumberRequestDto getInvoiceNumberRequestDto)
        {
            var response = new GetDcNumberForInvoiceResponseDto();

            var model = invoiceRepository.GetDcNumberForInvoice(getInvoiceNumberRequestDto.VendorCode, getInvoiceNumberRequestDto.WoType);

            if (model != null)
            {
                response = DcNumberForInvoiceMapper((List <GetDcNumberForInvoiceModel>)model.GetDcNumberForInvoiceList, response);
            }

            return(response);
        }
예제 #3
0
 GetDcNumberForInvoiceResponseDto IReportInvoice.GetDcNumberForInvoice(GetInvoiceNumberRequestDto getInvoiceNumberRequestDto)
 {
     throw new NotImplementedException();
 }