/// <summary> /// 系统自动0点读数据,并统计考勤结果,发信 /// </summary> public void SystemReadDataFromAccessToSQL(ReadDataHistory readNewHistory) { ReadDataHistory readHistory = _DalHistory.GetLastReadDataHistory(); if (readHistory != null && readHistory.ReadResult == ReadDataResultType.Reading) { return; } int pkid = _DalHistory.InsertReadDataHistory(readNewHistory); readNewHistory.ReadDataId = pkid; ReadDataFromAccessToSQL(pkid); UpdateAttendance(); SystemSendEmailByCondition(OutInTimeConditionEnum.InOrOutTimeIsNull); }
/// <summary> /// 得到最后一次的读取考勤数据的历史 /// </summary> public ReadDataHistory GetLastReadDataHistory() { return(_DalReadHistory.GetLastReadDataHistory()); }