| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186 |
- using Castle.ActiveRecord;
- using NHibernate.Criterion;
- using System;
- using System.Text;
- namespace BizCom
- {
- [ActiveRecord("CE_ErpReturnCash")]
- public class CeErpReturnCash : ComBase<CeErpReturnCash>
- {
- /// <summary>
- ///
- /// </summary>
- [PrimaryKey(PrimaryKeyType.Native)]
- public int ID { get; set; }
- private string _tid = "";
- /// <summary>
- ///交易编号
- /// </summary>
- [Property]
- public string tid
- {
- get { return _tid; }
- set { _tid = value; }
- }
- private string _rtype = "";
- /// <summary>
- ///交易类型列表
- /// </summary>
- [Property]
- public string rtype
- {
- get { return _rtype; }
- set { _rtype = value; }
- }
- private double _price = 0;
- /// <summary>
- ///
- /// </summary>
- [Property]
- public double price
- {
- get { return _price; }
- set { _price = value; }
- }
- /// <summary>
- ///交易创建时间
- /// </summary>
- [Property]
- public DateTime? created { get; set; }
- /// <summary>
- ///审核时间
- /// </summary>
- [Property]
- public DateTime? verifytime { get; set; }
- private string _buyer_nick = "";
- /// <summary>
- ///买家昵称
- /// </summary>
- [Property]
- public string buyer_nick
- {
- get { return _buyer_nick; }
- set { _buyer_nick = value; }
- }
- private double _payment = 0;
- /// <summary>
- ///实付金额
- /// </summary>
- [Property]
- public double payment
- {
- get { return _payment; }
- set { _payment = value; }
- }
- private double _returnprice = 0;
- /// <summary>
- ///返现金额
- /// </summary>
- [Property]
- public double returnprice
- {
- get { return _returnprice; }
- set { _returnprice = value; }
- }
- private string _con = "";
- /// <summary>
- ///返现说明
- /// </summary>
- [Property]
- public string con
- {
- get { return _con; }
- set { _con = value; }
- }
- private int _verifyuserid = 0;
- /// <summary>
- ///审核人
- /// </summary>
- [Property]
- public int verifyuserid
- {
- get { return _verifyuserid; }
- set { _verifyuserid = value; }
- }
- private int _applyuserid = 0;
- /// <summary>
- ///申请人
- /// </summary>
- [Property]
- public int applyuserid
- {
- get { return _applyuserid; }
- set { _applyuserid = value; }
- }
- private int _cashstate = 0;
- /// <summary>
- ///审核状态0未审核1通过
- /// </summary>
- [Property]
- public int cashstate
- {
- get { return _cashstate; }
- set { _cashstate = value; }
- }
- private string _seller_nick = "";
- /// <summary>
- ///卖家店铺
- /// </summary>
- [Property]
- public string seller_nick
- {
- get { return _seller_nick; }
- set { _seller_nick = value; }
- }
- private string _backreason = "";
- /// <summary>
- ///退回原因
- /// </summary>
- [Property]
- public string backreason
- {
- get { return _backreason; }
- set { _backreason = value; }
- }
- private string _img = "";
- /// <summary>
- ///
- /// </summary>
- [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));
- }
- }
- }
|