|
@@ -1,5 +1,6 @@
|
|
|
using OASystem.Domain.Entities.Resource;
|
|
|
using System;
|
|
|
+using System.Text.Json.Serialization;
|
|
|
|
|
|
namespace OASystem.Domain.ViewModels.Resource
|
|
|
{
|
|
@@ -190,7 +191,54 @@ namespace OASystem.Domain.ViewModels.Resource
|
|
|
/// <summary>
|
|
|
/// 省份签证费用集合
|
|
|
/// </summary>
|
|
|
+ [JsonIgnore]
|
|
|
public List<VisaFeeStandardDetails> VisaFees { get; set; }
|
|
|
+
|
|
|
+ /// <summary>
|
|
|
+ /// 四川签证费用描述
|
|
|
+ /// </summary>
|
|
|
+ public string SiChuanVisaFeeLabel
|
|
|
+ {
|
|
|
+ get
|
|
|
+ {
|
|
|
+ return GetVisaFeeLabel(122);
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ /// <summary>
|
|
|
+ /// 重庆签证费用描述
|
|
|
+ /// </summary>
|
|
|
+ public string ChongQingVisaFeeLabel
|
|
|
+ {
|
|
|
+ get
|
|
|
+ {
|
|
|
+ return GetVisaFeeLabel(103);
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ /// <summary>
|
|
|
+ /// 贵州签证费用描述
|
|
|
+ /// </summary>
|
|
|
+ public string GuiZhouVisaFeeLabel
|
|
|
+ {
|
|
|
+ get
|
|
|
+ {
|
|
|
+ return GetVisaFeeLabel(108);
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ /// <summary>
|
|
|
+ /// 云南签证费用描述
|
|
|
+ /// </summary>
|
|
|
+ public string YunNanVisaFeeLabel
|
|
|
+ {
|
|
|
+ get
|
|
|
+ {
|
|
|
+ return GetVisaFeeLabel(132);
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
/// <summary>
|
|
|
/// 最后更新人
|
|
|
/// </summary>
|
|
@@ -211,5 +259,60 @@ namespace OASystem.Domain.ViewModels.Resource
|
|
|
return (DateTime.Now - LastUpdateTime).Days;
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+ /// <summary>
|
|
|
+ /// 获取城市签证描述
|
|
|
+ /// </summary>
|
|
|
+ /// <param name="provinceId"></param>
|
|
|
+ /// <returns></returns>
|
|
|
+ private string GetVisaFeeLabel(int provinceId)
|
|
|
+ {
|
|
|
+ var label = new StringBuilder();
|
|
|
+ var info = VisaFees.FirstOrDefault(x => x.ProvinceId == provinceId);
|
|
|
+ if (info != null)
|
|
|
+ {
|
|
|
+
|
|
|
+ if (FeeType == 0) //因公
|
|
|
+ {
|
|
|
+ label.AppendLine($"送签地址: {info.VisaAddress}");
|
|
|
+ var isVisaOnArrival = info.IsVisaOnArrival ? "是" : "否";
|
|
|
+ label.AppendLine($"是否落地签:{isVisaOnArrival}");
|
|
|
+ var isElectronicSign = info.IsElectronicSign ? "是" : "否";
|
|
|
+ label.AppendLine($"是否电子签:{isElectronicSign}");
|
|
|
+ label.AppendLine($"签证时间(工作日):{info.VisaTime}");
|
|
|
+ var isVisaExemptionLarge = info.IsVisaExemptionLarge ? "是" : "否";
|
|
|
+ label.AppendLine($"公务护照免签:{isVisaExemptionLarge}");
|
|
|
+ label.AppendLine($"公务护照签证费:{info.LargeVisaPrice:#0.00}");
|
|
|
+ label.AppendLine($"公务护照签证代办费:{info.LargeAgencyFee:#0.00}");
|
|
|
+ var isVisaExemptionSmall = info.IsVisaExemptionSmall ? "是" : "否";
|
|
|
+ label.AppendLine($"公务普通护照免签:{isVisaExemptionSmall}");
|
|
|
+ label.AppendLine($"公务普通护照签证费:{info.SmallVisaPrice:#0.00}");
|
|
|
+ label.AppendLine($"公务普通护照代办费:{info.SmallAgencyFee:#0.00}");
|
|
|
+
|
|
|
+ if (provinceId == 103)
|
|
|
+ {
|
|
|
+ label.AppendLine($"重庆外办出入境证明费用(普通):{info.NormExtFee:#0.00}");
|
|
|
+ label.AppendLine($"公务普通护照代办费(加急):{info.UrgExtFee:#0.00}");
|
|
|
+ }
|
|
|
+
|
|
|
+ var isUrgent = info.IsUrgent ? "是" : "否";
|
|
|
+ label.AppendLine($"签证是否加急:{isVisaExemptionSmall}");
|
|
|
+ label.AppendLine($"加急时间(工作日):{info.UrgentTime}");
|
|
|
+ label.AppendLine($"加急费用:{info.UrgentPrice:#0.00}");
|
|
|
+ label.AppendLine($"加急费用描述 :{info.UrgentPriceDesc}");
|
|
|
+ label.AppendLine($"备注 :{info.Remark}");
|
|
|
+ }
|
|
|
+ else if (FeeType == 1) //因私
|
|
|
+ {
|
|
|
+ var isVisaExemptionSmall = info.IsVisaExemptionSmall ? "是" : "否";
|
|
|
+ label.AppendLine($"普通护照免签:{isVisaExemptionSmall}");
|
|
|
+ label.AppendLine($"签证费:{info.SmallVisaPrice:#0.00}");
|
|
|
+ label.AppendLine($"送签地点:{info.VisaAddress}");
|
|
|
+ label.AppendLine($"办理时间(工作日):{info.VisaTime}");
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ return label.ToString();
|
|
|
+ }
|
|
|
}
|
|
|
}
|