123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137 |
- using MongoDB.Bson.Serialization.Attributes;
- using System;
- using System.Collections.Generic;
- using System.Collections.ObjectModel;
- using Mpeg4ConverterTool.Document;
- namespace Mpeg4ConverterTool
- {
- [BsonIgnoreExtraElementsAttribute]//忽略无法匹配的字段 2020-01-14 R00343 删除了firstName
- internal class User : AccountBase
- {
- public virtual AdminInfo CreateAdmin { get; set; }
- /// <summary>
- /// Terminals assigned to user
- /// </summary>
- public ICollection<UserTerminalInfo> Terminals { get; set; }
- /// <summary>
- /// Applications assigned to user
- /// </summary>
- public ICollection<FeatureInfo> Features { get; set; }
- public ICollection<OrganizationInfo> Organizations { get; set; }
- public ICollection<PushFailedMessage> PushFailedMessages { get; private set; }
- public virtual ICollection<AdminInfo> Owners { get; private set; }
- public byte[] SmallHeadImage { get; set; }
- public string HeadImage { get; set; }
- public bool IsActive { get; set; }
- public string NickName { get; set; }
- public string Region { get; set; }
- public string HospitalId { get; set; }
- public string Hospital { get; set; }
- public string Department { get; set; }
- public string CertificateId { get; set; }
- public int Rank { get; set; }
- public string Introduction { get; set; }
- public string Unionid { get; set; }
- /// <summary>
- /// Gets or sets the Openid of this user.
- /// </summary>
- public string Openid { get; set; }
- public ChargeGroupInfo ChargeGroupInfo { get; set; }
- /// <summary>
- /// direct server name
- /// </summary>
- public string DirectServer { get; set; }
- private User() : base()
- {
- Terminals = new Collection<UserTerminalInfo>();
- Features = new Collection<FeatureInfo>();
- Organizations = new Collection<OrganizationInfo>();
- PushFailedMessages = new Collection<PushFailedMessage>();
- Owners = new Collection<AdminInfo>();
- }
- public User(string id, DateTime createTime) : base(id, createTime)
- {
- Terminals = new Collection<UserTerminalInfo>();
- Features = new Collection<FeatureInfo>();
- Organizations = new Collection<OrganizationInfo>();
- PushFailedMessages = new Collection<PushFailedMessage>();
- Owners = new Collection<AdminInfo>();
- }
- }
- /// <summary>
- /// 备注
- /// </summary>
- internal class TerminalRemark
- {
- /// <summary>
- /// 国家
- /// </summary>
- public string Country { get; set; }
- /// <summary>
- /// 省份
- /// </summary>
- public string Province { get; set; }
- /// <summary>
- /// 代理商名称
- /// </summary>
- public string AgentName { get; set; }
- /// <summary>
- /// 医院名称
- /// </summary>
- public string HospitalName { get; set; }
- /// <summary>
- /// 其他备注
- /// </summary>
- public string OtherRemark { get; set; }
- }
- /// <summary>
- /// 用户超声机
- /// </summary>
- internal class UserTerminalInfo : TerminalInfo
- {
- /// <summary>
- /// 备注
- /// </summary>
- public TerminalRemark Remark { get; set; }
-
- public UserTerminalInfo()
- {
- Remark = new TerminalRemark();
- }
- public UserTerminalInfo(Terminal terminal, bool isShared = false) : base(terminal, isShared)
- {
- Remark = new TerminalRemark();
- }
- }
- }
|