InvitationOfficialActivityDataView.cs 4.7 KB

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