private static AMSummaryModel CreateRecord(IDataRecord record) { var sc = new ScorecardInfo() { scorecardId = record.Get <int>("sc_id"), scorecardName = record.Get <string>("SCORECARD") }; return(new AMSummaryModel { scorecard = sc, appname = record.Get <string>("APPNAME"), mtdCallsCompleted = record.GetValueOrDefault <int?>("MTD CALLS COMPLETED"), minutesCompleted = record.GetValueOrDefault <int?>("MTD MINUTES PROCESSED"), pendingCalls = record.GetValueOrDefault <int?>("NUMBER PENDING REVIEW"), missingAudioCalls = record.GetValueOrDefault <int?>("NUMBER MISSING AUDIO"), lastLoaded = record.Get <string>("LAST LOADED DATE"), lastReviewed = record.Get <string>("LAST REVIEWED DATE"), oldestPending = record.Get <string>("OLDEST PENDING DATE"), }); }
public CallSystemData() { missedItems = new List <CallMissedItem>(); scorecardInfo = new ScorecardInfo(); missedItems = new List <CallMissedItem>(); }
public AMSummaryModel() { scorecard = new ScorecardInfo(); }