添加项目文件。

This commit is contained in:
liming 蔡
2026-07-14 13:55:17 +08:00
parent 63759495f2
commit 8bbdf78731
335 changed files with 81415 additions and 0 deletions
+35
View File
@@ -0,0 +1,35 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace JY.Model
{
/// <summary>
/// 24小时统计表数据
/// </summary>
public class Chart24HourData
{
/// <summary>
/// 优率
/// </summary>
public string DisplayTime { get; set; }
/// <summary>
/// 产出数
/// </summary>
public int ProdIn { set; get; }
/// <summary>
/// 投入数
/// </summary>
public int ProdOut { set; get; }
/// <summary>
/// 不良数量
/// </summary>
public int ProdNg { set; get; }
/// <summary>
/// 优率
/// </summary>
public string OKRatio { get; set; }
}
}
+42
View File
@@ -0,0 +1,42 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace JY.Model
{
/// <summary>
/// 执行结果
/// </summary>
public class RequestResult
{
/// <summary>
/// 是否执行成功
/// </summary>
public bool IsSuccess { get; set; } = true;
/// <summary>
/// 返回消息
/// </summary>
public string Msg { get; set; }
}
/// <summary>
/// 执行结果Entity,带返回值
/// </summary>
/// <typeparam name="T"></typeparam>
public class RequestResult<T> : RequestResult
{
public T Result { get; set; }
}
/// <summary>
/// 执行结果List,带返回值
/// </summary>
/// <typeparam name="T"></typeparam>
public class RequestResultList<T> : RequestResult
{
public List<T> Result { get; set; }
}
}
+29
View File
@@ -0,0 +1,29 @@
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace JY.Model
{
/// <summary>
/// 工位报警数据
/// </summary>
public class AbnormalVoice
{
/// <summary>
/// ID
/// </summary>
public int ID { get; set; }
/// <summary>
/// 工位编码
/// </summary>
public string Code { get; set; }
/// <summary>
/// 播报内容
/// </summary>
public string Remark { get; set; }
}
}
+73
View File
@@ -0,0 +1,73 @@
using SqlSugar;
using System;
namespace JY.Model
{
[SugarTable("tb_alarm")]
/// <summary>
/// 工位报警数据
/// </summary>
public class AlarmData
{
/// <summary>
/// 报警唯一标识符
/// </summary>
[SugarColumn(IsPrimaryKey = true, ColumnName = "AlarmGuid")]
public string AlarmGuid { get; set; }
/// <summary>
/// 报警地址
/// </summary>
[SugarColumn(ColumnName = "PLCAdress")]
public string PLCAdress { get; set; }
/// <summary>
/// 报警内容
/// </summary>
[SugarColumn(ColumnName = "AlarmContent")]
public string AlarmContent { get; set; }
/// <summary>
/// 报警代码
/// </summary>
[SugarColumn(ColumnName = "AlarmCode")]
public string AlarmCode { get; set; }
/// <summary>
/// 报警类型 停机报警/非停机报警
/// </summary>
[SugarColumn(ColumnName = "AlarmType")]
public string AlarmType { get; set; }
/// <summary>
/// 报警开始时间
/// </summary>
[SugarColumn(ColumnName = "StartTime")]
public DateTime StartTime { get; set; }
/// <summary>
/// 报警消除时间
/// </summary>
[SugarColumn(ColumnName = "EndTime")]
public DateTime EndTime { get; set; }
/// <summary>
/// 报警描述
/// </summary>
[SugarColumn(ColumnName = "AlarmDesc")]
public string AlarmDesc { get; set; }
/// <summary>
/// 报警状态 传1或0,1是开始报警,0结束报警
/// </summary>
[SugarColumn(ColumnName = "AlarmState")]
public string AlarmState { get; set; }
/// <summary>
/// 更新状态
/// </summary>
[SugarColumn(ColumnName = "Flag")]
public int Flag { get; set; }
}
}
+200
View File
@@ -0,0 +1,200 @@
using CsvHelper.Configuration.Attributes;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace JY.Model
{
/// <summary>
/// 下料数据
/// </summary>
[SugarTable("BlankingData")]
public class BlankingData
{
[SugarColumn(IsPrimaryKey = true, IsIdentity = true, ColumnName = "ID")]
[Name("ID")]
public int ID { set; get; }
/// <summary>
/// 通道
/// </summary>
///
[SugarColumn(ColumnName = "TD")]
[Name("通道")]
public int TD { set; get; }
/// <summary>
/// 班次
/// </summary>
///
[SugarColumn(ColumnName = "WorkShift")]
[Name("班次")]
public string WorkShift { set; get; }
/// <summary>
/// 入站条码
/// </summary>
[SugarColumn(ColumnName = "ArrivalBarCode")]
[Name("入站条码")]
public string ArrivalBarCode { set; get; }
/// <summary>
/// 出站条码
/// </summary>
///
[SugarColumn(ColumnName = "DepartureBarCode")]
[Name("出站条码")]
public string DepartureBarCode { set; get; }
/// <summary>
/// 条码对比
/// </summary>
[SugarColumn(ColumnName = "TMDB")]
[Name("条码对比")]
public string TMDB { get; set; }
/// <summary>
/// 出站时间
/// </summary>
[SugarColumn(ColumnName = "OutTime")]
[Name("出站时间")]
public string OutTime { set; get; }
/// <summary>
/// 正面(2W/3W)
/// </summary>
[SugarColumn(ColumnName = "CCD1")]
[Name("正面(2W/3W)")]
public string CCD1 { set; get; }
/// <summary>
/// 反面(2W/3W)结果1
/// </summary>
[SugarColumn(ColumnName = "CCD2")]
[Name("反面(2W/3W)结果1")]
public string CCD2 { set; get; }
/// <summary>
/// 左侧面(2W/3W)结果1
/// </summary>
[SugarColumn(ColumnName = "CCD3")]
[Name("左侧面(2W/3W)结果1")]
public string CCD3 { set; get; }
/// <summary>
/// 右侧面(2W/3W)结果1
/// </summary>
[Name("右侧面(2W/3W)结果1")]
[SugarColumn(ColumnName = "CCD4")]
public string CCD4 { set; get; }
/// <summary>
/// 顶面(2W/3W)结果1
/// </summary>
[SugarColumn(ColumnName = "CCD5")]
[Name("顶面(2W/3W)结果1")]
public string CCD5 { set; get; }
/// <summary>
/// 底面(2W/3W)结果1
/// </summary>
[SugarColumn(ColumnName = "CCD6")]
[Name("底面(2W/3W)结果1")]
public string CCD6 { set; get; }
/// <summary>
/// 底WE1结果1
/// </summary>
[SugarColumn(ColumnName = "CCD7")]
[Name("底WE1结果1")]
public string CCD7 { set; get; }
/// <summary>
/// 底WE1结果1
/// </summary>
[Name("底WE2结果1")]
[SugarColumn(ColumnName = "CCD8")]
public string CCD8 { set; get; }
/// <summary>
/// 底WE3结果1
/// </summary>
[Name("底WE3结果1")]
public string CCD9 { set; get; }
/// <summary>
/// 底WE4结果1
/// </summary>
[Name("底WE4结果1")]
[SugarColumn(ColumnName = "CCD10")]
public string CCD10 { set; get; }
/// <summary>
/// 中ME1结果1
/// </summary>
[Name("中ME1结果1")]
[SugarColumn(ColumnName = "CCD11")]
public string CCD11 { set; get; }
/// <summary>
/// 中ME2结果1
/// </summary>
[Name("中ME2结果1")]
[SugarColumn(ColumnName = "CCD12")]
public string CCD12 { set; get; }
/// <summary>
/// 中ME3结果1
/// </summary>
[Name("中ME3结果1")]
[SugarColumn(ColumnName = "CCD13")]
public string CCD13 { set; get; }
/// <summary>
/// 中ME4结果1
/// </summary>
[Name("中ME4结果1")]
[SugarColumn(ColumnName = "CCD14")]
public string CCD14 { set; get; }
/// <summary>
/// 极柱(POS/NEG)结果1
/// </summary>
[Name("极柱(POS/NEG)结果1")]
[SugarColumn(ColumnName = "CCD15")]
public string CCD15 { set; get; }
/// <summary>
/// 防爆阀(PRO)结果1
/// </summary>
[Name("防爆阀(PRO)结果1")]
[SugarColumn(ColumnName = "CCD16")]
public string CCD16 { set; get; }
/// <summary>
/// 综合结果
/// </summary>
///
[Name("综合结果")]
[SugarColumn(ColumnName = "Result")]
public string Result { set; get; }
/// <summary>
/// 备注
/// </summary>
///
[Name("备注")]
[SugarColumn(ColumnName = "Remark")]
public string Remark { set; get; }
/// <summary>
/// 上传状态
/// </summary>
///
[Name("上传状态")]
[SugarColumn(ColumnName = "Flag")]
public int Flag { set; get; }
/// <summary>
/// 通道Group
/// </summary>
///
[Name("通道Group")]
[SugarColumn(ColumnName = "TDGroup")]
public int TDGroup { set; get; }
/// <summary>
/// CCD列表(依据采集项参照表添加)
/// </summary>
[SugarColumn(IsIgnore = true)]
public Dictionary<int, string> PLCValDic { get; set; } = new Dictionary<int, string>();
}
}
+130
View File
@@ -0,0 +1,130 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace JY.Model
{
public class CamInfor
{
/// <summary>
/// 通道
/// </summary>
public int TD { set; get; }
/// <summary>
/// 条码
/// </summary>
public string BarCode { set; get; }
/// <summary>
/// 电池结束时间
/// </summary>
public string CreateTime { set; get; }
public string CCD15 { set; get; }
/// <summary>
/// CCD16
/// </summary>
public string CCD16 { set; get; }
/// <summary>
/// CCD17
/// </summary>
public string CCD17 { set; get; }
/// <summary>
/// CCD18
/// </summary>
public string CCD18 { set; get; }
/// <summary>
/// CCD19
/// </summary>
public string CCD19 { set; get; }
/// <summary>
///CCD20
/// </summary>
public string CCD20 { set; get; }
/// <summary>
/// CCD21
/// </summary>
public string CCD21 { set; get; }
/// <summary>
/// CCD22
/// </summary>
public string CCD22 { set; get; }
/// <summary>
/// CCD23
/// </summary>
public string CCD23 { set; get; }
/// <summary>
/// CCD24
/// </summary>
public string CCD24 { set; get; }
/// <summary>
/// CCD11
/// </summary>
public string CCD25 { set; get; }
/// <summary>
/// CCD12
/// </summary>
public string CCD26 { set; get; }
/// <summary>
/// CCD13
/// </summary>
public string CCD27 { set; get; }
/// <summary>
/// CCD13
/// </summary>
public string CCD28 { set; get; }
/// <summary>
///CCD6
/// </summary>
public string CCD29 { set; get; }
/// <summary>
/// CCD7
/// </summary>
public string CCD30 { set; get; }
/// <summary>
/// CCD8
/// </summary>
public string CCD31 { set; get; }
/// <summary>
/// CCD9
/// </summary>
public string CCD32 { set; get; }
/// <summary>
/// CCD10
/// </summary>
public string CCD33 { set; get; }
/// <summary>
/// CCD11
/// </summary>
public string CCD34 { set; get; }
/// <summary>
/// CCD12
/// </summary>
public string CCD35 { set; get; }
/// <summary>
/// CCD13
/// </summary>
public string CCD36 { set; get; }
/// <summary>
/// CCD13
/// </summary>
public string CCD37 { set; get; }
/// <summary>
/// CCD13
/// </summary>
public string CCD38 { set; get; }
public string Result { set; get; }
/// <summary>
/// 备注
/// </summary>
public string Remark { set; get; }
/// <summary>
/// 上传状态
/// </summary>
public int Flag { set; get; }
}
}
+23
View File
@@ -0,0 +1,23 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace JY.Model
{
/// <summary>
/// 不良統計
/// </summary>
public class ChartDataType
{
/// <summary>
/// 數據類型
/// </summary>
public string DataType { get; set; }
/// <summary>
/// 數量
/// </summary>
public int DataCount { get; set; }
}
}
+45
View File
@@ -0,0 +1,45 @@
using CsvHelper.Configuration.Attributes;
using SqlSugar;
using System;
namespace JY.Model
{
/// <summary>
/// 上料数据
/// </summary>
[SugarTable("FeedingData")]
public class FeedingData
{
[SugarColumn(IsPrimaryKey = true, IsIdentity = true, ColumnName = "ID")]
[Name("ID")]
public int ID { set; get; }
[SugarColumn(ColumnName = "TD")]
[Name("通道")]
public int TD { set; get; }
[SugarColumn(ColumnName = "BarCode")]
[Name("条码")]
public string BarCode { set; get; }
[SugarColumn(ColumnName = "CreateTime")]
[Name("时间")]
public string CreateTime { set; get; } = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
[SugarColumn(ColumnName = "Result")]
[Name("结果")]
public string Result { set; get; }
[SugarColumn(ColumnName = "Remark")]
[Name("备注")]
public string Remark { set; get; }
[SugarColumn(ColumnName = "Flag")]
[Name("上传状态")]
public int Flag { set; get; }
[SugarColumn(ColumnName = "TDGroup")]
[Name("通道Group")]
public int TDGroup { set; get; }
}
}
+34
View File
@@ -0,0 +1,34 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace JY.Model
{
/// <summary>
/// 每两小时产能
/// </summary>
public class HourprodEntity
{
/// <summary>
/// 当前时间 yyyy-MM-dd
/// </summary>
public string FDate { set; get; }
/// <summary>
/// 当前小时
/// </summary>
public int FHour { set; get; }
/// <summary>
/// 产出数
/// </summary>
public int ProdIn { set; get; }
/// <summary>
/// 投入数
/// </summary>
public int ProdOut { set; get; }
/// <summary>
/// 时间 yyyy-MM-dd HH:mm:ss
/// </summary>
public string TestTime { set; get; }
}
}
+28
View File
@@ -0,0 +1,28 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace JY.Model
{
public class PLCConfigBase
{
/// <summary>
/// 自增Id
/// </summary>
public int Id { get; set; }
/// <summary>
/// PLC地址/PLC变更说明
/// </summary>
public string PLCAddress { get; set; }
/// <summary>
/// PLC地址说明
/// </summary>
public string PLCRemark { get; set; }
/// <summary>
/// 地址排序
/// </summary>
public int OrderNum { get; set; }
}
}
+41
View File
@@ -0,0 +1,41 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace JY.Model
{
public class PLCConfigPara
{
/// <summary>
/// 自增Id
/// </summary>
public int Id { get; set; }
/// <summary>
/// 产品型号
/// </summary>
public string ModelName { get; set; }
/// <summary>
/// PLC地址/PLC变更说明
/// </summary>
public string PLCAddress { get; set; }
/// <summary>
/// 参数值
/// </summary>
public int PLCValue { get; set; }
/// <summary>
/// 更新时间
/// </summary>
public DateTime UpdateData { get; set; }
/// <summary>
/// PLC地址说明 --附加信息,写入忽略
/// </summary>
public string PLCRemark { get; set; }
/// <summary>
/// 地址排序 --附加信息,写入忽略
/// </summary>
public int OrderNum { get; set; }
}
}
+175
View File
@@ -0,0 +1,175 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace JY.Model
{
public class ParaRange
{
#region 参数上下限
/// <summary>
/// 条码长度
/// </summary>
public int CodeLenth { set; get; }
/// <summary>
/// 电压上限
/// </summary>
public decimal VolMax { set; get; }
/// <summary>
/// 电压下限
/// </summary>
public decimal VolMin { set; get; }
/// <summary>
/// 内阻上限
/// </summary>
public decimal IMPMax { set; get; }
/// <summary>
/// 内阻下限
/// </summary>
public decimal IMPMin { set; get; }
/// <summary>
/// K值上限
/// </summary>
public decimal KvalueMax { set; get; }
/// <summary>
/// K值下限
/// </summary>
public decimal KvalueMin { set; get; }
/// <summary>
/// 边电压上限
/// </summary>
public decimal BvolMax { set; get; }
/// <summary>
/// 边电压下限
/// </summary>
public decimal BvolMin { set; get; }
/// <summary>
/// 厚度上限
/// </summary>
public decimal TicknessMax { set; get; }
/// <summary>
/// 厚度下限
/// </summary>
public decimal TicknessMin { set; get; }
/// <summary>
/// 长度上限
/// </summary>
public decimal LengthMax { set; get; }
/// <summary>
/// 长度下限
/// </summary>
public decimal LengthMin { set; get; }
/// <summary>
/// 宽度上限
/// </summary>
public decimal WideMax { set; get; }
/// <summary>
/// 宽度下限
/// </summary>
public decimal WideMin { set; get; }
/// <summary>
/// 极边距上限
/// </summary>
public decimal LMDistanceMax { set; get; }
/// <summary>
/// 极边距下限
/// </summary>
public decimal LMDistanceMin { set; get; }
/// <summary>
/// 极耳中心距上限
/// </summary>
public decimal LCDistanceMax { set; get; }
/// <summary>
/// 极耳中心距下限
/// </summary>
public decimal LCDistanceMin { set; get; }//边电压数据异常1
#endregion
#region 不良通道
/// <summary>
/// 良品通道
/// </summary>
public int GoodChannel { set; get; }
/// <summary>
/// 扫码不良通道
/// </summary>
public int sanNG { set; get; }
/// <summary>
/// 电压不良通道
/// </summary>
public int volNG { set; get; }
/// <summary>
/// 内阻不良通道
/// </summary>
public int resNG { set; get; }
/// <summary>
/// K值不良通道
/// </summary>
public int kvalueNG { set; get; }
/// <summary>
// 边电压不良通道
/// </summary>
public int BvolNG { set; get; }
/// <summary>
/// 长度不良通道
/// </summary>
public int LenthNG { set; get; }
/// <summary>
/// 宽度不良通道
/// </summary>
public int WideNG { set; get; }
/// <summary>
/// 极边距不良通道
/// </summary>
public int LMDistanceNG { set; get; }
/// <summary>
/// 中心距不良通道
/// </summary>
public int LCDistanceNG { set; get; }
/// <summary>
/// 厚度不良
/// </summary>
public int TicknessNG { set; get; }
/// <summary>
/// MES其他不良
/// </summary>
public int MESOtherNG { set; get; }
#endregion
#region 功能选定
/// <summary>
/// 是否验证条码
/// </summary>
public bool IsBarcode { set; get; }
/// <summary>
/// 是否验证边电压
/// </summary>
public bool IsIVTest { set; get; }
/// <summary>
/// 是否验证长度
/// </summary>
public bool IsLenth { set; get; }
/// <summary>
/// 是否验证宽度
/// </summary>
public bool IsWide { set; get; }
/// <summary>
/// 是否验证极边距
/// </summary>
public bool IsLMDistance { set; get; }
/// <summary>
/// 是否验证中心距
/// </summary>
public bool IsLCDistance { set; get; }
/// <summary>
/// 是否验证厚度
/// </summary>
public bool IsThickness { set; get; }
#endregion
}
}
+24
View File
@@ -0,0 +1,24 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace JY.Model
{
public class ProductModel
{
/// <summary>
/// 自增Id
/// </summary>
public int Id { get; set; }
/// <summary>
/// 产品型号
/// </summary>
public string ModelName { get; set; }
/// <summary>
/// 备注
/// </summary>
public string Remark { get; set; }
}
}
+37
View File
@@ -0,0 +1,37 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace JY.Model
{
public class ProductPara
{
/// <summary>
/// 自增Id
/// </summary>
public int Id { get; set; }
/// <summary>
/// 产品型号
/// </summary>
public string ModelName { get; set; }
/// <summary>
/// 参数名称
/// </summary>
public string ParaName { get; set; }
/// <summary>
/// 参数值
/// </summary>
public string ParaValue { get; set; }
/// <summary>
/// 更新时间
/// </summary>
public DateTime UpdateTime { get; set; }
/// <summary>
/// 备注
/// </summary>
public string Remark { get; set; }
}
}
+24
View File
@@ -0,0 +1,24 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace JY.Model
{
public class ProductParaBase
{
/// <summary>
/// 自增Id
/// </summary>
public int Id { get; set; }
/// <summary>
/// 产品参数名称
/// </summary>
public string ParaName { get; set; }
/// <summary>
/// 备注
/// </summary>
public string Remark { get; set; }
}
}
+110
View File
@@ -0,0 +1,110 @@
using JY.Model.Excel;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace JY.Model
{
public class SystemConfig
{
#region MES使用
/// <summary>
/// 工厂代码
/// </summary>
public string siteCode { get; set; }
/// <summary>
///产线名称
/// </summary>
public string lineCode { get; set; }
/// <summary>
/// 设备编码
/// </summary>
public string equipCode { get; set; }
/// <summary>
/// 物料编码
/// </summary>
public string materialCode { get; set; }
/// <summary>
/// 产品型号
/// </summary>
public string productType { get; set; }
/// <summary>
/// 分档查询接口地址
/// </summary>
public string GradingMesUrl = "http://10.17.128.206/core/api/public/eve/pm/eqm/grading";
/// <summary>
/// 结果加工参数接口地址
/// </summary>
public string ResultProcessMesUrl = "http://10.17.128.205/core/api/public/product/process/param/new/result";
/// <summary>
/// 产品进站接口地址
/// </summary>
public string StationArrivalUrl = "http://127.0.0.1";
/// <summary>
/// 产品出站接口地址
/// </summary>
public string StationExitUrl = "http://127.0.0.1";
public List<CollectItemCfg> CollectItemCfgList { get; set; } = new List<CollectItemCfg>();
#endregion
#region 分档使用
/// <summary>
/// 档位一
/// </summary>
public string Grading1 = "";
/// <summary>
/// 档位一
/// </summary>
public string Grading2 = "";
/// <summary>
/// 档位一
/// </summary>
public string Grading3 = "";
/// <summary>
/// 档位一
/// </summary>
public string Grading4 = "";
#endregion
/// <summary>
/// MES上传超时时间
/// </summary>
public double MesRequestTime = 2;
/// <summary>
/// 权限时间
/// </summary>
public int LoginTime = 0;
/// <summary>
/// 是否上传MES
/// </summary>
public bool isUpMes { get; set; }
/// <summary>
/// 员工账号
/// </summary>
public string userName = "";
}
}
+33
View File
@@ -0,0 +1,33 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace JY.Model
{
public class TrayTestEntry
{
/// <summary>
/// 托盘ID
/// </summary>
public string TrayID { set; get; }
/// <summary>
/// 进托盘时间
/// </summary>
public string TrayDate { set; get; } = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
/// <summary>
/// 托盘验证结果
/// </summary>
public string TrayResult { set; get; }
/// <summary>
/// 托盘验证备注
/// </summary>
public string TrayRemark { set; get; }
/// <summary>
/// 上传状态
/// </summary>
public int Flag { set; get; }
}
}
+35
View File
@@ -0,0 +1,35 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace JY.Model.Excel
{
public class CollectItemCfg
{
[Description("PLC相对地址")]
public int? PLCRelAddress { get; set; }
[Description("PLC采集数据含义")]
public string PLCItemName { get; set; }
[Description("上位机属性名")]
public string HCPropName { get; set; }
[Description("Mes采集项编码")]
public string MesItemCode { get; set; }
[Description("Mes采集项描述")]
public string MesItemName { get; set; }
[Description("是否启用")]
public string IsEnableStr { get; set; }
public bool IsEnable
{
get => IsEnableStr == "Y";
}
}
}
+96
View File
@@ -0,0 +1,96 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{F7DB3A93-FCA2-479B-8B2E-380116AAE9FC}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>JY.Model</RootNamespace>
<AssemblyName>JY.Model</AssemblyName>
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<Deterministic>true</Deterministic>
<TargetFrameworkProfile />
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>..\..\..\..\JY.Inspection\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="CsvHelper, Version=30.0.0.0, Culture=neutral, PublicKeyToken=8c4959082be5c823, processorArchitecture=MSIL">
<HintPath>..\packages\CsvHelper.30.0.1\lib\net45\CsvHelper.dll</HintPath>
</Reference>
<Reference Include="SqlSugar, Version=5.1.4.207, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\SqlSugar.5.1.4.207\lib\SqlSugar.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Buffers, Version=4.0.3.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
<HintPath>..\packages\System.Buffers.4.5.1\lib\net461\System.Buffers.dll</HintPath>
</Reference>
<Reference Include="System.ComponentModel.DataAnnotations" />
<Reference Include="System.Core" />
<Reference Include="System.Memory, Version=4.0.1.1, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
<HintPath>..\packages\System.Memory.4.5.4\lib\net461\System.Memory.dll</HintPath>
</Reference>
<Reference Include="System.Numerics" />
<Reference Include="System.Numerics.Vectors, Version=4.1.4.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
<HintPath>..\packages\System.Numerics.Vectors.4.5.0\lib\net46\System.Numerics.Vectors.dll</HintPath>
</Reference>
<Reference Include="System.Runtime.CompilerServices.Unsafe, Version=4.0.4.1, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
<HintPath>..\packages\System.Runtime.CompilerServices.Unsafe.4.5.3\lib\net461\System.Runtime.CompilerServices.Unsafe.dll</HintPath>
</Reference>
<Reference Include="System.ValueTuple, Version=4.0.1.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
<HintPath>..\packages\System.ValueTuple.4.3.0\lib\netstandard1.0\System.ValueTuple.dll</HintPath>
</Reference>
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Data" />
<Reference Include="System.Net.Http" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="BL.Entity\Chart24HourData.cs" />
<Compile Include="BL.Entity\RequestResult.cs" />
<Compile Include="DB.Entity\AbnormalVoice.cs" />
<Compile Include="DB.Entity\AlarmData.cs" />
<Compile Include="DB.Entity\CamInfor.cs" />
<Compile Include="DB.Entity\HourprodEntity.cs" />
<Compile Include="DB.Entity\ChartDataType.cs" />
<Compile Include="DB.Entity\BlankingData.cs" />
<Compile Include="DB.Entity\ParaRange.cs" />
<Compile Include="DB.Entity\PLCConfigBase.cs" />
<Compile Include="DB.Entity\PLCConfigPara.cs" />
<Compile Include="DB.Entity\ProductModel.cs" />
<Compile Include="DB.Entity\ProductParaBase.cs" />
<Compile Include="DB.Entity\ProductPara.cs" />
<Compile Include="DB.Entity\SystemConfig.cs" />
<Compile Include="DB.Entity\FeedingData.cs" />
<Compile Include="DB.Entity\TrayTestEntry.cs" />
<Compile Include="Excel\CollectItemCfg.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<ItemGroup>
<None Include="app.config" />
<None Include="packages.config" />
</ItemGroup>
<ItemGroup>
<Folder Include="Common\" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project>
+36
View File
@@ -0,0 +1,36 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// 有关程序集的一般信息由以下
// 控制。更改这些特性值可修改
// 与程序集关联的信息。
[assembly: AssemblyTitle("JY.Model")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("JY.Model")]
[assembly: AssemblyCopyright("Copyright © 2021")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// 将 ComVisible 设置为 false 会使此程序集中的类型
//对 COM 组件不可见。如果需要从 COM 访问此程序集中的类型
//请将此类型的 ComVisible 特性设置为 true。
[assembly: ComVisible(false)]
// 如果此项目向 COM 公开,则下列 GUID 用于类型库的 ID
[assembly: Guid("f7db3a93-fca2-479b-8b2e-380116aae9fc")]
// 程序集的版本信息由下列四个值组成:
//
// 主版本
// 次版本
// 生成号
// 修订号
//
//可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值
//通过使用 "*",如下所示:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
+19
View File
@@ -0,0 +1,19 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="System.Runtime.CompilerServices.Unsafe" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-4.0.4.1" newVersion="4.0.4.1" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Buffers" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-4.0.3.0" newVersion="4.0.3.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Memory" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-4.0.1.1" newVersion="4.0.1.1" />
</dependentAssembly>
</assemblyBinding>
</runtime>
</configuration>
+10
View File
@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="CsvHelper" version="30.0.1" targetFramework="net452" requireReinstallation="true" />
<package id="Microsoft.CSharp" version="4.3.0" targetFramework="net452" />
<package id="System.Buffers" version="4.5.1" targetFramework="net48" />
<package id="System.Memory" version="4.5.4" targetFramework="net48" />
<package id="System.Numerics.Vectors" version="4.5.0" targetFramework="net48" />
<package id="System.Runtime.CompilerServices.Unsafe" version="4.5.3" targetFramework="net48" />
<package id="System.ValueTuple" version="4.3.0" targetFramework="net452" />
</packages>