dengjunjie
3 天以前 b784d019c3848718eb95eb0d34dde34c6a262b06
´úÂë¹ÜÀí/WIDESEAWCS_Server/WIDESEAWCS_Server/WIDESEAWCS_Model/Models/BasicInfo/Dt_Formula.cs
@@ -1,12 +1,13 @@
using System;
using Magicodes.ExporterAndImporter.Core;
using OfficeOpenXml.FormulaParsing.Excel.Functions.Numeric;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using OfficeOpenXml.FormulaParsing.Excel.Functions.Numeric;
using SqlSugar;
using WIDESEAWCS_Core.DB.Models;
using Magicodes.IE.Core;
namespace WIDESEAWCS_Model.Models
{
    [SugarTable(nameof(Dt_Formula), "配方信息表")]
@@ -15,95 +16,170 @@
        /// <summary>
        /// ä¸»é”®
        /// </summary>
        ///
        [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; }
        /// <summary>
        /// æˆå“ç¼–号
        /// </summary>
        [SugarColumn(IsNullable = false, Length = 50, ColumnDescription = "成品编号")]
        ///
        [ImporterHeader(Name = "成品编号")]
        [ExporterHeader(null, 11f, null, true, true, false, 0, KnownColor.Empty, DisplayName = "成品编号")]
        [SugarColumn(IsNullable = true, Length = 50, ColumnDescription = "成品编号")]
        public string ProductCode { get; set; }
        /// <summary>
        /// æˆå“åç§°
        /// </summary>
        [ImporterHeader(Name = "成品名称")]
        [ExporterHeader(null, 11f, null, true, true, false, 0, KnownColor.Empty, DisplayName = "成品名称")]
        [SugarColumn(IsNullable = false, Length = 50, ColumnDescription = "成品名称")]
        public string ProductName { get; set; }
        /// <summary>
        /// åŽ‹è£…ä½äº§å“é•¿åº¦
        /// </summary>
        [SugarColumn(IsNullable = true,  ColumnDescription = "压装位产品长度")]
        public float ProductLength { get; set; }
        [ImporterHeader(Name = "产品长度")]
        [ExporterHeader(null, 11f, null, true, true, false, 0, KnownColor.Empty, DisplayName = "产品长度")]
        [SugarColumn(IsNullable = true, DecimalDigits = 2, ColumnDescription = "压装位产品长度")]
        public decimal? ProductLength { get; set; }
        /// <summary>
        /// åŽ‹è£…ä½äº§å“å®½åº¦
        /// </summary>
        [SugarColumn(IsNullable = true,  ColumnDescription = "压装位产品宽度")]
        public float ProductWidth { get; set; }
        [ImporterHeader(Name = "产品宽度")]
        [ExporterHeader(null, 11f, null, true, true, false, 0, KnownColor.Empty, DisplayName = "产品宽度")]
        [SugarColumn(IsNullable = true, DecimalDigits = 2, ColumnDescription = "压装位产品宽度")]
        public decimal? ProductWidth { get; set; }
        /// <summary>
        /// åŽ‹è£…ä½äº§å“é«˜åº¦
        /// </summary>
        [SugarColumn(IsNullable = true,  ColumnDescription = "压装位产品高度")]
        public float ProductHeight { get; set; }
        [ImporterHeader(Name = "产品高度")]
        [ExporterHeader(null, 11f, null, true, true, false, 0, KnownColor.Empty, DisplayName = "产品高度")]
        [SugarColumn(IsNullable = true, DecimalDigits = 2, ColumnDescription = "压装位产品高度")]
        public decimal? ProductHeight { get; set; }
        /// <summary>
        /// åŽ‹è£…ä½æ‹§ç´§ä¸‹é™é«˜åº¦
        /// åŽ‹è£…ä½ä¸æ‹§ç´§
        /// </summary>
        [SugarColumn(IsNullable = true,  ColumnDescription = "压装位拧紧下降高度")]
        public float ScrewDownsetDistance { get; set; }
        [ImporterHeader(Name = "不拧紧")]
        [ExporterHeader(null, 11f, null, true, true, false, 0, KnownColor.Empty, DisplayName = "不拧紧")]
        [SugarColumn(IsNullable = true, DefaultValue = "0", ColumnDescription = "压装位不拧紧")]
        public int? PressNoTighten { get; set; }
        /// <summary>
        /// åŽ‹è£…ä½æ‹§ç´§æ‰­åŠ›
        /// åŽ‹è£…ä½ä¸æµ‹åº•æ¿
        /// 0-检测 1-不检测
        /// </summary>
        [SugarColumn(IsNullable = true,  ColumnDescription = "压装位拧紧扭力")]
        public float ScrewTorqueOutput { get; set; }
        [ImporterHeader(Name = "不测底板")]
        [ExporterHeader(null, 11f, null, true, true, false, 0, KnownColor.Empty, DisplayName = "不测底板")]
        [SugarColumn(IsNullable = true, DefaultValue = "0", ColumnDescription = "压装位不测底板")]
        public int? PressNoCheckBottomPlate { get; set; }
        /// <summary>
        /// åŽ‹è£…ä½è‡ªåŠ¨æ‹§ç´§æ‰“å¼€
        /// ä¿åŽ‹åŽ‹åŠ›
        /// </summary>
        [SugarColumn(IsNullable = true,  ColumnDescription = "压装位自动拧紧打开")]
        public int DintAutoScrewOn { get; set; }
        [ImporterHeader(Name = "保压压力")]
        [ExporterHeader(null, 11f, null, true, true, false, 0, KnownColor.Empty, DisplayName = "保压压力")]
        [SugarColumn(IsNullable = true, DecimalDigits = 2, ColumnDescription = "保压压力")]
        public decimal? ScrewDownsetDistance { get; set; }
        /// <summary>
        /// æ£€æµ‹ä½X偏移距离1
        /// ä¸­å¿ƒé«˜åº¦
        /// </summary>
        [SugarColumn(IsNullable = true,  ColumnDescription = "检测位X偏移距离1")]
        public float XDirectionDistance1 { get; set; }
        [ImporterHeader(Name = "中心高度")]
        [ExporterHeader(null, 11f, null, true, true, false, 0, KnownColor.Empty, DisplayName = "中心高度")]
        [SugarColumn(IsNullable = true, DecimalDigits = 2, ColumnDescription = "中心高度")]
        public decimal? ScrewTorqueOutput { get; set; }
        /// <summary>
        /// æ£€æµ‹ä½Z高度1
        /// åŽ‹è£…ä½è‡ªåŠ¨æ‹§ç´§ç¨‹åºå·
        /// </summary>
        [SugarColumn(IsNullable = true,  ColumnDescription = "检测位Z高度1")]
        public float YDirectionHeight1 { get; set; }
        [ImporterHeader(Name = "自动拧紧程序号")]
        [ExporterHeader(null, 11f, null, true, true, false, 0, KnownColor.Empty, DisplayName = "自动拧紧程序号")]
        [SugarColumn(IsNullable = true, ColumnDescription = "压装位自动拧紧程序号")]
        public int? DintAutoScrewOn { get; set; }
        /// <summary>
        /// æ£€æµ‹ä½X偏移距离2
        /// åŽ‹è£…ä½ç´§å›ºæ‰­çŸ©
        /// </summary>
        [SugarColumn(IsNullable = true,  ColumnDescription = "检测位X偏移距离2")]
        public float XDirectionDistance2 { get; set; }
        [ImporterHeader(Name = "紧固扭矩")]
        [ExporterHeader(null, 11f, null, true, true, false, 0, KnownColor.Empty, DisplayName = "紧固扭矩")]
        [SugarColumn(IsNullable = true, DecimalDigits = 2, ColumnDescription = "压装位紧固扭矩", DefaultValue = "0.00")]
        public decimal? PressFastenTorque { get; set; }
        /// <summary>
        /// æ£€æµ‹ä½Z高度2
        /// P0P1宽度
        /// </summary>
        [SugarColumn(IsNullable = true,  ColumnDescription = "检测位Z高度2")]
        public float YDirectionHeight2 { get; set; }
        [ImporterHeader(Name = "P0P1宽度")]
        [ExporterHeader(null, 11f, null, true, true, false, 0, KnownColor.Empty, DisplayName = "P0P1宽度")]
        [SugarColumn(IsNullable = true, DecimalDigits = 2, ColumnDescription = "P0P1宽度")]
        public decimal? P0P1Width { get; set; }
        /// <summary>
        /// æ£€æµ‹ä½X偏移距离3
        /// P0P2宽度
        /// </summary>
        [SugarColumn(IsNullable = true,  ColumnDescription = "检测位X偏移距离3")]
        public float XDirectionDistance3 { get; set; }
        [ImporterHeader(Name = "P0P2宽度")]
        [ExporterHeader(null, 11f, null, true, true, false, 0, KnownColor.Empty, DisplayName = "P0P2宽度")]
        [SugarColumn(IsNullable = true, DecimalDigits = 2, ColumnDescription = "P0P2宽度")]
        public decimal? P0P2Width { get; set; }
        /// <summary>
        /// æ£€æµ‹ä½Z高度3
        /// P0P3宽度
        /// </summary>
        [SugarColumn(IsNullable = true,  ColumnDescription = "检测位Z高度3")]
        public float YDirectionHeight3 { get; set; }
        [ImporterHeader(Name = "P0P3宽度")]
        [ExporterHeader(null, 11f, null, true, true, false, 0, KnownColor.Empty, DisplayName = "P0P3宽度")]
        [SugarColumn(IsNullable = true, DecimalDigits = 2, ColumnDescription = "P0P3宽度")]
        public decimal? P0P3Width { get; set; }
        /// <summary>
        /// åž«ç‰‡é«˜åº¦
        /// </summary>
        [ImporterHeader(Name = "垫片高度")]
        [ExporterHeader(null, 11f, null, true, true, false, 0, KnownColor.Empty, DisplayName = "垫片高度")]
        [SugarColumn(IsNullable = true, DecimalDigits = 2, ColumnDescription = "垫片高度")]
        public decimal? GasketHeight { get; set; }
        /// <summary>
        /// åŽ‹è£…åŽ‹åŠ›å·®å€¼
        /// </summary>
        [ImporterHeader(Name = "压力差值")]
        [ExporterHeader(null, 11f, null, true, true, false, 0, KnownColor.Empty, DisplayName = "压力差值")]
        [SugarColumn(IsNullable = true, DecimalDigits = 2, ColumnDescription = "压装压力差值")]
        public decimal? PressPressureDiff { get; set; }
        /// <summary>
        /// åŽ‹è£…æ‰­åŠ›å·®å€¼
        /// </summary>
        [ImporterHeader(Name = "扭力差值")]
        [ExporterHeader(null, 11f, null, true, true, false, 0, KnownColor.Empty, DisplayName = "扭力差值")]
        [SugarColumn(IsNullable = true, DecimalDigits = 2, ColumnDescription = "压装扭力差值")]
        public decimal? PressTorqueDiff { get; set; }
        /// <summary>
        /// æ£€æµ‹é«˜åº¦å·®å€¼
        /// </summary>
        [ImporterHeader(Name = "高度差值")]
        [ExporterHeader(null, 11f, null, true, true, false, 0, KnownColor.Empty, DisplayName = "高度差值")]
        [SugarColumn(IsNullable = true, DecimalDigits = 2, ColumnDescription = "检测高度差值")]
        public decimal? DetectHeightDiff { get; set; }
        /// <summary>
        /// èžºçº¹ä½ç½®å·®å€¼
        /// </summary>
        [ImporterHeader(Name = "螺纹差值")]
        [ExporterHeader(null, 11f, null, true, true, false, 0, KnownColor.Empty, DisplayName = "螺纹差值")]
        [SugarColumn(IsNullable = true, DecimalDigits = 2, ColumnDescription = "螺纹位置差值")]
        public decimal? ScrewPositionDiff { get; set; }
        [SugarColumn(IsIgnore = true)]//不参与数据库映射,测试使用
        [Navigate(NavigateType.OneToMany, nameof(Dt_FormulaDetail.FormulaId), nameof(Id))]
        public List<Dt_FormulaDetail> Details { get; set; }
    }
}
}