using Hotline.Share.Requests;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Hotline.Share.Dtos.Order
{
	public class OrderFinalityDto : OrderFinalityBaseDto
	{
		/// <summary>
		/// 工单ID
		/// </summary>
		public string OrderId { get; set; }

		/// <summary>
		/// 
		/// </summary>
		public OrderDto Order { get; set; }
	}

	public class OrderFinalityAddDto
	{

		/// <summary>
		/// 工单ID
		/// </summary>
		public List<OrdersFinalityAddDto> OrderIds { get; set; }
	}
	public class OrdersFinalityAddDto
	{

		public string OrderId { get; set; }
	}

	public class OrderFinalityDeleteDto
	{
		public List<string> Ids { get; set; }
	}

	public class OrderFinalityUpdateDto : OrderFinalityAddDto
	{
		public string Id { get; set; }
	}

	public record OrderFinalityListDto : PagedKeywordRequest
	{
		/// <summary>
		/// 标题
		/// </summary>
		public string? Title { get; set; }

		/// <summary>
		/// 编号
		/// </summary>
		public string? No { get; set; }

		/// <summary>
		/// 是否为省工单
		/// </summary>
		public bool? IsProvince { get; set; }

	}
	public class OrderFinalityBaseDto
	{
		public DateTime? LastModificationTime { get; set; }

		public bool IsDeleted { get; set; }

		/// <summary>
		/// 删除时间
		/// </summary>
		public DateTime? DeletionTime { get; set; }


		/// <summary>
		/// 创建时间
		/// </summary>
		public DateTime CreationTime { get; set; }

		public string Id { get; set; }

		/// <summary>
		/// 组织Id
		/// </summary>
		public string? CreatorOrgId { get; set; }


		public string? CreatorOrgName { get; set; }

		/// <summary>
		/// 创建人
		/// </summary>
		public string? CreatorId { get; set; }

		public string? CreatorName { get; set; }
	}
}
