using System; using System.ComponentModel.DataAnnotations; namespace CRM.Core.Model.Entity { public class Wx_SzzyOrderPayUseLog { public Wx_SzzyOrderPayUseLog() { } public Wx_SzzyOrderPayUseLog(string resid, int? orderid, int? depositid, int paytype, string paytypename, string payno, decimal useprice, DateTime usetime, int channel, int usetype, decimal? lastprice, string memo) { this.resid = resid; this.orderid = orderid; this.depositid = depositid; this.paytype = paytype; this.paytypename = paytypename; this.payno = payno; this.useprice = useprice; this.usetime = usetime; this.channel = channel; this.ctime = DateTime.Now; this.usetype = usetype; this.lastprice = lastprice; this.memo = memo; } public Wx_SzzyOrderPayUseLog(string resid, decimal? orderid, int? depositid, int paytype, string paytypename, string payno, decimal useprice, DateTime usetime, int channel, int usetype, decimal? lastprice, string memo) { this.resid = resid; if (orderid.HasValue) { this.orderid = Convert.ToInt32(orderid.Value); } this.depositid = depositid; this.paytype = paytype; this.paytypename = paytypename; this.payno = payno; this.useprice = useprice; this.usetime = usetime; this.channel = channel; this.ctime = DateTime.Now; this.usetype = usetype; this.lastprice = lastprice; this.memo = memo; } [Key] public int id { get; set; } public string resid { get; set; } public int? orderid { get; set; } public int? depositid { get; set; } public int paytype { get; set; } public string paytypename { get; set; } public string payno { get; set; } public decimal useprice { get; set; } public DateTime usetime { get; set; } public int channel { get; set; } public DateTime ctime { get; set; } public int usetype { get; set; } /// /// 当时可用基恩 /// public decimal? lastprice { get; set; } public string memo { get; set; } } }