public JsonResult Verify(AttendanceRepairDto dto)
        {
            OperationResult oper = _attendanceRepairContract.Verify(dto);

            if (oper.ResultType == OperationResultType.Success)
            {
                var    modAtten = _attendanceContract.View(dto.AttendanceId ?? 0);
                string title    = "补卡通知";
                string content  = string.Format("{0},{1},", modAtten.AttendanceTime.ToString("yyyy年MM月dd日"), showApiAttenFlag(dto.ApiAttenFlag));
                if (dto.VerifyType == (int)VerifyFlag.NoPass)
                {
                    content += "审核未通过";
                }
                else if (dto.VerifyType == (int)VerifyFlag.Pass)
                {
                    content += "审核通过";
                }
                else if (dto.VerifyType == (int)VerifyFlag.Waitting)
                {
                    content += "待确认";
                }
                _notificationContract.SendNotice(dto.AdminId ?? 0, title, content, sendNotificationAction);
            }
            return(Json(oper));
        }
        public JsonResult Update(AttendanceDto dto, ApiAttenFlag attenFlag)
        {
            AttendanceDto atten = _attendanceContract.Edit(dto.Id);

            if (atten == null)
            {
                return(Json(new OperationResult(OperationResultType.Error, "数据不存在")));
            }
            int              flag             = (int)attenFlag;
            OperationResult  oper             = _attendanceRepairContract.ApplyRepair(atten.AdminId, dto.Id, flag);
            AttendanceRepair attendancerepair = _attendanceRepairContract.AttendanceRepairs.FirstOrDefault(x => x.AttendanceId == dto.Id && x.ApiAttenFlag == flag);

            if (attendancerepair == null)
            {
                return(Json(new OperationResult(OperationResultType.Error, "数据不存在")));
            }
            AttendanceRepairDto apair = _attendanceRepairContract.Edit(attendancerepair.Id);

            apair.VerifyType = (int)VerifyFlag.Pass;
            oper             = _attendanceRepairContract.Verify(apair);
            return(Json(oper));
        }