using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Ys.Core.Common; using FreeSql.DataAnnotations; namespace djy.Paas.Model { /// /// 报关订单 /// public class tb_BaoGuanOrderList : DataBase { /// /// 阿里推送消息的Gid /// /// public Guid? AlSActionGid { get; set; } /// ///报关阿里唯一单号ID 报关单号 /// public string UniqueNumber { get; set; } /// /// 报关单号 统一编码 /// public string CustomsNo { get; set; } /// /// 阿里归属 客户企业报关行ID 从UniqueNumber '-'间隔的第一个数字为报关行ID解出 /// public int AliCompanyId { get; set; } /// /// 大简云企业ID /// public Guid? CompId { get; set; } /// /// 大简云企业名称 /// public string CompName { get; set; } /// /// 客户名称 /// public string ClientName { get; set; } /// /// 客户联系人 /// public string ClientMain { get; set; } /// /// 客户Email /// public string ClientEmail { get; set; } /// /// 境内收货人 /// public string TradeName { get; set; } /// /// 委托人 /// public string DelegateMain { get; set; } /// /// 报关单类型 /// public string BillType { get; set; } /// /// 进出口类型 I进口 E出口 /// public string IEFlag { get; set; } /// /// /// [Column(IsIgnore = true)] public string IEFlanName { get { return IEFlag.IsNull() ? "" : IEFlag == "I" ? "进口" : "出口"; } } /// /// 申报地海关 /// public string DeclareCustoms { get; set; } /// /// 提单号 /// public string ShipOrderNo { get; set; } /// /// 主实际提单号 /// public string ShipOrderNoMain { get; set; } /// /// 运抵预配状态 /// public string DockStatus { get; set; } /// /// 预计到港时间 /// public long ETATime { get; set; } /// /// 预计离岗时间 /// public long ETDTime { get; set; } /// /// 查验时间 /// public long CheckTime { get; set; } /// /// 原始海关报文 /// [Column(StringLength = -1)] public string CustomsMessage { get; set; } /// /// 海关报文校验 /// [Column(StringLength =-1)] public string CustomersCheck { get; set; } /// /// 备注 /// [Column(StringLength = -1)] public string Memo { get; set; } /// /// 接收数据类型 /// [Column(IsIgnore = true)] public string Topic { get; set; } /// /// 状态编码 /// public string stateCode { get; set; } /// /// 状态名称 /// public string stateName { get; set; } /// /// 运输工具名称 /// public string TrafName { get; set; } /// ///文件信息 /// [Column(StringLength =-1)] public string FileInfo { get; set; } /// /// 文件列表信息 /// [Column(IsIgnore = true)] public List FileList { get { if (FileInfo.IsNotNull()) { return YsJson.JsonToObject>(FileInfo); } else { return new List(); } } set { if (value != null && value.Count > 0) { FileInfo = YsJson.ToJson(value); } else { FileInfo = null; } } } /// /// 数据解析状态 1 未解析 100已解析。 /// public int ParseStatus { get; set; } = 1; /// /// 报关单类型 ali 阿里推送的 open 爬虫爬取推送的 /// public string OrderType { get; set; } /// /// 扣费状态 /// public string StaCustFee { get; set; } /// /// 扣费时间 /// public DateTime? TimeCustFee { get; set; } } }