using Castle.ActiveRecord; using NHibernate.Criterion; using System; using System.Text; namespace BizCom { [ActiveRecord("CE_ErpReturnCash")] public class CeErpReturnCash : ComBase { /// /// /// [PrimaryKey(PrimaryKeyType.Native)] public int ID { get; set; } private string _tid = ""; /// ///交易编号 /// [Property] public string tid { get { return _tid; } set { _tid = value; } } private string _rtype = ""; /// ///交易类型列表 /// [Property] public string rtype { get { return _rtype; } set { _rtype = value; } } private double _price = 0; /// /// /// [Property] public double price { get { return _price; } set { _price = value; } } /// ///交易创建时间 /// [Property] public DateTime? created { get; set; } /// ///审核时间 /// [Property] public DateTime? verifytime { get; set; } private string _buyer_nick = ""; /// ///买家昵称 /// [Property] public string buyer_nick { get { return _buyer_nick; } set { _buyer_nick = value; } } private double _payment = 0; /// ///实付金额 /// [Property] public double payment { get { return _payment; } set { _payment = value; } } private double _returnprice = 0; /// ///返现金额 /// [Property] public double returnprice { get { return _returnprice; } set { _returnprice = value; } } private string _con = ""; /// ///返现说明 /// [Property] public string con { get { return _con; } set { _con = value; } } private int _verifyuserid = 0; /// ///审核人 /// [Property] public int verifyuserid { get { return _verifyuserid; } set { _verifyuserid = value; } } private int _applyuserid = 0; /// ///申请人 /// [Property] public int applyuserid { get { return _applyuserid; } set { _applyuserid = value; } } private int _cashstate = 0; /// ///审核状态0未审核1通过 /// [Property] public int cashstate { get { return _cashstate; } set { _cashstate = value; } } private string _seller_nick = ""; /// ///卖家店铺 /// [Property] public string seller_nick { get { return _seller_nick; } set { _seller_nick = value; } } private string _backreason = ""; /// ///退回原因 /// [Property] public string backreason { get { return _backreason; } set { _backreason = value; } } private string _img = ""; /// /// /// [Property] public string img { get { return _img; } set { _img = value; } } public static void Del(object id) { StringBuilder sql = new StringBuilder(); sql.AppendFormat("delete from CE_ErpReturnCash where id=" + id); ExecuteNonQuery(sql.ToString()); } public static CeErpReturnCash GetByTid(string tid) { return FindFirst(Expression.Eq("tid", tid)); } } }