namespace Model.Dto.Inspection
{
#region 设备统计报表
///
/// 设备统计概览
///
public class DeviceStatisticsDto
{
/// 设备总数
public int Total { get; set; }
/// 在用数量
public int InUse { get; set; }
/// 闲置数量
public int Idle { get; set; }
/// 报废数量(已处置+待处置)
public int Scrapped { get; set; }
/// 维修中数量
public int Repairing { get; set; }
/// 已停用数量
public int Suspended { get; set; }
/// 其他数量(待验收/已借出/入库)
public int Other { get; set; }
}
///
/// 按分类统计
///
public class CategoryStatisticsDto
{
/// 分类名称
public string? CategoryName { get; set; }
/// 设备数量
public int Count { get; set; }
}
///
/// 按部门统计
///
public class DepartmentStatisticsDto
{
/// 部门名称
public string? Department { get; set; }
/// 设备数量
public int Count { get; set; }
}
#endregion
#region 设备维护报表
///
/// 设备维护统计
///
public class MaintenanceStatisticsDto
{
/// 设备总数
public int Total { get; set; }
/// 校准正常数量
public int CalibrationNormal { get; set; }
/// 校准超期数量
public int CalibrationOverdue { get; set; }
/// 保养正常数量
public int MaintenanceNormal { get; set; }
/// 保养超期数量
public int MaintenanceOverdue { get; set; }
/// 校准及时率(%)
public decimal CalibrationTimelyRate { get; set; }
/// 保养及时率(%)
public decimal MaintenanceTimelyRate { get; set; }
}
///
/// 维护超期设备明细
///
public class MaintenanceOverdueDetailDto
{
/// 设备编号
public string? EquipmentCode { get; set; }
/// 设备名称
public string? EquipmentName { get; set; }
/// 部门
public string? Department { get; set; }
/// 超期类型(校准超期/保养超期)
public string? OverdueType { get; set; }
/// 到期日期
public DateTime? ExpireDate { get; set; }
/// 超期天数
public int OverdueDays { get; set; }
}
#endregion
#region 维修类报表
///
/// 维修统计概览
///
public class RepairStatisticsDto
{
/// 维修记录总数
public int Total { get; set; }
/// 已完成数量
public int Completed { get; set; }
/// 维修中数量
public int InProgress { get; set; }
/// 待维修数量
public int Pending { get; set; }
/// 平均维修工时(小时)
public decimal AvgRepairHours { get; set; }
/// 总维修工时(小时)
public decimal TotalRepairHours { get; set; }
/// 总维修费用(元)
public decimal TotalRepairCost { get; set; }
}
///
/// 故障类型分布
///
public class FaultTypeDistributionDto
{
/// 故障类型
public string? FaultType { get; set; }
/// 数量
public int Count { get; set; }
}
///
/// 维修工时分析
///
public class RepairHoursAnalysisDto
{
/// 故障类型
public string? FaultType { get; set; }
/// 平均工时(小时)
public decimal AvgHours { get; set; }
/// 最大工时(小时)
public decimal MaxHours { get; set; }
/// 最小工时(小时)
public decimal MinHours { get; set; }
/// 记录数
public int Count { get; set; }
}
///
/// 维修记录明细
///
public class RepairRecordDetailDto
{
/// 设备编号
public string? EquipmentCode { get; set; }
/// 设备名称
public string? EquipmentName { get; set; }
/// 故障类型
public string? FaultType { get; set; }
/// 故障描述
public string? FaultDescription { get; set; }
/// 报修日期
public DateTime? ReportDate { get; set; }
/// 维修完成日期
public DateTime? RepairEndDate { get; set; }
/// 维修工时
public decimal? RepairHours { get; set; }
/// 维修人员
public string? RepairPerson { get; set; }
/// 维修费用
public decimal? RepairCost { get; set; }
/// 维修状态
public string? RepairStatus { get; set; }
}
#endregion
}