InvitationOfficialActivitiesByIdView.cs 8.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321
  1. using EyeSoft.Collections.Generic;
  2. using Newtonsoft.Json;
  3. using OASystem.Domain.Entities.Groups;
  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.Groups
  10. {
  11. public class InvitationOfficialActivityView
  12. {
  13. /// <summary>
  14. /// 团组外键编号
  15. /// </summary>
  16. public int DiId { get; set; }
  17. /// <summary>
  18. /// 邀请方地区
  19. /// </summary>
  20. public string InviterArea { get; set; }
  21. /// <summary>
  22. /// 邀请方
  23. /// </summary>
  24. public string Inviter { get; set; }
  25. /// <summary>
  26. /// 邀请时间
  27. /// </summary>
  28. public DateTime InviteTime { get; set; }
  29. /// <summary>
  30. /// 附件
  31. /// </summary>
  32. public string Attachment { get; set; }
  33. /// <summary>
  34. /// 邀请费用
  35. /// </summary>
  36. public decimal InviteCost { get; set; }
  37. /// <summary>
  38. /// 邀请费用币种
  39. /// </summary>
  40. public int InviteCurrency { get; set; }
  41. /// <summary>
  42. /// 快递费用
  43. /// </summary>
  44. public decimal SendCost { get; set; }
  45. /// <summary>
  46. /// 快递费用币种
  47. /// </summary>
  48. public int SendCurrency { get; set; }
  49. /// <summary>
  50. /// 公务活动费
  51. /// </summary>
  52. public decimal EventsCost { get; set; }
  53. /// <summary>
  54. /// 公务活动费币种
  55. /// </summary>
  56. public int EventsCurrency { get; set; }
  57. /// <summary>
  58. /// 公务翻译费
  59. /// </summary>
  60. public decimal TranslateCost { get; set; }
  61. /// <summary>
  62. /// 公务翻译费币种
  63. /// </summary>
  64. public int TranslateCurrency { get; set; }
  65. /// <summary>
  66. /// 公务标识
  67. /// </summary>
  68. public int IsGoOfficaiaBussiness { get; set; }
  69. }
  70. public class Grp_InvitationOfficialActivitiesView : Grp_InvitationOfficialActivities
  71. {
  72. /// <summary>
  73. /// 附件
  74. /// </summary>
  75. public string[] Attachments
  76. {
  77. get
  78. {
  79. var array = new string[] { };
  80. if (!string.IsNullOrEmpty(Attachment))
  81. {
  82. try
  83. {
  84. array = JsonConvert.DeserializeObject<string[]>(Attachment);
  85. }
  86. catch (Exception)
  87. {
  88. array = new List<string>() { Attachment }.ToArray();
  89. }
  90. }
  91. return array;
  92. }
  93. }
  94. }
  95. public class InvitationOfficialActivitiesByIdView
  96. {
  97. //------------------ 消费方式及时间 --------------------------
  98. /// <summary>
  99. /// 消费方式
  100. /// </summary>
  101. public string ConsumptionPatterns { get; set; }
  102. /// <summary>
  103. /// 消费日期
  104. /// </summary>
  105. public string ConsumptionDate { get; set; }
  106. //---------------------payType==刷卡--------------------------
  107. /// <summary>
  108. /// 卡类型
  109. /// </summary>
  110. public int CTDId { get; set; }
  111. /// <summary>
  112. /// 银行卡号
  113. /// </summary>
  114. public string BankNo { get; set; }
  115. /// <summary>
  116. /// 持卡人姓名
  117. /// </summary>
  118. public string CardholderName { get; set; }
  119. //---------------------payType==转账Or现金--------------------------
  120. /// <summary>
  121. /// 公司银行卡号
  122. /// </summary>
  123. public string CompanyBankNo { get; set; }
  124. /// <summary>
  125. /// 对方开户行
  126. /// </summary>
  127. public string OtherBankName { get; set; }
  128. /// <summary>
  129. /// 对方银行账号
  130. /// </summary>
  131. public string OtherSideNo { get; set; }
  132. /// <summary>
  133. /// 对方姓名
  134. /// </summary>
  135. public string OtherSideName { get; set; }
  136. /// <summary>
  137. /// 付款金额
  138. /// </summary>
  139. public decimal PayMoney { get; set; }
  140. /// <summary>
  141. /// 付款币种Id
  142. /// </summary>
  143. public int PaymentCurrency { get; set; }
  144. /// <summary>
  145. /// 支付方式
  146. /// </summary>
  147. public int PayDId { get; set; }
  148. /// <summary>
  149. /// 费用表示
  150. /// </summary>
  151. public int OrbitalPrivateTransfer { get; set; }
  152. /// <summary>
  153. /// 收款方
  154. /// </summary>
  155. public string Payee { get; set; }
  156. //---------------------商邀参数--------------------------
  157. /// <summary>
  158. /// 主键Id
  159. /// </summary>
  160. public int Id { get; set; }
  161. /// <summary>
  162. /// 团组外键编号
  163. /// </summary>
  164. public int DiId { get; set; }
  165. /// <summary>
  166. /// 邀请方地区
  167. /// </summary>
  168. public string InviterArea { get; set; }
  169. /// <summary>
  170. /// 邀请方
  171. /// </summary>
  172. public string Inviter { get; set; }
  173. /// <summary>
  174. /// 邀请时间
  175. /// </summary>
  176. public DateTime InviteTime { get; set; }
  177. /// <summary>
  178. /// 附件
  179. /// </summary>
  180. public string Attachment { get; set; }
  181. /// <summary>
  182. /// 附件
  183. /// </summary>
  184. public string[] Attachments
  185. {
  186. get
  187. {
  188. var array = new string[] { };
  189. if (!string.IsNullOrEmpty(Attachment))
  190. {
  191. try
  192. {
  193. array = JsonConvert.DeserializeObject<string[]>(Attachment);
  194. }
  195. catch (Exception)
  196. {
  197. array = new List<string>() { Attachment }.ToArray();
  198. }
  199. }
  200. return array;
  201. }
  202. }
  203. /// <summary>
  204. /// 邀请费用
  205. /// </summary>
  206. public decimal InviteCost { get; set; }
  207. /// <summary>
  208. /// 邀请费用币种
  209. /// </summary>
  210. public int InviteCurrency { get; set; }
  211. /// <summary>
  212. /// 快递费用
  213. /// </summary>
  214. public decimal SendCost { get; set; }
  215. /// <summary>
  216. /// 快递费用币种
  217. /// </summary>
  218. public int SendCurrency { get; set; }
  219. /// <summary>
  220. /// 公务活动费
  221. /// </summary>
  222. public decimal EventsCost { get; set; }
  223. /// <summary>
  224. /// 公务活动费币种
  225. /// </summary>
  226. public int EventsCurrency { get; set; }
  227. /// <summary>
  228. /// 公务翻译费
  229. /// </summary>
  230. public decimal TranslateCost { get; set; }
  231. /// <summary>
  232. /// 公务翻译费币种
  233. /// </summary>
  234. public int TranslateCurrency { get; set; }
  235. /// <summary>
  236. /// 公务标识(是否到场)
  237. /// </summary>
  238. public int IsGoOfficaiaBussiness { get; set; }
  239. /// <summary>
  240. /// 创建者Id
  241. /// </summary>
  242. public int CreateUserId { get; set; }
  243. /// <summary>
  244. /// 备注
  245. /// </summary>
  246. public string Remark { get; set; }
  247. //-----------------------邀请方资料----------
  248. /// 邀请方地址
  249. public string Address { get; set; }
  250. /// <summary>
  251. /// 联系人
  252. /// </summary>
  253. public string Contact { get; set; }
  254. /// <summary>
  255. /// 职务
  256. /// </summary>
  257. public string Job { get; set; }
  258. /// <summary>
  259. /// 联系电话
  260. /// </summary>
  261. public string Tel { get; set; }
  262. /// <summary>
  263. /// 电子邮箱
  264. /// </summary>
  265. public string Email { get; set; }
  266. /// <summary>
  267. /// 传真号码
  268. /// </summary>
  269. public string Fax { get; set; }
  270. /// <summary>
  271. /// 其他信息
  272. /// </summary>
  273. public string OtherInformation { get; set; }
  274. }
  275. }