namespace ZR.Model.Business.Dto
{
///
/// 工作记录查询对象
///
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; }
}
///
/// 工作记录输入输出对象
///
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 RemarksDic { get; set; }
///
/// 施工人员
///
public List Workers { get; set; }
///
/// 施工人员
///
public string Worker { get; set; }
[ExcelColumn(Name = "状态")]
public string StatusNameLabel { get; set; }
}
///
///
///
public class CamRecordWorkDto
{
public int? Id { get; set; }
///
/// 部门名称
///
public string DeptName { get; set; }
public string ImageUrl { get; set; }
///
/// 图片地址
///
public string Image { 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 List Workers { get; set; }
}
///
/// 工作记录输入输出对象
///
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; }
///
///
///
[ExcelIgnore]
public List 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; }
}
}