添加项目文件。

This commit is contained in:
2025-06-03 17:27:51 +08:00
parent 86e545c80b
commit 37b95aead5
148 changed files with 16891 additions and 0 deletions

View File

@@ -0,0 +1,59 @@
using FreeSql.DataAnnotations;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Xml.Linq;
namespace DynStatDisk.App.Model
{
/// <summary>
/// 动静盘模型信息
/// </summary>
[Table(Name = "dbo.DynStatDiskModel")]
public class DynStatDiskModel
{
/// <summary>
/// 主键
/// </summary>
[Column(IsPrimary = true,IsIdentity =true)]
public long Id { get; set; }
/// <summary>
/// 机种番号
/// </summary>
[Column(Name = "ModelNo", IsNullable = false, StringLength = 20)]
public string ModelNo { get; set; }
/// <summary>
/// 间隙检测
/// </summary>
[Column(Name = "GapInfo", IsNullable = false, StringLength = 10)]
public string GapInfo { get; set; }
/// <summary>
/// DynStatDiskKeyMatch 绑定首字符
/// </summary>
[Column(Name = "DynStatDiskKeyMatch", IsNullable = true, StringLength = 10)]
public string DynStatDiskKeyMatch { get; set; }
///// <summary>
///// 电器盒盖
///// </summary>
//[Column(Name = "DynStatDiskConver", IsNullable = false, StringLength = 10)]
//public string DynStatDiskConver { get; set; }
///// <summary>
///// ESOPPath 照片路径
///// </summary>
//[Column(Name = "ESOPPath", IsNullable = false, StringLength = 400)]
//public string ESOPPath { get; set; }
/// <summary>
/// 创建时间
/// </summary>
[Column(ServerTime = DateTimeKind.Local, CanUpdate = false)]
public DateTime CreateTime { get; set; }
}
}

View File

@@ -0,0 +1,66 @@
using FreeSql.DataAnnotations;
using System;
namespace DynStatDisk.App.Model
{
/// <summary>
/// G型动静盘组装机
/// </summary>
[Table(Name = "dbo.GDynStaticMach")]
[Index("IX_CreateTime", "CreateTime", false)]
[Index("IX_CylinderNo", "CylinderNo", false)]
[Index("IX_DynaDiskNo", "DynaDiskNo", false)]
[Index("IX_StaticDiskNo", "StaticDiskNo", false)]
public class GDynStaticMach
{
/// <summary>
/// Id
/// </summary>
[Column(IsIdentity = true)]
public long Id { get; set; }
/// <summary>
/// 筒体编号
/// </summary>
[Column(DbType = "nvarchar(20)")]
public string CylinderNo { get; set; }
/// <summary>
/// 动盘编号
/// </summary>
[Column(DbType = "nvarchar(20)")]
public string DynaDiskNo { get; set; }
/// <summary>
/// 静盘编号
/// </summary>
[Column(DbType = "nvarchar(20)")]
public string StaticDiskNo { get; set; }
/// <summary>
/// 欧式机构
/// </summary>
[Column(DbType = "nvarchar(20)")]
public string EuropMacine { get; set; }
/// <summary>
/// 静盘铸件号
/// </summary>
[Column(DbType = "nvarchar(20)")]
public string StaDskCastNo { get; set; }
/// <summary>
/// 员工编号
/// </summary>
[Column(DbType = "nvarchar(6)")]
public string OpNo { get; set; }
///// <summary>
///// 扭矩值
///// </summary>
//[Column(DbType = "decimal(8, 2)")]
//public decimal Torque { get; set; }
/// <summary>
/// 创建时间
/// </summary>
[Column(DbType = "datetime DEFAULT(GETDATE())")]
public DateTime CreateTime { get; set; }
}
}

View File

@@ -0,0 +1,39 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DynStatDisk.App.Model
{
/// <summary>
/// 间隙数据
/// </summary>
public class GapData
{
/// <summary>
/// 时间ID
/// </summary>
public string TimeId { get; set; }
/// <summary>
/// 间隙
/// </summary>
public string Gap { get; set; }
/// <summary>
/// 结论
/// </summary>
public string Result { get; set; }
/// <summary>
/// 分组
/// </summary>
public string Group { get; set; }
/// <summary>
/// 时间
/// </summary>
public DateTime Time { get; set; }
}
}

View File

