using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
namespace OASystem.Domain.Dtos.Resource
{
    public class OperationCountryFeeCostDto
    {
        /// 
        /// 操作状态
        /// 1 添加 
        /// 2 修改 
        /// 
        public int Status { get; set; }
        /// 
        /// 编号
        /// 
        public int Id { get; set; }
        /// 
        /// 洲名
        /// 
        public string VisaContinent { get; set; }
        /// 
        /// 国家名
        /// 
        public string VisaCountry { get; set; }
        /// 
        /// 是否免签 0:是 1:否
        /// 
        public int IsVisaExemption { get; set; }
        /// 
        /// 是否落地签 0:是 1:否
        /// 
        public int IsVisaOnArrival { get; set; }
        /// 
        /// 是否电子签 0:是 1:否
        /// 
        public int IsElectronicSignature { get; set; }
        private decimal visaPrice;
        /// 
        /// 签证费用
        /// 
        public decimal VisaPrice
        {
            get { return visaPrice; }
            set
            {
                Regex reg = new Regex(@"[^0-9]{1,17}([.]{1}[^0-9]{1,4})?$");
                if (!reg.IsMatch(value.ToString()))
                {
                    visaPrice = Convert.ToDecimal(value);
                }
                else
                {
                    visaPrice = 0;
                }
            }
        }
        /// 
        /// 签证费用描述
        /// 
        public string VisaPriceDesc { get; set; }
        /// 
        /// 签证类型 大公务/小公务/大小公务同时免签
        /// 
        public string VisaType { get; set; }
        /// 
        /// 大公务费用 
        /// 新增参数
        /// 雷怡 2024-05-07 15:45:09
        /// 
        public decimal GrandBusinessAgencyFee { get; set; }
        /// 
        /// 小公务费用 
        /// 新增参数
        /// 雷怡 2024-05-07 15:45:09
        /// 
        public decimal PettyBusinessAgencyFee { get; set; }
        private string visaTime;
        /// 
        /// 一般签证时间
        /// 
        public string VisaTime 
        { 
            get { return visaTime; }
            set
            {
                int s = -1;
                if (int.TryParse(value,out s))
                {
                    visaTime = value;
                }
                else
                {
                    ugentTime = "1";
                }
            }
        }
        /// 
        /// 签证是否加急 0:加急  1: 不加急
        /// 
        public int IsUrgent { get; set; }
        private string ugentTime;
        /// 
        /// 加急时间 
        /// 
        public string UrgentTime
        {
            get { return ugentTime; }
            set
            {
                int s = -1;
                if (int.TryParse(value, out s))
                {
                    ugentTime = value;
                }
                else
                {
                    ugentTime = "1";
                }
            }
        }
        private decimal urgentPrice;
        /// 
        /// 加急费用
        /// 
        public decimal UrgentPrice
        {
            get { return urgentPrice; }
            set
            {
                Regex reg = new Regex(@"[^0-9]{1,17}([.]{1}[^0-9]{1,4})?$");
                if (!reg.IsMatch(value.ToString()))
                {
                    urgentPrice = Convert.ToDecimal(value);
                }
                else
                {
                    urgentPrice = 0;
                }
            }
        }
        /// 
        /// 加急费用描述 
        /// 
        public string UrgentPriceDesc { get; set; }
        /// 
        /// 签证地址
        /// 
        public string VisaAddress { get; set; }
        /// 
        /// 创建者Id
        /// 
        public int CreateUserId { get; set; }
        /// 
        /// 备注
        /// 
        public string Remark { get; set; }
       
    }
    public class DelCountryFeeCostDto
    {
        public int Id { get; set; }
        public int DeleteUserId { get; set; }
    }
}