Ejemplo n.º 1
0
        public MonthlyReportItem(TimeCard timeCard)
        {
            var reportTime = timeCard.CreateReportTime();

            if (timeCard.RecordType == RecordType.ClockIn)
            {
                Start = reportTime;
            }
            else
            {
                End = reportTime;
            }
        }
        public void UpdateRecord(TimeCard dailyReport)
        {
            Report.TryGetValue(dailyReport.RecordDate.Day, out var target);
            var reportTime = dailyReport.CreateReportTime();

            if (dailyReport.RecordType == RecordType.ClockIn)
            {
                target.Start = reportTime;
            }
            else
            {
                target.End = reportTime;
            }
        }