private List <HaspaidCardRecord> GetCardReleaseRecords()
        {
            List <HaspaidCardRecord> items   = new List <HaspaidCardRecord>();
            List <CardReleaseRecord> records = (new CardBll(AppSettings.CurrentSetting.ParkConnect)).GetCardReleaseRecords(null).QueryObjects;
            CardType cardType = this.comCardType.SelectedCardType;

            if (records != null && records.Count > 0)
            {
                foreach (CardReleaseRecord record in records)
                {
                    if (record.CardType.IsMonthCard)
                    {
                        if (cardType == null || record.CardType == cardType)
                        {
                            HaspaidCardRecord item = new HaspaidCardRecord()
                            {
                                CardID         = record.CardID,
                                OwnerName      = record.OwnerName,
                                CardType       = record.CardType,
                                Certificate    = record.CardCertificate,
                                CarPlate       = record.CarPlate,
                                RecordDateTime = record.ReleaseDateTime,
                                Money          = record.ReleaseMoney,
                                OriginalDate   = record.ActivationDate.Date,
                                CurrentDate    = record.ValidDate
                            };
                            items.Add(item);
                        }
                    }
                }
            }
            return(items);
        }
Esempio n. 2
0
        private List <HaspaidCardRecord> GetCardDeferRecords()
        {
            List <HaspaidCardRecord> items   = new List <HaspaidCardRecord>();
            List <CardDeferRecord>   records = (new CardBll(AppSettings.CurrentSetting.ParkConnect)).GetCardDeferRecords(null).QueryObjects;

            if (records != null && records.Count > 0)
            {
                foreach (CardDeferRecord record in records)
                {
                    HaspaidCardRecord item = new HaspaidCardRecord()
                    {
                        CardID         = record.CardID,
                        OwnerName      = record.OwnerName,
                        Certificate    = record.CardCertificate,
                        CarPlate       = record.CarPlate,
                        RecordDateTime = record.DeferDateTime,
                        Money          = record.DeferMoney,
                        OriginalDate   = record.OriginalDate,
                        CurrentDate    = record.CurrentDate
                    };
                    items.Add(item);
                }
            }
            return(items);
        }