TerminalRecord.cs 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Collections.ObjectModel;
  4. namespace VidFilesUpgradeTool
  5. {
  6. class TerminalRecord : Entity
  7. {
  8. public TerminalInfo Terminal { get; set; }
  9. public OrganizationInfo Organization { get; set; }
  10. public UserInfo User { get; set; }
  11. public StorageServerInfo StorageServer { get; set; }
  12. public string Description { get; set; }
  13. public ICollection<AdminInfo> AdminShared { get; set; }
  14. public ICollection<UserInfo> UserAssigned { get; set; }
  15. public string ExamId { get; set; }
  16. public string AccessionNumber { get; set; }
  17. public PatientDocInfo PatientInfo { get; set; }
  18. public TerminalRecord() : base()
  19. {
  20. AdminShared = new Collection<AdminInfo>();
  21. UserAssigned = new Collection<UserInfo>();
  22. }
  23. }
  24. class FinishedTerminalRecord:Entity
  25. {
  26. public TerminalInfo Terminal { get; set; }
  27. public OrganizationInfo Organization { get; set; }
  28. public UserInfoWithType User { get; set; }
  29. public PatientDocInfo PatientInfo { get; set; }
  30. public string TerminalRecordId { get; set; }
  31. }
  32. class UserInfoWithType : EntityInfo
  33. {
  34. public UserTypes UserType { get; set; }
  35. }
  36. class TerminalInfo : EntityDescriptionInfo
  37. {
  38. public string OrganizationId { get; set; }
  39. public bool IsShared { get; set; }
  40. }
  41. class OrganizationInfo : EntityDescriptionInfo
  42. {
  43. public bool IsShared { get; set; }
  44. }
  45. class StorageServerInfo
  46. {
  47. public string Id { get; set; }
  48. public string Address { get; set; }
  49. public int Port { get; set; }
  50. public string Description { get; set; }
  51. }
  52. class AdminInfo : EntityInfo
  53. {
  54. }
  55. class PatientDocInfo
  56. {
  57. public string IdentityCardId { get; private set; }
  58. public string FirstName { get; private set; }
  59. public string LastName { get; private set; }
  60. public DateTime? Birthday { get; set; }
  61. public GenderType GenderType { get; set; }
  62. }
  63. enum GenderType
  64. {
  65. Unassigned,
  66. Male,
  67. Female
  68. }
  69. /// <summary>
  70. /// Account all user types
  71. /// </summary>
  72. enum UserTypes
  73. {
  74. /// <summary>
  75. /// common user
  76. /// </summary>
  77. Normal,
  78. /// <summary>
  79. /// expert user
  80. /// </summary>
  81. Expert,
  82. /// <summary>
  83. /// Review patient report user
  84. /// </summary>
  85. Reviewer,
  86. /// <summary>
  87. /// work sheet user
  88. /// </summary>NUs
  89. WorkOrder,
  90. /// <summary>
  91. /// after sale sevice user
  92. /// </summary>
  93. Service,
  94. /// <summary>
  95. /// after sale agent user
  96. /// </summary>
  97. SalesAgent
  98. }
  99. class EntityInfo
  100. {
  101. public string Id { get; set; }
  102. public string Name { get; set; }
  103. }
  104. class EntityDescriptionInfo : EntityInfo
  105. {
  106. public string Description { get; set; }
  107. }
  108. }