首次提交:添加src文件夹代码

This commit is contained in:
2026-02-27 14:02:43 +08:00
commit d330cfbca7
4184 changed files with 5546478 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
using System;
namespace Cowain.Bake.Model.Models
{
public class BtnInfoModel
{
public int Id { get; set; }
public int StationId { get; set; }
public string Name { get; set; }
public string BatteryCode { get; set; }
public DateTime StartTime { get; set; }
public string Desc { get; set; }
}
}

View File

@@ -0,0 +1,20 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Cowain.Bake.Model.Models
{
public class CCommandType
{
public string Service { get; set; }
public string Func { get; set; }
public string UrlCmd { get; set; }
public CCommandType()
{
Service = "UploadMesStation";
Func = "UploadCommon";
}
}
}

View File

@@ -0,0 +1,30 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Cowain.Bake.Model.Models
{
public class CavityHeaderModel
{
public int Id { get; set; }
public int BatteryQty { get; set; }
public int BakingCount { get; set; }
public int TotalBakingCount { get; set; }
public string JobNum { get; set; }
public int VirtualId { get; set; }
public int BakingPosition { get; set; }
public bool Lock { get; set; }
public string Enable { get; set; }
public string IsWater { get; set; }
public int PalletId { get; set; }
public string PalletCode { get; set; }
public Nullable<int> PalletStatus { get; set; }
public string WaterValue { get; set; }
public int Layer { get; set; }
public bool? LastFlag { get; set; }
public string Remark { get; set; }
public sbyte LayerType { get; set; }
}
}

View File

@@ -0,0 +1,27 @@
using Cowain.Bake.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Cowain.Bake.Model.Models
{
public class CavityInfoModel : TStation
{
public string CavityName { get; set; }
public bool IsLoad { get; set; }
public int PalletId { get; set; }
public bool Lock { get; set; }
public sbyte Layer { get; set; }
public sbyte Column { get; set; }
public int StationId { get; set; }
public sbyte StationNumber { get; set; }
public sbyte StationX { get; set; }
public sbyte StationY { get; set; }
public sbyte Status { get; set; }
public bool IsOpen { get; set; }
public bool CavityEnable { get; set; }
public string Remark { get; set; }
}
}

View File

@@ -0,0 +1,35 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Cowain.Bake.Model.Models
{
public class ExCavityInfoModel : CavityInfoModel
{
public int? VirtualId { get; set; }
public string PalletCode { get; set; }
public int? PalletStatus { get; set; }
public Nullable<int> BakingPosition { get; set; }
public Nullable<int> LoadingPosition { get; set; }
public Nullable<int> UnLoadingPosition { get; set; }
public int? BatteryQty { get; set; }
public int? BakingCount { get; set; }
public Nullable<System.DateTime> LoadingBegingTime { get; set; }
public Nullable<System.DateTime> LoadingOverTime { get; set; }
public Nullable<System.DateTime> InStoveTime { get; set; }
public Nullable<System.DateTime> BakingBeginTime { get; set; }
public Nullable<System.DateTime> BakingOverTime { get; set; }
public Nullable<System.DateTime> OutStoveTime { get; set; }
public Nullable<System.DateTime> UnLoadingBegingTime { get; set; }
public Nullable<System.DateTime> UnLoadingOverTime { get; set; }
public string JobNum { get; set; }
public Nullable<System.DateTime> ScanTime { get; set; }
public Nullable<System.DateTime> CreateTime { get; set; }
public Nullable<bool> LastFlag { get; set; }
public string WaterValue { get; set; }
public Nullable<float> UnLoadingCoolTemp { get; set; }
public Nullable<int> TotalBakingCount { get; set; }
}
}

View File

@@ -0,0 +1,18 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Media;
namespace Cowain.Bake.Model.Models
{
public class LegendEntry
{
public string Status { get; set; }
public double Left { get; set; }
public double Top { get; set; }
public Color Color { get; set; }
public string Description { get; set; }
}
}

View File

@@ -0,0 +1,33 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Cowain.Bake.Model.Models
{
// 自定义事件(发布订阅此事件时,会传递 StoveDataModel 类型的数据)
public class StoveDataEvent : Prism.Events.PubSubEvent<Dictionary<int, StoveDataModel>> { }
public class StoveDataModel
{
public float[] Temps { get; set; } //温度
public float Vacuum { get; set; } //真空值
public UInt16 WorkTime { get; set; } //工作时长
public UInt16 TotalWorkTime { get; set; } //总工作时长
}
public class AlarmAddEvent : Prism.Events.PubSubEvent<TAlarm>
{
}
public class AlarmCancelEvent : Prism.Events.PubSubEvent<TAlarm>
{
}
public class AlarmStaionCancelEvent : Prism.Events.PubSubEvent<int>
{
}
}

View File

@@ -0,0 +1,53 @@
using System;
using Prism.Mvvm;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Cowain.Bake.Model.Models
{
public class Variable : BindableBase
{
public int Id { get; set; }//id
public int PlcId { get; set; }//PLCId
public int Index { get; set; }//索引
public int Number { get; set; } //层号或编号
private bool quality;//属性
public bool Quality
{
get { return quality; }
set { SetProperty(ref quality, value); }
}
public int OperType { get; set; }//操作类型
public bool TrigEnable { get; set; } = false;//目标是否可用
public string TrigJson { get; set; }//目标json
public string ParamName { get; set; }//参数名称
public int StationId { get; set; }//机器Id
public string Json { get; set; }//json
public string VarType { get; set; }//类型
public string VarDesc { get; set; }//描述
public string VarName { get; set; }//名称
public int Offset { get; set; }//开关
public string AddressType { get; set; }//地址类型
public string Address { get; set; }//地址
public int Bit { get; set; }//字节
public int ArrayLength { get; set; } = 1;//数字长度
public int TagType { get; set; }//标志类型
/// <summary>
/// 跟数据类型相关,不同协议,不同数据类型读长度不同
/// </summary>
public int ReadLength { get; set; } = 1;//读取长度
private object _curValue;
public object CurValue { get => _curValue; set => SetProperty(ref _curValue, value); } //当前值,
public DateTime UpLoadTime { get; set; } //采集时间,用于知道间隔时间,来判断是否存入
public object OldValue { get; set; }
private object _value;
public object Value { get => _value; set => SetProperty(ref _value, value); } //界面上显示的值
}
}

View File

@@ -0,0 +1,21 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Cowain.Bake.Model.Models
{
public class WaterModel
{
public int Id { get; set; } = 1;
public string BatteryCode { get; set; }
//正极
public string AnodeWaterValue { get; set; } = "0";
//隔膜
public string SeptumWaterValue { get; set; } = "0";
//负极
public string CathodeWaterValue { get; set; } = "0";
}
}