增加修改删除页面,增加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

+65 -21
View File
@@ -1,6 +1,6 @@
namespace WindowsFormsApp1.form
{
partial class PLC_Manage
partial class Plc_Manage
{
/// <summary>
/// Required designer variable.
@@ -32,13 +32,16 @@
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle();
this.关闭 = new System.Windows.Forms.Button();
this.保存 = new System.Windows.Forms.Button();
this.查询 = new System.Windows.Forms.Button();
this.dataGridView1 = new System.Windows.Forms.DataGridView();
this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel();
this.button1 = new System.Windows.Forms.Button();
this.id = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.plcname = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.plcip = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.timeout = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.statues = new System.Windows.Forms.DataGridViewCheckBoxColumn();
this.alarm = new System.Windows.Forms.DataGridViewCheckBoxColumn();
((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit();
this.tableLayoutPanel1.SuspendLayout();
this.SuspendLayout();
@@ -56,19 +59,6 @@
this.关闭.UseVisualStyleBackColor = true;
this.关闭.Click += new System.EventHandler(this.关闭_Click);
//
// 保存
//
this.保存.Anchor = System.Windows.Forms.AnchorStyles.None;
this.保存.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.保存.Location = new System.Drawing.Point(1380, 517);
this.保存.Margin = new System.Windows.Forms.Padding(6, 5, 6, 5);
this.保存.Name = "保存";
this.保存.Size = new System.Drawing.Size(141, 72);
this.保存.TabIndex = 6;
this.保存.Text = "保存";
this.保存.UseVisualStyleBackColor = true;
this.保存.Click += new System.EventHandler(this.保存_Click);
//
// 查询
//
this.查询.Anchor = System.Windows.Forms.AnchorStyles.None;
@@ -102,8 +92,11 @@
this.dataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
this.dataGridView1.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.id,
this.plcname,
this.plcip,
this.timeout});
this.timeout,
this.statues,
this.alarm});
dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
dataGridViewCellStyle3.BackColor = System.Drawing.SystemColors.Window;
dataGridViewCellStyle3.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
@@ -115,6 +108,7 @@
this.dataGridView1.Location = new System.Drawing.Point(6, 5);
this.dataGridView1.Margin = new System.Windows.Forms.Padding(6, 5, 6, 5);
this.dataGridView1.Name = "dataGridView1";
this.dataGridView1.ReadOnly = true;
this.dataGridView1.RowHeadersWidth = 72;
this.tableLayoutPanel1.SetRowSpan(this.dataGridView1, 4);
this.dataGridView1.RowTemplate.Height = 23;
@@ -126,9 +120,9 @@
this.tableLayoutPanel1.ColumnCount = 2;
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 90F));
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 10F));
this.tableLayoutPanel1.Controls.Add(this.button1, 1, 2);
this.tableLayoutPanel1.Controls.Add(this.关闭, 1, 3);
this.tableLayoutPanel1.Controls.Add(this.dataGridView1, 0, 0);
this.tableLayoutPanel1.Controls.Add(this.保存, 1, 2);
this.tableLayoutPanel1.Controls.Add(this.查询, 1, 0);
this.tableLayoutPanel1.Dock = System.Windows.Forms.DockStyle.Fill;
this.tableLayoutPanel1.Location = new System.Drawing.Point(0, 0);
@@ -142,6 +136,19 @@
this.tableLayoutPanel1.Size = new System.Drawing.Size(1527, 790);
this.tableLayoutPanel1.TabIndex = 8;
//
// button1
//
this.button1.Anchor = System.Windows.Forms.AnchorStyles.None;
this.button1.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.button1.Location = new System.Drawing.Point(1380, 525);
this.button1.Margin = new System.Windows.Forms.Padding(6, 5, 6, 5);
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(141, 56);
this.button1.TabIndex = 9;
this.button1.Text = "新增";
this.button1.UseVisualStyleBackColor = true;
this.button1.Click += new System.EventHandler(this.button1_Click);
//
// id
//
this.id.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
@@ -151,6 +158,15 @@
this.id.Name = "id";
this.id.ReadOnly = true;
//
// plcname
//
this.plcname.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
this.plcname.DataPropertyName = "plcname";
this.plcname.HeaderText = "PLC名称";
this.plcname.MinimumWidth = 9;
this.plcname.Name = "plcname";
this.plcname.ReadOnly = true;
//
// plcip
//
this.plcip.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
@@ -158,6 +174,7 @@
this.plcip.HeaderText = "IP地址";
this.plcip.MinimumWidth = 9;
this.plcip.Name = "plcip";
this.plcip.ReadOnly = true;
//
// timeout
//
@@ -166,20 +183,44 @@
this.timeout.HeaderText = "超时时间";
this.timeout.MinimumWidth = 9;
this.timeout.Name = "timeout";
this.timeout.ReadOnly = true;
this.timeout.Resizable = System.Windows.Forms.DataGridViewTriState.True;
this.timeout.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
//
// PLC_Manage
// statues
//
this.statues.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
this.statues.DataPropertyName = "statues";
this.statues.HeaderText = "是否上传状态";
this.statues.MinimumWidth = 9;
this.statues.Name = "statues";
this.statues.ReadOnly = true;
this.statues.Resizable = System.Windows.Forms.DataGridViewTriState.True;
this.statues.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
//
// alarm
//
this.alarm.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
this.alarm.DataPropertyName = "alarm";
this.alarm.HeaderText = "是否上传报警";
this.alarm.MinimumWidth = 9;
this.alarm.Name = "alarm";
this.alarm.ReadOnly = true;
this.alarm.Resizable = System.Windows.Forms.DataGridViewTriState.True;
this.alarm.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
//
// Plc_Manage
//
this.AutoScaleDimensions = new System.Drawing.SizeF(11F, 21F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(1527, 790);
this.Controls.Add(this.tableLayoutPanel1);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
this.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
this.Name = "PLC_Manage";
this.Margin = new System.Windows.Forms.Padding(4);
this.Name = "Plc_Manage";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "PLC_Manage";
this.WindowState = System.Windows.Forms.FormWindowState.Maximized;
this.Load += new System.EventHandler(this.PLC_Manage_Load);
((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).EndInit();
this.tableLayoutPanel1.ResumeLayout(false);
@@ -190,12 +231,15 @@
#endregion
private System.Windows.Forms.Button 关闭;
private System.Windows.Forms.Button 保存;
private System.Windows.Forms.Button 查询;
private System.Windows.Forms.DataGridView dataGridView1;
private System.Windows.Forms.TableLayoutPanel tableLayoutPanel1;
private System.Windows.Forms.Button button1;
private System.Windows.Forms.DataGridViewTextBoxColumn id;
private System.Windows.Forms.DataGridViewTextBoxColumn plcname;
private System.Windows.Forms.DataGridViewTextBoxColumn plcip;
private System.Windows.Forms.DataGridViewTextBoxColumn timeout;
private System.Windows.Forms.DataGridViewCheckBoxColumn statues;
private System.Windows.Forms.DataGridViewCheckBoxColumn alarm;
}
}