using System; using System.Text; using System.Collections.Generic; using System.Data; using HcUtility.Core; using Newtonsoft.Json; using System.Globalization; using Quartz.Util; namespace DSWeb.SoftMng.Model{ //DecHead public class DecHead { /// /// GID /// private string _gid; public string GID { get{ return _gid; } set{ _gid = value; } } /// /// 业务编号关联报关单 /// private string _bsno; public string BSNO { get{ return _bsno; } set{ _bsno = value; } } /// /// 进出口标志 I进口 E出口 /// private string _ieflag; public string IEFlag { get{ return _ieflag; } set{ _ieflag = value; } } public bool 是进口 { get { return _ieflag == "I"; } } public bool 是出口 { get { return _ieflag == "E"; } } /// /// Type /// private string _type; public string Type { get{ return _type; } set{ _type = value; } } /// /// 报关标志 /// private string _ediid; public string EdiId { get{ return _ediid; } set{ _ediid = value; } } /// /// 风险评估参数 /// private string _risk; public string Risk { get{ return _risk; } set{ _risk = value; } } /// /// 录入单位代码 /// private string _copcode; public string CopCode { get{ return _copcode; } set{ _copcode = value; } } /// /// 录入单位名称 /// private string _copname; public string CopName { get{ return _copname; } set{ _copname = value; } } /// /// 打印日期 /// private DateTime? _pdate; public DateTime? PDate { get{ return _pdate; } set{ _pdate = value; } } /// /// 录入员IC卡号 /// private string _typistno; public string TypistNo { get{ return _typistno; } set{ _typistno = value; } } /// /// 录入员名称 /// private string _inputername; public string InputerName { get{ return _inputername; } set{ _inputername = value; } } /// /// 申报人标识 /// private string _partenerid; public string PartenerID { get{ return _partenerid; } set{ _partenerid = value; } } /// /// 宁波通关申请单号 /// private string _tgdno; public string TgdNo { get{ return _tgdno; } set{ _tgdno = value; } } /// /// 数据来源 /// private string _datasource; public string DataSource { get{ return _datasource; } set{ _datasource = value; } } /// /// 报关/转关关系标志 /// private string _decltrnrel; public string DeclTrnRel { get{ return _decltrnrel; } set{ _decltrnrel = value; } } /// /// 担保验放标志 /// private string _chksurety; public string ChkSurety { get{ return _chksurety; } set{ _chksurety = value; } } /// /// 录入单位统一编码 /// private string _copcodescc; public string CopCodeScc { get{ return _copcodescc; } set{ _copcodescc = value; } } /// /// 查验分流 /// private string _checkflow; public string CheckFlow { get{ return _checkflow; } set{ _checkflow = value; } } /// /// 税收征管标记 /// private string _taxaaminmark; public string TaxAaminMark { get{ return _taxaaminmark; } set{ _taxaaminmark = value; } } /// /// 入境口岸代码 /// private string _entyportcode; public string EntyPortCode { get{ return _entyportcode; } set{ _entyportcode = value; } } /// /// B/L号 /// private string _blno; public string BLNo { get{ return _blno; } set{ _blno = value; } } /// /// 备案清单类型 /// private string _billtype; public string BillType { get{ return _billtype; } set{ _billtype = value; } } /// /// 批准文号 /// private string _apprno; public string ApprNo { get{ return _apprno; } set{ _apprno = value; } } /// /// 申报地海关 /// private string _custommaster; public string CustomMaster { get{ return _custommaster; } set{ _custommaster = value; } } /// /// CustomMaster_Text /// private string _custommaster_text; public string CustomMaster_Text { get{ return _custommaster_text; } set{ _custommaster_text = value; } } /// /// 申报状态 /// private string _agentstatus; public string AgentStatus { get{ return _agentstatus; } set{ _agentstatus = value; } } /// /// 数据中心统一编号 /// private string _seqno; public string SeqNo { get{ return _seqno; } set{ _seqno = value; } } /// /// 预录入编号 /// private string _preentryid; public string PreEntryId { get{ return _preentryid; } set{ _preentryid = value; } } /// /// 海关编号 /// private string _entryid; public string EntryId { get{ return _entryid; } set{ _entryid = value; } } /// /// 进出口岸 /// private string _ieport; public string IEPort { get{ return _ieport; } set{ _ieport = value; } } /// /// IEPort_Text /// private string _ieport_text; public string IEPort_Text { get{ return _ieport_text; } set{ _ieport_text = value; } } /// /// 备案号 /// private string _manualno; public string ManualNo { get{ return _manualno; } set{ _manualno = value; } } /// /// 合同号;合同协议号 /// private string _contrno; public string ContrNo { get{ return _contrno; } set{ _contrno = value; } } /// /// 进出口日期 /// private DateTime? _iedate; public DateTime? IEDate { get{ return _iedate; } set{ _iedate = value; } } public string IEDateStr { get { return string.Format("{0:yyyy-MM-dd}", _iedate); } set { if (value!="") _iedate = DateTime.ParseExact(value, "yyyy-MM-dd", System.Globalization.CultureInfo.CurrentCulture); } } /// /// 申报日期;预计申报日期 /// private DateTime? _ddate; public DateTime? DDate { get{ return _ddate; } set{ _ddate = value; } } public string DDateStr { get { return string.Format("{0:yyyy-MM-dd}", _ddate); } set { if (value != "") _ddate = DateTime.ParseExact(value, "yyyy-MM-dd", System.Globalization.CultureInfo.CurrentCulture); } } /// /// 18位社会信用代码(境内) /// private string _tradecoscc; public string TradeCoScc { get{ return _tradecoscc; } set{ _tradecoscc = value; } } /// /// 10位海关代码(境内) /// private string _tradecode; public string TradeCode { get{ return _tradecode; } set{ _tradecode = value; } } /// /// 10位检验检疫编码(境内) /// private string _tradeciqcode; public string TradeCiqCode { get{ return _tradeciqcode; } set{ _tradeciqcode = value; } } /// /// 企业名称(中文) /// private string _tradename; public string TradeName { get{ return _tradename; } set{ _tradename = value; } } /// /// 发货人代码 /// private string _overseasconsignorcode; public string OverseasConsignorCode { get{ return _overseasconsignorcode; } set{ _overseasconsignorcode = value; } } /// /// 境外发货人名称 /// private string _overseasconsignorcname; public string OverseasConsignorCname { get{ return _overseasconsignorcname; } set{ _overseasconsignorcname = value; } } /// /// 境外发货人名称(外文) /// private string _overseasconsignorename; public string OverseasConsignorEname { get{ return _overseasconsignorename; } set{ _overseasconsignorename = value; } } /// /// 境外收发货人地址 /// private string _overseasconsignoraddr; public string OverseasConsignorAddr { get{ return _overseasconsignoraddr; } set{ _overseasconsignoraddr = value; } } /// /// 境外收货人编码 /// private string _overseasconsigneecode; public string OverseasConsigneeCode { get{ return _overseasconsigneecode; } set{ _overseasconsigneecode = value; } } /// /// 境外收货人名称(外文) /// private string _overseasconsigneeename; public string OverseasConsigneeEname { get{ return _overseasconsigneeename; } set{ _overseasconsigneeename = value; } } /// /// 境内收发货人名称(外文) /// private string _domesticconsigneeename; public string DomesticConsigneeEname { get{ return _domesticconsigneeename; } set{ _domesticconsigneeename = value; } } /// /// EDI申报备注2 /// private string _ediremark2; public string EdiRemark2 { get{ return _ediremark2; } set{ _ediremark2 = value; } } /// /// EDI申报备注 /// private string _ediremark; public string EdiRemark { get{ return _ediremark; } set{ _ediremark = value; } } /// /// 18位社会信用代码(生产销售单位) /// private string _ownercodescc; public string OwnerCodeScc { get{ return _ownercodescc; } set{ _ownercodescc = value; } } /// /// 10位海关代码(生成销售单位) /// private string _ownercode; public string OwnerCode { get{ return _ownercode; } set{ _ownercode = value; } } /// /// 10位检验检疫编码(生产销售单位) /// private string _ownerciqcode; public string OwnerCiqCode { get{ return _ownerciqcode; } set{ _ownerciqcode = value; } } /// /// 企业名称(生产销售单位) /// private string _ownername; public string OwnerName { get{ return _ownername; } set{ _ownername = value; } } /// /// 18位社会信用代码(申报单位) /// private string _agentcodescc; public string AgentCodeScc { get{ return _agentcodescc; } set{ _agentcodescc = value; } } /// /// 10位海关代码(申报单位) /// private string _agentcode; public string AgentCode { get{ return _agentcode; } set{ _agentcode = value; } } /// /// 10位检验检疫编码(申报单位) /// private string _declciqcode; public string DeclCiqCode { get{ return _declciqcode; } set{ _declciqcode = value; } } /// /// 企业名称(申报单位) /// private string _agentname; public string AgentName { get{ return _agentname; } set{ _agentname = value; } } /// /// 运输方式 /// private string _trafmode; public string TrafMode { get{ return _trafmode; } set{ _trafmode = value; } } /// /// TrafMode_Text /// private string _trafmode_text; public string TrafMode_Text { get{ return _trafmode_text; } set{ _trafmode_text = value; } } /// /// 运输工具代码及名称 /// private string _trafname; public string TrafName { get{ return _trafname; } set{ _trafname = value; } } /// /// 航次号 /// private string _nativevoyageno; public string NativeVoyageNo { get{ return _nativevoyageno; } set{ _nativevoyageno = value; } } /// /// 提运单号 /// private string _billno; public string BillNo { get{ return _billno; } set{ _billno = value; } } /// /// 监管方式 /// private string _trademode; public string TradeMode { get{ return _trademode; } set{ _trademode = value; } } /// /// TradeMode_Text /// private string _trademode_text; public string TradeMode_Text { get{ return _trademode_text; } set{ _trademode_text = value; } } /// /// 征免性质 /// private string _cutmode; public string CutMode { get{ return _cutmode; } set{ _cutmode = value; } } /// /// CutMode_Text /// private string _cutmode_text; public string CutMode_Text { get{ return _cutmode_text; } set{ _cutmode_text = value; } } /// /// 许可证编号;许可证号 /// private string _licenseno; public string LicenseNo { get{ return _licenseno; } set{ _licenseno = value; } } /// /// 启运国/运抵国 /// private string _tradecountry; public string TradeCountry { get{ return _tradecountry; } set{ _tradecountry = value; } } /// /// TradeCountry_Text /// private string _tradecountry_text; public string TradeCountry_Text { get{ return _tradecountry_text; } set{ _tradecountry_text = value; } } /// /// 指运港 /// private string _distinateport; public string DistinatePort { get{ return _distinateport; } set{ _distinateport = value; } } /// /// DistinatePort_Text /// private string _distinateport_text; public string DistinatePort_Text { get{ return _distinateport_text; } set{ _distinateport_text = value; } } /// /// 成交方式 /// private string _transmode; public string TransMode { get{ return _transmode; } set{ _transmode = value; } } /// /// TransMode_Text /// private string _transmode_text; public string TransMode_Text { get{ return _transmode_text; } set{ _transmode_text = value; } } /// /// 名称(运费) /// private string _feemark; public string FeeMark { get{ return _feemark; } set{ _feemark = value; } } /// /// 费用(运费) /// private decimal? _feerate; public decimal? FeeRate { get{ return _feerate; } set{ _feerate = value; } } /// /// 币别(运费) /// private string _feecurr; public string FeeCurr { get{ return _feecurr; } set{ _feecurr = value; } } /// /// FeeCurr_Text /// private string _feecurr_text; public string FeeCurr_Text { get{ return _feecurr_text; } set{ _feecurr_text = value; } } /// /// 名称(保险费) /// private string _insurmark; public string InsurMark { get{ return _insurmark; } set{ _insurmark = value; } } /// /// 费用(保险费) /// private decimal? _insurrate; public decimal? InsurRate { get{ return _insurrate; } set{ _insurrate = value; } } /// /// 币别(保险费) /// private string _insurcurr; public string InsurCurr { get{ return _insurcurr; } set{ _insurcurr = value; } } /// /// InsurCurr_Text /// private string _insurcurr_text; public string InsurCurr_Text { get{ return _insurcurr_text; } set{ _insurcurr_text = value; } } /// /// 名称(杂费) /// private string _othermark; public string OtherMark { get{ return _othermark; } set{ _othermark = value; } } /// /// 费用(杂费) /// private decimal? _otherrate; public decimal? OtherRate { get{ return _otherrate; } set{ _otherrate = value; } } /// /// 币别(费用) /// private string _othercurr; public string OtherCurr { get{ return _othercurr; } set{ _othercurr = value; } } /// /// OtherCurr_Text /// private string _othercurr_text; public string OtherCurr_Text { get{ return _othercurr_text; } set{ _othercurr_text = value; } } /// /// 件数 /// private int? _packno; public int? PackNo { get{ return _packno; } set{ _packno = value; } } /// /// 包装种类 /// private string _wraptype; public string WrapType { get{ return _wraptype; } set{ _wraptype = value; } } /// /// WrapType_Text /// private string _wraptype_text; public string WrapType_Text { get{ return _wraptype_text; } set{ _wraptype_text = value; } } /// /// 毛重 /// private decimal? _grosswet; public decimal? GrossWet { get{ return _grosswet; } set{ _grosswet = value; } } /// /// 净重 /// private decimal? _netwt; public decimal? NetWt { get{ return _netwt; } set{ _netwt = value; } } /// /// 贸易国别 /// private string _tradeareacode; public string TradeAreaCode { get{ return _tradeareacode; } set{ _tradeareacode = value; } } /// /// TradeAreaCode_Text /// private string _tradeareacode_text; public string TradeAreaCode_Text { get{ return _tradeareacode_text; } set{ _tradeareacode_text = value; } } /// /// 集装箱数 /// private int? _contacount; public int? ContaCount { get{ return _contacount; } set{ _contacount = value; } } /// /// 随附单证 /// private string _attadocucdstr; public string AttaDocuCdstr { get{ return _attadocucdstr; } set{ _attadocucdstr = value; } } /// /// 货物存放地点 /// private string _goodsplace; public string GoodsPlace { get{ return _goodsplace; } set{ _goodsplace = value; } } /// /// 离境口岸;启运港代码 /// private string _despportcode; public string DespPortCode { get{ return _despportcode; } set{ _despportcode = value; } } /// /// DespPortCode_Text /// private string _despportcode_text; public string DespPortCode_Text { get{ return _despportcode_text; } set{ _despportcode_text = value; } } /// /// 报关单类型 /// private string _entrytype; public string EntryType { get{ return _entrytype; } set{ _entrytype = value; } } /// /// EntryType_Text /// private string _entrytype_text; public string EntryType_Text { get{ return _entrytype_text; } set{ _entrytype_text = value; } } /// /// 备注 /// private string _notes; public string NoteS { get{ return _notes; } set{ _notes = value; } } /// /// 标记唛码 /// private string _markno; public string MarkNo { get{ return _markno; } set{ _markno = value; } } /// /// 检验检疫受理机关 /// private string _orgcode; public string OrgCode { get{ return _orgcode; } set{ _orgcode = value; } } /// /// OrgCode_Text /// private string _orgcode_text; public string OrgCode_Text { get{ return _orgcode_text; } set{ _orgcode_text = value; } } /// /// 领证机关 /// private string _vsaorgcode; public string VsaOrgCode { get{ return _vsaorgcode; } set{ _vsaorgcode = value; } } /// /// VsaOrgCode_Text /// private string _vsaorgcode_text; public string VsaOrgCode_Text { get{ return _vsaorgcode_text; } set{ _vsaorgcode_text = value; } } /// /// 口岸检验检疫机关 /// private string _insporgcode; public string InspOrgCode { get{ return _insporgcode; } set{ _insporgcode = value; } } /// /// InspOrgCode_Text /// private string _insporgcode_text; public string InspOrgCode_Text { get{ return _insporgcode_text; } set{ _insporgcode_text = value; } } /// /// 目的地检验检疫机关 /// private string _purporgcode; public string PurpOrgCode { get{ return _purporgcode; } set{ _purporgcode = value; } } /// /// PurpOrgCode_Text /// private string _purporgcode_text; public string PurpOrgCode_Text { get{ return _purporgcode_text; } set{ _purporgcode_text = value; } } /// /// 关联号码 /// private string _correlationno; public string CorrelationNo { get{ return _correlationno; } set{ _correlationno = value; } } /// /// 关联理由 /// private string _correlationreasonflag; public string CorrelationReasonFlag { get{ return _correlationreasonflag; } set{ _correlationreasonflag = value; } } /// /// CorrelationReasonFlag_Text /// private string _correlationreasonflag_text; public string CorrelationReasonFlag_Text { get{ return _correlationreasonflag_text; } set{ _correlationreasonflag_text = value; } } /// /// 启运日期 /// private DateTime? _despdate; public DateTime? DespDate { get{ return _despdate; } set{ _despdate = value; } } /// /// 卸毕日期 /// private DateTime? _cmpldschrgdt; public DateTime? CmplDschrgDt { get{ return _cmpldschrgdt; } set{ _cmpldschrgdt = value; } } /// /// 原集装箱标识 /// private string _origboxflag; public string OrigBoxFlag { get{ return _origboxflag; } set{ _origboxflag = value; } } /// /// 特殊业务标识(多选) /// private string _specdeclflag; public string SpecDeclFlag { get{ return _specdeclflag; } set{ _specdeclflag = value; } } /// /// SpecDeclFlag_Text /// private string _specdeclflag_text; public string SpecDeclFlag_Text { get{ return _specdeclflag_text; } set{ _specdeclflag_text = value; } } /// /// 承诺事项 /// private string _promiseitmes; public string PromiseItmes { get{ return _promiseitmes; } set{ _promiseitmes = value; } } /// /// 报关员姓名 /// private string _declarename; public string DeclareName { get{ return _declarename; } set{ _declarename = value; } } /// /// 无其他包装 /// private string _nootherpack; public string NoOtherPack { get{ return _nootherpack; } set{ _nootherpack = value; } } /// /// Insp_cert /// private string _insp_cert; public string Insp_cert { get{ return _insp_cert; } set{ _insp_cert = value; } } /// /// 报关单状态 /// private string _billstate; public string BillState { get { return _billstate; } set { _billstate = value; } } /// /// ClientSeqNo /// 客户端报关单单一编号 编码规则0125【报关业务单一窗口编号】 /// 20200307 改为使用op_apply.CUSTNO /// private string _ClientSeqNo; public string ClientSeqNo { get { return _ClientSeqNo; } set { _ClientSeqNo = value; } } /// /// ApplyType /// 1一次录入 2二步申报 /// 20201228 /// private int? _ApplyType; public int? ApplyType { get { return _ApplyType; } set { _ApplyType = value; } } //private string _ApplyType_Text; //public string ApplyType_Text //{ // get { return _ApplyType_Text; } // set { _ApplyType_Text = value; } //} } public class AuditDecHead { /// /// GID /// private string _gid; public string GID { get { return _gid; } set { _gid = value; } } /// /// 业务编号关联报关单 /// private string _bsno; public string BSNO { get { return _bsno; } set { _bsno = value; } } /// /// 进出口标志 /// private string _ieflag; public string IEFlag { get { return _ieflag; } set { _ieflag = value; } } /// /// Type /// private string _type; public string Type { get { return _type; } set { _type = value; } } /// /// 报关标志 /// private string _ediid; public string EdiId { get { return _ediid; } set { _ediid = value; } } /// /// 风险评估参数 /// private string _risk; public string Risk { get { return _risk; } set { _risk = value; } } /// /// 录入单位代码 /// private string _copcode; public string CopCode { get { return _copcode; } set { _copcode = value; } } /// /// 录入单位名称 /// private string _copname; public string CopName { get { return _copname; } set { _copname = value; } } /// /// 打印日期 /// private DateTime? _pdate; public DateTime? PDate { get { return _pdate; } set { _pdate = value; } } /// /// 录入员IC卡号 /// private string _typistno; public string TypistNo { get { return _typistno; } set { _typistno = value; } } /// /// 录入员名称 /// private string _inputername; public string InputerName { get { return _inputername; } set { _inputername = value; } } /// /// 申报人标识 /// private string _partenerid; public string PartenerID { get { return _partenerid; } set { _partenerid = value; } } /// /// 宁波通关申请单号 /// private string _tgdno; public string TgdNo { get { return _tgdno; } set { _tgdno = value; } } /// /// 数据来源 /// private string _datasource; public string DataSource { get { return _datasource; } set { _datasource = value; } } /// /// 报关/转关关系标志 /// private string _decltrnrel; public string DeclTrnRel { get { return _decltrnrel; } set { _decltrnrel = value; } } /// /// 担保验放标志 /// private string _chksurety; public string ChkSurety { get { return _chksurety; } set { _chksurety = value; } } /// /// 录入单位统一编码 /// private string _copcodescc; public string CopCodeScc { get { return _copcodescc; } set { _copcodescc = value; } } /// /// 查验分流 /// private string _checkflow; public string CheckFlow { get { return _checkflow; } set { _checkflow = value; } } /// /// 税收征管标记 /// private string _taxaaminmark; public string TaxAaminMark { get { return _taxaaminmark; } set { _taxaaminmark = value; } } /// /// 入境口岸代码 /// private string _entyportcode; public string EntyPortCode { get { return _entyportcode; } set { _entyportcode = value; } } /// /// B/L号 /// private string _blno; public string BLNo { get { return _blno; } set { _blno = value; } } /// /// 备案清单类型 /// private string _billtype; public string BillType { get { return _billtype; } set { _billtype = value; } } /// /// 批准文号 /// private string _apprno; public string ApprNo { get { return _apprno; } set { _apprno = value; } } /// /// 申报地海关 /// private string _custommaster; public string CustomMaster { get { return _custommaster; } set { _custommaster = value; } } /// /// CustomMaster_Text /// private string _custommaster_text; public string CustomMaster_Text { get { return _custommaster_text; } set { _custommaster_text = value; } } /// /// 申报状态 /// private string _agentstatus; public string AgentStatus { get { return _agentstatus; } set { _agentstatus = value; } } /// /// 数据中心统一编号 /// private string _seqno; public string SeqNo { get { return _seqno; } set { _seqno = value; } } /// /// 预录入编号 /// private string _preentryid; public string PreEntryId { get { return _preentryid; } set { _preentryid = value; } } /// /// 海关编号 /// private string _entryid; public string EntryId { get { return _entryid; } set { _entryid = value; } } /// /// 进出口岸 /// private string _ieport; public string IEPort { get { return _ieport; } set { _ieport = value; } } /// /// IEPort_Text /// private string _ieport_text; public string IEPort_Text { get { return _ieport_text; } set { _ieport_text = value; } } /// /// 备案号 /// private string _manualno; public string ManualNo { get { return _manualno; } set { _manualno = value; } } /// /// 合同号;合同协议号 /// private string _contrno; public string ContrNo { get { return _contrno; } set { _contrno = value; } } /// /// 进出口日期 /// private DateTime? _iedate; public DateTime? IEDate { get { return _iedate; } set { _iedate = value; } } /// /// 申报日期;预计申报日期 /// private DateTime? _ddate; public DateTime? DDate { get { return _ddate; } set { _ddate = value; } } /// /// 18位社会信用代码(境内) /// private string _tradecoscc; public string TradeCoScc { get { return _tradecoscc; } set { _tradecoscc = value; } } /// /// 10位海关代码(境内) /// private string _tradecode; public string TradeCode { get { return _tradecode; } set { _tradecode = value; } } /// /// 10位检验检疫编码(境内) /// private string _tradeciqcode; public string TradeCiqCode { get { return _tradeciqcode; } set { _tradeciqcode = value; } } /// /// 企业名称(中文) /// private string _tradename; public string TradeName { get { return _tradename; } set { _tradename = value; } } /// /// 发货人代码 /// private string _overseasconsignorcode; public string OverseasConsignorCode { get { return _overseasconsignorcode; } set { _overseasconsignorcode = value; } } /// /// 境外发货人名称 /// private string _overseasconsignorcname; public string OverseasConsignorCname { get { return _overseasconsignorcname; } set { _overseasconsignorcname = value; } } /// /// 境外发货人名称(外文) /// private string _overseasconsignorename; public string OverseasConsignorEname { get { return _overseasconsignorename; } set { _overseasconsignorename = value; } } /// /// 境外收发货人地址 /// private string _overseasconsignoraddr; public string OverseasConsignorAddr { get { return _overseasconsignoraddr; } set { _overseasconsignoraddr = value; } } /// /// 境外收货人编码 /// private string _overseasconsigneecode; public string OverseasConsigneeCode { get { return _overseasconsigneecode; } set { _overseasconsigneecode = value; } } /// /// 境外收货人名称(外文) /// private string _overseasconsigneeename; public string OverseasConsigneeEname { get { return _overseasconsigneeename; } set { _overseasconsigneeename = value; } } /// /// 境内收发货人名称(外文) /// private string _domesticconsigneeename; public string DomesticConsigneeEname { get { return _domesticconsigneeename; } set { _domesticconsigneeename = value; } } /// /// EDI申报备注2 /// private string _ediremark2; public string EdiRemark2 { get { return _ediremark2; } set { _ediremark2 = value; } } /// /// EDI申报备注 /// private string _ediremark; public string EdiRemark { get { return _ediremark; } set { _ediremark = value; } } /// /// 18位社会信用代码(生产销售单位) /// private string _ownercodescc; public string OwnerCodeScc { get { return _ownercodescc; } set { _ownercodescc = value; } } /// /// 10位海关代码(生成销售单位) /// private string _ownercode; public string OwnerCode { get { return _ownercode; } set { _ownercode = value; } } /// /// 10位检验检疫编码(生产销售单位) /// private string _ownerciqcode; public string OwnerCiqCode { get { return _ownerciqcode; } set { _ownerciqcode = value; } } /// /// 企业名称(生产销售单位) /// private string _ownername; public string OwnerName { get { return _ownername; } set { _ownername = value; } } /// /// 18位社会信用代码(申报单位) /// private string _agentcodescc; public string AgentCodeScc { get { return _agentcodescc; } set { _agentcodescc = value; } } /// /// 10位海关代码(申报单位) /// private string _agentcode; public string AgentCode { get { return _agentcode; } set { _agentcode = value; } } /// /// 10位检验检疫编码(申报单位) /// private string _declciqcode; public string DeclCiqCode { get { return _declciqcode; } set { _declciqcode = value; } } /// /// 企业名称(申报单位) /// private string _agentname; public string AgentName { get { return _agentname; } set { _agentname = value; } } /// /// 运输方式 /// private string _trafmode; public string TrafMode { get { return _trafmode; } set { _trafmode = value; } } /// /// TrafMode_Text /// private string _trafmode_text; public string TrafMode_Text { get { return _trafmode_text; } set { _trafmode_text = value; } } /// /// 运输工具代码及名称 /// private string _trafname; public string TrafName { get { return _trafname; } set { _trafname = value; } } /// /// 航次号 /// private string _nativevoyageno; public string NativeVoyageNo { get { return _nativevoyageno; } set { _nativevoyageno = value; } } /// /// 提运单号 /// private string _billno; public string BillNo { get { return _billno; } set { _billno = value; } } /// /// 监管方式 /// private string _trademode; public string TradeMode { get { return _trademode; } set { _trademode = value; } } /// /// TradeMode_Text /// private string _trademode_text; public string TradeMode_Text { get { return _trademode_text; } set { _trademode_text = value; } } /// /// 征免性质 /// private string _cutmode; public string CutMode { get { return _cutmode; } set { _cutmode = value; } } /// /// CutMode_Text /// private string _cutmode_text; public string CutMode_Text { get { return _cutmode_text; } set { _cutmode_text = value; } } /// /// 许可证编号;许可证号 /// private string _licenseno; public string LicenseNo { get { return _licenseno; } set { _licenseno = value; } } /// /// 启运国/运抵国 /// private string _tradecountry; public string TradeCountry { get { return _tradecountry; } set { _tradecountry = value; } } /// /// TradeCountry_Text /// private string _tradecountry_text; public string TradeCountry_Text { get { return _tradecountry_text; } set { _tradecountry_text = value; } } /// /// 指运港 /// private string _distinateport; public string DistinatePort { get { return _distinateport; } set { _distinateport = value; } } /// /// DistinatePort_Text /// private string _distinateport_text; public string DistinatePort_Text { get { return _distinateport_text; } set { _distinateport_text = value; } } /// /// 成交方式 /// private string _transmode; public string TransMode { get { return _transmode; } set { _transmode = value; } } /// /// TransMode_Text /// private string _transmode_text; public string TransMode_Text { get { return _transmode_text; } set { _transmode_text = value; } } /// /// 名称(运费) /// private string _feemark; public string FeeMark { get { return _feemark; } set { _feemark = value; } } /// /// 费用(运费) /// private decimal? _feerate; public decimal? FeeRate { get { return _feerate; } set { _feerate = value; } } /// /// 币别(运费) /// private string _feecurr; public string FeeCurr { get { return _feecurr; } set { _feecurr = value; } } /// /// FeeCurr_Text /// private string _feecurr_text; public string FeeCurr_Text { get { return _feecurr_text; } set { _feecurr_text = value; } } /// /// 名称(保险费) /// private string _insurmark; public string InsurMark { get { return _insurmark; } set { _insurmark = value; } } /// /// 费用(保险费) /// private decimal? _insurrate; public decimal? InsurRate { get { return _insurrate; } set { _insurrate = value; } } /// /// 币别(保险费) /// private string _insurcurr; public string InsurCurr { get { return _insurcurr; } set { _insurcurr = value; } } /// /// InsurCurr_Text /// private string _insurcurr_text; public string InsurCurr_Text { get { return _insurcurr_text; } set { _insurcurr_text = value; } } /// /// 名称(杂费) /// private string _othermark; public string OtherMark { get { return _othermark; } set { _othermark = value; } } /// /// 费用(杂费) /// private decimal? _otherrate; public decimal? OtherRate { get { return _otherrate; } set { _otherrate = value; } } /// /// 币别(费用) /// private string _othercurr; public string OtherCurr { get { return _othercurr; } set { _othercurr = value; } } /// /// OtherCurr_Text /// private string _othercurr_text; public string OtherCurr_Text { get { return _othercurr_text; } set { _othercurr_text = value; } } /// /// 件数 /// private int? _packno; public int? PackNo { get { return _packno; } set { _packno = value; } } /// /// 包装种类 /// private string _wraptype; public string WrapType { get { return _wraptype; } set { _wraptype = value; } } /// /// WrapType_Text /// private string _wraptype_text; public string WrapType_Text { get { return _wraptype_text; } set { _wraptype_text = value; } } /// /// 毛重 /// private decimal? _grosswet; public decimal? GrossWet { get { return _grosswet; } set { _grosswet = value; } } /// /// 净重 /// private decimal? _netwt; public decimal? NetWt { get { return _netwt; } set { _netwt = value; } } /// /// 贸易国别 /// private string _tradeareacode; public string TradeAreaCode { get { return _tradeareacode; } set { _tradeareacode = value; } } /// /// TradeAreaCode_Text /// private string _tradeareacode_text; public string TradeAreaCode_Text { get { return _tradeareacode_text; } set { _tradeareacode_text = value; } } /// /// 集装箱数 /// private int? _contacount; public int? ContaCount { get { return _contacount; } set { _contacount = value; } } /// /// 随附单证 /// private string _attadocucdstr; public string AttaDocuCdstr { get { return _attadocucdstr; } set { _attadocucdstr = value; } } /// /// 货物存放地点 /// private string _goodsplace; public string GoodsPlace { get { return _goodsplace; } set { _goodsplace = value; } } /// /// 离境口岸;启运港代码 /// private string _despportcode; public string DespPortCode { get { return _despportcode; } set { _despportcode = value; } } /// /// DespPortCode_Text /// private string _despportcode_text; public string DespPortCode_Text { get { return _despportcode_text; } set { _despportcode_text = value; } } /// /// 报关单类型 /// private string _entrytype; public string EntryType { get { return _entrytype; } set { _entrytype = value; } } /// /// EntryType_Text /// private string _entrytype_text; public string EntryType_Text { get { return _entrytype_text; } set { _entrytype_text = value; } } /// /// 备注 /// private string _notes; public string NoteS { get { return _notes; } set { _notes = value; } } /// /// 标记唛码 /// private string _markno; public string MarkNo { get { return _markno; } set { _markno = value; } } /// /// 检验检疫受理机关 /// private string _orgcode; public string OrgCode { get { return _orgcode; } set { _orgcode = value; } } /// /// OrgCode_Text /// private string _orgcode_text; public string OrgCode_Text { get { return _orgcode_text; } set { _orgcode_text = value; } } /// /// 领证机关 /// private string _vsaorgcode; public string VsaOrgCode { get { return _vsaorgcode; } set { _vsaorgcode = value; } } /// /// VsaOrgCode_Text /// private string _vsaorgcode_text; public string VsaOrgCode_Text { get { return _vsaorgcode_text; } set { _vsaorgcode_text = value; } } /// /// 口岸检验检疫机关 /// private string _insporgcode; public string InspOrgCode { get { return _insporgcode; } set { _insporgcode = value; } } /// /// InspOrgCode_Text /// private string _insporgcode_text; public string InspOrgCode_Text { get { return _insporgcode_text; } set { _insporgcode_text = value; } } /// /// 目的地检验检疫机关 /// private string _purporgcode; public string PurpOrgCode { get { return _purporgcode; } set { _purporgcode = value; } } /// /// PurpOrgCode_Text /// private string _purporgcode_text; public string PurpOrgCode_Text { get { return _purporgcode_text; } set { _purporgcode_text = value; } } /// /// 关联号码 /// private string _correlationno; public string CorrelationNo { get { return _correlationno; } set { _correlationno = value; } } /// /// 关联理由 /// private string _correlationreasonflag; public string CorrelationReasonFlag { get { return _correlationreasonflag; } set { _correlationreasonflag = value; } } /// /// CorrelationReasonFlag_Text /// private string _correlationreasonflag_text; public string CorrelationReasonFlag_Text { get { return _correlationreasonflag_text; } set { _correlationreasonflag_text = value; } } /// /// 启运日期 /// private DateTime? _despdate; public DateTime? DespDate { get { return _despdate; } set { _despdate = value; } } /// /// 卸毕日期 /// private DateTime? _cmpldschrgdt; public DateTime? CmplDschrgDt { get { return _cmpldschrgdt; } set { _cmpldschrgdt = value; } } /// /// 原集装箱标识 /// private string _origboxflag; public string OrigBoxFlag { get { return _origboxflag; } set { _origboxflag = value; } } /// /// 特殊业务标识(多选) /// private string _specdeclflag; public string SpecDeclFlag { get { return _specdeclflag; } set { _specdeclflag = value; } } /// /// SpecDeclFlag_Text /// private string _specdeclflag_text; public string SpecDeclFlag_Text { get { return _specdeclflag_text; } set { _specdeclflag_text = value; } } /// /// 承诺事项 /// private string _promiseitmes; public string PromiseItmes { get { return _promiseitmes; } set { _promiseitmes = value; } } /// /// 报关员姓名 /// private string _declarename; public string DeclareName { get { return _declarename; } set { _declarename = value; } } /// /// 无其他包装 /// private string _nootherpack; public string NoOtherPack { get { return _nootherpack; } set { _nootherpack = value; } } /// /// Insp_cert /// private string _insp_cert; public string Insp_cert { get { return _insp_cert; } set { _insp_cert = value; } } /// /// 报关单状态 /// private string _billstate; public string BillState { get { return _billstate; } set { _billstate = value; } } /// /// 委托单号 /// private string _custno; public string CUSTNO { get { return _custno; } set { _custno = value; } } /// /// 报关单号 /// private string _customno; public string CUSTOMNO { get { return _customno; } set { _customno = value; } } /// /// 委托单位 /// private string _customername; public string CUSTOMERNAME { get { return _customername; } set { _customername = value; } } /// /// 提单号 /// private string _mblno; public string MBLNO { get { return _mblno; } set { _mblno = value; } } /// /// 船名 /// private string _vessell; public string VESSEL { get { return _vessell; } set { _vessell = value; } } /// /// 航次 /// private string _voyno; public string VOYNO { get { return _voyno; } set { _voyno = value; } } /// /// 开船日期 /// private string _etd; public string ETD { get { return _etd; } set { _etd = value; } } /// /// 到港日期 /// private string _eta; public string ETA { get { return _eta; } set { _eta = value; } } /// /// ClientSeqNo /// 客户端报关单单一编号 编码规则0125【报关业务单一窗口编号】 /// 20200307 改为使用op_apply.CUSTNO /// private string _ClientSeqNo; public string ClientSeqNo { get { return _ClientSeqNo; } set { _ClientSeqNo = value; } } public string COMPOP { get; set; } public string COMPTIME { get; set; } public string AuditDate { get; set; } } /// /// 接口返回 /// public class DecHead_WebModel { public string status { get; set; } public List message { get; set; } /// /// 用来 /// public string ies { get; set; } } public class DecHead_status { public string status { get; set; } } public class DecHead_statusmessage: DecHead_status { public string message { get; set; } } public class pdfFileModel { public string path { get; set; } public string filename { get; set; } } /// /// 接口返回_message /// public class MessageModel { public bool ok { get; set; } = true; public string errorCode { get; set; } public string mygType { get; set; } public DecHead_data data { get; set; } public string errors { get; set; } public List messageList { get; set; } public List pdfFile { get; set; } public preDecHeadVo getDecHead() { return data.getdata(); } } /// /// 用于解析接口返回的单一窗口信息 /// public class DecHead_data { //public string preDecHeadVo { get; set; } public string message { get; set; } public preDecHeadVo getdata() { if (preDecHeadVo != null) return preDecHeadVo; if (decTsVo != null) return decTsVo; return new preDecHeadVo(); } public preDecHeadVo preDecHeadVo { get; set; } public preDecHeadVo decTsVo { get; set; } } /*"[{"cntnrModeCode":"11","contSeqNo":"1","updateTime":"2020-01-20 10:18:39","cntnrModeCodeName":"普通2*标准箱(L)","goodsNo":"1,2","containerMdCodeName":"普通2*标准箱(L)","containerNo":"OOCU7297294","createUser":"QDSF1984","cusCiqNo":"E20200000369108017","containerMdCode":"11","indbTime":"2020-01-13 11:10:53","updateUser":"2020030084936","addList":"[]","containerWt":"3800"}*/ public class preDecContainerVo { public string cntnrModeCode { get; set; } public string contSeqNo { get; set; } public string updateTime { get; set; } public string cntnrModeCodeName { get; set; } public string goodsNo { get; set; } public string containerMdCodeName { get; set; } public string containerNo { get; set; } public string createUser { get; set; } public string cusCiqNo { get; set; } public string containerMdCode { get; set; } public string indbTime { get; set; } public string updateUser { get; set; } public string addList { get; set; } public string containerWt { get; set; } public Container getContainerValue(Container container) { container.ContainerId = containerNo; container.ContainerMd = containerMdCode; container.ContainerMd_Text = containerMdCodeName; container.ContainerWt = Convert.ToDecimal(containerWt); container.GoodsNo = goodsNo; if (string.IsNullOrEmpty(container.LclFlag)) { container.LclFlag = "0"; } return container; } } /// /// decMergeListVo /// [{""gNo"":""1"",""codeTs"":""4707100000"",""gModel"":""0|0|废瓦楞纸板|废碎|无产地标准及标号|2019.11.18"",""ciqWtMeasUnit"":""035"",""ciqCurr"":""USD"",""ciqWtMeasUnitName"":""千克"",""gUnitName"":""千克"",""tradeCurrName"":""美元"",""destinationCountryName"":""中国台湾"",""cusOriginCountry"":""CHN"",""gQty"":""12805"",""goodsLegalInspectionMark"":""00"",""gName"":""瓦楞纸板边角料"",""declPrice"":""0.19"",""qty1"":""12805"",""cusCiqNo"":""E20190000339641149"",""dutyModeName"":""全免"",""hsCodeDesc"":""回收(废碎)的未漂白牛皮、瓦楞纸或纸板"",""goodsTotalVal"":""2432.95"",""districtCodeName"":""青岛其他"",""dutyMode"":""3"",""updateTime"":""2019-11-30 09:54:43"",""mnufctrRegNo"":""3701610052"",""ciqOriginCountry"":""CHN"",""preDecCiqGoodsCont"":""[]"",""stdWeightUnitCode"":""1"",""unit1"":""035"",""preDecCiqGoodsLimit"":""[]"",""ciqCurrName"":""美元"",""unit1Name"":""千克"",""gUnit"":""035"",""contrItem"":""1"",""supList"":[],""cusOriginCountryName"":""中国"",""createUser"":""QDSF1984"",""ciqWeight"":""12805"",""districtCode"":""37029"",""tradeCurr"":""USD"",""ciqName"":""回收(废碎)的未漂白牛皮、瓦楞纸或纸板"",""destinationCountry"":""TWN"",""declTotal"":""2432.95"",""codeTsName"":""回收(废碎)的未漂白牛皮、瓦楞纸或纸板"",""indbTime"":""2019-11-24 10:10:25"",""updateUser"":""2020030084931"",""ciqCode"":""999""}]"", /// public class preDecDocVo { public string attFmtTypeCode { get; set; } public string attEdocNo { get; set; } } public class cusLicenseListVo { public string createUser { get; set; } public string updateTime { get; set; } public string preDecCusEcoRel { get; set; } public string acmpFormCodeName { get; set; } public string formSeqNo { get; set; } public string cusCiqNo { get; set; } public string acmpFormCode { get; set; } public string acmpFormName { get; set; } public string indbTime { get; set; } public string acmpFormNo { get; set; } public string updateUser { get; set; } } public class decMergeListVo { public string gNo { get; set; } public string codeTs { get; set; } public string gModel { get; set; } public string ciqWtMeasUnit { get; set; } public string ciqCurr { get; set; } public string ciqWtMeasUnitName { get; set; } public string gUnitName { get; set; } public string tradeCurrName { get; set; } public string destinationCountryName { get; set; } public string cusOriginCountry { get; set; } public string gQty { get; set; } public string goodsLegalInspectionMark { get; set; } public string gName { get; set; } public string declPrice { get; set; } public string qty1 { get; set; } public string cusCiqNo { get; set; } public string dutyModeName { get; set; } public string hsCodeDesc { get; set; } public string goodsTotalVal { get; set; } public string districtCodeName { get; set; } public string dutyMode { get; set; } public string updateTime { get; set; } public string mnufctrRegNo { get; set; } public string ciqOriginCountry { get; set; } public string preDecCiqGoodsCont { get; set; } public string stdWeightUnitCode { get; set; } public string unit1 { get; set; } public string preDecCiqGoodsLimit { get; set; } public string ciqCurrName { get; set; } public string unit1Name { get; set; } public string gUnit { get; set; } public string contrItem { get; set; } //public string supList { get; set; } public string cusOriginCountryName { get; set; } public string createUser { get; set; } public string ciqWeight { get; set; } public string districtCode { get; set; } public string tradeCurr { get; set; } public string ciqName { get; set; } public string destinationCountry { get; set; } public string declTotal { get; set; } public string codeTsName { get; set; } public string indbTime { get; set; } public string updateUser { get; set; } public string ciqCode { get; set; } public string ciqDestCode { get; set; } public string ciqDestCodeName { get; set; } public string goodsAttr { get; private set; } public string goodsAttrName { get; private set; } public string purpose { get; private set; } public string purposeName { get; private set; } public string stuff { get; set; } public string prodValidDt { get; set; } public string engManEntCnm { get; set; } public string goodsSpec { get; set; } public string goodsModel { get; set; } public string goodsBrand { get; set; } public string produceDate { get; set; } public string prodBatchNo { get; set; } public string noDangFlag { get; set; } public string dangerFlag { get; set; } public string unCode { get; set; } public string dangName { get; set; } public string packType { get; set; } public string packTypeName { get; set; } public string packSpec { get; set; } public string cusSupvDmd { get; set; } public DecList getDecListValue(DecList DecList) { DecList.GNo = gNo; DecList.ContrItem = !string.IsNullOrWhiteSpace(contrItem)?contrItem: gNo; DecList.CodeTS = codeTs; DecList.CiqCode = ciqCode; DecList.CiqCode_Text = ciqName; DecList.GName = gName;//商品名称 DecList.GModel = gModel; DecList.GQty = Convert.ToDecimal( gQty); DecList.GUnit = gUnit; DecList.GUnit_Text = gUnitName; DecList.DeclPrice = Convert.ToDecimal( declPrice); DecList.DeclTotal = Convert.ToDecimal(declTotal); DecList.TradeCurr = tradeCurr; DecList.TradeCurr_Text = tradeCurrName; DecList.FirstQty = Convert.ToDecimal(qty1); DecList.FirstUnit = unit1; DecList.FirstUnit_Text = unit1Name; //DecList.ExgVersion = ; //DecList.ExgNo = tradeCurrName; DecList.DestinationCountry = destinationCountry; DecList.DestinationCountry_Text = destinationCountryName; //DecList.SecondQty = qty; //DecList.SecondUnit = tradeCurrName; //DecList.SecondUnit_Text = tradeCurrName; DecList.OriginCountry = cusOriginCountry; DecList.OriginCountry_Text = cusOriginCountryName; DecList.DistrictCode = districtCode; DecList.DistrictCode_Text = districtCodeName; DecList.DestCode = ciqDestCode; DecList.DestCode_Text = ciqDestCodeName; DecList.DutyMode = dutyMode; DecList.DutyMode_Text = dutyModeName; //货物属性 DecList.GoodsAttr = goodsAttr; DecList.GoodsAttr_Text = goodsAttrName; //用途 DecList.Purpose = purpose; DecList.Purpose_Text = purposeName; //商检信息 DecList.Stuff = stuff; if(!string.IsNullOrWhiteSpace(prodValidDt)){ DecList.ProdValidDt = Convert.ToDateTime(prodValidDt) ; } DecList.EngManEntCnm = engManEntCnm; DecList.GoodsSpec = goodsSpec; DecList.GoodsModel = goodsModel; DecList.GoodsBrand = goodsBrand; DecList.ProduceDate = produceDate; DecList.ProdBatchNo = prodBatchNo; //危险品信息 if (string.IsNullOrWhiteSpace(noDangFlag)) { DecList.NoDangFlag = 0; }else if (Convert.ToInt32(noDangFlag)==0) { DecList.NoDangFlag = 0; } else { try { DecList.NoDangFlag = Convert.ToInt32(noDangFlag); DecList.Uncode = unCode; DecList.DangName = dangName; DecList.DangPackType = Convert.ToInt32(packType); DecList.DangPackSpec = packSpec; DecList.DangPackSpec_Text = packSpec; } catch (Exception e) { } } DecList.cusSupvDmd = cusSupvDmd; return DecList; } } public class preDecHeadVo { public DecHead setvalue(DecHead DecHead) { if (string.IsNullOrWhiteSpace(DecHead.IEFlag)) { DecHead.IEFlag = ciqIEFlag; } if (string.IsNullOrWhiteSpace(DecHead.IEFlag)) { DecHead.IEFlag = cusIEFlag; } //DecHead.BillNo = billNo; //申报地海关 DecHead.CustomMaster = customMaster; DecHead.CustomMaster_Text = customMasterName; //海关编号 《该数据将填入op_apply.CUSTOMNO》 DecHead.EntryId = entryId; //预录入编号 DecHead.PreEntryId = preEntryId; //申报状态 DecHead.AgentStatus = cusDecStatusName;//cusDecStatus; //统一编号 DecHead.SeqNo = cusCiqNo; //出境关别 DecHead.IEPort = iEPort; DecHead.IEPort_Text = iEPortName; //备案号 DecHead.ManualNo = manualNo; //合同协议号 DecHead.ContrNo = contrNo; //出口日期 if (iEDate!=null&&iEDate != "" && iEDate.Length == 8) { DateTime dt; if ( DateTime.TryParseExact(iEDate, "yyyyMMdd", System.Globalization.CultureInfo.InvariantCulture, System.Globalization.DateTimeStyles.None, out dt)) DecHead.IEDate = dt; } //申报日期 //DecHead.DDate = Convert.ToDateTime( dDate); if (dDate!=null) DecHead.DDate = DateTime.ParseExact(dDate, "yyyy-MM-dd", System.Globalization.CultureInfo.CurrentCulture); //境内收发货人 18位社会信用代码 DecHead.TradeCoScc = !string.IsNullOrWhiteSpace( cnsnTradeScc)? cnsnTradeScc : rcvgdTradeScc; //10位海关代码 DecHead.TradeCode = !string.IsNullOrWhiteSpace(cnsnTradeCode) ? cnsnTradeCode : rcvgdTradeCode; //10位检验检疫编码 //DecHead.TradeCiqCode = !string.IsNullOrWhiteSpace(consignorCode) ? consignorCode:consigneeCode; if (DecHead.是进口) { //DecHead.TradeCiqCode = !string.IsNullOrWhiteSpace(ownerCode) ? ownerCode : ""; //DecHead.TradeName = !string.IsNullOrWhiteSpace(ownerName) ? ownerName : ""; //20230522修改为: DecHead.TradeCiqCode = !string.IsNullOrWhiteSpace(consigneeCode) ? consigneeCode : ""; DecHead.TradeName = !string.IsNullOrWhiteSpace(consigneeCname) ? consigneeCname : ""; } if (DecHead.是出口) { if (cusTradeCountry == "CHN") { DecHead.TradeCiqCode = !string.IsNullOrWhiteSpace(consigneeCode) ? consigneeCode : consigneeCode; } else DecHead.TradeCiqCode = !string.IsNullOrWhiteSpace(consignorCode) ? consignorCode : consignorCode; //企业名称(中文) DecHead.TradeName = !string.IsNullOrWhiteSpace(consignorCname) ? consignorCname : consigneeCname; } //境外收发货人 consigneeCode?? //DecHead.OverseasConsigneeCode = !string.IsNullOrWhiteSpace(consigneeCode)? consigneeCode: consignorCode; if (DecHead.是进口) { DecHead.OverseasConsigneeCode = !string.IsNullOrWhiteSpace(consignorCode) ? consignorCode : ""; DecHead.OverseasConsigneeEname = !string.IsNullOrWhiteSpace(consignorEname) ? consignorEname : ""; } if (DecHead.是出口) { if (cusTradeCountry == "CHN") { } else DecHead.OverseasConsigneeCode = !string.IsNullOrWhiteSpace(consigneeCode) ? consigneeCode : consigneeCode; //企业名称(外文) DecHead.OverseasConsigneeEname = !string.IsNullOrWhiteSpace(consigneeEname) ? consigneeEname : consignorEname; } //生产销售单位 DecHead.OwnerCodeScc = ownerScc; //10位海关代码 DecHead.OwnerCode = ownerCode; //10位检验检疫编码 DecHead.OwnerCiqCode = ownerCiqCode; //企业名称 DecHead.OwnerName = ownerName; //申报单位 18位社会信用代码 DecHead.AgentCodeScc = agentScc; // 10位海关代码 DecHead.AgentCode = agentCode; // 10位检验检疫编码 DecHead.DeclCiqCode = declRegNo; // 企业名称 DecHead.AgentName = agentName; //运输方式 DecHead.TrafMode = cusTrafMode; DecHead.TrafMode_Text = cusTrafModeName; //运输工具名称 DecHead.TrafName = trafName; //航次号 DecHead.NativeVoyageNo = cusVoyageNo; //提运单号 DecHead.BillNo = billNo; //监管方式 DecHead.TradeMode = supvModeCdde; DecHead.TradeMode_Text = supvModeCddeName; //征免性质 DecHead.CutMode = cutMode; DecHead.CutMode_Text = cutModeName; //许可证号 //DecHead.LicenseNo = licenseNo; //运抵国(地区) DecHead.TradeCountry = cusTradeCountry; DecHead.TradeCountry_Text = cusTradeCountryName; //指运港 DecHead.DistinatePort = distinatePort; DecHead.DistinatePort_Text = distinatePortName; //成交方式 DecHead.TransMode = transMode; DecHead.TransMode_Text = transModeName; //运费 DecHead.FeeMark = feeMark; //DecHead.FeeMark_Text = feeMarkName; DecHead.FeeRate = Convert.ToDecimal( feeRate); DecHead.FeeCurr = feeCurr; DecHead.FeeCurr_Text = feeCurrName; //保险费 DecHead.InsurMark = insurMark; DecHead.InsurRate = Convert.ToDecimal(insurRate); DecHead.InsurCurr = insurCurr; DecHead.InsurCurr_Text = insurCurrName; //杂费 DecHead.OtherMark = otherMark; DecHead.OtherRate = Convert.ToDecimal(otherRate); DecHead.OtherCurr = otherCurr; DecHead.OtherCurr_Text= otherCurrName; //件数 DecHead.PackNo = Convert.ToInt32(packNo); //包装种类 DecHead.WrapType = wrapType; DecHead.WrapType_Text = wrapTypeName; //毛重 DecHead.GrossWet = Convert.ToDecimal(grossWt); //净重 NetWt netWt DecHead.NetWt = Convert.ToDecimal(netWt); //贸易国别(地区) TradeAreaCode TradeAreaCode_Text DecHead.TradeAreaCode = cusTradeNationCode; DecHead.TradeAreaCode_Text = cusTradeNationCodeName; //集装箱数 ContaCount contaCount DecHead.ContaCount = Convert.ToInt32(contaCount); //随附单证 AttaDocuCdstr DecHead.AttaDocuCdstr = attaDocuCdstr; //货物存放地点 GoodsPlace //DecHead.GoodsPlace = goodsPlace; //离境口岸 DespPortCode DespPortCode_Text DecHead.DespPortCode = despPortCode; DecHead.DespPortCode_Text = despPortCodeName; //报关单类型EntryType EntryType_Text DecHead.EntryType = entryType; DecHead.EntryType_Text = entryTypeName; //报关单状态 BillState BillState_Text //备注 NoteS DecHead.NoteS = noteS; //标记唛码 MarkNo markNo DecHead.MarkNo = markNo; DecHead.GoodsPlace = goodsPlace; //报检信息: //检验检疫受理机关 DecHead.OrgCode = orgCode; DecHead.OrgCode_Text = orgCodeName; DecHead.VsaOrgCode = vsaOrgCode; DecHead.VsaOrgCode_Text = vsaOrgCodeName; DecHead.InspOrgCode = inspOrgCode; DecHead.InspOrgCode_Text = inspOrgCodeName; DecHead.PurpOrgCode = purpOrgCode; DecHead.PurpOrgCode_Text = purpOrgCodeName; //关联号码及理由 DecHead.CorrelationNo = correlationDeclNo; DecHead.CorrelationReasonFlag = correlationReasonFlagName; //特殊标识 DecHead.SpecDeclFlag = specDeclFlag; DecHead.SpecDeclFlag_Text = specDeclFlagInput; //所需单证<申报要素> DecHead.Insp_cert = appCertName; return DecHead; } public string billNo { get; set; } public string specDeclFlag { get; set; } public string specDeclFlagInput { get; set; } public string consigneeCode { get; set; } public string consigneeCname { get; set; } public string consignorCode { get; set; } public string consignorEname { get; set; } public string insurRate { get; set; } public string entryId { get; set; }//海关编号 18位报关单号 public string ciqDecStatusName { get; set; } public string coOwner { get; set; } public string ciqTradeCountryCode { get; set; } public string declCodeName { get; set; } public string customMasterName { get; set; } /// /// ""[]"", /// public string preDecCiqMarkLob { get; set; } public string contractNo { get; set; } public string cusCiqNo { get; set; } public string noteS { get; set; } /// /// ""[]"", /// public string preDecRequCertList { get; set; } public string despPortCode { get; set; } public string ownerCiqCode { get; set; } public string ownerCode { get; set; } public string preDecRoyaltyFee { get; set; } public string ciqDespCtryCode { get; set; } public string ownerName { get; set; } public string dataSrcModeCode { get; set; } public string decMergeListVo { get; set; } public List getdecMergeListVo() { return Newtonsoft.Json.JsonConvert.DeserializeObject>(decMergeListVo); } //public List decMergeListVo { get; set; } public string preDecUserList { get; set; } public string spDecSeqNo { get; set; } public string agentCode { get; set; } public string relativeId { get; set; }//关联报关单 public string relmanNo { get; set; }//关联备案 public string transMode { get; set; } public string cusTradeCountry { get; set; } public string insurMark { get; set; } public string insurCurr { get; set; } public string insurCurrName { get; set; } public string dataSrcUnitCode { get; set; } public string isudMark { get; set; } public string feeMarkName { get; set; } public string tradeModeCode { get; set; } public string cusVoyageNo { get; set; } public string declDate { get; set; } public string agentScc { get; set; } public string ciqIsudMark { get; set; } public string indbTime { get; set; } public string cusTradeCountryName { get; set; } public string ediRemark { get; set; } public string extendField { get; set; } public string insurMarkName { get; set; } public string tradeModeCodeName { get; set; } public string cusTrafMode { get; set; } public string consigneeEname { get; set; } public string packNo { get; set; } public string preDecEntQualifListVo { get; set; } public string ciqIEFlag { get; set; } public string decOtherPacksVo { get; set; } public string contaCount { get; set; } public string declCode { get; set; } public string typistNo { get; set; } public string ciqTradeCountryCodeName { get; set; } public string feeCurr { get; set; } public string manualNo { get; set; } public string dDate { get; set; } public string isCopPromise { get; set; } public string entryTypeName { get; set; } public string ciqVoyageNo { get; set; } public string feeRate { get; set; } public string agentName { get; set; } public string declRegNo { get; set; } public string supvModeCdde { get; set; } /// /// ""[{""cntnrModeCode"":""11"",""contSeqNo"":""1"" //,""updateTime"":""2019-11-30 09:54:43"" //,""cntnrModeCodeName"":""普通2* 标准箱(L)"" //,""goodsNo"":""1"",""containerMdCodeName"":""普通2* 标准箱(L)"" //,""containerNo"":""OOLU8361033"" //,""createUser"":""QDSF1984"",""cusCiqNo"":""E20190000339641149"" //,""containerMdCode"":""11"",""indbTime"":""2019-11-24 10:10:25"" //,""updateUser"":""2020030084931"",""addList"":""[]"" //,""containerWt"":""3870""}]"", /// public string preDecContainerVo { get; set; } public List getpreDecContainerVo() { return Newtonsoft.Json.JsonConvert.DeserializeObject>(preDecContainerVo); } //public List preDecContainerVo { get; set; } public string dclrNo { get; set; } public string wrapType { get; set; } public string custmRegNo { get; set; } public string ownerScc { get; set; } public string tableFlag { get; set; } public string iEPort { get; set; } public string cusIEFlag { get; set; } public string attaDocuCdstr { get; set; } public string netWt { get; set; } public string speclInspQuraRe { get; set; } public string cusTradeNationCode { get; set; } public string ciqDespCtryCodeName { get; set; } public string despPortCodeName { get; set; } public string feeMark { get; set; } public string updateTime { get; set; } public string preDecCiqDeclAttListVo { get; set; } public string dclTrnRelFlag { get; set; } public string ediId { get; set; } public string inputEtpsCode { get; set; } public string inputErName { get; set; } public string createUser { get; set; } public string declRegName { get; set; } public string promiseItems { get; set; } public string dataSrcCode { get; set; } public string portStopCode { get; set; } public string markNo { get; set; } public string updateUser { get; set; } public string arrivPortCode { get; set; } public string cnsnTradeScc { get; set; } public string cnsnTradeCode { get; set; } public string rcvgdTradeScc { get; set; } public string rcvgdTradeCode { get; set; } public string transModeName { get; set; } public string consignorCname { get; set; } /// /// ""[{""updateTime"":""2019-11-30 09:55:15"", //""entOrigFileName"":""中隆发票3370B.pdf"", //""attFmtTypeCode"":""US"",""delList"":""[]"", //""attEdocId"":""2019112917000557126325"", //""opNote"":""文件已经存在,无需重复入库!"", //""uploadOpTypeCode"":""F"", //""bizTypeCode"":""DECEDOC"", //""signWkunitCode"":""163632619"", //""attTypeCode"":""00000001"", //""createUser"":""JUNZILAN20081102"", //""attEdocNo"":""422700000001SW000000000557126325.pdf"", //""signDate"":""2019-11-29 17:01:30"", //""attEdocPath"":""/sw/dec/2019/11/29/17/01/0557126/5/2019112917000557126325.pdf"", //""belongWkunitCode"":""3702983676"", //""attEdocStatus"":""26"",""attEdocSize"":""72857"",""belongWkunitName"":""8930000041443\u0026孙冠军"", //""cusCiqNo"":""E20190000339641149"",""attSeqNo"":""432418723"",""indbTime"":""2019-11-29 17:01:30"", //""attTypeCodeName"":""发票"",""updateUser"":""2020030084931"",""addList"":""[]""}, //...] /// public string preDecDocVo { get; set; } public List getpreDecDocVo() { return Newtonsoft.Json.JsonConvert.DeserializeObject>(preDecDocVo); } public string cusDecStatus { get; set; } public string distinatePort { get; set; } public string cusTrafModeName { get; set; } public string coOwnerName { get; set; } public string deliveryOrder { get; set; } public string cusDecStatusName { get; set; } public string ciqTrafMode { get; set; } public string cutModeName { get; set; } public string ciqTrafModeName { get; set; } public string wrapTypeName { get; set; } public string cutMode { get; set; } public string contrNo { get; set; } public string iEDate { get; set; } public string chktstFlag { get; set; } public string trafName { get; set; } public string grossWt { get; set; } public string arrivPortCodeName { get; set; } public string customMaster { get; set; } public string feeCurrName { get; set; } public string cusRemark { get; set; } public string iEPortName { get; set; } /// /// ""[{""createUser"":""QDSF1984"",""updateTime"":""2019-11-30 09:54:43"",""preDecCusEcoRel"":""[]"",""acmpFormCodeName"":""电子底账"",""formSeqNo"":""1"",""cusCiqNo"":""E20190000339641149"",""acmpFormCode"":""B"",""acmpFormName"":""电子底账"",""indbTime"":""2019-11-24 10:10:25"",""acmpFormNo"":""375100219052882000"",""updateUser"":""2020030084931""}]"", /// public string cusLicenseListVo { get; set; } public List getcusLicenseListVo() { return Newtonsoft.Json.JsonConvert.DeserializeObject>(cusLicenseListVo); } public string districtCode { get; set; } public string entryType { get; set; } public string inputEtpsName { get; set; } public string supvModeCddeName { get; set; } public string cusTradeNationCodeName { get; set; } public string specPassFlag { get; set; } public string preEntryId { get; set; } public string distinatePortName { get; set; } public string ciqDecStatus { get; set; } public string otherMark { get; set; } public string otherMarkName { get; set; } public string otherRate { get; set; } public string otherCurr { get; set; } public string otherCurrName { get; set; } public string goodsPlace { get; set; } //报检信息 public string orgCode { get; set; } public string orgCodeName { get; set; } public string entQualifTypeCodeS { get; set; } public string entQualifTypeCodeSName { get; set; } public string vsaOrgCode { get; set; } public string vsaOrgCodeName { get; set; } public string inspOrgCode { get; set; } public string inspOrgCodeName { get; set; } public string purpOrgCode { get; set; } public string purpOrgCodeName { get; set; } //关联号码 public string correlationDeclNo { get; set; } //关联理由 public string correlationReasonFlagName { get; set; } //所需单证 public string appCertName { get; set; } } }