/// <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);
        }
Esempio n. 2
0
 protected override void ExcuteSelf()
 {
     try
     {
         _ReadDataHistoryID = _DalHistory.InsertReadDataHistory(_History);
     }
     catch
     {
         BllUtility.ThrowException(BllExceptionConst._DbError);
     }
 }