| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179 |
- using Castle.ActiveRecord;
- using NHibernate.Criterion;
- using System;
- using System.Text;
- namespace BizCom
- {
- [ActiveRecord("CE_ErpStayGoods")]
- public class CeErpStayGoods : ComBase<CeErpStayGoods>
- {
- /// <summary>
- /// 推多单号
- /// </summary>
- [PrimaryKey(PrimaryKeyType.Native)]
- public int stay_id { get; set; }
- private string _t_id = "";
- /// <summary>
- ///订单号
- /// </summary>
- [Property]
- public string t_id
- {
- get { return _t_id; }
- set { _t_id = value; }
- }
- private string _status = "";
- /// <summary>
- ///状态
- /// </summary>
- [Property]
- public string status
- {
- get { return _status; }
- set { _status = value; }
- }
- private string _stay_type = "";
- /// <summary>
- ///推多/推购
- /// </summary>
- [Property]
- public string stay_type
- {
- get { return _stay_type; }
- set { _stay_type = value; }
- }
- private string _shop_name = "";
- /// <summary>
- ///店铺名称
- /// </summary>
- [Property]
- public string shop_name
- {
- get { return _shop_name; }
- set { _shop_name = value; }
- }
- private string _wangwang = "";
- /// <summary>
- ///旺旺号
- /// </summary>
- [Property]
- public string wangwang
- {
- get { return _wangwang; }
- set { _wangwang = value; }
- }
- /// <summary>
- ///申请时间
- /// </summary>
- [Property]
- public DateTime? creata_time { get; set; }
- private string _create_u_name = "";
- /// <summary>
- ///申请人名称
- /// </summary>
- [Property]
- public string create_u_name
- {
- get { return _create_u_name; }
- set { _create_u_name = value; }
- }
- private int _audit_type = 0;
- /// <summary>
- ///审核状态 1审核中 2通过 3已退回
- /// </summary>
- [Property]
- public int audit_type
- {
- get { return _audit_type; }
- set { _audit_type = value; }
- }
- private int _create_u_id = 0;
- /// <summary>
- ///申请人用户id
- /// </summary>
- [Property]
- public int create_u_id
- {
- get { return _create_u_id; }
- set { _create_u_id = value; }
- }
- private int _audit_u_id = 0;
- /// <summary>
- ///审核人
- /// </summary>
- [Property]
- public int audit_u_id
- {
- get { return _audit_u_id; }
- set { _audit_u_id = value; }
- }
- private string _audit_u_name = "";
- /// <summary>
- ///审核人名称
- /// </summary>
- [Property]
- public string audit_u_name
- {
- get { return _audit_u_name; }
- set { _audit_u_name = value; }
- }
- /// <summary>
- ///
- /// </summary>
- [Property]
- public DateTime? audit_time { get; set; }
- private string _audit_text = "";
- /// <summary>
- ///
- /// </summary>
- [Property]
- public string audit_text
- {
- get { return _audit_text; }
- set { _audit_text = value; }
- }
- private int _product_id = 0;
- /// <summary>
- ///
- /// </summary>
- [Property]
- public int product_id
- {
- get { return _product_id; }
- set { _product_id = value; }
- }
- public static CeErpStayGoods GetByTid(string t_id)
- {
- return FindFirst(Expression.Eq("t_id", t_id));
- }
- public static void Del(object id)
- {
- StringBuilder sql = new StringBuilder();
- sql.AppendFormat("delete from CE_ErpStayGoods where id=" + id);
- ExecuteNonQuery(sql.ToString());
- }
- public static CeErpStayGoods GetStayId(int eid)
- {
- return FindFirst(Expression.Eq("stay_id", eid));
- }
- }
- }
|