TranslatorLibraryView.cs 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173
  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 TranslatorLibraryView : Res_TranslatorLibrary
  12. {
  13. }
  14. public class TranslatorLibraryInfoView
  15. {
  16. public int Id { get; set; }
  17. /// <summary>
  18. /// 所在地区
  19. /// </summary>
  20. public string Area { get; set; }
  21. /// <summary>
  22. /// 姓名
  23. /// </summary>
  24. public string Name { get; set; }
  25. /// <summary>
  26. /// 性别(0:未设置 1:男 2:女)
  27. /// </summary>
  28. public int Sex { get; set; }
  29. /// <summary>
  30. /// 照片
  31. /// </summary>
  32. public string Photo { get; set; }
  33. /// <summary>
  34. /// 联系电话
  35. /// </summary>
  36. public string Tel { get; set; }
  37. /// <summary>
  38. /// 邮箱号
  39. /// </summary>
  40. public string Email { get; set; }
  41. /// <summary>
  42. /// 微信号
  43. /// </summary>
  44. public string WechatNo { get; set; }
  45. /// <summary>
  46. /// 其他社交账号
  47. /// </summary>
  48. public string OtherSocialAccounts { get; set; }
  49. /// <summary>
  50. /// 语种
  51. /// </summary>
  52. public string Language { get; set; }
  53. /// <summary>
  54. /// 费用
  55. /// </summary>
  56. public decimal Price { get; set; }
  57. /// <summary>
  58. /// 币种
  59. /// </summary>
  60. public int Currency { get; set; }
  61. /// <summary>
  62. /// 简历或其他证书
  63. /// </summary>
  64. public string Files { get; set; }
  65. /// <summary>
  66. /// 简历或其他证书
  67. /// </summary>
  68. public FileInfoView[] FilePaths
  69. {
  70. get
  71. {
  72. var files1 = new List<FileInfoView>();
  73. var files = new List<string>();
  74. if (!string.IsNullOrEmpty(Files))
  75. {
  76. try
  77. {
  78. files = JsonConvert.DeserializeObject<List<string>>(Files);
  79. for (int i = 0; i < files.Count; i++)
  80. {
  81. files1.Add(new FileInfoView()
  82. {
  83. FileName = files[i].ToString(),
  84. FilePathName = $"http://132.232.92.186:24/Office/GrpFile/TranslatorLibrary/{files[i].ToString()}"
  85. });
  86. }
  87. }
  88. catch (Exception)
  89. {
  90. }
  91. }
  92. return files1.ToArray();
  93. }
  94. }
  95. /// <summary>
  96. /// 公务出访Id集合
  97. /// </summary>
  98. public int[] OfficialDutyIdItem { get; set; }
  99. /// <summary>
  100. /// 备注
  101. /// </summary>
  102. public string Remark { get; set; }
  103. }
  104. public class FileInfoView
  105. {
  106. public string FileName { get; set; }
  107. public string FilePathName { get; set; }
  108. }
  109. public class TranslatorLibraryItemView
  110. {
  111. public int Id { get; set; }
  112. [Encrypted]
  113. public string Area { get; set; }
  114. [Encrypted]
  115. public string Name { get; set; }
  116. public string Sex { get; set; }
  117. [Encrypted]
  118. public string Tel { get; set; }
  119. [Encrypted]
  120. public string Email { get; set; }
  121. [Encrypted]
  122. public string WechatNo { get; set; }
  123. [Encrypted]
  124. public string Language { get; set; }
  125. public decimal Price { get; set; }
  126. public string Currency { get; set; }
  127. public string CreateUserName { get; set; }
  128. public DateTime CreateTime { get; set; }
  129. [Encrypted]
  130. public string Remark { get; set; }
  131. }
  132. public class TranslatorLibraryNameView
  133. {
  134. public int Id { get; set; }
  135. [Encrypted]
  136. public string Name { get; set; }
  137. }
  138. }