DelegationInfoView.cs 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605
  1. using Google.Protobuf;
  2. using Google.Protobuf.WellKnownTypes;
  3. using Microsoft.Extensions.Primitives;
  4. using Newtonsoft.Json;
  5. using OASystem.Domain.Dtos;
  6. using OASystem.Domain.Entities.Groups;
  7. using OASystem.Domain.ViewModels.QiYeWeChat;
  8. using System;
  9. using System.Collections.Generic;
  10. using System.ComponentModel;
  11. using System.Linq;
  12. using System.Text;
  13. using System.Text.Json.Serialization;
  14. using System.Threading.Tasks;
  15. using JsonConverter = System.Text.Json.Serialization.JsonConverter;
  16. namespace OASystem.Domain.ViewModels.Groups
  17. {
  18. /// <summary>
  19. /// 接团信息
  20. /// 返回视图
  21. /// </summary>
  22. public class DelegationInfoView : Grp_DelegationInfo { }
  23. /// <summary>
  24. /// 接团信息详情 共享 Web
  25. /// 返回视图
  26. /// </summary>
  27. public class Web_ShareGroupInfoView
  28. {
  29. /// <summary>
  30. /// 主键Id
  31. /// </summary>
  32. public int Id { get; set; }
  33. /// <summary>
  34. /// 团名
  35. /// </summary>
  36. public string? TeamName { get; set; }
  37. /// <summary>
  38. /// 团号
  39. /// </summary>
  40. public string? TourCode { get; set; }
  41. /// <summary>
  42. /// 客户名称
  43. /// </summary>
  44. public string? ClientName { get; set; }
  45. /// <summary>
  46. /// 出访国家
  47. /// </summary>
  48. public string? VisitCountry { get; set; }
  49. /// <summary>
  50. /// 出团开始日期
  51. /// </summary>
  52. public DateTime VisitStartDate { get; set; }
  53. /// <summary>
  54. /// 出团结束日期
  55. /// </summary>
  56. public DateTime VisitEndDate { get; set; }
  57. /// <summary>
  58. /// 出行天数
  59. /// </summary>
  60. public int VisitDays { get; set; }
  61. /// <summary>
  62. /// 出行人数
  63. /// </summary>
  64. public int VisitPNumber { get; set; }
  65. }
  66. /// <summary>
  67. /// 查询团组简略详情列表
  68. /// Page 根据Ctable And User 返回可操作的团 View
  69. /// </summary>
  70. public class GroupListByCTableAndUserIdView
  71. {
  72. public int Row_Number { get; set; }
  73. public int Id { get; set; }
  74. /// <summary>
  75. /// 团组名
  76. /// </summary>
  77. public string? TeamName { get; set; }
  78. /// <summary>
  79. /// 团组Code
  80. /// </summary>
  81. public string? TourCode { get; set; }
  82. /// <summary>
  83. /// 客户名称
  84. /// </summary>
  85. public string? ClientName { get; set; }
  86. /// <summary>
  87. /// 出访时间
  88. /// </summary>
  89. public string? VisitCountry { get; set; }
  90. /// <summary>
  91. /// 出访开始日期
  92. /// </summary>
  93. public string? VisitStartDate { get; set; }
  94. /// <summary>
  95. /// 出访结束日期
  96. /// </summary>
  97. public string? VisitEndDate { get; set; }
  98. /// <summary>
  99. /// 出访天数
  100. /// </summary>
  101. public int VisitDays { get; set; }
  102. /// <summary>
  103. /// 出访人数
  104. /// </summary>
  105. public int VisitPNumber { get; set; }
  106. }
  107. /// <summary>
  108. /// 接团信息详情 共享 Web
  109. /// 返回视图
  110. /// </summary>
  111. public class IOSOrAndroid_ShareGroupInfoView
  112. {
  113. /// <summary>
  114. /// 主键Id
  115. /// </summary>
  116. public int Id { get; set; }
  117. /// <summary>
  118. /// 团号
  119. /// </summary>
  120. public string? TourCode { get; set; }
  121. /// <summary>
  122. /// 客户名称
  123. /// </summary>
  124. public string? ClientName { get; set; }
  125. /// <summary>
  126. /// 出访国家
  127. /// </summary>
  128. public string? VisitCountry { get; set; }
  129. /// <summary>
  130. /// 出团开始日期
  131. /// </summary>
  132. public DateTime VisitStartDate { get; set; }
  133. /// <summary>
  134. /// 出团结束日期
  135. /// </summary>
  136. public DateTime VisitEndDate { get; set; }
  137. /// <summary>
  138. /// 出行天数
  139. /// </summary>
  140. public int VisitDays { get; set; }
  141. /// <summary>
  142. /// 出行人数
  143. /// </summary>
  144. public int VisitPNumber { get; set; }
  145. /// <summary>
  146. /// 团名
  147. /// </summary>
  148. public string? TeamName { get; set; }
  149. }
  150. /// <summary>
  151. /// 接团信息详情 共享
  152. /// 返回视图
  153. /// </summary>
  154. public class ShareGroupInfoIIView
  155. {
  156. /// <summary>
  157. /// 主键Id
  158. /// </summary>
  159. public int Id { get; set; }
  160. /// <summary>
  161. /// 团组名称
  162. /// </summary>
  163. public string? teamName { get; set; }
  164. /// <summary>
  165. /// 团号
  166. /// </summary>
  167. public string? TourCode { get; set; }
  168. /// <summary>
  169. /// 客户名称
  170. /// </summary>
  171. public string? ClientName { get; set; }
  172. /// <summary>
  173. /// 出访国家
  174. /// </summary>
  175. public string? VisitCountry { get; set; }
  176. /// <summary>
  177. /// 出团起止日期
  178. /// </summary>
  179. public string? VisitDate { get; set; }
  180. /// <summary>
  181. /// 出行天数
  182. /// </summary>
  183. public int VisitDays { get; set; }
  184. /// <summary>
  185. /// 出行人数
  186. /// </summary>
  187. public int VisitPNumber { get; set; }
  188. }
  189. /// <summary>
  190. /// 接团信息详情
  191. /// 返回视图
  192. /// </summary>
  193. public class DelegationInfoWebView
  194. {
  195. /// <summary>
  196. /// 主键Id
  197. /// </summary>
  198. public int Id { get; set; }
  199. /// <summary>
  200. /// 销售报价号
  201. /// </summary>
  202. public string? SalesQuoteNo { get; set; }
  203. /// <summary>
  204. /// 团号
  205. /// </summary>
  206. public string? TourCode { get; set; }
  207. /// <summary>
  208. /// 接团人ID
  209. /// </summary>
  210. public int JietuanOperator { get; set; }
  211. /// <summary>
  212. /// 团组等级
  213. /// </summary>
  214. public int TeamLevSId { get; set; }
  215. /// <summary>
  216. /// 团组类型
  217. /// </summary>
  218. public int TeamDid { get; set; }
  219. /// <summary>
  220. /// 团组名称
  221. /// </summary>
  222. public string? TeamName { get; set; }
  223. /// <summary>
  224. /// 客户名称
  225. /// </summary>
  226. public string? ClientName { get; set; }
  227. /// <summary>
  228. /// 客户所属公司
  229. /// </summary>
  230. public string? ClientUnit { get; set; }
  231. /// <summary>
  232. /// 出访国家
  233. /// </summary>
  234. public string? VisitCountry { get; set; }
  235. /// <summary>
  236. /// 出团日期
  237. /// </summary>
  238. public DateTime VisitDate { get; set; }
  239. /// <summary>
  240. /// 出行天数
  241. /// </summary>
  242. public int VisitDays { get; set; }
  243. /// <summary>
  244. /// 出行人数
  245. /// </summary>
  246. public int VisitPNumber { get; set; }
  247. /// <summary>
  248. /// 合同时间
  249. /// </summary>
  250. public DateTime? TontractTime { get; set; }
  251. /// <summary>
  252. /// 是否用于投标
  253. /// 0 是 1 否
  254. /// </summary>
  255. public int IsBid { get; set; }
  256. /// <summary>
  257. /// 预付期限
  258. /// </summary>
  259. public int PayDay { get; set; }
  260. /// <summary>
  261. /// 预付金额
  262. /// </summary>
  263. public decimal PaymentMoney { get; set; }
  264. /// <summary>
  265. /// 出访目的
  266. /// </summary>
  267. public string? VisitPurpose { get; set; }
  268. /// <summary>
  269. /// 特俗需求
  270. /// </summary>
  271. public string? SpecialNeeds { get; set; }
  272. /// <summary>
  273. /// 其他需求
  274. /// </summary>
  275. public string? OtherNeeds { get; set; }
  276. /// <summary>
  277. /// 出国任务审批部门名称
  278. /// </summary>
  279. public string? CGRWSPBMMC { get; set; }
  280. /// <summary>
  281. /// 出国任务审批文号
  282. /// </summary>
  283. public string? CGRWSPWH { get; set; }
  284. /// <summary>
  285. /// 政治审查部门名称
  286. /// </summary>
  287. public string? ZZSCBMMC { get; set; }
  288. /// <summary>
  289. /// 政治审查部门审批文号
  290. /// </summary>
  291. public string? ZZSCSPWH { get; set; }
  292. /// <summary>
  293. /// 备注
  294. /// </summary>
  295. public string? Remark { get; set; }
  296. /// <summary>
  297. /// 手机号
  298. /// </summary>
  299. public string? TellPhone { get; set; }
  300. /// <summary>
  301. /// 微信号
  302. /// </summary>
  303. public string WeChatNo { get; set; }
  304. /// <summary>
  305. /// op提成等级
  306. /// </summary>
  307. public int OpRoyaltyLv { get; set; }
  308. /// <summary>
  309. /// 提成等级说明
  310. /// </summary>
  311. public string? OpRoyaltyRemark { get; set; }
  312. /// <summary>
  313. /// 公务需求
  314. /// </summary>
  315. public string Officialneeds { get; set; }
  316. }
  317. /// <summary>
  318. /// 接团信息列表
  319. /// 返回视图
  320. /// </summary>
  321. public class DelegationListView
  322. {
  323. /// <summary>
  324. /// 主键Id
  325. /// 团组Id
  326. /// </summary>
  327. public int Id { get; set; }
  328. /// <summary>
  329. /// 销售报价号
  330. /// </summary>
  331. public string? SalesQuoteNo { get; set; }
  332. /// <summary>
  333. /// 客户所属部门
  334. /// </summary>
  335. public string Department { get; set; }
  336. /// <summary>
  337. /// 团号
  338. /// </summary>
  339. public string? TourCode { get; set; }
  340. /// <summary>
  341. /// 接团操作人Id
  342. /// </summary>
  343. public int JietuanOperatorId { get; set; }
  344. /// <summary>
  345. /// 接团操作人
  346. /// </summary>
  347. public string? JietuanOperator { get; set; }
  348. /// <summary>
  349. /// 团组等级Id
  350. /// </summary>
  351. public int TeamLevId { get; set; }
  352. /// <summary>
  353. /// 团组等级
  354. /// </summary>
  355. public string? TeamLev { get; set; }
  356. /// <summary>
  357. /// 团组名称
  358. /// </summary>
  359. public string TeamName { get; set; }
  360. /// <summary>
  361. /// 客户名称
  362. /// </summary>
  363. public string? ClientName { get; set; }
  364. /// <summary>
  365. /// 客户所属公司
  366. /// </summary>
  367. public string? ClientUnit { get; set; }
  368. /// <summary>
  369. /// 团组类型Id
  370. /// </summary>
  371. public int TeamTypeId { get; set; }
  372. /// <summary>
  373. /// 团组类型
  374. /// </summary>
  375. public string? TeamType { get; set; }
  376. /// <summary>
  377. /// 出团日期
  378. /// </summary>
  379. public DateTime VisitDate { get; set; }
  380. public string VisitDateStr
  381. {
  382. get
  383. {
  384. return VisitDate.ToString("yyyy-MM-dd");
  385. }
  386. }
  387. /// <summary>
  388. /// 出行天数
  389. /// </summary>
  390. public int VisitDays { get; set; }
  391. /// <summary>
  392. /// 出行人数
  393. /// </summary>
  394. public int VisitPNumber { get; set; }
  395. /// <summary>
  396. /// 是否用于投标
  397. /// 0 否 1 是
  398. /// </summary>
  399. public int IsBid { get; set; }
  400. /// <summary>
  401. /// 是否操作完成
  402. /// 0否1是
  403. /// </summary>
  404. public int IsSure { get; set; }
  405. /// <summary>
  406. /// 流程管控Id
  407. /// </summary>
  408. public int GrpScheduleId { get; set; } = 0;
  409. public DateTime CreateTime { get; set; }
  410. public string GroupFirst { get; set; }
  411. public string CreateUserName { get; set; }
  412. }
  413. /// <summary>
  414. /// 团组信息 Page List
  415. /// </summary>
  416. public class DelegationPageListView : DelegationListView
  417. {
  418. /// <summary>
  419. /// 行号
  420. /// </summary>
  421. public int RowNumber { get; set; }
  422. }
  423. /// <summary>
  424. /// 团组信息 Page List
  425. /// </summary>
  426. public class DelegationPageCountView
  427. {
  428. /// <summary>
  429. /// 行号
  430. /// </summary>
  431. public int Count { get; set; }
  432. }
  433. /// <summary>
  434. /// 团组编号
  435. /// </summary>
  436. public class TeamCodeView
  437. {
  438. public string TourCode { get; set; }
  439. }
  440. /// <summary>
  441. /// 销售编号
  442. /// </summary>
  443. public class SalesQuoteNoView
  444. {
  445. public string SalesQuoteNo { get; set; }
  446. }
  447. /// <summary>
  448. /// 团组名称
  449. /// 返回视图
  450. /// </summary>
  451. public class GroupNameView
  452. {
  453. /// <summary>
  454. /// 团组Id
  455. /// </summary>
  456. public int Id { get; set; }
  457. /// <summary>
  458. /// 团组名称
  459. /// </summary>
  460. public string GroupName { get; set; }
  461. }
  462. public class GroupNamePageView : GroupNameView
  463. {
  464. public int RowNumber { get; set; }
  465. }
  466. /// <summary>
  467. /// 根据团组ID 查询客户
  468. /// </summary>
  469. public class CrmByGroupIdView
  470. {
  471. /// <summary>
  472. /// 团组Id
  473. /// </summary>
  474. public int GrpId { get; set; }
  475. /// <summary>
  476. /// 客户名称
  477. /// </summary>
  478. public string clientName { get; set; }
  479. /// <summary>
  480. /// 客户手机号
  481. /// </summary>
  482. public string Tel { get; set; }
  483. /// <summary>
  484. /// 客户身份证号码
  485. /// </summary>
  486. public string CerdNo { get; set; }
  487. }
  488. public class MateOpGroupPageListView : DelegationListView
  489. {
  490. public int Row_Number { get; set; }
  491. public string VisitCountry { get; set; }
  492. public string RouteCity { get; set; }
  493. }
  494. }