Files
vms2016_kadisp/cVMS.NET_CS/Setting/Frm_Alam.Designer.cs
chiDT ffa0cb9bf9 1. 알람셋팅화면에 기준값초기화 체크박스 추가
2. 기준값 초기화시 신규 설정된 기준값이 바로 저장되도록 함 (필요한 경우 5분 혹은 10분간격으로 window1, window2 : grp 파일은 생성해주는 것이 좋을 듯함)
3. 알람 설정화면을 통해서 값 변경시 , 기준값초기화 기능이 서브윈도우에 적용되지 않는 버그 수정
2025-07-01 22:11:17 +09:00

440 lines
23 KiB
C#

using System.Collections.Generic;
using System;
using System.Drawing;
using System.Diagnostics;
using System.Data;
using System.Collections;
using System.Windows.Forms;
namespace vmsnet
{
partial class Frm_Alam : System.Windows.Forms.Form
{
//Form은 Dispose를 재정의하여 구성 요소 목록을 정리합니다.
[System.Diagnostics.DebuggerNonUserCode()]protected override void Dispose(bool disposing)
{
try
{
if (disposing && components != null)
{
components.Dispose();
}
}
finally
{
base.Dispose(disposing);
}
}
//참고: 다음 프로시저는 Windows Form 디자이너에 필요합니다.
//수정하려면 Windows Form 디자이너를 사용하십시오.
//코드 편집기를 사용하여 수정하지 마십시오.
[System.Diagnostics.DebuggerStepThrough()]private void InitializeComponent()
{
this.components = new System.ComponentModel.Container();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle8 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle5 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle6 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle7 = new System.Windows.Forms.DataGridViewCellStyle();
this.DataGridView1 = new System.Windows.Forms.DataGridView();
this.GroupDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.TypeDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewComboBoxColumn();
this.HighDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.LowDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.AhighDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.AlowDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.nbhh = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.nbh = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.nbl = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.nbll = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.BindingSource1 = new System.Windows.Forms.BindingSource(this.components);
this.DataSet1 = new System.Data.DataSet();
this.DataTable1 = new System.Data.DataTable();
this.DataColumn1 = new System.Data.DataColumn();
this.DataColumn2 = new System.Data.DataColumn();
this.DataColumn3 = new System.Data.DataColumn();
this.DataColumn4 = new System.Data.DataColumn();
this.DataColumn5 = new System.Data.DataColumn();
this.DataColumn6 = new System.Data.DataColumn();
this.DataColumn7 = new System.Data.DataColumn();
this.DataColumn8 = new System.Data.DataColumn();
this.DataColumn9 = new System.Data.DataColumn();
this.DataColumn10 = new System.Data.DataColumn();
this.DataColumn11 = new System.Data.DataColumn();
this.DataColumn12 = new System.Data.DataColumn();
this.StatusStrip1 = new System.Windows.Forms.StatusStrip();
this.ToolStripStatusLabel1 = new System.Windows.Forms.ToolStripStatusLabel();
this.Button1 = new System.Windows.Forms.Button();
this.panel1 = new System.Windows.Forms.Panel();
this.chkResetValue = new System.Windows.Forms.CheckBox();
((System.ComponentModel.ISupportInitialize)(this.DataGridView1)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.BindingSource1)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.DataSet1)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.DataTable1)).BeginInit();
this.StatusStrip1.SuspendLayout();
this.panel1.SuspendLayout();
this.SuspendLayout();
//
// DataGridView1
//
this.DataGridView1.AllowUserToAddRows = false;
this.DataGridView1.AllowUserToDeleteRows = false;
this.DataGridView1.AllowUserToResizeRows = false;
this.DataGridView1.AutoGenerateColumns = false;
this.DataGridView1.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.AllCells;
this.DataGridView1.AutoSizeRowsMode = System.Windows.Forms.DataGridViewAutoSizeRowsMode.AllCells;
this.DataGridView1.BorderStyle = System.Windows.Forms.BorderStyle.None;
this.DataGridView1.ColumnHeadersHeight = 40;
this.DataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing;
this.DataGridView1.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.GroupDataGridViewTextBoxColumn,
this.TypeDataGridViewTextBoxColumn,
this.HighDataGridViewTextBoxColumn,
this.LowDataGridViewTextBoxColumn,
this.AhighDataGridViewTextBoxColumn,
this.AlowDataGridViewTextBoxColumn,
this.nbhh,
this.nbh,
this.nbl,
this.nbll});
this.DataGridView1.DataSource = this.BindingSource1;
dataGridViewCellStyle8.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
dataGridViewCellStyle8.BackColor = System.Drawing.SystemColors.Window;
dataGridViewCellStyle8.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
dataGridViewCellStyle8.ForeColor = System.Drawing.SystemColors.ControlText;
dataGridViewCellStyle8.Padding = new System.Windows.Forms.Padding(0, 5, 0, 5);
dataGridViewCellStyle8.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle8.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle8.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
this.DataGridView1.DefaultCellStyle = dataGridViewCellStyle8;
this.DataGridView1.Dock = System.Windows.Forms.DockStyle.Fill;
this.DataGridView1.Location = new System.Drawing.Point(0, 0);
this.DataGridView1.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
this.DataGridView1.Name = "DataGridView1";
this.DataGridView1.RowHeadersVisible = false;
this.DataGridView1.RowHeadersWidth = 50;
this.DataGridView1.RowHeadersWidthSizeMode = System.Windows.Forms.DataGridViewRowHeadersWidthSizeMode.DisableResizing;
this.DataGridView1.RowTemplate.Height = 23;
this.DataGridView1.Size = new System.Drawing.Size(1010, 475);
this.DataGridView1.TabIndex = 0;
this.DataGridView1.CellContentClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.DataGridView1_CellContentClick);
this.DataGridView1.CellFormatting += new System.Windows.Forms.DataGridViewCellFormattingEventHandler(this.DataGridView1_CellFormatting);
this.DataGridView1.DataError += new System.Windows.Forms.DataGridViewDataErrorEventHandler(this.DataGridView1_DataError);
//
// GroupDataGridViewTextBoxColumn
//
this.GroupDataGridViewTextBoxColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
this.GroupDataGridViewTextBoxColumn.DataPropertyName = "Group";
dataGridViewCellStyle1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(255)))));
this.GroupDataGridViewTextBoxColumn.DefaultCellStyle = dataGridViewCellStyle1;
this.GroupDataGridViewTextBoxColumn.HeaderText = "그룹";
this.GroupDataGridViewTextBoxColumn.MinimumWidth = 8;
this.GroupDataGridViewTextBoxColumn.Name = "GroupDataGridViewTextBoxColumn";
this.GroupDataGridViewTextBoxColumn.ReadOnly = true;
//
// TypeDataGridViewTextBoxColumn
//
this.TypeDataGridViewTextBoxColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.AllCells;
this.TypeDataGridViewTextBoxColumn.DataPropertyName = "Type";
this.TypeDataGridViewTextBoxColumn.HeaderText = "알람형태";
this.TypeDataGridViewTextBoxColumn.Items.AddRange(new object[] {
"MANUAL",
"AUTO",
"STOP"});
this.TypeDataGridViewTextBoxColumn.MinimumWidth = 8;
this.TypeDataGridViewTextBoxColumn.Name = "TypeDataGridViewTextBoxColumn";
this.TypeDataGridViewTextBoxColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True;
this.TypeDataGridViewTextBoxColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
this.TypeDataGridViewTextBoxColumn.Width = 82;
//
// HighDataGridViewTextBoxColumn
//
this.HighDataGridViewTextBoxColumn.DataPropertyName = "High";
dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
this.HighDataGridViewTextBoxColumn.DefaultCellStyle = dataGridViewCellStyle2;
this.HighDataGridViewTextBoxColumn.HeaderText = "Manual(H)";
this.HighDataGridViewTextBoxColumn.MinimumWidth = 8;
this.HighDataGridViewTextBoxColumn.Name = "HighDataGridViewTextBoxColumn";
this.HighDataGridViewTextBoxColumn.Width = 108;
//
// LowDataGridViewTextBoxColumn
//
this.LowDataGridViewTextBoxColumn.DataPropertyName = "Low";
dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
this.LowDataGridViewTextBoxColumn.DefaultCellStyle = dataGridViewCellStyle3;
this.LowDataGridViewTextBoxColumn.HeaderText = "Manual(L)";
this.LowDataGridViewTextBoxColumn.MinimumWidth = 8;
this.LowDataGridViewTextBoxColumn.Name = "LowDataGridViewTextBoxColumn";
this.LowDataGridViewTextBoxColumn.Width = 105;
//
// AhighDataGridViewTextBoxColumn
//
this.AhighDataGridViewTextBoxColumn.DataPropertyName = "ahigh";
dataGridViewCellStyle4.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
this.AhighDataGridViewTextBoxColumn.DefaultCellStyle = dataGridViewCellStyle4;
this.AhighDataGridViewTextBoxColumn.HeaderText = "Auto(±)";
this.AhighDataGridViewTextBoxColumn.MinimumWidth = 8;
this.AhighDataGridViewTextBoxColumn.Name = "AhighDataGridViewTextBoxColumn";
this.AhighDataGridViewTextBoxColumn.Width = 87;
//
// AlowDataGridViewTextBoxColumn
//
this.AlowDataGridViewTextBoxColumn.DataPropertyName = "alow";
dataGridViewCellStyle5.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
this.AlowDataGridViewTextBoxColumn.DefaultCellStyle = dataGridViewCellStyle5;
this.AlowDataGridViewTextBoxColumn.HeaderText = "Auto(-)";
this.AlowDataGridViewTextBoxColumn.MinimumWidth = 8;
this.AlowDataGridViewTextBoxColumn.Name = "AlowDataGridViewTextBoxColumn";
this.AlowDataGridViewTextBoxColumn.Visible = false;
this.AlowDataGridViewTextBoxColumn.Width = 71;
//
// nbhh
//
this.nbhh.DataPropertyName = "nbhh";
this.nbhh.HeaderText = "N.B.(HH)";
this.nbhh.MinimumWidth = 8;
this.nbhh.Name = "nbhh";
this.nbhh.Visible = false;
this.nbhh.Width = 81;
//
// nbh
//
this.nbh.DataPropertyName = "nbh";
dataGridViewCellStyle6.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
this.nbh.DefaultCellStyle = dataGridViewCellStyle6;
this.nbh.HeaderText = "NullB(Alarm1)";
this.nbh.MinimumWidth = 8;
this.nbh.Name = "nbh";
this.nbh.Width = 131;
//
// nbl
//
this.nbl.DataPropertyName = "nbl";
dataGridViewCellStyle7.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
this.nbl.DefaultCellStyle = dataGridViewCellStyle7;
this.nbl.HeaderText = "NullB(Alarm2)";
this.nbl.MinimumWidth = 8;
this.nbl.Name = "nbl";
this.nbl.Width = 131;
//
// nbll
//
this.nbll.DataPropertyName = "nbll";
this.nbll.HeaderText = "N.B.(LL)";
this.nbll.MinimumWidth = 8;
this.nbll.Name = "nbll";
this.nbll.Visible = false;
this.nbll.Width = 79;
//
// BindingSource1
//
this.BindingSource1.DataMember = "groupname";
this.BindingSource1.DataSource = this.DataSet1;
//
// DataSet1
//
this.DataSet1.DataSetName = "NewDataSet";
this.DataSet1.Tables.AddRange(new System.Data.DataTable[] {
this.DataTable1});
//
// DataTable1
//
this.DataTable1.Columns.AddRange(new System.Data.DataColumn[] {
this.DataColumn1,
this.DataColumn2,
this.DataColumn3,
this.DataColumn4,
this.DataColumn5,
this.DataColumn6,
this.DataColumn7,
this.DataColumn8,
this.DataColumn9,
this.DataColumn10,
this.DataColumn11,
this.DataColumn12});
this.DataTable1.TableName = "groupname";
//
// DataColumn1
//
this.DataColumn1.ColumnName = "Group";
//
// DataColumn2
//
this.DataColumn2.Caption = "TYPE";
this.DataColumn2.ColumnName = "Type";
//
// DataColumn3
//
this.DataColumn3.Caption = "High(Manual)";
this.DataColumn3.ColumnName = "High";
this.DataColumn3.DefaultValue = "0";
//
// DataColumn4
//
this.DataColumn4.Caption = "Low(Manual)";
this.DataColumn4.ColumnName = "Low";
this.DataColumn4.DefaultValue = "0";
//
// DataColumn5
//
this.DataColumn5.Caption = "SET";
this.DataColumn5.ColumnName = "SET";
//
// DataColumn6
//
this.DataColumn6.Caption = "+(Auto)";
this.DataColumn6.ColumnName = "ahigh";
this.DataColumn6.DefaultValue = "0";
//
// DataColumn7
//
this.DataColumn7.Caption = "-(Auto)";
this.DataColumn7.ColumnName = "alow";
this.DataColumn7.DefaultValue = "0";
//
// DataColumn8
//
this.DataColumn8.ColumnName = "IDX";
//
// DataColumn9
//
this.DataColumn9.ColumnName = "nbh";
this.DataColumn9.DefaultValue = "0";
//
// DataColumn10
//
this.DataColumn10.ColumnName = "nbhh";
this.DataColumn10.DefaultValue = "0";
//
// DataColumn11
//
this.DataColumn11.Caption = "nbll";
this.DataColumn11.ColumnName = "nbll";
this.DataColumn11.DefaultValue = "0";
//
// DataColumn12
//
this.DataColumn12.ColumnName = "nbl";
this.DataColumn12.DefaultValue = "0";
//
// StatusStrip1
//
this.StatusStrip1.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.999999F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
this.StatusStrip1.ImageScalingSize = new System.Drawing.Size(24, 24);
this.StatusStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.ToolStripStatusLabel1});
this.StatusStrip1.Location = new System.Drawing.Point(0, 536);
this.StatusStrip1.Name = "StatusStrip1";
this.StatusStrip1.Padding = new System.Windows.Forms.Padding(1, 0, 20, 0);
this.StatusStrip1.Size = new System.Drawing.Size(1010, 22);
this.StatusStrip1.TabIndex = 2;
this.StatusStrip1.Text = "StatusStrip1";
//
// ToolStripStatusLabel1
//
this.ToolStripStatusLabel1.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.999999F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
this.ToolStripStatusLabel1.Name = "ToolStripStatusLabel1";
this.ToolStripStatusLabel1.Size = new System.Drawing.Size(373, 17);
this.ToolStripStatusLabel1.Text = "개별알람 및 개별알람(자동)으로 설정된 셀은 영향을 받지 않습니다.";
//
// Button1
//
this.Button1.Dock = System.Windows.Forms.DockStyle.Fill;
this.Button1.Font = new System.Drawing.Font("Microsoft Sans Serif", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.Button1.Location = new System.Drawing.Point(0, 0);
this.Button1.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
this.Button1.Name = "Button1";
this.Button1.Size = new System.Drawing.Size(858, 61);
this.Button1.TabIndex = 3;
this.Button1.Text = "저장";
this.Button1.UseVisualStyleBackColor = true;
this.Button1.Click += new System.EventHandler(this.Button1_Click);
//
// panel1
//
this.panel1.Controls.Add(this.Button1);
this.panel1.Controls.Add(this.chkResetValue);
this.panel1.Dock = System.Windows.Forms.DockStyle.Bottom;
this.panel1.Location = new System.Drawing.Point(0, 475);
this.panel1.Name = "panel1";
this.panel1.Size = new System.Drawing.Size(1010, 61);
this.panel1.TabIndex = 4;
//
// chkResetValue
//
this.chkResetValue.Dock = System.Windows.Forms.DockStyle.Right;
this.chkResetValue.Location = new System.Drawing.Point(858, 0);
this.chkResetValue.Name = "chkResetValue";
this.chkResetValue.Padding = new System.Windows.Forms.Padding(10, 0, 0, 0);
this.chkResetValue.Size = new System.Drawing.Size(152, 61);
this.chkResetValue.TabIndex = 0;
this.chkResetValue.Text = "알람 기준값 초기화";
this.chkResetValue.UseVisualStyleBackColor = true;
//
// Frm_Alam
//
this.AutoScaleDimensions = new System.Drawing.SizeF(9F, 20F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(1010, 558);
this.Controls.Add(this.DataGridView1);
this.Controls.Add(this.panel1);
this.Controls.Add(this.StatusStrip1);
this.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
this.KeyPreview = true;
this.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
this.Name = "Frm_Alam";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "알람설정";
this.Load += new System.EventHandler(this.Frm_Alam_Load);
((System.ComponentModel.ISupportInitialize)(this.DataGridView1)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.BindingSource1)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.DataSet1)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.DataTable1)).EndInit();
this.StatusStrip1.ResumeLayout(false);
this.StatusStrip1.PerformLayout();
this.panel1.ResumeLayout(false);
this.ResumeLayout(false);
this.PerformLayout();
}
internal System.Windows.Forms.DataGridView DataGridView1;
internal System.Data.DataSet DataSet1;
internal System.Data.DataTable DataTable1;
internal System.Data.DataColumn DataColumn1;
internal System.Data.DataColumn DataColumn2;
internal System.Data.DataColumn DataColumn3;
internal System.Data.DataColumn DataColumn4;
internal System.Windows.Forms.BindingSource BindingSource1;
internal System.Windows.Forms.StatusStrip StatusStrip1;
internal System.Windows.Forms.ToolStripStatusLabel ToolStripStatusLabel1;
internal System.Data.DataColumn DataColumn5;
internal System.Windows.Forms.Button Button1;
internal System.Data.DataColumn DataColumn6;
internal System.Data.DataColumn DataColumn7;
internal System.Data.DataColumn DataColumn8;
internal System.Data.DataColumn DataColumn9;
internal System.Data.DataColumn DataColumn10;
internal System.Data.DataColumn DataColumn11;
internal System.Data.DataColumn DataColumn12;
internal System.Windows.Forms.DataGridViewTextBoxColumn GroupDataGridViewTextBoxColumn;
internal System.Windows.Forms.DataGridViewComboBoxColumn TypeDataGridViewTextBoxColumn;
internal System.Windows.Forms.DataGridViewTextBoxColumn HighDataGridViewTextBoxColumn;
internal System.Windows.Forms.DataGridViewTextBoxColumn LowDataGridViewTextBoxColumn;
internal System.Windows.Forms.DataGridViewTextBoxColumn AhighDataGridViewTextBoxColumn;
internal System.Windows.Forms.DataGridViewTextBoxColumn AlowDataGridViewTextBoxColumn;
internal System.Windows.Forms.DataGridViewTextBoxColumn nbhh;
internal System.Windows.Forms.DataGridViewTextBoxColumn nbh;
internal System.Windows.Forms.DataGridViewTextBoxColumn nbl;
internal System.Windows.Forms.DataGridViewTextBoxColumn nbll;
private System.ComponentModel.IContainer components;
private Panel panel1;
private CheckBox chkResetValue;
}
}