public static void ClearReferences(this TakeoutPay model) { model.tb_admin = null; model.tb_balance = null; model.tb_device = null; model.tb_member = null; model.tb_takeout = null; }
public CommonPayModel(TakeoutPay model) { this.ParentId = model.TakeoutId; this.BalanceId = model.BalanceId; this.MemberId = model.MemberId; this.BalancePrice = model.BalancePrice; this.OriginalPrice = model.OriginalPrice; this.Rate = model.Rate; this.RemovePrice = model.RemovePrice; this.Price = model.Price; this.Member = model.tb_member; this.AddTime = model.AddTime; this.Remark = model.Remark; this.Type = "TakeoutPay"; this.PayId = model.TakeoutId; this.State = model.State; }
public TakeoutPay GetTakeoutPay() { TakeoutPay model = new TakeoutPay(); model.TakeoutId = ParentId; model.BalanceId = BalanceId; model.MemberId = MemberId; model.BalancePrice = BalancePrice; model.OriginalPrice = OriginalPrice; model.Rate = Rate; model.RemovePrice = RemovePrice; model.Price = Price; model.tb_member = Member; model.AddTime = AddTime; model.Remark = Remark; model.TakeoutPayId = PayId; model.State = State; return(model); }