增加修改删除页面,增加COM口的配置等
This commit is contained in:
1 parent
f3110791a7
commit
e96e2d3651
89 files changed
+10692
-727
No files matched your search
+57
-37
@@ -1,6 +1,6 @@
|
||||
namespace WindowsFormsApp1.form
|
||||
{
|
||||
partial class PLCADDRESS_Manage
|
||||
partial class PlcAddress_Manage
|
||||
{
|
||||
/// <summary>
|
||||
/// Required designer variable.
|
||||
@@ -32,14 +32,15 @@
|
||||
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.label1 = new System.Windows.Forms.Label();
|
||||
this.comboBox1 = new System.Windows.Forms.ComboBox();
|
||||
this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel();
|
||||
this.button1 = new System.Windows.Forms.Button();
|
||||
this.id = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.plcid = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.plcname = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.code = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.type = new System.Windows.Forms.DataGridViewComboBoxColumn();
|
||||
this.dbaddress = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.addressoffset = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
@@ -54,7 +55,7 @@
|
||||
//
|
||||
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(1642, 695);
|
||||
this.关闭.Location = new System.Drawing.Point(1642, 696);
|
||||
this.关闭.Margin = new System.Windows.Forms.Padding(6, 5, 6, 5);
|
||||
this.关闭.Name = "关闭";
|
||||
this.关闭.Size = new System.Drawing.Size(169, 72);
|
||||
@@ -63,24 +64,11 @@
|
||||
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(1642, 532);
|
||||
this.保存.Margin = new System.Windows.Forms.Padding(6, 5, 6, 5);
|
||||
this.保存.Name = "保存";
|
||||
this.保存.Size = new System.Drawing.Size(169, 72);
|
||||
this.保存.TabIndex = 10;
|
||||
this.保存.Text = "保存";
|
||||
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(1642, 45);
|
||||
this.查询.Location = new System.Drawing.Point(1642, 25);
|
||||
this.查询.Margin = new System.Windows.Forms.Padding(6, 5, 6, 5);
|
||||
this.查询.Name = "查询";
|
||||
this.查询.Size = new System.Drawing.Size(169, 72);
|
||||
@@ -109,7 +97,8 @@
|
||||
this.dataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
|
||||
this.dataGridView1.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
|
||||
this.id,
|
||||
this.plcid,
|
||||
this.plcname,
|
||||
this.code,
|
||||
this.type,
|
||||
this.dbaddress,
|
||||
this.addressoffset,
|
||||
@@ -125,13 +114,14 @@
|
||||
dataGridViewCellStyle3.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
|
||||
dataGridViewCellStyle3.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
|
||||
this.dataGridView1.DefaultCellStyle = dataGridViewCellStyle3;
|
||||
this.dataGridView1.Location = new System.Drawing.Point(6, 167);
|
||||
this.dataGridView1.Location = new System.Drawing.Point(6, 127);
|
||||
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, 3);
|
||||
this.dataGridView1.RowTemplate.Height = 23;
|
||||
this.dataGridView1.Size = new System.Drawing.Size(1624, 642);
|
||||
this.dataGridView1.Size = new System.Drawing.Size(1624, 682);
|
||||
this.dataGridView1.TabIndex = 8;
|
||||
//
|
||||
// label1
|
||||
@@ -139,7 +129,7 @@
|
||||
this.label1.Anchor = System.Windows.Forms.AnchorStyles.Left;
|
||||
this.label1.AutoSize = true;
|
||||
this.label1.Font = new System.Drawing.Font("宋体", 14.14286F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.label1.Location = new System.Drawing.Point(4, 47);
|
||||
this.label1.Location = new System.Drawing.Point(4, 27);
|
||||
this.label1.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||
this.label1.Name = "label1";
|
||||
this.label1.Size = new System.Drawing.Size(253, 68);
|
||||
@@ -149,9 +139,10 @@
|
||||
// comboBox1
|
||||
//
|
||||
this.comboBox1.Anchor = System.Windows.Forms.AnchorStyles.Left;
|
||||
this.comboBox1.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
|
||||
this.comboBox1.Font = new System.Drawing.Font("宋体", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.comboBox1.FormattingEnabled = true;
|
||||
this.comboBox1.Location = new System.Drawing.Point(278, 60);
|
||||
this.comboBox1.Location = new System.Drawing.Point(278, 40);
|
||||
this.comboBox1.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.comboBox1.Name = "comboBox1";
|
||||
this.comboBox1.Size = new System.Drawing.Size(409, 41);
|
||||
@@ -163,24 +154,37 @@
|
||||
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 15.07911F));
|
||||
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 74.9177F));
|
||||
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 10.00319F));
|
||||
this.tableLayoutPanel1.Controls.Add(this.button1, 2, 2);
|
||||
this.tableLayoutPanel1.Controls.Add(this.comboBox1, 1, 0);
|
||||
this.tableLayoutPanel1.Controls.Add(this.dataGridView1, 0, 1);
|
||||
this.tableLayoutPanel1.Controls.Add(this.关闭, 2, 3);
|
||||
this.tableLayoutPanel1.Controls.Add(this.label1, 0, 0);
|
||||
this.tableLayoutPanel1.Controls.Add(this.保存, 2, 2);
|
||||
this.tableLayoutPanel1.Controls.Add(this.查询, 2, 0);
|
||||
this.tableLayoutPanel1.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.tableLayoutPanel1.Location = new System.Drawing.Point(0, 0);
|
||||
this.tableLayoutPanel1.Margin = new System.Windows.Forms.Padding(6, 5, 6, 5);
|
||||
this.tableLayoutPanel1.Name = "tableLayoutPanel1";
|
||||
this.tableLayoutPanel1.RowCount = 4;
|
||||
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 20F));
|
||||
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 40F));
|
||||
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 15F));
|
||||
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 45F));
|
||||
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 20F));
|
||||
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 20F));
|
||||
this.tableLayoutPanel1.Size = new System.Drawing.Size(1818, 814);
|
||||
this.tableLayoutPanel1.TabIndex = 14;
|
||||
//
|
||||
// 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(1650, 541);
|
||||
this.button1.Margin = new System.Windows.Forms.Padding(6, 5, 6, 5);
|
||||
this.button1.Name = "button1";
|
||||
this.button1.Size = new System.Drawing.Size(153, 56);
|
||||
this.button1.TabIndex = 15;
|
||||
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;
|
||||
@@ -190,14 +194,23 @@
|
||||
this.id.Name = "id";
|
||||
this.id.ReadOnly = true;
|
||||
//
|
||||
// plcid
|
||||
// plcname
|
||||
//
|
||||
this.plcid.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
|
||||
this.plcid.DataPropertyName = "plcid";
|
||||
this.plcid.HeaderText = "所属PLC";
|
||||
this.plcid.MinimumWidth = 9;
|
||||
this.plcid.Name = "plcid";
|
||||
this.plcid.ReadOnly = true;
|
||||
this.plcname.DataPropertyName = "plcname";
|
||||
this.plcname.HeaderText = "PLC名称";
|
||||
this.plcname.MinimumWidth = 9;
|
||||
this.plcname.Name = "plcname";
|
||||
this.plcname.ReadOnly = true;
|
||||
this.plcname.Width = 175;
|
||||
//
|
||||
// code
|
||||
//
|
||||
this.code.DataPropertyName = "code";
|
||||
this.code.HeaderText = "数据名称";
|
||||
this.code.MinimumWidth = 9;
|
||||
this.code.Name = "code";
|
||||
this.code.ReadOnly = true;
|
||||
this.code.Width = 175;
|
||||
//
|
||||
// type
|
||||
//
|
||||
@@ -206,6 +219,7 @@
|
||||
this.type.HeaderText = "读写类型";
|
||||
this.type.MinimumWidth = 9;
|
||||
this.type.Name = "type";
|
||||
this.type.ReadOnly = true;
|
||||
this.type.Resizable = System.Windows.Forms.DataGridViewTriState.True;
|
||||
this.type.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
|
||||
//
|
||||
@@ -216,6 +230,7 @@
|
||||
this.dbaddress.HeaderText = "DB块地址";
|
||||
this.dbaddress.MinimumWidth = 9;
|
||||
this.dbaddress.Name = "dbaddress";
|
||||
this.dbaddress.ReadOnly = true;
|
||||
//
|
||||
// addressoffset
|
||||
//
|
||||
@@ -224,6 +239,7 @@
|
||||
this.addressoffset.HeaderText = "DB地址";
|
||||
this.addressoffset.MinimumWidth = 9;
|
||||
this.addressoffset.Name = "addressoffset";
|
||||
this.addressoffset.ReadOnly = true;
|
||||
//
|
||||
// addresstype
|
||||
//
|
||||
@@ -232,6 +248,7 @@
|
||||
this.addresstype.HeaderText = "数据类型";
|
||||
this.addresstype.MinimumWidth = 9;
|
||||
this.addresstype.Name = "addresstype";
|
||||
this.addresstype.ReadOnly = true;
|
||||
this.addresstype.Resizable = System.Windows.Forms.DataGridViewTriState.True;
|
||||
this.addresstype.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
|
||||
//
|
||||
@@ -242,6 +259,7 @@
|
||||
this.addresstypelegth.HeaderText = "字节长度";
|
||||
this.addresstypelegth.MinimumWidth = 9;
|
||||
this.addresstypelegth.Name = "addresstypelegth";
|
||||
this.addresstypelegth.ReadOnly = true;
|
||||
//
|
||||
// remark
|
||||
//
|
||||
@@ -252,7 +270,7 @@
|
||||
this.remark.Name = "remark";
|
||||
this.remark.ReadOnly = true;
|
||||
//
|
||||
// PLCADDRESS_Manage
|
||||
// PlcAddress_Manage
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(11F, 21F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
@@ -260,9 +278,10 @@
|
||||
this.Controls.Add(this.tableLayoutPanel1);
|
||||
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
|
||||
this.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.Name = "PLCADDRESS_Manage";
|
||||
this.Name = "PlcAddress_Manage";
|
||||
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
|
||||
this.Text = "PLCADDRESS_Manage";
|
||||
this.WindowState = System.Windows.Forms.FormWindowState.Maximized;
|
||||
this.Load += new System.EventHandler(this.PLCADDRESS_Manage_Load);
|
||||
((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).EndInit();
|
||||
this.tableLayoutPanel1.ResumeLayout(false);
|
||||
@@ -274,14 +293,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.Label label1;
|
||||
private System.Windows.Forms.ComboBox comboBox1;
|
||||
private System.Windows.Forms.TableLayoutPanel tableLayoutPanel1;
|
||||
private System.Windows.Forms.Button button1;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn id;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn plcid;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn plcname;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn code;
|
||||
private System.Windows.Forms.DataGridViewComboBoxColumn type;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn dbaddress;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn addressoffset;
|
||||
|
||||
Reference in new issue
Block a user