using System.Collections.Generic; using System.Xml.Serialization; using BWP.B3ButcherManageExport.BO.NC; namespace BWP.B3ButcherManageExport.BO { [XmlRoot(ElementName = "ufinterface")] public class NcVouchers : NcUfinterfaceEmp { public static NcVouchers New() { return new NcVouchers { Billtype = "gl", Roottag = "voucher", Bills = new List() }; } [XmlElement(ElementName = "voucher")] public List Bills { get; set; } } public class NcVoucher { public NcVoucher() { Head = new NcVoucherHead(); Body = new NcVoucherBody(); } [XmlElement(ElementName = "voucher_head")] public NcVoucherHead Head; [XmlElement(ElementName = "voucher_body")] public NcVoucherBody Body; [XmlIgnore] public List B2BillIDs = new List(); } public class NcVoucherHead { [XmlAttribute("id")] public string Id { get; set; } private string _company = string.Empty; [XmlElement(ElementName = "company")] public string Company { get { return _company; } set { _company = value; } } private string _voucherType = string.Empty; [XmlElement(ElementName = "voucher_type")] public string VoucherType { get { return _voucherType; } set { _voucherType = value; } } private string _fiscalYear = string.Empty; [XmlElement(ElementName = "fiscal_year")] public string FiscalYear { get { return _fiscalYear; } set { _fiscalYear = value; } } private string _accountingPeriod = string.Empty; [XmlElement(ElementName = "accounting_period")] public string AccountingPeriod { get { return _accountingPeriod; } set { _accountingPeriod = value; } } private string _voucherId = string.Empty; [XmlElement(ElementName = "voucher_id")] public string VoucherId { get { return _voucherId; } set { _voucherId = value; } } private string _attachmentNumber = string.Empty; [XmlElement(ElementName = "attachment_number")] public string AttachmentNumber { get { return _attachmentNumber; } set { _attachmentNumber = value; } } private string _date = string.Empty; [XmlElement(ElementName = "date")] public string Date { get { return _date; } set { _date = value; } } private string _enter = string.Empty; [XmlElement(ElementName = "enter")] public string Enter { get { return _enter; } set { _enter = value; } } private string _cashier = string.Empty; [XmlElement(ElementName = "cashier")] public string Cashier { get { return _cashier; } set { _cashier = value; } } private string _signature = string.Empty; [XmlElement(ElementName = "signature")] public string Signature { get { return _signature; } set { _signature = value; } } private string _checker = string.Empty; [XmlElement(ElementName = "checker")] public string Checker { get { return _checker; } set { _checker = value; } } private string _postingDate = string.Empty; [XmlElement(ElementName = "posting_date")] public string PostingDate { get { return _postingDate; } set { _postingDate = value; } } private string _postingPerson = string.Empty; [XmlElement(ElementName = "posting_person")] public string PostingPerson { get { return _postingPerson; } set { _postingPerson = value; } } private string _voucherMakingSystem = string.Empty; [XmlElement(ElementName = "voucher_making_system")] public string VoucherMakingSystem { get { return _voucherMakingSystem; } set { _voucherMakingSystem = value; } } private string _memo1 = string.Empty; [XmlElement(ElementName = "memo1")] public string Memo1 { get { return _memo1; } set { _memo1 = value; } } private string _memo2 = string.Empty; [XmlElement(ElementName = "memo2")] public string Memo2 { get { return _memo2; } set { _memo2 = value; } } private string _reserve1 = string.Empty; [XmlElement(ElementName = "reserve1")] public string Reserve1 { get { return _reserve1; } set { _reserve1 = value; } } private string _reserve2 = string.Empty; [XmlElement(ElementName = "reserve2")] public string Reserve2 { get { return _reserve2; } set { _reserve2 = value; } } private string _revokeflag = string.Empty; [XmlElement(ElementName = "revokeflag")] public string Revokeflag { get { return _revokeflag; } set { _revokeflag = value; } } } public class NcVoucherBody { public NcVoucherBody() { Entrys = new List(); } [XmlElement(ElementName = "entry")] public List Entrys { get; set; } } public class NcVoucherEntry { private string _entryId = string.Empty; [XmlElement(ElementName = "entry_id")] public string EntryId { get { return _entryId; } set { _entryId = value; } } private string _accountCode = string.Empty; [XmlElement(ElementName = "account_code")] public string AccountCode { get { return _accountCode; } set { _accountCode = value; } } private string _abstract = string.Empty; [XmlElement(ElementName = "abstract")] public string Abstract { get { return _abstract; } set { _abstract = value; } } private string _settlement = string.Empty; [XmlElement(ElementName = "settlement")] public string Settlement { get { return _settlement; } set { _settlement = value; } } // private string _bankcode = string.Empty; [XmlElement(ElementName = "bankcode")] public string Bankcode { get { return _bankcode; } set { _bankcode = value; } } private string _notetype = string.Empty; [XmlElement(ElementName = "notetype")] public string Notetype { get { return _notetype; } set { _notetype = value; } } private string _documentId = string.Empty; [XmlElement(ElementName = "document_id")] public string DocumentId { get { return _documentId; } set { _documentId = value; } } private string _documentDate = string.Empty; [XmlElement(ElementName = "document_date")] public string DocumentDate { get { return _documentDate; } set { _documentDate = value; } } private string _currency = string.Empty; [XmlElement(ElementName = "currency")] public string Currency { get { return _currency; } set { _currency = value; } } private string _unitPrice = string.Empty; [XmlElement(ElementName = "unit_price")] public string UnitPrice { get { return _unitPrice; } set { _unitPrice = value; } } private string _exchangeRate1 = string.Empty; [XmlElement(ElementName = "exchange_rate1")] public string ExchangeRate1 { get { return _exchangeRate1; } set { _exchangeRate1 = value; } } private string _exchangeRate2 = string.Empty; [XmlElement(ElementName = "exchange_rate2")] public string ExchangeRate2 { get { return _exchangeRate2; } set { _exchangeRate2 = value; } } private string _debitQuantity = string.Empty; [XmlElement(ElementName = "debit_quantity")] public string DebitQuantity { get { return _debitQuantity; } set { _debitQuantity = value; } } private string _primaryDebitAmount = string.Empty; [XmlElement(ElementName = "primary_debit_amount")] public string PrimaryDebitAmount { get { return _primaryDebitAmount; } set { _primaryDebitAmount = value; } } private string _secondaryDebitAmount = string.Empty; [XmlElement(ElementName = "secondary_debit_amount")] public string SecondaryDebitAmount { get { return _secondaryDebitAmount; } set { _secondaryDebitAmount = value; } } private string _naturalDebitCurrency = string.Empty; [XmlElement(ElementName = "natural_debit_currency")] public string NaturalDebitCurrency { get { return _naturalDebitCurrency; } set { _naturalDebitCurrency = value; } } private string _creditQuantity = string.Empty; [XmlElement(ElementName = "credit_quantity")] public string CreditQuantity { get { return _creditQuantity; } set { _creditQuantity = value; } } private string _primaryCreditAmount = string.Empty; [XmlElement(ElementName = "primary_credit_amount")] public string PrimaryCreditAmount { get { return _primaryCreditAmount; } set { _primaryCreditAmount = value; } } private string _secondaryCreditAmount = string.Empty; [XmlElement(ElementName = "secondary_credit_amount")] public string SecondaryCreditAmount { get { return _secondaryCreditAmount; } set { _secondaryCreditAmount = value; } } private string _naturalCreditCurrency = string.Empty; [XmlElement(ElementName = "natural_credit_currency")] public string NaturalCreditCurrency { get { return _naturalCreditCurrency; } set { _naturalCreditCurrency = value; } } private string _billType = string.Empty; [XmlElement(ElementName = "bill_type")] public string BillType { get { return _billType; } set { _billType = value; } } private string _billId = string.Empty; [XmlElement(ElementName = "bill_id")] public string BillId { get { return _billId; } set { _billId = value; } } private string _billDate = string.Empty; [XmlElement(ElementName = "bill_date")] public string BillDate { get { return _billDate; } set { _billDate = value; } } private string _detail = string.Empty; [XmlElement(ElementName = "detail")] public string Detail { get { return _detail; } set { _detail = value; } } public NcVoucherEntry() { Accountings = new AuxiliaryAccounting(); } [XmlElement(ElementName = "auxiliary_accounting")] public AuxiliaryAccounting Accountings; [XmlElement(ElementName = "otheruserdata")] public Otheruserdata Otheruserdata; } public class AuxiliaryAccounting { public AuxiliaryAccounting() { Items = new List(); } [XmlElement(ElementName = "item")] public List Items; } public class Items { private string _value = string.Empty; [XmlText] public string Value { get { return _value; } set { _value = value; } } [XmlAttribute("name")] public string Name { get; set; } } public class Otheruserdata { public Otheruserdata() { Cashflowcase = new Cashflowcase(); } [XmlElement(ElementName = "cashflowcase")] public Cashflowcase Cashflowcase; } public class Cashflowcase { private string _money = string.Empty; [XmlElement(ElementName = "money")] public string Money { get { return _money; } set { _money = value; } } private string _moneyass = string.Empty; [XmlElement(ElementName = "moneyass")] public string Moneyass { get { return _moneyass; } set { _moneyass = value; } } private string _moneymain = string.Empty; [XmlElement(ElementName = "moneymain")] public string Moneymain { get { return _moneymain; } set { _moneymain = value; } } private string _pkCashflow = string.Empty; [XmlElement(ElementName = "pk_cashflow")] public string PkCashflow { get { return _pkCashflow; } set { _pkCashflow = value; } } } }