You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

162 lines
4.7 KiB
C#

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ZhongLianModel
{
[SugarTable("ZL_Maintenance_{year}{month}{day}")]
[SplitTable(SplitType.Year)]
public class MaintenanceDO
{
public MaintenanceDO() {
BomCodes = new string[0];
Boms = new string[0];
ErrorRemarkPhoto = new string[0];
ProcessResultPhoto = new string[0];
}
/// <summary>
/// 编号
/// </summary>
[SugarColumn(IsPrimaryKey = true, Length = 100)]
public string? Id { get; set; }
/// <summary>
/// 标题
/// </summary>
[SugarColumn(IsNullable = true, Length = 200)]
public string? Title { get; set; }
/// <summary>
/// 单据类型
/// </summary>
[SugarColumn(IsNullable = true, Length = 50)]
public string? Type { get; set; }
/// <summary>
/// 维修人员编号
/// </summary>
[SugarColumn(IsNullable = true, Length = 100)]
public string? MaintenanceUid { get; set; }
/// <summary>
/// 维修人员信息
/// </summary>
[SugarColumn(IsJson = true, IsNullable = true, ColumnDataType = "Text")]
public Dictionary<string, dynamic>? MaintenanceUser { get; set; }
/// <summary>
/// 设备分类编号
/// </summary>
[SugarColumn(IsNullable = true, Length = 100)]
public string? DeviceTypeCode { get; set; }
/// <summary>
/// 设备分类
/// </summary>
[SugarColumn(IsNullable = true, Length = 200)]
public string? DeviceType { get; set; }
/// <summary>
/// 维修日期
/// </summary>
[SugarColumn(IsNullable = true)]
public DateTime? MaintenanceDate { get; set; }
/// <summary>
/// 安装单状态,0未完成1维修人员已提交2审核未通过3已完成
/// </summary>
[SugarColumn(IsNullable = true, Length = 2)]
public int? State { get; set; }
/// <summary>
/// 备注
/// </summary>
[SugarColumn(IsNullable = true, ColumnDataType = "Text")]
public string? Remark { get; set; }
/// <summary>
/// 故障归类编号
/// </summary>
[SugarColumn(IsNullable = true, Length = 100)]
public string? ErrorTypeCode { get; set; }
/// <summary>
/// 故障归类
/// </summary>
[SugarColumn(IsNullable = true, Length = 200)]
public string? ErrorType { get; set; }
/// <summary>
/// 配件清单编号
/// </summary>
[SugarColumn(IsJson = true, IsNullable = true, ColumnDataType = "Text")]
public string[]? BomCodes { get; set; }
/// <summary>
/// 配件清单
/// </summary>
[SugarColumn(IsJson = true, IsNullable = true, ColumnDataType = "Text")]
public string[]? Boms { get; set; }
/// <summary>
/// 处理方式编号
/// </summary>
[SugarColumn(IsNullable = true, Length = 100)]
public string? ErrorActionCode { get; set; }
/// <summary>
/// 处理方式
/// </summary>
[SugarColumn(IsNullable = true, Length = 200)]
public string? ErrorAction { get; set; }
/// <summary>
/// 故障代码编号
/// </summary>
[SugarColumn(IsNullable = true, Length = 100)]
public string? ErrorCodeCode { get; set; }
/// <summary>
/// 故障代码
/// </summary>
[SugarColumn(IsNullable = true, Length = 200)]
public string? ErrorCode { get; set; }
/// <summary>
/// 故障分析
/// </summary>
[SugarColumn(IsNullable = true, Length = 500)]
public string? ErrorRemark { get; set; }
/// <summary>
/// 故障分析图片
/// </summary>
[SugarColumn(IsJson = true, IsNullable = true, ColumnDataType = "Text")]
public string[]? ErrorRemarkPhoto { get; set; }
/// <summary>
/// 处理结果
/// </summary>
[SugarColumn(IsNullable = true, Length = 500)]
public string? ProcessResult { get; set; }
/// <summary>
/// 处理结果图片
/// </summary>
[SugarColumn(IsJson = true, IsNullable = true, ColumnDataType = "Text")]
public string[]? ProcessResultPhoto { get; set; }
/// <summary>
/// 创建日期
/// </summary>
[SplitField]
[SugarColumn(IsNullable = true)]
public DateTime? CreateDate { get; set; }
}
}