using Castle.ActiveRecord; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace BizCom { [ActiveRecord("CE_ErpInvoice")] public class CeErpInvoice : ComBase { /// /// ID /// [PrimaryKey(PrimaryKeyType.Native)] public int ID { get; set; } private string _tid = ""; /// /// /// [Property] public string tid { get { return _tid; } set { _tid = value; } } private string _ctid = ""; /// /// /// [Property] public string ctid { get { return _ctid; } set { _ctid = value; } } private string _status = ""; /// /// 状态 /// PENDING_REVIEW 待审核 /// PENDING_INVOICE 待开票 /// FINISH 已完成 /// FAIL 开票失败 /// ALREADY_RED 已红冲 /// CANCEL 已取消 /// BACK 已驳回 /// ERROR 错误 /// [Property] public string status { get { return _status; } set { _status = value; } } /// /// 完成时间 /// [Property] public DateTime? finishtime { get; set; } /// /// 创建时间 /// [Property] private DateTime? createtime { get; set; } private string _message = ""; /// /// /// [Property] public string message { get { return _message; } set { _message = value; } } private int _createId = 0; /// /// /// [Property] public int createId { get { return _createId; } set { _createId = value; } } private string _buyerTitle = ""; /// /// 购买抬头 /// [Property] public string buyerTitle { get { return _buyerTitle; } set { _buyerTitle = value; } } private string _buyerSn = ""; /// /// 购买识别号 /// [Property] public string buyerSn { get { return _buyerSn; } set { _buyerSn = value; } } private string _sellerTitle = ""; /// /// 卖方抬头 /// [Property] public string sellerTitle { get { return _sellerTitle; } set { _sellerTitle = value; } } private string _sellerSn = ""; /// /// 卖方识别号 /// [Property] public string sellerSn { get { return _sellerSn; } set { _sellerSn = value; } } private double _price = 0.0; /// /// 开票金额 /// [Property] public double price { get { return _price; } set { _price = value; } } private double _taxRate = 0.0; /// /// 税率 /// [Property] public double taxRate { get { return _taxRate; } set { _taxRate = value; } } private double _taxPrice = 0.0; /// /// 税费 /// [Property] public double taxPrice { get { return _taxPrice; } set { _taxPrice = value; } } } }