GroupListDto.cs 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550
  1. using FluentValidation;
  2. using Newtonsoft.Json;
  3. using System;
  4. using System.Collections.Generic;
  5. using System.ComponentModel;
  6. using System.Linq;
  7. using System.Text;
  8. using System.Threading.Tasks;
  9. namespace OASystem.Domain.Dtos.Groups
  10. {
  11. /// <summary>
  12. /// 获取团组列表 请求实体类
  13. /// </summary>
  14. public class GroupListDto : DtoBase
  15. {
  16. }
  17. /// <summary>
  18. /// 获取团组列表 Page 请求实体类
  19. /// </summary>
  20. public class GroupPageListDto : UserPageFuncDtoBase
  21. {
  22. public int PageIndex { get; set; } = 1;
  23. public int PageSize { get; set; } = 10;
  24. /// <summary>
  25. /// 是否操作完成
  26. /// -1 全部 0否 1是
  27. /// </summary>
  28. public int IsSure { get; set; }
  29. /// <summary>
  30. /// 搜索条件
  31. /// 团组类型/团队名称/客户名称/客户单位/接团操作人
  32. /// </summary>
  33. public string? SearchCriteria { get; set; }
  34. }
  35. /// <summary>
  36. /// 获取团组singe Share 请求实体类
  37. /// </summary>
  38. public class ShareGroupInfoDto : PortDtoBase
  39. {
  40. /// <summary>
  41. /// 团组Id
  42. /// </summary>
  43. public int Id { get; set; }
  44. }
  45. /// <summary>
  46. /// 获取团组singe 请求实体类
  47. /// </summary>
  48. public class GroupInfoDto : DtoBase
  49. {
  50. /// <summary>
  51. /// 团组Id
  52. /// </summary>
  53. public int Id { get; set; }
  54. }
  55. /// <summary>
  56. /// 团组信息 操作
  57. /// 请求dto
  58. /// </summary>
  59. public class GroupOperationDto : DtoBase
  60. {
  61. /// <summary>
  62. /// 操作状态
  63. /// 1 添加
  64. /// 2 修改
  65. /// 3 删除
  66. /// </summary>
  67. public int Status { get; set; }
  68. /// <summary>
  69. /// 团组Id
  70. /// </summary>
  71. public int Id { get; set; }
  72. /// <summary>
  73. /// 用户Id
  74. /// </summary>
  75. public int UserId { get; set; }
  76. /// <summary>
  77. /// 销售报价号
  78. /// </summary>
  79. public string SalesQuoteNo { get; set; }
  80. ///// <summary>
  81. ///// 团组号
  82. ///// </summary>
  83. //public string TeamNo { get; set; }
  84. /// <summary>
  85. /// 团组操作人
  86. /// </summary>
  87. public int JietuanOperator { get; set; }
  88. /// <summary>
  89. /// 客户级别
  90. /// setData Id
  91. /// </summary>
  92. public int TeamLevSId { get; set; }
  93. /// <summary>
  94. /// 团组类型
  95. /// setData Id
  96. /// </summary>
  97. public int TeamDid { get; set; }
  98. /// <summary>
  99. /// 团组名称
  100. /// </summary>
  101. public string TeamName { get; set; }
  102. /// <summary>
  103. /// 客户名称
  104. /// </summary>
  105. public string ClientName { get; set; }
  106. /// <summary>
  107. /// 客户单位
  108. /// </summary>
  109. public string ClientUnit { get; set; }
  110. /// <summary>
  111. /// 出访国家
  112. /// 多个国家 | 隔开 eg:韩国|日本
  113. /// </summary>
  114. public string VisitCountry { get; set; }
  115. /// <summary>
  116. /// 出访时间
  117. /// </summary>
  118. public string VisitDate { get; set; }
  119. /// <summary>
  120. /// 出访天数
  121. /// </summary>
  122. public int VisitDays { get; set; }
  123. /// <summary>
  124. /// 出访人数
  125. /// </summary>
  126. public int VisitPNumber { get; set; }
  127. /// <summary>
  128. /// 合同时间
  129. /// </summary>
  130. public string TontractTime { get; set; }
  131. /// <summary>
  132. /// 是否用于投标
  133. /// 0 是 1 否
  134. /// </summary>
  135. public int IsBid { get; set; }
  136. /// <summary>
  137. /// 预付期限
  138. /// </summary>
  139. public int PayDay { get; set; }
  140. /// <summary>
  141. /// 支付款项(预付)
  142. /// </summary>
  143. public decimal PaymentMoney { get; set; }
  144. /// <summary>
  145. /// 出访目的
  146. /// </summary>
  147. public string VisitPurpose { get; set; }
  148. /// <summary>
  149. /// 特殊需求
  150. /// </summary>
  151. public string SpecialNeeds { get; set; }
  152. /// <summary>
  153. /// 其他需求
  154. /// </summary>
  155. public string OtherNeeds { get; set; }
  156. /// <summary>
  157. /// 出国任务审批部门名称
  158. /// </summary>
  159. public string CGRWSPBMMC { get; set; }
  160. /// <summary>
  161. /// 出国任务审批文号
  162. /// </summary>
  163. public string CGRWSPWH { get; set; }
  164. /// <summary>
  165. /// 政治审查部门名称
  166. /// </summary>
  167. public string ZZSCBMMC { get; set; }
  168. /// <summary>
  169. /// 政治审查部门审批文号
  170. /// </summary>
  171. public string ZZSCSPWH { get; set; }
  172. /// <summary>
  173. /// 手机号
  174. /// </summary>
  175. public string TellPhone { get; set; }
  176. /// <summary>
  177. /// 微信号
  178. /// </summary>
  179. public string WeChatNo { get; set; }
  180. /// <summary>
  181. /// 备注
  182. /// </summary>
  183. public string Remark { get; set; }
  184. /// <summary>
  185. /// OP提成等级
  186. /// </summary>
  187. public int OpRoyaltyLv { get; set; }
  188. /// <summary>
  189. /// 等级说明
  190. /// </summary>
  191. public string opRoyaltyRemark { get; set; }
  192. /// <summary>
  193. /// 公务需求
  194. /// </summary>
  195. public string Officialneeds { get; set; }
  196. }
  197. /// <summary>
  198. /// 团组信息删除
  199. /// </summary>
  200. public class GroupDelDto : DtoBase
  201. {
  202. /// <summary>
  203. /// 团组Id
  204. /// </summary>
  205. public int Id { get; set; }
  206. /// <summary>
  207. /// 用户Id
  208. /// </summary>
  209. public int UserId { get; set; }
  210. }
  211. /// <summary>
  212. /// 团组名称
  213. /// </summary>
  214. public class GroupNameDto : PortDtoBase
  215. {
  216. }
  217. public class GroupNameScreenDto : DtoBase
  218. {
  219. public string groupName { get; set; } = "";
  220. public int userId { get; set; } = -1;
  221. }
  222. #region GroupNameScreenDto 验证
  223. public class GroupNameScreenDtoFoaValidator : AbstractValidator<GroupNameScreenDto>
  224. {
  225. public GroupNameScreenDtoFoaValidator() {
  226. RuleFor(it => it.PortType)
  227. .NotNull()
  228. .NotEmpty()
  229. .InclusiveBetween(1, 3)
  230. .WithMessage(MsgTips.Port);
  231. }
  232. }
  233. #endregion
  234. /// <summary>
  235. ///
  236. /// </summary>
  237. public class GroupListByCTableAndUserIdDto : DtoBase
  238. {
  239. /// <summary>
  240. /// 业务类型Id
  241. /// 酒店预定,机票预定,等等
  242. /// 76 酒店预订 77 行程 79 车/导游地接
  243. /// 80 签证 81 邀请/公务活动 82 团组客户保险
  244. /// 85 机票预订 98 其他款项 751 酒店早餐
  245. /// </summary>
  246. public int CTable { get; set; }
  247. /// <summary>
  248. /// 用户Id
  249. /// </summary>
  250. public int UserId { get; set; }
  251. public string TeamName { get; set; } = "";
  252. }
  253. /// <summary>
  254. /// 确认出团dto
  255. /// </summary>
  256. public class ConfirmationGroupDto : PortDtoBase
  257. {
  258. /// <summary>
  259. /// 团组Id
  260. /// </summary>
  261. public int GroupId { get; set; }
  262. /// <summary>
  263. /// 团组信息操作人
  264. /// </summary>
  265. public int GroupsOperator { get; set; }
  266. }
  267. /// <summary>
  268. /// 根据团组ID获取签证人员请
  269. /// 求实体类
  270. /// </summary>
  271. public class ClientByGroupIdDto : DtoBase
  272. {
  273. /// <summary>
  274. /// 团组Id
  275. /// </summary>
  276. public int GroupId { get; set; }
  277. }
  278. public class GroupListByWhere : DtoBase
  279. {
  280. /// <summary>
  281. /// 用户Id
  282. /// </summary>
  283. public int UserId { get; set; }
  284. /// <summary>
  285. /// 页面Id
  286. /// </summary>
  287. public int PageId { get; set; }
  288. /// <summary>
  289. /// 团组类型id
  290. /// </summary>
  291. public int TeamDid { get; set; }
  292. /// <summary>
  293. /// 团组状态
  294. /// </summary>
  295. public int IsSure { get; set; }
  296. /// <summary>
  297. /// 团组名称
  298. /// </summary>
  299. public string TeamName { get; set; }
  300. /// <summary>
  301. /// 客户名称
  302. /// </summary>
  303. public string ClientName { get; set; }
  304. /// <summary>
  305. /// 客户单位
  306. /// </summary>
  307. public string ClientUnit { get; set; }
  308. /// <summary>
  309. /// 出访时间
  310. /// </summary>
  311. public string visitDataTime { get; set; }
  312. }
  313. public class GroupProcessOperationDto : PortDtoBase
  314. {
  315. /// <summary>
  316. /// 操作状态
  317. /// 1 添加
  318. /// 2 修改
  319. /// 3 删除
  320. /// </summary>
  321. public int Status { get; set; }
  322. /// <summary>
  323. /// 团组Id
  324. /// </summary>
  325. public int Id { get; set; }
  326. /// <summary>
  327. /// 用户Id
  328. /// </summary>
  329. public int UserId { get; set; }
  330. /// <summary>
  331. /// 销售报价号
  332. /// </summary>
  333. public string SalesQuoteNo { get; set; }
  334. ///// <summary>
  335. ///// 团组号
  336. ///// </summary>
  337. //public string TeamNo { get; set; }
  338. /// <summary>
  339. /// 团组操作人
  340. /// </summary>
  341. public int JietuanOperator { get; set; }
  342. /// <summary>
  343. /// 客户级别
  344. /// setData Id
  345. /// </summary>
  346. public int TeamLevSId { get; set; }
  347. /// <summary>
  348. /// 团组类型
  349. /// setData Id
  350. /// </summary>
  351. public int TeamDid { get; set; }
  352. /// <summary>
  353. /// 团组名称
  354. /// </summary>
  355. public string TeamName { get; set; }
  356. /// <summary>
  357. /// 客户名称
  358. /// </summary>
  359. public string ClientName { get; set; }
  360. /// <summary>
  361. /// 客户单位
  362. /// </summary>
  363. public string ClientUnit { get; set; }
  364. /// <summary>
  365. /// 出访国家
  366. /// 多个国家 | 隔开 eg:韩国|日本
  367. /// </summary>
  368. public string VisitCountry { get; set; }
  369. /// <summary>
  370. /// 出访时间
  371. /// </summary>
  372. public string VisitDate { get; set; }
  373. /// <summary>
  374. /// 出访天数
  375. /// </summary>
  376. public int VisitDays { get; set; }
  377. /// <summary>
  378. /// 出访人数
  379. /// </summary>
  380. public int VisitPNumber { get; set; }
  381. /// <summary>
  382. /// 合同时间
  383. /// </summary>
  384. public string TontractTime { get; set; }
  385. /// <summary>
  386. /// 预付期限
  387. /// </summary>
  388. public int PayDay { get; set; }
  389. /// <summary>
  390. /// 支付款项(预付)
  391. /// </summary>
  392. public decimal PaymentMoney { get; set; }
  393. /// <summary>
  394. /// 出访目的
  395. /// </summary>
  396. public string VisitPurpose { get; set; }
  397. /// <summary>
  398. /// 特殊需求
  399. /// </summary>
  400. public string SpecialNeeds { get; set; }
  401. /// <summary>
  402. /// 其他需求
  403. /// </summary>
  404. public string OtherNeeds { get; set; }
  405. /// <summary>
  406. /// 出国任务审批部门名称
  407. /// </summary>
  408. public string CGRWSPBMMC { get; set; }
  409. /// <summary>
  410. /// 出国任务审批文号
  411. /// </summary>
  412. public string CGRWSPWH { get; set; }
  413. /// <summary>
  414. /// 政治审查部门名称
  415. /// </summary>
  416. public string ZZSCBMMC { get; set; }
  417. /// <summary>
  418. /// 政治审查部门审批文号
  419. /// </summary>
  420. public string ZZSCSPWH { get; set; }
  421. /// <summary>
  422. /// 手机号
  423. /// </summary>
  424. public string TellPhone { get; set; }
  425. /// <summary>
  426. /// 微信号
  427. /// </summary>
  428. public string WeChatNo { get; set; }
  429. /// <summary>
  430. /// 备注
  431. /// </summary>
  432. public string Remark { get; set; }
  433. /// <summary>
  434. /// OP提成等级
  435. /// </summary>
  436. public int OpRoyaltyLv { get; set; }
  437. /// <summary>
  438. /// 等级说明
  439. /// </summary>
  440. public string opRoyaltyRemark { get; set; }
  441. /// <summary>
  442. /// 公务需求
  443. /// </summary>
  444. public string Officialneeds { get; set; }
  445. /// <summary>
  446. /// 接团客户名单
  447. /// AddMultiple Infos
  448. /// </summary>
  449. public List<TourClientListProcessInfo> TourClientListInfos { get; set; }
  450. }
  451. }