模板导出成功
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using MiniExcelLibs.Attributes;
|
||||
using SqlSugar;
|
||||
|
||||
/*
|
||||
@@ -21,18 +22,22 @@ namespace Model.DBModel
|
||||
/// WP2024030001
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "id",IsPrimaryKey = true)]
|
||||
[ExcelIgnore]
|
||||
public string Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 零件号
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "partnumber")]
|
||||
[ExcelColumn(Name = "零件号", IndexName = "C")]
|
||||
public string Partnumber { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 产品描述
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "product_name")]
|
||||
|
||||
[ExcelColumn(Name = "产品描述", IndexName = "D")]
|
||||
public string ProductName { get; set; }
|
||||
|
||||
|
||||
@@ -40,6 +45,7 @@ namespace Model.DBModel
|
||||
/// 规格
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "specification")]
|
||||
[ExcelColumn(Name = "规格", IndexName = "E")]
|
||||
public string Specification { get; set; }
|
||||
|
||||
|
||||
@@ -49,39 +55,52 @@ namespace Model.DBModel
|
||||
/// 颜色代码
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "color_code")]
|
||||
[ExcelColumn(Name = "颜色代码", IndexName = "F")]
|
||||
public string ColorCode { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 本周要货数量
|
||||
/// </summary>
|
||||
|
||||
|
||||
[SugarColumn(ColumnName = "require_num")]
|
||||
public float RequireNum { get; set; }
|
||||
[ExcelColumn(Name = "本周要货数量", IndexName = "G")]
|
||||
public int RequireNum { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 产品合格率
|
||||
/// </summary>
|
||||
|
||||
[SugarColumn(ColumnName = "qualification_rate")]
|
||||
public float QualificationRate { get; set; }
|
||||
[ExcelColumnIndex("H")]
|
||||
[ExcelColumnName("产品合格率")]
|
||||
|
||||
public double QualificationRate { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 每挂数量
|
||||
/// </summary>
|
||||
|
||||
[SugarColumn(ColumnName = "every_hanger_num")]
|
||||
|
||||
[ExcelColumnIndex("I")]
|
||||
[ExcelColumnName("每挂数量")]
|
||||
|
||||
public float EveryHangerNum { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 生产节拍(分钟)
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "production_beat")]
|
||||
[ExcelColumnIndex("J")]
|
||||
[ExcelColumnName("生产节拍(分钟)")]
|
||||
public decimal ProductionBeat { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 总挂具数
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "all_hanger_num")]
|
||||
[ExcelColumnIndex("K")]
|
||||
[ExcelColumnName("总挂具数")]
|
||||
public float AllHangerNum { get; set; }
|
||||
|
||||
/// <summary>
|
||||
@@ -89,6 +108,8 @@ namespace Model.DBModel
|
||||
/// </summary>
|
||||
///
|
||||
[SugarColumn(ColumnName = "require_hanger")]
|
||||
[ExcelColumnIndex("L")]
|
||||
[ExcelColumnName("订单需生产挂具数量")]
|
||||
public float RequireHanger { get; set; }
|
||||
|
||||
/// <summary>
|
||||
@@ -96,6 +117,8 @@ namespace Model.DBModel
|
||||
/// </summary>
|
||||
///
|
||||
[SugarColumn(ColumnName = "turn_number")]
|
||||
[ExcelColumnIndex("M")]
|
||||
[ExcelColumnName("圈数")]
|
||||
public float TurnNumber { get; set; }
|
||||
|
||||
/// <summary>
|
||||
@@ -103,6 +126,8 @@ namespace Model.DBModel
|
||||
/// </summary>
|
||||
|
||||
[SugarColumn(ColumnName = "product_time")]
|
||||
[ExcelColumnIndex("N")]
|
||||
[ExcelColumnName("订单生产时间(分钟)")]
|
||||
public float ProductTime { get; set; }
|
||||
|
||||
|
||||
@@ -111,15 +136,26 @@ namespace Model.DBModel
|
||||
/// </summary>
|
||||
|
||||
[SugarColumn(ColumnName = "no_schedule")]
|
||||
[ExcelIgnore]
|
||||
public int NoSchedule { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 毛坯号
|
||||
/// </summary>
|
||||
|
||||
[SugarColumn(ColumnName = "blank_num")]
|
||||
[ExcelColumnIndex("B")]
|
||||
[ExcelColumnName("毛坯号")]
|
||||
public string BlankNum { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 来源:手动插入,excel导入
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "remark")]
|
||||
[ExcelIgnore]
|
||||
public string Remark { get; set; }
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/// <summary>
|
||||
@@ -127,15 +163,15 @@ namespace Model.DBModel
|
||||
/// </summary>
|
||||
///
|
||||
[SugarColumn(ColumnName = "year")]
|
||||
[ExcelIgnore]
|
||||
public float Year { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 周
|
||||
/// </summary>
|
||||
///
|
||||
|
||||
|
||||
[SugarColumn(ColumnName = "week")]
|
||||
[ExcelIgnore]
|
||||
public float Week { get; set; }
|
||||
|
||||
|
||||
@@ -143,9 +179,8 @@ namespace Model.DBModel
|
||||
/// 创建人
|
||||
/// </summary>
|
||||
///
|
||||
|
||||
|
||||
[SugarColumn(ColumnName = "CREATED_BY")]
|
||||
[ExcelIgnore]
|
||||
public string CreatedBy { get; set; }
|
||||
|
||||
/// <summary>
|
||||
@@ -153,6 +188,7 @@ namespace Model.DBModel
|
||||
/// </summary>
|
||||
///
|
||||
[SugarColumn(ColumnName = "CREATED_TIME")]
|
||||
[ExcelIgnore]
|
||||
public DateTime CreatedTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
@@ -160,6 +196,7 @@ namespace Model.DBModel
|
||||
/// </summary>
|
||||
///
|
||||
[SugarColumn(ColumnName = "UPDATED_BY")]
|
||||
[ExcelIgnore]
|
||||
public string UpdatedBy { get; set; }
|
||||
|
||||
/// <summary>
|
||||
@@ -167,6 +204,7 @@ namespace Model.DBModel
|
||||
/// </summary>
|
||||
///
|
||||
[SugarColumn(ColumnName = "UPDATED_TIME")]
|
||||
[ExcelIgnore]
|
||||
public DateTime UpdatedTime { get; set; }
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user