using Hotline.File; using Hotline.FlowEngine.Workflows; using Hotline.Share.Enums.Order; using SqlSugar; using System.ComponentModel; using Hotline.Share.Dtos.File; using Hotline.Share.Dtos.Order; using XF.Domain.Repository; namespace Hotline.Orders { [Description("工单甄别")] public class OrderScreen : WorkflowEntity { /// /// 工单编号 /// [SugarColumn(ColumnDescription = "工单编号")] public string No { get; set; } /// /// 回访id /// [SugarColumn(ColumnDescription = "回访id")] public string VisitId { get; set; } /// /// 回访明细id /// [SugarColumn(ColumnDescription = "回访明细id")] public string VisitDetailId { get; set; } /// /// 工单id /// [SugarColumn(ColumnDescription = "工单id")] public string OrderId { get; set; } /// /// 回访 /// [Navigate(NavigateType.OneToOne, nameof(VisitDetailId))] public OrderVisitDetail VisitDetail { get; set; } /// /// 回访 /// [Navigate(NavigateType.OneToOne, nameof(VisitId))] public OrderVisit Visit { get; set; } /// /// 工单 /// [Navigate(NavigateType.OneToOne, nameof(OrderId))] public Order Order { get; set; } /// /// 回访 /// [Navigate(NavigateType.OneToMany, nameof(OrderScreenDetail.ScreenId), nameof(Id))] public List ScreenDetails { get; set; } /// /// 甄别申请类型id /// [SugarColumn(ColumnDescription = "甄别申请类型id")] public string? TypeDicId { get; set; } /// /// 甄别申请类型名称 /// [SugarColumn(ColumnDescription = "甄别申请类型名称")] public string? TypeDicName { get; set; } /// /// 甄别申请原因 /// [SugarColumn(ColumnDescription = "甄别申请原因", ColumnDataType = "varchar(2000)")] public string? Content { get; set; } /// /// 甄别申请回复 /// [SugarColumn(ColumnDescription = "甄别申请回复", ColumnDataType = "varchar(2000)")] public string? ReplyContent { get; set; } #region 用于省平台查询 /// /// 审核人 /// public string? AuditName { get; set; } /// /// 审核部门 /// public string? AuditOrgName { get; set; } /// /// 审核时间 /// public DateTime? AuditTime { get; set; } /// /// 是否省甄别 /// [SugarColumn(DefaultValue = "f")] public bool IsProScreen { get; set; } #endregion /// /// 甄别截至申请时间 /// [SugarColumn(ColumnDescription = "甄别截至申请时间")] public DateTime? ApplyEndTime { get; set; } /// /// 甄别申请状态 /// [SugarColumn(ColumnDescription = "甄别申请状态")] public EScreenStatus? Status { get; set; } /// /// 业务流程ID /// [SugarColumn(ColumnDescription = "业务流程ID")] public string? WorkflowId { get; set; } [Navigate(NavigateType.OneToOne, nameof(WorkflowId))] public Workflow? Workflow { get; set; } [SugarColumn(ColumnDataType = "json", IsJson = true, IsNullable = true)] public List? FileJson { get; set; } /// /// 甄别耗时 /// [SugarColumn(ColumnDescription = "甄别耗时")] public decimal? TimeConsuming { get; set; } /// /// 甄别退回次数 /// [SugarColumn(DefaultValue = "0")] public int SendBackNum { get; set; } /// /// 甄别退回到申请人 /// [SugarColumn(DefaultValue = "f")] public bool SendBackApply { get; set; } /// /// 甄别重提申请次数 /// [SugarColumn(DefaultValue = "0")] public int SendBackApplyNum { get; set; } /// /// 甄别退回时间 /// [SugarColumn(ColumnDescription = "甄别退回时间")] public DateTime? SendBackTime { get; set; } /// /// 甄别审批时间 /// [SugarColumn(ColumnDescription = "甄别审批时间")] public DateTime? NewestAuditTime { get; set; } /// /// 甄别类型 /// [SugarColumn(ColumnDescription = "甄别类型",DefaultValue ="0")] public EOrderScreenType? ScreenType { get; set; } } }