using Castle.ActiveRecord; using System; using System.Collections.Generic; using System.Linq; using NHibernate.Criterion; using System.Text; using System.Threading.Tasks; namespace BizCom { [ActiveRecord("Ce_ErpTradeAfterSaleExtend")] public class CeErpTradeAfterSaleExtend : ComBase { /// /// /// [PrimaryKey(PrimaryKeyType.Native)] public int ID { get; set; } private string _tid = ""; /// /// /// [Property] public string tid { get { return _tid; } set { _tid = value; } } //责任人扣款逗号分开 private string _RefundFees = ""; [Property] public string RefundFees { get { return _RefundFees; } set { _RefundFees = value; } } private string _afterSaleBackImg = ""; /// ///售后处理退回图片 /// [Property] public string AfterSaleBackImg { get { return _afterSaleBackImg; } set { _afterSaleBackImg = value; } } private int _isComplain = 0; /// ///是否投诉单 /// [Property] public int IsComplain { get { return _isComplain; } set { _isComplain = value; } } private int _isBad = 0; /// ///是否差评 /// [Property] public int IsBad { get { return _isBad; } set { _isBad = value; } } private int _afterSalSend = 0; /// ///售后单发货 /// [Property] public int AfterSalSend { get { return _afterSalSend; } set { _afterSalSend = value; } } private string _expressNo = ""; /// ///售后单发货 /// [Property] public string ExpressNo { get { return _expressNo; } set { _expressNo = value; } } private string _verifyStates = ""; /// ///售后单状态 0主管审核1认可完成2拒绝3个人审核4自动完成5强制完成 /// [Property] public string VerifyStates { get { return _verifyStates; } set { _verifyStates = value; } } private bool _isOriginal = false; [Property] public bool IsOriginal { get { return _isOriginal; } set { _isOriginal = value; } } /// /// 客戶售后结果 /// private string _textResult; [Property] public string TextResult { get { return _textResult; } set { _textResult = value; } } /// /// 客戶售后差价 /// private double _diffResultPrice; [Property] public double diffResultPrice { get { return _diffResultPrice; } set { _diffResultPrice = value; } } /// /// 是否修改责任金额 /// private string _diffPhysical; [Property] public string diffPhysical { get { return _diffPhysical; } set { _diffPhysical = value; } } /// /// 供应商售后理由 /// private string _supplierResponsible = ""; [Property] public string supplierResponsible { get { return _supplierResponsible; } set { _supplierResponsible = value; } } private int _changeNum = 0; /// /// 修改次数 /// [Property] public int ChangeNum { get { return _changeNum; } set { _changeNum = value; } } /// /// 不认可时间 /// [Property] public DateTime? DisagreeTime { get; set; } public int _disagreeTimeOut = 0; /// /// 不认可超时次数 /// [Property] public int DisagreeTimeOut { get { return _disagreeTimeOut; } set { _disagreeTimeOut = value; } } public static CeErpTradeAfterSaleExtend getByTid(string tid) { return FindFirst(Expression.Sql(string.Format("tid='{0}'", tid))); } } }