@@ -0,0 +1,224 @@
using FreeSql.DataAnnotations;
using System;
namespace DynStatDisk.App.Model
{
/// <summary>
/// 电器盒模型信息
/// </summary>
[Table(Name = "dbo.KPDynStaticMach")]
[Index("IX_CreateTime", "CreateTime", false)]
[Index("IX_CylinderNo", "CylinderNo", false)]
[Index("IX_DynaDiskNo", "DynaDiskNo", false)]
[Index("IX_StaticDiskNo", "StaticDiskNo", false)]
public class KPDynStaticMach
{
/// <summary>
/// Id
/// </summary>
[Column(IsIdentity = true)]
public long Id { get; set; }
/// <summary>
/// 筒体编号
/// </summary>
[Column(DbType = "nvarchar(20)")]
public string CylinderNo { get; set; }
/// <summary>
/// 动盘编号
/// </summary>
[Column(DbType = "nvarchar(20)")]
public string DynaDiskNo { get; set; }
/// <summary>
/// 静盘编号
/// </summary>
[Column(DbType = "nvarchar(20)")]
public string StaticDiskNo { get; set; }
/// <summary>
/// 欧式机构
/// </summary>
[Column(DbType = "nvarchar(20)")]
public string EuropMacine { get; set; }
/// <summary>
/// 静盘铸件号
/// </summary>
[Column(DbType = "nvarchar(20)")]
public string StaDskCastNo { get; set; }
/// <summary>
/// 间隙值 玛仪器测量
/// </summary>
[Column(DbType = "nvarchar(20)")]
public string MeterGap { get; set; }
/// <summary>
/// 分组 玛仪器测量
/// </summary>
[Column(DbType = "nvarchar(20)")]
public string MeterGroup { get; set; }
/// <summary>
/// 结论 玛仪器测量
/// </summary>
[Column(DbType = "nvarchar(20)")]
public string MeterResult { get; set; }
/// <summary>
/// 员工编号
/// </summary>
[Column(DbType = "nvarchar(6)")]
public string OpNo { get; set; }
///// <summary>
///// 扭矩值
///// </summary>
//[Column(DbType = "decimal(8, 2)")]
//public decimal Torque { get; set; }
/// <summary>
/// 欧式机构段差值
/// +-值都有
/// </summary>
[Column(DbType = "nvarchar(10)")]
public string EuopMaDifValue { get; set; }
/// <summary>
/// 创建时间
/// </summary>
[Column(DbType = "datetime DEFAULT(GETDATE())")]
public DateTime CreateTime { get; set; }
///// <summary>
///// 主键
///// </summary>
//[Column(IsPrimary = true, IsIdentity = true)]
//public long Id { get; set; }
///// <summary>
///// 筒体号
///// </summary>
//[Column(Name = "CylinderNo", IsNullable = false, StringLength = 20)]
//public string CylinderNo { get; set; }
///// <summary>
///// 欧式机构编号
///// </summary>
//[Column(Name = "EuroNo", IsNullable = false, StringLength = 50)]
//public string EuroNo { get; set; }
///// <summary>
///// 欧式机构序号
///// </summary>
//[Column(Name = "EuroSeriesNo", IsNullable = false, StringLength = 50)]
//public string EuroSeriesNo { get; set; }
///// <summary>
///// 动静盘号
///// </summary>
//[Column(Name = "DynStaticDiskNo", IsNullable = false, StringLength = 50)]
//public string DynStaticDiskNo { get; set; }
///// <summary>
///// 动静盘编号
///// </summary>
//[Column(Name = "StaticDiskNoW", IsNullable = false, StringLength = 50)]
//public string StaticDiskNoW { get; set; }
///// <summary>
///// 欧式机构铸件号
///// </summary>
//[Column(Name = "EuroCastNo", IsNullable = false, StringLength = 50)]
//public string EuroCastNo { get; set; }
///// <summary>
///// 静盘铸件号
///// </summary>
//[Column(Name = "StaticDiskCastNo", IsNullable = false, StringLength = 50)]
//public string StaticDiskCastNo { get; set; }
///// <summary>
///// 小部品安装数量
///// </summary>
//[Column(Name = "PartCount", IsNullable = false, StringLength = 50)]
//public string PartCount { get; set; }
///// <summary>
///// 支架涂油
///// </summary>
//[Column(Name = "BracketOil", IsNullable = false, StringLength = 50)]
//public string BracketOil { get; set; }
///// <summary>
///// 螺旋螺钉确认安装
///// </summary>
//[Column(Name = "SpiralScrew", IsNullable = false, StringLength = 50)]
//public string SpiralScrew { get; set; }
///// <summary>
///// 动静盘编号一致
///// </summary>
//[Column(Name = "DynStaticNoSame", IsNullable = false, StringLength = 50)]
//public string DynStaticNoSame { get; set; }
///// <summary>
///// 动静盘无磕伤
///// </summary>
//[Column(Name = "DynStaticNoBreak", IsNullable = false, StringLength = 50)]
//public string DynStaticNoBreak { get; set; }
///// <summary>
///// 注液机
/////(排气姜板油孔)
///// </summary>
//[Column(Name = "LiquidInjeMach", IsNullable = false, StringLength = 50)]
//public string LiquidInjeMach { get; set; }
///// <summary>
///// 其他-间隙 分组
///// </summary>
//[Column(Name = "OtherGapGroup", IsNullable = false, StringLength = 50)]
//public string OtherGapGroup { get; set; }
///// <summary>
///// 其他-间隙 值
///// </summary>
//[Column(Name = "OtherGapValue", IsNullable = false, StringLength = 50)]
//public string OtherGapValue{ get; set; }
///// <summary>
///// 其他-间隙 结果
///// </summary>
//[Column(Name = "OtherGapResult", IsNullable = false, StringLength = 50)]
//public string OtherGapResult { get; set; }
///// <summary>
///// 其他-动盘
///// </summary>
//[Column(Name = "OtherDynDisk", IsNullable = false, StringLength = 50)]
//public string OtherDynDisk { get; set; }
///// <summary>
///// 其他-欧式
///// </summary>
//[Column(Name = "OtherEuro", IsNullable = false, StringLength = 50)]
//public string OtherEuro { get; set; }
///// <summary>
///// 其他-支架
///// </summary>
//[Column(Name = "OtherBracket", IsNullable = false, StringLength = 50)]
//public string OtherBracket { get; set; }
///// <summary>
///// 创建时间
///// </summary>
//[Column(ServerTime = DateTimeKind.Local, CanUpdate = false)]
//public DateTime CreateTime { get; set; }
}
}

