TranslatorLibraryView.cs 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  1. using Newtonsoft.Json;
  2. using OASystem.Domain.Entities.Resource;
  3. using System;
  4. using System.Collections.Generic;
  5. using System.Linq;
  6. using System.Text;
  7. using System.Threading.Tasks;
  8. namespace OASystem.Domain.ViewModels.Resource
  9. {
  10. public class TranslatorLibraryView : Res_TranslatorLibrary
  11. {
  12. }
  13. public class TranslatorLibraryInfoView
  14. {
  15. public int Id { get; set; }
  16. /// <summary>
  17. /// 所在地区
  18. /// </summary>
  19. public string Area { get; set; }
  20. /// <summary>
  21. /// 姓名
  22. /// </summary>
  23. public string Name { get; set; }
  24. /// <summary>
  25. /// 性别(0:未设置 1:男 2:女)
  26. /// </summary>
  27. public int Sex { get; set; }
  28. /// <summary>
  29. /// 照片
  30. /// </summary>
  31. public string Photo { get; set; }
  32. /// <summary>
  33. /// 联系电话
  34. /// </summary>
  35. public string Tel { get; set; }
  36. /// <summary>
  37. /// 邮箱号
  38. /// </summary>
  39. public string Email { get; set; }
  40. /// <summary>
  41. /// 微信号
  42. /// </summary>
  43. public string WechatNo { get; set; }
  44. /// <summary>
  45. /// 其他社交账号
  46. /// </summary>
  47. public string OtherSocialAccounts { get; set; }
  48. /// <summary>
  49. /// 语种
  50. /// </summary>
  51. public string Language { get; set; }
  52. /// <summary>
  53. /// 费用
  54. /// </summary>
  55. public decimal Price { get; set; }
  56. /// <summary>
  57. /// 币种
  58. /// </summary>
  59. public int Currency { get; set; }
  60. /// <summary>
  61. /// 简历或其他证书
  62. /// </summary>
  63. public string Files { get; set; }
  64. /// <summary>
  65. /// 简历或其他证书
  66. /// </summary>
  67. public FileInfoView[] FilePaths
  68. {
  69. get
  70. {
  71. var files1 = new List<FileInfoView>();
  72. var files = new List<string>();
  73. if (!string.IsNullOrEmpty(Files))
  74. {
  75. try
  76. {
  77. files = JsonConvert.DeserializeObject<List<string>>(Files);
  78. for (int i = 0; i < files.Count; i++)
  79. {
  80. files1.Add(new FileInfoView()
  81. {
  82. FileName = files[i].ToString(),
  83. FilePathName = $"http://132.232.92.186:24/Office/GrpFile/TranslatorLibrary/{files[i].ToString()}"
  84. });
  85. }
  86. }
  87. catch (Exception)
  88. {
  89. }
  90. }
  91. return files1.ToArray();
  92. }
  93. }
  94. /// <summary>
  95. /// 公务出访Id集合
  96. /// </summary>
  97. public int[] OfficialDutyIdItem { get; set; }
  98. /// <summary>
  99. /// 备注
  100. /// </summary>
  101. public string Remark { get; set; }
  102. }
  103. public class FileInfoView
  104. {
  105. public string FileName { get; set; }
  106. public string FilePathName { get; set; }
  107. }
  108. }