File diff suppressed because one or more lines are too long
@@ -0,0 +1,52 @@
|
||||
using PLCCommunication;
|
||||
using SqlSugar;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
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; }
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,83 @@
|
||||
using CsvHelper.Configuration.Attributes;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
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; }
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace JinYuan.Models
|
||||
{
|
||||
public class AlarmStatus
|
||||
{
|
||||
/// <summary>
|
||||
/// 报警地址
|
||||
/// </summary>
|
||||
public string PLCAdress { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 报警状态
|
||||
/// </summary>
|
||||
public bool Status { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,34 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
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; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
using CsvHelper.Configuration.Attributes;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
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; }
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,665 @@
|
||||
using SqlSugar;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace JinYuan.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// 电芯出站
|
||||
/// </summary>
|
||||
public class BGearEntity
|
||||
{
|
||||
public int[] MyNo = new int[2];//AB序号
|
||||
public short[] listRes = new short[2];//AB反馈结果
|
||||
public string[] ScanTime = new string[2];//AB芯包扫码时间
|
||||
public string[] listBatCode = new string[2];//AB芯包条码
|
||||
public string[] judgment_result = new string[2];//AB芯包出站判定结果
|
||||
|
||||
public short[,] list_Data1 = new short[2, 28];//芯包信息1
|
||||
public int[,] list_Data2 = new int[2, 19];//芯包信息2(焊机相关次数)
|
||||
public float[,] list_Data3 = new float[2, 54];//芯包信息3(设定值)
|
||||
public float[,] list_Data4 = new float[2, 47];//芯包信息4(实际值)
|
||||
public short[,] NG_Data1 = new short[2, 5];//NG芯包信息1
|
||||
public float[,] NG_Data2 = new float[2, 9];//NG芯包信息2
|
||||
|
||||
public short[,] list_pan = new short[2, 1];//物流线托盘码
|
||||
/// <summary>
|
||||
/// 时间
|
||||
/// </summary>
|
||||
[SugarColumn(IsPrimaryKey = false)]
|
||||
public System.String TestTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// A芯包扫码时间
|
||||
/// </summary>
|
||||
[SugarColumn(IsPrimaryKey = false)]
|
||||
public System.String CSBYHASCANNINGTIME { get; set; }
|
||||
/// <summary>
|
||||
/// 上传状态
|
||||
/// </summary>
|
||||
public string UpState { get; set; }
|
||||
/// <summary>
|
||||
/// 反馈结果
|
||||
/// </summary>
|
||||
public int Result { get; set; }
|
||||
/// <summary>
|
||||
/// 区分A和B
|
||||
/// </summary>
|
||||
public string A_B { get; set; }
|
||||
/// <summary>
|
||||
/// 芯包条码
|
||||
/// </summary>
|
||||
public string CSBYHCODEA { get; set; }
|
||||
/// <summary>
|
||||
/// 芯包称重1工位号
|
||||
/// </summary>
|
||||
public short CSBYHWEIGHTNOA1 { get; set; }
|
||||
/// <summary>
|
||||
/// 芯包重量1判定结果
|
||||
/// </summary>
|
||||
public string CSBYHWEIGHTRESULTA1 { get; set; }
|
||||
/// <summary>
|
||||
/// 芯包测厚工位号
|
||||
/// </summary>
|
||||
public short CSBYHTHICKNESSTESTSTATIONNOA { get; set; }
|
||||
/// <summary>
|
||||
/// 芯包测厚(位移)判定结果
|
||||
/// </summary>
|
||||
public string CSBYHTHICKNESSTESTJUDGERESULTA { get; set; }
|
||||
/// <summary>
|
||||
/// 芯包极性检测结果
|
||||
/// </summary>
|
||||
public string CSBYHPOLARITYRESULTA { get; set; }
|
||||
/// <summary>
|
||||
/// 芯包治具号
|
||||
/// </summary>
|
||||
public short CSBYHTOOLNOA { get; set; }
|
||||
/// <summary>
|
||||
/// 芯包铜焊接工位号1
|
||||
/// </summary>
|
||||
public short CSBYHCUWELDINGSTATIONNOA1 { get; set; }
|
||||
/// <summary>
|
||||
/// 芯包铜焊接工位号2
|
||||
/// </summary>
|
||||
public short CSBYHCUWELDINGSTATIONNOA2 { get; set; }
|
||||
/// <summary>
|
||||
/// 芯包铜焊接工位号3
|
||||
/// </summary>
|
||||
public short CSBYHCUWELDINGSTATIONNOA3 { get; set; }
|
||||
/// <summary>
|
||||
/// 芯包铜焊焊头次数1
|
||||
/// </summary>
|
||||
public int CSBYHCUWELDHEADCOUNTA1 { get; set; }
|
||||
/// <summary>
|
||||
/// 芯包铜焊焊头次数2
|
||||
/// </summary>
|
||||
public int CSBYHCUWELDHEADCOUNTA2 { get; set; }
|
||||
/// <summary>
|
||||
/// 芯包铜焊焊头次数3
|
||||
/// </summary>
|
||||
public int CSBYHCUWELDHEADCOUNTA3 { get; set; }
|
||||
/// <summary>
|
||||
/// 芯包铜焊焊座次数1
|
||||
/// </summary>
|
||||
public int CSBYHCUWELDBASECOUNTA1 { get; set; }
|
||||
/// <summary>
|
||||
/// 芯包铜焊焊座次数2
|
||||
/// </summary>
|
||||
public int CSBYHCUWELDBASECOUNTA2 { get; set; }
|
||||
/// <summary>
|
||||
/// 芯包铜焊焊座次数3
|
||||
/// </summary>
|
||||
public int CSBYHCUWELDBASECOUNTA3 { get; set; }
|
||||
/// <summary>
|
||||
/// 芯包铝焊接工位号1
|
||||
/// </summary>
|
||||
public short CSBYHALWELDINGSTATIONNOA1 { get; set; }
|
||||
/// <summary>
|
||||
/// 芯包铝焊接工位号2
|
||||
/// </summary>
|
||||
public short CSBYHALWELDINGSTATIONNOA2 { get; set; }
|
||||
/// <summary>
|
||||
/// 芯包铝焊接工位号3
|
||||
/// </summary>
|
||||
public short CSBYHALWELDINGSTATIONNOA3 { get; set; }
|
||||
/// <summary>
|
||||
/// 芯包铝焊焊头次数1
|
||||
/// </summary>
|
||||
public int CSBYHALWELDHEADCOUNTA1 { get; set; }
|
||||
/// <summary>
|
||||
/// 芯包铝焊焊头次数2
|
||||
/// </summary>
|
||||
public int CSBYHALWELDHEADCOUNTA2 { get; set; }
|
||||
/// <summary>
|
||||
/// 芯包铝焊焊头次数3
|
||||
/// </summary>
|
||||
public int CSBYHALWELDHEADCOUNTA3 { get; set; }
|
||||
/// <summary>
|
||||
/// 芯包铝焊焊座次数1
|
||||
/// </summary>
|
||||
public int CSBYHALWELDBASECOUNTA1 { get; set; }
|
||||
/// <summary>
|
||||
/// 芯包铝焊焊座次数2
|
||||
/// </summary>
|
||||
public int CSBYHALWELDBASECOUNTA2 { get; set; }
|
||||
/// <summary>
|
||||
/// 芯包铝焊焊座次数3
|
||||
/// </summary>
|
||||
public int CSBYHALWELDBASECOUNTA3 { get; set; }
|
||||
/// <summary>
|
||||
/// 电芯铜极耳切刀使用次数
|
||||
/// </summary>
|
||||
public int CSBYHCUTABCUTTERCOUNTA { get; set; }
|
||||
/// <summary>
|
||||
/// 电芯铝极耳切刀使用次数
|
||||
/// </summary>
|
||||
public int CSBYHALTABCUTTERCOUNTA { get; set; }
|
||||
/// <summary>
|
||||
/// 电芯裁切粘连判定结果
|
||||
/// </summary>
|
||||
public string CSBYHCUTADHESIONJUDGERESULTA { get; set; }
|
||||
/// <summary>
|
||||
/// 电芯裁切毛刺判定结果
|
||||
/// </summary>
|
||||
public string CSBYHCUTBURRJUDGERESULTA { get; set; }
|
||||
/// <summary>
|
||||
/// 芯包铜焊印位置判定结果1
|
||||
/// </summary>
|
||||
public string CSBYHSOLDERJUDGERESULTA { get; set; }
|
||||
/// <summary>
|
||||
/// 芯包铜焊印位置判定结果2
|
||||
/// </summary>
|
||||
public string CSBYHSOLDERJUDGERESULTA2 { get; set; }
|
||||
/// <summary>
|
||||
/// 芯包铝焊印位置判定结果1
|
||||
/// </summary>
|
||||
public string AluminiumWeldPositionResult1 { get; set; }
|
||||
/// 芯包铝焊印位置判定结果2
|
||||
/// </summary>
|
||||
public string AluminiumWeldPositionResult2 { get; set; }
|
||||
/// <summary>
|
||||
/// 芯包正面极耳撕裂判定结果
|
||||
/// </summary>
|
||||
public string CSBYHFRONTEARCRACKLEJUDGERESULTA { get; set; }
|
||||
/// <summary>
|
||||
/// 芯包背面极耳撕裂判定结果
|
||||
/// </summary>
|
||||
public string CSBYHBACKEARCRACKLEJUDGERESULTA { get; set; }
|
||||
/// <summary>
|
||||
/// 芯包正面极耳翻折检测结果
|
||||
/// </summary>
|
||||
public string CSBYHFRONTEARFLODINGRESULTA { get; set; }
|
||||
/// <summary>
|
||||
/// 芯包背面极耳翻折检测结果
|
||||
/// </summary>
|
||||
public string CSBYHBACKEARFLODINGRESULTA { get; set; }
|
||||
/// <summary>
|
||||
/// 电芯A/B出站判定结果
|
||||
/// </summary>
|
||||
public string CSBYHOUTSTATIONJUDGMENTRESULT { get; set; }
|
||||
/// <summary>
|
||||
/// 电芯铜极耳切刀编号
|
||||
/// </summary>
|
||||
public short CSBYHCUTABCUTTERNOA { get; set; }
|
||||
/// <summary>
|
||||
/// 电芯铝极耳切刀编号
|
||||
/// </summary>
|
||||
public short CSBYHALTABCUTTERNOA { get; set; }
|
||||
/// <summary>
|
||||
/// 测厚压力结果
|
||||
/// </summary>
|
||||
public string ThicknessPressureResult { get; set; }
|
||||
/// <summary>
|
||||
/// 焊前CCD检测结果
|
||||
/// </summary>
|
||||
public string PreweldResult { get; set; }
|
||||
/// <summary>
|
||||
/// 铜焊头预警寿命(次)
|
||||
/// </summary>
|
||||
public int CopperWeldHeadLife { get; set; }
|
||||
/// <summary>
|
||||
/// 铜焊座预警寿命(次)
|
||||
/// </summary>
|
||||
public int CopperWeldSeatLife { get; set; }
|
||||
/// <summary>
|
||||
/// 铝焊头预警寿命(次)
|
||||
/// </summary>
|
||||
public int AluminiumWeldHeadLife { get; set; }
|
||||
/// <summary>
|
||||
/// 铝焊座预警寿命(次)
|
||||
/// </summary>
|
||||
public int AluminiumWeldSeatLife { get; set; }
|
||||
/// <summary>
|
||||
/// 裁切刀使用寿命(次)
|
||||
/// </summary>
|
||||
public int CuttingKnifeLife { get; set; }
|
||||
/// <summary>
|
||||
/// 复投次数
|
||||
/// </summary>
|
||||
public int RethrowNum { get; set; }
|
||||
/// <summary>
|
||||
/// 芯包测厚位移值(尺寸2)
|
||||
/// </summary>
|
||||
public float ThicknessMeasureDisplacement { 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>
|
||||
/// 电芯A/B异常反馈信息
|
||||
/// </summary>
|
||||
//public string CSBYHABNORMALINFORMATION { get; set; }
|
||||
/// <summary>
|
||||
/// 芯包重量1设定值最大值(g)
|
||||
/// </summary>
|
||||
public float CSBYHWEIGHTA1MAXSETTING { get; set; }
|
||||
/// <summary>
|
||||
/// 芯包重量1设定值最小值(g)
|
||||
/// </summary>
|
||||
public float CSBYHWEIGHTA1MINSETTING { get; set; }
|
||||
/// <summary>
|
||||
/// 芯包重量1(g)
|
||||
/// </summary>
|
||||
public float CSBYHWEIGHTA1 { get; set; }
|
||||
/// <summary>
|
||||
/// 芯包侧厚压力(Kg)设定最大值
|
||||
/// </summary>
|
||||
public float CSBYHTHICKNESSTESTPRESSUREMAXSETTINGA { get; set; }
|
||||
/// <summary>
|
||||
/// 芯包侧厚压力(Kg)设定最小值
|
||||
/// </summary>
|
||||
public float CSBYHTHICKNESSTESTPRESSUREMINSETTINGA { get; set; }
|
||||
/// <summary>
|
||||
/// 芯包侧厚压力实际值
|
||||
/// </summary>
|
||||
public float CSBYHTHICKNESSTESTPRESSUREA { get; set; }
|
||||
/// <summary>
|
||||
/// 芯包侧厚尺寸1(mm)
|
||||
/// </summary>
|
||||
public float CSBYHTHICKNESSTESTPRESSURESIZEA { get; set; }
|
||||
/// <summary>
|
||||
/// 芯包侧厚最大尺寸(mm)
|
||||
/// </summary>
|
||||
public float CSBYHTHICKNESSTESTPRESSUREMAXSIZEA { get; set; }
|
||||
/// <summary>
|
||||
/// 芯包侧厚最小尺寸(mm)
|
||||
/// </summary>
|
||||
public float CSBYHTHICKNESSTESTPRESSUREMINSIZEA { get; set; }
|
||||
/// <summary>
|
||||
/// 铜焊1压力(Psi)设定值最大值
|
||||
/// </summary>
|
||||
public float CSBYHCUWELDINGPRESSUREMAXSETTING1 { get; set; }
|
||||
/// <summary>
|
||||
/// 铜焊2压力(Psi)设定值最大值
|
||||
/// </summary>
|
||||
public float CSBYHCUWELDINGPRESSUREMAXSETTING2 { get; set; }
|
||||
/// <summary>
|
||||
/// 铜焊3压力(Psi)设定值最大值
|
||||
/// </summary>
|
||||
public float CSBYHCUWELDINGPRESSUREMAXSETTING3 { get; set; }
|
||||
/// <summary>
|
||||
/// 铜焊接压力(Psi)设定值最小值
|
||||
/// </summary>
|
||||
public float CSBYHCUWELDINGPRESSUREMINSETTING { get; set; }
|
||||
/// <summary>
|
||||
/// 铜焊1功率(%)设定值最大值
|
||||
/// </summary>
|
||||
public float CSBYHCUWELDINGPOWERMAXSETTING1 { get; set; }
|
||||
/// <summary>
|
||||
/// 铜焊2功率(%)设定值最大值
|
||||
/// </summary>
|
||||
public float CSBYHCUWELDINGPOWERMAXSETTING2 { get; set; }
|
||||
/// <summary>
|
||||
/// 铜焊3功率(%)设定值最大值
|
||||
/// </summary>
|
||||
public float CSBYHCUWELDINGPOWERMAXSETTING3 { get; set; }
|
||||
/// <summary>
|
||||
/// 铜焊1功率(%)设定值最小值
|
||||
/// </summary>
|
||||
public float CSBYHCUWELDINGPOWERMINSETTING1 { get; set; }
|
||||
/// <summary>
|
||||
/// 铜焊2功率(%)设定值最小值
|
||||
/// </summary>
|
||||
public float CSBYHCUWELDINGPOWERMINSETTING2 { get; set; }
|
||||
/// <summary>
|
||||
/// 铜焊3功率(%)设定值最小值
|
||||
/// </summary>
|
||||
public float CSBYHCUWELDINGPOWERMINSETTING3 { get; set; }
|
||||
/// <summary>
|
||||
/// 铜焊1能量(%)设定值最大值
|
||||
/// </summary>
|
||||
public float CSBYHCUWELDINGENERGYMAXSETTING1 { get; set; }
|
||||
/// <summary>
|
||||
/// 铜焊2能量(%)设定值最大值
|
||||
/// </summary>
|
||||
public float CSBYHCUWELDINGENERGYMAXSETTING2 { get; set; }
|
||||
/// <summary>
|
||||
/// 铜焊3能量(%)设定值最大值
|
||||
/// </summary>
|
||||
public float CSBYHCUWELDINGENERGYMAXSETTING3 { get; set; }
|
||||
/// <summary>
|
||||
/// 铜焊1能量(%)设定值最小值
|
||||
/// </summary>
|
||||
public float CSBYHCUWELDINGENERGYMINSETTING1 { get; set; }
|
||||
/// <summary>
|
||||
/// 铜焊2能量(%)设定值最小值
|
||||
/// </summary>
|
||||
public float CSBYHCUWELDINGENERGYMINSETTING2 { get; set; }
|
||||
/// <summary>
|
||||
/// 铜焊3能量(%)设定值最小值
|
||||
/// </summary>
|
||||
public float CSBYHCUWELDINGENERGYMINSETTING3 { get; set; }
|
||||
/// <summary>
|
||||
/// 铜焊1振幅(%)设定值最大值
|
||||
/// </summary>
|
||||
public float CSBYHCUWELDINGAMPLITUDEMAXSETTING1 { get; set; }
|
||||
/// <summary>
|
||||
/// 铜焊2振幅(%)设定值最大值
|
||||
/// </summary>
|
||||
public float CSBYHCUWELDINGAMPLITUDEMAXSETTING2 { get; set; }
|
||||
/// <summary>
|
||||
/// 铜焊3振幅(%)设定值最大值
|
||||
/// </summary>
|
||||
public float CSBYHCUWELDINGAMPLITUDEMAXSETTING3 { get; set; }
|
||||
/// <summary>
|
||||
/// 铜焊1振幅(%)设定值最小值
|
||||
/// </summary>
|
||||
public float CSBYHCUWELDINGAMPLITUDEMINSETTING1 { get; set; }
|
||||
/// <summary>
|
||||
/// 铜焊2振幅(%)设定值最小值
|
||||
/// </summary>
|
||||
public float CSBYHCUWELDINGAMPLITUDEMINSETTING2 { get; set; }
|
||||
/// <summary>
|
||||
/// 铜焊3振幅(%)设定值最小值
|
||||
/// </summary>
|
||||
public float CSBYHCUWELDINGAMPLITUDEMINSETTING3 { get; set; }
|
||||
/// <summary>
|
||||
/// 芯包铜焊焊接压力(Psi)实际值1
|
||||
/// </summary>
|
||||
public float CSBYHCUPRESSUREA1 { get; set; }
|
||||
/// <summary>
|
||||
/// 芯包铜焊接功率(W)实际值1
|
||||
/// </summary>
|
||||
public float CSBYHCUPOWERA1 { get; set; }
|
||||
/// <summary>
|
||||
/// 芯包铜焊焊接能量(J)实际值1
|
||||
/// </summary>
|
||||
public float CSBYHCUENERGYA1 { get; set; }
|
||||
/// <summary>
|
||||
/// 芯包铜焊焊接振幅(%)实际值1
|
||||
/// </summary>
|
||||
public float CSBYHCUAMPLITUDEA1 { get; set; }
|
||||
/// <summary>
|
||||
/// 芯包铜焊焊接时间(ms)实际值1
|
||||
/// </summary>
|
||||
public float CSBYHCUTIMEA1 { get; set; }
|
||||
/// <summary>
|
||||
/// 芯包铜焊焊接压力(Psi)实际值2
|
||||
/// </summary>
|
||||
public float CSBYHCUPRESSUREA2 { get; set; }
|
||||
/// <summary>
|
||||
/// 芯包铜焊接功率A(W)实际值2
|
||||
/// </summary>
|
||||
public float CSBYHCUPOWERA2 { get; set; }
|
||||
/// <summary>
|
||||
/// 芯包铜焊焊接能量(J)实际值2
|
||||
/// </summary>
|
||||
public float CSBYHCUENERGYA2 { get; set; }
|
||||
/// <summary>
|
||||
/// 芯包铜焊焊接振幅(%)实际值2
|
||||
/// </summary>
|
||||
public float CSBYHCUAMPLITUDEA2 { get; set; }
|
||||
/// <summary>
|
||||
/// 芯包铜焊焊接时间(ms)实际值2
|
||||
/// </summary>
|
||||
public float CSBYHCUTIMEA2 { get; set; }
|
||||
/// <summary>
|
||||
/// 芯包铜焊焊接压力(Psi)实际值3
|
||||
/// </summary>
|
||||
public float CSBYHCUPRESSUREA3 { get; set; }
|
||||
/// <summary>
|
||||
/// 芯包铜焊接功率A(W)实际值3
|
||||
/// </summary>
|
||||
public float CSBYHCUPOWERA3 { get; set; }
|
||||
/// <summary>
|
||||
/// 芯包铜焊焊接能量(J)实际值3
|
||||
/// </summary>
|
||||
public float CSBYHCUENERGYA3 { get; set; }
|
||||
/// <summary>
|
||||
/// 芯包铜焊焊接振幅(%)实际值3
|
||||
/// </summary>
|
||||
public float CSBYHCUAMPLITUDEA3 { get; set; }
|
||||
/// <summary>
|
||||
/// 芯包铜焊焊接时间(ms)实际值3
|
||||
/// </summary>
|
||||
public float CSBYHCUTIMEA3 { get; set; }
|
||||
/// <summary>
|
||||
/// 铝焊1压力(Psi)设定值最大值
|
||||
/// </summary>
|
||||
public float CSBYHALWELDINGPRESSUREMAXSETTING1 { get; set; }
|
||||
/// <summary>
|
||||
/// 铝焊2压力(Psi)设定值最大值
|
||||
/// </summary>
|
||||
public float CSBYHALWELDINGPRESSUREMAXSETTING2 { get; set; }
|
||||
/// <summary>
|
||||
/// 铝焊3压力(Psi)设定值最大值
|
||||
/// </summary>
|
||||
public float CSBYHALWELDINGPRESSUREMAXSETTING3 { get; set; }
|
||||
/// <summary>
|
||||
/// 铝焊接压力(Psi)设定值最小值
|
||||
/// </summary>
|
||||
public float CSBYHALWELDINGPRESSUREMINSETTING { get; set; }
|
||||
/// <summary>
|
||||
/// 铝焊1功率(%)设定值最大值
|
||||
/// </summary>
|
||||
public float CSBYHALWELDINGPOWERMAXSETTING1 { get; set; }
|
||||
/// <summary>
|
||||
/// 铝焊2功率(%)设定值最大值
|
||||
/// </summary>
|
||||
public float CSBYHALWELDINGPOWERMAXSETTING2 { get; set; }
|
||||
/// <summary>
|
||||
/// 铝焊3功率(%)设定值最大值
|
||||
/// </summary>
|
||||
public float CSBYHALWELDINGPOWERMAXSETTING3 { get; set; }
|
||||
/// <summary>
|
||||
/// 铝焊1功率(%)设定值最小值
|
||||
/// </summary>
|
||||
public float CSBYHALWELDINGPOWERMINSETTING1 { get; set; }
|
||||
/// <summary>
|
||||
/// 铝焊2功率(%)设定值最小值
|
||||
/// </summary>
|
||||
public float CSBYHALWELDINGPOWERMINSETTING2 { get; set; }
|
||||
/// <summary>
|
||||
/// 铝焊3功率(%)设定值最小值
|
||||
/// </summary>
|
||||
public float CSBYHALWELDINGPOWERMINSETTING3 { get; set; }
|
||||
/// <summary>
|
||||
/// 铝焊1能量(%)设定值最大值
|
||||
/// </summary>
|
||||
public float CSBYHALWELDINGENERGYMAXSETTING1 { get; set; }
|
||||
/// <summary>
|
||||
/// 铝焊2能量(%)设定值最大值
|
||||
/// </summary>
|
||||
public float CSBYHALWELDINGENERGYMAXSETTING2 { get; set; }
|
||||
/// <summary>
|
||||
/// 铝焊3能量(%)设定值最大值
|
||||
/// </summary>
|
||||
public float CSBYHALWELDINGENERGYMAXSETTING3 { get; set; }
|
||||
/// <summary>
|
||||
/// 铝焊1能量(%)设定值最小值
|
||||
/// </summary>
|
||||
public float CSBYHALWELDINGENERGYMINSETTING1 { get; set; }
|
||||
/// <summary>
|
||||
/// 铝焊2能量(%)设定值最小值
|
||||
/// </summary>
|
||||
public float CSBYHALWELDINGENERGYMINSETTING2 { get; set; }
|
||||
/// <summary>
|
||||
/// 铝焊3能量(%)设定值最小值
|
||||
/// </summary>
|
||||
public float CSBYHALWELDINGENERGYMINSETTING3 { get; set; }
|
||||
/// <summary>
|
||||
/// 铝焊1振幅(%)设定值最大值
|
||||
/// </summary>
|
||||
public float CSBYHALWELDINGAMPLITUDEMAXSETTING1 { get; set; }
|
||||
/// <summary>
|
||||
/// 铝焊2振幅(%)设定值最大值
|
||||
/// </summary>
|
||||
public float CSBYHALWELDINGAMPLITUDEMAXSETTING2 { get; set; }
|
||||
/// <summary>
|
||||
/// 铝焊3振幅(%)设定值最大值
|
||||
/// </summary>
|
||||
public float CSBYHALWELDINGAMPLITUDEMAXSETTING3 { get; set; }
|
||||
/// <summary>
|
||||
/// 铝焊1振幅(%)设定值最小值
|
||||
/// </summary>
|
||||
public float CSBYHALWELDINGAMPLITUDEMINSETTING1 { get; set; }
|
||||
/// <summary>
|
||||
/// 铝焊2振幅(%)设定值最小值
|
||||
/// </summary>
|
||||
public float CSBYHALWELDINGAMPLITUDEMINSETTING2 { get; set; }
|
||||
/// <summary>
|
||||
/// 铝焊3振幅(%)设定值最小值
|
||||
/// </summary>
|
||||
public float CSBYHALWELDINGAMPLITUDEMINSETTING3 { get; set; }
|
||||
/// <summary>
|
||||
/// 芯包铝焊焊接压力(Psi)实际值1
|
||||
/// </summary>
|
||||
public float CSBYHALPRESSUREA1 { get; set; }
|
||||
/// <summary>
|
||||
/// 芯包铝焊接功率(W)实际值1
|
||||
/// </summary>
|
||||
public float CSBYHALPOWERA1 { get; set; }
|
||||
/// <summary>
|
||||
/// 芯包铝焊焊接能量(J)实际值1
|
||||
/// </summary>
|
||||
public float CSBYHALENERGYA1 { get; set; }
|
||||
/// <summary>
|
||||
/// 芯包铝焊焊接振幅(%)实际值1
|
||||
/// </summary>
|
||||
public float CSBYHALAMPLITUDEA1 { get; set; }
|
||||
/// <summary>
|
||||
/// 芯包铝焊焊接时间(ms)实际值1
|
||||
/// </summary>
|
||||
public float CSBYHALTIMEA1 { get; set; }
|
||||
/// <summary>
|
||||
/// 芯包铝焊焊接压力(Psi)实际值2
|
||||
/// </summary>
|
||||
public float CSBYHALPRESSUREA2 { get; set; }
|
||||
/// <summary>
|
||||
/// 芯包铝焊接功率(W)实际值2
|
||||
/// </summary>
|
||||
public float CSBYHALPOWERA2 { get; set; }
|
||||
/// <summary>
|
||||
/// 芯包铝焊焊接能量(J)实际值2
|
||||
/// </summary>
|
||||
public float CSBYHALENERGYA2 { get; set; }
|
||||
/// <summary>
|
||||
/// 芯包铝焊焊接振幅(%)实际值2
|
||||
/// </summary>
|
||||
public float CSBYHALAMPLITUDEA2 { get; set; }
|
||||
/// <summary>
|
||||
/// 芯包铝焊焊接时间(ms)实际值2
|
||||
/// </summary>
|
||||
public float CSBYHALTIMEA2 { get; set; }
|
||||
/// <summary>
|
||||
/// 芯包铝焊焊接压力(Psi)实际值3
|
||||
/// </summary>
|
||||
public float CSBYHALPRESSUREA3 { get; set; }
|
||||
/// <summary>
|
||||
/// 芯包铝焊接功率(W)实际值3
|
||||
/// </summary>
|
||||
public float CSBYHALPOWERA3 { get; set; }
|
||||
/// <summary>
|
||||
/// 芯包铝焊焊接能量(J)实际值3
|
||||
/// </summary>
|
||||
public float CSBYHALENERGYA3 { get; set; }
|
||||
/// <summary>
|
||||
/// 芯包铝焊焊接振幅(%)实际值3
|
||||
/// </summary>
|
||||
public float CSBYHALAMPLITUDEA3 { get; set; }
|
||||
/// <summary>
|
||||
/// 芯包铝焊焊接时间(ms)实际值3
|
||||
/// </summary>
|
||||
public float CSBYHALTIMEA3 { get; set; }
|
||||
/// <summary>
|
||||
/// 电芯铜极极耳长度(mm)
|
||||
/// </summary>
|
||||
public float CSBYHCUTABLENGTHA { get; set; }
|
||||
/// <summary>
|
||||
/// 电芯铜极极耳宽度(mm)
|
||||
/// </summary>
|
||||
public float CSBYHCUTABWIDTHA { get; set; }
|
||||
/// <summary>
|
||||
/// 电芯铝极极耳长度(mm)
|
||||
/// </summary>
|
||||
public float CSBYHALTABLENGTHA { get; set; }
|
||||
/// <summary>
|
||||
/// 电芯铝极极耳宽度(mm)
|
||||
/// </summary>
|
||||
public float CSBYHALTABWIDTHA { get; set; }
|
||||
/// <summary>
|
||||
/// 电芯裁切粘连结果(mm)
|
||||
/// </summary>
|
||||
public float CSBYHCUTADHESIONRESULTA { get; set; }
|
||||
/// <summary>
|
||||
/// 电芯裁切毛刺结果(mm)
|
||||
/// </summary>
|
||||
public float CSBYHCUTBURRRESULTA { get; set; }
|
||||
/// <summary>
|
||||
/// 芯包铜顶部到焊印间距1
|
||||
/// </summary>
|
||||
public float CSBYHTOPTOSOLDERDISTANCEA { get; set; }
|
||||
/// <summary>
|
||||
/// 芯包铜顶部到焊印间距2
|
||||
/// </summary>
|
||||
public float CSBYHTOPTOSOLDERDISTANCEA2 { get; set; }
|
||||
/// <summary>
|
||||
/// 芯包铝顶部到焊印间距1
|
||||
/// </summary>
|
||||
public float AluminumToWeld1 { get; set; }
|
||||
/// <summary>
|
||||
/// 芯包铝顶部到焊印间距2
|
||||
/// </summary>
|
||||
public float AluminumToWeld2 { get; set; }
|
||||
/// <summary>
|
||||
/// 芯包焊印边缘到极耳边缘间距(mm)
|
||||
/// </summary>
|
||||
public float CSBYHSOLDERTOEARDISTANCEA { get; set; }
|
||||
/// <summary>
|
||||
/// 芯包正面极耳撕裂裂纹检测结果(mm)
|
||||
/// </summary>
|
||||
public float CSBYHFRONTEARCRACKLERESULTA { get; set; }
|
||||
/// <summary>
|
||||
/// 芯包背面极耳撕裂裂纹检测结果(mm)
|
||||
/// </summary>
|
||||
public float CSBYHBACKEARCRACKLERESULTA { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 物流线托盘码
|
||||
/// </summary>
|
||||
//public short pan { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 标志
|
||||
/// </summary>
|
||||
public int Flag { get; set; }
|
||||
/// <summary>
|
||||
/// 备注
|
||||
/// </summary>
|
||||
public string Remark { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,144 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
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; }
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,207 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
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; }
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,35 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
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; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace JinYuan.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// 不良統計
|
||||
/// </summary>
|
||||
public class ChartDataType
|
||||
{
|
||||
/// <summary>
|
||||
/// 數據類型
|
||||
/// </summary>
|
||||
public string DataType { get; set; }
|
||||
/// <summary>
|
||||
/// 數量
|
||||
/// </summary>
|
||||
public int DataCount { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,40 @@
|
||||
using SqlSugar;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
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; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,69 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
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; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,85 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
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; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,52 @@
|
||||
using SqlSugar;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
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; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,116 @@
|
||||
<?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="AlarmCountEntry.cs" />
|
||||
<Compile Include="AlarmForm.cs" />
|
||||
<Compile Include="Alarm\AlarmStatus.cs" />
|
||||
<Compile Include="Alarm\AlarmData.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>
|
||||
@@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup>
|
||||
<ProjectView>ProjectFiles</ProjectView>
|
||||
</PropertyGroup>
|
||||
</Project>
|
||||
@@ -0,0 +1,36 @@
|
||||
using System.Reflection;
|
||||
using System.Runtime.CompilerServices;
|
||||
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")]
|
||||
@@ -0,0 +1,26 @@
|
||||
using SqlSugar;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
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; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,321 @@
|
||||
using Newtonsoft.Json;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics;
|
||||
using System.Linq;
|
||||
using System.Security.Policy;
|
||||
using System.Text;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
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; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace JinYuan.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// 所有窗体枚举,小于临界窗体的为固定窗体,不执行关闭
|
||||
/// </summary>
|
||||
public enum FormNames
|
||||
{
|
||||
集中监控,
|
||||
数据监控,
|
||||
日志报警,
|
||||
临界窗体,
|
||||
数据分析,
|
||||
数据追溯,
|
||||
参数设置,
|
||||
系统设置,
|
||||
用户管理
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,51 @@
|
||||
using MiniExcelLibs.Attributes;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
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; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
using SqlSugar;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
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; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,47 @@
|
||||
using SqlSugar;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
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;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
using SqlSugar;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
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,31 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
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>
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
using SqlSugar;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
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; }
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,69 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
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; }
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,44 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
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; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,109 @@
|
||||
using MiniExcelLibs.Attributes;
|
||||
using Newtonsoft.Json;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
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; }
|
||||
}
|
||||
}
|
||||
@@ -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>
|
||||
@@ -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>
|
||||
Reference in New Issue
Block a user