|
|
|
|
using System;
|
|
|
|
|
using System.Data;
|
|
|
|
|
using System.Collections;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using HcUtility.Core;
|
|
|
|
|
using Newtonsoft.Json;
|
|
|
|
|
|
|
|
|
|
namespace DSWeb.Areas.Account.Models.Chfee_Invoice
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
[JsonObject]
|
|
|
|
|
public class ChInvoice : ModelObjectBillHead
|
|
|
|
|
{
|
|
|
|
|
#region 私有成员
|
|
|
|
|
private string _gid = String.Empty;//主键唯一值
|
|
|
|
|
private string _billno = "*";//主键唯一值
|
|
|
|
|
private string _customername;//
|
|
|
|
|
private string _actualcustomername;//
|
|
|
|
|
private string _invoiceno;//
|
|
|
|
|
private string _invoicecustname;//
|
|
|
|
|
private string _invoicecategory = "0";
|
|
|
|
|
private string _invoicecategoryref = "";
|
|
|
|
|
private int _invoicetype = 0;
|
|
|
|
|
|
|
|
|
|
private string _invoicetyperef = "";
|
|
|
|
|
private int _billstatus = 0;
|
|
|
|
|
private string _billstatusref = "";
|
|
|
|
|
private string _currency = "RMB";
|
|
|
|
|
private string _RECVCURR = "RMB";
|
|
|
|
|
private decimal _amount = 0;
|
|
|
|
|
private decimal _invamount = 0;
|
|
|
|
|
private decimal _otcurramount = 0;
|
|
|
|
|
private string _amountcapital = "";
|
|
|
|
|
private decimal _rate = 0;
|
|
|
|
|
private string _applicant;//
|
|
|
|
|
private string _applicantname;//
|
|
|
|
|
private DateTime? _applytime = null;
|
|
|
|
|
private string _invoicemaketime = DateTime.Now.ToString("yyyy-MM-dd");
|
|
|
|
|
private string _operator;//
|
|
|
|
|
private string _operatorname;//
|
|
|
|
|
private DateTime? _operatetime = DateTime.Now;
|
|
|
|
|
private string _remark;//
|
|
|
|
|
private string _companyid;
|
|
|
|
|
private string _bsno;
|
|
|
|
|
private string _mblno;
|
|
|
|
|
private string _vesselvoyage;
|
|
|
|
|
private string _etd;
|
|
|
|
|
private string _pol;
|
|
|
|
|
private string _pod;
|
|
|
|
|
private string _custrateno;
|
|
|
|
|
private string _custaddrtel;
|
|
|
|
|
private string _custbank;
|
|
|
|
|
private string _bank;
|
|
|
|
|
private string _account;
|
|
|
|
|
private string _licensecode;
|
|
|
|
|
private string _taxcode;
|
|
|
|
|
private string _isneedprint;
|
|
|
|
|
private string _isneedfee;
|
|
|
|
|
private string _isdelete;
|
|
|
|
|
private DateTime? _deletetime = null;
|
|
|
|
|
private string _deleteoperator;//
|
|
|
|
|
private string _deloperatorname;//
|
|
|
|
|
private string _voucherno;
|
|
|
|
|
private string _vouno;
|
|
|
|
|
private string _nostl;
|
|
|
|
|
private string _feeamount;
|
|
|
|
|
private string _CREATEUSER;//
|
|
|
|
|
private string _CREATETIME = DateTime.Now.ToString("yyyy-MM-dd");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
public ChInvoice()
|
|
|
|
|
{
|
|
|
|
|
TableName = "ch_fee_invoice";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#region 读写属性
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 主键唯一值
|
|
|
|
|
/// </summary>
|
|
|
|
|
///
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[ModelDB(MDBType = ModelDBOprationType.All, IsPrimary = true)]
|
|
|
|
|
public string GID
|
|
|
|
|
{
|
|
|
|
|
get { return _gid; }
|
|
|
|
|
set { _gid = value; }
|
|
|
|
|
}
|
|
|
|
|
[ModelDB]
|
|
|
|
|
public string BILLNO
|
|
|
|
|
{
|
|
|
|
|
get { return _billno; }
|
|
|
|
|
set { _billno = value; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[ModelDB(MDBType = ModelDBOprationType.Insert)]
|
|
|
|
|
public string CREATEUSER
|
|
|
|
|
{
|
|
|
|
|
get { return _CREATEUSER; }
|
|
|
|
|
set { _CREATEUSER = value; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public string CREATEUSERREF { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[ModelDB(MDBType = ModelDBOprationType.Insert)]
|
|
|
|
|
public string CREATETIME
|
|
|
|
|
{
|
|
|
|
|
get { return _CREATETIME; }
|
|
|
|
|
set { _CREATETIME = value; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[ModelDB]
|
|
|
|
|
public string CUSTOMERNAME
|
|
|
|
|
{
|
|
|
|
|
get { return _customername; }
|
|
|
|
|
set { _customername = value; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public string CUSTOMERFULLNAME
|
|
|
|
|
{ get; set; }
|
|
|
|
|
|
|
|
|
|
[ModelDB]
|
|
|
|
|
public string ACTUALCUSTOMERNAME
|
|
|
|
|
{
|
|
|
|
|
get { return _actualcustomername; }
|
|
|
|
|
set { _actualcustomername = value; }
|
|
|
|
|
}
|
|
|
|
|
[ModelDB]
|
|
|
|
|
public string CURRENCY
|
|
|
|
|
{
|
|
|
|
|
get { return _currency; }
|
|
|
|
|
set { _currency = value; }
|
|
|
|
|
}
|
|
|
|
|
[ModelDB]
|
|
|
|
|
public string RECVCURR
|
|
|
|
|
{
|
|
|
|
|
get { return _RECVCURR; }
|
|
|
|
|
set { _RECVCURR = value; }
|
|
|
|
|
}
|
|
|
|
|
[ModelDB]
|
|
|
|
|
public string INVOICENO
|
|
|
|
|
{
|
|
|
|
|
get { return _invoiceno; }
|
|
|
|
|
set { _invoiceno = value; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[ModelDB]
|
|
|
|
|
public string INVOICECUSTNAME
|
|
|
|
|
{
|
|
|
|
|
get { return _invoicecustname; }
|
|
|
|
|
set { _invoicecustname = value; }
|
|
|
|
|
}
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 1自由发票 2申请发票
|
|
|
|
|
/// </summary>
|
|
|
|
|
[ModelDB]
|
|
|
|
|
public int INVOICETYPE
|
|
|
|
|
{
|
|
|
|
|
get { return _invoicetype; }
|
|
|
|
|
set { _invoicetype = value; }
|
|
|
|
|
}
|
|
|
|
|
public string INVOICETYPEREF
|
|
|
|
|
{
|
|
|
|
|
get { return _invoicetyperef; }
|
|
|
|
|
set { _invoicetyperef = value; }
|
|
|
|
|
}
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 1锁定 0未锁定
|
|
|
|
|
/// </summary>
|
|
|
|
|
[ModelDB]
|
|
|
|
|
public int BILLSTATUS
|
|
|
|
|
{
|
|
|
|
|
get { return _billstatus; }
|
|
|
|
|
set { _billstatus = value; }
|
|
|
|
|
}
|
|
|
|
|
public string BILLSTATUSREF
|
|
|
|
|
{
|
|
|
|
|
get { return _billstatusref; }
|
|
|
|
|
set { _billstatusref = value; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[ModelDB]
|
|
|
|
|
public string INVOICECATEGORY
|
|
|
|
|
{
|
|
|
|
|
get { return _invoicecategory; }
|
|
|
|
|
set { _invoicecategory = value; }
|
|
|
|
|
}
|
|
|
|
|
public string INVOICECATEGORYREF
|
|
|
|
|
{
|
|
|
|
|
get { return _invoicecategoryref; }
|
|
|
|
|
set { _invoicecategoryref = value; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[ModelDB]
|
|
|
|
|
public decimal INVAMOUNT
|
|
|
|
|
{
|
|
|
|
|
get { return _invamount; }
|
|
|
|
|
set { _invamount = value; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[ModelDB]
|
|
|
|
|
public decimal AMOUNT
|
|
|
|
|
{
|
|
|
|
|
get { return _amount; }
|
|
|
|
|
set { _amount = value; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[ModelDB]
|
|
|
|
|
public decimal OTCURRAMOUNT
|
|
|
|
|
{
|
|
|
|
|
get { return _otcurramount; }
|
|
|
|
|
set { _otcurramount = value; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 金额大写
|
|
|
|
|
/// </summary>
|
|
|
|
|
[ModelDB]
|
|
|
|
|
public string AMOUNTCAPITAL
|
|
|
|
|
{
|
|
|
|
|
get { return _amountcapital; }
|
|
|
|
|
set { _amountcapital = value; }
|
|
|
|
|
}
|
|
|
|
|
[ModelDB]
|
|
|
|
|
public decimal EXCHANGERATE
|
|
|
|
|
{
|
|
|
|
|
get { return _rate; }
|
|
|
|
|
set { _rate = value; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public string APPLICANT
|
|
|
|
|
{
|
|
|
|
|
get { return _applicant; }
|
|
|
|
|
set { _applicant = value; }
|
|
|
|
|
}
|
|
|
|
|
public string APPLICANTDEPT { get; set; }
|
|
|
|
|
public string APPLICANTNAME
|
|
|
|
|
{
|
|
|
|
|
get { return _applicantname; }
|
|
|
|
|
set { _applicantname = value; }
|
|
|
|
|
}
|
|
|
|
|
public string LOCKUSER { get; set; }
|
|
|
|
|
public DateTime? APPLYTIME
|
|
|
|
|
{
|
|
|
|
|
get { return _applytime; }
|
|
|
|
|
set { _applytime = value; }
|
|
|
|
|
}
|
|
|
|
|
[ModelDB]
|
|
|
|
|
public string INVOICEMAKETIME
|
|
|
|
|
{
|
|
|
|
|
get { return _invoicemaketime; }
|
|
|
|
|
set { _invoicemaketime = value; }
|
|
|
|
|
}
|
|
|
|
|
[ModelDB]
|
|
|
|
|
public string OPERATOR
|
|
|
|
|
{
|
|
|
|
|
get { return _operator; }
|
|
|
|
|
set { _operator = value; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public string OPERATORNAME
|
|
|
|
|
{
|
|
|
|
|
get { return _operatorname; }
|
|
|
|
|
set { _operatorname = value; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[ModelDB]
|
|
|
|
|
public DateTime? OPERATETIME
|
|
|
|
|
{
|
|
|
|
|
get { return _operatetime; }
|
|
|
|
|
set { _operatetime = value; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[ModelDB]
|
|
|
|
|
public string COMPANYID
|
|
|
|
|
{
|
|
|
|
|
get { return _companyid; }
|
|
|
|
|
set { _companyid = value; }
|
|
|
|
|
}
|
|
|
|
|
private string _salecorpid = "";
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 分公司代码
|
|
|
|
|
/// </summary>
|
|
|
|
|
[ModelDB]
|
|
|
|
|
public string SALECORPID
|
|
|
|
|
{
|
|
|
|
|
get { return _salecorpid; }
|
|
|
|
|
set { _salecorpid = value; }
|
|
|
|
|
}
|
|
|
|
|
private string _salecorp = "";
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 分公司代码
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string SALECORP
|
|
|
|
|
{
|
|
|
|
|
get { return _salecorp; }
|
|
|
|
|
set { _salecorp = value; }
|
|
|
|
|
}
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 备注
|
|
|
|
|
/// </summary>
|
|
|
|
|
[ModelDB]
|
|
|
|
|
public string REMARK
|
|
|
|
|
{
|
|
|
|
|
get { return _remark; }
|
|
|
|
|
set { _remark = value; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[ModelDB]
|
|
|
|
|
public string BSNO
|
|
|
|
|
{
|
|
|
|
|
get { return _bsno; }
|
|
|
|
|
set { _bsno = value; }
|
|
|
|
|
}
|
|
|
|
|
[ModelDB]
|
|
|
|
|
public string MBLNO
|
|
|
|
|
{
|
|
|
|
|
get { return _mblno; }
|
|
|
|
|
set { _mblno = value; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[ModelDB]
|
|
|
|
|
public string VESSELVOYAGE
|
|
|
|
|
{
|
|
|
|
|
get { return _vesselvoyage; }
|
|
|
|
|
set { _vesselvoyage = value; }
|
|
|
|
|
}
|
|
|
|
|
[ModelDB]
|
|
|
|
|
public string ETD
|
|
|
|
|
{
|
|
|
|
|
get { return _etd; }
|
|
|
|
|
set { _etd = value; }
|
|
|
|
|
}
|
|
|
|
|
[ModelDB]
|
|
|
|
|
public string POL
|
|
|
|
|
{
|
|
|
|
|
get { return _pol; }
|
|
|
|
|
set { _pol = value; }
|
|
|
|
|
}
|
|
|
|
|
[ModelDB]
|
|
|
|
|
public string POD
|
|
|
|
|
{
|
|
|
|
|
get { return _pod; }
|
|
|
|
|
set { _pod = value; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 购方税号
|
|
|
|
|
/// </summary>
|
|
|
|
|
[ModelDB]
|
|
|
|
|
public string CUSTRATENO
|
|
|
|
|
{
|
|
|
|
|
get { return _custrateno; }
|
|
|
|
|
set { _custrateno = value; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[ModelDB]
|
|
|
|
|
public string CUSTADDRTEL
|
|
|
|
|
{
|
|
|
|
|
get { return _custaddrtel; }
|
|
|
|
|
set { _custaddrtel = value; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[ModelDB]
|
|
|
|
|
public string CUSTBANK
|
|
|
|
|
{
|
|
|
|
|
get { return _custbank; }
|
|
|
|
|
set { _custbank = value; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[ModelDB]
|
|
|
|
|
public string BANK
|
|
|
|
|
{
|
|
|
|
|
get { return _bank; }
|
|
|
|
|
set { _bank = value; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[ModelDB]
|
|
|
|
|
public string ACCOUNT
|
|
|
|
|
{
|
|
|
|
|
get { return _account; }
|
|
|
|
|
set { _account = value; }
|
|
|
|
|
}
|
|
|
|
|
[ModelDB]
|
|
|
|
|
public string LICENSECODE
|
|
|
|
|
{
|
|
|
|
|
get { return _licensecode; }
|
|
|
|
|
set { _licensecode = value; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[ModelDB]
|
|
|
|
|
public string TAXCODE
|
|
|
|
|
{
|
|
|
|
|
get { return _taxcode; }
|
|
|
|
|
set { _taxcode = value; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public string ISNEEDPRINT
|
|
|
|
|
{
|
|
|
|
|
get { return _isneedprint; }
|
|
|
|
|
set { _isneedprint = value; }
|
|
|
|
|
}
|
|
|
|
|
public string ISNEEDFEE
|
|
|
|
|
{
|
|
|
|
|
get { return _isneedfee; }
|
|
|
|
|
set { _isneedfee = value; }
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
public string ISDELETE
|
|
|
|
|
{
|
|
|
|
|
get { return _isdelete; }
|
|
|
|
|
set { _isdelete = value; }
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
public string DELETEOPERATOR
|
|
|
|
|
{
|
|
|
|
|
get { return _deleteoperator; }
|
|
|
|
|
set { _deleteoperator = value; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public string DELOPERATORNAME
|
|
|
|
|
{
|
|
|
|
|
get { return _deloperatorname; }
|
|
|
|
|
set { _deloperatorname = value; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public DateTime? DELETETIME
|
|
|
|
|
{
|
|
|
|
|
get { return _deletetime; }
|
|
|
|
|
set { _deletetime = value; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public string VOUCHERNO
|
|
|
|
|
{
|
|
|
|
|
get { return _voucherno; }
|
|
|
|
|
set { _voucherno = value; }
|
|
|
|
|
}
|
|
|
|
|
public string VOUNO
|
|
|
|
|
{
|
|
|
|
|
get { return _vouno; }
|
|
|
|
|
set { _vouno = value; }
|
|
|
|
|
}
|
|
|
|
|
public string NOSTL
|
|
|
|
|
{
|
|
|
|
|
get { return _nostl; }
|
|
|
|
|
set { _nostl = value; }
|
|
|
|
|
}
|
|
|
|
|
public string FEEAMOUNT
|
|
|
|
|
{
|
|
|
|
|
get { return _feeamount; }
|
|
|
|
|
set { _feeamount = value; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public decimal DOAMOUNT { get; set; }
|
|
|
|
|
public decimal STLAMOUNT { get; set; }
|
|
|
|
|
public string DZSTATUS { get; set; }
|
|
|
|
|
|
|
|
|
|
public Decimal TAX { get; set; }
|
|
|
|
|
|
|
|
|
|
public string CHECKER { get; set; }
|
|
|
|
|
|
|
|
|
|
public string SETRED { get; set; }
|
|
|
|
|
|
|
|
|
|
public string PTORRED { get; set; }
|
|
|
|
|
|
|
|
|
|
public string INVSHENNO { get; set; }
|
|
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
}
|
|
|
|
|
[JsonObject]
|
|
|
|
|
public class ChInvoiceNo
|
|
|
|
|
{
|
|
|
|
|
private string _Invno = "*";
|
|
|
|
|
public string INVNO
|
|
|
|
|
{
|
|
|
|
|
get { return _Invno; }
|
|
|
|
|
set { _Invno = value; }
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public class InvoiceFeeSum
|
|
|
|
|
{
|
|
|
|
|
public string CURR { get; set; }
|
|
|
|
|
public decimal amount { get; set; }
|
|
|
|
|
|
|
|
|
|
public decimal exchange { get; set; }
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|