|
|
|
|
using System;
|
|
|
|
|
using System.Data;
|
|
|
|
|
using System.Collections;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using HcUtility.Core;
|
|
|
|
|
using System.Xml.Serialization;
|
|
|
|
|
|
|
|
|
|
namespace DSWeb.Areas.Account.Models.RytInvoice
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
[XmlRootAttribute("xml version=”1.0” encoding=”UTF-8”", IsNullable = false)]
|
|
|
|
|
|
|
|
|
|
public class XmlRurnHead
|
|
|
|
|
{
|
|
|
|
|
[XmlElement(ElementName = "SerialNo")]
|
|
|
|
|
public string SerialNo = "";
|
|
|
|
|
[XmlElement(ElementName = "PostTime")]
|
|
|
|
|
public string PostTime = "";
|
|
|
|
|
[XmlElement(ElementName = "Code")]
|
|
|
|
|
public string Code = "";
|
|
|
|
|
[XmlElement(ElementName = "Message")]
|
|
|
|
|
public string Message = "";
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
public class Response
|
|
|
|
|
{
|
|
|
|
|
[XmlElement(ElementName = "head")]
|
|
|
|
|
public XmlRurnHead Head;
|
|
|
|
|
[XmlElement(ElementName = "body")]
|
|
|
|
|
public XmlOrderBody OrderBody;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public class XmlHead
|
|
|
|
|
{
|
|
|
|
|
[XmlElement(ElementName = "PbAccount")]
|
|
|
|
|
public string PbAccount = "";
|
|
|
|
|
[XmlElement(ElementName = "PbPassWord")]
|
|
|
|
|
public string PbPassWord = "";
|
|
|
|
|
[XmlElement(ElementName = "ReCode")]
|
|
|
|
|
public string ReCode = "";
|
|
|
|
|
[XmlElement(ElementName = "SerialNo")]
|
|
|
|
|
public string SerialNo = "";
|
|
|
|
|
[XmlElement(ElementName = "PostTime")]
|
|
|
|
|
public string PostTime = "";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public class Request
|
|
|
|
|
{
|
|
|
|
|
[XmlElement(ElementName = "head")]
|
|
|
|
|
public XmlHead Head;
|
|
|
|
|
[XmlElement(ElementName = "body")]
|
|
|
|
|
public XmlOrderBody OrderBody;
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
public class XmlOrderBody
|
|
|
|
|
{
|
|
|
|
|
[XmlElement(ElementName = "order")]
|
|
|
|
|
public XmlOrderDetail OrderDetail;
|
|
|
|
|
[XmlElement(ElementName = "ctns")]
|
|
|
|
|
public XmlCtns Ctns;
|
|
|
|
|
[XmlElement(ElementName = "expenses")]
|
|
|
|
|
public Xmlexpenses expenses;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public class XmlOrderDetail
|
|
|
|
|
{
|
|
|
|
|
[XmlElement(ElementName = "order_id")]
|
|
|
|
|
public string order_id = "";
|
|
|
|
|
[XmlElement(ElementName = "order_no")]
|
|
|
|
|
public string order_no = "";
|
|
|
|
|
[XmlElement(ElementName = "order_type")]
|
|
|
|
|
public string order_type = "";
|
|
|
|
|
[XmlElement(ElementName = "order_date")]
|
|
|
|
|
public string order_date = "";
|
|
|
|
|
[XmlElement(ElementName = "customer_fullname")]
|
|
|
|
|
public string customer_fullname = "";
|
|
|
|
|
[XmlElement(ElementName = "start_port")]
|
|
|
|
|
public string start_port = "";
|
|
|
|
|
[XmlElement(ElementName = "end_port")]
|
|
|
|
|
public string end_port = "";
|
|
|
|
|
[XmlElement(ElementName = "sail_date")]
|
|
|
|
|
public string sail_date = "";
|
|
|
|
|
[XmlElement(ElementName = "shipname")]
|
|
|
|
|
public string shipname = "";
|
|
|
|
|
[XmlElement(ElementName = "voyage_no")]
|
|
|
|
|
public string voyage_no = "";
|
|
|
|
|
[XmlElement(ElementName = "bill_lading_no")]
|
|
|
|
|
public string bill_lading_no = "";
|
|
|
|
|
[XmlElement(ElementName = "number")]
|
|
|
|
|
public string number = "";
|
|
|
|
|
[XmlElement(ElementName = "weight")]
|
|
|
|
|
public string weight = "";
|
|
|
|
|
[XmlElement(ElementName = "volume")]
|
|
|
|
|
public string volume = "";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public class XmlCtns
|
|
|
|
|
{
|
|
|
|
|
[XmlElement(ElementName = "ctn")]
|
|
|
|
|
public List<XmlCtn> Ctns;
|
|
|
|
|
}
|
|
|
|
|
public class XmlCtn
|
|
|
|
|
{
|
|
|
|
|
[XmlElement(ElementName = "ec_id")]
|
|
|
|
|
public string ec_id = "";
|
|
|
|
|
[XmlElement(ElementName = "ctn_type")]
|
|
|
|
|
public string ctn_type = "";
|
|
|
|
|
[XmlElement(ElementName = "ctn_quantity")]
|
|
|
|
|
public string ctn_quantity = "";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public class Xmlexpenses
|
|
|
|
|
{
|
|
|
|
|
[XmlElement(ElementName = "expense")]
|
|
|
|
|
public List<Xmlexpense> expenses;
|
|
|
|
|
}
|
|
|
|
|
public class Xmlexpense
|
|
|
|
|
{
|
|
|
|
|
[XmlElement(ElementName = "expense_id")]
|
|
|
|
|
public string expense_id = "";
|
|
|
|
|
[XmlElement(ElementName = "expense_name")]
|
|
|
|
|
public string expense_name = "";
|
|
|
|
|
[XmlElement(ElementName = "currency")]
|
|
|
|
|
public string currency = "";
|
|
|
|
|
[XmlElement(ElementName = "price")]
|
|
|
|
|
public string price = "";
|
|
|
|
|
[XmlElement(ElementName = "unit")]
|
|
|
|
|
public string unit = "";
|
|
|
|
|
[XmlElement(ElementName = "quantity")]
|
|
|
|
|
public string quantity = "";
|
|
|
|
|
[XmlElement(ElementName = "amount")]
|
|
|
|
|
public string amount = "";
|
|
|
|
|
[XmlElement(ElementName = "tax_rate")]
|
|
|
|
|
public string tax_rate = "";
|
|
|
|
|
[XmlElement(ElementName = "invoice_content")]
|
|
|
|
|
public string invoice_content = "";
|
|
|
|
|
[XmlElement(ElementName = "amount_notax")]
|
|
|
|
|
public string amount_notax = "";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public class Xmlinvoice
|
|
|
|
|
{
|
|
|
|
|
[XmlElement(ElementName = "head")]
|
|
|
|
|
public XmlHead Head;
|
|
|
|
|
[XmlElement(ElementName = "body")]
|
|
|
|
|
public XmlInvoiceBody InvoiceBody;
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public class XmlInvoiceBody
|
|
|
|
|
{
|
|
|
|
|
[XmlElement(ElementName = "invoices")]
|
|
|
|
|
public XmlInvoiceBodys InvoiceBodys;
|
|
|
|
|
}
|
|
|
|
|
public class XmlInvoiceBodys
|
|
|
|
|
{
|
|
|
|
|
[XmlElement(ElementName = "invoice")]
|
|
|
|
|
public List<XmlInvoicel> InvDetail;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public class XmlInvDetails
|
|
|
|
|
{
|
|
|
|
|
[XmlElement(ElementName = "detail")]
|
|
|
|
|
public List<XmlInvDetail> InvDetail;
|
|
|
|
|
}
|
|
|
|
|
public class XmlInvDetail
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
[XmlElement(ElementName = "expense_name")]
|
|
|
|
|
public string expense_name = "";
|
|
|
|
|
[XmlElement(ElementName = "expense_id")]
|
|
|
|
|
public string expense_id = "";
|
|
|
|
|
[XmlElement(ElementName = "expense_amount")]
|
|
|
|
|
public string expense_amount = "";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public class XmlInvoicel
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
[XmlElement(ElementName = "invoice_id")]
|
|
|
|
|
public string invoice_id = "";
|
|
|
|
|
[XmlElement(ElementName = "customer_name")]
|
|
|
|
|
public string customer_name = "";
|
|
|
|
|
[XmlElement(ElementName = "customer_code")]
|
|
|
|
|
public string customer_code = "";
|
|
|
|
|
[XmlElement(ElementName = "customer_address")]
|
|
|
|
|
public string customer_address = "";
|
|
|
|
|
[XmlElement(ElementName = "customer_tel")]
|
|
|
|
|
public string customer_tel = "";
|
|
|
|
|
[XmlElement(ElementName = "customer_bank_name")]
|
|
|
|
|
public string customer_bank_name = "";
|
|
|
|
|
[XmlElement(ElementName = "customer_bank_account")]
|
|
|
|
|
public string customer_bank_account = "";
|
|
|
|
|
[XmlElement(ElementName = "partner_bank_name")]
|
|
|
|
|
public string partner_bank_name = "";
|
|
|
|
|
[XmlElement(ElementName = "partner_bank_account")]
|
|
|
|
|
public string partner_bank_account = "";
|
|
|
|
|
[XmlElement(ElementName = "drawer")]
|
|
|
|
|
public string drawer = "";
|
|
|
|
|
[XmlElement(ElementName = "payee")]
|
|
|
|
|
public string payee = "";
|
|
|
|
|
[XmlElement(ElementName = "reviewer")]
|
|
|
|
|
public string reviewer = "";
|
|
|
|
|
[XmlElement(ElementName = "total_amount")]
|
|
|
|
|
public string total_amount = "";
|
|
|
|
|
[XmlElement(ElementName = "currency")]
|
|
|
|
|
public string currency = "";
|
|
|
|
|
[XmlElement(ElementName = "remark_type")]
|
|
|
|
|
public string remark_type = "";
|
|
|
|
|
[XmlElement(ElementName = "remark")]
|
|
|
|
|
public string remark = "";
|
|
|
|
|
[XmlElement(ElementName = "email")]
|
|
|
|
|
public string email = "";
|
|
|
|
|
[XmlElement(ElementName = "details")]
|
|
|
|
|
public XmlInvDetails invDetails;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|