OfficialActivitiesView.cs 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  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; }
  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; }
  42. }
  43. public class TranslatorView
  44. {
  45. public int Id { get; set; }
  46. /// <summary>
  47. /// 所在地区
  48. /// </summary>
  49. public string Area { get; set; }
  50. /// <summary>
  51. /// 姓名
  52. /// </summary>
  53. public string Name { get; set; }
  54. /// <summary>
  55. /// 性别(0:未设置 1:男 2:女)
  56. /// </summary>
  57. public int Sex { get; set; }
  58. /// <summary>
  59. /// 联系电话
  60. /// </summary>
  61. public string Tel { get; set; }
  62. /// <summary>
  63. /// 邮箱号
  64. /// </summary>
  65. public string Email { get; set; }
  66. /// <summary>
  67. /// 微信号
  68. /// </summary>
  69. public string WechatNo { get; set; }
  70. /// <summary>
  71. /// 其他社交账号
  72. /// </summary>
  73. public string OtherSocialAccounts { get; set; }
  74. /// <summary>
  75. /// 语种
  76. /// </summary>
  77. public string Language { get; set; }
  78. /// <summary>
  79. /// 费用
  80. /// </summary>
  81. public decimal Price { get; set; }
  82. /// <summary>
  83. /// 币种
  84. /// </summary>
  85. public int Currency { get; set; }
  86. }
  87. /// <summary>
  88. /// 请示范例 Tips View
  89. /// </summary>
  90. public class ReqReqSampleTipsView
  91. {
  92. public string TeamName { get; set; }
  93. public string Country { get; set; }
  94. public string Area { get; set; }
  95. public string Client { get; set; }
  96. public string ReqSample { get; set; }
  97. }
  98. }