InvitationOfficialActivityDataView.cs 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161
  1. using OASystem.Domain.Entities;
  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.Text.Encodings.Web;
  8. using System.Text.Json;
  9. using System.Text.Json.Serialization;
  10. using System.Text.Unicode;
  11. using System.Threading.Tasks;
  12. namespace OASystem.Domain.ViewModels.Resource
  13. {
  14. public class InvitationOfficialActivityDataView : Res_InvitationOfficialActivityData
  15. {
  16. public int Row_Number { get; set; }
  17. public string CreateUserName { get; set; }
  18. public string DelegationStr { get; set; }
  19. }
  20. public class IOAInfoView
  21. {
  22. public int Id { get; set; }
  23. // <summary>
  24. /// 邀请方国家
  25. /// </summary>
  26. public string Country { get; set; }
  27. /// <summary>
  28. /// 城市
  29. /// </summary>
  30. public string City { get; set; }
  31. /// <summary>
  32. /// 邀请方名称
  33. /// </summary>
  34. public string UnitName { get; set; }
  35. /// <summary>
  36. ///邀请方官网
  37. /// </summary>
  38. public string UnitWeb { get; set; }
  39. /// <summary>
  40. /// 涉及领域
  41. /// </summary>
  42. public string Field { get; set; }
  43. /// <summary>
  44. /// 邀请方地址
  45. /// </summary>
  46. public string Address { get; set; }
  47. /// <summary>
  48. /// 邀请方信息
  49. /// </summary>
  50. public string UnitInfo { get; set; }
  51. /// <summary>
  52. /// 联系人
  53. /// </summary>
  54. public string Contact { get; set; }
  55. /// <summary>
  56. /// 职务
  57. /// </summary>
  58. public string Job { get; set; }
  59. /// <summary>
  60. /// 联系电话
  61. /// </summary>
  62. public string Tel { get; set; }
  63. /// <summary>
  64. /// 电子邮箱
  65. /// </summary>
  66. public string Email { get; set; }
  67. /// <summary>
  68. /// 微信
  69. /// </summary>
  70. public string WeChat { get; set; }
  71. /// <summary>
  72. /// fb
  73. /// </summary>
  74. public string FaceBook { get; set; }
  75. /// <summary>
  76. /// ins
  77. /// </summary>
  78. public string Ins { get; set; }
  79. /// <summary>
  80. /// 团名
  81. /// </summary>
  82. public string Delegation { get; set; }
  83. /// <summary>
  84. /// 文件地址
  85. /// </summary>
  86. public string SndFileName { get; set; }
  87. /// <summary>
  88. /// 文件地址
  89. /// </summary>
  90. public string[] SndFileNameJsonStr
  91. {
  92. get
  93. {
  94. if (string.IsNullOrEmpty(SndFileName)) return new string[] { };
  95. var json = new List<string>();
  96. try
  97. {
  98. json = JsonSerializer.Deserialize<List<string>>(SndFileName);
  99. }
  100. catch (Exception)
  101. {
  102. json = new List<string>() { SndFileName };
  103. }
  104. return json.ToArray();
  105. }
  106. }
  107. /// <summary>
  108. /// 修改版文件地址
  109. /// </summary>
  110. public string[] SndFilePathItem
  111. {
  112. get
  113. {
  114. var urls = new List<string>();
  115. if (string.IsNullOrEmpty(SndFileName)) return urls.ToArray();
  116. var filePath = @$"http://132.232.92.186:24/Office/GrpFile/商邀相关文件/";
  117. try
  118. {
  119. var strs = JsonSerializer.Deserialize<List<string>>(SndFileName);
  120. foreach (var str in strs)
  121. {
  122. urls.Add(@$"{filePath}{str}");
  123. }
  124. }
  125. catch (Exception ex)
  126. {
  127. urls.Add(@$"{filePath}{SndFileName}");
  128. }
  129. return urls.ToArray();
  130. }
  131. }
  132. /// <summary>
  133. /// 传真号码
  134. /// </summary>
  135. public string Fax { get; set; }
  136. /// <summary>
  137. /// 其他信息
  138. /// </summary>
  139. public string OtherInfo { get; set; }
  140. /// <summary>
  141. /// 背景
  142. /// </summary>
  143. public string Background { get; set; }
  144. public string Remark { get; set; }
  145. }
  146. }