增加COM设置及界面
This commit is contained in:
1 parent
16586d67aa
commit
f1e0412c01
16 files changed
+1513
-831
No files matched your search
+106
-100
@@ -35,6 +35,9 @@
|
||||
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.id = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.plcid = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.type = new System.Windows.Forms.DataGridViewComboBoxColumn();
|
||||
@@ -43,9 +46,6 @@
|
||||
this.addresstype = new System.Windows.Forms.DataGridViewComboBoxColumn();
|
||||
this.addresstypelegth = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.remark = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.label1 = new System.Windows.Forms.Label();
|
||||
this.comboBox1 = new System.Windows.Forms.ComboBox();
|
||||
this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel();
|
||||
((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit();
|
||||
this.tableLayoutPanel1.SuspendLayout();
|
||||
this.SuspendLayout();
|
||||
@@ -54,9 +54,10 @@
|
||||
//
|
||||
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(1743, 964);
|
||||
this.关闭.Location = new System.Drawing.Point(1642, 695);
|
||||
this.关闭.Margin = new System.Windows.Forms.Padding(6, 5, 6, 5);
|
||||
this.关闭.Name = "关闭";
|
||||
this.关闭.Size = new System.Drawing.Size(92, 41);
|
||||
this.关闭.Size = new System.Drawing.Size(169, 72);
|
||||
this.关闭.TabIndex = 11;
|
||||
this.关闭.Text = "关闭";
|
||||
this.关闭.UseVisualStyleBackColor = true;
|
||||
@@ -66,9 +67,10 @@
|
||||
//
|
||||
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(1743, 886);
|
||||
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(92, 41);
|
||||
this.保存.Size = new System.Drawing.Size(169, 72);
|
||||
this.保存.TabIndex = 10;
|
||||
this.保存.Text = "保存";
|
||||
this.保存.UseVisualStyleBackColor = true;
|
||||
@@ -78,9 +80,10 @@
|
||||
//
|
||||
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(1743, 5);
|
||||
this.查询.Location = new System.Drawing.Point(1642, 45);
|
||||
this.查询.Margin = new System.Windows.Forms.Padding(6, 5, 6, 5);
|
||||
this.查询.Name = "查询";
|
||||
this.查询.Size = new System.Drawing.Size(92, 41);
|
||||
this.查询.Size = new System.Drawing.Size(169, 72);
|
||||
this.查询.TabIndex = 9;
|
||||
this.查询.Text = "查询";
|
||||
this.查询.UseVisualStyleBackColor = true;
|
||||
@@ -122,93 +125,24 @@
|
||||
dataGridViewCellStyle3.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
|
||||
dataGridViewCellStyle3.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
|
||||
this.dataGridView1.DefaultCellStyle = dataGridViewCellStyle3;
|
||||
this.dataGridView1.Location = new System.Drawing.Point(3, 54);
|
||||
this.dataGridView1.Location = new System.Drawing.Point(6, 167);
|
||||
this.dataGridView1.Margin = new System.Windows.Forms.Padding(6, 5, 6, 5);
|
||||
this.dataGridView1.Name = "dataGridView1";
|
||||
this.dataGridView1.RowHeadersWidth = 72;
|
||||
this.tableLayoutPanel1.SetRowSpan(this.dataGridView1, 3);
|
||||
this.dataGridView1.RowTemplate.Height = 23;
|
||||
this.dataGridView1.Size = new System.Drawing.Size(1689, 960);
|
||||
this.dataGridView1.Size = new System.Drawing.Size(1624, 642);
|
||||
this.dataGridView1.TabIndex = 8;
|
||||
//
|
||||
// id
|
||||
//
|
||||
this.id.DataPropertyName = "id";
|
||||
this.id.HeaderText = "序号";
|
||||
this.id.MinimumWidth = 9;
|
||||
this.id.Name = "id";
|
||||
this.id.ReadOnly = true;
|
||||
this.id.Width = 175;
|
||||
//
|
||||
// plcid
|
||||
//
|
||||
this.plcid.DataPropertyName = "plcid";
|
||||
this.plcid.HeaderText = "所属PLC";
|
||||
this.plcid.MinimumWidth = 9;
|
||||
this.plcid.Name = "plcid";
|
||||
this.plcid.Width = 175;
|
||||
//
|
||||
// type
|
||||
//
|
||||
this.type.DataPropertyName = "type";
|
||||
this.type.HeaderText = "读写类型";
|
||||
this.type.MinimumWidth = 9;
|
||||
this.type.Name = "type";
|
||||
this.type.Resizable = System.Windows.Forms.DataGridViewTriState.True;
|
||||
this.type.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
|
||||
this.type.Width = 175;
|
||||
//
|
||||
// dbaddress
|
||||
//
|
||||
this.dbaddress.DataPropertyName = "dbaddress";
|
||||
this.dbaddress.HeaderText = "DB块地址";
|
||||
this.dbaddress.MinimumWidth = 9;
|
||||
this.dbaddress.Name = "dbaddress";
|
||||
this.dbaddress.Width = 175;
|
||||
//
|
||||
// addressoffset
|
||||
//
|
||||
this.addressoffset.DataPropertyName = "addressoffset";
|
||||
this.addressoffset.HeaderText = "DB地址";
|
||||
this.addressoffset.MinimumWidth = 9;
|
||||
this.addressoffset.Name = "addressoffset";
|
||||
this.addressoffset.Width = 175;
|
||||
//
|
||||
// addresstype
|
||||
//
|
||||
this.addresstype.DataPropertyName = "addresstype";
|
||||
this.addresstype.HeaderText = "数据类型";
|
||||
this.addresstype.MinimumWidth = 9;
|
||||
this.addresstype.Name = "addresstype";
|
||||
this.addresstype.Resizable = System.Windows.Forms.DataGridViewTriState.True;
|
||||
this.addresstype.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
|
||||
this.addresstype.Width = 175;
|
||||
//
|
||||
// addresstypelegth
|
||||
//
|
||||
this.addresstypelegth.DataPropertyName = "addresstypelegth";
|
||||
this.addresstypelegth.HeaderText = "字节长度";
|
||||
this.addresstypelegth.MinimumWidth = 9;
|
||||
this.addresstypelegth.Name = "addresstypelegth";
|
||||
this.addresstypelegth.Width = 175;
|
||||
//
|
||||
// remark
|
||||
//
|
||||
this.remark.DataPropertyName = "remark";
|
||||
this.remark.HeaderText = "注释";
|
||||
this.remark.MinimumWidth = 9;
|
||||
this.remark.Name = "remark";
|
||||
this.remark.ReadOnly = true;
|
||||
this.remark.Width = 175;
|
||||
//
|
||||
// label1
|
||||
//
|
||||
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(2, 16);
|
||||
this.label1.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
|
||||
this.label1.Location = new System.Drawing.Point(4, 47);
|
||||
this.label1.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||
this.label1.Name = "label1";
|
||||
this.label1.Size = new System.Drawing.Size(229, 19);
|
||||
this.label1.Size = new System.Drawing.Size(253, 68);
|
||||
this.label1.TabIndex = 12;
|
||||
this.label1.Text = "选择需要编辑的PLC编号:";
|
||||
//
|
||||
@@ -217,42 +151,114 @@
|
||||
this.comboBox1.Anchor = System.Windows.Forms.AnchorStyles.Left;
|
||||
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(286, 12);
|
||||
this.comboBox1.Margin = new System.Windows.Forms.Padding(2);
|
||||
this.comboBox1.Location = new System.Drawing.Point(278, 60);
|
||||
this.comboBox1.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.comboBox1.Name = "comboBox1";
|
||||
this.comboBox1.Size = new System.Drawing.Size(225, 27);
|
||||
this.comboBox1.Size = new System.Drawing.Size(409, 41);
|
||||
this.comboBox1.TabIndex = 13;
|
||||
//
|
||||
// tableLayoutPanel1
|
||||
//
|
||||
this.tableLayoutPanel1.ColumnCount = 3;
|
||||
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 15.07431F));
|
||||
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 74.89384F));
|
||||
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 10F));
|
||||
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.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.Location = new System.Drawing.Point(8, 12);
|
||||
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, 5.930233F));
|
||||
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 94.06977F));
|
||||
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 93F));
|
||||
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 63F));
|
||||
this.tableLayoutPanel1.Size = new System.Drawing.Size(1884, 1017);
|
||||
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, 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;
|
||||
//
|
||||
// id
|
||||
//
|
||||
this.id.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
|
||||
this.id.DataPropertyName = "id";
|
||||
this.id.HeaderText = "序号";
|
||||
this.id.MinimumWidth = 9;
|
||||
this.id.Name = "id";
|
||||
this.id.ReadOnly = true;
|
||||
//
|
||||
// plcid
|
||||
//
|
||||
this.plcid.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
|
||||
this.plcid.DataPropertyName = "plcid";
|
||||
this.plcid.HeaderText = "所属PLC";
|
||||
this.plcid.MinimumWidth = 9;
|
||||
this.plcid.Name = "plcid";
|
||||
//
|
||||
// type
|
||||
//
|
||||
this.type.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
|
||||
this.type.DataPropertyName = "type";
|
||||
this.type.HeaderText = "读写类型";
|
||||
this.type.MinimumWidth = 9;
|
||||
this.type.Name = "type";
|
||||
this.type.Resizable = System.Windows.Forms.DataGridViewTriState.True;
|
||||
this.type.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
|
||||
//
|
||||
// dbaddress
|
||||
//
|
||||
this.dbaddress.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
|
||||
this.dbaddress.DataPropertyName = "dbaddress";
|
||||
this.dbaddress.HeaderText = "DB块地址";
|
||||
this.dbaddress.MinimumWidth = 9;
|
||||
this.dbaddress.Name = "dbaddress";
|
||||
//
|
||||
// addressoffset
|
||||
//
|
||||
this.addressoffset.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
|
||||
this.addressoffset.DataPropertyName = "addressoffset";
|
||||
this.addressoffset.HeaderText = "DB地址";
|
||||
this.addressoffset.MinimumWidth = 9;
|
||||
this.addressoffset.Name = "addressoffset";
|
||||
//
|
||||
// addresstype
|
||||
//
|
||||
this.addresstype.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
|
||||
this.addresstype.DataPropertyName = "addresstype";
|
||||
this.addresstype.HeaderText = "数据类型";
|
||||
this.addresstype.MinimumWidth = 9;
|
||||
this.addresstype.Name = "addresstype";
|
||||
this.addresstype.Resizable = System.Windows.Forms.DataGridViewTriState.True;
|
||||
this.addresstype.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
|
||||
//
|
||||
// addresstypelegth
|
||||
//
|
||||
this.addresstypelegth.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
|
||||
this.addresstypelegth.DataPropertyName = "addresstypelegth";
|
||||
this.addresstypelegth.HeaderText = "字节长度";
|
||||
this.addresstypelegth.MinimumWidth = 9;
|
||||
this.addresstypelegth.Name = "addresstypelegth";
|
||||
//
|
||||
// remark
|
||||
//
|
||||
this.remark.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
|
||||
this.remark.DataPropertyName = "remark";
|
||||
this.remark.HeaderText = "注释";
|
||||
this.remark.MinimumWidth = 9;
|
||||
this.remark.Name = "remark";
|
||||
this.remark.ReadOnly = true;
|
||||
//
|
||||
// PLCADDRESS_Manage
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(11F, 21F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(1904, 1041);
|
||||
this.ClientSize = new System.Drawing.Size(1818, 814);
|
||||
this.Controls.Add(this.tableLayoutPanel1);
|
||||
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
|
||||
this.Margin = new System.Windows.Forms.Padding(2);
|
||||
this.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.Name = "PLCADDRESS_Manage";
|
||||
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
|
||||
this.Text = "PLCADDRESS_Manage";
|
||||
@@ -272,6 +278,7 @@
|
||||
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.DataGridViewTextBoxColumn id;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn plcid;
|
||||
private System.Windows.Forms.DataGridViewComboBoxColumn type;
|
||||
@@ -280,6 +287,5 @@
|
||||
private System.Windows.Forms.DataGridViewComboBoxColumn addresstype;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn addresstypelegth;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn remark;
|
||||
private System.Windows.Forms.TableLayoutPanel tableLayoutPanel1;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user