123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140 |
- using System;
- using System.Collections.Generic;
- using System.Collections.ObjectModel;
- namespace VidFilesUpgradeTool
- {
- class TerminalRecord : Entity
- {
- public TerminalInfo Terminal { get; set; }
- public OrganizationInfo Organization { get; set; }
- public UserInfo User { get; set; }
- public StorageServerInfo StorageServer { get; set; }
- public string Description { get; set; }
- public ICollection<AdminInfo> AdminShared { get; set; }
- public ICollection<UserInfo> UserAssigned { get; set; }
- public string ExamId { get; set; }
- public string AccessionNumber { get; set; }
- public PatientDocInfo PatientInfo { get; set; }
- public TerminalRecord() : base()
- {
- AdminShared = new Collection<AdminInfo>();
- UserAssigned = new Collection<UserInfo>();
- }
- }
- class FinishedTerminalRecord:Entity
- {
- public TerminalInfo Terminal { get; set; }
- public OrganizationInfo Organization { get; set; }
- public UserInfoWithType User { get; set; }
- public PatientDocInfo PatientInfo { get; set; }
- public string TerminalRecordId { get; set; }
- }
- class UserInfoWithType : EntityInfo
- {
- public UserTypes UserType { get; set; }
- }
- class TerminalInfo : EntityDescriptionInfo
- {
- public string OrganizationId { get; set; }
- public bool IsShared { get; set; }
- }
- class OrganizationInfo : EntityDescriptionInfo
- {
- public bool IsShared { get; set; }
- }
- class StorageServerInfo
- {
- public string Id { get; set; }
- public string Address { get; set; }
- public int Port { get; set; }
- public string Description { get; set; }
- }
- class AdminInfo : EntityInfo
- {
- }
- class PatientDocInfo
- {
- public string IdentityCardId { get; private set; }
- public string FirstName { get; private set; }
- public string LastName { get; private set; }
- public DateTime? Birthday { get; set; }
- public GenderType GenderType { get; set; }
- }
- enum GenderType
- {
- Unassigned,
- Male,
- Female
- }
- /// <summary>
- /// Account all user types
- /// </summary>
- enum UserTypes
- {
- /// <summary>
- /// common user
- /// </summary>
- Normal,
- /// <summary>
- /// expert user
- /// </summary>
- Expert,
- /// <summary>
- /// Review patient report user
- /// </summary>
- Reviewer,
- /// <summary>
- /// work sheet user
- /// </summary>NUs
- WorkOrder,
- /// <summary>
- /// after sale sevice user
- /// </summary>
- Service,
- /// <summary>
- /// after sale agent user
- /// </summary>
- SalesAgent
- }
- class EntityInfo
- {
- public string Id { get; set; }
- public string Name { get; set; }
- }
- class EntityDescriptionInfo : EntityInfo
- {
- public string Description { get; set; }
- }
- }
|