using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using WIDESEA_Core.Attributes;
using WIDESEA_Core.CodeConfigEnum;
using WIDESEA_Core.DB.Models;
namespace WIDESEA_Model.Models
{
///
/// 退料单
///
[SugarTable(nameof(Dt_ReturnOrder), "退料单")]
public class Dt_ReturnOrder : BaseEntity
{
///
/// 主键
///
[SugarColumn(IsPrimaryKey = true, IsIdentity = true, ColumnDescription = "主键")]
public int Id { get; set; }
///
/// 退料单号
///
[SugarColumn(IsNullable = false, Length = 50, ColumnDescription = "退料单号")]
public string OrderNo { get; set; }
///
/// 仓库主键
///
[SugarColumn(IsNullable = false, ColumnDescription = "仓库主键")]
public int WarehouseId { get; set; }
///
/// 订单类型
/// 1:标准退料
/// 2:bom退料
///
[SugarColumn(IsNullable = false, ColumnDescription = "订单类型")]
public int ReturnOrderType { get; set; }
///
/// 订单状态
///
[SugarColumn(IsNullable = false, ColumnDescription = "订单状态")]
public int ReturnOrderStatus { get; set; }
///
/// 上传状态
///
[SugarColumn(IsNullable = false, ColumnDescription = "上传状态")]
public int UploadStatus { get; set; }
///
/// 是否研发
///
[SugarColumn(IsNullable = false, ColumnDescription = "是否研发")]
public int IsDev { get; set; }
///
/// 备注
///
[SugarColumn(IsNullable = true, Length = 500, ColumnDescription = "备注")]
public string Remark { get; set; }
///
/// 退料单明细
///
[PropertyValidate("退料单明细", NotNullAndEmpty = true), Navigate(NavigateType.OneToMany, nameof(Dt_ReturnOrderDetail.ReturnId), nameof(Id))]
public List Details { get; set; }
}
}