using Hotline.File;
using Hotline.FlowEngine.Workflows;
using Hotline.Share.Enums.Order;
using SqlSugar;
using System.ComponentModel;
using Hotline.Share.Dtos.File;
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; }
///
/// 甄别申请类型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; }
///
/// 甄别截至申请时间
///
[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; }
}
}