增加修改删除页面,增加COM口的配置等

This commit is contained in:
bnala committed 2025-02-23 20:06:16 +08:00
1 parent f3110791a7
commit e96e2d3651
89 files changed
+10692 -727

No files matched your search

@@ -0,0 +1,28 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using SQLite;
namespace WindowsFormsApp1.mod
{
[Table("angleaddress")]
public class t_angleaddress
{
[PrimaryKey, AutoIncrement]
public int id { get; set; }
public int plcid { get; set; }
public string code { get; set; }
public string type { get; set; }
public string dbaddress { get; set; }
public string addresstype { get; set; }
public int addresstypelegth { get; set; }
public int addressoffset { get; set; }
public string remark { get; set; }
public string value { get; set; }
}
}
+53 -1
View File
@@ -10,14 +10,66 @@ namespace WindowsFormsApp1.mod
[Table("flow")]
public class t_flow
{
/// <summary>
/// 唯一id
/// </summary>
[PrimaryKey, AutoIncrement]
public int id { get; set; }
/// <summary>
/// 名称
/// </summary>
public string flowname { get; set; }
/// <summary>
/// 流程id
/// </summary>
public int flowid { get; set; }
/// <summary>
/// 步骤
/// </summary>
public int setp { get; set; }
/// <summary>
/// 期望的接口id
/// </summary>
public int hopeinterfaceid { get; set; }
/// <summary>
/// 错误的接口id
/// </summary>
public int errinterfaceid { get; set; }
/// <summary>
/// 期望的状态
/// </summary>
public int hopestatus { get; set; }
/// <summary>
/// MES返回错误的状态
/// </summary>
public int errstatus { get; set; }
/// <summary>
/// 是否需要扫码
/// </summary>
public bool scan { get; set; }
/// <summary>
/// 是否需要文件上传
/// </summary>
public bool fileupload { get; set; }
/// <summary>
/// 螺丝枪扭力数据
/// </summary>
public bool finaltorquevalue { get; set; }
/// <summary>
/// 螺丝枪角度数据
/// </summary>
public bool finalanglevaluue { get; set; }
/// <summary>
/// 扭力曲线
/// </summary>
public bool finaltorquecurve { get; set; }
/// <summary>
/// 压力曲线
/// </summary>
public bool finalpressurecurve { get; set; }
/// <summary>
/// 气密参数
/// </summary>
public bool airtight { get; set; }
}
}
@@ -0,0 +1,24 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Newtonsoft.Json.Linq;
using SQLite;
namespace WindowsFormsApp1.mod
{
[Table("keyvalue")]
public class t_keyvalue
{
[PrimaryKey, AutoIncrement]
public int id { get; set; }
public string key { get; set; }
public string value { get; set; }
public string remark { get; set; }
}
}
-4
View File
@@ -16,10 +16,6 @@ namespace WindowsFormsApp1.mod
public string linecode { get; set; }
public string linetype { get; set; }
public string linemode { get; set; }
public int plcid1 { get; set; }
public int plcid2 { get; set; }
public int flowid { get; set; }
}
}
@@ -0,0 +1,18 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using SQLite;
namespace WindowsFormsApp1.mod
{
[Table("lineplc")]
public class t_lineplc
{
[PrimaryKey, AutoIncrement]
public int id { get; set; }
public int lineid { get; set; }
public int plcid { get; set; }
}
}
+9 -2
View File
@@ -13,11 +13,18 @@ namespace WindowsFormsApp1.mod
{
[PrimaryKey, AutoIncrement]
public int id { get; set; }
public string plcname { get; set; }
public string plcip { get; set; }
public int timeout { get; set; }
//[Ignore]
//public DateTime dateTime { get; set; }
/// <summary>
/// 需要上传状态
/// </summary>
public bool statues { get; set; }
/// <summary>
/// 需要上传报警
/// </summary>
public bool alarm { get; set; }
[Ignore]
public SiemensHelp plchelp { get; set; }
}
@@ -0,0 +1,28 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using SQLite;
namespace WindowsFormsApp1.mod
{
[Table("torqueaddress")]
public class t_torqueaddress
{
[PrimaryKey, AutoIncrement]
public int id { get; set; }
public int plcid { get; set; }
public string code { get; set; }
public string type { get; set; }
public string dbaddress { get; set; }
public string addresstype { get; set; }
public int addresstypelegth { get; set; }
public int addressoffset { get; set; }
public string remark { get; set; }
public string value { get; set; }
}
}