DocumentDto.cs 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. using System;
  2. using System.Collections.Generic;
  3. using BO.AppServer.Metadata.Enums;
  4. using Quadarax.Foundation.Core.Data.Interface.Entity;
  5. namespace BO.AppServer.Metadata.Dto
  6. {
  7. #region *** Document - Base ***
  8. public class DocumentBaseDto : BoDto
  9. {
  10. public string Name { get; set; }
  11. public DocumentStatusEnum Status { get; set; }
  12. }
  13. #endregion
  14. #region *** Document - Create ***
  15. public class DocumentCDto : Dto, ICreateDto
  16. {
  17. public string Name { get; set; }
  18. public DocumentCDto(){}
  19. public DocumentCDto(string name)
  20. {
  21. Name = name;
  22. }
  23. }
  24. #endregion
  25. #region *** Document - Update ***
  26. internal class DocumentUDto : DocumentBaseDto, IUpdateDto
  27. {
  28. }
  29. #endregion
  30. #region *** Document - Read ***
  31. public class DocumentRDto : DocumentBaseDto, IReadDto
  32. {
  33. public DateTime? LastDownloaded { get; set; }
  34. public BoAuditDto Audit { get; set;}
  35. public int PresetCreditCost { get; set;}
  36. public bool PresetWatermark { get; set;}
  37. public int PresetQuality { get; set;}
  38. public string PresetProcessProfile { get; set;}
  39. public bool PresetTest { get; set;}
  40. public IEnumerable<ArtifactRDto> Artifacts { get; set;}
  41. public IEnumerable<DocumentStatusHistoryRDto> History { get; set;}
  42. }
  43. #endregion
  44. #region *** Document - Delete ***
  45. internal class DocumentDDto : BoDto, IDeleteDto
  46. {
  47. }
  48. #endregion
  49. }