添加项目文件。

This commit is contained in:
liming 蔡
2026-08-12 10:50:46 +08:00
parent fd3db6a810
commit ca8fec1e3b
298 changed files with 115094 additions and 0 deletions
+46
View File
@@ -0,0 +1,46 @@
using SqlSugar;
namespace JinYuan.Models
{
/// <summary>
/// 电芯进站
/// </summary>
public class AGearEntity
{
//[SugarColumn(IsIgnore = false)] //存储到数据库
public System.String CNum { get; set; }
/// <summary>
/// 电芯条码
/// </summary>
public System.String BarCode { get; set; }
/// <summary>
/// 通道号
/// </summary>
public int ID { get; set; }
/// <summary>
/// 上传状态
/// </summary>
public string UpState { get; set; }
/// <summary>
/// 进站电芯反馈结果
/// </summary>
public string Result { get; set; }
/// <summary>
/// 时间
/// </summary>
[SugarColumn(IsPrimaryKey = true)]
public System.String TestTime { get; set; }
/// <summary>
/// 备注
/// </summary>
public string Remark { get; set; }
/// <summary>
/// 标志
/// </summary>
public int Flag { get; set; }
}
}
+78
View File
@@ -0,0 +1,78 @@
using CsvHelper.Configuration.Attributes;
namespace JinYuan.Models
{
/// <summary>
/// 工位报警数据
/// </summary>
public class AlarmData
{
/// <summary>
/// 报警唯一标识符
/// </summary>
public string AlarmGuid { get; set; }
/// <summary>
/// 报警地址
/// </summary>
public string PLCAdress { get; set; }
/// <summary>
/// 报警内容
/// </summary>
public string AlarmContent { get; set; }
/// <summary>
/// 报警代码
/// </summary>
public string AlarmCode { get; set; }
/// <summary>
/// 报警类型 停机报警/非停机报警
/// </summary>
public string AlarmType { get; set; }
/// <summary>
/// 报警开始时间
/// </summary>
public System.String StartTime { get; set; }
/// <summary>
/// 报警消除时间
/// </summary>
public System.String EndTime { get; set; }
/// <summary>
/// 报警描述
/// </summary>
public string AlarmDesc { get; set; }
/// <summary>
/// 报警状态 传1或0,1是开始报警,0结束报警
/// </summary>
public string AlarmState { get; set; }
/// <summary>
/// 更新状态
/// </summary>
public int Flag { get; set; }
}
public class AlarmCSVData
{
/// <summary>
/// 报警开始时间
/// </summary>
[Name("报警时间")]
public string StartTime { get; set; }
/// <summary>
/// 报警内容
/// </summary>
///
[Name("报警内容")]
public string AlarmContent { get; set; }
}
}
+15
View File
@@ -0,0 +1,15 @@
namespace JinYuan.Models
{
public class AlarmStatus
{
/// <summary>
/// 报警地址
/// </summary>
public string PLCAdress { get; set; }
/// <summary>
/// 报警状态
/// </summary>
public bool Status { get; set; }
}
}
+30
View File
@@ -0,0 +1,30 @@
using System;
namespace JinYuan.Models
{
public class AlarmCountEntry
{
/// <summary>
/// PLC地址
/// </summary>
public string PLCAdress { get; set; }
/// <summary>
/// 报警内容
/// </summary>
public string AlarmContent { get; set; }
/// <summary>
/// 报警次数
/// </summary>
public int AlarmCount { get; set; }
/// <summary>
/// 班次
/// </summary>
public string Class { get; set; }
/// <summary>
/// 更新时间
/// </summary>
public DateTime AlarmTime { get; set; }
}
}
+27
View File
@@ -0,0 +1,27 @@
using CsvHelper.Configuration.Attributes;
namespace JinYuan.Models
{
/// <summary>
/// 报警表单数据
/// </summary>
public class AlarmForm
{
/// <summary>
/// 报警地址
/// </summary>
[Name("寄存器地址")]
public string PLCAdress { get; set; }
/// <summary>
/// 报警内容
/// </summary>
[Name("报警信息")]
public string AlarmContent { get; set; }
/// <summary>
/// 报警代码
/// </summary>
[Name("故障代码")]
public string AlarmCode { get; set; }
}
}
+245
View File
@@ -0,0 +1,245 @@
using SqlSugar;
namespace JinYuan.Models
{
/// <summary>
/// 电芯出站
/// </summary>
public class BGearEntity
{
public int[] MyNo = new int[3];//AB序号
public short[] listRes = new short[3];//AB反馈结果
public string[] ScanTime = new string[3];//AB芯包扫码时间
public string[] listBatCode = new string[3];//芯包条码
public string[] judgment_result = new string[3];//AB芯包出站判定结果
public short[,] list_Data1 = new short[3, 28];//芯包信息1
public int[,] list_Data2 = new int[3, 19];//芯包信息2(焊机相关次数)
public float[,] list_Data3 = new float[3, 54];//芯包信息3(设定值)
public float[,] list_Data4 = new float[3, 47];//芯包信息4(实际值)
public short[,] list_pan = new short[3, 1];//物流线托盘码
//
public int[,] CCD_Data = new int[3, 27];//芯包CCD信息1,2,3
public string[,] CCD_NgNo = new string[3, 27];//芯包不良编码信息1,2,3
// public float[,] Thickness_Data = new float[3, 3];//电芯3_厚度数据信息1,2,3
// public int[,] Thickness_PLCData = new int[3, 3];//电芯3_厚度数据OKNG1,2,3 与ccd一样 1 OK,0 NG,2 缺图
/// <summary>
/// 通道
/// </summary>
public int ChannelNo { get; set; }
/// <summary>
/// A芯包扫码时间
/// </summary>
[SugarColumn(IsPrimaryKey = false)]
public string CSBYHASCANNINGTIME { get; set; }
/// <summary>
/// 上传状态
/// </summary>
public string UpState { get; set; }
public string RFID { get; set; }
public string ScanBarRes { get; set; }
/// <summary>
/// 反馈结果
/// </summary>
public int Result { get; set; }
/// <summary>
/// 区分A和B
/// </summary>
// public string A_B { get; set; }
/// <summary>
/// 电芯1_CCD1结果 1 OK,0 NG,2 缺图
/// </summary>
public int CCD1 { get; set; }
public int CCD2 { get; set; }
public int CCD3 { get; set; }
public int CCD4 { get; set; }
public int CCD5 { get; set; }
public int CCD6 { get; set; }
public int CCD7 { get; set; }
public int CCD8 { get; set; }
public int CCD9 { get; set; }
public int CCD10 { get; set; }
public int CCD11 { get; set; }
public int CCD12 { get; set; }
public int CCD13 { get; set; }
public int CCD14 { get; set; }
public int CCD15 { get; set; }
public int CCD16 { get; set; }
public int CCD17 { get; set; }
public int CCD18 { get; set; }
public int CCD19 { get; set; }
public int CCD20 { get; set; }
public int CCD21 { get; set; }
public int CCD22 { get; set; }
public int CCD23 { get; set; }
public int CCD24 { get; set; }
public int CCD25 { get; set; }
public int CCD26 { get; set; }
public int CCD27 { get; set; }
public string CCD1NgCode { get; set; }
public string CCD2NgCode { get; set; }
public string CCD3NgCode { get; set; }
public string CCD4NgCode { get; set; }
public string CCD5NgCode { get; set; }
public string CCD6NgCode { get; set; }
public string CCD7NgCode { get; set; }
public string CCD8NgCode { get; set; }
public string CCD9NgCode { get; set; }
public string CCD10NgCode { get; set; }
public string CCD11NgCode { get; set; }
public string CCD12NgCode { get; set; }
public string CCD13NgCode { get; set; }
public string CCD14NgCode { get; set; }
public string CCD15NgCode { get; set; }
public string CCD16NgCode { get; set; }
public string CCD17NgCode { get; set; }
/// <summary>
/// 二维码ng 不良编号
/// </summary>
public string CCD18NgCode { get; set; }
public string CCD19NgCode { get; set; }
public string CCD20NgCode { get; set; }
public string CCD21NgCode { get; set; }
public string CCD22NgCode { get; set; }
public string CCD23NgCode { get; set; }
public string CCD24NgCode { get; set; }
public string CCD25NgCode { get; set; }
public string CCD26NgCode { get; set; }
public string CCD27NgCode { get; set; }
/// <summary>
/// <summary>
/// 电芯1_厚度数据1
/// </summary>
public float Thickness1 { get; set; }
// public float Thickness2 { get; set; }
// public float Thickness3 { get; set; }
/// <summary>
/// 电芯1_厚度 PLC判定 OKNG 1 OK,0 NG
/// </summary>
// public int ThicknessPLCResult1 { get; set; }
// public int ThicknessPLCResult2 { get; set; }
// public int ThicknessPLCResult3 { get; set; }
/// <summary>
/// 电芯1_厚度OKNG 显示OK NG
/// </summary>
public string ThicknessResult1 { get; set; }
// public string ThicknessResult2 { get; set; }
// public string ThicknessResult3 { get; set; }
/// <summary>
/// 平面度设定值
/// </summary>
public string flatness_setpoint { get; set; }
/// <summary>
/// 平面度实际值
/// </summary>
public string flatness_actual { get; set; }
/// <summary>
/// 电芯_CCD1结果 1 OK,0 NG,2 缺图
/// </summary>
public string CCDResult1 { get; set; }
public string CCDResult2 { get; set; }
public string CCDResult3 { get; set; }
public string CCDResult4 { get; set; }
public string CCDResult5 { get; set; }
public string CCDResult6 { get; set; }
public string CCDResult7 { get; set; }
public string CCDResult8 { get; set; }
public string CCDResult9 { get; set; }
public string CCDResult10 { get; set; }
public string CCDResult11 { get; set; }
public string CCDResult12 { get; set; }
public string CCDResult13 { get; set; }
public string CCDResult14 { get; set; }
public string CCDResult15 { get; set; }
public string CCDResult16 { get; set; }
public string CCDResult17 { get; set; }
public string CCDResult18 { get; set; }
public string CCDResult19 { get; set; }
public string CCDResult20 { get; set; }
public string CCDResult21 { get; set; }
public string CCDResult22 { get; set; }
public string CCDResult23 { get; set; }
public string CCDResult24 { get; set; }
public string CCDResult25 { get; set; }
public string CCDResult26 { get; set; }
public string CCDResult27 { get; set; }
/// <summary>
/// 芯包条码
/// </summary>
public string BarCode { get; set; }
/// <summary>
/// 物料编码
/// </summary>
public string MaterialCode { get; set; }
/// <summary>
/// 电芯A/B出站判定结果
/// </summary>
public string CSBYHOUTSTATIONJUDGMENTRESULT { get; set; }
/// <summary>
/// 电芯A/B工序名
/// </summary>
public string CSBYHPROCESSNAME { get; set; }
/// <summary>
/// 电芯A/B班次
/// </summary>
public string CSBYHSCHEDULE { get; set; }
/// <summary>
/// 电芯A/B进站时间
/// </summary>
public string CSBYHINSTATIONTIME { get; set; }
/// <summary>
/// 电芯A/B出站时间
/// </summary>
public string CSBYHOUTSTATIONTIME { get; set; }
/// <summary>
/// 复投次数
/// </summary>
public int RethrowNum { get; set; }
/// <summary>
/// 标志
/// </summary>
public int Flag { get; set; }
/// <summary>
/// 备注
/// </summary>
public string Remark { get; set; }
public int PlcResult { get; set; }
/// <summary>
/// 进出站电池等级
/// </summary>
public string in_battery_grade { get; set; }
/// <summary>
/// 进出站电池等级
/// </summary>
public string out_battery_grade { get; set; }
/// <summary>
/// MES返回电池档位
/// </summary>
public string Mes_battery_Grade { get; set; }
// MES返回分选方案
public string Mes_sorting_scheme { get; set; }
public string appearance_standard { get; set; }
//撕膜机
public string SM_cleaning_defocus_dist { get; set; }
public string SM_cleaning_peak_power { get; set; }
public string SM_cleaning_frequency { get; set; }
public string SM_cleaning_speed { get; set; }
public string SM_cutting_defocus_dist { get; set; }
public string SM_cutting_peak_power { get; set; }
public string SM_cutting_frequency { get; set; }
public string SM_cutting_speed { get; set; }
public string SM_dust_removal_wind_speed { get; set; }
public string barcode_match_result { get; set; }
public string ng_code_summary { get; set; }
/// <summary>
/// 是否上传结果参数标志
/// </summary>
public int Flag1 { get; set; }
}
}
+134
View File
@@ -0,0 +1,134 @@
namespace JinYuan.Models
{
//子组大小:这个与计算内的CPK值又非常打的关系,即是分组的样本个数,数据的分组在此处需要说明的是,必须
//是根据实际情况来填写,比如每次抽样为5个,那么子组大小为5个,我们不能随心所欲的任意填写这个值,否则
//将没有实际意义。
//上规格:用户录入的上规格值
//目标值:用户输入的目标值,即期望达到的中心值
//下规格:用户输入的下规格值
public class CPKModel
{
/// <summary>
/// 总样本数 。参与分析的数据的个数
/// </summary>
public int TotalNumber { get; set; }
/// <summary>
/// 图表类型 .说明进行分析的控制图的类型,此处为XR控制图
/// </summary>
public string ChartType { get; set; }
/// <summary>
/// 平均值 所有样本数据的平均值
/// </summary>
public double MeanVlaue { get; set; }
/// <summary>
/// 最大值 所有样本的最大值
/// </summary>
public double MaxValue { get; set; }
/// <summary>
/// 最小值
/// </summary>
public double MinValue { get; set; }
/// <summary>
/// 正的3倍标准差线
/// </summary>
public double Pos3Sigma { get; set; }
/// <summary>
/// 负的3倍标准差线
/// </summary>
public double Neg3Sigma { get; set; }
/// <summary>
/// 组内标准差值
/// </summary>
public double GroupSTDEV { get; set; }
/// <summary>
/// 整体标准差值
/// </summary>
public double WholeSTDEV { get; set; }
/// <summary>
/// 组内CPK值 工序能力指数,与规格值及上述标准差值相关联
/// </summary>
public double GroupCPK { get; set; }
/// <summary>
/// 整体CPK值 工序能力指数,与规格值及上述标准差值相关联
/// </summary>
public double WholeCPK { get; set; }
/// <summary>
/// 组内CP值 Cp值是衡量过程满足产品品质标准的成都,也叫制程精密度,Cp值越大,表示过程变异越小,过程能力越差
/// </summary>
public double GroupCP { get; set; }
/// <summary>
/// 整体CP值 Cp值是衡量过程满足产品品质标准的成都,也叫制程精密度,Cp值越大,表示过程变异越小,过程能力越差
/// </summary>
public double WholeCP { get; set; }
/// <summary>
/// 组内CPL值 相对应于下规格的工序能力值;
/// </summary>
public double GroupCPL { get; set; }
/// <summary>
/// 整体CPL值 相对应于下规格的工序能力值;
/// </summary>
public double WholeCPL { get; set; }
/// <summary>
/// 组内CPU值 相对应于上规格的工序能力值;
/// </summary>
public double GroupCPU { get; set; }
/// <summary>
/// 整体CPU值 相对应于上规格的工序能力值;
/// </summary>
public double WholeCPU { get; set; }
/// <summary>
/// 组内PPM<LSL值,预测的低于下规格值的不合格品数(PPM -百万分之比)
/// </summary>
public double GroupPPM_LSL { get; set; }
/// <summary>
/// 整体PPM<LSL值,预测的低于下规格值的不合格品数(PPM -百万分之比);
/// </summary>
public double WholePPM_LSL { get; set; }
/// <summary>
/// 实际检测PPM<LSL值,预测的低于下规格值的不合格品数(PPM -百万分之比);
/// </summary>
public double MeasuredPPM_LSL { get; set; }
/// <summary>
/// 组内PPM<USL值,预测的低于上规格值的不合格品数(PPM -百万分之比)
/// </summary>
public double GroupPPM_USL { get; set; }
/// <summary>
/// 整体PPM<USL值,预测的低于上规格值的不合格品数(PPM -百万分之比);
/// </summary>
public double WholePPM_USL { get; set; }
/// <summary>
/// 实际检测PPM<USL值,预测的低于上规格值的不合格品数(PPM -百万分之比)
/// </summary>
public double MeasuredPPM_USL { get; set; }
/// <summary>
/// 组内PPM Total值,预测的总的不合格品数
/// </summary>
public double GroupPPM_Total { get; set; }
/// <summary>
/// 整体PPM<USL值,预测的总的不合格品数
/// </summary>
public double WholePPM_Total { get; set; }
/// <summary>
/// 实际检测PPM<USL值,预测的总的不合格品数
/// </summary>
public double MeasuredPPM_Total { get; set; }
/// <summary>
/// 制程准确度,值越小越好
/// </summary>
public double CA { get; set; }
}
}
+203
View File
@@ -0,0 +1,203 @@
using System.Collections.Generic;
namespace JinYuan.Models
{
/// <summary>
/// CPQCPT数据
/// </summary>
public class CPQCPTDate
{
/// <summary>
/// 注液前重量
/// </summary>
public string CTP_PreWeighing_Value { get; set; }
/// <summary>
/// 保液量
/// </summary>
public string CTP_Liquid_Retention_Value { get; set; }
/// <summary>
/// 注液量
/// </summary>
public string CTP_Filling_Value { get; set; }
/// <summary>
/// 失液量
/// </summary>
public string CTP_Liquid_Loss_Value { get; set; }
/// <summary>
/// 充氦值
/// </summary>
public string CTP_Helium_Filling_Value { get; set; }
/// <summary>
/// 钟罩真空值
/// </summary>
public string CTP_Belljar_Vacuum_Value { get; set; }
/// <summary>
/// 钟罩真空时间
/// </summary>
public string CTP_Belljar_Vacuum_Time { get; set; }
/// <summary>
/// 钟罩高压值
/// </summary>
public string CTP_Belljar_HighPressure_Value { get; set; }
/// <summary>
/// 钟罩高压时间
/// </summary>
public string CTP_Belljar_HighPressure_Time { get; set; }
/// <summary>
/// 钟罩循环次数
/// </summary>
public string CTP_Belljar_Cycles_Number { get; set; }
/// <summary>
/// 回氦前真空值
/// </summary>
public string CTP_Pre_Helium_Value { get; set; }
/// <summary>
/// 回氦后真空值
/// </summary>
public string CTP_Post_Helium_Value { get; set; }
/// <summary>
/// 平压压力
/// </summary>
public string CTP_Flat_Pressure { get; set; }
/// <summary>
/// 电芯测厚压力
/// </summary>
public string CTP_Cell_Thickness_Pressure { get; set; }
/// <summary>
/// 注液后重量
/// </summary>
public string CTQ_PostWeighing_Value { get; set; }
/// <summary>
/// 电芯厚度
/// </summary>
public string CTQ_Cell_Thickness { get; set; }
/// <summary>
/// 终压胶粒高度
/// </summary>
public string CTQ_Finalpress_Rubber_Height { get; set; }
/// <summary>
/// 注液前负压压力
/// </summary>
public string CTP_PreInjection_Pressure { get; set; }
/// <summary>
/// 电解液保有量-
/// </summary>
public string CTQ_Electrolyte_Inventory { get; set; }
/// <summary>
/// 预钉打钉行程
/// </summary>
public string CTP_PreNailing_Stroke { get; set; }
/// <summary>
/// 回氦前抽真空压力
/// </summary>
public string CTP_PreHelium_Vacuum_Pressure { get; set; }
/// <summary>
/// 终压打钉行程
/// </summary>
public string CTP_FinalNailing_Stroke { get; set; }
/// <summary>
/// 压密封胶粒后电芯厚度
/// </summary>
public string CTQ_Finalpress_Rubber_Thickness { get; set; }
}
/// <summary>
/// 进出站上传数据
/// </summary>
public class EnterandExit
{
/// <summary>
/// BU编码
/// </summary>
public string bu_id;
/// <summary>
/// 区域简称
/// </summary>
public string district_id;
/// <summary>
/// 工厂编码
/// </summary>
public string factory_id;
/// <summary>
/// 产线编码
/// </summary>
public string production_line_id;
/// <summary>
/// 工序编码
/// </summary>
public string production_processes_id;
/// <summary>
/// 工作中心编码
/// </summary>
public string work_center_id;
/// <summary>
/// 工站
/// </summary>
public string station_id;
/// <summary>
/// 设备编码
/// </summary>
public string device_name;
/// <summary>
/// 进出站标识
/// </summary>
public string action;
/// <summary>
/// 动作时间(进出站)
/// </summary>
public string action_time;
}
public class CollectionUpload
{
/// <summary>
/// BU编码
/// </summary>
public string bu_id;
/// <summary>
/// 区域简称
/// </summary>
public string district_id;
/// <summary>
/// 工厂编码
/// </summary>
public string factory_id;
/// <summary>
/// 产线编码
/// </summary>
public string production_line_id;
/// <summary>
/// 工序编码
/// </summary>
public string production_processes_id;
/// <summary>
/// 工作中心编码
/// </summary>
public string work_center_id;
/// <summary>
/// 工站
/// </summary>
public string station_id;
/// <summary>
/// 设备编码
/// </summary>
public string device_name;
/// <summary>
/// 采集项数据列表
/// </summary>
public List<Collection> taglist { get; set; }
}
public class Collection
{
/// <summary>
/// 时间
/// </summary>
public string device_time { get; set; }
/// <summary>
/// 采集项键值对
/// </summary>
public Dictionary<string, string> collection_items { get; set; }
}
}
+29
View File
@@ -0,0 +1,29 @@
namespace JinYuan.Models
{
/// <summary>
/// 24小时统计表数据
/// </summary>
public class Chart12HourData
{
/// <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; }
}
}
+17
View File
@@ -0,0 +1,17 @@
namespace JinYuan.Models
{
/// <summary>
/// 不良統計
/// </summary>
public class ChartDataType
{
/// <summary>
/// 數據類型
/// </summary>
public string DataType { get; set; }
/// <summary>
/// 數量
/// </summary>
public int DataCount { get; set; }
}
}
+35
View File
@@ -0,0 +1,35 @@
using SqlSugar;
namespace JinYuan.Models
{
/// <summary>
///
/// </summary>
public class DataTurnover
{
/// <summary>
/// 设备编号
/// </summary>
public System.String equipNum { get; set; }
/// <summary>
/// 托杯码
/// </summary>
[SugarColumn(IsPrimaryKey = true)]
public System.String containerCode { get; set; }
/// <summary>
/// 电芯码
/// </summary>
public System.String identification { get; set; }
/// <summary>
/// 信息
/// </summary>
public string message { get; set; }
/// <summary>
/// 时间
/// </summary>
public System.DateTime? Time { get; set; }
}
}
+65
View File
@@ -0,0 +1,65 @@
using System.Collections.Generic;
namespace JinYuan.Models
{
/// <summary>
/// 设备综合效率
/// </summary>
public class DeviceOEE
{
/// <summary>
/// 生产总数
/// </summary>
public int TotalQty { set; get; }
/// <summary>
/// 良品数
/// </summary>
public int ProOKQty { set; get; }
/// <summary>
/// 良率
/// </summary>
public double YieldRate { set; get; }
/// <summary>
/// 稼动率
/// </summary>
public double UtilizationRate { set; get; }
/// <summary>
/// PPM
/// </summary>
public int PPM { set; get; }
/// <summary>
/// 风速仪器
/// </summary>
public List<double> listWindSpeed { set; get; }
/// <summary>
/// 报警
/// </summary>
public List<ChartDataType> ListAlarmData { set; get; }
/// <summary>
/// 不良统计
/// </summary>
public List<ChartDataType> ListNGData { set; get; }
}
public class Hour12Data
{
/// <summary>
/// 12小时产能
/// </summary>
public List<List12HourData> chart12HourDatas { set; get; }
}
public class List12HourData
{
public List<string> dataTime { set; get; }
public List<int> dataTotal { set; get; }
public List<int> dataOk { set; get; }
public List<double> dataLV { set; get; }
}
}
+79
View File
@@ -0,0 +1,79 @@
namespace JinYuan.Models
{
/// <summary>
/// 智能电表
/// </summary>
public class ElectricEnergy
{
/// <summary>
/// 有功电能(累计电能)KWH
/// </summary>
public System.Decimal? AccumulatedElectricity { get; set; }
/// <summary>
/// A相电压 V
/// </summary>
public System.Decimal? PhaseVoltageA { get; set; }
/// <summary>
/// B相电压
/// </summary>
public System.Decimal? PhaseVoltageB { get; set; }
/// <summary>
/// C相电压
/// </summary>
public System.Decimal? PhaseVoltageC { get; set; }
/// <summary>
/// A相电流
/// </summary>
public System.Decimal? PhaseCurrentA { get; set; }
/// <summary>
/// B相电流
/// </summary>
public System.Decimal? PhaseCurrentB { get; set; }
/// <summary>
/// C相电流
/// </summary>
public System.Decimal? PhaseCurrentC { get; set; }
/// <summary>
/// A相功率
/// </summary>
public System.Decimal? PhasePowerA { get; set; }
/// <summary>
/// B相功率
/// </summary>
public System.Decimal? PhasePowerB { get; set; }
/// <summary>
/// C相功率
/// </summary>
public System.Decimal? PhasePowerC { get; set; }
/// <summary>
/// 总有功功率
/// </summary>
public System.Decimal? ActivePower { get; set; }
/// <summary>
/// 总功率因数
/// </summary>
public System.Decimal? PowerFactor { get; set; }
/// <summary>
/// 电压变比
/// </summary>
public System.Decimal? pt { get; set; }
/// <summary>
/// 电流变比
/// </summary>
public System.Decimal? ct { get; set; }
}
}
+52
View File
@@ -0,0 +1,52 @@
using SqlSugar;
namespace JinYuan.Models
{
public class FDConfig
{
/// <summary>
/// 编号
/// </summary>
public int FdNum { get; set; }
/// <summary>
/// OK拉带类型1
/// </summary>
public string OKLD1Type { get; set; }
/// <summary>
/// OK拉带类型2
/// </summary>
public string OKLD2Type { get; set; }
/// <summary>
/// OK拉带类型3
/// </summary>
public string OKLD3Type { get; set; }
/// <summary>
/// OK拉带类型4
/// </summary>
public string OKLD4Type { get; set; }
/// <summary>
/// NG拉带类型5
/// </summary>
public string NGLD5Type { get; set; }
/// <summary>
/// NG拉带类型6
/// </summary>
public string NGLD6Type { get; set; }
/// <summary>
/// NG拉带类型7
/// </summary>
public string NGLD7Type { get; set; }
/// <summary>
/// 是否开启分档
/// </summary>
public bool IsFDActive { get; set; }
/// <summary>
///是否激活NG电池不分类排出
/// </summary>
public bool IsNGActive { get; set; }
}
}
+47
View File
@@ -0,0 +1,47 @@
using SqlSugar;
namespace JinYuan.Models
{
/// <summary>
/// 24小时产能
/// </summary>
public class Hourprod
{
/// <summary>
/// 日期
/// </summary>
[SugarColumn(IsPrimaryKey = true)]
public System.String FDate { get; set; }
/// <summary>
/// 小时
/// </summary>
[SugarColumn(IsPrimaryKey = true)]
public System.Int32 FHour { get; set; }
/// <summary>
/// 投入数
/// </summary>
public System.Int32 ProdIn { get; set; }
/// <summary>
/// 产出数
/// </summary>
public System.Int32 ProdOut { get; set; }
/// <summary>
/// 时间
/// </summary>
public System.DateTime? TestTime { get; set; }
/// <summary>
/// PPM
/// </summary>
public System.Int32 Ppm { get; set; }
/// <summary>
/// 稼动率
/// </summary>
public System.Decimal JiaDL { get; set; }
}
}
+118
View File
@@ -0,0 +1,118 @@
<?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>{4C0BCB84-5CD7-4846-8363-C4C10D46E391}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>JinYuan.Models</RootNamespace>
<AssemblyName>JinYuan.Models</AssemblyName>
<TargetFrameworkVersion>v4.7.2</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>bin\Debug\</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\net47\CsvHelper.dll</HintPath>
</Reference>
<Reference Include="Microsoft.Bcl.AsyncInterfaces, Version=1.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
<HintPath>..\packages\Microsoft.Bcl.AsyncInterfaces.1.0.0\lib\net461\Microsoft.Bcl.AsyncInterfaces.dll</HintPath>
</Reference>
<Reference Include="Microsoft.Bcl.HashCode, Version=1.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
<HintPath>..\packages\Microsoft.Bcl.HashCode.1.0.0\lib\net461\Microsoft.Bcl.HashCode.dll</HintPath>
</Reference>
<Reference Include="MiniExcel, Version=1.31.2.0, Culture=neutral, PublicKeyToken=e7310002a53eac39, processorArchitecture=MSIL">
<HintPath>..\packages\MiniExcel.1.31.2\lib\net45\MiniExcel.dll</HintPath>
</Reference>
<Reference Include="Newtonsoft.Json, Version=13.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
<HintPath>..\packages\Newtonsoft.Json.13.0.3\lib\net45\Newtonsoft.Json.dll</HintPath>
</Reference>
<Reference Include="PLCCommunication">
<HintPath>..\LargeSquareOne\Lib\PLCCommunication.dll</HintPath>
</Reference>
<Reference Include="SqlSugar, Version=5.1.4.94, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\SqlSugar.5.1.4.94\lib\SqlSugar.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Buffers, Version=4.0.2.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
<HintPath>..\packages\System.Buffers.4.4.0\lib\netstandard2.0\System.Buffers.dll</HintPath>
</Reference>
<Reference Include="System.Core" />
<Reference Include="System.IO.Compression" />
<Reference Include="System.Memory, Version=4.0.1.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
<HintPath>..\packages\System.Memory.4.5.0\lib\netstandard2.0\System.Memory.dll</HintPath>
</Reference>
<Reference Include="System.Numerics" />
<Reference Include="System.Numerics.Vectors, Version=4.1.3.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
<HintPath>..\packages\System.Numerics.Vectors.4.4.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.2\lib\netstandard2.0\System.Runtime.CompilerServices.Unsafe.dll</HintPath>
</Reference>
<Reference Include="System.Threading.Tasks.Extensions, Version=4.2.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
<HintPath>..\packages\System.Threading.Tasks.Extensions.4.5.2\lib\netstandard2.0\System.Threading.Tasks.Extensions.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="NgCodeEntity.cs" />
<Compile Include="AlarmCountEntry.cs" />
<Compile Include="AlarmForm.cs" />
<Compile Include="Alarm\AlarmStatus.cs" />
<Compile Include="Alarm\AlarmData.cs" />
<Compile Include="FDConfig.cs" />
<Compile Include="Chart12HourData.cs" />
<Compile Include="ChartDataType.cs" />
<Compile Include="AGearEntity.cs" />
<Compile Include="CPQCPTDate.cs" />
<Compile Include="ElectricEnergy.cs" />
<Compile Include="Hourprod.cs" />
<Compile Include="BGearEntity.cs" />
<Compile Include="SysConfig\ChallengeCode.cs" />
<Compile Include="SysConfig\Device.cs" />
<Compile Include="CPKModel.cs" />
<Compile Include="DeviceOEE.cs" />
<Compile Include="SysConfig\Enum.cs" />
<Compile Include="SysConfig\Group.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="SysConfig\ParamBase.cs" />
<Compile Include="SysConfig\ParamList.cs" />
<Compile Include="SysConfig\ProductModel.cs" />
<Compile Include="SysConfig\ProductModelParam.cs" />
<Compile Include="SysConfig\Variable.cs" />
<Compile Include="SysConfig\SysAdmin.cs" />
<Compile Include="SysConfig\SysConfig.cs" />
<Compile Include="SysConfig\SysLog.cs" />
<Compile Include="DataTurnover.cs" />
</ItemGroup>
<ItemGroup>
<None Include="app.config" />
<None Include="packages.config" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project>
+21
View File
@@ -0,0 +1,21 @@
using SqlSugar;
namespace JinYuan.Models
{
/// <summary>
/// NGCode
/// </summary>
public class NgCodeEntity
{
/// <summary>
/// 编码
/// </summary>
public string ngCode { get; set; }
/// <summary>
/// 不良信息
/// </summary>
public string ngMessage { get; set; }
}
}
+35
View File
@@ -0,0 +1,35 @@
using System.Reflection;
using System.Runtime.InteropServices;
// 有关程序集的一般信息由以下
// 控制。更改这些特性值可修改
// 与程序集关联的信息。
[assembly: AssemblyTitle("JinYuan.Models")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("JinYuan.Models")]
[assembly: AssemblyCopyright("Copyright © 2023")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// 将 ComVisible 设置为 false 会使此程序集中的类型
//对 COM 组件不可见。如果需要从 COM 访问此程序集中的类型
//请将此类型的 ComVisible 特性设置为 true。
[assembly: ComVisible(false)]
// 如果此项目向 COM 公开,则下列 GUID 用于类型库的 ID
[assembly: Guid("4c0bcb84-5cd7-4846-8363-c4c10d46e391")]
// 程序集的版本信息由下列四个值组成:
//
// 主版本
// 次版本
// 生成号
// 修订号
//
//可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值
//通过使用 "*",如下所示:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
+21
View File
@@ -0,0 +1,21 @@
using System;
namespace JinYuan.Models
{
public class Challenge
{
/// <summary>
/// 挑战件条码
/// </summary>
public String ChallengeBarCode { get; set; }
/// <summary>
/// 电芯信息
/// </summary>
public String CodeMessage { get; set; }
/// <summary>
/// 焊前/焊后CCD
/// </summary>
public String WeldingCCD { get; set; }
}
}
+317
View File
@@ -0,0 +1,317 @@
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Threading;
namespace JinYuan.Models
{
/// <summary>
/// 通信设备实体类
/// </summary>
public class Device
{
/// <summary>
/// IP地址
/// </summary>
public string IPAddress { get; set; }
/// <summary>
/// 端口
/// </summary>
public int Port { get; set; }
/// <summary>
/// PLC类型
/// </summary>
public string PLCType { get; set; }
/// <summary>
/// 当前设备的连接状态
/// </summary>
public bool IsConnected { get; set; }
/// <summary>
/// 是否是首次连接
/// </summary>
public bool IsFirstConnect { get; set; } = true;
/// <summary>
/// 重连周期
/// </summary>
public int ReConnectTime { get; set; } = 2000;
/// <summary>
/// 休眠时间
/// </summary>
public int SleepTime { get; set; } = 10;
/// <summary>
/// 大小端
/// </summary>
[JsonIgnore]
public int DataFormat { get; set; } = 0;
/// <summary>
/// 出错次数
/// </summary>
public int ErrorTimes { get; set; }
/// <summary>
/// 容错次数
/// </summary>
public int AllowErrorTimes { get; set; } = 3;
/// <summary>
/// 多线程取消源标志位
/// </summary>
public CancellationTokenSource Cts { get; set; }
/// <summary>
/// 计时器
/// </summary>
public Stopwatch Stopwatch { get; set; }
/// <summary>
/// 所有归档变量的集合
/// </summary>
public List<Variable> StoreVarList { get; set; } = new List<Variable>();
/// <summary>
/// 按工位读取
/// </summary>
public List<Group> WorkVarList { get; set; } = new List<Group>();
/// <summary>
/// 通信组集合
/// </summary>
public List<Group> GroupList { get; set; } = new List<Group>();
/// <summary>
/// 所有变量的集合
/// </summary>
public List<Variable> VarList { get; set; } = new List<Variable>();
/// <summary>
/// 所有变量名称与值的集合
/// </summary>
public Dictionary<string, object> CurrentValue { get; set; } = new Dictionary<string, object>();
/// <summary>
/// 定义报警触发和消除事件
/// </summary>
public event Action<bool, Variable> AlarmTrigEvent;
/// <summary>
/// 变量初始化
/// </summary>
public void Init()
{
foreach (var gp in GroupList)
{
if (gp.IsTiggerRead)
{
WorkVarList.Add(gp);
}
foreach (var variable in gp.VarList)
{
if (!gp.IsTiggerRead)
{
VarList.Add(variable);
if (CurrentValue.ContainsKey(variable.VarName))
{
CurrentValue[variable.VarName] = "NA";
}
else
{
CurrentValue.Add(variable.VarName, "NA");
}
}
}
}
}
/// <summary>
/// 索引器,通过键名获取到数据
/// </summary>
/// <param name="key"></param>
/// <returns></returns>
[JsonIgnore]
public object this[string key]
{
get
{
if (CurrentValue.ContainsKey(key))
{
return CurrentValue[key];
}
else
{
return null;
}
}
}
/// <summary>
/// 实时更新
/// </summary>
/// <param name="variable"></param>
public void Update(Variable variable)
{
//更新处理
if (CurrentValue.ContainsKey(variable.VarName))
{
CurrentValue[variable.VarName] = variable.VarValue;
}
else
{
CurrentValue.Add(variable.VarName, variable.VarValue);
}
//报警处理
if (variable.HighAlarmEnable || variable.LowAlarmEnable)
{
float compareValue = 0.0f;
if (variable.DataType.ToLower() == "bool")
{
compareValue = Convert.ToBoolean(variable.VarValue) ? 1.0f : 0.0f;
}
else
{
compareValue = Convert.ToSingle(variable.VarValue);
}
int compareResult = 0;
//高报警时,触发事件
if (variable.HighAlarmEnable)
{
compareResult = Compare(compareValue, variable.HighAlarmValue, variable.HighAlarmCacheValue, true);
if (compareResult != 0)
{
//通过事件做通知
OnAlarmAckEvent(variable, new AlarmEventArgs()
{
Name = variable.VarName,
CurrentValue = variable.VarValue.ToString(),
SetValue = variable.HighAlarmValue.ToString(),
AlarmNote = variable.HighAlarmNote,
IsTrigger = compareResult == 1
});
}
variable.HighAlarmCacheValue = compareValue;
}
else
{
compareResult = Compare(compareValue, variable.LowAlarmValue, variable.LowAlarmCacheValue, false);
if (compareResult != 0)
{
//通过事件做通知
OnAlarmAckEvent(variable, new AlarmEventArgs()
{
Name = variable.VarName,
CurrentValue = variable.VarValue.ToString(),
SetValue = variable.LowAlarmValue.ToString(),
AlarmNote = variable.LowAlarmNote,
IsTrigger = compareResult == 1
});
}
variable.LowAlarmCacheValue = compareValue;
}
}
}
/// <summary>
/// 报警触发的事件
/// </summary>
//public event AlarmTriggerEventDelegate AlarmTriggerEvent;
/// <summary>
/// 触发事件
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void OnAlarmAckEvent(object sender, AlarmEventArgs e)
{
//AlarmTriggerEvent?.Invoke(sender, e);
}
/// <summary>
/// 报警比较
/// </summary>
/// <param name="current">当前值</param>
/// <param name="set">设置值</param>
/// <param name="last">缓存值</param>
/// <param name="isPositive">上升沿还是下降沿</param>
/// <returns>比较结果,1表示触发,-1表示消除,0表示无变化</returns>
private int Compare(float current, float set, float last, bool isPositive)
{
if (isPositive)
{
if (current >= set && last < set)
{
return 1;
}
if (current < set && last >= set)
{
return -1;
}
}
else
{
if (current <= set && last > set)
{
return 1;
}
if (current > set && last <= set)
{
return -1;
}
}
return 0;
}
}
public class AlarmEventArgs : EventArgs
{
/// <summary>
/// 变量名称
/// </summary>
public string Name { get; set; }
/// <summary>
/// 当前值
/// </summary>
public string CurrentValue { get; set; }
/// <summary>
/// 报警说明
/// </summary>
public string AlarmNote { get; set; }
/// <summary>
/// 报警设定值
/// </summary>
public string SetValue { get; set; }
/// <summary>
/// 是否为触发
/// </summary>
public bool IsTrigger { get; set; }
}
}
+18
View File
@@ -0,0 +1,18 @@
namespace JinYuan.Models
{
/// <summary>
/// 所有窗体枚举,小于临界窗体的为固定窗体,不执行关闭
/// </summary>
public enum FormNames
{
集中监控,
数据监控,
日志报警,
临界窗体,
数据分析,
数据追溯,
参数设置,
系统设置,
用户管理
}
}
+47
View File
@@ -0,0 +1,47 @@
using MiniExcelLibs.Attributes;
using System.Collections.Generic;
namespace JinYuan.Models
{
/// <summary>
/// 通信组实体类
/// </summary>
public class Group
{
/// <summary>
///通信组名称
/// </summary>
public string GroupName { get; set; }
/// <summary>
/// 起始地址
/// </summary>
public string Start { get; set; }
/// <summary>
/// 长度
/// </summary>
public ushort Length { get; set; }
/// <summary>
/// 是否为触发读取
/// </summary>
public bool IsTiggerRead { get; set; }
/// <summary>
/// 是否需要反馈结果到PLC
/// </summary>
public bool IsFeedbackPlc { get; set; }
/// <summary>
/// 是否启用
/// </summary>
public bool IsActive { get; set; }
/// <summary>
/// 备注说明
/// </summary>
public string Remark { get; set; }
/// <summary>
/// 变量集合
/// </summary>
[ExcelIgnore]
public List<Variable> VarList { get; set; }
}
}
+33
View File
@@ -0,0 +1,33 @@
using SqlSugar;
namespace JinYuan.Models
{
/// <summary>
///
/// </summary>
public class ParamBase
{
/// <summary>
///
/// </summary>
public ParamBase()
{
}
/// <summary>
/// 序号
/// </summary>
public System.Int32? fNo { get; set; }
/// <summary>
/// 参数名称
/// </summary>
[SugarColumn(IsPrimaryKey = true)]
public System.String ParaName { get; set; }
/// <summary>
/// 备注
/// </summary>
public System.String Remark { get; set; }
}
}
+42
View File
@@ -0,0 +1,42 @@
using SqlSugar;
namespace JinYuan.Models
{
public class ParamList
{
/// <summary>
///
/// </summary>
[SugarColumn(IsPrimaryKey = true)]
public System.String ModelName { get; set; }
/// <summary>
///
/// </summary>
[SugarColumn(IsPrimaryKey = true)]
public System.String ParaName { get; set; }
/// <summary>
///
/// </summary>
public System.String ParaValueMin { get; set; }
/// <summary>
///
/// </summary>
public System.String ParaValueMax { get; set; }
/// <summary>
///
/// </summary>
public System.String Uint { get; set; }
/// <summary>
///
/// </summary>
public System.String Remark { get; set; }
/// <summary>
///
/// </summary>
public System.DateTime? UpdateTime { get; set; } = System.DateTime.Now;
}
}
+21
View File
@@ -0,0 +1,21 @@
using SqlSugar;
namespace JinYuan.Models
{
public class ProductModel
{
/// <summary>
///
/// </summary>
[SugarColumn(IsPrimaryKey = true)]
public System.String ModelName { get; set; }
/// <summary>
/// 物料编码
/// </summary>
public System.String MaterialCode { get; set; }
/// <summary>
///
/// </summary>
public System.String Remark { get; set; }
}
}
@@ -0,0 +1,25 @@
namespace JinYuan.Models
{
/// <summary>
/// 产品型号参数范围
/// </summary>
public class ProductModelParam
{
/// <summary>
/// 入壳压力1MAX
/// </summary>
public decimal PrePressure1Max { set; get; }
/// <summary>
/// 入壳压力2MAX
/// </summary>
public decimal PrePressure2Max { set; get; }
/// <summary>
/// 入壳压力3MAX
/// </summary>
public decimal PrePressure3Max { set; get; }
/// <summary>
/// 入壳压力下限
/// </summary>
}
}
+24
View File
@@ -0,0 +1,24 @@
using SqlSugar;
namespace JinYuan.Models
{
/// <summary>
/// 登录实体类型
/// </summary>
public class SysAdmin
{
[SugarColumn(IsPrimaryKey = true, IsIgnore = true)]
public int LoginId { get; set; }
public string LoginName { get; set; }
public string LoginPwd { get; set; }
public string LoginUid { get; set; }
public string LoginLevel { get; set; }
public bool SystemLog { get; set; }
public bool CpkData { get; set; }
public bool HistoryData { get; set; }
public bool ParamSet { get; set; }
public bool SystemSet { get; set; }
public bool UserManage { get; set; }
}
}
+63
View File
@@ -0,0 +1,63 @@
namespace JinYuan.Models
{
public class SysConfig
{
/// <summary>
/// 开机自动启动
/// </summary>
public bool AutoStart { get; set; }
/// <summary>
///启动自动登录
/// </summary>
public bool AutoLogin { get; set; }
/// <summary>
///无操作自动锁屏
/// </summary>
public bool AutoLock { get; set; }
/// <summary>
///锁屏间隙时间,单位是分钟
/// </summary>
public int LockPeriod { get; set; }
/// <summary>
///无操作自动锁屏
/// </summary>
public bool AutoQieHuanM { get; set; }
/// <summary>
///锁屏间隙时间,单位是分钟
/// </summary>
public int QieHuanMPeriod { get; set; }
/// <summary>
///曲线显示数量
/// </summary>
public int ShowSeriesCount { get; set; }
/// <summary>
/// 开启刷卡模式
/// </summary>
public bool SwipeCardMode { get; set; }
/// <summary>
/// MES/非MES模式切换
/// </summary>
public bool MesModeSwitching { get; set; }
/// <summary>
/// 切屏
/// </summary>
public bool ScreenCutting { get; set; }
/// <summary>
/// 获取MES参数
/// </summary>
public bool GetMesParam { get; set; }
/// <summary>
/// 切换强制OK模式
/// </summary>
public bool OKSwitching { get; set; }
/// <summary>
/// 线程耗时日志保存
/// </summary>
public bool SaveThreadTime { get; set; }
}
}
+38
View File
@@ -0,0 +1,38 @@
namespace JinYuan.Models
{
public class SysLog
{
/// <summary>
/// 插入时间
/// </summary>
public string InsertTime { get; set; }
/// <summary>
/// 报警类型
/// </summary>
public string LogType { get; set; }
/// <summary>
/// 日志信息
/// </summary>
public string Note { get; set; }
/// <summary>
/// 操作人员
/// </summary>
public string Operater { get; set; }
/// <summary>
/// 变量名称
/// </summary>
public string VarName { get; set; }
/// <summary>
/// 报警设置值
/// </summary>
public string AlarmSet { get; set; }
/// <summary>
/// 报警值
/// </summary>
public string AlarmValue { get; set; }
/// <summary>
/// 报警类型
/// </summary>
public string AlarmType { get; set; }
}
}
+103
View File
@@ -0,0 +1,103 @@
using MiniExcelLibs.Attributes;
namespace JinYuan.Models
{
/// <summary>
/// 变量属性类
/// </summary>
public class Variable
{
/// <summary>
/// 变量名称
/// </summary>
public string VarName { get; set; }
/// <summary>
/// 变量地址
/// </summary>
public string VarAddress { get; set; }
/// <summary>
/// 起始索引
/// </summary>
public string Start { get; set; }
/// <summary>
/// 数据类型
/// </summary>
public string DataType { get; set; }
/// <summary>
/// 偏移或长度
/// </summary>
public int OffsetOrLenght { get; set; }
/// <summary>
/// 所属通信组名称
/// </summary>
public string GroupName { get; set; }
/// <summary>
/// 备注说明
/// </summary>
public string Remark { get; set; }
/// <summary>
/// 是否上升沿报警
/// </summary>
public bool PosAlarm { get; set; }
/// <summary>
/// 是否下降沿报警
/// </summary>
public bool NegAlarm { get; set; }
/// <summary>
/// 转换系数
/// </summary>
public float Scale { get; set; } = 1.0f;
/// <summary>
/// 偏移值
/// </summary>
public float Offset { get; set; } = 0.0f;
/// <summary>
/// 变量的值
/// </summary>
[ExcelIgnore]
public object VarValue { get; set; }
/// <summary>
/// 高报警启用
/// </summary>
public bool HighAlarmEnable { get; set; }
/// <summary>
/// 高报警设定值
/// </summary>
public float HighAlarmValue { get; set; }
/// <summary>
/// 高报警说明
/// </summary>
public string HighAlarmNote { get; set; }
/// <summary>
/// 高报警缓存值
/// </summary>
[ExcelIgnore]
public float HighAlarmCacheValue { get; set; }
/// <summary>
/// 低报警启用
/// </summary>
public bool LowAlarmEnable { get; set; }
/// <summary>
/// 低报警设定值
/// </summary>
public float LowAlarmValue { get; set; }
/// <summary>
/// 低报警说明
/// </summary>
public string LowAlarmNote { get; set; }
/// <summary>
/// 低报警缓存值
/// </summary>
[ExcelIgnore]
public float LowAlarmCacheValue { get; set; }
}
}
+15
View File
@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-13.0.0.0" newVersion="13.0.0.0" />
</dependentAssembly>
<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>
</assemblyBinding>
</runtime>
</configuration>
+15
View File
@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="CsvHelper" version="30.0.1" targetFramework="net472" />
<package id="Microsoft.Bcl.AsyncInterfaces" version="1.0.0" targetFramework="net472" />
<package id="Microsoft.Bcl.HashCode" version="1.0.0" targetFramework="net472" />
<package id="Microsoft.CSharp" version="4.3.0" targetFramework="net472" />
<package id="MiniExcel" version="1.31.2" targetFramework="net472" />
<package id="Newtonsoft.Json" version="13.0.3" targetFramework="net472" />
<package id="SqlSugar" version="5.1.4.94" targetFramework="net472" />
<package id="System.Buffers" version="4.4.0" targetFramework="net472" />
<package id="System.Memory" version="4.5.0" targetFramework="net472" />
<package id="System.Numerics.Vectors" version="4.4.0" targetFramework="net472" />
<package id="System.Runtime.CompilerServices.Unsafe" version="4.5.2" targetFramework="net472" />
<package id="System.Threading.Tasks.Extensions" version="4.5.2" targetFramework="net472" />
</packages>