示例#1
0
        private void LoadTimeInfo(IDayWorktime worktime)
        {
            timeInfo = new WorkTimeInfo()
            {
                Absent   = worktime.Absent,
                Begin    = worktime.Begin,
                Elapsed  = worktime.Elapsed,
                End      = worktime.End,
                Left     = worktime.Left,
                Overtime = worktime.Overtime
            };

            elapsed  = timeInfo.Elapsed;
            left     = timeInfo.Left;
            absent   = timeInfo.Absent;
            overtime = timeInfo.Overtime;
            begin    = timeInfo.Begin;
            end      = begin + TodayWorktime + absent;
        }
示例#2
0
        private void LoadTimeInfo(IDayWorktime worktime)
        {
            timeInfo = new WorkTimeInfo()
            {
                Absent = worktime.Absent,
                Begin = worktime.Begin,
                Elapsed = worktime.Elapsed,
                End = worktime.End,
                Left = worktime.Left,
                Overtime = worktime.Overtime
            };

            elapsed = timeInfo.Elapsed;
            left = timeInfo.Left;
            absent = timeInfo.Absent;
            overtime = timeInfo.Overtime;
            begin = timeInfo.Begin;
            end = begin + TodayWorktime + absent;
        }