OfficialActivitiesView.cs 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  1. using Newtonsoft.Json;
  2. using OASystem.Domain.Attributes;
  3. using OASystem.Domain.Entities.Resource;
  4. using System;
  5. using System.Collections.Generic;
  6. using System.Linq;
  7. using System.Text;
  8. using System.Threading.Tasks;
  9. namespace OASystem.Domain.ViewModels.Resource
  10. {
  11. public class OfficialActivitiesView : Res_OfficialActivities
  12. {
  13. /// <summary>
  14. /// 翻译人员Id
  15. /// </summary>
  16. public int[] TranslatorIdItem { get; set; } = Array.Empty<int>();
  17. public List<string> ScreenshotOfMailUrls
  18. {
  19. get
  20. {
  21. List<string> urls = new List<string>();
  22. urls = !string.IsNullOrEmpty(ScreenshotOfMailUrl)
  23. ? JsonConvert.DeserializeObject<List<string>>(ScreenshotOfMailUrl)
  24. : new List<string>();
  25. List<string> urls1 = new List<string>();
  26. urls.ForEach(x =>
  27. {
  28. urls1.Add("http://132.232.92.186:24/" + x);
  29. });
  30. return urls1;
  31. }
  32. }
  33. public string CreateUserName { get; set; }
  34. public string OfficialFormName { get; set; }
  35. public string ConfirmTheInvitationStr
  36. {
  37. get {
  38. return this.ConfirmTheInvitation == 0 ? "未确认" : "已确认";
  39. }
  40. }
  41. public TranslatorView TranslatorInfo { get; set; } = new TranslatorView { };
  42. }
  43. public class TranslatorView
  44. {
  45. public int Id { get; set; }
  46. /// <summary>
  47. /// 所在地区
  48. /// </summary>
  49. [Encrypted]
  50. public string Area { get; set; }
  51. /// <summary>
  52. /// 姓名
  53. /// </summary>
  54. [Encrypted]
  55. public string Name { get; set; }
  56. /// <summary>
  57. /// 性别(0:未设置 1:男 2:女)
  58. /// </summary>
  59. public int Sex { get; set; }
  60. /// <summary>
  61. /// 联系电话
  62. /// </summary>
  63. [Encrypted]
  64. public string Tel { get; set; }
  65. /// <summary>
  66. /// 邮箱号
  67. /// </summary>
  68. [Encrypted]
  69. public string Email { get; set; }
  70. /// <summary>
  71. /// 微信号
  72. /// </summary>
  73. [Encrypted]
  74. public string WechatNo { get; set; }
  75. /// <summary>
  76. /// 其他社交账号
  77. /// </summary>
  78. [Encrypted]
  79. public string OtherSocialAccounts { get; set; }
  80. /// <summary>
  81. /// 语种
  82. /// </summary>
  83. [Encrypted]
  84. public string Language { get; set; }
  85. /// <summary>
  86. /// 费用
  87. /// </summary>
  88. public decimal Price { get; set; }
  89. /// <summary>
  90. /// 币种
  91. /// </summary>
  92. public int Currency { get; set; }
  93. public string CurrencyName { get; set; }
  94. }
  95. /// <summary>
  96. /// 请示范例 Tips View
  97. /// </summary>
  98. public class ReqReqSampleTipsView
  99. {
  100. public string TeamName { get; set; }
  101. public string Country { get; set; }
  102. public string Area { get; set; }
  103. public string Client { get; set; }
  104. public string ReqSample { get; set; }
  105. }
  106. }