{% extends 'layout/base.html' %} {% block title %}学生详情 - {{ student.name }} - SmartDSP考勤管理系统{% endblock %} {% block content %}
返回学生列表
基本信息
编辑
学号: {{ student.student_number }}
姓名: {{ student.name }}
性别: {% if student.gender == '男' %} {{ student.gender }} {% else %} {{ student.gender }} {% endif %}
年级: {{ student.grade }}级
手机号: {% if student.phone %} {{ student.phone }} {% else %} 未填写 {% endif %}
学院: {% if student.college %} {{ student.college }} {% else %} 未填写 {% endif %}
专业: {% if student.major %} {{ student.major }} {% else %} 未填写 {% endif %}
导师: {% if student.supervisor %} {{ student.supervisor }} {% else %} 未分配 {% endif %}
学位类型: {% if student.degree_type %} {{ student.degree_type }} {% else %} 未填写 {% endif %}
状态: {% if student.status == '在读' %} 在读 {% else %} 毕业 {% endif %}
入学日期:
{% if student.enrollment_date %} {{ student.enrollment_date.strftime('%Y年%m月%d日') }} {% else %} 未填写 {% endif %}
注册时间:
{{ student.created_at.strftime('%Y年%m月%d日 %H:%M') }}
考勤统计
{{ "%.1f"|format(total_work_hours) }}
总工作时长(小时)
{{ total_absent_days }}
旷工天数

{{ attendance_records|length }}
考勤记录数
账户信息
{% if student.user %}
账户状态: {% if student.user.is_active %} 正常 {% else %} 已禁用 {% endif %}
最后登录:
{% if student.user.last_login %} {{ student.user.last_login.strftime('%Y-%m-%d %H:%M') }} {% else %} 从未登录 {% endif %}
{% else %}

该学生暂无账户信息

{% endif %}
快速操作
最近考勤记录
查看全部
{% if attendance_records %}
{% for record in attendance_records %} {% endfor %}
周期 实际工作时长 班内工作时长 旷工天数 加班时长 创建时间
{{ record.week_start_date.strftime('%m-%d') }} 至 {{ record.week_end_date.strftime('%m-%d') }}
{{ record.week_start_date.strftime('%Y年') }}
{{ "%.1f"|format(record.actual_work_hours or 0) }}h {{ "%.1f"|format(record.class_work_hours or 0) }}h {% if record.absent_days > 0 %} {{ record.absent_days }}天 {% else %} 0天 {% endif %} {% if record.overtime_hours > 0 %} {{ "%.1f"|format(record.overtime_hours) }}h {% else %} 0h {% endif %} {{ record.created_at.strftime('%m-%d %H:%M') }}
{% else %}

暂无考勤记录

上传考勤数据
{% endif %}
{% endblock %} {% block extra_js %} {% endblock %} {% block extra_css %} {% endblock %}