模板导出成功
This commit is contained in:
23
ZR.Model/MES/pro/DTO/WorkplanSummaryDto.cs
Normal file
23
ZR.Model/MES/pro/DTO/WorkplanSummaryDto.cs
Normal file
@@ -0,0 +1,23 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace ZR.Model.MES.pro.DTO
|
||||
{
|
||||
public class WorkplanSummaryDto
|
||||
{
|
||||
|
||||
|
||||
public float requireNum { set; get; }
|
||||
public float requireHanger { set; get; }
|
||||
public float turnnum { set; get; }
|
||||
public float productiontime { set; get; }
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
@@ -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; }
|
||||
|
||||
}
|
||||
|
||||
165
ZR.Model/MES/pro/ProWorkorder_v2.cs
Normal file
165
ZR.Model/MES/pro/ProWorkorder_v2.cs
Normal file
@@ -0,0 +1,165 @@
|
||||
using MiniExcelLibs.Attributes;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace ZR.Model.MES.pro
|
||||
{
|
||||
/// <summary>
|
||||
/// 生产工单
|
||||
/// </summary>
|
||||
[SugarTable("pro_workorder2", TableDescription = "生产工单")]
|
||||
public class ProWorkorder_v2
|
||||
{
|
||||
/// <summary>
|
||||
/// 工单号WO20240301001
|
||||
/// </summary>
|
||||
[SugarColumn(IsPrimaryKey = true,ColumnName ="id")]
|
||||
[ExcelIgnore]
|
||||
public string Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 毛坯号
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "blank_number")]
|
||||
[ExcelColumn(Name = "毛坯号", IndexName = "A")]
|
||||
public string BlankNumber { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 成品零件号
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "finished_part_number")]
|
||||
[ExcelColumn(Name = "成品零件号", IndexName = "B")]
|
||||
public string FinishedPartNumber { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 产品描述
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "product_description")]
|
||||
[ExcelColumn(Name = "产品描述", IndexName = "C")]
|
||||
public string ProductDescription { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 颜色
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "colour")]
|
||||
[ExcelColumn(Name = "颜色", IndexName = "D")]
|
||||
public string Colour { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 规格
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "specifications")]
|
||||
[ExcelColumn(Name = "规格", IndexName = "E")]
|
||||
public string Specifications { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 编码号
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "code_number")]
|
||||
[ExcelColumn(Name = "编码号", IndexName = "F")]
|
||||
public int CodeNumber { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 车数
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "vehicle_number")]
|
||||
[ExcelColumn(Name = "车数", IndexName = "G")]
|
||||
public int VehicleNumber { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 挂具摆放
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "hang_number")]
|
||||
[ExcelColumn(Name = "挂具摆放", IndexName = "H")]
|
||||
public int hangNumber { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 上件数
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "previous_number")]
|
||||
[ExcelColumn(Name = "上件数", IndexName = "I")]
|
||||
public int PreviousNumber { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 双组号缸号
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "cylinder_number")]
|
||||
[ExcelColumn(Name = "双组号缸号", IndexName = "J")]
|
||||
public string CylinderNumber { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 备注1
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "remark1")]
|
||||
[ExcelColumn(Name = "备注1", IndexName = "K")]
|
||||
public string Remark1 { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 备注2
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "remark2")]
|
||||
[ExcelColumn(Name = "备注2", IndexName = "L")]
|
||||
public string Remark2 { get; set; }
|
||||
/// <summary>
|
||||
/// 备注3
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "remark3")]
|
||||
[ExcelIgnore]
|
||||
public string Remark3 { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 年
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "year")]
|
||||
[ExcelIgnore]
|
||||
public int Year { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 周
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "week")]
|
||||
[ExcelIgnore]
|
||||
public int Week { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 日
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "date")]
|
||||
[ExcelIgnore]
|
||||
public int Date { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 创建人
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "CREATED_BY")]
|
||||
[ExcelIgnore]
|
||||
public string CreatedBy { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 创建时间
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "CREATED_TIME")]
|
||||
[ExcelIgnore]
|
||||
public DateTime CreatedTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 更新人
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "UPDATED_BY")]
|
||||
[ExcelIgnore]
|
||||
public string UpdatedBy { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 更新时间
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "UPDATED_TIME")]
|
||||
[ExcelIgnore]
|
||||
public DateTime UpdatedTime { get; set; }
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
@@ -7,7 +7,7 @@
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="MiniExcel" Version="1.31.0" />
|
||||
<PackageReference Include="MiniExcel" Version="1.31.3" />
|
||||
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
|
||||
<PackageReference Include="SqlSugarCoreNoDrive" Version="5.1.4.93" />
|
||||
<PackageReference Include="System.ComponentModel.Annotations" Version="5.0.0" />
|
||||
|
||||
Reference in New Issue
Block a user