|
|
|
|
@ -685,6 +685,525 @@ namespace Common.Shared.Application.SafetyFirePro.ResponseDto |
|
|
|
|
|
|
|
|
|
#endregion 危险施工作业响应体 |
|
|
|
|
|
|
|
|
|
#region 隐患详情数据 |
|
|
|
|
|
|
|
|
|
/// <summary> |
|
|
|
|
/// 隐患数据主对象 |
|
|
|
|
/// </summary> |
|
|
|
|
public class HazardDataDto |
|
|
|
|
{ |
|
|
|
|
/// <summary> |
|
|
|
|
/// 隐患核查结果信息列表 |
|
|
|
|
/// </summary> |
|
|
|
|
[JsonPropertyName("check")] |
|
|
|
|
public List<HazardCheckResult>? CheckResults { get; set; } |
|
|
|
|
|
|
|
|
|
/// <summary> |
|
|
|
|
/// 隐患描述 |
|
|
|
|
/// </summary> |
|
|
|
|
[JsonPropertyName("describe")] |
|
|
|
|
public string Description { get; set; } = string.Empty; |
|
|
|
|
|
|
|
|
|
/// <summary> |
|
|
|
|
/// 隐患相关风险点信息(如果有) |
|
|
|
|
/// </summary> |
|
|
|
|
[JsonPropertyName("equipment")] |
|
|
|
|
public HazardEquipment? Equipment { get; set; } |
|
|
|
|
|
|
|
|
|
/// <summary> |
|
|
|
|
/// 风险等级信息 |
|
|
|
|
/// </summary> |
|
|
|
|
[JsonPropertyName("risk")] |
|
|
|
|
public RiskLevelInfo? Risk { get; set; } |
|
|
|
|
|
|
|
|
|
/// <summary> |
|
|
|
|
/// 风险点责任人信息列表 |
|
|
|
|
/// </summary> |
|
|
|
|
[JsonPropertyName("users")] |
|
|
|
|
public List<ResponsiblePerson>? ResponsiblePersons { get; set; } |
|
|
|
|
|
|
|
|
|
/// <summary> |
|
|
|
|
/// 隐患整改及验收信息列表 |
|
|
|
|
/// </summary> |
|
|
|
|
[JsonPropertyName("rectifications")] |
|
|
|
|
public List<RectificationInfo>? Rectifications { get; set; } |
|
|
|
|
|
|
|
|
|
/// <summary> |
|
|
|
|
/// 隐患发生区域 |
|
|
|
|
/// </summary> |
|
|
|
|
[JsonPropertyName("region")] |
|
|
|
|
public RegionInfo? Region { get; set; } |
|
|
|
|
|
|
|
|
|
/// <summary> |
|
|
|
|
/// 隐患上报情况 |
|
|
|
|
/// </summary> |
|
|
|
|
[JsonPropertyName("register")] |
|
|
|
|
public HazardRegister? Register { get; set; } |
|
|
|
|
|
|
|
|
|
/// <summary> |
|
|
|
|
/// 隐患状态,0待核查,1待整改,2待验收,3治理完毕,4不是隐患 |
|
|
|
|
/// </summary> |
|
|
|
|
[JsonPropertyName("status")] |
|
|
|
|
public int Status { get; set; } |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/// <summary> |
|
|
|
|
/// 隐患核查结果信息 |
|
|
|
|
/// </summary> |
|
|
|
|
public class HazardCheckResult |
|
|
|
|
{ |
|
|
|
|
/// <summary> |
|
|
|
|
/// 隐患一级分类信息 |
|
|
|
|
/// </summary> |
|
|
|
|
[JsonPropertyName("cate")] |
|
|
|
|
public CategoryInfo? Category { get; set; } |
|
|
|
|
|
|
|
|
|
/// <summary> |
|
|
|
|
/// 隐患二级分类信息 |
|
|
|
|
/// </summary> |
|
|
|
|
[JsonPropertyName("cate_sub")] |
|
|
|
|
public CategoryInfo? SubCategory { get; set; } |
|
|
|
|
|
|
|
|
|
/// <summary> |
|
|
|
|
/// 核查情况说明 |
|
|
|
|
/// </summary> |
|
|
|
|
[JsonPropertyName("remark")] |
|
|
|
|
public string Remark { get; set; } = string.Empty; |
|
|
|
|
|
|
|
|
|
/// <summary> |
|
|
|
|
/// 核查时间 |
|
|
|
|
/// </summary> |
|
|
|
|
[JsonPropertyName("report_time")] |
|
|
|
|
public DateTime ReportTime { get; set; } |
|
|
|
|
|
|
|
|
|
/// <summary> |
|
|
|
|
/// 核查结果,0待核查,1是隐患,2不是隐患,3提交上级部门核查 |
|
|
|
|
/// </summary> |
|
|
|
|
[JsonPropertyName("status")] |
|
|
|
|
public int Status { get; set; } |
|
|
|
|
|
|
|
|
|
/// <summary> |
|
|
|
|
/// 核查人信息 |
|
|
|
|
/// </summary> |
|
|
|
|
[JsonPropertyName("user")] |
|
|
|
|
public CheckUserInfo? User { get; set; } |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/// <summary> |
|
|
|
|
/// 核查人信息 |
|
|
|
|
/// </summary> |
|
|
|
|
public class CheckUserInfo |
|
|
|
|
{ |
|
|
|
|
/// <summary> |
|
|
|
|
/// 核查人部门信息列表 |
|
|
|
|
/// </summary> |
|
|
|
|
[JsonPropertyName("branch")] |
|
|
|
|
public List<DepartmentInfo>? Departments { get; set; } |
|
|
|
|
|
|
|
|
|
/// <summary> |
|
|
|
|
/// 核查人额外信息 |
|
|
|
|
/// </summary> |
|
|
|
|
[JsonPropertyName("extras")] |
|
|
|
|
public UserExtras? Extras { get; set; } |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/// <summary> |
|
|
|
|
/// 部门信息 |
|
|
|
|
/// </summary> |
|
|
|
|
public class DepartmentInfo |
|
|
|
|
{ |
|
|
|
|
/// <summary> |
|
|
|
|
/// 部门详情 |
|
|
|
|
/// </summary> |
|
|
|
|
[JsonPropertyName("branch")] |
|
|
|
|
public DepartmentDetail? Branch { get; set; } |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/// <summary> |
|
|
|
|
/// 部门详情 |
|
|
|
|
/// </summary> |
|
|
|
|
public class DepartmentDetail |
|
|
|
|
{ |
|
|
|
|
/// <summary> |
|
|
|
|
/// 部门名称 |
|
|
|
|
/// </summary> |
|
|
|
|
[JsonPropertyName("name")] |
|
|
|
|
public string Name { get; set; } = string.Empty; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/// <summary> |
|
|
|
|
/// 用户额外信息 |
|
|
|
|
/// </summary> |
|
|
|
|
public class UserExtras |
|
|
|
|
{ |
|
|
|
|
/// <summary> |
|
|
|
|
/// 姓名 |
|
|
|
|
/// </summary> |
|
|
|
|
[JsonPropertyName("name")] |
|
|
|
|
public string Name { get; set; } = string.Empty; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/// <summary> |
|
|
|
|
/// 隐患相关风险点信息 |
|
|
|
|
/// </summary> |
|
|
|
|
public class HazardEquipment |
|
|
|
|
{ |
|
|
|
|
/// <summary> |
|
|
|
|
/// 责任部门 |
|
|
|
|
/// </summary> |
|
|
|
|
[JsonPropertyName("branch")] |
|
|
|
|
public DepartmentDetail? Branch { get; set; } |
|
|
|
|
|
|
|
|
|
/// <summary> |
|
|
|
|
/// 风险点名称 |
|
|
|
|
/// </summary> |
|
|
|
|
[JsonPropertyName("name")] |
|
|
|
|
public string Name { get; set; } = string.Empty; |
|
|
|
|
|
|
|
|
|
/// <summary> |
|
|
|
|
/// 所在区域 |
|
|
|
|
/// </summary> |
|
|
|
|
[JsonPropertyName("region")] |
|
|
|
|
public RegionInfo? Region { get; set; } |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/// <summary> |
|
|
|
|
/// 区域信息 |
|
|
|
|
/// </summary> |
|
|
|
|
public class RegionInfo |
|
|
|
|
{ |
|
|
|
|
/// <summary> |
|
|
|
|
/// 区域名称 |
|
|
|
|
/// </summary> |
|
|
|
|
[JsonPropertyName("name")] |
|
|
|
|
public string Name { get; set; } = string.Empty; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/// <summary> |
|
|
|
|
/// 风险等级信息 |
|
|
|
|
/// </summary> |
|
|
|
|
public class RiskLevelInfo |
|
|
|
|
{ |
|
|
|
|
/// <summary> |
|
|
|
|
/// 责任部门信息 |
|
|
|
|
/// </summary> |
|
|
|
|
[JsonPropertyName("branch")] |
|
|
|
|
public RiskBranchInfo? Branch { get; set; } |
|
|
|
|
|
|
|
|
|
/// <summary> |
|
|
|
|
/// 风险等级ID |
|
|
|
|
/// </summary> |
|
|
|
|
[JsonPropertyName("id")] |
|
|
|
|
public int Id { get; set; } |
|
|
|
|
|
|
|
|
|
/// <summary> |
|
|
|
|
/// 风险等级名称 |
|
|
|
|
/// </summary> |
|
|
|
|
[JsonPropertyName("name")] |
|
|
|
|
public string Name { get; set; } = string.Empty; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/// <summary> |
|
|
|
|
/// 风险点责任部门信息 |
|
|
|
|
/// </summary> |
|
|
|
|
public class RiskBranchInfo |
|
|
|
|
{ |
|
|
|
|
/// <summary> |
|
|
|
|
/// 风险点管控层级 |
|
|
|
|
/// </summary> |
|
|
|
|
[JsonPropertyName("branch_level")] |
|
|
|
|
public LevelInfo? BranchLevel { get; set; } |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/// <summary> |
|
|
|
|
/// 层级信息 |
|
|
|
|
/// </summary> |
|
|
|
|
public class LevelInfo |
|
|
|
|
{ |
|
|
|
|
/// <summary> |
|
|
|
|
/// 层级名称(如岗位级) |
|
|
|
|
/// </summary> |
|
|
|
|
[JsonPropertyName("name")] |
|
|
|
|
public string Name { get; set; } = string.Empty; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/// <summary> |
|
|
|
|
/// 风险点责任人信息 |
|
|
|
|
/// </summary> |
|
|
|
|
public class ResponsiblePerson |
|
|
|
|
{ |
|
|
|
|
/// <summary> |
|
|
|
|
/// 责任人详情 |
|
|
|
|
/// </summary> |
|
|
|
|
[JsonPropertyName("users")] |
|
|
|
|
public PersonDetail? Users { get; set; } |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/// <summary> |
|
|
|
|
/// 人员详情 |
|
|
|
|
/// </summary> |
|
|
|
|
public class PersonDetail |
|
|
|
|
{ |
|
|
|
|
/// <summary> |
|
|
|
|
/// 姓名 |
|
|
|
|
/// </summary> |
|
|
|
|
[JsonPropertyName("name")] |
|
|
|
|
public string Name { get; set; } = string.Empty; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/// <summary> |
|
|
|
|
/// 隐患整改及验收信息 |
|
|
|
|
/// </summary> |
|
|
|
|
public class RectificationInfo |
|
|
|
|
{ |
|
|
|
|
/// <summary> |
|
|
|
|
/// 整改责任部门 |
|
|
|
|
/// </summary> |
|
|
|
|
[JsonPropertyName("branch")] |
|
|
|
|
public DepartmentDetail? Branch { get; set; } |
|
|
|
|
|
|
|
|
|
/// <summary> |
|
|
|
|
/// 本次整改验收信息 |
|
|
|
|
/// </summary> |
|
|
|
|
[JsonPropertyName("check")] |
|
|
|
|
public RectificationCheck? Check { get; set; } |
|
|
|
|
|
|
|
|
|
/// <summary> |
|
|
|
|
/// 整改人所选验收人姓名 |
|
|
|
|
/// </summary> |
|
|
|
|
[JsonPropertyName("check_user")] |
|
|
|
|
public string CheckUser { get; set; } = string.Empty; |
|
|
|
|
|
|
|
|
|
/// <summary> |
|
|
|
|
/// 隐患整改图片列表 |
|
|
|
|
/// </summary> |
|
|
|
|
[JsonPropertyName("file")] |
|
|
|
|
public List<FileInfo>? Files { get; set; } |
|
|
|
|
|
|
|
|
|
/// <summary> |
|
|
|
|
/// 整改完成时间 |
|
|
|
|
/// </summary> |
|
|
|
|
[JsonPropertyName("finish_time")] |
|
|
|
|
public DateTime FinishTime { get; set; } |
|
|
|
|
|
|
|
|
|
/// <summary> |
|
|
|
|
/// 整改投入资金(元) |
|
|
|
|
/// </summary> |
|
|
|
|
[JsonPropertyName("funds")] |
|
|
|
|
public string Funds { get; set; } = string.Empty; |
|
|
|
|
|
|
|
|
|
/// <summary> |
|
|
|
|
/// 整改措施 |
|
|
|
|
/// </summary> |
|
|
|
|
[JsonPropertyName("measures_desc")] |
|
|
|
|
public string MeasuresDescription { get; set; } = string.Empty; |
|
|
|
|
|
|
|
|
|
/// <summary> |
|
|
|
|
/// 整改情况 |
|
|
|
|
/// </summary> |
|
|
|
|
[JsonPropertyName("infos")] |
|
|
|
|
public string Infos { get; set; } = string.Empty; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/// <summary> |
|
|
|
|
/// 整改验收信息 |
|
|
|
|
/// </summary> |
|
|
|
|
public class RectificationCheck |
|
|
|
|
{ |
|
|
|
|
/// <summary> |
|
|
|
|
/// 整改验收时间 |
|
|
|
|
/// </summary> |
|
|
|
|
[JsonPropertyName("cend_time")] |
|
|
|
|
public DateTime CheckEndTime { get; set; } |
|
|
|
|
|
|
|
|
|
/// <summary> |
|
|
|
|
/// 验收图片或文件列表 |
|
|
|
|
/// </summary> |
|
|
|
|
[JsonPropertyName("file")] |
|
|
|
|
public List<FileInfo>? Files { get; set; } |
|
|
|
|
|
|
|
|
|
/// <summary> |
|
|
|
|
/// 验收意见 |
|
|
|
|
/// </summary> |
|
|
|
|
[JsonPropertyName("remark")] |
|
|
|
|
public string Remark { get; set; } = string.Empty; |
|
|
|
|
|
|
|
|
|
/// <summary> |
|
|
|
|
/// 验收结果,1通过,2不通过 |
|
|
|
|
/// </summary> |
|
|
|
|
[JsonPropertyName("status")] |
|
|
|
|
public string Status { get; set; } = string.Empty; |
|
|
|
|
|
|
|
|
|
/// <summary> |
|
|
|
|
/// 验收人姓名 |
|
|
|
|
/// </summary> |
|
|
|
|
[JsonPropertyName("check_user")] |
|
|
|
|
public string CheckUser { get; set; } = string.Empty; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/// <summary> |
|
|
|
|
/// 文件信息 |
|
|
|
|
/// </summary> |
|
|
|
|
public class FileInfo |
|
|
|
|
{ |
|
|
|
|
/// <summary> |
|
|
|
|
/// 文件名称 |
|
|
|
|
/// </summary> |
|
|
|
|
[JsonPropertyName("name")] |
|
|
|
|
public string Name { get; set; } = string.Empty; |
|
|
|
|
|
|
|
|
|
/// <summary> |
|
|
|
|
/// 文件路径 |
|
|
|
|
/// </summary> |
|
|
|
|
[JsonPropertyName("paths")] |
|
|
|
|
public string Path { get; set; } = string.Empty; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/// <summary> |
|
|
|
|
/// 隐患上报情况 |
|
|
|
|
/// </summary> |
|
|
|
|
public class HazardRegister |
|
|
|
|
{ |
|
|
|
|
/// <summary> |
|
|
|
|
/// 隐患一级分类信息 |
|
|
|
|
/// </summary> |
|
|
|
|
[JsonPropertyName("cate")] |
|
|
|
|
public CategoryInfo? Category { get; set; } |
|
|
|
|
|
|
|
|
|
/// <summary> |
|
|
|
|
/// 隐患二级分类信息 |
|
|
|
|
/// </summary> |
|
|
|
|
[JsonPropertyName("cate_sub")] |
|
|
|
|
public CategoryInfo? SubCategory { get; set; } |
|
|
|
|
|
|
|
|
|
/// <summary> |
|
|
|
|
/// 所选核查人姓名 |
|
|
|
|
/// </summary> |
|
|
|
|
[JsonPropertyName("check_user")] |
|
|
|
|
public string CheckUser { get; set; } = string.Empty; |
|
|
|
|
|
|
|
|
|
/// <summary> |
|
|
|
|
/// 隐患图片列表 |
|
|
|
|
/// </summary> |
|
|
|
|
[JsonPropertyName("file")] |
|
|
|
|
public List<FileInfo>? Files { get; set; } |
|
|
|
|
|
|
|
|
|
/// <summary> |
|
|
|
|
/// 隐患情况描述 |
|
|
|
|
/// </summary> |
|
|
|
|
[JsonPropertyName("infos")] |
|
|
|
|
public string Infos { get; set; } = string.Empty; |
|
|
|
|
|
|
|
|
|
/// <summary> |
|
|
|
|
/// 隐患上报人信息 |
|
|
|
|
/// </summary> |
|
|
|
|
[JsonPropertyName("user")] |
|
|
|
|
public ReporterInfo? User { get; set; } |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/// <summary> |
|
|
|
|
/// 分类信息 |
|
|
|
|
/// </summary> |
|
|
|
|
public class CategoryInfo |
|
|
|
|
{ |
|
|
|
|
/// <summary> |
|
|
|
|
/// 分类名称 |
|
|
|
|
/// </summary> |
|
|
|
|
[JsonPropertyName("name")] |
|
|
|
|
public string Name { get; set; } = string.Empty; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/// <summary> |
|
|
|
|
/// 上报人信息 |
|
|
|
|
/// </summary> |
|
|
|
|
public class ReporterInfo |
|
|
|
|
{ |
|
|
|
|
/// <summary> |
|
|
|
|
/// 姓名 |
|
|
|
|
/// </summary> |
|
|
|
|
[JsonPropertyName("name")] |
|
|
|
|
public string Name { get; set; } = string.Empty; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
#endregion 隐患详情数据 |
|
|
|
|
|
|
|
|
|
#region 危害辨识度数据 |
|
|
|
|
|
|
|
|
|
public class InjureResDto |
|
|
|
|
{ |
|
|
|
|
/// <summary> |
|
|
|
|
/// 危害ID |
|
|
|
|
/// </summary> |
|
|
|
|
[JsonPropertyName("id")] |
|
|
|
|
public int Id { get; set; } |
|
|
|
|
|
|
|
|
|
/// <summary> |
|
|
|
|
/// 危害名称 |
|
|
|
|
/// </summary> |
|
|
|
|
[JsonPropertyName("name")] |
|
|
|
|
public string Name { get; set; } = string.Empty; |
|
|
|
|
|
|
|
|
|
/// <summary> |
|
|
|
|
/// 危害说明 |
|
|
|
|
/// </summary> |
|
|
|
|
[JsonPropertyName("intro")] |
|
|
|
|
public string Introduction { get; set; } = string.Empty; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
#endregion 危害辨识度数据 |
|
|
|
|
|
|
|
|
|
#region 楼层数据 |
|
|
|
|
|
|
|
|
|
/// <summary> |
|
|
|
|
/// 区域结构及权限ID集合的根实体 |
|
|
|
|
/// </summary> |
|
|
|
|
public class RegionStructureRootDto |
|
|
|
|
{ |
|
|
|
|
/// <summary> |
|
|
|
|
/// 在region_id生效时,其所有子孙节点的ID集合 |
|
|
|
|
/// </summary> |
|
|
|
|
[JsonPropertyName("branch_permissions_ids")] |
|
|
|
|
public List<int>? BranchPermissionsIds { get; set; } |
|
|
|
|
|
|
|
|
|
/// <summary> |
|
|
|
|
/// 区域树形结构列表 |
|
|
|
|
/// </summary> |
|
|
|
|
[JsonPropertyName("list")] |
|
|
|
|
public List<RegionNode>? Regions { get; set; } |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/// <summary> |
|
|
|
|
/// 区域节点信息,包含区域的基本信息及子区域 |
|
|
|
|
/// </summary> |
|
|
|
|
public class RegionNode |
|
|
|
|
{ |
|
|
|
|
/// <summary> |
|
|
|
|
/// 区域ID |
|
|
|
|
/// </summary> |
|
|
|
|
[JsonPropertyName("id")] |
|
|
|
|
public int Id { get; set; } |
|
|
|
|
|
|
|
|
|
/// <summary> |
|
|
|
|
/// 区域名称 |
|
|
|
|
/// </summary> |
|
|
|
|
[JsonPropertyName("name")] |
|
|
|
|
public string Name { get; set; } = string.Empty; |
|
|
|
|
|
|
|
|
|
/// <summary> |
|
|
|
|
/// 父级区域ID |
|
|
|
|
/// </summary> |
|
|
|
|
[JsonPropertyName("parent_id")] |
|
|
|
|
public int ParentId { get; set; } |
|
|
|
|
|
|
|
|
|
/// <summary> |
|
|
|
|
/// 下一级子区域节点列表(递归结构) |
|
|
|
|
/// </summary> |
|
|
|
|
[JsonPropertyName("children")] |
|
|
|
|
public List<RegionNode>? Children { get; set; } |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
#endregion 楼层数据 |
|
|
|
|
|
|
|
|
|
public sealed class FixedPatternDateTimeConverter : JsonConverter<DateTime?> |
|
|
|
|
{ |
|
|
|
|
private const string Pattern = "yyyy-MM-dd HH:mm:ss"; |
|
|
|
|
|