SetKA 함수 수정 / AlarmViewer, TrendViewer 중복실행 방지 추가

This commit is contained in:
shark219
2024-12-04 20:03:13 +09:00
parent 4f49b072dc
commit 4bb7dda9aa
12 changed files with 240 additions and 190 deletions

View File

@@ -77,6 +77,7 @@ namespace vmsnet
this.chk_sound = new System.Windows.Forms.CheckBox();
this.GroupBox1 = new System.Windows.Forms.GroupBox();
this.groupBox4 = new System.Windows.Forms.GroupBox();
this.txtValue = new System.Windows.Forms.TextBox();
this.button5 = new System.Windows.Forms.Button();
this.button4 = new System.Windows.Forms.Button();
this.button3 = new System.Windows.Forms.Button();
@@ -414,7 +415,7 @@ namespace vmsnet
this.TabPage1.Font = new System.Drawing.Font("맑은 고딕", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
this.TabPage1.Location = new System.Drawing.Point(4, 25);
this.TabPage1.Name = "TabPage1";
this.TabPage1.Padding = new System.Windows.Forms.Padding(3, 3, 3, 3);
this.TabPage1.Padding = new System.Windows.Forms.Padding(3);
this.TabPage1.Size = new System.Drawing.Size(1206, 740);
this.TabPage1.TabIndex = 0;
this.TabPage1.Text = "일반설정";
@@ -488,6 +489,7 @@ namespace vmsnet
// groupBox4
//
this.groupBox4.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.groupBox4.Controls.Add(this.txtValue);
this.groupBox4.Controls.Add(this.button5);
this.groupBox4.Controls.Add(this.button4);
this.groupBox4.Controls.Add(this.button3);
@@ -496,20 +498,31 @@ namespace vmsnet
this.groupBox4.Controls.Add(this.label22);
this.groupBox4.Controls.Add(this.label23);
this.groupBox4.Location = new System.Drawing.Point(578, 27);
this.groupBox4.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.groupBox4.Margin = new System.Windows.Forms.Padding(2);
this.groupBox4.Name = "groupBox4";
this.groupBox4.Padding = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.groupBox4.Padding = new System.Windows.Forms.Padding(2);
this.groupBox4.Size = new System.Drawing.Size(278, 182);
this.groupBox4.TabIndex = 45;
this.groupBox4.TabStop = false;
this.groupBox4.Text = "KA Indicator";
//
// txtValue
//
this.txtValue.Font = new System.Drawing.Font("맑은 고딕", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
this.txtValue.Location = new System.Drawing.Point(138, 129);
this.txtValue.Name = "txtValue";
this.txtValue.Size = new System.Drawing.Size(62, 34);
this.txtValue.TabIndex = 47;
this.txtValue.Text = "10";
this.txtValue.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
//
// button5
//
this.button5.Location = new System.Drawing.Point(89, 122);
this.button5.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.button5.Font = new System.Drawing.Font("맑은 고딕", 10.8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
this.button5.Location = new System.Drawing.Point(74, 122);
this.button5.Margin = new System.Windows.Forms.Padding(2);
this.button5.Name = "button5";
this.button5.Size = new System.Drawing.Size(69, 45);
this.button5.Size = new System.Drawing.Size(57, 45);
this.button5.TabIndex = 46;
this.button5.Text = "끊기";
this.button5.UseVisualStyleBackColor = true;
@@ -517,10 +530,11 @@ namespace vmsnet
//
// button4
//
this.button4.Font = new System.Drawing.Font("맑은 고딕", 10.8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
this.button4.Location = new System.Drawing.Point(16, 122);
this.button4.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.button4.Margin = new System.Windows.Forms.Padding(2);
this.button4.Name = "button4";
this.button4.Size = new System.Drawing.Size(69, 45);
this.button4.Size = new System.Drawing.Size(57, 45);
this.button4.TabIndex = 45;
this.button4.Text = "연결";
this.button4.UseVisualStyleBackColor = true;
@@ -529,27 +543,27 @@ namespace vmsnet
// button3
//
this.button3.Font = new System.Drawing.Font("맑은 고딕", 10.8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
this.button3.Location = new System.Drawing.Point(166, 122);
this.button3.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.button3.Location = new System.Drawing.Point(203, 122);
this.button3.Margin = new System.Windows.Forms.Padding(2);
this.button3.Name = "button3";
this.button3.Size = new System.Drawing.Size(96, 45);
this.button3.Size = new System.Drawing.Size(63, 45);
this.button3.TabIndex = 45;
this.button3.Text = "100 전송";
this.button3.Text = "전송";
this.button3.UseVisualStyleBackColor = true;
this.button3.Click += new System.EventHandler(this.button3_Click);
//
// cmbIndiport
//
this.cmbIndiport.FormattingEnabled = true;
this.cmbIndiport.Location = new System.Drawing.Point(143, 35);
this.cmbIndiport.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.cmbIndiport.Location = new System.Drawing.Point(145, 35);
this.cmbIndiport.Margin = new System.Windows.Forms.Padding(2);
this.cmbIndiport.Name = "cmbIndiport";
this.cmbIndiport.Size = new System.Drawing.Size(118, 36);
this.cmbIndiport.TabIndex = 44;
//
// nudSlaveNo
//
this.nudSlaveNo.Location = new System.Drawing.Point(143, 78);
this.nudSlaveNo.Location = new System.Drawing.Point(145, 78);
this.nudSlaveNo.Maximum = new decimal(new int[] {
255,
0,
@@ -953,9 +967,9 @@ namespace vmsnet
this.GroupBox2.Controls.Add(this.Label17);
this.GroupBox2.Controls.Add(this.Label16);
this.GroupBox2.Location = new System.Drawing.Point(861, 25);
this.GroupBox2.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.GroupBox2.Margin = new System.Windows.Forms.Padding(2);
this.GroupBox2.Name = "GroupBox2";
this.GroupBox2.Padding = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.GroupBox2.Padding = new System.Windows.Forms.Padding(2);
this.GroupBox2.Size = new System.Drawing.Size(330, 182);
this.GroupBox2.TabIndex = 41;
this.GroupBox2.TabStop = false;
@@ -965,7 +979,7 @@ namespace vmsnet
//
this.cmb_plcport.FormattingEnabled = true;
this.cmb_plcport.Location = new System.Drawing.Point(121, 35);
this.cmb_plcport.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.cmb_plcport.Margin = new System.Windows.Forms.Padding(2);
this.cmb_plcport.Name = "cmb_plcport";
this.cmb_plcport.Size = new System.Drawing.Size(197, 36);
this.cmb_plcport.TabIndex = 44;
@@ -983,7 +997,7 @@ namespace vmsnet
// Button2
//
this.Button2.Location = new System.Drawing.Point(216, 118);
this.Button2.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.Button2.Margin = new System.Windows.Forms.Padding(2);
this.Button2.Name = "Button2";
this.Button2.Size = new System.Drawing.Size(102, 45);
this.Button2.TabIndex = 43;
@@ -994,7 +1008,7 @@ namespace vmsnet
// Button1
//
this.Button1.Location = new System.Drawing.Point(121, 118);
this.Button1.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.Button1.Margin = new System.Windows.Forms.Padding(2);
this.Button1.Name = "Button1";
this.Button1.Size = new System.Drawing.Size(90, 45);
this.Button1.TabIndex = 42;
@@ -1146,7 +1160,7 @@ namespace vmsnet
this.TabPage2.Controls.Add(this.bn_Device);
this.TabPage2.Location = new System.Drawing.Point(4, 25);
this.TabPage2.Name = "TabPage2";
this.TabPage2.Size = new System.Drawing.Size(1206, 743);
this.TabPage2.Size = new System.Drawing.Size(1206, 740);
this.TabPage2.TabIndex = 1;
this.TabPage2.Text = "장치설정";
this.TabPage2.UseVisualStyleBackColor = true;
@@ -1205,7 +1219,7 @@ namespace vmsnet
this.dv_device.RowHeadersWidth = 62;
this.dv_device.RowTemplate.Height = 23;
this.dv_device.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.CellSelect;
this.dv_device.Size = new System.Drawing.Size(1206, 674);
this.dv_device.Size = new System.Drawing.Size(1206, 671);
this.dv_device.TabIndex = 0;
//
// M_IDX
@@ -1332,7 +1346,7 @@ namespace vmsnet
//
this.label11.Dock = System.Windows.Forms.DockStyle.Bottom;
this.label11.ForeColor = System.Drawing.Color.Blue;
this.label11.Location = new System.Drawing.Point(0, 705);
this.label11.Location = new System.Drawing.Point(0, 702);
this.label11.Name = "label11";
this.label11.Padding = new System.Windows.Forms.Padding(11, 0, 0, 0);
this.label11.Size = new System.Drawing.Size(1206, 38);
@@ -1492,7 +1506,7 @@ namespace vmsnet
this.TabPage5.Controls.Add(this.BN_WIN);
this.TabPage5.Location = new System.Drawing.Point(4, 25);
this.TabPage5.Name = "TabPage5";
this.TabPage5.Size = new System.Drawing.Size(1206, 743);
this.TabPage5.Size = new System.Drawing.Size(1206, 740);
this.TabPage5.TabIndex = 4;
this.TabPage5.Text = "윈도우설정";
this.TabPage5.UseVisualStyleBackColor = true;
@@ -1542,7 +1556,7 @@ namespace vmsnet
this.dv_win.RowHeadersVisible = false;
this.dv_win.RowHeadersWidth = 62;
this.dv_win.RowTemplate.Height = 23;
this.dv_win.Size = new System.Drawing.Size(1206, 674);
this.dv_win.Size = new System.Drawing.Size(1206, 671);
this.dv_win.TabIndex = 3;
this.dv_win.CellContentClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.DV_WIN_CellContentClick);
this.dv_win.DataError += new System.Windows.Forms.DataGridViewDataErrorEventHandler(this.DV_WIN_DataError);
@@ -1593,7 +1607,7 @@ namespace vmsnet
//
this.label13.Dock = System.Windows.Forms.DockStyle.Bottom;
this.label13.ForeColor = System.Drawing.Color.Blue;
this.label13.Location = new System.Drawing.Point(0, 705);
this.label13.Location = new System.Drawing.Point(0, 702);
this.label13.Name = "label13";
this.label13.Padding = new System.Windows.Forms.Padding(11, 0, 0, 0);
this.label13.Size = new System.Drawing.Size(1206, 38);
@@ -1725,7 +1739,7 @@ namespace vmsnet
this.TabPage4.Controls.Add(this.bn_group);
this.TabPage4.Location = new System.Drawing.Point(4, 25);
this.TabPage4.Name = "TabPage4";
this.TabPage4.Size = new System.Drawing.Size(1206, 743);
this.TabPage4.Size = new System.Drawing.Size(1206, 740);
this.TabPage4.TabIndex = 3;
this.TabPage4.Text = "그룹설정";
this.TabPage4.UseVisualStyleBackColor = true;
@@ -1792,7 +1806,7 @@ namespace vmsnet
this.dv_grp.RowHeadersVisible = false;
this.dv_grp.RowHeadersWidth = 62;
this.dv_grp.RowTemplate.Height = 23;
this.dv_grp.Size = new System.Drawing.Size(1206, 664);
this.dv_grp.Size = new System.Drawing.Size(1206, 661);
this.dv_grp.TabIndex = 2;
this.dv_grp.DataError += new System.Windows.Forms.DataGridViewDataErrorEventHandler(this.dv_grp_DataError);
//
@@ -2112,7 +2126,7 @@ namespace vmsnet
this.label2.Dock = System.Windows.Forms.DockStyle.Bottom;
this.label2.Font = new System.Drawing.Font("맑은 고딕", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
this.label2.ForeColor = System.Drawing.Color.Red;
this.label2.Location = new System.Drawing.Point(0, 695);
this.label2.Location = new System.Drawing.Point(0, 692);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(1206, 48);
this.label2.TabIndex = 4;
@@ -2242,7 +2256,7 @@ namespace vmsnet
this.TabPage3.Controls.Add(this.bn_channel);
this.TabPage3.Location = new System.Drawing.Point(4, 25);
this.TabPage3.Name = "TabPage3";
this.TabPage3.Size = new System.Drawing.Size(1206, 743);
this.TabPage3.Size = new System.Drawing.Size(1206, 740);
this.TabPage3.TabIndex = 2;
this.TabPage3.Text = "셀설정";
this.TabPage3.UseVisualStyleBackColor = true;
@@ -2308,7 +2322,7 @@ namespace vmsnet
this.dv_channel.RowHeadersVisible = false;
this.dv_channel.RowHeadersWidth = 62;
this.dv_channel.RowTemplate.Height = 23;
this.dv_channel.Size = new System.Drawing.Size(1206, 712);
this.dv_channel.Size = new System.Drawing.Size(1206, 709);
this.dv_channel.TabIndex = 1;
this.dv_channel.CellClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dv_channel_CellClick);
this.dv_channel.CellFormatting += new System.Windows.Forms.DataGridViewCellFormattingEventHandler(this.dv_channel_CellFormatting);
@@ -2994,6 +3008,7 @@ namespace vmsnet
private DataGridViewTextBoxColumn NBLLDataGridViewTextBoxColumn;
private DataGridViewTextBoxColumn NBLDataGridViewTextBoxColumn;
private ToolStripButton toolStripButton15;
private TextBox txtValue;
}
}