public static void ClearReferences(this ImportPay model) { model.tb_admin = null; model.tb_balance = null; model.tb_device = null; model.tb_import = null; model.tb_supplier = null; }
public CommonPayModel(ImportPay model) { this.ParentId = model.ImportId; this.BalanceId = model.BalanceId; this.SupplierId = model.SupplierId; this.BalancePrice = model.BalancePrice; this.OriginalPrice = model.OriginalPrice; this.Rate = model.Rate; this.RemovePrice = model.RemovePrice; this.Price = model.Price; this.Supplier = model.tb_supplier; this.AddTime = model.AddTime; this.Remark = model.Remark; this.Type = "ImportPay"; this.PayId = model.ImportPayId; this.State = model.State; }
public ImportPay GetImportPay() { ImportPay model = new ImportPay(); model.ImportId = ParentId; model.BalanceId = BalanceId; model.SupplierId = SupplierId; model.BalancePrice = BalancePrice; model.OriginalPrice = OriginalPrice; model.Rate = Rate; model.Rate = Rate; model.RemovePrice = RemovePrice; model.Price = Price; model.AddTime = AddTime; model.Remark = Remark; model.ImportPayId = PayId; model.State = State; return(model); }