GroupListDto.cs 13 KB

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