WorkCamera/client/WorkCameraExport/Models/MonthlyReportModels.cs
2026-01-05 23:58:56 +08:00

81 lines
1.9 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

namespace WorkCameraExport.Models
{
/// <summary>
/// 月报表 DTO
/// </summary>
public class MonthlyReportDto
{
/// <summary>
/// 时间YYYY-MM 格式)
/// </summary>
public string YearMonth { get; set; } = "";
/// <summary>
/// 部门名称
/// </summary>
public string DeptName { get; set; } = "";
/// <summary>
/// 人员名称
/// </summary>
public string WorkerName { get; set; } = "";
/// <summary>
/// 工作天数
/// </summary>
public int WorkDays { get; set; }
}
/// <summary>
/// 月报表查询条件
/// </summary>
public class MonthReportQueryDto
{
/// <summary>
/// 人员名称
/// </summary>
public string? WorkerName { get; set; }
/// <summary>
/// 月份YYYY-MM 格式)
/// </summary>
public string? YearMonth { get; set; }
}
/// <summary>
/// 月份图片 DTO - 用于 ZIP 下载
/// </summary>
public class MonthImageDto
{
/// <summary>
/// 工作记录 ID
/// </summary>
public int RecordId { get; set; }
/// <summary>
/// 记录日期
/// </summary>
public DateTime? RecordDate { get; set; }
/// <summary>
/// 部门名称
/// </summary>
public string DeptName { get; set; } = "";
/// <summary>
/// 工作内容
/// </summary>
public string Content { get; set; } = "";
/// <summary>
/// 施工人员列表
/// </summary>
public List<string> Workers { get; set; } = new();
/// <summary>
/// 图片 URL 列表
/// </summary>
public List<string> ImageUrls { get; set; } = new();
}
}