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_ReturnOrderDetail), "退料单明细")]
public class Dt_ReturnOrderDetail : BaseEntity
{
///
/// 主键
///
[SugarColumn(IsPrimaryKey = true, IsIdentity = true, ColumnDescription = "主键")]
public int Id { get; set; }
///
/// 退料单主键
///
[SugarColumn(IsNullable = false, ColumnDescription = "退料单主键")]
public int ReturnId { get; set; }
///
/// 申请单号(发料单)
///
[SugarColumn(IsNullable = false,Length =50, ColumnDescription = "申请单号(发料单)")]
public string PickCode { get; set; }
///
/// 申请单号行号(发料单明细行号)
///
[SugarColumn(IsNullable = false, ColumnDescription = "申请单号行号(发料单明细行号)")]
public int ApplyRow { get; set; }
///
/// 退料行号
///
[SugarColumn(IsNullable = false, ColumnDescription = "退料行号")]
public int RowId { get; set; }
///
/// 明细单状态
///
[SugarColumn(IsNullable = false, ColumnDescription = "明细单状态")]
public int OrderDetailStatus { get; set; }
///
/// 物料编码
///
[SugarColumn(IsNullable = false,Length =50, ColumnDescription = "物料编码")]
public string MCode { get; set; }
///
/// 物料名称
///
[SugarColumn(IsNullable = true, Length = 200, ColumnDescription = "物料名称")]
public string MaterielName { get; set; }
///
/// 物料规格
///
[SugarColumn(IsNullable = true, Length = 200, ColumnDescription = "物料规格")]
public string MaterielSpec { get; set; }
///
/// 批次号
///
[SugarColumn(IsNullable = false, Length = 50, ColumnDescription = "批次号")]
public string BatchNo { get; set; }
///
/// 可退数量
///
[SugarColumn(IsNullable = false, ColumnDescription = "可退数量")]
public float Qty { get; set; }
///
/// 退回数量
///
[SugarColumn(IsNullable = false, ColumnDescription = "退回数量")]
public float ReturnQty { get; set; }
///
/// 已退回数量
///
[SugarColumn(IsNullable = false, ColumnDescription = "已退回数量")]
public float OverReturnQty { get; set; }
///
/// 单位
///
[SugarColumn(IsNullable = false,Length =20, ColumnDescription = "单位")]
public string Unit { get; set; }
///
/// 制造部件code
///
[SugarColumn(IsNullable = true, Length = 50, ColumnDescription = "制造部件code")]
public string Code { get; set; }
}
}