コード例 #1
0
        private void AddScanEvent(
            AttendeeScanBase e,
            string typeText)
        {
            var h      = QueryModelRepository.Csv[e.HappeningId];
            var person =
                QueryModelRepository.Csv.People.First(
                    m => m.PersonId.Equals(e.PersonId, StringComparison.OrdinalIgnoreCase));

            h.ScanRows.Add(e.ScanId, new CsvScanRow
            {
                HappeningId    = e.HappeningId,
                CheckpointId   = e.CheckpointId,
                CheckpointName = QueryModelRepository.Csv.Checkpoints[e.CheckpointId].Name,
                PersonId       = e.PersonId,
                PersonName     = person.Lastname + " " + person.Firstname,
                Timestamp      = e.Timestamp,
                Text           = typeText
            });
        }
コード例 #2
0
ファイル: CheckpointState.cs プロジェクト: kerkesix/satku
 public CheckpointScan(AttendeeScanBase e)
 {
     this.PersonId  = e.PersonId;
     this.TimeStamp = e.Timestamp;
     this.ScanId    = e.ScanId;
 }
コード例 #3
0
        private static void RemoveScanEvent(AttendeeScanBase e)
        {
            var h = QueryModelRepository.Csv[e.HappeningId];

            h.ScanRows.Remove(e.ScanId);
        }