public CardModel(AccountWithOwner item) { this.cardName = item.AccountTypeName; this.name = item.OwnerDisplayName; this.mobile = item.OwnerMobileNumber; this.babyName = item.BabyName; this.babySex = item.BabySex == 1 ? "男孩" : "女孩"; this.expiredDate = item.ExpiredDate.ToString("yyyy-MM-dd"); if (this.cardName == "铂金气球卡" || this.cardName == "黑金气球卡") { this.frequency = -1; } else { this.frequency = item.Frequency; } this.cardNo = item.Name; }
public ListAccount(AccountWithOwner account) { _innerObject = account; }
public ListAccount() { _innerObject = new AccountWithOwner(); }