CountryFeeCostDto.cs 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Text.RegularExpressions;
  6. using System.Threading.Tasks;
  7. namespace OASystem.Domain.Dtos.Resource
  8. {
  9. public class OperationCountryFeeCostDto
  10. {
  11. /// <summary>
  12. /// 操作状态
  13. /// 1 添加
  14. /// 2 修改
  15. /// </summary>
  16. public int Status { get; set; }
  17. /// <summary>
  18. /// 编号
  19. /// </summary>
  20. public int Id { get; set; }
  21. /// <summary>
  22. /// 洲名
  23. /// </summary>
  24. public string VisaContinent { get; set; }
  25. /// <summary>
  26. /// 国家名
  27. /// </summary>
  28. public string VisaCountry { get; set; }
  29. /// <summary>
  30. /// 是否免签 0:是 1:否
  31. /// </summary>
  32. public int IsVisaExemption { get; set; }
  33. /// <summary>
  34. /// 是否落地签 0:是 1:否
  35. /// </summary>
  36. public int IsVisaOnArrival { get; set; }
  37. /// <summary>
  38. /// 是否电子签 0:是 1:否
  39. /// </summary>
  40. public int IsElectronicSignature { get; set; }
  41. private decimal visaPrice;
  42. /// <summary>
  43. /// 签证费用
  44. /// </summary>
  45. public decimal VisaPrice
  46. {
  47. get { return visaPrice; }
  48. set
  49. {
  50. Regex reg = new Regex(@"[^0-9]{1,17}([.]{1}[^0-9]{1,4})?$");
  51. if (!reg.IsMatch(value.ToString()))
  52. {
  53. visaPrice = Convert.ToDecimal(value);
  54. }
  55. else
  56. {
  57. visaPrice = 0;
  58. }
  59. }
  60. }
  61. /// <summary>
  62. /// 签证费用描述
  63. /// </summary>
  64. public string VisaPriceDesc { get; set; }
  65. /// <summary>
  66. /// 签证类型 大公务/小公务/大小公务同时免签
  67. /// </summary>
  68. public string VisaType { get; set; }
  69. /// <summary>
  70. /// 大公务费用
  71. /// 新增参数
  72. /// 雷怡 2024-05-07 15:45:09
  73. /// </summary>
  74. public decimal GrandBusinessAgencyFee { get; set; }
  75. /// <summary>
  76. /// 小公务费用
  77. /// 新增参数
  78. /// 雷怡 2024-05-07 15:45:09
  79. /// </summary>
  80. public decimal PettyBusinessAgencyFee { get; set; }
  81. private string visaTime;
  82. /// <summary>
  83. /// 一般签证时间
  84. /// </summary>
  85. public string VisaTime
  86. {
  87. get { return visaTime; }
  88. set
  89. {
  90. int s = -1;
  91. if (int.TryParse(value,out s))
  92. {
  93. visaTime = value;
  94. }
  95. else
  96. {
  97. ugentTime = "1";
  98. }
  99. }
  100. }
  101. /// <summary>
  102. /// 签证是否加急 0:加急 1: 不加急
  103. /// </summary>
  104. public int IsUrgent { get; set; }
  105. private string ugentTime;
  106. /// <summary>
  107. /// 加急时间
  108. /// </summary>
  109. public string UrgentTime
  110. {
  111. get { return ugentTime; }
  112. set
  113. {
  114. int s = -1;
  115. if (int.TryParse(value, out s))
  116. {
  117. ugentTime = value;
  118. }
  119. else
  120. {
  121. ugentTime = "1";
  122. }
  123. }
  124. }
  125. private decimal urgentPrice;
  126. /// <summary>
  127. /// 加急费用
  128. /// </summary>
  129. public decimal UrgentPrice
  130. {
  131. get { return urgentPrice; }
  132. set
  133. {
  134. Regex reg = new Regex(@"[^0-9]{1,17}([.]{1}[^0-9]{1,4})?$");
  135. if (!reg.IsMatch(value.ToString()))
  136. {
  137. urgentPrice = Convert.ToDecimal(value);
  138. }
  139. else
  140. {
  141. urgentPrice = 0;
  142. }
  143. }
  144. }
  145. /// <summary>
  146. /// 加急费用描述
  147. /// </summary>
  148. public string UrgentPriceDesc { get; set; }
  149. /// <summary>
  150. /// 签证地址
  151. /// </summary>
  152. public string VisaAddress { get; set; }
  153. /// <summary>
  154. /// 创建者Id
  155. /// </summary>
  156. public int CreateUserId { get; set; }
  157. /// <summary>
  158. /// 备注
  159. /// </summary>
  160. public string Remark { get; set; }
  161. }
  162. public class DelCountryFeeCostDto
  163. {
  164. public int Id { get; set; }
  165. public int DeleteUserId { get; set; }
  166. }
  167. }