using Magicodes.ExporterAndImporter.Core;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using WIDESEAWCS_Core.DB.Models;
using Magicodes.IE.Core;
namespace WIDESEAWCS_Model.Models
{
[SugarTable(nameof(Dt_FormulaDetail), "配方信息详情表")]
public class Dt_FormulaDetail : BaseEntity
{
///
/// 主键
///
[ImporterHeader(IsIgnore = true)]
[ExporterHeader(null, 11f, null, true, true, false, 0, KnownColor.Empty, DisplayName = "主键")]
[SugarColumn(IsPrimaryKey = true, IsIdentity = true, ColumnDescription = "主键")]
public int Id { get; set; }
///
/// 配方信息主键
///
[ImporterHeader(Name = "配方信息主键")]
[ExporterHeader(null, 11f, null, true, true, false, 0, KnownColor.Empty, DisplayName = "配方信息主键")]
[SugarColumn(IsNullable = false, ColumnDescription = "配方信息主键")]
public int FormulaId { get; set; }
///
/// 零件编号
///
[ImporterHeader(Name = "零件编号")]
[ExporterHeader(null, 11f, null, true, true, false, 0, KnownColor.Empty, DisplayName = "零件编号")]
[SugarColumn(IsNullable = true, Length = 50, ColumnDescription = "零件编号")]
public string ComponentCode { get; set; }
///
/// 零件名称
///
[ImporterHeader(Name = "零件名称")]
[ExporterHeader(null, 11f, null, true, true, false, 0, KnownColor.Empty, DisplayName = "零件名称")]
[SugarColumn(IsNullable = true, Length = 50, ColumnDescription = "零件名称")]
public string ComponentName { get; set; }
///
/// 供方代码
///
[ImporterHeader(Name = "供方代码")]
[ExporterHeader(null, 11f, null, true, true, false, 0, KnownColor.Empty, DisplayName = "供方代码")]
[SugarColumn(IsNullable = true, Length = 50, ColumnDescription = "供方代码")]
public string SupplierCode { get; set; }
///
/// 是否扫码
///
[ImporterHeader(Name = "是否扫码")]
[ExporterHeader(null, 11f, null, true, true, false, 0, KnownColor.Empty, DisplayName = "是否扫码")]
[SugarColumn(IsNullable = true, DefaultValue = "0", ColumnDescription = "是否扫码")]
public int IsScanned { get; set; }
}
}