199 lines
5.1 KiB
C#
199 lines
5.1 KiB
C#
|
|
namespace ZR.Model.Business.Dto
|
|
{
|
|
/// <summary>
|
|
/// 工作记录查询对象
|
|
/// </summary>
|
|
public class CamWorkrecordQueryDto : PagerInfo
|
|
{
|
|
public string DeptName { get; set; }
|
|
public string Address { get; set; }
|
|
public string Content { get; set; }
|
|
public string StatusName { get; set; }
|
|
public DateTime? BeginRecordTime { get; set; }
|
|
public DateTime? EndRecordTime { get; set; }
|
|
}
|
|
|
|
/// <summary>
|
|
/// 工作记录输入输出对象
|
|
/// </summary>
|
|
public class CamWorkrecordDto
|
|
{
|
|
[Required(ErrorMessage = "主键不能为空")]
|
|
public int Id { get; set; }
|
|
|
|
public string DeptName { get; set; }
|
|
|
|
public string ImageUrl { get; set; }
|
|
|
|
public DateTime? RecordTime { get; set; }
|
|
|
|
public string Longitude { get; set; }
|
|
|
|
public string Latitude { get; set; }
|
|
|
|
public string Address { get; set; }
|
|
|
|
public string Content { get; set; }
|
|
|
|
public string StatusName { get; set; }
|
|
|
|
public string Remarks { get; set; }
|
|
|
|
public DateTime? CreateTime { get; set; }
|
|
|
|
public DateTime? UpdateTime { get; set; }
|
|
|
|
public Dictionary<string, object> RemarksDic { get; set; }
|
|
|
|
/// <summary>
|
|
/// 施工人员
|
|
/// </summary>
|
|
public List<CamWorkersDto> Workers { get; set; }
|
|
|
|
/// <summary>
|
|
/// 施工人员
|
|
/// </summary>
|
|
public string Worker { get; set; }
|
|
|
|
[ExcelColumn(Name = "状态")]
|
|
public string StatusNameLabel { get; set; }
|
|
}
|
|
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
public class CamRecordWorkDto
|
|
{
|
|
public int? Id { get; set; }
|
|
/// <summary>
|
|
/// 部门名称
|
|
/// </summary>
|
|
public string DeptName { get; set; }
|
|
|
|
public string ImageUrl { get; set; }
|
|
|
|
/// <summary>
|
|
/// 图片地址
|
|
/// </summary>
|
|
public string Image { get; set; }
|
|
|
|
/// <summary>
|
|
/// 工作记录时间
|
|
/// </summary>
|
|
public DateTime? RecordTime { get; set; }
|
|
|
|
/// <summary>
|
|
/// 经度
|
|
/// </summary>
|
|
public string Longitude { get; set; }
|
|
|
|
/// <summary>
|
|
/// 纬度
|
|
/// </summary>
|
|
public string Latitude { get; set; }
|
|
|
|
/// <summary>
|
|
/// 工作地点
|
|
/// </summary>
|
|
public string Address { get; set; }
|
|
|
|
/// <summary>
|
|
/// 工作内容
|
|
/// </summary>
|
|
public string Content { get; set; }
|
|
|
|
/// <summary>
|
|
/// 状态
|
|
/// </summary>
|
|
public string StatusName { get; set; }
|
|
|
|
/// <summary>
|
|
///备注
|
|
/// </summary>
|
|
public string Remarks { get; set; }
|
|
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
public List<string> Workers { get; set; }
|
|
}
|
|
|
|
/// <summary>
|
|
/// 工作记录输入输出对象
|
|
/// </summary>
|
|
public class CamWorkrecordExcelDto
|
|
{
|
|
[ExcelIgnore]
|
|
public int Id { get; set; }
|
|
|
|
|
|
[ExcelColumn(Name = "序号")]
|
|
[ExcelColumnName("序号")]
|
|
public int Index { get; set; }
|
|
|
|
[ExcelColumn(Name = "部门名称")]
|
|
[ExcelColumnName("部门名称")]
|
|
public string DeptName { get; set; }
|
|
|
|
[ExcelColumn(Name = "拍照时间", Format = "yyyy-MM-dd HH:mm:ss", Width = 20)]
|
|
[ExcelColumnName("拍照时间")]
|
|
public DateTime? RecordTime { get; set; }
|
|
|
|
[ExcelColumn(Name = "经度")]
|
|
[ExcelColumnName("经度")]
|
|
public string Longitude { get; set; }
|
|
|
|
[ExcelColumn(Name = "纬度")]
|
|
[ExcelColumnName("纬度")]
|
|
public string Latitude { get; set; }
|
|
|
|
[ExcelColumn(Name = "位置")]
|
|
[ExcelColumnName("位置")]
|
|
public string Address { get; set; }
|
|
|
|
[ExcelColumn(Name = "工作内容")]
|
|
[ExcelColumnName("工作内容")]
|
|
public string Content { get; set; }
|
|
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
[ExcelIgnore]
|
|
public List<string> Workers { get; set; }
|
|
|
|
[ExcelColumn(Name = "施工人员")]
|
|
[ExcelColumnName("施工人员")]
|
|
public string Worker
|
|
{
|
|
get
|
|
{
|
|
return Workers != null ? string.Join(",", Workers) : string.Empty;
|
|
}
|
|
}
|
|
[ExcelColumn(Name = "状态")]
|
|
[ExcelColumnName("状态")]
|
|
public string StatusName { get; set; }
|
|
|
|
[ExcelIgnore]
|
|
public string Remarks { get; set; }
|
|
|
|
[ExcelColumn(Name = "施工图片", Width = 100)]
|
|
[ExcelColumnName("施工图片")]
|
|
public byte[] Image { get; set; }
|
|
|
|
[ExcelColumn(Name = "创建时间", Format = "yyyy-MM-dd HH:mm:ss", Width = 20)]
|
|
[ExcelColumnName("创建时间")]
|
|
public DateTime? CreateTime { get; set; }
|
|
|
|
[ExcelColumn(Name = "更新时间", Format = "yyyy-MM-dd HH:mm:ss", Width = 20)]
|
|
[ExcelColumnName("更新时间")]
|
|
public DateTime? UpdateTime { get; set; }
|
|
|
|
[ExcelIgnore]
|
|
public string ImageUrl { get; set; }
|
|
|
|
|
|
}
|
|
|
|
} |