View File

@@ -0,0 +1,47 @@
using FreeSql.DataAnnotations;
using NLog.Fluent;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DynStatDisk.App.Model
{
/// <summary>
/// 上一次软件的信息
/// </summary>
[Table(Name = "dbo.LastStateInfo")]
public class LastStateInfo
{
/// <summary>
/// 主键
/// </summary>
[Column(IsPrimary = true, IsIdentity = true)]
public long Id { get; set; }
/// <summary>
/// 机器名称
/// </summary>
[Column(Name = "MachineName", IsNullable = false, StringLength = 20)]
public string MachineName { get; set; }
/// <summary>
/// 属性名称
/// </summary>
[Column(Name = "AttributeName", IsNullable = false, StringLength = 20)]
public string AttributeName { get; set; }
/// <summary>
/// 属性值
/// </summary>
[Column(Name = "AttributeValue", IsNullable = false, StringLength = 20)]
public string AttributeValue { get; set; }
/// <summary>
/// 创建时间
/// </summary>
[Column(ServerTime = DateTimeKind.Local, CanUpdate = true)]
public DateTime CreateTime { get; set; }
}
}

View File

@@ -0,0 +1,14 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DynStatDisk.App.Model
{
public enum MachineLocation
{
KP=1,
G=2
}
}

View File

@@ -0,0 +1,54 @@
using FreeSql.DataAnnotations;
using System;
using System.Collections.Generic;
using System.Data.SqlTypes;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Xml.Linq;
namespace DynStatDisk.App.Model
{
/// <summary>
/// 用户登录
/// </summary>
[Table(Name = "dbo.TbUser")]
public class TbUser
{
/// <summary>
/// 主键
/// </summary>
[Column(IsPrimary = true,IsIdentity =true)]
public long Id { get; set; }
/// <summary>
/// 机器名称
/// </summary>
[Column(Name = "MachineName", IsNullable = false, StringLength = 20)]
public string MachineName { get; set; }
/// <summary>
/// 用户名称
/// </summary>
[Column(Name = "UserName", IsNullable = false, StringLength = 20)]
public string UserName { get; set; }
/// <summary>
/// 密码
/// </summary>
[Column(Name = "Password", IsNullable = false, StringLength = 20)]
public string Password { get; set; }
/// <summary>
/// 等级
/// </summary>
[Column(Name = "AccessLevel", IsNullable = false, StringLength = 20)]
public string AccessLevel { get; set; }
/// <summary>
/// 创建时间
/// </summary>
[Column(ServerTime = DateTimeKind.Local, CanUpdate = false)]
public DateTime CreateTime { get; set; }
}
}