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.

571 lines
19 KiB
C#

10 months ago
using System;
using System.Data;
using System.Collections;
using System.Collections.Generic;
using HcUtility.Core;
using System.Xml.Serialization;
namespace DSWeb.DsWebService.XmlManifest
{
[XmlRootAttribute("Manifest", Namespace = "urn:Declaration:datamodel:standard:CN:MT2101:1",
IsNullable = false)]
public class Manifest
{
public XmlHead Head;
public XmlDeclaration Declaration;
}
public class XmlHead
{
[XmlElement(ElementName = "MessageID")]
public string MessageID="";
[XmlElement(ElementName = "FunctionCode")]
public string FunctionCode = "";
[XmlElement(ElementName = "MessageType")]
public string MessageType = "";
[XmlElement(ElementName = "SenderID")]
public string SenderID = "";
[XmlElement(ElementName = "ReceiverID")]
public string ReceiverID = "";
[XmlElement(ElementName = "SendTime")]
public string SendTime = "";
[XmlElement(ElementName = "Version")]
public string Version = "";
}
public class XmlDeclaration
{
[XmlElement(ElementName = "RepresentativePerson")]
public XmlRepresentativePerson RepresentativePerson;
[XmlElement(ElementName = "ExitCustomsOffice")]
public XmlExitCustomsOffice ExitCustomsOffice;
[XmlElement(ElementName = "Agent")]
public XmlExitCustomsOffice Agent;
[XmlElement(ElementName = "Carrier")]
public XmlExitCustomsOffice Carrier;
[XmlElement(ElementName = "BorderTransportMeans")]
public XmlBorderTransportMeans BorderTransportMeans;
//[XmlArray("Consignment")]
[XmlElement(ElementName = "Consignment")]
public XmlConsignment[] Consignment;
[XmlElement(ElementName = "AdditionalInformation")]
public XmlAdditionalInformation AdditionalInformation;
}
public class XmlAdditionalInformation
{
[XmlElement(ElementName = "Content")]
public string Content = "";
}
public class XmlConsignment
{
[XmlElement(ElementName = "TransportContractDocument")]
public XmlTransportContractDocument TransportContractDocument;
[XmlElement(ElementName = "AssociatedTransportDocument")]
public XmlExitCustomsOffice AssociatedTransportDocument;
[XmlElement(ElementName = "GrossVolumeMeasure")]
public string GrossVolumeMeasure = "";
[XmlElement(ElementName = "ValueAmount")]
public string ValueAmount = "";
[XmlElement(ElementName = "LoadingLocation")]
public XmlLoadingLocation LoadingLocation;
[XmlElement(ElementName = "UnloadingLocation")]
public XmlUnloadingLocation UnloadingLocation;
[XmlElement(ElementName = "GoodsReceiptPlace")]
public XmlGoodsReceiptPlace GoodsReceiptPlace;
[XmlElement(ElementName = "TranshipmentLocation")]
public XmlExitCustomsOffice TranshipmentLocation;
[XmlElement(ElementName = "TransitDestination")]
public XmlExitCustomsOffice TransitDestination;
[XmlElement(ElementName = "RoutingCountryCode")]
public string[] RoutingCountryCode;
[XmlElement(ElementName = "GoodsConsignedPlace")]
public XmlExitCustomsOffice GoodsConsignedPlace;
[XmlElement(ElementName = "CustomsStatusCode")]
public string CustomsStatusCode = "";
[XmlElement(ElementName = "TransportSplitIndicator")]
public string TransportSplitIndicator = "";
[XmlElement(ElementName = "FreightPayment")]
public XmlFreightPayment FreightPayment ;
[XmlElement(ElementName = "ConsignmentPackaging")]
public XmlConsignmentPackaging ConsignmentPackaging;
[XmlElement(ElementName = "TotalGrossMassMeasure")]
public string TotalGrossMassMeasure = "";
[XmlElement(ElementName = "PreviousCustomsDocument")]
public XmlPreviousCustomsDocument PreviousCustomsDocument;
[XmlElement(ElementName = "DeliveryDestination")]
public XmlAddress DeliveryDestination;
[XmlElement(ElementName = "Handling")]
public XmlHandling Handling;
[XmlElement(ElementName = "IntermediateCarrier")]
public XmlIntermediateCarrier IntermediateCarrier;
[XmlElement(ElementName = "Consignee")]
public XmlConsignee Consignee;
[XmlElement(ElementName = "Consignor")]
public XmlConsignee Consignor;
[XmlElement(ElementName = "NotifyParty")]
public XmlConsignee NotifyParty;
[XmlElement(ElementName = "UNDGContact")]
public XmlContact UNDGContact;
[XmlElement(ElementName = "TransportEquipment")]
public XmlTransportEquipment[] TransportEquipment;
[XmlElement(ElementName = "ConsignmentItem")]
public XmlConsignmentItem[] ConsignmentItem;
}
public class XmlConsignmentItem
{
public string SequenceNumeric = "";
public XmlConsignmentItemPackaging ConsignmentItemPackaging;
public XmlCommodity Commodity;
public XmlAdditionalInformation AdditionalInformation;
public XmlGoodsMeasure GoodsMeasure;
public XmlExitCustomsOffice EquipmentIdentification;
public XmlCustomsProcedure CustomsProcedure;
public XmlExitCustomsOffice UCR;
public XmlOrigin Origin;
}
public class XmlOrigin
{
public string OriginCountryCode = "";
}
public class XmlCustomsProcedure
{
public string CurrentCode = "";
}
public class XmlGoodsMeasure
{
public string GrossMassMeasure = "";
}
public class XmlCommodity
{
public string CargoDescription = "";
public string UNDGCode = "";
public string TariffClassificationCode = "";
}
public class XmlConsignmentItemPackaging
{
public string QuantityQuantity = "";
public string TypeCode = "";
public string MarksNumbers = "";
}
public class XmlTransportEquipment
{
public XmlExitCustomsOffice EquipmentIdentification;
public string CharacteristicCode = "";
public string SupplierPartyTypeCode = "";
public string FullnessCode = "";
public string SealID = "";
}
public class XmlConsignee
{
[XmlElement(ElementName = "ID")]
public string ID = "";
[XmlElement(ElementName = "Name")]
public string Name = "";
[XmlElement(ElementName = "Address")]
public XmlAddress Address;
[XmlElement(ElementName = "Communication")]
public XmlCommunication Communication;
[XmlElement(ElementName = "Contact")]
public XmlContact Contact;
}
public class XmlContact
{
[XmlElement(ElementName = "Name")]
public string Name = "";
[XmlElement(ElementName = "Communication")]
public XmlCommunication Communication;
}
public class XmlIntermediateCarrier
{
[XmlElement(ElementName = "ID")]
public string ID = "";
[XmlElement(ElementName = "Communication")]
public XmlCommunication Communication;
}
public class XmlCommunication
{
[XmlElement(ElementName = "ID")]
public string ID = "";
[XmlElement(ElementName = "TypeID")]
public string TypeID = "";
}
public class XmlHandling
{
[XmlElement(ElementName = "InstructionsCodeCode")]
public string InstructionsCodeCode = "";
}
public class XmlAddress
{
[XmlElement(ElementName = "Line")]
public string Line = "";
[XmlElement(ElementName = "CityName")]
public string CityName = "";
[XmlElement(ElementName = "CountrySubEntityID")]
public string CountrySubEntityID = "";
[XmlElement(ElementName = "CountrySubEntityName")]
public string CountrySubEntityName = "";
[XmlElement(ElementName = "PostcodeID")]
public string PostcodeID = "";
[XmlElement(ElementName = "CountryCode")]
public string CountryCode = "";
}
public class XmlPreviousCustomsDocument
{
[XmlElement(ElementName = "ID")]
public string ID = "";
[XmlElement(ElementName = "TypeCode")]
public string TypeCode = "";
}
public class XmlConsignmentPackaging
{
[XmlElement(ElementName = "QuantityQuantity")]
public string QuantityQuantity = "";
[XmlElement(ElementName = "TypeCode")]
public string TypeCode = "";
}
public class XmlFreightPayment
{
[XmlElement(ElementName = "MethodCode")]
public string MethodCode = "";
}
public class XmlGoodsReceiptPlace
{
[XmlElement(ElementName = "ID")]
public string ID = "";
[XmlElement(ElementName = "Name")]
public string Name = "";
}
public class XmlRepresentativePerson
{
[XmlElement(ElementName = "Name")]
public string Name = "";
}
public class XmlExitCustomsOffice
{
[XmlElement(ElementName = "ID")]
public string ID = "";
}
public class XmlBorderTransportMeans
{
[XmlElement(ElementName = "JourneyID")]
public string JourneyID = "";
[XmlElement(ElementName = "TypeCode")]
public string TypeCode = "";
[XmlElement(ElementName = "ID")]
public string ID = "";
[XmlElement(ElementName = "Name")]
public string Name = "";
[XmlElement(ElementName = "FirstArrivalLocationID")]
public string FirstArrivalLocationID = "";
[XmlElement(ElementName = "ArrivalDateTime")]
public string ArrivalDateTime = "";
[XmlElement(ElementName = "DepartureDateTime")]
public string DepartureDateTime = "";
}
public class XmlTransportContractDocument
{
[XmlElement(ElementName = "ID")]
public string ID = "";
[XmlElement(ElementName = "ChangeReasonCode")]
public List<String> ChangeReasonCode;
[XmlElement(ElementName = "ConditionCode")]
public string ConditionCode = "";
[XmlElement(ElementName = "Consolidator")]
public XmlExitCustomsOffice Consolidator;
}
//public class XmlChangeReasonCode
//{
// [XmlElement(ElementName = "ChangeReasonCode")]
// public string ChangeReasonCode;
//}
public class XmlLoadingLocation
{
[XmlElement(ElementName = "ID")]
public string ID = "";
[XmlElement(ElementName = "LoadingDate")]
public string LoadingDate = "";
}
public class XmlUnloadingLocation
{
[XmlElement(ElementName = "ID")]
public string ID = "";
[XmlElement(ElementName = "ArrivalDate")]
public string ArrivalDate = "";
}
[XmlRootAttribute("ManifestStatus", Namespace = "urn:Declaration:datamodel:standard:CN:MT2101:1",
IsNullable = true)]
public class ManifestStatus
{
[XmlElement(ElementName = "BillStatus")]
public List<XmlBillStatus> BillStatus;
}
public class XmlBillStatus
{
[XmlElement(ElementName = "CH_ID")]
public string CH_ID = "";
[XmlElement(ElementName = "MBLNO")]
public string MBLNO = "";
[XmlElement(ElementName = "CNTRNO")]
public string CNTRNO { get; set; }
[XmlElement(ElementName = "SEALNO")]
public string SEALNO = "";
[XmlElement(ElementName = "DATESTR")]
public string DATESTR = "";
[XmlElement(ElementName = "VOYNO")]
public string VOYNO = "";
[XmlElement(ElementName = "STATUS")]
public string STATUS = "";
[XmlElement(ElementName = "FILENAME")]
public string FILENAME = "";
}
[XmlRootAttribute("SeaiManifest", Namespace = "urn:Declaration:datamodel:standard:CN:MT2101:1",
IsNullable = true)]
public class SeaiManifest
{
[XmlElement(ElementName = "ERROMSG")]
public string ERROMSG = "";
[XmlElement(ElementName = "SeaiBs")]
public List<XmlSeaiBs> SeaiBs;
}
public class XmlSeaiBs
{
[XmlElement(ElementName = "MBLNO")]
public string MBLNO = "";
[XmlElement(ElementName = "CUSTOMERNAME")]
public string CUSTOMERNAME { get; set; }
[XmlElement(ElementName = "VESSEL")]
public string VESSEL = "";
[XmlElement(ElementName = "VOYNO")]
public string VOYNO = "";
[XmlElement(ElementName = "ETD")]
public string ETD = "";
[XmlElement(ElementName = "ETA")]
public string ETA = "";
[XmlElement(ElementName = "PONO")]
public string PONO = "";
[XmlElement(ElementName = "PICINO")]
public string PICINO = "";
[XmlElement(ElementName = "GOODSNAME")]
public string GOODSNAME = "";
[XmlElement(ElementName = "GOODSCODE")]
public string GOODSCODE = "";
[XmlElement(ElementName = "PKGS")]
public string PKGS = "";
[XmlElement(ElementName = "KGS")]
public string KGS = "";
[XmlElement(ElementName = "KINDPKGS")]
public string KINDPKGS = "";
[XmlElement(ElementName = "GOODSSTANDARD")]
public string GOODSSTANDARD = "";
[XmlElement(ElementName = "STORAGENAME")]
public string STORAGENAME = "";
[XmlElement(ElementName = "BSSTATUS")]
public string BSSTATUS = "";
[XmlElement(ElementName = "BSSTATUSTIME")]
public string BSSTATUSTIME = "";
[XmlElement(ElementName = "BSSTATUSDESCRIPTION")]
public string BSSTATUSDESCRIPTION = "";
[XmlElement(ElementName = "BSSTATUSLIST")]
public List<XmlSeaiBsStatus> BSSTATUSLIST;
}
public class SeaeManifest
{
[XmlElement(ElementName = "ERROMSG")]
public string ERROMSG = "";
[XmlElement(ElementName = "SeaeBs")]
public List<XmlSeaeBs> SeaeBs;
[XmlElement(ElementName = "RECCOUNT")]
public Int32 RECCOUNT = 0;
}
public class XmlSeaeBs
{
[XmlElement(ElementName = "MBLNO")]
public string MBLNO = "";
[XmlElement(ElementName = "CUSTOMERNAME")]
public string CUSTOMERNAME { get; set; }
[XmlElement(ElementName = "VESSEL")]
public string VESSEL = "";
[XmlElement(ElementName = "VOYNO")]
public string VOYNO = "";
[XmlElement(ElementName = "ETD")]
public string ETD = "";
[XmlElement(ElementName = "ETA")]
public string ETA = "";
[XmlElement(ElementName = "CARRIER")]
public string CARRIER = "";
[XmlElement(ElementName = "CNTRTOTAL")]
public string CNTRTOTAL = "";
[XmlElement(ElementName = "BLFRT")]
public string BLFRT = "";
[XmlElement(ElementName = "DESTINATION")]
public string DESTINATION = "";
[XmlElement(ElementName = "ISSUETYPE")]
public string ISSUETYPE = "";
[XmlElement(ElementName = "YARD")]
public string YARD = "";
[XmlElement(ElementName = "YARDATTN")]
public string YARDATTN = "";
[XmlElement(ElementName = "CLOSEDOCDATE")]
public string CLOSEDOCDATE = "";
[XmlElement(ElementName = "CLOSINGDATE")]
public string CLOSINGDATE = "";
[XmlElement(ElementName = "OPATTN")]
public string OPATTN = "";
[XmlElement(ElementName = "SALEATTN")]
public string SALEATTN = "";
[XmlElement(ElementName = "CUSTSERVICE")]
public string CUSTSERVICE = "";
[XmlElement(ElementName = "CUSTSERVICETEL")]
public string CUSTSERVICETEL = "";
[XmlElement(ElementName = "SHIPAGENCY")]
public string SHIPAGENCY = "";
[XmlElement(ElementName = "PKGS")]
public string PKGS = "";
[XmlElement(ElementName = "KGS")]
public string KGS = "";
[XmlElement(ElementName = "CBM")]
public string CBM = "";
[XmlElement(ElementName = "KINDPKGS")]
public string KINDPKGS = "";
[XmlElement(ElementName = "BSSTATUS")]
public string BSSTATUS = "";
[XmlElement(ElementName = "BSSTATUSTIME")]
public string BSSTATUSTIME = "";
[XmlElement(ElementName = "BSSTATUSDESCRIPTION")]
public string BSSTATUSDESCRIPTION = "";
[XmlElement(ElementName = "BSSTATUSLIST")]
public List<XmlSeaiBsStatus> BSSTATUSLIST;
}
public class XmlSeaiBsGoodsDetail
{
[XmlElement(ElementName = "PONO")]
public string PONO = "";
[XmlElement(ElementName = "PICINO")]
public string PICINO = "";
[XmlElement(ElementName = "GOODSNAME")]
public string GOODSNAME = "";
[XmlElement(ElementName = "GOODSCODE")]
public string GOODSCODE = "";
[XmlElement(ElementName = "PKGS")]
public string PKGS = "";
[XmlElement(ElementName = "KGS")]
public string KGS = "";
[XmlElement(ElementName = "KINDPKGS")]
public string KINDPKGS = "";
[XmlElement(ElementName = "GOODSSTANDARD")]
public string GOODSSTANDARD = "";
}
public class XmlSeaiBsStatus
{
[XmlElement(ElementName = "BSSTATUS")]
public string BSSTATUS = "";
[XmlElement(ElementName = "BSSTATUSTIME")]
public string BSSTATUSTIME = "";
[XmlElement(ElementName = "BSSTATUSDESCRIPTION")]
public string BSSTATUSDESCRIPTION = "";
}
public class XmlSeaiBsGoodsWmsIn
{
[XmlElement(ElementName = "PONO")]
public string PONO = "";
[XmlElement(ElementName = "PICINO")]
public string PICINO = "";
[XmlElement(ElementName = "WMSDATE")]
public string WMSDATE = "";
[XmlElement(ElementName = "WMSNO")]
public string WMSNO = "";
[XmlElement(ElementName = "GOODSNAME")]
public string GOODSNAME = "";
[XmlElement(ElementName = "GOODSCODE")]
public string GOODSCODE = "";
[XmlElement(ElementName = "GOODSPACK")]
public string GOODSPACK = "";
[XmlElement(ElementName = "GOODSPACKSTOCK")]
public string GOODSPACKSTOCK = "";
[XmlElement(ElementName = "GOODSRKSL")]
public string GOODSRKSL = "";
[XmlElement(ElementName = "GOODSSTOCK")]
public string GOODSSTOCK = "";
[XmlElement(ElementName = "STORAGENAME")]
public string STORAGENAME = "";
}
public class XmlSeaiBsGoodsWmsOut
{
[XmlElement(ElementName = "PONO")]
public string PONO = "";
[XmlElement(ElementName = "PICINO")]
public string PICINO = "";
[XmlElement(ElementName = "OUTDATE")]
public string OUTDATE= "";
[XmlElement(ElementName = "WMSOUTNO")]
public string WMSOUTNO = "";
[XmlElement(ElementName = "GOODSNAME")]
public string GOODSNAME = "";
[XmlElement(ElementName = "GOODSCODE")]
public string GOODSCODE = "";
[XmlElement(ElementName = "GOODSPFSL")]
public string GOODSPFSL = "";
[XmlElement(ElementName = "GOODSPACKPFSL")]
public string GOODSPACKPFSL = "";
[XmlElement(ElementName = "TRUCKNO")]
public string TRUCKNO = "";
}
}