You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

3037 lines
93 KiB
C#

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

using System;
using System.Text;
using System.Collections.Generic;
using System.Data;
using HcUtility.Core;
using Newtonsoft.Json;
using System.Globalization;
namespace DSWeb.SoftMng.Model{
//DecHead
public class DecHead
{
/// <summary>
/// GID
/// </summary>
private string _gid;
public string GID
{
get{ return _gid; }
set{ _gid = value; }
}
/// <summary>
/// 业务编号关联报关单
/// </summary>
private string _bsno;
public string BSNO
{
get{ return _bsno; }
set{ _bsno = value; }
}
/// <summary>
/// 进出口标志
/// </summary>
private string _ieflag;
public string IEFlag
{
get{ return _ieflag; }
set{ _ieflag = value; }
}
/// <summary>
/// Type
/// </summary>
private string _type;
public string Type
{
get{ return _type; }
set{ _type = value; }
}
/// <summary>
/// 报关标志
/// </summary>
private string _ediid;
public string EdiId
{
get{ return _ediid; }
set{ _ediid = value; }
}
/// <summary>
/// 风险评估参数
/// </summary>
private string _risk;
public string Risk
{
get{ return _risk; }
set{ _risk = value; }
}
/// <summary>
/// 录入单位代码
/// </summary>
private string _copcode;
public string CopCode
{
get{ return _copcode; }
set{ _copcode = value; }
}
/// <summary>
/// 录入单位名称
/// </summary>
private string _copname;
public string CopName
{
get{ return _copname; }
set{ _copname = value; }
}
/// <summary>
/// 打印日期
/// </summary>
private DateTime? _pdate;
public DateTime? PDate
{
get{ return _pdate; }
set{ _pdate = value; }
}
/// <summary>
/// 录入员IC卡号
/// </summary>
private string _typistno;
public string TypistNo
{
get{ return _typistno; }
set{ _typistno = value; }
}
/// <summary>
/// 录入员名称
/// </summary>
private string _inputername;
public string InputerName
{
get{ return _inputername; }
set{ _inputername = value; }
}
/// <summary>
/// 申报人标识
/// </summary>
private string _partenerid;
public string PartenerID
{
get{ return _partenerid; }
set{ _partenerid = value; }
}
/// <summary>
/// 宁波通关申请单号
/// </summary>
private string _tgdno;
public string TgdNo
{
get{ return _tgdno; }
set{ _tgdno = value; }
}
/// <summary>
/// 数据来源
/// </summary>
private string _datasource;
public string DataSource
{
get{ return _datasource; }
set{ _datasource = value; }
}
/// <summary>
/// 报关/转关关系标志
/// </summary>
private string _decltrnrel;
public string DeclTrnRel
{
get{ return _decltrnrel; }
set{ _decltrnrel = value; }
}
/// <summary>
/// 担保验放标志
/// </summary>
private string _chksurety;
public string ChkSurety
{
get{ return _chksurety; }
set{ _chksurety = value; }
}
/// <summary>
/// 录入单位统一编码
/// </summary>
private string _copcodescc;
public string CopCodeScc
{
get{ return _copcodescc; }
set{ _copcodescc = value; }
}
/// <summary>
/// 查验分流
/// </summary>
private string _checkflow;
public string CheckFlow
{
get{ return _checkflow; }
set{ _checkflow = value; }
}
/// <summary>
/// 税收征管标记
/// </summary>
private string _taxaaminmark;
public string TaxAaminMark
{
get{ return _taxaaminmark; }
set{ _taxaaminmark = value; }
}
/// <summary>
/// 入境口岸代码
/// </summary>
private string _entyportcode;
public string EntyPortCode
{
get{ return _entyportcode; }
set{ _entyportcode = value; }
}
/// <summary>
/// B/L号
/// </summary>
private string _blno;
public string BLNo
{
get{ return _blno; }
set{ _blno = value; }
}
/// <summary>
/// 备案清单类型
/// </summary>
private string _billtype;
public string BillType
{
get{ return _billtype; }
set{ _billtype = value; }
}
/// <summary>
/// 批准文号
/// </summary>
private string _apprno;
public string ApprNo
{
get{ return _apprno; }
set{ _apprno = value; }
}
/// <summary>
/// 申报地海关
/// </summary>
private string _custommaster;
public string CustomMaster
{
get{ return _custommaster; }
set{ _custommaster = value; }
}
/// <summary>
/// CustomMaster_Text
/// </summary>
private string _custommaster_text;
public string CustomMaster_Text
{
get{ return _custommaster_text; }
set{ _custommaster_text = value; }
}
/// <summary>
/// 申报状态
/// </summary>
private string _agentstatus;
public string AgentStatus
{
get{ return _agentstatus; }
set{ _agentstatus = value; }
}
/// <summary>
/// 数据中心统一编号
/// </summary>
private string _seqno;
public string SeqNo
{
get{ return _seqno; }
set{ _seqno = value; }
}
/// <summary>
/// 预录入编号
/// </summary>
private string _preentryid;
public string PreEntryId
{
get{ return _preentryid; }
set{ _preentryid = value; }
}
/// <summary>
/// 海关编号
/// </summary>
private string _entryid;
public string EntryId
{
get{ return _entryid; }
set{ _entryid = value; }
}
/// <summary>
/// 进出口岸
/// </summary>
private string _ieport;
public string IEPort
{
get{ return _ieport; }
set{ _ieport = value; }
}
/// <summary>
/// IEPort_Text
/// </summary>
private string _ieport_text;
public string IEPort_Text
{
get{ return _ieport_text; }
set{ _ieport_text = value; }
}
/// <summary>
/// 备案号
/// </summary>
private string _manualno;
public string ManualNo
{
get{ return _manualno; }
set{ _manualno = value; }
}
/// <summary>
/// 合同号;合同协议号
/// </summary>
private string _contrno;
public string ContrNo
{
get{ return _contrno; }
set{ _contrno = value; }
}
/// <summary>
/// 进出口日期
/// </summary>
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);
}
}
/// <summary>
/// 申报日期;预计申报日期
/// </summary>
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);
}
}
/// <summary>
/// 18位社会信用代码境内
/// </summary>
private string _tradecoscc;
public string TradeCoScc
{
get{ return _tradecoscc; }
set{ _tradecoscc = value; }
}
/// <summary>
/// 10位海关代码境内
/// </summary>
private string _tradecode;
public string TradeCode
{
get{ return _tradecode; }
set{ _tradecode = value; }
}
/// <summary>
/// 10位检验检疫编码境内
/// </summary>
private string _tradeciqcode;
public string TradeCiqCode
{
get{ return _tradeciqcode; }
set{ _tradeciqcode = value; }
}
/// <summary>
/// 企业名称(中文)
/// </summary>
private string _tradename;
public string TradeName
{
get{ return _tradename; }
set{ _tradename = value; }
}
/// <summary>
/// 发货人代码
/// </summary>
private string _overseasconsignorcode;
public string OverseasConsignorCode
{
get{ return _overseasconsignorcode; }
set{ _overseasconsignorcode = value; }
}
/// <summary>
/// 境外发货人名称
/// </summary>
private string _overseasconsignorcname;
public string OverseasConsignorCname
{
get{ return _overseasconsignorcname; }
set{ _overseasconsignorcname = value; }
}
/// <summary>
/// 境外发货人名称(外文)
/// </summary>
private string _overseasconsignorename;
public string OverseasConsignorEname
{
get{ return _overseasconsignorename; }
set{ _overseasconsignorename = value; }
}
/// <summary>
/// 境外收发货人地址
/// </summary>
private string _overseasconsignoraddr;
public string OverseasConsignorAddr
{
get{ return _overseasconsignoraddr; }
set{ _overseasconsignoraddr = value; }
}
/// <summary>
/// 境外收货人编码
/// </summary>
private string _overseasconsigneecode;
public string OverseasConsigneeCode
{
get{ return _overseasconsigneecode; }
set{ _overseasconsigneecode = value; }
}
/// <summary>
/// 境外收货人名称(外文)
/// </summary>
private string _overseasconsigneeename;
public string OverseasConsigneeEname
{
get{ return _overseasconsigneeename; }
set{ _overseasconsigneeename = value; }
}
/// <summary>
/// 境内收发货人名称(外文)
/// </summary>
private string _domesticconsigneeename;
public string DomesticConsigneeEname
{
get{ return _domesticconsigneeename; }
set{ _domesticconsigneeename = value; }
}
/// <summary>
/// EDI申报备注2
/// </summary>
private string _ediremark2;
public string EdiRemark2
{
get{ return _ediremark2; }
set{ _ediremark2 = value; }
}
/// <summary>
/// EDI申报备注
/// </summary>
private string _ediremark;
public string EdiRemark
{
get{ return _ediremark; }
set{ _ediremark = value; }
}
/// <summary>
/// 18位社会信用代码生产销售单位
/// </summary>
private string _ownercodescc;
public string OwnerCodeScc
{
get{ return _ownercodescc; }
set{ _ownercodescc = value; }
}
/// <summary>
/// 10位海关代码生成销售单位
/// </summary>
private string _ownercode;
public string OwnerCode
{
get{ return _ownercode; }
set{ _ownercode = value; }
}
/// <summary>
/// 10位检验检疫编码生产销售单位
/// </summary>
private string _ownerciqcode;
public string OwnerCiqCode
{
get{ return _ownerciqcode; }
set{ _ownerciqcode = value; }
}
/// <summary>
/// 企业名称(生产销售单位)
/// </summary>
private string _ownername;
public string OwnerName
{
get{ return _ownername; }
set{ _ownername = value; }
}
/// <summary>
/// 18位社会信用代码申报单位
/// </summary>
private string _agentcodescc;
public string AgentCodeScc
{
get{ return _agentcodescc; }
set{ _agentcodescc = value; }
}
/// <summary>
/// 10位海关代码申报单位
/// </summary>
private string _agentcode;
public string AgentCode
{
get{ return _agentcode; }
set{ _agentcode = value; }
}
/// <summary>
/// 10位检验检疫编码申报单位
/// </summary>
private string _declciqcode;
public string DeclCiqCode
{
get{ return _declciqcode; }
set{ _declciqcode = value; }
}
/// <summary>
/// 企业名称(申报单位)
/// </summary>
private string _agentname;
public string AgentName
{
get{ return _agentname; }
set{ _agentname = value; }
}
/// <summary>
/// 运输方式
/// </summary>
private string _trafmode;
public string TrafMode
{
get{ return _trafmode; }
set{ _trafmode = value; }
}
/// <summary>
/// TrafMode_Text
/// </summary>
private string _trafmode_text;
public string TrafMode_Text
{
get{ return _trafmode_text; }
set{ _trafmode_text = value; }
}
/// <summary>
/// 运输工具代码及名称
/// </summary>
private string _trafname;
public string TrafName
{
get{ return _trafname; }
set{ _trafname = value; }
}
/// <summary>
/// 航次号
/// </summary>
private string _nativevoyageno;
public string NativeVoyageNo
{
get{ return _nativevoyageno; }
set{ _nativevoyageno = value; }
}
/// <summary>
/// 提运单号
/// </summary>
private string _billno;
public string BillNo
{
get{ return _billno; }
set{ _billno = value; }
}
/// <summary>
/// 监管方式
/// </summary>
private string _trademode;
public string TradeMode
{
get{ return _trademode; }
set{ _trademode = value; }
}
/// <summary>
/// TradeMode_Text
/// </summary>
private string _trademode_text;
public string TradeMode_Text
{
get{ return _trademode_text; }
set{ _trademode_text = value; }
}
/// <summary>
/// 征免性质
/// </summary>
private string _cutmode;
public string CutMode
{
get{ return _cutmode; }
set{ _cutmode = value; }
}
/// <summary>
/// CutMode_Text
/// </summary>
private string _cutmode_text;
public string CutMode_Text
{
get{ return _cutmode_text; }
set{ _cutmode_text = value; }
}
/// <summary>
/// 许可证编号;许可证号
/// </summary>
private string _licenseno;
public string LicenseNo
{
get{ return _licenseno; }
set{ _licenseno = value; }
}
/// <summary>
/// 启运国/运抵国
/// </summary>
private string _tradecountry;
public string TradeCountry
{
get{ return _tradecountry; }
set{ _tradecountry = value; }
}
/// <summary>
/// TradeCountry_Text
/// </summary>
private string _tradecountry_text;
public string TradeCountry_Text
{
get{ return _tradecountry_text; }
set{ _tradecountry_text = value; }
}
/// <summary>
/// 指运港
/// </summary>
private string _distinateport;
public string DistinatePort
{
get{ return _distinateport; }
set{ _distinateport = value; }
}
/// <summary>
/// DistinatePort_Text
/// </summary>
private string _distinateport_text;
public string DistinatePort_Text
{
get{ return _distinateport_text; }
set{ _distinateport_text = value; }
}
/// <summary>
/// 成交方式
/// </summary>
private string _transmode;
public string TransMode
{
get{ return _transmode; }
set{ _transmode = value; }
}
/// <summary>
/// TransMode_Text
/// </summary>
private string _transmode_text;
public string TransMode_Text
{
get{ return _transmode_text; }
set{ _transmode_text = value; }
}
/// <summary>
/// 名称(运费)
/// </summary>
private string _feemark;
public string FeeMark
{
get{ return _feemark; }
set{ _feemark = value; }
}
/// <summary>
/// 费用(运费)
/// </summary>
private decimal? _feerate;
public decimal? FeeRate
{
get{ return _feerate; }
set{ _feerate = value; }
}
/// <summary>
/// 币别(运费)
/// </summary>
private string _feecurr;
public string FeeCurr
{
get{ return _feecurr; }
set{ _feecurr = value; }
}
/// <summary>
/// FeeCurr_Text
/// </summary>
private string _feecurr_text;
public string FeeCurr_Text
{
get{ return _feecurr_text; }
set{ _feecurr_text = value; }
}
/// <summary>
/// 名称(保险费)
/// </summary>
private string _insurmark;
public string InsurMark
{
get{ return _insurmark; }
set{ _insurmark = value; }
}
/// <summary>
/// 费用(保险费)
/// </summary>
private decimal? _insurrate;
public decimal? InsurRate
{
get{ return _insurrate; }
set{ _insurrate = value; }
}
/// <summary>
/// 币别(保险费)
/// </summary>
private string _insurcurr;
public string InsurCurr
{
get{ return _insurcurr; }
set{ _insurcurr = value; }
}
/// <summary>
/// InsurCurr_Text
/// </summary>
private string _insurcurr_text;
public string InsurCurr_Text
{
get{ return _insurcurr_text; }
set{ _insurcurr_text = value; }
}
/// <summary>
/// 名称(杂费)
/// </summary>
private string _othermark;
public string OtherMark
{
get{ return _othermark; }
set{ _othermark = value; }
}
/// <summary>
/// 费用(杂费)
/// </summary>
private decimal? _otherrate;
public decimal? OtherRate
{
get{ return _otherrate; }
set{ _otherrate = value; }
}
/// <summary>
/// 币别(费用)
/// </summary>
private string _othercurr;
public string OtherCurr
{
get{ return _othercurr; }
set{ _othercurr = value; }
}
/// <summary>
/// OtherCurr_Text
/// </summary>
private string _othercurr_text;
public string OtherCurr_Text
{
get{ return _othercurr_text; }
set{ _othercurr_text = value; }
}
/// <summary>
/// 件数
/// </summary>
private int? _packno;
public int? PackNo
{
get{ return _packno; }
set{ _packno = value; }
}
/// <summary>
/// 包装种类
/// </summary>
private string _wraptype;
public string WrapType
{
get{ return _wraptype; }
set{ _wraptype = value; }
}
/// <summary>
/// WrapType_Text
/// </summary>
private string _wraptype_text;
public string WrapType_Text
{
get{ return _wraptype_text; }
set{ _wraptype_text = value; }
}
/// <summary>
/// 毛重
/// </summary>
private decimal? _grosswet;
public decimal? GrossWet
{
get{ return _grosswet; }
set{ _grosswet = value; }
}
/// <summary>
/// 净重
/// </summary>
private decimal? _netwt;
public decimal? NetWt
{
get{ return _netwt; }
set{ _netwt = value; }
}
/// <summary>
/// 贸易国别
/// </summary>
private string _tradeareacode;
public string TradeAreaCode
{
get{ return _tradeareacode; }
set{ _tradeareacode = value; }
}
/// <summary>
/// TradeAreaCode_Text
/// </summary>
private string _tradeareacode_text;
public string TradeAreaCode_Text
{
get{ return _tradeareacode_text; }
set{ _tradeareacode_text = value; }
}
/// <summary>
/// 集装箱数
/// </summary>
private int? _contacount;
public int? ContaCount
{
get{ return _contacount; }
set{ _contacount = value; }
}
/// <summary>
/// 随附单证
/// </summary>
private string _attadocucdstr;
public string AttaDocuCdstr
{
get{ return _attadocucdstr; }
set{ _attadocucdstr = value; }
}
/// <summary>
/// 货物存放地点
/// </summary>
private string _goodsplace;
public string GoodsPlace
{
get{ return _goodsplace; }
set{ _goodsplace = value; }
}
/// <summary>
/// 离境口岸;启运港代码
/// </summary>
private string _despportcode;
public string DespPortCode
{
get{ return _despportcode; }
set{ _despportcode = value; }
}
/// <summary>
/// DespPortCode_Text
/// </summary>
private string _despportcode_text;
public string DespPortCode_Text
{
get{ return _despportcode_text; }
set{ _despportcode_text = value; }
}
/// <summary>
/// 报关单类型
/// </summary>
private string _entrytype;
public string EntryType
{
get{ return _entrytype; }
set{ _entrytype = value; }
}
/// <summary>
/// EntryType_Text
/// </summary>
private string _entrytype_text;
public string EntryType_Text
{
get{ return _entrytype_text; }
set{ _entrytype_text = value; }
}
/// <summary>
/// 备注
/// </summary>
private string _notes;
public string NoteS
{
get{ return _notes; }
set{ _notes = value; }
}
/// <summary>
/// 标记唛码
/// </summary>
private string _markno;
public string MarkNo
{
get{ return _markno; }
set{ _markno = value; }
}
/// <summary>
/// 检验检疫受理机关
/// </summary>
private string _orgcode;
public string OrgCode
{
get{ return _orgcode; }
set{ _orgcode = value; }
}
/// <summary>
/// OrgCode_Text
/// </summary>
private string _orgcode_text;
public string OrgCode_Text
{
get{ return _orgcode_text; }
set{ _orgcode_text = value; }
}
/// <summary>
/// 领证机关
/// </summary>
private string _vsaorgcode;
public string VsaOrgCode
{
get{ return _vsaorgcode; }
set{ _vsaorgcode = value; }
}
/// <summary>
/// VsaOrgCode_Text
/// </summary>
private string _vsaorgcode_text;
public string VsaOrgCode_Text
{
get{ return _vsaorgcode_text; }
set{ _vsaorgcode_text = value; }
}
/// <summary>
/// 口岸检验检疫机关
/// </summary>
private string _insporgcode;
public string InspOrgCode
{
get{ return _insporgcode; }
set{ _insporgcode = value; }
}
/// <summary>
/// InspOrgCode_Text
/// </summary>
private string _insporgcode_text;
public string InspOrgCode_Text
{
get{ return _insporgcode_text; }
set{ _insporgcode_text = value; }
}
/// <summary>
/// 目的地检验检疫机关
/// </summary>
private string _purporgcode;
public string PurpOrgCode
{
get{ return _purporgcode; }
set{ _purporgcode = value; }
}
/// <summary>
/// PurpOrgCode_Text
/// </summary>
private string _purporgcode_text;
public string PurpOrgCode_Text
{
get{ return _purporgcode_text; }
set{ _purporgcode_text = value; }
}
/// <summary>
/// 关联号码
/// </summary>
private string _correlationno;
public string CorrelationNo
{
get{ return _correlationno; }
set{ _correlationno = value; }
}
/// <summary>
/// 关联理由
/// </summary>
private string _correlationreasonflag;
public string CorrelationReasonFlag
{
get{ return _correlationreasonflag; }
set{ _correlationreasonflag = value; }
}
/// <summary>
/// CorrelationReasonFlag_Text
/// </summary>
private string _correlationreasonflag_text;
public string CorrelationReasonFlag_Text
{
get{ return _correlationreasonflag_text; }
set{ _correlationreasonflag_text = value; }
}
/// <summary>
/// 启运日期
/// </summary>
private DateTime? _despdate;
public DateTime? DespDate
{
get{ return _despdate; }
set{ _despdate = value; }
}
/// <summary>
/// 卸毕日期
/// </summary>
private DateTime? _cmpldschrgdt;
public DateTime? CmplDschrgDt
{
get{ return _cmpldschrgdt; }
set{ _cmpldschrgdt = value; }
}
/// <summary>
/// 原集装箱标识
/// </summary>
private string _origboxflag;
public string OrigBoxFlag
{
get{ return _origboxflag; }
set{ _origboxflag = value; }
}
/// <summary>
/// 特殊业务标识(多选)
/// </summary>
private string _specdeclflag;
public string SpecDeclFlag
{
get{ return _specdeclflag; }
set{ _specdeclflag = value; }
}
/// <summary>
/// SpecDeclFlag_Text
/// </summary>
private string _specdeclflag_text;
public string SpecDeclFlag_Text
{
get{ return _specdeclflag_text; }
set{ _specdeclflag_text = value; }
}
/// <summary>
/// 承诺事项
/// </summary>
private string _promiseitmes;
public string PromiseItmes
{
get{ return _promiseitmes; }
set{ _promiseitmes = value; }
}
/// <summary>
/// 报关员姓名
/// </summary>
private string _declarename;
public string DeclareName
{
get{ return _declarename; }
set{ _declarename = value; }
}
/// <summary>
/// 无其他包装
/// </summary>
private string _nootherpack;
public string NoOtherPack
{
get{ return _nootherpack; }
set{ _nootherpack = value; }
}
/// <summary>
/// Insp_cert
/// </summary>
private string _insp_cert;
public string Insp_cert
{
get{ return _insp_cert; }
set{ _insp_cert = value; }
}
/// <summary>
/// 报关单状态
/// </summary>
private string _billstate;
public string BillState
{
get { return _billstate; }
set { _billstate = value; }
}
/// <summary>
/// ClientSeqNo
/// 客户端报关单单一编号 编码规则0125【报关业务单一窗口编号】
/// 20200307 改为使用op_apply.CUSTNO
/// </summary>
private string _ClientSeqNo;
public string ClientSeqNo
{
get { return _ClientSeqNo; }
set { _ClientSeqNo = value; }
}
/// <summary>
/// ApplyType
/// 1一次录入 2二步申报
/// 20201228
/// </summary>
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
{
/// <summary>
/// GID
/// </summary>
private string _gid;
public string GID
{
get { return _gid; }
set { _gid = value; }
}
/// <summary>
/// 业务编号关联报关单
/// </summary>
private string _bsno;
public string BSNO
{
get { return _bsno; }
set { _bsno = value; }
}
/// <summary>
/// 进出口标志
/// </summary>
private string _ieflag;
public string IEFlag
{
get { return _ieflag; }
set { _ieflag = value; }
}
/// <summary>
/// Type
/// </summary>
private string _type;
public string Type
{
get { return _type; }
set { _type = value; }
}
/// <summary>
/// 报关标志
/// </summary>
private string _ediid;
public string EdiId
{
get { return _ediid; }
set { _ediid = value; }
}
/// <summary>
/// 风险评估参数
/// </summary>
private string _risk;
public string Risk
{
get { return _risk; }
set { _risk = value; }
}
/// <summary>
/// 录入单位代码
/// </summary>
private string _copcode;
public string CopCode
{
get { return _copcode; }
set { _copcode = value; }
}
/// <summary>
/// 录入单位名称
/// </summary>
private string _copname;
public string CopName
{
get { return _copname; }
set { _copname = value; }
}
/// <summary>
/// 打印日期
/// </summary>
private DateTime? _pdate;
public DateTime? PDate
{
get { return _pdate; }
set { _pdate = value; }
}
/// <summary>
/// 录入员IC卡号
/// </summary>
private string _typistno;
public string TypistNo
{
get { return _typistno; }
set { _typistno = value; }
}
/// <summary>
/// 录入员名称
/// </summary>
private string _inputername;
public string InputerName
{
get { return _inputername; }
set { _inputername = value; }
}
/// <summary>
/// 申报人标识
/// </summary>
private string _partenerid;
public string PartenerID
{
get { return _partenerid; }
set { _partenerid = value; }
}
/// <summary>
/// 宁波通关申请单号
/// </summary>
private string _tgdno;
public string TgdNo
{
get { return _tgdno; }
set { _tgdno = value; }
}
/// <summary>
/// 数据来源
/// </summary>
private string _datasource;
public string DataSource
{
get { return _datasource; }
set { _datasource = value; }
}
/// <summary>
/// 报关/转关关系标志
/// </summary>
private string _decltrnrel;
public string DeclTrnRel
{
get { return _decltrnrel; }
set { _decltrnrel = value; }
}
/// <summary>
/// 担保验放标志
/// </summary>
private string _chksurety;
public string ChkSurety
{
get { return _chksurety; }
set { _chksurety = value; }
}
/// <summary>
/// 录入单位统一编码
/// </summary>
private string _copcodescc;
public string CopCodeScc
{
get { return _copcodescc; }
set { _copcodescc = value; }
}
/// <summary>
/// 查验分流
/// </summary>
private string _checkflow;
public string CheckFlow
{
get { return _checkflow; }
set { _checkflow = value; }
}
/// <summary>
/// 税收征管标记
/// </summary>
private string _taxaaminmark;
public string TaxAaminMark
{
get { return _taxaaminmark; }
set { _taxaaminmark = value; }
}
/// <summary>
/// 入境口岸代码
/// </summary>
private string _entyportcode;
public string EntyPortCode
{
get { return _entyportcode; }
set { _entyportcode = value; }
}
/// <summary>
/// B/L号
/// </summary>
private string _blno;
public string BLNo
{
get { return _blno; }
set { _blno = value; }
}
/// <summary>
/// 备案清单类型
/// </summary>
private string _billtype;
public string BillType
{
get { return _billtype; }
set { _billtype = value; }
}
/// <summary>
/// 批准文号
/// </summary>
private string _apprno;
public string ApprNo
{
get { return _apprno; }
set { _apprno = value; }
}
/// <summary>
/// 申报地海关
/// </summary>
private string _custommaster;
public string CustomMaster
{
get { return _custommaster; }
set { _custommaster = value; }
}
/// <summary>
/// CustomMaster_Text
/// </summary>
private string _custommaster_text;
public string CustomMaster_Text
{
get { return _custommaster_text; }
set { _custommaster_text = value; }
}
/// <summary>
/// 申报状态
/// </summary>
private string _agentstatus;
public string AgentStatus
{
get { return _agentstatus; }
set { _agentstatus = value; }
}
/// <summary>
/// 数据中心统一编号
/// </summary>
private string _seqno;
public string SeqNo
{
get { return _seqno; }
set { _seqno = value; }
}
/// <summary>
/// 预录入编号
/// </summary>
private string _preentryid;
public string PreEntryId
{
get { return _preentryid; }
set { _preentryid = value; }
}
/// <summary>
/// 海关编号
/// </summary>
private string _entryid;
public string EntryId
{
get { return _entryid; }
set { _entryid = value; }
}
/// <summary>
/// 进出口岸
/// </summary>
private string _ieport;
public string IEPort
{
get { return _ieport; }
set { _ieport = value; }
}
/// <summary>
/// IEPort_Text
/// </summary>
private string _ieport_text;
public string IEPort_Text
{
get { return _ieport_text; }
set { _ieport_text = value; }
}
/// <summary>
/// 备案号
/// </summary>
private string _manualno;
public string ManualNo
{
get { return _manualno; }
set { _manualno = value; }
}
/// <summary>
/// 合同号;合同协议号
/// </summary>
private string _contrno;
public string ContrNo
{
get { return _contrno; }
set { _contrno = value; }
}
/// <summary>
/// 进出口日期
/// </summary>
private DateTime? _iedate;
public DateTime? IEDate
{
get { return _iedate; }
set { _iedate = value; }
}
/// <summary>
/// 申报日期;预计申报日期
/// </summary>
private DateTime? _ddate;
public DateTime? DDate
{
get { return _ddate; }
set { _ddate = value; }
}
/// <summary>
/// 18位社会信用代码境内
/// </summary>
private string _tradecoscc;
public string TradeCoScc
{
get { return _tradecoscc; }
set { _tradecoscc = value; }
}
/// <summary>
/// 10位海关代码境内
/// </summary>
private string _tradecode;
public string TradeCode
{
get { return _tradecode; }
set { _tradecode = value; }
}
/// <summary>
/// 10位检验检疫编码境内
/// </summary>
private string _tradeciqcode;
public string TradeCiqCode
{
get { return _tradeciqcode; }
set { _tradeciqcode = value; }
}
/// <summary>
/// 企业名称(中文)
/// </summary>
private string _tradename;
public string TradeName
{
get { return _tradename; }
set { _tradename = value; }
}
/// <summary>
/// 发货人代码
/// </summary>
private string _overseasconsignorcode;
public string OverseasConsignorCode
{
get { return _overseasconsignorcode; }
set { _overseasconsignorcode = value; }
}
/// <summary>
/// 境外发货人名称
/// </summary>
private string _overseasconsignorcname;
public string OverseasConsignorCname
{
get { return _overseasconsignorcname; }
set { _overseasconsignorcname = value; }
}
/// <summary>
/// 境外发货人名称(外文)
/// </summary>
private string _overseasconsignorename;
public string OverseasConsignorEname
{
get { return _overseasconsignorename; }
set { _overseasconsignorename = value; }
}
/// <summary>
/// 境外收发货人地址
/// </summary>
private string _overseasconsignoraddr;
public string OverseasConsignorAddr
{
get { return _overseasconsignoraddr; }
set { _overseasconsignoraddr = value; }
}
/// <summary>
/// 境外收货人编码
/// </summary>
private string _overseasconsigneecode;
public string OverseasConsigneeCode
{
get { return _overseasconsigneecode; }
set { _overseasconsigneecode = value; }
}
/// <summary>
/// 境外收货人名称(外文)
/// </summary>
private string _overseasconsigneeename;
public string OverseasConsigneeEname
{
get { return _overseasconsigneeename; }
set { _overseasconsigneeename = value; }
}
/// <summary>
/// 境内收发货人名称(外文)
/// </summary>
private string _domesticconsigneeename;
public string DomesticConsigneeEname
{
get { return _domesticconsigneeename; }
set { _domesticconsigneeename = value; }
}
/// <summary>
/// EDI申报备注2
/// </summary>
private string _ediremark2;
public string EdiRemark2
{
get { return _ediremark2; }
set { _ediremark2 = value; }
}
/// <summary>
/// EDI申报备注
/// </summary>
private string _ediremark;
public string EdiRemark
{
get { return _ediremark; }
set { _ediremark = value; }
}
/// <summary>
/// 18位社会信用代码生产销售单位
/// </summary>
private string _ownercodescc;
public string OwnerCodeScc
{
get { return _ownercodescc; }
set { _ownercodescc = value; }
}
/// <summary>
/// 10位海关代码生成销售单位
/// </summary>
private string _ownercode;
public string OwnerCode
{
get { return _ownercode; }
set { _ownercode = value; }
}
/// <summary>
/// 10位检验检疫编码生产销售单位
/// </summary>
private string _ownerciqcode;
public string OwnerCiqCode
{
get { return _ownerciqcode; }
set { _ownerciqcode = value; }
}
/// <summary>
/// 企业名称(生产销售单位)
/// </summary>
private string _ownername;
public string OwnerName
{
get { return _ownername; }
set { _ownername = value; }
}
/// <summary>
/// 18位社会信用代码申报单位
/// </summary>
private string _agentcodescc;
public string AgentCodeScc
{
get { return _agentcodescc; }
set { _agentcodescc = value; }
}
/// <summary>
/// 10位海关代码申报单位
/// </summary>
private string _agentcode;
public string AgentCode
{
get { return _agentcode; }
set { _agentcode = value; }
}
/// <summary>
/// 10位检验检疫编码申报单位
/// </summary>
private string _declciqcode;
public string DeclCiqCode
{
get { return _declciqcode; }
set { _declciqcode = value; }
}
/// <summary>
/// 企业名称(申报单位)
/// </summary>
private string _agentname;
public string AgentName
{
get { return _agentname; }
set { _agentname = value; }
}
/// <summary>
/// 运输方式
/// </summary>
private string _trafmode;
public string TrafMode
{
get { return _trafmode; }
set { _trafmode = value; }
}
/// <summary>
/// TrafMode_Text
/// </summary>
private string _trafmode_text;
public string TrafMode_Text
{
get { return _trafmode_text; }
set { _trafmode_text = value; }
}
/// <summary>
/// 运输工具代码及名称
/// </summary>
private string _trafname;
public string TrafName
{
get { return _trafname; }
set { _trafname = value; }
}
/// <summary>
/// 航次号
/// </summary>
private string _nativevoyageno;
public string NativeVoyageNo
{
get { return _nativevoyageno; }
set { _nativevoyageno = value; }
}
/// <summary>
/// 提运单号
/// </summary>
private string _billno;
public string BillNo
{
get { return _billno; }
set { _billno = value; }
}
/// <summary>
/// 监管方式
/// </summary>
private string _trademode;
public string TradeMode
{
get { return _trademode; }
set { _trademode = value; }
}
/// <summary>
/// TradeMode_Text
/// </summary>
private string _trademode_text;
public string TradeMode_Text
{
get { return _trademode_text; }
set { _trademode_text = value; }
}
/// <summary>
/// 征免性质
/// </summary>
private string _cutmode;
public string CutMode
{
get { return _cutmode; }
set { _cutmode = value; }
}
/// <summary>
/// CutMode_Text
/// </summary>
private string _cutmode_text;
public string CutMode_Text
{
get { return _cutmode_text; }
set { _cutmode_text = value; }
}
/// <summary>
/// 许可证编号;许可证号
/// </summary>
private string _licenseno;
public string LicenseNo
{
get { return _licenseno; }
set { _licenseno = value; }
}
/// <summary>
/// 启运国/运抵国
/// </summary>
private string _tradecountry;
public string TradeCountry
{
get { return _tradecountry; }
set { _tradecountry = value; }
}
/// <summary>
/// TradeCountry_Text
/// </summary>
private string _tradecountry_text;
public string TradeCountry_Text
{
get { return _tradecountry_text; }
set { _tradecountry_text = value; }
}
/// <summary>
/// 指运港
/// </summary>
private string _distinateport;
public string DistinatePort
{
get { return _distinateport; }
set { _distinateport = value; }
}
/// <summary>
/// DistinatePort_Text
/// </summary>
private string _distinateport_text;
public string DistinatePort_Text
{
get { return _distinateport_text; }
set { _distinateport_text = value; }
}
/// <summary>
/// 成交方式
/// </summary>
private string _transmode;
public string TransMode
{
get { return _transmode; }
set { _transmode = value; }
}
/// <summary>
/// TransMode_Text
/// </summary>
private string _transmode_text;
public string TransMode_Text
{
get { return _transmode_text; }
set { _transmode_text = value; }
}
/// <summary>
/// 名称(运费)
/// </summary>
private string _feemark;
public string FeeMark
{
get { return _feemark; }
set { _feemark = value; }
}
/// <summary>
/// 费用(运费)
/// </summary>
private decimal? _feerate;
public decimal? FeeRate
{
get { return _feerate; }
set { _feerate = value; }
}
/// <summary>
/// 币别(运费)
/// </summary>
private string _feecurr;
public string FeeCurr
{
get { return _feecurr; }
set { _feecurr = value; }
}
/// <summary>
/// FeeCurr_Text
/// </summary>
private string _feecurr_text;
public string FeeCurr_Text
{
get { return _feecurr_text; }
set { _feecurr_text = value; }
}
/// <summary>
/// 名称(保险费)
/// </summary>
private string _insurmark;
public string InsurMark
{
get { return _insurmark; }
set { _insurmark = value; }
}
/// <summary>
/// 费用(保险费)
/// </summary>
private decimal? _insurrate;
public decimal? InsurRate
{
get { return _insurrate; }
set { _insurrate = value; }
}
/// <summary>
/// 币别(保险费)
/// </summary>
private string _insurcurr;
public string InsurCurr
{
get { return _insurcurr; }
set { _insurcurr = value; }
}
/// <summary>
/// InsurCurr_Text
/// </summary>
private string _insurcurr_text;
public string InsurCurr_Text
{
get { return _insurcurr_text; }
set { _insurcurr_text = value; }
}
/// <summary>
/// 名称(杂费)
/// </summary>
private string _othermark;
public string OtherMark
{
get { return _othermark; }
set { _othermark = value; }
}
/// <summary>
/// 费用(杂费)
/// </summary>
private decimal? _otherrate;
public decimal? OtherRate
{
get { return _otherrate; }
set { _otherrate = value; }
}
/// <summary>
/// 币别(费用)
/// </summary>
private string _othercurr;
public string OtherCurr
{
get { return _othercurr; }
set { _othercurr = value; }
}
/// <summary>
/// OtherCurr_Text
/// </summary>
private string _othercurr_text;
public string OtherCurr_Text
{
get { return _othercurr_text; }
set { _othercurr_text = value; }
}
/// <summary>
/// 件数
/// </summary>
private int? _packno;
public int? PackNo
{
get { return _packno; }
set { _packno = value; }
}
/// <summary>
/// 包装种类
/// </summary>
private string _wraptype;
public string WrapType
{
get { return _wraptype; }
set { _wraptype = value; }
}
/// <summary>
/// WrapType_Text
/// </summary>
private string _wraptype_text;
public string WrapType_Text
{
get { return _wraptype_text; }
set { _wraptype_text = value; }
}
/// <summary>
/// 毛重
/// </summary>
private decimal? _grosswet;
public decimal? GrossWet
{
get { return _grosswet; }
set { _grosswet = value; }
}
/// <summary>
/// 净重
/// </summary>
private decimal? _netwt;
public decimal? NetWt
{
get { return _netwt; }
set { _netwt = value; }
}
/// <summary>
/// 贸易国别
/// </summary>
private string _tradeareacode;
public string TradeAreaCode
{
get { return _tradeareacode; }
set { _tradeareacode = value; }
}
/// <summary>
/// TradeAreaCode_Text
/// </summary>
private string _tradeareacode_text;
public string TradeAreaCode_Text
{
get { return _tradeareacode_text; }
set { _tradeareacode_text = value; }
}
/// <summary>
/// 集装箱数
/// </summary>
private int? _contacount;
public int? ContaCount
{
get { return _contacount; }
set { _contacount = value; }
}
/// <summary>
/// 随附单证
/// </summary>
private string _attadocucdstr;
public string AttaDocuCdstr
{
get { return _attadocucdstr; }
set { _attadocucdstr = value; }
}
/// <summary>
/// 货物存放地点
/// </summary>
private string _goodsplace;
public string GoodsPlace
{
get { return _goodsplace; }
set { _goodsplace = value; }
}
/// <summary>
/// 离境口岸;启运港代码
/// </summary>
private string _despportcode;
public string DespPortCode
{
get { return _despportcode; }
set { _despportcode = value; }
}
/// <summary>
/// DespPortCode_Text
/// </summary>
private string _despportcode_text;
public string DespPortCode_Text
{
get { return _despportcode_text; }
set { _despportcode_text = value; }
}
/// <summary>
/// 报关单类型
/// </summary>
private string _entrytype;
public string EntryType
{
get { return _entrytype; }
set { _entrytype = value; }
}
/// <summary>
/// EntryType_Text
/// </summary>
private string _entrytype_text;
public string EntryType_Text
{
get { return _entrytype_text; }
set { _entrytype_text = value; }
}
/// <summary>
/// 备注
/// </summary>
private string _notes;
public string NoteS
{
get { return _notes; }
set { _notes = value; }
}
/// <summary>
/// 标记唛码
/// </summary>
private string _markno;
public string MarkNo
{
get { return _markno; }
set { _markno = value; }
}
/// <summary>
/// 检验检疫受理机关
/// </summary>
private string _orgcode;
public string OrgCode
{
get { return _orgcode; }
set { _orgcode = value; }
}
/// <summary>
/// OrgCode_Text
/// </summary>
private string _orgcode_text;
public string OrgCode_Text
{
get { return _orgcode_text; }
set { _orgcode_text = value; }
}
/// <summary>
/// 领证机关
/// </summary>
private string _vsaorgcode;
public string VsaOrgCode
{
get { return _vsaorgcode; }
set { _vsaorgcode = value; }
}
/// <summary>
/// VsaOrgCode_Text
/// </summary>
private string _vsaorgcode_text;
public string VsaOrgCode_Text
{
get { return _vsaorgcode_text; }
set { _vsaorgcode_text = value; }
}
/// <summary>
/// 口岸检验检疫机关
/// </summary>
private string _insporgcode;
public string InspOrgCode
{
get { return _insporgcode; }
set { _insporgcode = value; }
}
/// <summary>
/// InspOrgCode_Text
/// </summary>
private string _insporgcode_text;
public string InspOrgCode_Text
{
get { return _insporgcode_text; }
set { _insporgcode_text = value; }
}
/// <summary>
/// 目的地检验检疫机关
/// </summary>
private string _purporgcode;
public string PurpOrgCode
{
get { return _purporgcode; }
set { _purporgcode = value; }
}
/// <summary>
/// PurpOrgCode_Text
/// </summary>
private string _purporgcode_text;
public string PurpOrgCode_Text
{
get { return _purporgcode_text; }
set { _purporgcode_text = value; }
}
/// <summary>
/// 关联号码
/// </summary>
private string _correlationno;
public string CorrelationNo
{
get { return _correlationno; }
set { _correlationno = value; }
}
/// <summary>
/// 关联理由
/// </summary>
private string _correlationreasonflag;
public string CorrelationReasonFlag
{
get { return _correlationreasonflag; }
set { _correlationreasonflag = value; }
}
/// <summary>
/// CorrelationReasonFlag_Text
/// </summary>
private string _correlationreasonflag_text;
public string CorrelationReasonFlag_Text
{
get { return _correlationreasonflag_text; }
set { _correlationreasonflag_text = value; }
}
/// <summary>
/// 启运日期
/// </summary>
private DateTime? _despdate;
public DateTime? DespDate
{
get { return _despdate; }
set { _despdate = value; }
}
/// <summary>
/// 卸毕日期
/// </summary>
private DateTime? _cmpldschrgdt;
public DateTime? CmplDschrgDt
{
get { return _cmpldschrgdt; }
set { _cmpldschrgdt = value; }
}
/// <summary>
/// 原集装箱标识
/// </summary>
private string _origboxflag;
public string OrigBoxFlag
{
get { return _origboxflag; }
set { _origboxflag = value; }
}
/// <summary>
/// 特殊业务标识(多选)
/// </summary>
private string _specdeclflag;
public string SpecDeclFlag
{
get { return _specdeclflag; }
set { _specdeclflag = value; }
}
/// <summary>
/// SpecDeclFlag_Text
/// </summary>
private string _specdeclflag_text;
public string SpecDeclFlag_Text
{
get { return _specdeclflag_text; }
set { _specdeclflag_text = value; }
}
/// <summary>
/// 承诺事项
/// </summary>
private string _promiseitmes;
public string PromiseItmes
{
get { return _promiseitmes; }
set { _promiseitmes = value; }
}
/// <summary>
/// 报关员姓名
/// </summary>
private string _declarename;
public string DeclareName
{
get { return _declarename; }
set { _declarename = value; }
}
/// <summary>
/// 无其他包装
/// </summary>
private string _nootherpack;
public string NoOtherPack
{
get { return _nootherpack; }
set { _nootherpack = value; }
}
/// <summary>
/// Insp_cert
/// </summary>
private string _insp_cert;
public string Insp_cert
{
get { return _insp_cert; }
set { _insp_cert = value; }
}
/// <summary>
/// 报关单状态
/// </summary>
private string _billstate;
public string BillState
{
get { return _billstate; }
set { _billstate = value; }
}
/// <summary>
/// 委托单号
/// </summary>
private string _custno;
public string CUSTNO
{
get { return _custno; }
set { _custno = value; }
}
/// <summary>
/// 报关单号
/// </summary>
private string _customno;
public string CUSTOMNO
{
get { return _customno; }
set { _customno = value; }
}
/// <summary>
/// 委托单位
/// </summary>
private string _customername;
public string CUSTOMERNAME
{
get { return _customername; }
set { _customername = value; }
}
/// <summary>
/// 提单号
/// </summary>
private string _mblno;
public string MBLNO
{
get { return _mblno; }
set { _mblno = value; }
}
/// <summary>
/// 船名
/// </summary>
private string _vessell;
public string VESSEL
{
get { return _vessell; }
set { _vessell = value; }
}
/// <summary>
/// 航次
/// </summary>
private string _voyno;
public string VOYNO
{
get { return _voyno; }
set { _voyno = value; }
}
/// <summary>
/// 开船日期
/// </summary>
private string _etd;
public string ETD
{
get { return _etd; }
set { _etd = value; }
}
/// <summary>
/// 到港日期
/// </summary>
private string _eta;
public string ETA
{
get { return _eta; }
set { _eta = value; }
}
/// <summary>
/// ClientSeqNo
/// 客户端报关单单一编号 编码规则0125【报关业务单一窗口编号】
/// 20200307 改为使用op_apply.CUSTNO
/// </summary>
private string _ClientSeqNo;
public string ClientSeqNo
{
get { return _ClientSeqNo; }
set { _ClientSeqNo = value; }
}
public string COMPOP { get; set; }
public string COMPTIME { get; set; }
}
/// <summary>
/// 接口返回
/// </summary>
public class DecHead_WebModel
{
public string status { get; set; }
public List<MessageModel> message { get; set; }
/// <summary>
/// 用来
/// </summary>
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; }
}
/// <summary>
/// 接口返回_message
/// </summary>
public class MessageModel
{
public string ok { get; set; }
public string errorCode { get; set; }
public string mygType { get; set; }
public DecHead_data data { get; set; }
public string errors { get; set; }
public List<string> messageList { get; set; }
public List<pdfFileModel> pdfFile { get; set; }
public preDecHeadVo getDecHead()
{
return data.getdata();
}
}
/// <summary>
/// 用于解析接口返回的单一窗口信息
/// </summary>
public class DecHead_data
{
//public string preDecHeadVo { 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;
}
}
/// <summary>
/// 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""}]"",
/// </summary>
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 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;
//危险品信息
DecList.NoDangFlag = Convert.ToInt32(noDangFlag);
DecList.Uncode = unCode;
DecList.DangName = dangName;
DecList.DangPackType = Convert.ToInt32(packType);
DecList.DangPackSpec = packSpec;
DecList.DangPackSpec_Text = packSpec;
return DecList;
}
}
public class preDecHeadVo
{
public DecHead setvalue(DecHead DecHead) {
//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;
//企业名称(中文)
DecHead.TradeName = !string.IsNullOrWhiteSpace(consignorCname)? consignorCname:consigneeCname;
//境外收发货人 consigneeCode??
DecHead.OverseasConsigneeCode = !string.IsNullOrWhiteSpace(consigneeCode)? consigneeCode: consignorCode;
//企业名称(外文)
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; }
/// <summary>
/// ""[]"",
/// </summary>
public string preDecCiqMarkLob { get; set; }
public string contractNo { get; set; }
public string cusCiqNo { get; set; }
public string noteS { get; set; }
/// <summary>
/// ""[]"",
/// </summary>
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<decMergeListVo> getdecMergeListVo()
{
return Newtonsoft.Json.JsonConvert.DeserializeObject<List<decMergeListVo>>(decMergeListVo);
}
//public List<decMergeListVo> 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 transMode { get; set; }
public string cusTradeCountry { get; set; }
public string insurMark { 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; }
/// <summary>
/// ""[{""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""}]"",
/// </summary>
public string preDecContainerVo { get; set; }
public List<preDecContainerVo> getpreDecContainerVo()
{
return Newtonsoft.Json.JsonConvert.DeserializeObject<List<preDecContainerVo>>(preDecContainerVo);
}
//public List<preDecContainerVo> 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; }
/// <summary>
/// ""[{""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"":""[]""},
//...]
/// </summary>
public string preDecDocVo { get; set; }
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; }
/// <summary>
/// ""[{""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""}]"",
/// </summary>
public string cusLicenseListVo { get; set; }
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; }
}
}