Example #1
0
        /// <summary>
        /// Создает документ с инфомацией.
        /// </summary>
        /// <param name="item"> Документ. </param>
        /// <param name="interdepartItem"> Межведомственный запрос. </param>
        /// <returns></returns>
        public DocumentForReturnListDto CreateDocumentFoReturnListDto(DocumentForReturnListDto item,
                                                                      InterdepartRequestForIdDto interdepartItem)
        {
            DocumentForReturnListDtoBuilder documentBuilder = new DocumentForReturnListDtoBuilder();
            var documentDto = documentBuilder.SetDocumentInfo(item).SetInterdepartInfo(interdepartItem).Build();

            return(documentDto);
        }
Example #2
0
        /// <summary>
        /// Добавить в возврощаемый объект инормацию о документе.
        /// </summary>
        /// <param name="document"> Документ.</param>
        /// <returns></returns>
        public DocumentForReturnListDtoBuilder SetDocumentInfo(DocumentForReturnListDto document)
        {
            documentForReturnListDto.Id             = document.Id;
            documentForReturnListDto.DocName        = document.DocName;
            documentForReturnListDto.Number         = document.Number;
            documentForReturnListDto.Series         = document.Series;
            documentForReturnListDto.DocumentTypeId = document.DocumentTypeId;
            documentForReturnListDto.DateUpload     = document.DateUpload;
            documentForReturnListDto.PatientId      = document.PatientId;
            documentForReturnListDto.DocumentType   = document.DocumentType;

            return(this);
        }
Example #3
0
 /// <summary>
 /// Создание экземпляра класса.
 /// </summary>
 public DocumentForReturnListDtoBuilder()
 {
     documentForReturnListDto = new DocumentForReturnListDto();
 }