using Lada.Framework.Data.Enums;
using Lada.Framework.DTO;
using Lada.Framework.Infrastructures.Helpers;
using System.ComponentModel.DataAnnotations;

namespace Ladaer.BackEnd.Infrastructures.DTO.Items.Orders
{
    public class OrderOpsItem : BaseItem<int>
    {
        public OrderStatus Status { get; set; }
        public string StatusStr => Status.GetDescription();
        public OrderPhysicalStatus PhysicalStatus { get; set; }
        public string PhysicalStatusStr => PhysicalStatus.GetDescription();
        public string StatusContent { get; set; }
        public OrderDirection OrderDirection { get; set; }
        public string OrderDirectionStr => OrderDirection.GetDescription();
        public int PicId { get; set; }

        [MaxLength(64)]
        public string PicUserName { get; set; }
        public string PickupNote { get; set; }
        public string DeliveryNote { get; set; }

        public int DisplayOrder { get; set; }

        public bool CanCancel { get; set; } = false;

    }
}
