<file_sep>﻿namespace Hnc.Calorimeter.Client
{
    partial class FormOpenAllParam
    {
        /// <summary>
        /// Required designer variable.
        /// </summary>
        private System.ComponentModel.IContainer components = null;

        /// <summary>
        /// Clean up any resources being used.
        /// </summary>
        /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
        protected override void Dispose(bool disposing)
        {
            if (disposing && (components != null))
            {
                components.Dispose();
            }
            base.Dispose(disposing);
        }

        #region Windows Form Designer generated code

        /// <summary>
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FormOpenAllParam));
            this.paramGrid = new DevExpress.XtraGrid.GridControl();
            this.paramGridView = new DevExpress.XtraGrid.Views.Grid.GridView();
            this.pgUserNameColumn = new DevExpress.XtraGrid.Columns.GridColumn();
            this.pgDateTimeColumn = new DevExpress.XtraGrid.Columns.GridColumn();
            this.pgMemoColumn = new DevExpress.XtraGrid.Columns.GridColumn();
            this.okButton = new System.Windows.Forms.Button();
            this.cancelButton = new System.Windows.Forms.Button();
            this.schDeleteButton = new System.Windows.Forms.Button();
            this.bgPanel.SuspendLayout();
            ((System.ComponentModel.ISupportInitialize)(this.paramGrid)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.paramGridView)).BeginInit();
            this.SuspendLayout();
            // 
            // bgPanel
            // 
            this.bgPanel.Controls.Add(this.schDeleteButton);
            this.bgPanel.Controls.Add(this.okButton);
            this.bgPanel.Controls.Add(this.cancelButton);
            this.bgPanel.Controls.Add(this.paramGrid);
            this.bgPanel.Size = new System.Drawing.Size(412, 407);
            // 
            // paramGrid
            // 
            this.paramGrid.Location = new System.Drawing.Point(12, 12);
            this.paramGrid.MainView = this.paramGridView;
            this.paramGrid.Name = "paramGrid";
            this.paramGrid.Size = new System.Drawing.Size(386, 348);
            this.paramGrid.TabIndex = 0;
            this.paramGrid.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] {
            this.paramGridView});
            this.paramGrid.DoubleClick += new System.EventHandler(this.paramGrid_DoubleClick);
            // 
            // paramGridView
            // 
            this.paramGridView.ActiveFilterEnabled = false;
            this.paramGridView.Appearance.FixedLine.Font = new System.Drawing.Font("Arial", 9F);
            this.paramGridView.Appearance.FixedLine.Options.UseFont = true;
            this.paramGridView.Appearance.FocusedCell.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.paramGridView.Appearance.FocusedCell.Options.UseFont = true;
            this.paramGridView.Appearance.FocusedRow.Font = new System.Drawing.Font("Arial", 9F);
            this.paramGridView.Appearance.FocusedRow.Options.UseFont = true;
            this.paramGridView.Appearance.HeaderPanel.Font = new System.Drawing.Font("Arial", 9F);
            this.paramGridView.Appearance.HeaderPanel.Options.UseFont = true;
            this.paramGridView.Appearance.HideSelectionRow.Font = new System.Drawing.Font("Arial", 9F);
            this.paramGridView.Appearance.HideSelectionRow.Options.UseFont = true;
            this.paramGridView.Appearance.OddRow.Font = new System.Drawing.Font("Arial", 9F);
            this.paramGridView.Appearance.OddRow.Options.UseFont = true;
            this.paramGridView.Appearance.Preview.Font = new System.Drawing.Font("Arial", 9F);
            this.paramGridView.Appearance.Preview.Options.UseFont = true;
            this.paramGridView.Appearance.Row.Font = new System.Drawing.Font("Arial", 9F);
            this.paramGridView.Appearance.Row.Options.UseFont = true;
            this.paramGridView.Appearance.SelectedRow.Font = new System.Drawing.Font("Arial", 9F);
            this.paramGridView.Appearance.SelectedRow.Options.UseFont = true;
            this.paramGridView.Appearance.ViewCaption.Font = new System.Drawing.Font("Arial", 9F);
            this.paramGridView.Appearance.ViewCaption.Options.UseFont = true;
            this.paramGridView.Columns.AddRange(new DevExpress.XtraGrid.Columns.GridColumn[] {
            this.pgUserNameColumn,
            this.pgDateTimeColumn,
            this.pgMemoColumn});
            this.paramGridView.CustomizationFormBounds = new System.Drawing.Rectangle(2884, 580, 210, 186);
            this.paramGridView.GridControl = this.paramGrid;
            this.paramGridView.HorzScrollVisibility = DevExpress.XtraGrid.Views.Base.ScrollVisibility.Never;
            this.paramGridView.Name = "paramGridView";
            this.paramGridView.OptionsBehavior.Editable = false;
            this.paramGridView.OptionsBehavior.ReadOnly = true;
            this.paramGridView.OptionsFilter.AllowAutoFilterConditionChange = DevExpress.Utils.DefaultBoolean.False;
            this.paramGridView.OptionsFilter.AllowFilterEditor = false;
            this.paramGridView.OptionsView.ColumnAutoWidth = false;
            this.paramGridView.OptionsView.ShowGroupPanel = false;
            this.paramGridView.OptionsView.ShowIndicator = false;
            this.paramGridView.Tag = 1;
            this.paramGridView.FocusedRowChanged += new DevExpress.XtraGrid.Views.Base.FocusedRowChangedEventHandler(this.paramGridView_FocusedRowChanged);
            // 
            // pgUserNameColumn
            // 
            this.pgUserNameColumn.AppearanceCell.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.pgUserNameColumn.AppearanceCell.Options.UseFont = true;
            this.pgUserNameColumn.AppearanceCell.Options.UseTextOptions = true;
            this.pgUserNameColumn.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Near;
            this.pgUserNameColumn.AppearanceHeader.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.pgUserNameColumn.AppearanceHeader.Options.UseFont = true;
            this.pgUserNameColumn.AppearanceHeader.Options.UseTextOptions = true;
            this.pgUserNameColumn.AppearanceHeader.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Near;
            this.pgUserNameColumn.Caption = "User Name";
            this.pgUserNameColumn.FieldName = "USERNAME";
            this.pgUserNameColumn.Name = "pgUserNameColumn";
            this.pgUserNameColumn.OptionsColumn.AllowEdit = false;
            this.pgUserNameColumn.OptionsColumn.AllowFocus = false;
            this.pgUserNameColumn.OptionsColumn.AllowGroup = DevExpress.Utils.DefaultBoolean.False;
            this.pgUserNameColumn.OptionsColumn.AllowIncrementalSearch = false;
            this.pgUserNameColumn.OptionsColumn.AllowMerge = DevExpress.Utils.DefaultBoolean.False;
            this.pgUserNameColumn.OptionsColumn.AllowMove = false;
            this.pgUserNameColumn.OptionsColumn.AllowShowHide = false;
            this.pgUserNameColumn.OptionsColumn.AllowSize = false;
            this.pgUserNameColumn.OptionsColumn.AllowSort = DevExpress.Utils.DefaultBoolean.False;
            this.pgUserNameColumn.OptionsColumn.FixedWidth = true;
            this.pgUserNameColumn.OptionsColumn.ImmediateUpdateRowPosition = DevExpress.Utils.DefaultBoolean.False;
            this.pgUserNameColumn.OptionsColumn.Printable = DevExpress.Utils.DefaultBoolean.False;
            this.pgUserNameColumn.OptionsColumn.ReadOnly = true;
            this.pgUserNameColumn.OptionsColumn.TabStop = false;
            this.pgUserNameColumn.OptionsFilter.AllowAutoFilter = false;
            this.pgUserNameColumn.OptionsFilter.AllowFilter = false;
            this.pgUserNameColumn.OptionsFilter.ImmediateUpdateAutoFilter = false;
            this.pgUserNameColumn.OptionsFilter.ShowEmptyDateFilter = false;
            this.pgUserNameColumn.Visible = true;
            this.pgUserNameColumn.VisibleIndex = 0;
            this.pgUserNameColumn.Width = 96;
            // 
            // pgDateTimeColumn
            // 
            this.pgDateTimeColumn.Caption = "Date Time";
            this.pgDateTimeColumn.FieldName = "REGTIME";
            this.pgDateTimeColumn.Name = "pgDateTimeColumn";
            this.pgDateTimeColumn.OptionsColumn.AllowEdit = false;
            this.pgDateTimeColumn.OptionsColumn.AllowFocus = false;
            this.pgDateTimeColumn.OptionsColumn.AllowGroup = DevExpress.Utils.DefaultBoolean.False;
            this.pgDateTimeColumn.OptionsColumn.AllowIncrementalSearch = false;
            this.pgDateTimeColumn.OptionsColumn.AllowMerge = DevExpress.Utils.DefaultBoolean.False;
            this.pgDateTimeColumn.OptionsColumn.AllowMove = false;
            this.pgDateTimeColumn.OptionsColumn.AllowShowHide = false;
            this.pgDateTimeColumn.OptionsColumn.AllowSize = false;
            this.pgDateTimeColumn.OptionsColumn.AllowSort = DevExpress.Utils.DefaultBoolean.False;
            this.pgDateTimeColumn.OptionsColumn.FixedWidth = true;
            this.pgDateTimeColumn.OptionsColumn.ImmediateUpdateRowPosition = DevExpress.Utils.DefaultBoolean.False;
            this.pgDateTimeColumn.OptionsColumn.Printable = DevExpress.Utils.DefaultBoolean.False;
            this.pgDateTimeColumn.OptionsColumn.ReadOnly = true;
            this.pgDateTimeColumn.OptionsFilter.AllowAutoFilter = false;
            this.pgDateTimeColumn.OptionsFilter.AllowFilter = false;
            this.pgDateTimeColumn.OptionsFilter.ImmediateUpdateAutoFilter = false;
            this.pgDateTimeColumn.OptionsFilter.ShowEmptyDateFilter = false;
            this.pgDateTimeColumn.Visible = true;
            this.pgDateTimeColumn.VisibleIndex = 1;
            this.pgDateTimeColumn.Width = 127;
            // 
            // pgMemoColumn
            // 
            this.pgMemoColumn.Caption = "Memo";
            this.pgMemoColumn.FieldName = "MEMO";
            this.pgMemoColumn.Name = "pgMemoColumn";
            this.pgMemoColumn.OptionsColumn.AllowEdit = false;
            this.pgMemoColumn.OptionsColumn.AllowFocus = false;
            this.pgMemoColumn.OptionsColumn.AllowGroup = DevExpress.Utils.DefaultBoolean.False;
            this.pgMemoColumn.OptionsColumn.AllowIncrementalSearch = false;
            this.pgMemoColumn.OptionsColumn.AllowMerge = DevExpress.Utils.DefaultBoolean.False;
            this.pgMemoColumn.OptionsColumn.AllowMove = false;
            this.pgMemoColumn.OptionsColumn.AllowShowHide = false;
            this.pgMemoColumn.OptionsColumn.AllowSize = false;
            this.pgMemoColumn.OptionsColumn.AllowSort = DevExpress.Utils.DefaultBoolean.False;
            this.pgMemoColumn.OptionsColumn.FixedWidth = true;
            this.pgMemoColumn.OptionsColumn.ImmediateUpdateRowPosition = DevExpress.Utils.DefaultBoolean.False;
            this.pgMemoColumn.OptionsColumn.Printable = DevExpress.Utils.DefaultBoolean.False;
            this.pgMemoColumn.OptionsColumn.ReadOnly = true;
            this.pgMemoColumn.OptionsFilter.AllowAutoFilter = false;
            this.pgMemoColumn.OptionsFilter.AllowFilter = false;
            this.pgMemoColumn.OptionsFilter.ImmediateUpdateAutoFilter = false;
            this.pgMemoColumn.OptionsFilter.ShowEmptyDateFilter = false;
            this.pgMemoColumn.Visible = true;
            this.pgMemoColumn.VisibleIndex = 2;
            this.pgMemoColumn.Width = 140;
            // 
            // okButton
            // 
            this.okButton.DialogResult = System.Windows.Forms.DialogResult.OK;
            this.okButton.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.okButton.Image = ((System.Drawing.Image)(resources.GetObject("okButton.Image")));
            this.okButton.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
            this.okButton.Location = new System.Drawing.Point(196, 366);
            this.okButton.Name = "okButton";
            this.okButton.Padding = new System.Windows.Forms.Padding(8, 0, 0, 0);
            this.okButton.Size = new System.Drawing.Size(100, 32);
            this.okButton.TabIndex = 2;
            this.okButton.Text = "Ok";
            this.okButton.UseVisualStyleBackColor = true;
            // 
            // cancelButton
            // 
            this.cancelButton.DialogResult = System.Windows.Forms.DialogResult.Cancel;
            this.cancelButton.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.cancelButton.Image = ((System.Drawing.Image)(resources.GetObject("cancelButton.Image")));
            this.cancelButton.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
            this.cancelButton.Location = new System.Drawing.Point(298, 366);
            this.cancelButton.Name = "cancelButton";
            this.cancelButton.Padding = new System.Windows.Forms.Padding(8, 0, 0, 0);
            this.cancelButton.Size = new System.Drawing.Size(100, 32);
            this.cancelButton.TabIndex = 3;
            this.cancelButton.Text = "Cancel";
            this.cancelButton.UseVisualStyleBackColor = true;
            // 
            // schDeleteButton
            // 
            this.schDeleteButton.Image = ((System.Drawing.Image)(resources.GetObject("schDeleteButton.Image")));
            this.schDeleteButton.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
            this.schDeleteButton.Location = new System.Drawing.Point(12, 366);
            this.schDeleteButton.Name = "schDeleteButton";
            this.schDeleteButton.Padding = new System.Windows.Forms.Padding(8, 0, 0, 0);
            this.schDeleteButton.Size = new System.Drawing.Size(100, 32);
            this.schDeleteButton.TabIndex = 1;
            this.schDeleteButton.TabStop = false;
            this.schDeleteButton.Text = "Delete";
            this.schDeleteButton.UseVisualStyleBackColor = true;
            this.schDeleteButton.Click += new System.EventHandler(this.schDeleteButton_Click);
            // 
            // FormOpenAllParam
            // 
            this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            this.ClientSize = new System.Drawing.Size(412, 407);
            this.KeyPreview = true;
            this.MaximizeBox = false;
            this.MinimizeBox = false;
            this.Name = "FormOpenAllParam";
            this.ShowIcon = false;
            this.ShowInTaskbar = false;
            this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
            this.Text = "Open All Parameters";
            this.Load += new System.EventHandler(this.FormOpenAllParam_Load);
            this.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.FormOpenAllParam_KeyPress);
            this.bgPanel.ResumeLayout(false);
            ((System.ComponentModel.ISupportInitialize)(this.paramGrid)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.paramGridView)).EndInit();
            this.ResumeLayout(false);
            this.PerformLayout();

        }

        #endregion

        private DevExpress.XtraGrid.GridControl paramGrid;
        private DevExpress.XtraGrid.Views.Grid.GridView paramGridView;
        private DevExpress.XtraGrid.Columns.GridColumn pgUserNameColumn;
        private DevExpress.XtraGrid.Columns.GridColumn pgDateTimeColumn;
        private DevExpress.XtraGrid.Columns.GridColumn pgMemoColumn;
        private System.Windows.Forms.Button okButton;
        private System.Windows.Forms.Button cancelButton;
        private System.Windows.Forms.Button schDeleteButton;
    }
}<file_sep>﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

using DevExpress.Utils;
using DevExpress.XtraGrid.Views.Base;

using Ulee.Controls;

namespace Hnc.Calorimeter.Client
{
    public partial class FormOpenDataBook : UlFormEng
    {
        public FormOpenDataBook(int handle)
        {
            InitializeComponent();

            this.handle = handle;
            Initialize();
        }

        private int handle;
        private DataBookDataSet dataSet;
        public Int64 RecNo { get; private set; }

        private void Initialize()
        {
            RecNo = -1;
            dataSet = Resource.ViewDB.DataBookSet;
        }

        private void FormOpenDataBook_Load(object sender, EventArgs e)
        {
            dataBookGridView.Appearance.EvenRow.BackColor = Color.FromArgb(244, 244, 236);
            dataBookGridView.OptionsView.EnableAppearanceEvenRow = true;

            dbStateColumn.DisplayFormat.FormatType = FormatType.Custom;
            dbStateColumn.DisplayFormat.Format = new DataBookStateTypeFmt();

            dbTestLineColumn.DisplayFormat.FormatType = FormatType.Custom;
            dbTestLineColumn.DisplayFormat.Format = new DataBookLineTypeFmt();

            resetButton.PerformClick();
            dataBookGrid.DataSource = dataSet.DataSet.Tables[0];
        }

        private void FormOpenDataBook_KeyPress(object sender, KeyPressEventArgs e)
        {
            if (e.KeyChar == (char)Keys.Escape)
            {
                cancelButton.PerformClick();
            }
        }

        private void searchButton_Click(object sender, EventArgs e)
        {
            SetCondition();

            Resource.ViewDB.Lock();
            try
            {
                dataSet.Select();
            }
            finally
            {
                Resource.ViewDB.Unlock();
            }
        }

        private void resetButton_Click(object sender, EventArgs e)
        {
            ResetCondition();
            searchButton.PerformClick();
        }

        private void okButton_Click(object sender, EventArgs e)
        {
            if (dataBookGridView.FocusedRowHandle < 0) return;

            DataRow row = dataBookGridView.GetDataRow(dataBookGridView.FocusedRowHandle);
            RecNo = Convert.ToInt64(row["pk_recno"]);
            Close();
        }

        private void cancelButton_Click(object sender, EventArgs e)
        {
            RecNo = -1;
            Close();
        }

        private void fromDateEdit_ValueChanged(object sender, EventArgs e)
        {
            if (fromDateEdit.Value > toDateEdit.Value)
            {
                toDateEdit.Value = fromDateEdit.Value;
            }
        }

        private void toDateEdit_ValueChanged(object sender, EventArgs e)
        {
            if (toDateEdit.Value < fromDateEdit.Value)
            {
                fromDateEdit.Value = toDateEdit.Value;
            }
        }

        private void dataBookGridView_CustomDrawCell(object sender, RowCellCustomDrawEventArgs e)
        {
            if (e.Column.FieldName == "State")
            {
                switch ((ETestState)e.CellValue)
                {
                    case ETestState.Stopped:
                        e.Appearance.ForeColor = Color.Red;
                        break;

                    case ETestState.Testing:
                        e.Appearance.ForeColor = Color.Black;
                        break;

                    case ETestState.Done:
                        e.Appearance.ForeColor = Color.Blue;
                        break;
                }

                e.Handled = true;
            }
        }

        private void dataBookGrid_DoubleClick(object sender, EventArgs e)
        {
            //if (dataBookGridView.FocusedRowHandle < 0) return;

            //okButton.PerformClick();
        }

        private void dataBookGridView_FocusedRowChanged(object sender, FocusedRowChangedEventArgs e)
        {
            //if (e.FocusedRowHandle < 0)
            //{
            //    RecNo = -1;
            //    return;
            //}

            //Resource.Db.Lock();
            //try
            //{
            //    DataRow row = dataBookGridView.GetDataRow(e.FocusedRowHandle);
            //    RecNo = Convert.ToInt64(row["pk_recno"]);
            //}
            //finally
            //{
            //    Resource.Db.Unlock();
            //}
        }

        private void SetCondition()
        {
            dataSet.Condition.TimeUsed = dateCheck.Checked;
            dataSet.Condition.FromTime = fromDateEdit.Value;
            dataSet.Condition.ToTime = toDateEdit.Value;
            dataSet.Condition.Line = lineCombo.SelectedIndex;
            dataSet.Condition.State = stateCombo.SelectedIndex;
        }

        private void ResetCondition()
        {
            dateCheck.Checked = true;
            fromDateEdit.Value = DateTime.Now.AddDays(-30);
            toDateEdit.Value = DateTime.Now;

            lineCombo.SelectedIndex = 0;
            stateCombo.SelectedIndex = 0;
        }
    }
}
<file_sep>﻿namespace Hnc.Calorimeter.Client
{
    partial class CtrlDeviceController
    {
        /// <summary> 
        /// Required designer variable.
        /// </summary>
        private System.ComponentModel.IContainer components = null;

        /// <summary> 
        /// Clean up any resources being used.
        /// </summary>
        /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
        protected override void Dispose(bool disposing)
        {
            if (disposing && (components != null))
            {
                components.Dispose();
            }
            base.Dispose(disposing);
        }

        #region Component Designer generated code

        /// <summary> 
        /// Required method for Designer support - do not modify 
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            this.view1Panel = new Ulee.Controls.UlPanel();
            this.view16Panel = new Ulee.Controls.UlPanel();
            this.view15Panel = new Ulee.Controls.UlPanel();
            this.view14Panel = new Ulee.Controls.UlPanel();
            this.view13Panel = new Ulee.Controls.UlPanel();
            this.view12Panel = new Ulee.Controls.UlPanel();
            this.view11Panel = new Ulee.Controls.UlPanel();
            this.view10Panel = new Ulee.Controls.UlPanel();
            this.view9Panel = new Ulee.Controls.UlPanel();
            this.view24Panel = new Ulee.Controls.UlPanel();
            this.view23Panel = new Ulee.Controls.UlPanel();
            this.view22Panel = new Ulee.Controls.UlPanel();
            this.view21Panel = new Ulee.Controls.UlPanel();
            this.view19Panel = new Ulee.Controls.UlPanel();
            this.view18Panel = new Ulee.Controls.UlPanel();
            this.view17Panel = new Ulee.Controls.UlPanel();
            this.view20Panel = new Ulee.Controls.UlPanel();
            this.view8Panel = new Ulee.Controls.UlPanel();
            this.view7Panel = new Ulee.Controls.UlPanel();
            this.view6Panel = new Ulee.Controls.UlPanel();
            this.view5Panel = new Ulee.Controls.UlPanel();
            this.view4Panel = new Ulee.Controls.UlPanel();
            this.view3Panel = new Ulee.Controls.UlPanel();
            this.view2Panel = new Ulee.Controls.UlPanel();
            this.view31Panel = new Ulee.Controls.UlPanel();
            this.view33Panel = new Ulee.Controls.UlPanel();
            this.view32Panel = new Ulee.Controls.UlPanel();
            this.view30Panel = new Ulee.Controls.UlPanel();
            this.view29Panel = new Ulee.Controls.UlPanel();
            this.view28Panel = new Ulee.Controls.UlPanel();
            this.view27Panel = new Ulee.Controls.UlPanel();
            this.view26Panel = new Ulee.Controls.UlPanel();
            this.view25Panel = new Ulee.Controls.UlPanel();
            this.bgPanel.SuspendLayout();
            this.SuspendLayout();
            // 
            // bgPanel
            // 
            this.bgPanel.BevelOuter = Ulee.Controls.EUlBevelStyle.None;
            this.bgPanel.Controls.Add(this.view31Panel);
            this.bgPanel.Controls.Add(this.view33Panel);
            this.bgPanel.Controls.Add(this.view32Panel);
            this.bgPanel.Controls.Add(this.view30Panel);
            this.bgPanel.Controls.Add(this.view29Panel);
            this.bgPanel.Controls.Add(this.view28Panel);
            this.bgPanel.Controls.Add(this.view27Panel);
            this.bgPanel.Controls.Add(this.view26Panel);
            this.bgPanel.Controls.Add(this.view25Panel);
            this.bgPanel.Controls.Add(this.view20Panel);
            this.bgPanel.Controls.Add(this.view24Panel);
            this.bgPanel.Controls.Add(this.view23Panel);
            this.bgPanel.Controls.Add(this.view22Panel);
            this.bgPanel.Controls.Add(this.view21Panel);
            this.bgPanel.Controls.Add(this.view19Panel);
            this.bgPanel.Controls.Add(this.view18Panel);
            this.bgPanel.Controls.Add(this.view17Panel);
            this.bgPanel.Controls.Add(this.view16Panel);
            this.bgPanel.Controls.Add(this.view15Panel);
            this.bgPanel.Controls.Add(this.view14Panel);
            this.bgPanel.Controls.Add(this.view13Panel);
            this.bgPanel.Controls.Add(this.view12Panel);
            this.bgPanel.Controls.Add(this.view11Panel);
            this.bgPanel.Controls.Add(this.view10Panel);
            this.bgPanel.Controls.Add(this.view9Panel);
            this.bgPanel.Controls.Add(this.view8Panel);
            this.bgPanel.Controls.Add(this.view7Panel);
            this.bgPanel.Controls.Add(this.view6Panel);
            this.bgPanel.Controls.Add(this.view5Panel);
            this.bgPanel.Controls.Add(this.view4Panel);
            this.bgPanel.Controls.Add(this.view3Panel);
            this.bgPanel.Controls.Add(this.view2Panel);
            this.bgPanel.Controls.Add(this.view1Panel);
            this.bgPanel.Size = new System.Drawing.Size(1816, 915);
            // 
            // view1Panel
            // 
            this.view1Panel.BevelInner = Ulee.Controls.EUlBevelStyle.None;
            this.view1Panel.BevelOuter = Ulee.Controls.EUlBevelStyle.None;
            this.view1Panel.InnerColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.view1Panel.InnerColor2 = System.Drawing.Color.White;
            this.view1Panel.Location = new System.Drawing.Point(0, 0);
            this.view1Panel.Name = "view1Panel";
            this.view1Panel.OuterColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.view1Panel.OuterColor2 = System.Drawing.Color.White;
            this.view1Panel.Size = new System.Drawing.Size(160, 300);
            this.view1Panel.Spacing = 0;
            this.view1Panel.TabIndex = 1;
            this.view1Panel.TextHAlign = Ulee.Controls.EUlHoriAlign.Center;
            this.view1Panel.TextVAlign = Ulee.Controls.EUlVertAlign.Middle;
            // 
            // view16Panel
            // 
            this.view16Panel.BevelInner = Ulee.Controls.EUlBevelStyle.None;
            this.view16Panel.BevelOuter = Ulee.Controls.EUlBevelStyle.None;
            this.view16Panel.InnerColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.view16Panel.InnerColor2 = System.Drawing.Color.White;
            this.view16Panel.Location = new System.Drawing.Point(663, 307);
            this.view16Panel.Name = "view16Panel";
            this.view16Panel.OuterColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.view16Panel.OuterColor2 = System.Drawing.Color.White;
            this.view16Panel.Size = new System.Drawing.Size(160, 300);
            this.view16Panel.Spacing = 0;
            this.view16Panel.TabIndex = 16;
            this.view16Panel.TextHAlign = Ulee.Controls.EUlHoriAlign.Center;
            this.view16Panel.TextVAlign = Ulee.Controls.EUlVertAlign.Middle;
            // 
            // view15Panel
            // 
            this.view15Panel.BevelInner = Ulee.Controls.EUlBevelStyle.None;
            this.view15Panel.BevelOuter = Ulee.Controls.EUlBevelStyle.None;
            this.view15Panel.InnerColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.view15Panel.InnerColor2 = System.Drawing.Color.White;
            this.view15Panel.Location = new System.Drawing.Point(498, 307);
            this.view15Panel.Name = "view15Panel";
            this.view15Panel.OuterColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.view15Panel.OuterColor2 = System.Drawing.Color.White;
            this.view15Panel.Size = new System.Drawing.Size(160, 300);
            this.view15Panel.Spacing = 0;
            this.view15Panel.TabIndex = 15;
            this.view15Panel.TextHAlign = Ulee.Controls.EUlHoriAlign.Center;
            this.view15Panel.TextVAlign = Ulee.Controls.EUlVertAlign.Middle;
            // 
            // view14Panel
            // 
            this.view14Panel.BevelInner = Ulee.Controls.EUlBevelStyle.None;
            this.view14Panel.BevelOuter = Ulee.Controls.EUlBevelStyle.None;
            this.view14Panel.InnerColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.view14Panel.InnerColor2 = System.Drawing.Color.White;
            this.view14Panel.Location = new System.Drawing.Point(332, 307);
            this.view14Panel.Name = "view14Panel";
            this.view14Panel.OuterColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.view14Panel.OuterColor2 = System.Drawing.Color.White;
            this.view14Panel.Size = new System.Drawing.Size(160, 300);
            this.view14Panel.Spacing = 0;
            this.view14Panel.TabIndex = 14;
            this.view14Panel.TextHAlign = Ulee.Controls.EUlHoriAlign.Center;
            this.view14Panel.TextVAlign = Ulee.Controls.EUlVertAlign.Middle;
            // 
            // view13Panel
            // 
            this.view13Panel.BevelInner = Ulee.Controls.EUlBevelStyle.None;
            this.view13Panel.BevelOuter = Ulee.Controls.EUlBevelStyle.None;
            this.view13Panel.InnerColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.view13Panel.InnerColor2 = System.Drawing.Color.White;
            this.view13Panel.Location = new System.Drawing.Point(166, 307);
            this.view13Panel.Name = "view13Panel";
            this.view13Panel.OuterColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.view13Panel.OuterColor2 = System.Drawing.Color.White;
            this.view13Panel.Size = new System.Drawing.Size(160, 300);
            this.view13Panel.Spacing = 0;
            this.view13Panel.TabIndex = 13;
            this.view13Panel.TextHAlign = Ulee.Controls.EUlHoriAlign.Center;
            this.view13Panel.TextVAlign = Ulee.Controls.EUlVertAlign.Middle;
            // 
            // view12Panel
            // 
            this.view12Panel.BevelInner = Ulee.Controls.EUlBevelStyle.None;
            this.view12Panel.BevelOuter = Ulee.Controls.EUlBevelStyle.None;
            this.view12Panel.InnerColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.view12Panel.InnerColor2 = System.Drawing.Color.White;
            this.view12Panel.Location = new System.Drawing.Point(0, 307);
            this.view12Panel.Name = "view12Panel";
            this.view12Panel.OuterColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.view12Panel.OuterColor2 = System.Drawing.Color.White;
            this.view12Panel.Size = new System.Drawing.Size(160, 300);
            this.view12Panel.Spacing = 0;
            this.view12Panel.TabIndex = 12;
            this.view12Panel.TextHAlign = Ulee.Controls.EUlHoriAlign.Center;
            this.view12Panel.TextVAlign = Ulee.Controls.EUlVertAlign.Middle;
            // 
            // view11Panel
            // 
            this.view11Panel.BevelInner = Ulee.Controls.EUlBevelStyle.None;
            this.view11Panel.BevelOuter = Ulee.Controls.EUlBevelStyle.None;
            this.view11Panel.InnerColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.view11Panel.InnerColor2 = System.Drawing.Color.White;
            this.view11Panel.Location = new System.Drawing.Point(1656, 0);
            this.view11Panel.Name = "view11Panel";
            this.view11Panel.OuterColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.view11Panel.OuterColor2 = System.Drawing.Color.White;
            this.view11Panel.Size = new System.Drawing.Size(160, 300);
            this.view11Panel.Spacing = 0;
            this.view11Panel.TabIndex = 11;
            this.view11Panel.TextHAlign = Ulee.Controls.EUlHoriAlign.Center;
            this.view11Panel.TextVAlign = Ulee.Controls.EUlVertAlign.Middle;
            // 
            // view10Panel
            // 
            this.view10Panel.BevelInner = Ulee.Controls.EUlBevelStyle.None;
            this.view10Panel.BevelOuter = Ulee.Controls.EUlBevelStyle.None;
            this.view10Panel.InnerColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.view10Panel.InnerColor2 = System.Drawing.Color.White;
            this.view10Panel.Location = new System.Drawing.Point(1490, 0);
            this.view10Panel.Name = "view10Panel";
            this.view10Panel.OuterColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.view10Panel.OuterColor2 = System.Drawing.Color.White;
            this.view10Panel.Size = new System.Drawing.Size(160, 300);
            this.view10Panel.Spacing = 0;
            this.view10Panel.TabIndex = 10;
            this.view10Panel.TextHAlign = Ulee.Controls.EUlHoriAlign.Center;
            this.view10Panel.TextVAlign = Ulee.Controls.EUlVertAlign.Middle;
            // 
            // view9Panel
            // 
            this.view9Panel.BevelInner = Ulee.Controls.EUlBevelStyle.None;
            this.view9Panel.BevelOuter = Ulee.Controls.EUlBevelStyle.None;
            this.view9Panel.InnerColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.view9Panel.InnerColor2 = System.Drawing.Color.White;
            this.view9Panel.Location = new System.Drawing.Point(1324, 0);
            this.view9Panel.Name = "view9Panel";
            this.view9Panel.OuterColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.view9Panel.OuterColor2 = System.Drawing.Color.White;
            this.view9Panel.Size = new System.Drawing.Size(160, 300);
            this.view9Panel.Spacing = 0;
            this.view9Panel.TabIndex = 9;
            this.view9Panel.TextHAlign = Ulee.Controls.EUlHoriAlign.Center;
            this.view9Panel.TextVAlign = Ulee.Controls.EUlVertAlign.Middle;
            // 
            // view24Panel
            // 
            this.view24Panel.BevelInner = Ulee.Controls.EUlBevelStyle.None;
            this.view24Panel.BevelOuter = Ulee.Controls.EUlBevelStyle.None;
            this.view24Panel.InnerColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.view24Panel.InnerColor2 = System.Drawing.Color.White;
            this.view24Panel.Location = new System.Drawing.Point(166, 615);
            this.view24Panel.Name = "view24Panel";
            this.view24Panel.OuterColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.view24Panel.OuterColor2 = System.Drawing.Color.White;
            this.view24Panel.Size = new System.Drawing.Size(160, 300);
            this.view24Panel.Spacing = 0;
            this.view24Panel.TabIndex = 24;
            this.view24Panel.TextHAlign = Ulee.Controls.EUlHoriAlign.Center;
            this.view24Panel.TextVAlign = Ulee.Controls.EUlVertAlign.Middle;
            // 
            // view23Panel
            // 
            this.view23Panel.BevelInner = Ulee.Controls.EUlBevelStyle.None;
            this.view23Panel.BevelOuter = Ulee.Controls.EUlBevelStyle.None;
            this.view23Panel.InnerColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.view23Panel.InnerColor2 = System.Drawing.Color.White;
            this.view23Panel.Location = new System.Drawing.Point(0, 615);
            this.view23Panel.Name = "view23Panel";
            this.view23Panel.OuterColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.view23Panel.OuterColor2 = System.Drawing.Color.White;
            this.view23Panel.Size = new System.Drawing.Size(160, 300);
            this.view23Panel.Spacing = 0;
            this.view23Panel.TabIndex = 23;
            this.view23Panel.TextHAlign = Ulee.Controls.EUlHoriAlign.Center;
            this.view23Panel.TextVAlign = Ulee.Controls.EUlVertAlign.Middle;
            // 
            // view22Panel
            // 
            this.view22Panel.BevelInner = Ulee.Controls.EUlBevelStyle.None;
            this.view22Panel.BevelOuter = Ulee.Controls.EUlBevelStyle.None;
            this.view22Panel.InnerColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.view22Panel.InnerColor2 = System.Drawing.Color.White;
            this.view22Panel.Location = new System.Drawing.Point(1656, 307);
            this.view22Panel.Name = "view22Panel";
            this.view22Panel.OuterColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.view22Panel.OuterColor2 = System.Drawing.Color.White;
            this.view22Panel.Size = new System.Drawing.Size(160, 300);
            this.view22Panel.Spacing = 0;
            this.view22Panel.TabIndex = 22;
            this.view22Panel.TextHAlign = Ulee.Controls.EUlHoriAlign.Center;
            this.view22Panel.TextVAlign = Ulee.Controls.EUlVertAlign.Middle;
            // 
            // view21Panel
            // 
            this.view21Panel.BevelInner = Ulee.Controls.EUlBevelStyle.None;
            this.view21Panel.BevelOuter = Ulee.Controls.EUlBevelStyle.None;
            this.view21Panel.InnerColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.view21Panel.InnerColor2 = System.Drawing.Color.White;
            this.view21Panel.Location = new System.Drawing.Point(1490, 307);
            this.view21Panel.Name = "view21Panel";
            this.view21Panel.OuterColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.view21Panel.OuterColor2 = System.Drawing.Color.White;
            this.view21Panel.Size = new System.Drawing.Size(160, 300);
            this.view21Panel.Spacing = 0;
            this.view21Panel.TabIndex = 21;
            this.view21Panel.TextHAlign = Ulee.Controls.EUlHoriAlign.Center;
            this.view21Panel.TextVAlign = Ulee.Controls.EUlVertAlign.Middle;
            // 
            // view19Panel
            // 
            this.view19Panel.BevelInner = Ulee.Controls.EUlBevelStyle.None;
            this.view19Panel.BevelOuter = Ulee.Controls.EUlBevelStyle.None;
            this.view19Panel.InnerColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.view19Panel.InnerColor2 = System.Drawing.Color.White;
            this.view19Panel.Location = new System.Drawing.Point(1158, 307);
            this.view19Panel.Name = "view19Panel";
            this.view19Panel.OuterColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.view19Panel.OuterColor2 = System.Drawing.Color.White;
            this.view19Panel.Size = new System.Drawing.Size(160, 300);
            this.view19Panel.Spacing = 0;
            this.view19Panel.TabIndex = 19;
            this.view19Panel.TextHAlign = Ulee.Controls.EUlHoriAlign.Center;
            this.view19Panel.TextVAlign = Ulee.Controls.EUlVertAlign.Middle;
            // 
            // view18Panel
            // 
            this.view18Panel.BevelInner = Ulee.Controls.EUlBevelStyle.None;
            this.view18Panel.BevelOuter = Ulee.Controls.EUlBevelStyle.None;
            this.view18Panel.InnerColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.view18Panel.InnerColor2 = System.Drawing.Color.White;
            this.view18Panel.Location = new System.Drawing.Point(993, 307);
            this.view18Panel.Name = "view18Panel";
            this.view18Panel.OuterColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.view18Panel.OuterColor2 = System.Drawing.Color.White;
            this.view18Panel.Size = new System.Drawing.Size(160, 300);
            this.view18Panel.Spacing = 0;
            this.view18Panel.TabIndex = 18;
            this.view18Panel.TextHAlign = Ulee.Controls.EUlHoriAlign.Center;
            this.view18Panel.TextVAlign = Ulee.Controls.EUlVertAlign.Middle;
            // 
            // view17Panel
            // 
            this.view17Panel.BevelInner = Ulee.Controls.EUlBevelStyle.None;
            this.view17Panel.BevelOuter = Ulee.Controls.EUlBevelStyle.None;
            this.view17Panel.InnerColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.view17Panel.InnerColor2 = System.Drawing.Color.White;
            this.view17Panel.Location = new System.Drawing.Point(828, 307);
            this.view17Panel.Name = "view17Panel";
            this.view17Panel.OuterColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.view17Panel.OuterColor2 = System.Drawing.Color.White;
            this.view17Panel.Size = new System.Drawing.Size(160, 300);
            this.view17Panel.Spacing = 0;
            this.view17Panel.TabIndex = 17;
            this.view17Panel.TextHAlign = Ulee.Controls.EUlHoriAlign.Center;
            this.view17Panel.TextVAlign = Ulee.Controls.EUlVertAlign.Middle;
            // 
            // view20Panel
            // 
            this.view20Panel.BevelInner = Ulee.Controls.EUlBevelStyle.None;
            this.view20Panel.BevelOuter = Ulee.Controls.EUlBevelStyle.None;
            this.view20Panel.InnerColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.view20Panel.InnerColor2 = System.Drawing.Color.White;
            this.view20Panel.Location = new System.Drawing.Point(1324, 307);
            this.view20Panel.Name = "view20Panel";
            this.view20Panel.OuterColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.view20Panel.OuterColor2 = System.Drawing.Color.White;
            this.view20Panel.Size = new System.Drawing.Size(160, 300);
            this.view20Panel.Spacing = 0;
            this.view20Panel.TabIndex = 20;
            this.view20Panel.TextHAlign = Ulee.Controls.EUlHoriAlign.Center;
            this.view20Panel.TextVAlign = Ulee.Controls.EUlVertAlign.Middle;
            // 
            // view8Panel
            // 
            this.view8Panel.BevelInner = Ulee.Controls.EUlBevelStyle.None;
            this.view8Panel.BevelOuter = Ulee.Controls.EUlBevelStyle.None;
            this.view8Panel.InnerColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.view8Panel.InnerColor2 = System.Drawing.Color.White;
            this.view8Panel.Location = new System.Drawing.Point(1158, 0);
            this.view8Panel.Name = "view8Panel";
            this.view8Panel.OuterColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.view8Panel.OuterColor2 = System.Drawing.Color.White;
            this.view8Panel.Size = new System.Drawing.Size(160, 300);
            this.view8Panel.Spacing = 0;
            this.view8Panel.TabIndex = 8;
            this.view8Panel.TextHAlign = Ulee.Controls.EUlHoriAlign.Center;
            this.view8Panel.TextVAlign = Ulee.Controls.EUlVertAlign.Middle;
            // 
            // view7Panel
            // 
            this.view7Panel.BevelInner = Ulee.Controls.EUlBevelStyle.None;
            this.view7Panel.BevelOuter = Ulee.Controls.EUlBevelStyle.None;
            this.view7Panel.InnerColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.view7Panel.InnerColor2 = System.Drawing.Color.White;
            this.view7Panel.Location = new System.Drawing.Point(993, 0);
            this.view7Panel.Name = "view7Panel";
            this.view7Panel.OuterColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.view7Panel.OuterColor2 = System.Drawing.Color.White;
            this.view7Panel.Size = new System.Drawing.Size(160, 300);
            this.view7Panel.Spacing = 0;
            this.view7Panel.TabIndex = 7;
            this.view7Panel.TextHAlign = Ulee.Controls.EUlHoriAlign.Center;
            this.view7Panel.TextVAlign = Ulee.Controls.EUlVertAlign.Middle;
            // 
            // view6Panel
            // 
            this.view6Panel.BevelInner = Ulee.Controls.EUlBevelStyle.None;
            this.view6Panel.BevelOuter = Ulee.Controls.EUlBevelStyle.None;
            this.view6Panel.InnerColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.view6Panel.InnerColor2 = System.Drawing.Color.White;
            this.view6Panel.Location = new System.Drawing.Point(828, 0);
            this.view6Panel.Name = "view6Panel";
            this.view6Panel.OuterColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.view6Panel.OuterColor2 = System.Drawing.Color.White;
            this.view6Panel.Size = new System.Drawing.Size(160, 300);
            this.view6Panel.Spacing = 0;
            this.view6Panel.TabIndex = 6;
            this.view6Panel.TextHAlign = Ulee.Controls.EUlHoriAlign.Center;
            this.view6Panel.TextVAlign = Ulee.Controls.EUlVertAlign.Middle;
            // 
            // view5Panel
            // 
            this.view5Panel.BevelInner = Ulee.Controls.EUlBevelStyle.None;
            this.view5Panel.BevelOuter = Ulee.Controls.EUlBevelStyle.None;
            this.view5Panel.InnerColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.view5Panel.InnerColor2 = System.Drawing.Color.White;
            this.view5Panel.Location = new System.Drawing.Point(663, 0);
            this.view5Panel.Name = "view5Panel";
            this.view5Panel.OuterColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.view5Panel.OuterColor2 = System.Drawing.Color.White;
            this.view5Panel.Size = new System.Drawing.Size(160, 300);
            this.view5Panel.Spacing = 0;
            this.view5Panel.TabIndex = 5;
            this.view5Panel.TextHAlign = Ulee.Controls.EUlHoriAlign.Center;
            this.view5Panel.TextVAlign = Ulee.Controls.EUlVertAlign.Middle;
            // 
            // view4Panel
            // 
            this.view4Panel.BevelInner = Ulee.Controls.EUlBevelStyle.None;
            this.view4Panel.BevelOuter = Ulee.Controls.EUlBevelStyle.None;
            this.view4Panel.InnerColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.view4Panel.InnerColor2 = System.Drawing.Color.White;
            this.view4Panel.Location = new System.Drawing.Point(498, 0);
            this.view4Panel.Name = "view4Panel";
            this.view4Panel.OuterColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.view4Panel.OuterColor2 = System.Drawing.Color.White;
            this.view4Panel.Size = new System.Drawing.Size(160, 300);
            this.view4Panel.Spacing = 0;
            this.view4Panel.TabIndex = 4;
            this.view4Panel.TextHAlign = Ulee.Controls.EUlHoriAlign.Center;
            this.view4Panel.TextVAlign = Ulee.Controls.EUlVertAlign.Middle;
            // 
            // view3Panel
            // 
            this.view3Panel.BevelInner = Ulee.Controls.EUlBevelStyle.None;
            this.view3Panel.BevelOuter = Ulee.Controls.EUlBevelStyle.None;
            this.view3Panel.InnerColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.view3Panel.InnerColor2 = System.Drawing.Color.White;
            this.view3Panel.Location = new System.Drawing.Point(332, 0);
            this.view3Panel.Name = "view3Panel";
            this.view3Panel.OuterColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.view3Panel.OuterColor2 = System.Drawing.Color.White;
            this.view3Panel.Size = new System.Drawing.Size(160, 300);
            this.view3Panel.Spacing = 0;
            this.view3Panel.TabIndex = 3;
            this.view3Panel.TextHAlign = Ulee.Controls.EUlHoriAlign.Center;
            this.view3Panel.TextVAlign = Ulee.Controls.EUlVertAlign.Middle;
            // 
            // view2Panel
            // 
            this.view2Panel.BevelInner = Ulee.Controls.EUlBevelStyle.None;
            this.view2Panel.BevelOuter = Ulee.Controls.EUlBevelStyle.None;
            this.view2Panel.InnerColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.view2Panel.InnerColor2 = System.Drawing.Color.White;
            this.view2Panel.Location = new System.Drawing.Point(166, 0);
            this.view2Panel.Name = "view2Panel";
            this.view2Panel.OuterColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.view2Panel.OuterColor2 = System.Drawing.Color.White;
            this.view2Panel.Size = new System.Drawing.Size(160, 300);
            this.view2Panel.Spacing = 0;
            this.view2Panel.TabIndex = 2;
            this.view2Panel.TextHAlign = Ulee.Controls.EUlHoriAlign.Center;
            this.view2Panel.TextVAlign = Ulee.Controls.EUlVertAlign.Middle;
            // 
            // view31Panel
            // 
            this.view31Panel.BevelInner = Ulee.Controls.EUlBevelStyle.None;
            this.view31Panel.BevelOuter = Ulee.Controls.EUlBevelStyle.None;
            this.view31Panel.InnerColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.view31Panel.InnerColor2 = System.Drawing.Color.White;
            this.view31Panel.Location = new System.Drawing.Point(1324, 615);
            this.view31Panel.Name = "view31Panel";
            this.view31Panel.OuterColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.view31Panel.OuterColor2 = System.Drawing.Color.White;
            this.view31Panel.Size = new System.Drawing.Size(160, 300);
            this.view31Panel.Spacing = 0;
            this.view31Panel.TabIndex = 31;
            this.view31Panel.TextHAlign = Ulee.Controls.EUlHoriAlign.Center;
            this.view31Panel.TextVAlign = Ulee.Controls.EUlVertAlign.Middle;
            // 
            // view33Panel
            // 
            this.view33Panel.BevelInner = Ulee.Controls.EUlBevelStyle.None;
            this.view33Panel.BevelOuter = Ulee.Controls.EUlBevelStyle.None;
            this.view33Panel.InnerColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.view33Panel.InnerColor2 = System.Drawing.Color.White;
            this.view33Panel.Location = new System.Drawing.Point(1656, 615);
            this.view33Panel.Name = "view33Panel";
            this.view33Panel.OuterColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.view33Panel.OuterColor2 = System.Drawing.Color.White;
            this.view33Panel.Size = new System.Drawing.Size(160, 300);
            this.view33Panel.Spacing = 0;
            this.view33Panel.TabIndex = 33;
            this.view33Panel.TextHAlign = Ulee.Controls.EUlHoriAlign.Center;
            this.view33Panel.TextVAlign = Ulee.Controls.EUlVertAlign.Middle;
            // 
            // view32Panel
            // 
            this.view32Panel.BevelInner = Ulee.Controls.EUlBevelStyle.None;
            this.view32Panel.BevelOuter = Ulee.Controls.EUlBevelStyle.None;
            this.view32Panel.InnerColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.view32Panel.InnerColor2 = System.Drawing.Color.White;
            this.view32Panel.Location = new System.Drawing.Point(1490, 615);
            this.view32Panel.Name = "view32Panel";
            this.view32Panel.OuterColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.view32Panel.OuterColor2 = System.Drawing.Color.White;
            this.view32Panel.Size = new System.Drawing.Size(160, 300);
            this.view32Panel.Spacing = 0;
            this.view32Panel.TabIndex = 32;
            this.view32Panel.TextHAlign = Ulee.Controls.EUlHoriAlign.Center;
            this.view32Panel.TextVAlign = Ulee.Controls.EUlVertAlign.Middle;
            // 
            // view30Panel
            // 
            this.view30Panel.BevelInner = Ulee.Controls.EUlBevelStyle.None;
            this.view30Panel.BevelOuter = Ulee.Controls.EUlBevelStyle.None;
            this.view30Panel.InnerColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.view30Panel.InnerColor2 = System.Drawing.Color.White;
            this.view30Panel.Location = new System.Drawing.Point(1158, 615);
            this.view30Panel.Name = "view30Panel";
            this.view30Panel.OuterColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.view30Panel.OuterColor2 = System.Drawing.Color.White;
            this.view30Panel.Size = new System.Drawing.Size(160, 300);
            this.view30Panel.Spacing = 0;
            this.view30Panel.TabIndex = 30;
            this.view30Panel.TextHAlign = Ulee.Controls.EUlHoriAlign.Center;
            this.view30Panel.TextVAlign = Ulee.Controls.EUlVertAlign.Middle;
            // 
            // view29Panel
            // 
            this.view29Panel.BevelInner = Ulee.Controls.EUlBevelStyle.None;
            this.view29Panel.BevelOuter = Ulee.Controls.EUlBevelStyle.None;
            this.view29Panel.InnerColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.view29Panel.InnerColor2 = System.Drawing.Color.White;
            this.view29Panel.Location = new System.Drawing.Point(993, 615);
            this.view29Panel.Name = "view29Panel";
            this.view29Panel.OuterColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.view29Panel.OuterColor2 = System.Drawing.Color.White;
            this.view29Panel.Size = new System.Drawing.Size(160, 300);
            this.view29Panel.Spacing = 0;
            this.view29Panel.TabIndex = 29;
            this.view29Panel.TextHAlign = Ulee.Controls.EUlHoriAlign.Center;
            this.view29Panel.TextVAlign = Ulee.Controls.EUlVertAlign.Middle;
            // 
            // view28Panel
            // 
            this.view28Panel.BevelInner = Ulee.Controls.EUlBevelStyle.None;
            this.view28Panel.BevelOuter = Ulee.Controls.EUlBevelStyle.None;
            this.view28Panel.InnerColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.view28Panel.InnerColor2 = System.Drawing.Color.White;
            this.view28Panel.Location = new System.Drawing.Point(828, 615);
            this.view28Panel.Name = "view28Panel";
            this.view28Panel.OuterColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.view28Panel.OuterColor2 = System.Drawing.Color.White;
            this.view28Panel.Size = new System.Drawing.Size(160, 300);
            this.view28Panel.Spacing = 0;
            this.view28Panel.TabIndex = 28;
            this.view28Panel.TextHAlign = Ulee.Controls.EUlHoriAlign.Center;
            this.view28Panel.TextVAlign = Ulee.Controls.EUlVertAlign.Middle;
            // 
            // view27Panel
            // 
            this.view27Panel.BevelInner = Ulee.Controls.EUlBevelStyle.None;
            this.view27Panel.BevelOuter = Ulee.Controls.EUlBevelStyle.None;
            this.view27Panel.InnerColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.view27Panel.InnerColor2 = System.Drawing.Color.White;
            this.view27Panel.Location = new System.Drawing.Point(663, 615);
            this.view27Panel.Name = "view27Panel";
            this.view27Panel.OuterColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.view27Panel.OuterColor2 = System.Drawing.Color.White;
            this.view27Panel.Size = new System.Drawing.Size(160, 300);
            this.view27Panel.Spacing = 0;
            this.view27Panel.TabIndex = 27;
            this.view27Panel.TextHAlign = Ulee.Controls.EUlHoriAlign.Center;
            this.view27Panel.TextVAlign = Ulee.Controls.EUlVertAlign.Middle;
            // 
            // view26Panel
            // 
            this.view26Panel.BevelInner = Ulee.Controls.EUlBevelStyle.None;
            this.view26Panel.BevelOuter = Ulee.Controls.EUlBevelStyle.None;
            this.view26Panel.InnerColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.view26Panel.InnerColor2 = System.Drawing.Color.White;
            this.view26Panel.Location = new System.Drawing.Point(498, 615);
            this.view26Panel.Name = "view26Panel";
            this.view26Panel.OuterColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.view26Panel.OuterColor2 = System.Drawing.Color.White;
            this.view26Panel.Size = new System.Drawing.Size(160, 300);
            this.view26Panel.Spacing = 0;
            this.view26Panel.TabIndex = 26;
            this.view26Panel.TextHAlign = Ulee.Controls.EUlHoriAlign.Center;
            this.view26Panel.TextVAlign = Ulee.Controls.EUlVertAlign.Middle;
            // 
            // view25Panel
            // 
            this.view25Panel.BevelInner = Ulee.Controls.EUlBevelStyle.None;
            this.view25Panel.BevelOuter = Ulee.Controls.EUlBevelStyle.None;
            this.view25Panel.InnerColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.view25Panel.InnerColor2 = System.Drawing.Color.White;
            this.view25Panel.Location = new System.Drawing.Point(332, 615);
            this.view25Panel.Name = "view25Panel";
            this.view25Panel.OuterColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.view25Panel.OuterColor2 = System.Drawing.Color.White;
            this.view25Panel.Size = new System.Drawing.Size(160, 300);
            this.view25Panel.Spacing = 0;
            this.view25Panel.TabIndex = 25;
            this.view25Panel.TextHAlign = Ulee.Controls.EUlHoriAlign.Center;
            this.view25Panel.TextVAlign = Ulee.Controls.EUlVertAlign.Middle;
            // 
            // CtrlDeviceController
            // 
            this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            this.Name = "CtrlDeviceController";
            this.Size = new System.Drawing.Size(1816, 915);
            this.bgPanel.ResumeLayout(false);
            this.ResumeLayout(false);
            this.PerformLayout();

        }

        #endregion
        private Ulee.Controls.UlPanel view1Panel;
        private Ulee.Controls.UlPanel view24Panel;
        private Ulee.Controls.UlPanel view23Panel;
        private Ulee.Controls.UlPanel view22Panel;
        private Ulee.Controls.UlPanel view21Panel;
        private Ulee.Controls.UlPanel view19Panel;
        private Ulee.Controls.UlPanel view18Panel;
        private Ulee.Controls.UlPanel view17Panel;
        private Ulee.Controls.UlPanel view16Panel;
        private Ulee.Controls.UlPanel view15Panel;
        private Ulee.Controls.UlPanel view14Panel;
        private Ulee.Controls.UlPanel view13Panel;
        private Ulee.Controls.UlPanel view12Panel;
        private Ulee.Controls.UlPanel view11Panel;
        private Ulee.Controls.UlPanel view10Panel;
        private Ulee.Controls.UlPanel view9Panel;
        private Ulee.Controls.UlPanel view20Panel;
        private Ulee.Controls.UlPanel view31Panel;
        private Ulee.Controls.UlPanel view33Panel;
        private Ulee.Controls.UlPanel view32Panel;
        private Ulee.Controls.UlPanel view30Panel;
        private Ulee.Controls.UlPanel view29Panel;
        private Ulee.Controls.UlPanel view28Panel;
        private Ulee.Controls.UlPanel view27Panel;
        private Ulee.Controls.UlPanel view26Panel;
        private Ulee.Controls.UlPanel view25Panel;
        private Ulee.Controls.UlPanel view8Panel;
        private Ulee.Controls.UlPanel view7Panel;
        private Ulee.Controls.UlPanel view6Panel;
        private Ulee.Controls.UlPanel view5Panel;
        private Ulee.Controls.UlPanel view4Panel;
        private Ulee.Controls.UlPanel view3Panel;
        private Ulee.Controls.UlPanel view2Panel;
    }
}
<file_sep>﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using System.Windows.Forms;

using Ulee.Controls;

namespace Hnc.Calorimeter.Client
{
    public partial class CtrlTestLeft : UlUserControlEng
    {
        public CtrlTestLeft()
        {
            InitializeComponent();
            Initialize();
        }

        private void Initialize()
        {
            DefMenu = new UlMenu(viewPanel);
            DefMenu.Add(new CtrlTestRight(0), line1Button);
            DefMenu.Add(new CtrlTestRight(1), line2Button);
            DefMenu.Add(new CtrlTestRight(2), line3Button);
            DefMenu.Add(new CtrlTestRight(3), line4Button);
        }

        private void CtrlTestTop_Load(object sender, EventArgs e)
        {
            DefMenu.Index = 0;
        }
    }
}
<file_sep>﻿using System;
using System.Data;
using System.Drawing;
using System.Threading;
using System.Windows.Forms;

using DevExpress.XtraGrid;
using DevExpress.XtraGrid.Views.Base;
using DevExpress.XtraGrid.Views.Grid;

using Ulee.Controls;
using Ulee.Device.Connection;
using Ulee.Device.Connection.Yokogawa;

namespace Hnc.Calorimeter.Server
{
    public partial class CtrlViewDevice : UlUserControlEng
    {
        public CtrlViewDevice()
        {
            InitializeComponent();
            Initialize();
        }

        private void CtrlViewDevice_Enter(object sender, EventArgs e)
        {
            powerMeterGridView.RefreshData();
            controllerGridView.RefreshData();
            recorderGridView.RefreshData();
            plcGridView.RefreshData();
        }

        private void Initialize()
        {
            Color evenColor = Color.FromArgb(244, 244, 236);

            powerMeterGrid.DataSource = Resource.Server.Devices.PowerMeter;
            powerMeterGridView.Appearance.EvenRow.BackColor = evenColor;
            powerMeterGridView.OptionsView.EnableAppearanceEvenRow = true;

            recorderGrid.DataSource = Resource.Server.Devices.Recorder;
            recorderGridView.Appearance.EvenRow.BackColor = evenColor;
            recorderGridView.OptionsView.EnableAppearanceEvenRow = true;

            controllerGrid.DataSource = Resource.Server.Devices.Controller;
            controllerGridView.Appearance.EvenRow.BackColor = evenColor;
            controllerGridView.OptionsView.EnableAppearanceEvenRow = true;

            plcGrid.DataSource = Resource.Server.Devices.Plc;
            plcGridView.Appearance.EvenRow.BackColor = evenColor;
            plcGridView.OptionsView.EnableAppearanceEvenRow = true;

            for (int i = 0; i < Resource.Server.Devices.PowerMeter.Count; i++)
            {
                Resource.Server.Devices.PowerMeter[i].AddAfterExceptionHandler(DoAfterGridException);
            }

            for (int i = 0; i < Resource.Server.Devices.Recorder.Count; i++)
            {
                Resource.Server.Devices.Recorder[i].AddAfterExceptionHandler(DoAfterGridException);
            }

            for (int i = 0; i < Resource.Server.Devices.Controller.Count; i++)
            {
                Resource.Server.Devices.Controller[i].AddAfterExceptionHandler(DoAfterGridException);
            }

            for (int i = 0; i < Resource.Server.Devices.Plc.Count; i++)
            {
                Resource.Server.Devices.Plc[i].AddAfterExceptionHandler(DoAfterGridException);
            }
        }

        private void modifyButton_Click(object sender, EventArgs args)
        {
            if (Resource.Authority > EUserAuthority.Admin) return;

            int tag = int.Parse((sender as Button).Tag.ToString());
            GridView view = GetGridView(tag);

            if (view.FocusedRowHandle < 0) return;

            UlEthernetClient client = GetEthernetClient(tag, view.FocusedRowHandle);

            FormDeviceEdit form = new FormDeviceEdit();

            form.Text = $"{client.Name} Modify";
            Resource.TLog.Log((int)ELogItem.Note, $"Clicked {form.Text} button.");

            form.linkCombo.SelectedIndex =
                (client.Connected == false) ? (int)EEthernetLink.Disconnect : (int)EEthernetLink.Connect;
            form.modeCombo.SelectedIndex = (int)client.Mode;

            if (form.ShowDialog() == DialogResult.OK)
            {
                bool link = (form.linkCombo.SelectedIndex == (int)EEthernetLink.Disconnect) ? false : true;

                if (client.Connected != link)
                {
                    try
                    {
                        if (link == true)
                        {
                            Resource.TLog.Log((int)ELogItem.Note, $"Try to Connect TCP socket of {client.Name}");
                            client.Close();
                            client.Connect();
                            Resource.TLog.Log((int)ELogItem.Note, $"Connected TCP socket of {client.Name}");
                        }
                        else
                        {
                            client.Close();
                            Resource.TLog.Log((int)ELogItem.Note, $"Disconnected TCP socket of {client.Name}");
                        }

                        client.Mode = (EEthernetMode)form.modeCombo.SelectedIndex;
                        Resource.TLog.Log((int)ELogItem.Note, $"Changed mode of {client.Name} to {client.Mode.ToString()}");
                    }
                    catch (Exception e)
                    {
                        Resource.TLog.Log((int)ELogItem.Exception, e.ToString());

                        MessageBox.Show(
                            $"Can't change mode of {client.Name}!\r\nPlease check this device and cabling.",
                            Resource.Caption, MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
                    }
                }

                view.RefreshData();
            }
        }

        private GridView GetGridView(int index)
        {
            GridView view = null;

            switch (index)
            {
                case 0:
                    view = powerMeterGridView;
                    break;

                case 1:
                    view = recorderGridView;
                    break;

                case 2:
                    view = controllerGridView;
                    break;

                case 3:
                    view = plcGridView;
                    break;
            }

            return view;
        }

        private UlEthernetClient GetEthernetClient(int index, int row)
        {
            UlEthernetClient client = null;

            switch (index)
            {
                case 0:
                    client = Resource.Server.Devices.PowerMeter[row];
                    break;

                case 1:
                    client = Resource.Server.Devices.Recorder[row];
                    break;

                case 2:
                    client = Resource.Server.Devices.Controller[row];
                    break;

                case 3:
                    client = Resource.Server.Devices.Plc[row];
                    break;
            }

            return client;
        }

        private void DoAfterGridException(object sender, EventArgs e)
        {
            if (this.InvokeRequired == true)
            {
                EventHandler func = new EventHandler(DoAfterGridException);
                this.BeginInvoke(func, new object[] { sender, e });
            }
            else
            {
                powerMeterGridView.RefreshData();
                controllerGridView.RefreshData();
                recorderGridView.RefreshData();
                plcGridView.RefreshData();
            }
        }
    }
}
<file_sep>﻿namespace Hnc.Calorimeter.Server
{
    partial class CtrlViewClient
    {
        /// <summary> 
        /// Required designer variable.
        /// </summary>
        private System.ComponentModel.IContainer components = null;

        /// <summary> 
        /// Clean up any resources being used.
        /// </summary>
        /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
        protected override void Dispose(bool disposing)
        {
            if (disposing && (components != null))
            {
                components.Dispose();
            }
            base.Dispose(disposing);
        }

        #region Component Designer generated code

        /// <summary> 
        /// Required method for Designer support - do not modify 
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            this.clientGrid = new DevExpress.XtraGrid.GridControl();
            this.clientGridView = new DevExpress.XtraGrid.Views.Grid.GridView();
            this.cgNoColumn = new DevExpress.XtraGrid.Columns.GridColumn();
            this.cgConnectedTimeColumn = new DevExpress.XtraGrid.Columns.GridColumn();
            this.cgIpColumn = new DevExpress.XtraGrid.Columns.GridColumn();
            this.cgPortColumn = new DevExpress.XtraGrid.Columns.GridColumn();
            this.cgStateColumn = new DevExpress.XtraGrid.Columns.GridColumn();
            this.cgScanTimeColumn = new DevExpress.XtraGrid.Columns.GridColumn();
            this.bgPanel.SuspendLayout();
            ((System.ComponentModel.ISupportInitialize)(this.clientGrid)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.clientGridView)).BeginInit();
            this.SuspendLayout();
            // 
            // bgPanel
            // 
            this.bgPanel.Controls.Add(this.clientGrid);
            this.bgPanel.Size = new System.Drawing.Size(904, 645);
            // 
            // clientGrid
            // 
            this.clientGrid.Dock = System.Windows.Forms.DockStyle.Fill;
            this.clientGrid.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.clientGrid.Location = new System.Drawing.Point(0, 0);
            this.clientGrid.MainView = this.clientGridView;
            this.clientGrid.Name = "clientGrid";
            this.clientGrid.Size = new System.Drawing.Size(904, 645);
            this.clientGrid.TabIndex = 2;
            this.clientGrid.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] {
            this.clientGridView});
            // 
            // clientGridView
            // 
            this.clientGridView.Appearance.EvenRow.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.clientGridView.Appearance.EvenRow.Options.UseFont = true;
            this.clientGridView.Appearance.FixedLine.Font = new System.Drawing.Font("Arial", 9F);
            this.clientGridView.Appearance.FixedLine.Options.UseFont = true;
            this.clientGridView.Appearance.FocusedCell.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.clientGridView.Appearance.FocusedCell.Options.UseFont = true;
            this.clientGridView.Appearance.FocusedRow.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.clientGridView.Appearance.FocusedRow.Options.UseFont = true;
            this.clientGridView.Appearance.HeaderPanel.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.clientGridView.Appearance.HeaderPanel.Options.UseFont = true;
            this.clientGridView.Appearance.HideSelectionRow.Font = new System.Drawing.Font("Arial", 9F);
            this.clientGridView.Appearance.HideSelectionRow.Options.UseFont = true;
            this.clientGridView.Appearance.OddRow.Font = new System.Drawing.Font("Arial", 9F);
            this.clientGridView.Appearance.OddRow.Options.UseFont = true;
            this.clientGridView.Appearance.Preview.Font = new System.Drawing.Font("Arial", 9F);
            this.clientGridView.Appearance.Preview.Options.UseFont = true;
            this.clientGridView.Appearance.Row.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.clientGridView.Appearance.Row.Options.UseFont = true;
            this.clientGridView.Appearance.SelectedRow.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.clientGridView.Appearance.SelectedRow.Options.UseFont = true;
            this.clientGridView.Appearance.ViewCaption.Font = new System.Drawing.Font("Arial", 9F);
            this.clientGridView.Appearance.ViewCaption.Options.UseFont = true;
            this.clientGridView.Columns.AddRange(new DevExpress.XtraGrid.Columns.GridColumn[] {
            this.cgNoColumn,
            this.cgConnectedTimeColumn,
            this.cgIpColumn,
            this.cgPortColumn,
            this.cgStateColumn,
            this.cgScanTimeColumn});
            this.clientGridView.CustomizationFormBounds = new System.Drawing.Rectangle(2884, 580, 210, 186);
            this.clientGridView.GridControl = this.clientGrid;
            this.clientGridView.IndicatorWidth = 40;
            this.clientGridView.Name = "clientGridView";
            this.clientGridView.OptionsView.ColumnAutoWidth = false;
            this.clientGridView.OptionsView.ShowGroupPanel = false;
            this.clientGridView.OptionsView.ShowIndicator = false;
            // 
            // cgNoColumn
            // 
            this.cgNoColumn.AppearanceCell.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.cgNoColumn.AppearanceCell.Options.UseFont = true;
            this.cgNoColumn.AppearanceCell.Options.UseTextOptions = true;
            this.cgNoColumn.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
            this.cgNoColumn.AppearanceHeader.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.cgNoColumn.AppearanceHeader.Options.UseFont = true;
            this.cgNoColumn.AppearanceHeader.Options.UseTextOptions = true;
            this.cgNoColumn.AppearanceHeader.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
            this.cgNoColumn.Caption = "No";
            this.cgNoColumn.DisplayFormat.FormatString = "{0:d2}";
            this.cgNoColumn.DisplayFormat.FormatType = DevExpress.Utils.FormatType.Numeric;
            this.cgNoColumn.FieldName = "Index";
            this.cgNoColumn.Name = "cgNoColumn";
            this.cgNoColumn.OptionsColumn.AllowEdit = false;
            this.cgNoColumn.OptionsColumn.AllowFocus = false;
            this.cgNoColumn.OptionsColumn.AllowGroup = DevExpress.Utils.DefaultBoolean.False;
            this.cgNoColumn.OptionsColumn.AllowIncrementalSearch = false;
            this.cgNoColumn.OptionsColumn.AllowMerge = DevExpress.Utils.DefaultBoolean.False;
            this.cgNoColumn.OptionsColumn.AllowMove = false;
            this.cgNoColumn.OptionsColumn.AllowShowHide = false;
            this.cgNoColumn.OptionsColumn.AllowSize = false;
            this.cgNoColumn.OptionsColumn.AllowSort = DevExpress.Utils.DefaultBoolean.False;
            this.cgNoColumn.OptionsColumn.FixedWidth = true;
            this.cgNoColumn.OptionsColumn.ImmediateUpdateRowPosition = DevExpress.Utils.DefaultBoolean.False;
            this.cgNoColumn.OptionsColumn.ReadOnly = true;
            this.cgNoColumn.OptionsColumn.TabStop = false;
            this.cgNoColumn.Visible = true;
            this.cgNoColumn.VisibleIndex = 0;
            this.cgNoColumn.Width = 32;
            // 
            // cgConnectedTimeColumn
            // 
            this.cgConnectedTimeColumn.AppearanceCell.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.cgConnectedTimeColumn.AppearanceCell.Options.UseFont = true;
            this.cgConnectedTimeColumn.AppearanceHeader.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.cgConnectedTimeColumn.AppearanceHeader.Options.UseFont = true;
            this.cgConnectedTimeColumn.Caption = "Connected Time";
            this.cgConnectedTimeColumn.DisplayFormat.FormatString = "yyyy-MM-dd HH:mm:ss";
            this.cgConnectedTimeColumn.DisplayFormat.FormatType = DevExpress.Utils.FormatType.DateTime;
            this.cgConnectedTimeColumn.FieldName = "ConnectedTime";
            this.cgConnectedTimeColumn.Name = "cgConnectedTimeColumn";
            this.cgConnectedTimeColumn.OptionsColumn.AllowEdit = false;
            this.cgConnectedTimeColumn.OptionsColumn.AllowFocus = false;
            this.cgConnectedTimeColumn.OptionsColumn.AllowGroup = DevExpress.Utils.DefaultBoolean.False;
            this.cgConnectedTimeColumn.OptionsColumn.AllowIncrementalSearch = false;
            this.cgConnectedTimeColumn.OptionsColumn.AllowMerge = DevExpress.Utils.DefaultBoolean.False;
            this.cgConnectedTimeColumn.OptionsColumn.AllowMove = false;
            this.cgConnectedTimeColumn.OptionsColumn.AllowShowHide = false;
            this.cgConnectedTimeColumn.OptionsColumn.AllowSize = false;
            this.cgConnectedTimeColumn.OptionsColumn.AllowSort = DevExpress.Utils.DefaultBoolean.False;
            this.cgConnectedTimeColumn.OptionsColumn.ImmediateUpdateRowPosition = DevExpress.Utils.DefaultBoolean.False;
            this.cgConnectedTimeColumn.OptionsColumn.ReadOnly = true;
            this.cgConnectedTimeColumn.OptionsColumn.TabStop = false;
            this.cgConnectedTimeColumn.Visible = true;
            this.cgConnectedTimeColumn.VisibleIndex = 1;
            this.cgConnectedTimeColumn.Width = 148;
            // 
            // cgIpColumn
            // 
            this.cgIpColumn.AppearanceCell.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.cgIpColumn.AppearanceCell.Options.UseFont = true;
            this.cgIpColumn.AppearanceHeader.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.cgIpColumn.AppearanceHeader.Options.UseFont = true;
            this.cgIpColumn.Caption = "IP";
            this.cgIpColumn.FieldName = "Ip";
            this.cgIpColumn.Name = "cgIpColumn";
            this.cgIpColumn.OptionsColumn.AllowEdit = false;
            this.cgIpColumn.OptionsColumn.AllowFocus = false;
            this.cgIpColumn.OptionsColumn.AllowGroup = DevExpress.Utils.DefaultBoolean.False;
            this.cgIpColumn.OptionsColumn.AllowIncrementalSearch = false;
            this.cgIpColumn.OptionsColumn.AllowMerge = DevExpress.Utils.DefaultBoolean.False;
            this.cgIpColumn.OptionsColumn.AllowMove = false;
            this.cgIpColumn.OptionsColumn.AllowShowHide = false;
            this.cgIpColumn.OptionsColumn.AllowSize = false;
            this.cgIpColumn.OptionsColumn.AllowSort = DevExpress.Utils.DefaultBoolean.False;
            this.cgIpColumn.OptionsColumn.ImmediateUpdateRowPosition = DevExpress.Utils.DefaultBoolean.False;
            this.cgIpColumn.OptionsColumn.ReadOnly = true;
            this.cgIpColumn.OptionsColumn.TabStop = false;
            this.cgIpColumn.Visible = true;
            this.cgIpColumn.VisibleIndex = 2;
            this.cgIpColumn.Width = 128;
            // 
            // cgPortColumn
            // 
            this.cgPortColumn.AppearanceCell.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.cgPortColumn.AppearanceCell.Options.UseFont = true;
            this.cgPortColumn.AppearanceCell.Options.UseTextOptions = true;
            this.cgPortColumn.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Near;
            this.cgPortColumn.AppearanceHeader.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.cgPortColumn.AppearanceHeader.Options.UseFont = true;
            this.cgPortColumn.Caption = "Port";
            this.cgPortColumn.FieldName = "Port";
            this.cgPortColumn.Name = "cgPortColumn";
            this.cgPortColumn.OptionsColumn.AllowEdit = false;
            this.cgPortColumn.OptionsColumn.AllowFocus = false;
            this.cgPortColumn.OptionsColumn.AllowGroup = DevExpress.Utils.DefaultBoolean.False;
            this.cgPortColumn.OptionsColumn.AllowIncrementalSearch = false;
            this.cgPortColumn.OptionsColumn.AllowMerge = DevExpress.Utils.DefaultBoolean.False;
            this.cgPortColumn.OptionsColumn.AllowMove = false;
            this.cgPortColumn.OptionsColumn.AllowShowHide = false;
            this.cgPortColumn.OptionsColumn.AllowSize = false;
            this.cgPortColumn.OptionsColumn.AllowSort = DevExpress.Utils.DefaultBoolean.False;
            this.cgPortColumn.OptionsColumn.ImmediateUpdateRowPosition = DevExpress.Utils.DefaultBoolean.False;
            this.cgPortColumn.OptionsColumn.ReadOnly = true;
            this.cgPortColumn.OptionsColumn.TabStop = false;
            this.cgPortColumn.Visible = true;
            this.cgPortColumn.VisibleIndex = 3;
            this.cgPortColumn.Width = 64;
            // 
            // cgStateColumn
            // 
            this.cgStateColumn.AppearanceCell.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.cgStateColumn.AppearanceCell.Options.UseFont = true;
            this.cgStateColumn.AppearanceCell.Options.UseTextOptions = true;
            this.cgStateColumn.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
            this.cgStateColumn.AppearanceHeader.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.cgStateColumn.AppearanceHeader.Options.UseFont = true;
            this.cgStateColumn.AppearanceHeader.Options.UseTextOptions = true;
            this.cgStateColumn.AppearanceHeader.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
            this.cgStateColumn.Caption = "State";
            this.cgStateColumn.FieldName = "State";
            this.cgStateColumn.Name = "cgStateColumn";
            this.cgStateColumn.OptionsColumn.AllowEdit = false;
            this.cgStateColumn.OptionsColumn.AllowFocus = false;
            this.cgStateColumn.OptionsColumn.AllowGroup = DevExpress.Utils.DefaultBoolean.False;
            this.cgStateColumn.OptionsColumn.AllowIncrementalSearch = false;
            this.cgStateColumn.OptionsColumn.AllowMerge = DevExpress.Utils.DefaultBoolean.False;
            this.cgStateColumn.OptionsColumn.AllowMove = false;
            this.cgStateColumn.OptionsColumn.AllowSize = false;
            this.cgStateColumn.OptionsColumn.AllowSort = DevExpress.Utils.DefaultBoolean.False;
            this.cgStateColumn.OptionsColumn.ReadOnly = true;
            this.cgStateColumn.Visible = true;
            this.cgStateColumn.VisibleIndex = 4;
            this.cgStateColumn.Width = 80;
            // 
            // cgScanTimeColumn
            // 
            this.cgScanTimeColumn.AppearanceCell.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.cgScanTimeColumn.AppearanceCell.Options.UseFont = true;
            this.cgScanTimeColumn.AppearanceCell.Options.UseTextOptions = true;
            this.cgScanTimeColumn.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Near;
            this.cgScanTimeColumn.AppearanceHeader.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.cgScanTimeColumn.AppearanceHeader.Options.UseFont = true;
            this.cgScanTimeColumn.Caption = "Scan Time";
            this.cgScanTimeColumn.FieldName = "ScanTime";
            this.cgScanTimeColumn.Name = "cgScanTimeColumn";
            this.cgScanTimeColumn.OptionsColumn.AllowEdit = false;
            this.cgScanTimeColumn.OptionsColumn.AllowFocus = false;
            this.cgScanTimeColumn.OptionsColumn.AllowGroup = DevExpress.Utils.DefaultBoolean.False;
            this.cgScanTimeColumn.OptionsColumn.AllowIncrementalSearch = false;
            this.cgScanTimeColumn.OptionsColumn.AllowMerge = DevExpress.Utils.DefaultBoolean.False;
            this.cgScanTimeColumn.OptionsColumn.AllowMove = false;
            this.cgScanTimeColumn.OptionsColumn.AllowSize = false;
            this.cgScanTimeColumn.OptionsColumn.AllowSort = DevExpress.Utils.DefaultBoolean.False;
            this.cgScanTimeColumn.OptionsColumn.ReadOnly = true;
            this.cgScanTimeColumn.Visible = true;
            this.cgScanTimeColumn.VisibleIndex = 5;
            this.cgScanTimeColumn.Width = 72;
            // 
            // CtrlViewClient
            // 
            this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            this.Name = "CtrlViewClient";
            this.Size = new System.Drawing.Size(904, 645);
            this.Enter += new System.EventHandler(this.CtrlViewClient_Enter);
            this.bgPanel.ResumeLayout(false);
            ((System.ComponentModel.ISupportInitialize)(this.clientGrid)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.clientGridView)).EndInit();
            this.ResumeLayout(false);
            this.PerformLayout();

        }

        #endregion
        private DevExpress.XtraGrid.GridControl clientGrid;
        private DevExpress.XtraGrid.Views.Grid.GridView clientGridView;
        private DevExpress.XtraGrid.Columns.GridColumn cgConnectedTimeColumn;
        private DevExpress.XtraGrid.Columns.GridColumn cgIpColumn;
        private DevExpress.XtraGrid.Columns.GridColumn cgPortColumn;
        private DevExpress.XtraGrid.Columns.GridColumn cgStateColumn;
        private DevExpress.XtraGrid.Columns.GridColumn cgScanTimeColumn;
        private DevExpress.XtraGrid.Columns.GridColumn cgNoColumn;
    }
}
<file_sep>[Database]
FileName = D:\Database\Hnc\Firebird.2.5\Calorimeter.3R\Hnc.Calorimeter.3R.FDB

[Login]
UserNo =0

[Log]
TotalPath = ..\..\Log\Total
TotalFileName = Hnc.Calorimeter.Total
AlarmlPath = ..\..\Log\Alarm
AlarmFileName = Hnc.Calorimeter.Alarm

[Server]
ip = 127.0.0.1
port = 10101

[Listener]
LogPath = ..\..\Log\Listener
LogFileName = Hnc.Calorimeter.Listener
Logging = Event

[Sender]
LogPath = ..\..\Log\Sender
LogFileName = Hnc.Calorimeter.Sender
Logging = All

[Device]
FValueLength = 352
NValueLength = 16

[PowerMeter]
PM1 = WT333(150K),P3
PM2 = WT310(A),P1
PM3 = WT333(300K),P3
PM4 = WT310(B),P1

[Controller]
Ctrl1 = UT55A-01,0,1

[Recorder]
Rec1 = GM10-01
Pressure = 134,8
Thermocouple = 161,180

[Plc]
Plc1 = MasterK-01

[PM1.Channel]
CH1 = PM1.R.W
CH2 = PM1.R.V
CH3 = PM1.R.A
CH4 = PM1.R.Hz
CH5 = PM1.R.PF
CH6 = PM1.R.Wh
CH7 = PM1.S.W
CH8 = PM1.S.V
CH9 = PM1.S.A
CH10 = PM1.S.Hz
CH11 = PM1.S.PF
CH12 = PM1.S.Wh
CH13 = PM1.T.W
CH14 = PM1.T.V
CH15 = PM1.T.A
CH16 = PM1.T.Hz
CH17 = PM1.T.PF
CH18 = PM1.T.Wh
CH19 = PM1.Sigma.W
CH20 = PM1.Sigma.V
CH21 = PM1.Sigma.A
CH22 = PM1.Sigma.Hz
CH23 = PM1.Sigma.PF
CH24 = PM1.Sigma.Wh
CH25 = PM1.Integ.Time

[PM2.Channel]
CH1 = PM2.R.W
CH2 = PM2.R.V
CH3 = PM2.R.A
CH4 = PM2.R.Hz
CH5 = PM2.R.PF
CH6 = PM2.R.Wh
CH7 = PM2.S.W
CH8 = PM2.S.V
CH9 = PM2.S.A
CH10 = PM2.S.Hz
CH11 = PM2.S.PF
CH12 = PM2.S.Wh
CH13 = PM2.T.W
CH14 = PM2.T.V
CH15 = PM2.T.A
CH16 = PM2.T.Hz
CH17 = PM2.T.PF
CH18 = PM2.T.Wh
CH19 = PM2.Sigma.W
CH20 = PM2.Sigma.V
CH21 = PM2.Sigma.A
CH22 = PM2.Sigma.Hz
CH23 = PM2.Sigma.PF
CH24 = PM2.Sigma.Wh
CH25 = PM2.Integ.Time

[PM3.Channel]
CH1 = PM3.R.W
CH2 = PM3.R.V
CH3 = PM3.R.A
CH4 = PM3.R.Hz
CH5 = PM3.R.PF
CH6 = PM3.R.Wh
CH7 = PM3.S.W
CH8 = PM3.S.V
CH9 = PM3.S.A
CH10 = PM3.S.Hz
CH11 = PM3.S.PF
CH12 = PM3.S.Wh
CH13 = PM3.T.W
CH14 = PM3.T.V
CH15 = PM3.T.A
CH16 = PM3.T.Hz
CH17 = PM3.T.PF
CH18 = PM3.T.Wh
CH19 = PM3.Sigma.W
CH20 = PM3.Sigma.V
CH21 = PM3.Sigma.A
CH22 = PM3.Sigma.Hz
CH23 = PM3.Sigma.PF
CH24 = PM3.Sigma.Wh
CH25 = PM3.Integ.Time

[PM4.Channel]
CH1 = PM4.R.W
CH2 = PM4.R.V
CH3 = PM4.R.A
CH4 = PM4.R.Hz
CH5 = PM4.R.PF
CH6 = PM4.R.Wh
CH7 = PM4.S.W
CH8 = PM4.S.V
CH9 = PM4.S.A
CH10 = PM4.S.Hz
CH11 = PM4.S.PF
CH12 = PM4.S.Wh
CH13 = PM4.T.W
CH14 = PM4.T.V
CH15 = PM4.T.A
CH16 = PM4.T.Hz
CH17 = PM4.T.PF
CH18 = PM4.T.Wh
CH19 = PM4.Sigma.W
CH20 = PM4.Sigma.V
CH21 = PM4.Sigma.A
CH22 = PM4.Sigma.Hz
CH23 = PM4.Sigma.PF
CH24 = PM4.Sigma.Wh
CH25 = PM4.Integ.Time

[Rec1.Channel]
CH1 = ID11.Entering.DB
CH2 = ID11.Entering.WB
CH3 = ID11.Leaving.DB
CH4 = ID11.Leaving.WB
CH5 = ID11.Nozzle.Diff.Pressure
CH6 = ID11.Static.Pressure
CH7 = ID11.Nozzle.Inlet.Temp
CH8 = ID12.Entering.DB
CH9 = ID12.Entering.WB
CH10 = ID12.Leaving.DB
CH11 = ID12.Leaving.WB
CH12 = ID12.Nozzle.Diff.Pressure
CH13 = ID12.Static.Pressure
CH14 = ID12.Nozzle.Inlet.Temp
CH15 = ID1.Atm.Pressure
CH16 = ID21.Entering.DB
CH17 = ID21.Entering.WB
CH18 = ID21.Leaving.DB
CH19 = ID21.Leaving.WB
CH20 = ID21.Nozzle.Diff.Pressure
CH21 = ID21.Static.Pressure
CH22 = ID21.Nozzle.Inlet.Temp
CH23 = ID22.Entering.DB
CH24 = ID22.Entering.WB
CH25 = ID22.Leaving.DB
CH26 = ID22.Leaving.WB
CH27 = ID22.Nozzle.Diff.Pressure
CH28 = ID22.Static.Pressure
CH29 = ID22.Nozzle.Inlet.Temp
CH30 = ID2.Atm.Pressure
CH31 = OD.Entering.DB
CH32 = OD.Entering.WB
CH33 = OD.Entering.DP
CH34 = Pressure.1
CH35 = Pressure.2
CH36 = Pressure.3
CH37 = Pressure.4
CH38 = Pressure.5
CH39 = Pressure.6
CH40 = Pressure.7
CH41 = Pressure.8
CH42 = None.1
CH43 = None.2
CH44 = None.3
CH45 = None.4
CH46 = None.5
CH47 = None.6
CH48 = None.7
CH49 = None.8
CH50 = None.9
CH51 = None.10
CH52 = None.11
CH53 = None.12
CH54 = None.13
CH55 = None.14
CH56 = None.15
CH57 = None.16
CH58 = None.17
CH59 = None.18
CH60 = None.19
CH61 = ID1.TC.001
CH62 = ID1.TC.002
CH63 = ID1.TC.003
CH64 = ID1.TC.004
CH65 = ID1.TC.005
CH66 = ID1.TC.006
CH67 = ID1.TC.007
CH68 = ID1.TC.008
CH69 = ID1.TC.009
CH70 = ID1.TC.010
CH71 = ID1.TC.011
CH72 = ID1.TC.012
CH73 = ID1.TC.013
CH74 = ID1.TC.014
CH75 = ID1.TC.015
CH76 = ID1.TC.016
CH77 = ID1.TC.017
CH78 = ID1.TC.018
CH79 = ID1.TC.019
CH80 = ID1.TC.020
CH81 = ID1.TC.021
CH82 = ID1.TC.022
CH83 = ID1.TC.023
CH84 = ID1.TC.024
CH85 = ID1.TC.025
CH86 = ID1.TC.026
CH87 = ID1.TC.027
CH88 = ID1.TC.028
CH89 = ID1.TC.029
CH90 = ID1.TC.030
CH91 = ID1.TC.031
CH92 = ID1.TC.032
CH93 = ID1.TC.033
CH94 = ID1.TC.034
CH95 = ID1.TC.035
CH96 = ID1.TC.036
CH97 = ID1.TC.037
CH98 = ID1.TC.038
CH99 = ID1.TC.039
CH100 = ID1.TC.040
CH101 = ID1.TC.041
CH102 = ID1.TC.042
CH103 = ID1.TC.043
CH104 = ID1.TC.044
CH105 = ID1.TC.045
CH106 = ID1.TC.046
CH107 = ID1.TC.047
CH108 = ID1.TC.048
CH109 = ID1.TC.049
CH110 = ID1.TC.050
CH111 = ID1.TC.051
CH112 = ID1.TC.052
CH113 = ID1.TC.053
CH114 = ID1.TC.054
CH115 = ID1.TC.055
CH116 = ID1.TC.056
CH117 = ID1.TC.057
CH118 = ID1.TC.058
CH119 = ID1.TC.059
CH120 = ID1.TC.060
CH121 = ID2.TC.001
CH122 = ID2.TC.002
CH123 = ID2.TC.003
CH124 = ID2.TC.004
CH125 = ID2.TC.005
CH126 = ID2.TC.006
CH127 = ID2.TC.007
CH128 = ID2.TC.008
CH129 = ID2.TC.009
CH130 = ID2.TC.010
CH131 = ID2.TC.011
CH132 = ID2.TC.012
CH133 = ID2.TC.013
CH134 = ID2.TC.014
CH135 = ID2.TC.015
CH136 = ID2.TC.016
CH137 = ID2.TC.017
CH138 = ID2.TC.018
CH139 = ID2.TC.019
CH140 = ID2.TC.020
CH141 = ID2.TC.021
CH142 = ID2.TC.022
CH143 = ID2.TC.023
CH144 = ID2.TC.024
CH145 = ID2.TC.025
CH146 = ID2.TC.026
CH147 = ID2.TC.027
CH148 = ID2.TC.028
CH149 = ID2.TC.029
CH150 = ID2.TC.030
CH151 = ID2.TC.031
CH152 = ID2.TC.032
CH153 = ID2.TC.033
CH154 = ID2.TC.034
CH155 = ID2.TC.035
CH156 = ID2.TC.036
CH157 = ID2.TC.037
CH158 = ID2.TC.038
CH159 = ID2.TC.039
CH160 = ID2.TC.040
CH161 = ID2.TC.041
CH162 = ID2.TC.042
CH163 = ID2.TC.043
CH164 = ID2.TC.044
CH165 = ID2.TC.045
CH166 = ID2.TC.046
CH167 = ID2.TC.047
CH168 = ID2.TC.048
CH169 = ID2.TC.049
CH170 = ID2.TC.050
CH171 = ID2.TC.051
CH172 = ID2.TC.052
CH173 = ID2.TC.053
CH174 = ID2.TC.054
CH175 = ID2.TC.055
CH176 = ID2.TC.056
CH177 = ID2.TC.057
CH178 = ID2.TC.058
CH179 = ID2.TC.059
CH180 = ID2.TC.060
CH181 = OD.TC.001
CH182 = OD.TC.002
CH183 = OD.TC.003
CH184 = OD.TC.004
CH185 = OD.TC.005
CH186 = OD.TC.006
CH187 = OD.TC.007
CH188 = OD.TC.008
CH189 = OD.TC.009
CH190 = OD.TC.010
CH191 = OD.TC.011
CH192 = OD.TC.012
CH193 = OD.TC.013
CH194 = OD.TC.014
CH195 = OD.TC.015
CH196 = OD.TC.016
CH197 = OD.TC.017
CH198 = OD.TC.018
CH199 = OD.TC.019
CH200 = OD.TC.020
CH201 = OD.TC.021
CH202 = OD.TC.022
CH203 = OD.TC.023
CH204 = OD.TC.024
CH205 = OD.TC.025
CH206 = OD.TC.026
CH207 = OD.TC.027
CH208 = OD.TC.028
CH209 = OD.TC.029
CH210 = OD.TC.030
CH211 = OD.TC.031
CH212 = OD.TC.032
CH213 = OD.TC.033
CH214 = OD.TC.034
CH215 = OD.TC.035
CH216 = OD.TC.036
CH217 = OD.TC.037
CH218 = OD.TC.038
CH219 = OD.TC.039
CH220 = OD.TC.040
CH221 = OD.TC.041
CH222 = OD.TC.042
CH223 = OD.TC.043
CH224 = OD.TC.044
CH225 = OD.TC.045
CH226 = OD.TC.046
CH227 = OD.TC.047
CH228 = OD.TC.048
CH229 = OD.TC.049
CH230 = OD.TC.050
CH231 = OD.TC.051
CH232 = OD.TC.052
CH233 = OD.TC.053
CH234 = OD.TC.054
CH235 = OD.TC.055
CH236 = OD.TC.056
CH237 = OD.TC.057
CH238 = OD.TC.058
CH239 = OD.TC.059
CH240 = OD.TC.060

[Ctrl1.Channel]
CH1 = CTRL1.PV
CH2 = CTRL1.SV
CH3 = CTRL1.OUT
CH4 = CTRL1.Mode
CH5 = CTRL1.SPN
CH6 = CTRL1.P
CH7 = CTRL1.I
CH8 = CTRL1.D
CH9 = CTRL1.DEV
CH10 = CTRL1.BS
CH11 = CTRL1.FL
CH12 = CTRL1.MOUT

[Plc1.Channel]
CH1 = PLC1.1
CH2 = PLC1.2
CH3 = PLC1.3
CH4 = PLC1.4
CH5 = PLC1.5
CH6 = PLC1.6
CH7 = PLC1.7
CH8 = PLC1.8
CH9 = PLC1.9
CH10 = PLC1.10
CH11 = PLC1.11
CH12 = PLC1.12
CH13 = PLC1.13
CH14 = PLC1.14
CH15 = PLC1.15
CH16 = PLC1.16

[Constant.Channel]
CH1 = Total.Rated.Capacity,Capacity,kcal,0.0,false,false,Capacity
CH2 = Total.Rated.Power,Power,W,0.0,false,false,Power
CH3 = Total.Rated.EER_COP,EER_COP,kcal,0.000,false,false,EER_COP
CH4 = Total.Rated.Voltage,Voltage,V,0.0,false,false,Voltage
CH5 = Total.Rated.Current,Current,A,0.000,false,false,Current
CH6 = Total.Rated.Frequency,Frequency,Hz,0.00,false,false,Frequency

[Calculated.Channel]
CH1 = Total.Capacity,Capacity,kcal,0.0,true,true,Capacity
CH2 = Total.Power,Power,W,0.0,true,true,Power
CH3 = Total.Current,Current,A,0.000,true,true,Current
CH4 = Total.EER_COP,EER_COP,kcal,0.000,true,true,EER_COP
CH5 = Total.Capacity.Ratio,Ratio,Percent,0.00,true,true,Ratio
CH6 = Total.Power.Ratio,Ratio,Percent,0.00,true,true,Ratio
CH7 = Total.EER_COP.Ratio,Ratio,Percent,0.00,true,true,Ratio
CH8 = Total.Current.Ratio,Ratio,Percent,0.00,true,true,Ratio
CH9 = Total.IDU.Power,Power,W,0.0,true,true,Power
CH10 = Total.IDU.Voltage,Voltage,V,0.0,true,true,Voltage
CH11 = Total.IDU.Current,Current,A,0.000,true,true,Current
CH12 = Total.IDU.Frequency,Frequency,Hz,0.00,true,true,Frequency
CH13 = Total.IDU.Power.Factor,Ratio,Percent,0.00,true,true,Ratio
CH14 = Total.IDU.Integ.Power,PowerComsumption,Wh,0.0,true,true,PowerComsumption
CH15 = Total.IDU.Integ.Time,Time,sec,0.0,true,true,Time
CH16 = Total.ODU.Power,Power,W,0.0,true,true,Power
CH17 = Total.ODU.Voltage,Voltage,V,0.0,true,true,Voltage
CH18 = Total.ODU.Current,Current,A,0.000,true,true,Current
CH19 = Total.ODU.Frequency,Frequency,Hz,0.00,true,true,Frequency
CH20 = Total.ODU.Power.Factor,Ratio,Percent,0.00,true,true,Ratio
CH21 = Total.ODU.Integ.Power,PowerComsumption,Wh,0.0,true,true,PowerComsumption
CH22 = Total.ODU.Integ.Time,Time,sec,0.0,true,true,Time
CH23 = ID1.IDU.Power,Power,W,0.0,true,true,Power
CH24 = ID1.IDU.Voltage,Voltage,V,0.0,true,true,Voltage
CH25 = ID1.IDU.Current,Current,A,0.000,true,true,Current
CH26 = ID1.IDU.Frequency,Frequency,Hz,0.00,true,true,Frequency
CH27 = ID1.IDU.Power.Factor,Ratio,Percent,0.00,true,true,Ratio
CH28 = ID1.IDU.Integ.Power,PowerComsumption,Wh,0.0,true,true,PowerComsumption
CH29 = ID1.IDU.Integ.Time,Time,sec,0.0,true,true,Time
CH30 = ID1.ODU.Power,Power,W,0.0,true,true,Power
CH31 = ID1.ODU.Voltage,Voltage,V,0.0,true,true,Voltage
CH32 = ID1.ODU.Current,Current,A,0.000,true,true,Current
CH33 = ID1.ODU.Frequency,Frequency,Hz,0.00,true,true,Frequency
CH34 = ID1.ODU.Power.Factor,Ratio,Percent,0.00,true,true,Ratio
CH35 = ID1.ODU.Integ.Power,PowerComsumption,Wh,0.0,true,true,PowerComsumption
CH36 = ID1.ODU.Integ.Time,Time,sec,0.0,true,true,Time
CH37 = ID2.IDU.Power,Power,W,0.0,true,true,Power
CH38 = ID2.IDU.Voltage,Voltage,V,0.0,true,true,Voltage
CH39 = ID2.IDU.Current,Current,A,0.000,true,true,Current
CH40 = ID2.IDU.Frequency,Frequency,Hz,0.00,true,true,Frequency
CH41 = ID2.IDU.Power.Factor,Ratio,Percent,0.00,true,true,Ratio
CH42 = ID2.IDU.Integ.Power,PowerComsumption,Wh,0.0,true,true,PowerComsumption
CH43 = ID2.IDU.Integ.Time,Time,sec,0.0,true,true,Time
CH44 = ID2.ODU.Power,Power,W,0.0,true,true,Power
CH45 = ID2.ODU.Voltage,Voltage,V,0.0,true,true,Voltage
CH46 = ID2.ODU.Current,Current,A,0.000,true,true,Current
CH47 = ID2.ODU.Frequency,Frequency,Hz,0.00,true,true,Frequency
CH48 = ID2.ODU.Power.Factor,Ratio,Percent,0.00,true,true,Ratio
CH49 = ID2.ODU.Integ.Power,PowerComsumption,Wh,0.0,true,true,PowerComsumption
CH50 = ID2.ODU.Integ.Time,Time,sec,0.0,true,true,Time
CH51 = OD.Entering.RH,Ratio,Percent,0.00,true,true,Humidity
CH52 = OD.Sat.Dis.Temp1,Temperature,Celsius,0.00,true,true,Temperature
CH53 = OD.Sat.Suc.Temp1,Temperature,Celsius,0.00,true,true,Temperature
CH54 = OD.Sub.Cooling1,Temperature,Celsius,0.00,true,true,Temperature
CH55 = OD.Super.Heat1,Temperature,Celsius,0.00,true,true,Temperature
CH56 = OD.Sat.Dis.Temp2,Temperature,Celsius,0.00,true,true,Temperature
CH57 = OD.Sat.Suc.Temp2,Temperature,Celsius,0.00,true,true,Temperature
CH58 = OD.Sub.Cooling2,Temperature,Celsius,0.00,true,true,Temperature
CH59 = OD.Super.Heat2,Temperature,Celsius,0.00,true,true,Temperature
CH60 = ID11.Entering.RH,Ratio,Percent,0.00,true,true,Humidity
CH61 = ID11.Capacity,Capacity,kcal,0.0,true,true,Capacity
CH62 = ID11.Capacity.Ratio,Ratio,Percent,0.00,true,true,Ratio
CH63 = ID11.Sensible.Heat,Capacity,kcal,0.0,true,true,Capacity
CH64 = ID11.Latent.Heat,Capacity,kcal,0.0,true,true,Capacity
CH65 = ID11.Sensible.Heat.Ratio,Ratio,Percent,0.00,true,true,Ratio
CH66 = ID11.Heat.Leakage,Capacity,kcal,0.0,true,true,Capacity
CH67 = ID11.Drain.Weight,Flux,kg_h,0.00,true,true,Flux
CH68 = ID11.Leaving.RH,Ratio,Percent,0.00,true,true,Ratio
CH69 = ID11.Entering.Enthalpy,Enthalpy,kcal,0.000,true,true,Enthalpy
CH70 = ID11.Leaving.Enthalpy,Enthalpy,kcal,0.000,true,true,Enthalpy
CH71 = ID11.Entering.Humidity.Ratio,HumidityRatio,kg_kg,0.0000,true,true,HumidityRatio
CH72 = ID11.Leaving.Humidity.Ratio,HumidityRatio,kg_kg,0.0000,true,true,HumidityRatio
CH73 = ID11.Leaving.Specific.Heat,Heat,kcal,0.0000,true,true,Heat
CH74 = ID11.Leaving.Specific.Volume,Volume,m3_kg,0.0000,true,true,Volume
CH75 = ID11.Air.Flow.Lev,AirFlow,CMM,0.00,true,true,AirFlow
CH76 = ID11.Air.Velocity.Lev,Velocity,m_s,0.000,true,true,Velocity
CH77 = ID12.Entering.RH,Ratio,Percent,0.00,true,true,Humidity
CH78 = ID12.Capacity,Capacity,kcal,0.0,true,true,Capacity
CH79 = ID12.Capacity.Ratio,Ratio,Percent,0.00,true,true,Ratio
CH80 = ID12.Sensible.Heat,Capacity,kcal,0.0,true,true,Capacity
CH81 = ID12.Latent.Heat,Capacity,kcal,0.0,true,true,Capacity
CH82 = ID12.Sensible.Heat.Ratio,Ratio,Percent,0.00,true,true,Ratio
CH83 = ID12.Heat.Leakage,Capacity,kcal,0.0,true,true,Capacity
CH84 = ID12.Drain.Weight,Flux,kg_h,0.00,true,true,Flux
CH85 = ID12.Leaving.RH,Ratio,Percent,0.00,true,true,Ratio
CH86 = ID12.Entering.Enthalpy,Enthalpy,kcal,0.000,true,true,Enthalpy
CH87 = ID12.Leaving.Enthalpy,Enthalpy,kcal,0.000,true,true,Enthalpy
CH88 = ID12.Entering.Humidity.Ratio,HumidityRatio,kg_kg,0.0000,true,true,HumidityRatio
CH89 = ID12.Leaving.Humidity.Ratio,HumidityRatio,kg_kg,0.0000,true,true,HumidityRatio
CH90 = ID12.Leaving.Specific.Heat,Heat,kcal,0.0000,true,true,Heat
CH91 = ID12.Leaving.Specific.Volume,Volume,m3_kg,0.0000,true,true,Volume
CH92 = ID12.Air.Flow.Lev,AirFlow,CMM,0.00,true,true,AirFlow
CH93 = ID12.Air.Velocity.Lev,Velocity,m_s,0.000,true,true,Velocity
CH94 = ID21.Entering.RH,Ratio,Percent,0.00,true,true,Humidity
CH95 = ID21.Capacity,Capacity,kcal,0.0,true,true,Capacity
CH96 = ID21.Capacity.Ratio,Ratio,Percent,0.00,true,true,Ratio
CH97 = ID21.Sensible.Heat,Capacity,kcal,0.0,true,true,Capacity
CH98 = ID21.Latent.Heat,Capacity,kcal,0.0,true,true,Capacity
CH99 = ID21.Sensible.Heat.Ratio,Ratio,Percent,0.00,true,true,Ratio
CH100 = ID21.Heat.Leakage,Capacity,kcal,0.0,true,true,Capacity
CH101 = ID21.Drain.Weight,Flux,kg_h,0.00,true,true,Flux
CH102 = ID21.Leaving.RH,Ratio,Percent,0.00,true,true,Ratio
CH103 = ID21.Entering.Enthalpy,Enthalpy,kcal,0.000,true,true,Default
CH104 = ID21.Leaving.Enthalpy,Enthalpy,kcal,0.000,true,true,Default
CH105 = ID21.Entering.Humidity.Ratio,HumidityRatio,kg_kg,0.0000,true,true,HumidityRatio
CH106 = ID21.Leaving.Humidity.Ratio,HumidityRatio,kg_kg,0.0000,true,true,HumidityRatio
CH107 = ID21.Leaving.Specific.Heat,Heat,kcal,0.0000,true,true,Heat
CH108 = ID21.Leaving.Specific.Volume,Volume,m3_kg,0.0000,true,true,Volume
CH109 = ID21.Air.Flow.Lev,AirFlow,CMM,0.00,true,true,AirFlow
CH110 = ID21.Air.Velocity.Lev,Velocity,m_s,0.000,true,true,Velocity
CH111 = ID22.Entering.RH,Ratio,Percent,0.00,true,true,Humidity
CH112 = ID22.Capacity,Capacity,kcal,0.0,true,true,Capacity
CH113 = ID22.Capacity.Ratio,Ratio,Percent,0.00,true,true,Ratio
CH114 = ID22.Sensible.Heat,Capacity,kcal,0.0,true,true,Capacity
CH115 = ID22.Latent.Heat,Capacity,kcal,0.0,true,true,Capacity
CH116 = ID22.Sensible.Heat.Ratio,Ratio,Percent,0.00,true,true,Ratio
CH117 = ID22.Heat.Leakage,Capacity,kcal,0.0,true,true,Capacity
CH118 = ID22.Drain.Weight,Flux,kg_h,0.00,true,true,Flux
CH119 = ID22.Leaving.RH,Ratio,Percent,0.00,true,true,Ratio
CH120 = ID22.Entering.Enthalpy,Enthalpy,kcal,0.000,true,true,Default
CH121 = ID22.Leaving.Enthalpy,Enthalpy,kcal,0.000,true,true,Default
CH122 = ID22.Entering.Humidity.Ratio,HumidityRatio,kg_kg,0.0000,true,true,HumidityRatio
CH123 = ID22.Leaving.Humidity.Ratio,HumidityRatio,kg_kg,0.0000,true,true,HumidityRatio
CH124 = ID22.Leaving.Specific.Heat,Heat,kcal,0.0000,true,true,Heat
CH125 = ID22.Leaving.Specific.Volume,Volume,m3_kg,0.0000,true,true,Volume
CH126 = ID22.Air.Flow.Lev,AirFlow,CMM,0.00,true,true,AirFlow
CH127 = ID22.Air.Velocity.Lev,Velocity,m_s,0.000,true,true,Velocity
   
[Measured.Channel]
;PowerMeter-1
;Name,UnitType,DefaultUnit,DisplayFormat,Save,Chart,Y-Axis
CH1 = PM1.R.W,Power,W,0.0,true,true,Power
CH2 = PM1.R.V,Voltage,V,0.0,true,true,Voltage
CH3 = PM1.R.A,Current,A,0.000,true,true,Current
CH4 = PM1.R.Hz,Frequency,Hz,0.00,true,true,Frequency
CH5 = PM1.R.PF,Ratio,Percent,0.00,true,true,Ratio
CH6 = PM1.R.Wh,PowerComsumption,Wh,0.000,true,true,PowerComsumption
CH7 = PM1.S.W,Power,W,0.0,true,true,Power
CH8 = PM1.S.V,Voltage,V,0.0,true,true,Voltage
CH9 = PM1.S.A,Current,A,0.000,true,true,Current
CH10 = PM1.S.Hz,Frequency,Hz,0.00,true,true,Frequency
CH11 = PM1.S.PF,Ratio,Percent,0.00,true,true,PowerFactor
CH12 = PM1.S.Wh,PowerComsumption,Wh,0.000,true,true,PowerComsumption
CH13 = PM1.T.W,Power,W,0.0,true,true,Power
CH14 = PM1.T.V,Voltage,V,0.0,true,true,Voltage
CH15 = PM1.T.A,Current,A,0.000,true,true,Current
CH16 = PM1.T.Hz,Frequency,Hz,0.00,true,true,Frequency
CH17 = PM1.T.PF,Ratio,Percent,0.00,true,true,PowerFactor
CH18 = PM1.T.Wh,PowerComsumption,Wh,0.000,true,true,PowerComsumption
CH19 = PM1.Sigma.W,Power,W,0.0,true,true,Power
CH20 = PM1.Sigma.V,Voltage,V,0.0,true,true,Voltage
CH21 = PM1.Sigma.A,Current,A,0.000,true,true,Current
CH22 = PM1.Sigma.Hz,Frequency,Hz,0.00,true,true,Frequency
CH23 = PM1.Sigma.PF,Ratio,Percent,0.00,true,true,PowerFactor
CH24 = PM1.Sigma.Wh,PowerComsumption,Wh,0.000,true,true,PowerComsumption
CH25 = PM1.Time,Time,sec,0.0,true,true,Time

;PowerMeter-2
;Name,UnitType,DefaultUnit,DisplayFormat,Save,Chart,Y-Axis
CH26 = PM2.R.W,Power,W,0.0,false,false,Power
CH27 = PM2.R.V,Voltage,V,0.0,false,false,Voltage
CH28 = PM2.R.A,Current,A,0.000,false,false,Current
CH29 = PM2.R.Hz,Frequency,Hz,0.00,false,false,Frequency
CH30 = PM2.R.PF,Ratio,Percent,0.00,false,false,PowerFactor
CH31 = PM2.R.Wh,PowerComsumption,Wh,0.000,false,false,PowerComsumption
CH32 = PM2.S.W,Power,W,0.0,false,false,Power
CH33 = PM2.S.V,Voltage,V,0.0,false,false,Voltage
CH34 = PM2.S.A,Current,A,0.000,false,false,Current
CH35 = PM2.S.Hz,Frequency,Hz,0.00,false,false,Frequency
CH36 = PM2.S.PF,Ratio,Percent,0.00,false,false,PowerFactor
CH37 = PM2.S.Wh,PowerComsumption,Wh,0.000,false,false,PowerComsumption
CH38 = PM2.T.W,Power,W,0.0,false,false,Power
CH39 = PM2.T.V,Voltage,V,0.0,false,false,Voltage
CH40 = PM2.T.A,Current,A,0.000,false,false,Current
CH41 = PM2.T.Hz,Frequency,Hz,0.00,false,false,Frequency
CH42 = PM2.T.PF,Ratio,Percent,0.00,false,false,PowerFactor
CH43 = PM2.T.Wh,PowerComsumption,Wh,0.000,false,false,PowerComsumption
CH44 = PM2.Sigma.W,Power,W,0.0,false,false,Power
CH45 = PM2.Sigma.V,Voltage,V,0.0,false,false,Voltage
CH46 = PM2.Sigma.A,Current,A,0.000,false,false,Current
CH47 = PM2.Sigma.Hz,Frequency,Hz,0.00,false,false,Frequency
CH48 = PM2.Sigma.PF,Ratio,Percent,0.00,false,false,PowerFactor
CH49 = PM2.Sigma.Wh,PowerComsumption,Wh,0.000,false,false,PowerComsumption
CH50 = PM2.Time,Time,sec,0.0,false,false,Time

;PowerMeter-3
;Name,UnitType,DefaultUnit,DisplayFormat,Save,Chart,Y-Axis
CH51 = PM3.R.W,Power,W,0.0,false,false,Power
CH52 = PM3.R.V,Voltage,V,0.0,false,false,Voltage
CH53 = PM3.R.A,Current,A,0.000,false,false,Current
CH54 = PM3.R.Hz,Frequency,Hz,0.00,false,false,Frequency
CH55 = PM3.R.PF,Ratio,Percent,0.00,false,false,PowerFactor
CH56 = PM3.R.Wh,PowerComsumption,Wh,0.000,false,false,PowerComsumption
CH57 = PM3.S.W,Power,W,0.0,false,false,Power
CH58 = PM3.S.V,Voltage,V,0.0,false,false,Voltage
CH59 = PM3.S.A,Current,A,0.000,false,false,Current
CH60 = PM3.S.Hz,Frequency,Hz,0.00,false,false,Frequency
CH61 = PM3.S.PF,Ratio,Percent,0.00,false,false,PowerFactor
CH62 = PM3.S.Wh,PowerComsumption,Wh,0.000,false,false,PowerComsumption
CH63 = PM3.T.W,Power,W,0.0,false,false,Power
CH64 = PM3.T.V,Voltage,V,0.0,false,false,Voltage
CH65 = PM3.T.A,Current,A,0.000,false,false,Current
CH66 = PM3.T.Hz,Frequency,Hz,0.00,false,false,Frequency
CH67 = PM3.T.PF,Ratio,Percent,0.00,false,false,PowerFactor
CH68 = PM3.T.Wh,PowerComsumption,Wh,0.000,false,false,PowerComsumption
CH69 = PM3.Sigma.W,Power,W,0.0,false,false,Power
CH70 = PM3.Sigma.V,Voltage,V,0.0,false,false,Voltage
CH71 = PM3.Sigma.A,Current,A,0.000,false,false,Current
CH72 = PM3.Sigma.Hz,Frequency,Hz,0.00,false,false,Frequency
CH73 = PM3.Sigma.PF,Ratio,Percent,0.00,false,false,PowerFactor
CH74 = PM3.Sigma.Wh,PowerComsumption,Wh,0.000,false,false,PowerComsumption
CH75 = PM3.Time,Time,sec,0.0,false,false,Time

;PowerMeter-4
;Name,UnitType,DefaultUnit,DisplayFormat,Save,Chart,Y-Axis
CH76 = PM4.R.W,Power,W,0.0,false,false,Power
CH77 = PM4.R.V,Voltage,V,0.0,false,false,Voltage
CH78 = PM4.R.A,Current,A,0.000,false,false,Current
CH79 = PM4.R.Hz,Frequency,Hz,0.00,false,false,Frequency
CH80 = PM4.R.PF,Ratio,Percent,0.00,false,false,PowerFactor
CH81 = PM4.R.Wh,PowerComsumption,Wh,0.000,false,false,PowerComsumption
CH82 = PM4.S.W,Power,W,0.0,false,false,Power
CH83 = PM4.S.V,Voltage,V,0.0,false,false,Voltage
CH84 = PM4.S.A,Current,A,0.000,false,false,Current
CH85 = PM4.S.Hz,Frequency,Hz,0.00,false,false,Frequency
CH86 = PM4.S.PF,Ratio,Percent,0.00,false,false,PowerFactor
CH87 = PM4.S.Wh,PowerComsumption,Wh,0.000,false,false,PowerComsumption
CH88 = PM4.T.W,Power,W,0.0,false,false,Power
CH89 = PM4.T.V,Voltage,V,0.0,false,false,Voltage
CH90 = PM4.T.A,Current,A,0.000,false,false,Current
CH91 = PM4.T.Hz,Frequency,Hz,0.00,false,false,Frequency
CH92 = PM4.T.PF,Ratio,Percent,0.00,false,false,PowerFactor
CH93 = PM4.T.Wh,PowerComsumption,Wh,0.000,false,false,PowerComsumption
CH94 = PM4.Sigma.W,Power,W,0.0,false,false,Power
CH95 = PM4.Sigma.V,Voltage,V,0.0,false,false,Voltage
CH96 = PM4.Sigma.A,Current,A,0.000,false,false,Current
CH97 = PM4.Sigma.Hz,Frequency,Hz,0.00,false,false,Frequency
CH98 = PM4.Sigma.PF,Ratio,Percent,0.00,false,false,PowerFactor
CH99 = PM4.Sigma.Wh,PowerComsumption,Wh,0.000,false,false,PowerComsumption
CH100 = PM4.Time,Time,sec,0.0,false,false,Time

;Recorder-1
;Name,UnitType,DefaultUnit,DisplayFormat,Save,Chart,Y-Axis
CH101 = ID11.Entering.DB,Temperature,Celsius,0.00,true,true,Temperature
CH102 = ID11.Entering.WB,Temperature,Celsius,0.00,true,true,Temperature
CH103 = ID11.Leaving.DB,Temperature,Celsius,0.00,true,true,Temperature
CH104 = ID11.Leaving.WB,Temperature,Celsius,0.00,true,true,Temperature
CH105 = ID11.Nozzle.Diff.Pressure,DiffPressure,mmAq,0.00,true,true,DiffPressure
CH106 = ID11.Static.Pressure,DiffPressure,mmAq,0.00,true,true,DiffPressure
CH107 = ID11.Nozzle.Inlet.Temp,Temperature,Celsius,0.00,true,true,Temperature
CH108 = ID12.Entering.DB,Temperature,Celsius,0.00,true,true,Temperature
CH109 = ID12.Entering.WB,Temperature,Celsius,0.00,true,true,Temperature
CH110 = ID12.Leaving.DB,Temperature,Celsius,0.00,true,true,Temperature
CH111 = ID12.Leaving.WB,Temperature,Celsius,0.00,true,true,Temperature
CH112 = ID12.Nozzle.Diff.Pressure,DiffPressure,mmAq,0.00,true,true,DiffPressure
CH113 = ID12.Static.Pressure,DiffPressure,mmAq,0.00,true,true,DiffPressure
CH114 = ID12.Nozzle.Inlet.Temp,Temperature,Celsius,0.00,true,true,Temperature
CH115 = ID1.Atm.Pressure,AtmPressure,mmHg,0.00,true,true,AtmPressure
CH116 = ID21.Entering.DB,Temperature,Celsius,0.00,true,true,Temperature
CH117 = ID21.Entering.WB,Temperature,Celsius,0.00,true,true,Temperature
CH118 = ID21.Leaving.DB,Temperature,Celsius,0.00,true,true,Temperature
CH119 = ID21.Leaving.WB,Temperature,Celsius,0.00,true,true,Temperature
CH120 = ID21.Nozzle.Diff.Pressure,DiffPressure,mmAq,0.00,true,true,DiffPressure
CH121 = ID21.Static.Pressure,DiffPressure,mmAq,0.00,true,true,DiffPressure
CH122 = ID21.Nozzle.Inlet.Temp,Temperature,Celsius,0.00,true,true,Temperature
CH123 = ID22.Entering.DB,Temperature,Celsius,0.00,true,true,Temperature
CH124 = ID22.Entering.WB,Temperature,Celsius,0.00,true,true,Temperature
CH125 = ID22.Leaving.DB,Temperature,Celsius,0.00,true,true,Temperature
CH126 = ID22.Leaving.WB,Temperature,Celsius,0.00,true,true,Temperature
CH127 = ID22.Nozzle.Diff.Pressure,DiffPressure,mmAq,0.00,true,true,DiffPressure
CH128 = ID22.Static.Pressure,DiffPressure,mmAq,0.00,true,true,DiffPressure
CH129 = ID22.Nozzle.Inlet.Temp,Temperature,Celsius,0.00,true,true,Temperature
CH130 = ID2.Atm.Pressure,AtmPressure,mmHg,0.00,true,true,AtmPressure
CH131 = OD.Entering.DB,Temperature,Celsius,0.00,true,true,Temperature
CH132 = OD.Entering.WB,Temperature,Celsius,0.00,true,true,Temperature
CH133 = OD.Entering.DP,Temperature,Celsius,0.00,true,true,Temperature
CH134 = Pressure.1,Pressure,kg_cm2,0.00,true,true,Pressure
CH135 = Pressure.2,Pressure,kg_cm2,0.00,true,true,Pressure
CH136 = Pressure.3,Pressure,kg_cm2,0.00,true,true,Pressure
CH137 = Pressure.4,Pressure,kg_cm2,0.00,true,true,Pressure
CH138 = Pressure.5,Pressure,kg_cm2,0.00,true,true,Pressure
CH139 = Pressure.6,Pressure,kg_cm2,0.00,true,true,Pressure
CH140 = Pressure.7,Pressure,kg_cm2,0.00,true,true,Pressure
CH141 = Pressure.8,Pressure,kg_cm2,0.00,true,true,Pressure
CH142 = None.1,None,None,0.0,false,false,None
CH143 = None.2,None,None,0.0,false,false,None
CH144 = None.3,None,None,0.0,false,false,None
CH145 = None.4,None,None,0.0,false,false,None
CH146 = None.5,None,None,0.0,false,false,None
CH147 = None.6,None,None,0.0,false,false,None
CH148 = None.7,None,None,0.0,false,false,None
CH149 = None.8,None,None,0.0,false,false,None
CH150 = None.9,None,None,0.0,false,false,None
CH151 = None.10,None,None,0.0,false,false,None
CH152 = None.11,None,None,0.0,false,false,None
CH153 = None.12,None,None,0.0,false,false,None
CH154 = None.13,None,None,0.0,false,false,None
CH155 = None.14,None,None,0.0,false,false,None
CH156 = None.15,None,None,0.0,false,false,None
CH157 = None.16,None,None,0.0,false,false,None
CH158 = None.17,None,None,0.0,false,false,None
CH159 = None.18,None,None,0.0,false,false,None
CH160 = None.19,None,None,0.0,false,false,None
CH161 = ID1.TC.001,Temperature,Celsius,0.0,true,true,Temperature
CH162 = ID1.TC.002,Temperature,Celsius,0.0,true,true,Temperature
CH163 = ID1.TC.003,Temperature,Celsius,0.0,true,true,Temperature
CH164 = ID1.TC.004,Temperature,Celsius,0.0,true,true,Temperature
CH165 = ID1.TC.005,Temperature,Celsius,0.0,true,true,Temperature
CH166 = ID1.TC.006,Temperature,Celsius,0.0,true,true,Temperature
CH167 = ID1.TC.007,Temperature,Celsius,0.0,true,true,Temperature
CH168 = ID1.TC.008,Temperature,Celsius,0.0,true,true,Temperature
CH169 = ID1.TC.009,Temperature,Celsius,0.0,true,true,Temperature
CH170 = ID1.TC.010,Temperature,Celsius,0.0,true,true,Temperature
CH171 = ID1.TC.011,Temperature,Celsius,0.0,true,true,Temperature
CH172 = ID1.TC.012,Temperature,Celsius,0.0,true,true,Temperature
CH173 = ID1.TC.013,Temperature,Celsius,0.0,true,true,Temperature
CH174 = ID1.TC.014,Temperature,Celsius,0.0,true,true,Temperature
CH175 = ID1.TC.015,Temperature,Celsius,0.0,true,true,Temperature
CH176 = ID1.TC.016,Temperature,Celsius,0.0,true,true,Temperature
CH177 = ID1.TC.017,Temperature,Celsius,0.0,true,true,Temperature
CH178 = ID1.TC.018,Temperature,Celsius,0.0,true,true,Temperature
CH179 = ID1.TC.019,Temperature,Celsius,0.0,true,true,Temperature
CH180 = ID1.TC.020,Temperature,Celsius,0.0,true,true,Temperature
CH181 = ID1.TC.021,Temperature,Celsius,0.0,true,true,Temperature
CH182 = ID1.TC.022,Temperature,Celsius,0.0,true,true,Temperature
CH183 = ID1.TC.023,Temperature,Celsius,0.0,true,true,Temperature
CH184 = ID1.TC.024,Temperature,Celsius,0.0,true,true,Temperature
CH185 = ID1.TC.025,Temperature,Celsius,0.0,true,true,Temperature
CH186 = ID1.TC.026,Temperature,Celsius,0.0,true,true,Temperature
CH187 = ID1.TC.027,Temperature,Celsius,0.0,true,true,Temperature
CH188 = ID1.TC.028,Temperature,Celsius,0.0,true,true,Temperature
CH189 = ID1.TC.029,Temperature,Celsius,0.0,true,true,Temperature
CH190 = ID1.TC.030,Temperature,Celsius,0.0,true,true,Temperature
CH191 = ID1.TC.031,Temperature,Celsius,0.0,true,true,Temperature
CH192 = ID1.TC.032,Temperature,Celsius,0.0,true,true,Temperature
CH193 = ID1.TC.033,Temperature,Celsius,0.0,true,true,Temperature
CH194 = ID1.TC.034,Temperature,Celsius,0.0,true,true,Temperature
CH195 = ID1.TC.035,Temperature,Celsius,0.0,true,true,Temperature
CH196 = ID1.TC.036,Temperature,Celsius,0.0,true,true,Temperature
CH197 = ID1.TC.037,Temperature,Celsius,0.0,true,true,Temperature
CH198 = ID1.TC.038,Temperature,Celsius,0.0,true,true,Temperature
CH199 = ID1.TC.039,Temperature,Celsius,0.0,true,true,Temperature
CH200 = ID1.TC.040,Temperature,Celsius,0.0,true,true,Temperature
CH201 = ID1.TC.041,Temperature,Celsius,0.0,true,true,Temperature
CH202 = ID1.TC.042,Temperature,Celsius,0.0,true,true,Temperature
CH203 = ID1.TC.043,Temperature,Celsius,0.0,true,true,Temperature
CH204 = ID1.TC.044,Temperature,Celsius,0.0,true,true,Temperature
CH205 = ID1.TC.045,Temperature,Celsius,0.0,true,true,Temperature
CH206 = ID1.TC.046,Temperature,Celsius,0.0,true,true,Temperature
CH207 = ID1.TC.047,Temperature,Celsius,0.0,true,true,Temperature
CH208 = ID1.TC.048,Temperature,Celsius,0.0,true,true,Temperature
CH209 = ID1.TC.049,Temperature,Celsius,0.0,true,true,Temperature
CH210 = ID1.TC.050,Temperature,Celsius,0.0,true,true,Temperature
CH211 = ID1.TC.051,Temperature,Celsius,0.0,true,true,Temperature
CH212 = ID1.TC.052,Temperature,Celsius,0.0,true,true,Temperature
CH213 = ID1.TC.053,Temperature,Celsius,0.0,true,true,Temperature
CH214 = ID1.TC.054,Temperature,Celsius,0.0,true,true,Temperature
CH215 = ID1.TC.055,Temperature,Celsius,0.0,true,true,Temperature
CH216 = ID1.TC.056,Temperature,Celsius,0.0,true,true,Temperature
CH217 = ID1.TC.057,Temperature,Celsius,0.0,true,true,Temperature
CH218 = ID1.TC.058,Temperature,Celsius,0.0,true,true,Temperature
CH219 = ID1.TC.059,Temperature,Celsius,0.0,true,true,Temperature
CH220 = ID1.TC.060,Temperature,Celsius,0.0,true,true,Temperature
CH221 = ID2.TC.001,Temperature,Celsius,0.0,true,true,Temperature
CH222 = ID2.TC.002,Temperature,Celsius,0.0,true,true,Temperature
CH223 = ID2.TC.003,Temperature,Celsius,0.0,true,true,Temperature
CH224 = ID2.TC.004,Temperature,Celsius,0.0,true,true,Temperature
CH225 = ID2.TC.005,Temperature,Celsius,0.0,true,true,Temperature
CH226 = ID2.TC.006,Temperature,Celsius,0.0,true,true,Temperature
CH227 = ID2.TC.007,Temperature,Celsius,0.0,true,true,Temperature
CH228 = ID2.TC.008,Temperature,Celsius,0.0,true,true,Temperature
CH229 = ID2.TC.009,Temperature,Celsius,0.0,true,true,Temperature
CH230 = ID2.TC.010,Temperature,Celsius,0.0,true,true,Temperature
CH231 = ID2.TC.011,Temperature,Celsius,0.0,true,true,Temperature
CH232 = ID2.TC.012,Temperature,Celsius,0.0,true,true,Temperature
CH233 = ID2.TC.013,Temperature,Celsius,0.0,true,true,Temperature
CH234 = ID2.TC.014,Temperature,Celsius,0.0,true,true,Temperature
CH235 = ID2.TC.015,Temperature,Celsius,0.0,true,true,Temperature
CH236 = ID2.TC.016,Temperature,Celsius,0.0,true,true,Temperature
CH237 = ID2.TC.017,Temperature,Celsius,0.0,true,true,Temperature
CH238 = ID2.TC.018,Temperature,Celsius,0.0,true,true,Temperature
CH239 = ID2.TC.019,Temperature,Celsius,0.0,true,true,Temperature
CH240 = ID2.TC.020,Temperature,Celsius,0.0,true,true,Temperature
CH241 = ID2.TC.021,Temperature,Celsius,0.0,true,true,Temperature
CH242 = ID2.TC.022,Temperature,Celsius,0.0,true,true,Temperature
CH243 = ID2.TC.023,Temperature,Celsius,0.0,true,true,Temperature
CH244 = ID2.TC.024,Temperature,Celsius,0.0,true,true,Temperature
CH245 = ID2.TC.025,Temperature,Celsius,0.0,true,true,Temperature
CH246 = ID2.TC.026,Temperature,Celsius,0.0,true,true,Temperature
CH247 = ID2.TC.027,Temperature,Celsius,0.0,true,true,Temperature
CH248 = ID2.TC.028,Temperature,Celsius,0.0,true,true,Temperature
CH249 = ID2.TC.029,Temperature,Celsius,0.0,true,true,Temperature
CH250 = ID2.TC.030,Temperature,Celsius,0.0,true,true,Temperature
CH251 = ID2.TC.031,Temperature,Celsius,0.0,true,true,Temperature
CH252 = ID2.TC.032,Temperature,Celsius,0.0,true,true,Temperature
CH253 = ID2.TC.033,Temperature,Celsius,0.0,true,true,Temperature
CH254 = ID2.TC.034,Temperature,Celsius,0.0,true,true,Temperature
CH255 = ID2.TC.035,Temperature,Celsius,0.0,true,true,Temperature
CH256 = ID2.TC.036,Temperature,Celsius,0.0,true,true,Temperature
CH257 = ID2.TC.037,Temperature,Celsius,0.0,true,true,Temperature
CH258 = ID2.TC.038,Temperature,Celsius,0.0,true,true,Temperature
CH259 = ID2.TC.039,Temperature,Celsius,0.0,true,true,Temperature
CH260 = ID2.TC.040,Temperature,Celsius,0.0,true,true,Temperature
CH261 = ID2.TC.041,Temperature,Celsius,0.0,true,true,Temperature
CH262 = ID2.TC.042,Temperature,Celsius,0.0,true,true,Temperature
CH263 = ID2.TC.043,Temperature,Celsius,0.0,true,true,Temperature
CH264 = ID2.TC.044,Temperature,Celsius,0.0,true,true,Temperature
CH265 = ID2.TC.045,Temperature,Celsius,0.0,true,true,Temperature
CH266 = ID2.TC.046,Temperature,Celsius,0.0,true,true,Temperature
CH267 = ID2.TC.047,Temperature,Celsius,0.0,true,true,Temperature
CH268 = ID2.TC.048,Temperature,Celsius,0.0,true,true,Temperature
CH269 = ID2.TC.049,Temperature,Celsius,0.0,true,true,Temperature
CH270 = ID2.TC.050,Temperature,Celsius,0.0,true,true,Temperature
CH271 = ID2.TC.051,Temperature,Celsius,0.0,true,true,Temperature
CH272 = ID2.TC.052,Temperature,Celsius,0.0,true,true,Temperature
CH273 = ID2.TC.053,Temperature,Celsius,0.0,true,true,Temperature
CH274 = ID2.TC.054,Temperature,Celsius,0.0,true,true,Temperature
CH275 = ID2.TC.055,Temperature,Celsius,0.0,true,true,Temperature
CH276 = ID2.TC.056,Temperature,Celsius,0.0,true,true,Temperature
CH277 = ID2.TC.057,Temperature,Celsius,0.0,true,true,Temperature
CH278 = ID2.TC.058,Temperature,Celsius,0.0,true,true,Temperature
CH279 = ID2.TC.059,Temperature,Celsius,0.0,true,true,Temperature
CH280 = ID2.TC.060,Temperature,Celsius,0.0,true,true,Temperature
CH281 = OD.TC.001,Temperature,Celsius,0.0,true,true,Temperature
CH282 = OD.TC.002,Temperature,Celsius,0.0,true,true,Temperature
CH283 = OD.TC.003,Temperature,Celsius,0.0,true,true,Temperature
CH284 = OD.TC.004,Temperature,Celsius,0.0,true,true,Temperature
CH285 = OD.TC.005,Temperature,Celsius,0.0,true,true,Temperature
CH286 = OD.TC.006,Temperature,Celsius,0.0,true,true,Temperature
CH287 = OD.TC.007,Temperature,Celsius,0.0,true,true,Temperature
CH288 = OD.TC.008,Temperature,Celsius,0.0,true,true,Temperature
CH289 = OD.TC.009,Temperature,Celsius,0.0,true,true,Temperature
CH290 = OD.TC.010,Temperature,Celsius,0.0,true,true,Temperature
CH291 = OD.TC.011,Temperature,Celsius,0.0,true,true,Temperature
CH292 = OD.TC.012,Temperature,Celsius,0.0,true,true,Temperature
CH293 = OD.TC.013,Temperature,Celsius,0.0,true,true,Temperature
CH294 = OD.TC.014,Temperature,Celsius,0.0,true,true,Temperature
CH295 = OD.TC.015,Temperature,Celsius,0.0,true,true,Temperature
CH296 = OD.TC.016,Temperature,Celsius,0.0,true,true,Temperature
CH297 = OD.TC.017,Temperature,Celsius,0.0,true,true,Temperature
CH298 = OD.TC.018,Temperature,Celsius,0.0,true,true,Temperature
CH299 = OD.TC.019,Temperature,Celsius,0.0,true,true,Temperature
CH300 = OD.TC.020,Temperature,Celsius,0.0,true,true,Temperature
CH301 = OD.TC.021,Temperature,Celsius,0.0,true,true,Temperature
CH302 = OD.TC.022,Temperature,Celsius,0.0,true,true,Temperature
CH303 = OD.TC.023,Temperature,Celsius,0.0,true,true,Temperature
CH304 = OD.TC.024,Temperature,Celsius,0.0,true,true,Temperature
CH305 = OD.TC.025,Temperature,Celsius,0.0,true,true,Temperature
CH306 = OD.TC.026,Temperature,Celsius,0.0,true,true,Temperature
CH307 = OD.TC.027,Temperature,Celsius,0.0,true,true,Temperature
CH308 = OD.TC.028,Temperature,Celsius,0.0,true,true,Temperature
CH309 = OD.TC.029,Temperature,Celsius,0.0,true,true,Temperature
CH310 = OD.TC.030,Temperature,Celsius,0.0,true,true,Temperature
CH311 = OD.TC.031,Temperature,Celsius,0.0,true,true,Temperature
CH312 = OD.TC.032,Temperature,Celsius,0.0,true,true,Temperature
CH313 = OD.TC.033,Temperature,Celsius,0.0,true,true,Temperature
CH314 = OD.TC.034,Temperature,Celsius,0.0,true,true,Temperature
CH315 = OD.TC.035,Temperature,Celsius,0.0,true,true,Temperature
CH316 = OD.TC.036,Temperature,Celsius,0.0,true,true,Temperature
CH317 = OD.TC.037,Temperature,Celsius,0.0,true,true,Temperature
CH318 = OD.TC.038,Temperature,Celsius,0.0,true,true,Temperature
CH319 = OD.TC.039,Temperature,Celsius,0.0,true,true,Temperature
CH320 = OD.TC.040,Temperature,Celsius,0.0,true,true,Temperature
CH321 = OD.TC.041,Temperature,Celsius,0.0,true,true,Temperature
CH322 = OD.TC.042,Temperature,Celsius,0.0,true,true,Temperature
CH323 = OD.TC.043,Temperature,Celsius,0.0,true,true,Temperature
CH324 = OD.TC.044,Temperature,Celsius,0.0,true,true,Temperature
CH325 = OD.TC.045,Temperature,Celsius,0.0,true,true,Temperature
CH326 = OD.TC.046,Temperature,Celsius,0.0,true,true,Temperature
CH327 = OD.TC.047,Temperature,Celsius,0.0,true,true,Temperature
CH328 = OD.TC.048,Temperature,Celsius,0.0,true,true,Temperature
CH329 = OD.TC.049,Temperature,Celsius,0.0,true,true,Temperature
CH330 = OD.TC.050,Temperature,Celsius,0.0,true,true,Temperature
CH331 = OD.TC.051,Temperature,Celsius,0.0,true,true,Temperature
CH332 = OD.TC.052,Temperature,Celsius,0.0,true,true,Temperature
CH333 = OD.TC.053,Temperature,Celsius,0.0,true,true,Temperature
CH334 = OD.TC.054,Temperature,Celsius,0.0,true,true,Temperature
CH335 = OD.TC.055,Temperature,Celsius,0.0,true,true,Temperature
CH336 = OD.TC.056,Temperature,Celsius,0.0,true,true,Temperature
CH337 = OD.TC.057,Temperature,Celsius,0.0,true,true,Temperature
CH338 = OD.TC.058,Temperature,Celsius,0.0,true,true,Temperature
CH339 = OD.TC.059,Temperature,Celsius,0.0,true,true,Temperature
CH340 = OD.TC.060,Temperature,Celsius,0.0,true,true,Temperature

;Controller-1
;Name,UnitType,DefaultUnit,DisplayFormat,Save,Chart,Y-Axis
CH341 = CTRL1.PV,None,None,0.0,false,false,None
CH342 = CTRL1.SV,None,None,0.0,false,false,None
CH343 = CTRL1.OUT,None,None,0.0,false,false,None
CH344 = CTRL1.Mode,None,None,0.0,false,false,None
CH345 = CTRL1.SPN,None,None,0.0,false,false,None
CH346 = CTRL1.P,None,None,0.0,false,false,None
CH347 = CTRL1.I,None,None,0.0,false,false,None
CH348 = CTRL1.D,None,None,0.0,false,false,None
CH349 = CTRL1.DEV,None,None,0.0,false,false,None
CH350 = CTRL1.BS,None,None,0.0,false,false,None
CH351 = CTRL1.FL,None,None,0.0,false,false,None
CH352 = CTRL1.MOUT,None,None,0.0,false,false,None

;PLC-1
;Name,UnitType,DefaultUnit,DisplayFormat,Save,Chart,Y-Axis
CH353 = ID11.Nozzle1,None,None,0.0,false,false,None
CH354 = ID11.Nozzle2,None,None,0.0,false,false,None
CH355 = ID11.Nozzle3,None,None,0.0,false,false,None
CH356 = ID11.Nozzle4,None,None,0.0,false,false,None
CH357 = ID12.Nozzle1,None,None,0.0,false,false,None
CH358 = ID12.Nozzle2,None,None,0.0,false,false,None
CH359 = ID12.Nozzle3,None,None,0.0,false,false,None
CH360 = ID12.Nozzle4,None,None,0.0,false,false,None
CH361 = ID21.Nozzle1,None,None,0.0,false,false,None
CH362 = ID21.Nozzle2,None,None,0.0,false,false,None
CH363 = ID21.Nozzle3,None,None,0.0,false,false,None
CH364 = ID21.Nozzle4,None,None,0.0,false,false,None
CH365 = ID22.Nozzle1,None,None,0.0,false,false,None
CH366 = ID22.Nozzle2,None,None,0.0,false,false,None
CH367 = ID22.Nozzle3,None,None,0.0,false,false,None
CH368 = ID22.Nozzle4,None,None,0.0,false,false,None

[TC.Tag]
Tag1 = TC-001
Tag2 = TC-002
Tag3 = TC-003
Tag4 = TC-004
Tag5 = TC-005
Tag6 = TC-006
Tag7 = TC-007
Tag8 = TC-008
Tag9 = TC-009
Tag10 = TC-010

[Press.Tag]
Tag1 = Press-001
Tag2 = Press-002
Tag3 = Press-003
Tag4 = Press-004
Tag5 = Press-005
Tag6 = Press-006
Tag7 = Press-007
Tag8 = Press-008
Tag9 = Press-009
Tag10 = Press-010

[Options]
FixedAtmPressure =true
ForcedInteg =true
ExcelPath =D:\ShDoc\Projects\VS\Hnc\Calorimeter\Client\Excel
AutoExcel =true
StoppedTestExcel =true
Indoor1TC =false
Indoor2TC =true
OutdoorTC =true
IndoorTC1=false
IndoorTC2=false

[Coefficient.ID11]
Airflow =1.0
CoolingCapacity =1.0
HeatingCapacity =1.0
Cooling_HLK =4.0
Heating_HLK =4.0
Cooling_HLK_Duct1 =3.0
Heating_HLK_Duct1 =3.0
Cooling_HLK_Duct2 =4.5
Heating_HLK_Duct2 =4.5
Cooling_HLK_Duct3 =6.0
Heating_HLK_Duct3 =6.0
Cooling_HLK_Duct4 =7.5
Heating_HLK_Duct4 =7.5
Cooling_HLK_Duct5 =9.0
Heating_HLK_Duct5 =9.0
Nozzle1 =100.0
Nozzle2 =150.0
Nozzle3 =150.0
Nozzle4 =300.0

[Coefficient.ID12]
Airflow =1.0
CoolingCapacity =1.0
HeatingCapacity =1.0
Cooling_HLK =4.0
Heating_HLK =5.0
Cooling_HLK_Duct1 =0.0
Heating_HLK_Duct1 =3.0
Cooling_HLK_Duct2 =4.5
Heating_HLK_Duct2 =4.5
Cooling_HLK_Duct3 =6.0
Heating_HLK_Duct3 =6.0
Cooling_HLK_Duct4 =7.5
Heating_HLK_Duct4 =7.5
Cooling_HLK_Duct5 =9.0
Heating_HLK_Duct5 =9.0
Nozzle1 =100.0
Nozzle2 =60.0
Nozzle3 =85.0
Nozzle4 =100.0

[Coefficient.ID21]
Airflow =1.0
CoolingCapacity =2.0
HeatingCapacity =3.0
Cooling_HLK =4.0
Heating_HLK =5.0
Cooling_HLK_Duct1 =6.0
Heating_HLK_Duct1 =3.0
Cooling_HLK_Duct2 =4.5
Heating_HLK_Duct2 =4.5
Cooling_HLK_Duct3 =6.0
Heating_HLK_Duct3 =6.0
Cooling_HLK_Duct4 =7.5
Heating_HLK_Duct4 =7.5
Cooling_HLK_Duct5 =9.0
Heating_HLK_Duct5 =9.0
Nozzle1 =100.0
Nozzle2 =125.0
Nozzle3 =150.0
Nozzle4 =150.0

[Coefficient.ID22]
Airflow =1.0
CoolingCapacity =1.0
HeatingCapacity =1.0
Cooling_HLK =4.0
Heating_HLK =4.0
Cooling_HLK_Duct1 =3.0
Heating_HLK_Duct1 =3.0
Cooling_HLK_Duct2 =4.5
Heating_HLK_Duct2 =4.5
Cooling_HLK_Duct3 =6.0
Heating_HLK_Duct3 =6.0
Cooling_HLK_Duct4 =7.5
Heating_HLK_Duct4 =7.5
Cooling_HLK_Duct5 =9.0
Heating_HLK_Duct5 =9.0
Nozzle1 =50.0
Nozzle2 =200.0
Nozzle3 =85.0
Nozzle4 =100.0
<file_sep>﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

using Ulee.Controls;

namespace Hnc.Calorimeter.Client
{
    public partial class CtrlDevicePlc : UlUserControlEng
    {
        public List<UlPanel> Views { get; private set; }

        public CtrlDevicePlc()
        {
            InitializeComponent();
            Initialize();
        }

        private void Initialize()
        {
            Views = new List<UlPanel>();
            Views.Add(view1Panel);
            Views.Add(view2Panel);
            Views.Add(view3Panel);
            Views.Add(view4Panel);
    
            foreach (UlPanel panel in Views)
            {
                panel.Controls.Add(new CtrlPlcView());
            }
        }
    }
}
<file_sep>﻿using System;
using System.Collections.Generic;
using System.Net;
using System.Net.Sockets;
using Ulee.DllImport.Win32;
using Ulee.Utils;

namespace Hnc.Calorimeter.Client
{
    public enum EClientState
    {
        Openning,
        Running,
        Closing
    }

    static public class Resource
    {
        private const string csConfigIniFName = @"..\..\Config\Hnc.Calorimeter.3R.Client.Config.Ini";
        public const string csExcelOriginReport = @"..\..\Resource\Excel\PsychrometricDataSheet.LG.P14.xlsx";
        public const string csDateFormat = "yyyy-MM-dd";
        public const string csDateTimeFormat = "yyyy-MM-dd HH:mm:ss";
        public const string Caption = "Calorimeter.Client";

        public const int WM_TEST_NORMAL_TERMINATED      = (Win32.WM_USER + 0);
        public const int WM_TEST_ABNORMAL_TERMINATED    = (Win32.WM_USER + 1);
        public const int WM_TEST_VALUE_INSERT_DATABOOK  = (Win32.WM_USER + 2);

        static public UlBinSets BusySets { get; set; }

        static public bool Busy
        {
            get
            {
                return (BusySets.Byte(0) == 0) ? false : true;
            }
        }

        static public EClientState State { get; set; }

        static public string Ip { get; private set; }

        static public int UserNo { get; set; }

        static public EUserAuthority Authority { get; set; }

        static public UlIniFile Ini { get; private set; }

        static public UlLogger TLog { get; private set; }

        static public UlLogger ALog { get; private set; }

        static public List<CalorimeterTestDatabase> TestDB { get; private set; }
        static public CalorimeterViewDatabase ViewDB { get; private set; }
        static public CalorimeterConfigDatabase ConfigDB { get; private set; }

        static public CalorimeterClient Client { get; private set; }
        
        static public NameTag Tag { get; private set; }

        static public TestValue Variables { get; set; }

        static public TestSettings Settings { get; set; }

        static public FormClientMain MainForm { get; set; }

        static public void Create()
        {
            BusySets = new UlBinSets(1);

            State = EClientState.Openning;

            //Ini = new UlIniFile(csConfigIniFName);

            Ip = GetLocalIP();

            UserNo = -1;
            Authority = EUserAuthority.Viewer;

            Tag = new NameTag(Ini);

            //TLog = new UlLogger();
            //TLog.Path = Ini.GetString("Log", "TotalPath");
            //TLog.FName = Ini.GetString("Log", "TotalFileName");
            //TLog.AddHead("NOTE");
            //TLog.AddHead("ERROR");
            //TLog.AddHead("EXCEPTION");

            Client = new CalorimeterClient(Ini);

            Settings = new TestSettings(Ini);
            Settings.Load();

            TestDB = new List<CalorimeterTestDatabase>();
            TestDB.Add(new CalorimeterTestDatabase());
            TestDB.Add(new CalorimeterTestDatabase());
            TestDB.Add(new CalorimeterTestDatabase());
            TestDB.Add(new CalorimeterTestDatabase());

            for (int i = 0; i < 4; i++)
            {
                TestDB[i].Database = Ini.GetString("Database", "FileName");
                TestDB[i].Open();
            }

            ViewDB = new CalorimeterViewDatabase();
            ViewDB.Database = Ini.GetString("Database", "FileName");
            ViewDB.Open();

            ConfigDB = new CalorimeterConfigDatabase();
            ConfigDB.Database = Ini.GetString("Database", "FileName");
            ConfigDB.Open();
        }

        static public void CreateLogger()
        {
            Ini = new UlIniFile(csConfigIniFName);

            TLog = new UlLogger();
            TLog.Path = Ini.GetString("Log", "TotalPath");
            TLog.FName = Ini.GetString("Log", "TotalFileName");
            TLog.AddHead("NOTE");
            TLog.AddHead("ERROR");
            TLog.AddHead("EXCEPTION");
        }

        static public void Destroy()
        {
            for (int i = 0; i < 4; i++)
            {
                if (TestDB[i] != null)
                {
                    TestDB[i].Close();
                }
            }

            if (ViewDB != null)
            {
                ViewDB.Close();
            }

            if (ConfigDB != null)
            {
                ConfigDB.Close();
            }
        }

        static private string GetLocalIP()
        {
            string localIP = "0.0.0.0";
            IPHostEntry host = Dns.GetHostEntry(Dns.GetHostName());

            foreach (IPAddress ip in host.AddressList)
            {
                if (ip.AddressFamily == AddressFamily.InterNetwork)
                {
                    localIP = ip.ToString();
                    break;
                }
            }

            return localIP;
        }
    }

    public class NameTag
    {
        public NameTag(UlIniFile ini)
        {
            Thermos = new List<MeasureRow>();
            Presses = new List<MeasureRow>();

            string value = ini.GetString("Recorder", "Pressure");
            string[] values = value.Split(new[] { ',' }, StringSplitOptions.None);

            PressIndex = int.Parse(values[0]);
            PressLength = int.Parse(values[1]);

            value = ini.GetString("Recorder", "Thermocouple");
            values = value.Split(new[] { ',' }, StringSplitOptions.None);

            ThermoIndex = int.Parse(values[0]);
            ThermoLength = int.Parse(values[1]);

            int i = 1;
            string key = $"Tag{i}";
            string name = ini.GetString("TC.Tag", key);

            while (string.IsNullOrWhiteSpace(name) == false)
            {
                Thermos.Add(new MeasureRow(null, "", name, i));

                i++;
                key = $"Tag{i}";
                name = ini.GetString("TC.Tag", key);
            }

            i = 1;
            key = $"Tag{i}";
            name = ini.GetString("Press.Tag", key);

            while (string.IsNullOrWhiteSpace(name) == false)
            {
                Presses.Add(new MeasureRow(null, "", name, i));

                i++;
                key = $"Tag{i}";
                name = ini.GetString("Press.Tag", key);
            }
        }

        public int ThermoIndex { get; private set; }
        public int ThermoLength { get; private set; }
        public List<MeasureRow> Thermos { get; private set; }

        public int PressIndex { get; private set; }
        public int PressLength { get; private set; }
        public List<MeasureRow> Presses { get; private set; }
    }
}
<file_sep>[Database]
FileName = D:\Database\Hnc\Firebird.2.5\Calorimeter.3R\Hnc.Calorimeter.3R.FDB

[Login]
UserNo =0

[Log]
TotalPath = ..\..\Log\Total
TotalFileName = Hnc.Calorimeter.Total
AlarmlPath = ..\..\Log\Alarm
AlarmFileName = Hnc.Calorimeter.Alarm

[Server]
ip = 127.0.0.1
port = 10101

[Listener]
LogPath = ..\..\Log\Listener
LogFileName = Hnc.Calorimeter.Listener
Logging = Event

[Sender]
LogPath = ..\..\Log\Sender
LogFileName = Hnc.Calorimeter.Sender
Logging = All

[Device]
FValueLength = 496
NValueLength = 16

[PowerMeter]
PM1 = WT310(A),P1
PM2 = WT310(B),P1
PM3 = WT333(150K),P3
PM4 = WT333(300K),P3

[Controller]
Ctrl1 = ID A DB (¡É),0,1
Ctrl2 = ID A WB (¡É),0,2
Ctrl3 = ID A ¥ÄP #1 (mmAq),0,3
Ctrl4 = ID A ¥ÄP #2 (mmAq),0,4
Ctrl5 = ID B DB (¡É),0,5
Ctrl6 = ID B WB (¡É),0,6
Ctrl7 = ID B ¥ÄP #1 (mmAq),0,7
Ctrl8 = ID B ¥ÄP #2 (mmAq),0,8
Ctrl9 = OD DB (¡É),0,9
Ctrl10 = OD WB (¡É),0,10
Ctrl11 = OD DP (¡É),0,11
Ctrl12 = VOLTAGE #1 (V),0,12
Ctrl13 = VOLTAGE #2 (V),0,13

[Recorder]
Rec1 = GM10-01
Pressure = 134,8
Thermocouple = 161,180

[Plc]
Plc1 = MasterK-01

[PM1.Channel]
CH1 = PM1.R.W
CH2 = PM1.R.V
CH3 = PM1.R.A
CH4 = PM1.R.Hz
CH5 = PM1.R.PF
CH6 = PM1.R.Wh
CH7 = PM1.S.W
CH8 = PM1.S.V
CH9 = PM1.S.A
CH10 = PM1.S.Hz
CH11 = PM1.S.PF
CH12 = PM1.S.Wh
CH13 = PM1.T.W
CH14 = PM1.T.V
CH15 = PM1.T.A
CH16 = PM1.T.Hz
CH17 = PM1.T.PF
CH18 = PM1.T.Wh
CH19 = PM1.Sigma.W
CH20 = PM1.Sigma.V
CH21 = PM1.Sigma.A
CH22 = PM1.Sigma.Hz
CH23 = PM1.Sigma.PF
CH24 = PM1.Sigma.Wh
CH25 = PM1.Integ.Time

[PM2.Channel]
CH1 = PM2.R.W
CH2 = PM2.R.V
CH3 = PM2.R.A
CH4 = PM2.R.Hz
CH5 = PM2.R.PF
CH6 = PM2.R.Wh
CH7 = PM2.S.W
CH8 = PM2.S.V
CH9 = PM2.S.A
CH10 = PM2.S.Hz
CH11 = PM2.S.PF
CH12 = PM2.S.Wh
CH13 = PM2.T.W
CH14 = PM2.T.V
CH15 = PM2.T.A
CH16 = PM2.T.Hz
CH17 = PM2.T.PF
CH18 = PM2.T.Wh
CH19 = PM2.Sigma.W
CH20 = PM2.Sigma.V
CH21 = PM2.Sigma.A
CH22 = PM2.Sigma.Hz
CH23 = PM2.Sigma.PF
CH24 = PM2.Sigma.Wh
CH25 = PM2.Integ.Time

[PM3.Channel]
CH1 = PM3.R.W
CH2 = PM3.R.V
CH3 = PM3.R.A
CH4 = PM3.R.Hz
CH5 = PM3.R.PF
CH6 = PM3.R.Wh
CH7 = PM3.S.W
CH8 = PM3.S.V
CH9 = PM3.S.A
CH10 = PM3.S.Hz
CH11 = PM3.S.PF
CH12 = PM3.S.Wh
CH13 = PM3.T.W
CH14 = PM3.T.V
CH15 = PM3.T.A
CH16 = PM3.T.Hz
CH17 = PM3.T.PF
CH18 = PM3.T.Wh
CH19 = PM3.Sigma.W
CH20 = PM3.Sigma.V
CH21 = PM3.Sigma.A
CH22 = PM3.Sigma.Hz
CH23 = PM3.Sigma.PF
CH24 = PM3.Sigma.Wh
CH25 = PM3.Integ.Time

[PM4.Channel]
CH1 = PM4.R.W
CH2 = PM4.R.V
CH3 = PM4.R.A
CH4 = PM4.R.Hz
CH5 = PM4.R.PF
CH6 = PM4.R.Wh
CH7 = PM4.S.W
CH8 = PM4.S.V
CH9 = PM4.S.A
CH10 = PM4.S.Hz
CH11 = PM4.S.PF
CH12 = PM4.S.Wh
CH13 = PM4.T.W
CH14 = PM4.T.V
CH15 = PM4.T.A
CH16 = PM4.T.Hz
CH17 = PM4.T.PF
CH18 = PM4.T.Wh
CH19 = PM4.Sigma.W
CH20 = PM4.Sigma.V
CH21 = PM4.Sigma.A
CH22 = PM4.Sigma.Hz
CH23 = PM4.Sigma.PF
CH24 = PM4.Sigma.Wh
CH25 = PM4.Integ.Time

[Rec1.Channel]
CH1 = ID11.Entering.DB
CH2 = ID11.Entering.WB
CH3 = ID11.Leaving.DB
CH4 = ID11.Leaving.WB
CH5 = ID11.Nozzle.Diff.Pressure
CH6 = ID11.Static.Pressure
CH7 = ID11.Nozzle.Inlet.Temp
CH8 = ID12.Entering.DB
CH9 = ID12.Entering.WB
CH10 = ID12.Leaving.DB
CH11 = ID12.Leaving.WB
CH12 = ID12.Nozzle.Diff.Pressure
CH13 = ID12.Static.Pressure
CH14 = ID12.Nozzle.Inlet.Temp
CH15 = ID1.Atm.Pressure
CH16 = ID21.Entering.DB
CH17 = ID21.Entering.WB
CH18 = ID21.Leaving.DB
CH19 = ID21.Leaving.WB
CH20 = ID21.Nozzle.Diff.Pressure
CH21 = ID21.Static.Pressure
CH22 = ID21.Nozzle.Inlet.Temp
CH23 = ID22.Entering.DB
CH24 = ID22.Entering.WB
CH25 = ID22.Leaving.DB
CH26 = ID22.Leaving.WB
CH27 = ID22.Nozzle.Diff.Pressure
CH28 = ID22.Static.Pressure
CH29 = ID22.Nozzle.Inlet.Temp
CH30 = ID2.Atm.Pressure
CH31 = OD.Entering.DB
CH32 = OD.Entering.WB
CH33 = OD.Entering.DP
CH34 = Pressure.1
CH35 = Pressure.2
CH36 = Pressure.3
CH37 = Pressure.4
CH38 = Pressure.5
CH39 = Pressure.6
CH40 = Pressure.7
CH41 = Pressure.8
CH42 = None.1
CH43 = None.2
CH44 = None.3
CH45 = None.4
CH46 = None.5
CH47 = None.6
CH48 = None.7
CH49 = None.8
CH50 = None.9
CH51 = None.10
CH52 = None.11
CH53 = None.12
CH54 = None.13
CH55 = None.14
CH56 = None.15
CH57 = None.16
CH58 = None.17
CH59 = None.18
CH60 = None.19
CH61 = ID1.TC.001
CH62 = ID1.TC.002
CH63 = ID1.TC.003
CH64 = ID1.TC.004
CH65 = ID1.TC.005
CH66 = ID1.TC.006
CH67 = ID1.TC.007
CH68 = ID1.TC.008
CH69 = ID1.TC.009
CH70 = ID1.TC.010
CH71 = ID1.TC.011
CH72 = ID1.TC.012
CH73 = ID1.TC.013
CH74 = ID1.TC.014
CH75 = ID1.TC.015
CH76 = ID1.TC.016
CH77 = ID1.TC.017
CH78 = ID1.TC.018
CH79 = ID1.TC.019
CH80 = ID1.TC.020
CH81 = ID1.TC.021
CH82 = ID1.TC.022
CH83 = ID1.TC.023
CH84 = ID1.TC.024
CH85 = ID1.TC.025
CH86 = ID1.TC.026
CH87 = ID1.TC.027
CH88 = ID1.TC.028
CH89 = ID1.TC.029
CH90 = ID1.TC.030
CH91 = ID1.TC.031
CH92 = ID1.TC.032
CH93 = ID1.TC.033
CH94 = ID1.TC.034
CH95 = ID1.TC.035
CH96 = ID1.TC.036
CH97 = ID1.TC.037
CH98 = ID1.TC.038
CH99 = ID1.TC.039
CH100 = ID1.TC.040
CH101 = ID1.TC.041
CH102 = ID1.TC.042
CH103 = ID1.TC.043
CH104 = ID1.TC.044
CH105 = ID1.TC.045
CH106 = ID1.TC.046
CH107 = ID1.TC.047
CH108 = ID1.TC.048
CH109 = ID1.TC.049
CH110 = ID1.TC.050
CH111 = ID1.TC.051
CH112 = ID1.TC.052
CH113 = ID1.TC.053
CH114 = ID1.TC.054
CH115 = ID1.TC.055
CH116 = ID1.TC.056
CH117 = ID1.TC.057
CH118 = ID1.TC.058
CH119 = ID1.TC.059
CH120 = ID1.TC.060
CH121 = ID2.TC.001
CH122 = ID2.TC.002
CH123 = ID2.TC.003
CH124 = ID2.TC.004
CH125 = ID2.TC.005
CH126 = ID2.TC.006
CH127 = ID2.TC.007
CH128 = ID2.TC.008
CH129 = ID2.TC.009
CH130 = ID2.TC.010
CH131 = ID2.TC.011
CH132 = ID2.TC.012
CH133 = ID2.TC.013
CH134 = ID2.TC.014
CH135 = ID2.TC.015
CH136 = ID2.TC.016
CH137 = ID2.TC.017
CH138 = ID2.TC.018
CH139 = ID2.TC.019
CH140 = ID2.TC.020
CH141 = ID2.TC.021
CH142 = ID2.TC.022
CH143 = ID2.TC.023
CH144 = ID2.TC.024
CH145 = ID2.TC.025
CH146 = ID2.TC.026
CH147 = ID2.TC.027
CH148 = ID2.TC.028
CH149 = ID2.TC.029
CH150 = ID2.TC.030
CH151 = ID2.TC.031
CH152 = ID2.TC.032
CH153 = ID2.TC.033
CH154 = ID2.TC.034
CH155 = ID2.TC.035
CH156 = ID2.TC.036
CH157 = ID2.TC.037
CH158 = ID2.TC.038
CH159 = ID2.TC.039
CH160 = ID2.TC.040
CH161 = ID2.TC.041
CH162 = ID2.TC.042
CH163 = ID2.TC.043
CH164 = ID2.TC.044
CH165 = ID2.TC.045
CH166 = ID2.TC.046
CH167 = ID2.TC.047
CH168 = ID2.TC.048
CH169 = ID2.TC.049
CH170 = ID2.TC.050
CH171 = ID2.TC.051
CH172 = ID2.TC.052
CH173 = ID2.TC.053
CH174 = ID2.TC.054
CH175 = ID2.TC.055
CH176 = ID2.TC.056
CH177 = ID2.TC.057
CH178 = ID2.TC.058
CH179 = ID2.TC.059
CH180 = ID2.TC.060
CH181 = OD.TC.001
CH182 = OD.TC.002
CH183 = OD.TC.003
CH184 = OD.TC.004
CH185 = OD.TC.005
CH186 = OD.TC.006
CH187 = OD.TC.007
CH188 = OD.TC.008
CH189 = OD.TC.009
CH190 = OD.TC.010
CH191 = OD.TC.011
CH192 = OD.TC.012
CH193 = OD.TC.013
CH194 = OD.TC.014
CH195 = OD.TC.015
CH196 = OD.TC.016
CH197 = OD.TC.017
CH198 = OD.TC.018
CH199 = OD.TC.019
CH200 = OD.TC.020
CH201 = OD.TC.021
CH202 = OD.TC.022
CH203 = OD.TC.023
CH204 = OD.TC.024
CH205 = OD.TC.025
CH206 = OD.TC.026
CH207 = OD.TC.027
CH208 = OD.TC.028
CH209 = OD.TC.029
CH210 = OD.TC.030
CH211 = OD.TC.031
CH212 = OD.TC.032
CH213 = OD.TC.033
CH214 = OD.TC.034
CH215 = OD.TC.035
CH216 = OD.TC.036
CH217 = OD.TC.037
CH218 = OD.TC.038
CH219 = OD.TC.039
CH220 = OD.TC.040
CH221 = OD.TC.041
CH222 = OD.TC.042
CH223 = OD.TC.043
CH224 = OD.TC.044
CH225 = OD.TC.045
CH226 = OD.TC.046
CH227 = OD.TC.047
CH228 = OD.TC.048
CH229 = OD.TC.049
CH230 = OD.TC.050
CH231 = OD.TC.051
CH232 = OD.TC.052
CH233 = OD.TC.053
CH234 = OD.TC.054
CH235 = OD.TC.055
CH236 = OD.TC.056
CH237 = OD.TC.057
CH238 = OD.TC.058
CH239 = OD.TC.059
CH240 = OD.TC.060

[Ctrl1.Channel]
CH1 = CTRL1.PV
CH2 = CTRL1.SV
CH3 = CTRL1.OUT
CH4 = CTRL1.Mode
CH5 = CTRL1.SPN
CH6 = CTRL1.P
CH7 = CTRL1.I
CH8 = CTRL1.D
CH9 = CTRL1.DEV
CH10 = CTRL1.BS
CH11 = CTRL1.FL
CH12 = CTRL1.MOUT

[Ctrl2.Channel]
CH1 = CTRL2.PV
CH2 = CTRL2.SV
CH3 = CTRL2.OUT
CH4 = CTRL2.Mode
CH5 = CTRL2.SPN
CH6 = CTRL2.P
CH7 = CTRL2.I
CH8 = CTRL2.D
CH9 = CTRL2.DEV
CH10 = CTRL2.BS
CH11 = CTRL2.FL
CH12 = CTRL2.MOUT

[Ctrl3.Channel]
CH1 = CTRL3.PV
CH2 = CTRL3.SV
CH3 = CTRL3.OUT
CH4 = CTRL3.Mode
CH5 = CTRL3.SPN
CH6 = CTRL3.P
CH7 = CTRL3.I
CH8 = CTRL3.D
CH9 = CTRL3.DEV
CH10 = CTRL3.BS
CH11 = CTRL3.FL
CH12 = CTRL3.MOUT

[Ctrl4.Channel]
CH1 = CTRL4.PV
CH2 = CTRL4.SV
CH3 = CTRL4.OUT
CH4 = CTRL4.Mode
CH5 = CTRL4.SPN
CH6 = CTRL4.P
CH7 = CTRL4.I
CH8 = CTRL4.D
CH9 = CTRL4.DEV
CH10 = CTRL4.BS
CH11 = CTRL4.FL
CH12 = CTRL4.MOUT

[Ctrl5.Channel]
CH1 = CTRL5.PV
CH2 = CTRL5.SV
CH3 = CTRL5.OUT
CH4 = CTRL5.Mode
CH5 = CTRL5.SPN
CH6 = CTRL5.P
CH7 = CTRL5.I
CH8 = CTRL5.D
CH9 = CTRL5.DEV
CH10 = CTRL5.BS
CH11 = CTRL5.FL
CH12 = CTRL5.MOUT

[Ctrl6.Channel]
CH1 = CTRL6.PV
CH2 = CTRL6.SV
CH3 = CTRL6.OUT
CH4 = CTRL6.Mode
CH5 = CTRL6.SPN
CH6 = CTRL6.P
CH7 = CTRL6.I
CH8 = CTRL6.D
CH9 = CTRL6.DEV
CH10 = CTRL6.BS
CH11 = CTRL6.FL
CH12 = CTRL6.MOUT

[Ctrl7.Channel]
CH1 = CTRL7.PV
CH2 = CTRL7.SV
CH3 = CTRL7.OUT
CH4 = CTRL7.Mode
CH5 = CTRL7.SPN
CH6 = CTRL7.P
CH7 = CTRL7.I
CH8 = CTRL7.D
CH9 = CTRL7.DEV
CH10 = CTRL7.BS
CH11 = CTRL7.FL
CH12 = CTRL7.MOUT

[Ctrl8.Channel]
CH1 = CTRL8.PV
CH2 = CTRL8.SV
CH3 = CTRL8.OUT
CH4 = CTRL8.Mode
CH5 = CTRL8.SPN
CH6 = CTRL8.P
CH7 = CTRL8.I
CH8 = CTRL8.D
CH9 = CTRL8.DEV
CH10 = CTRL8.BS
CH11 = CTRL8.FL
CH12 = CTRL8.MOUT

[Ctrl9.Channel]
CH1 = CTRL9.PV
CH2 = CTRL9.SV
CH3 = CTRL9.OUT
CH4 = CTRL9.Mode
CH5 = CTRL9.SPN
CH6 = CTRL9.P
CH7 = CTRL9.I
CH8 = CTRL9.D
CH9 = CTRL9.DEV
CH10 = CTRL9.BS
CH11 = CTRL9.FL
CH12 = CTRL9.MOUT

[Ctrl10.Channel]
CH1 = CTRL10.PV
CH2 = CTRL10.SV
CH3 = CTRL10.OUT
CH4 = CTRL10.Mode
CH5 = CTRL10.SPN
CH6 = CTRL10.P
CH7 = CTRL10.I
CH8 = CTRL10.D
CH9 = CTRL10.DEV
CH10 = CTRL10.BS
CH11 = CTRL10.FL
CH12 = CTRL10.MOUT

[Ctrl11.Channel]
CH1 = CTRL11.PV
CH2 = CTRL11.SV
CH3 = CTRL11.OUT
CH4 = CTRL11.Mode
CH5 = CTRL11.SPN
CH6 = CTRL11.P
CH7 = CTRL11.I
CH8 = CTRL11.D
CH9 = CTRL11.DEV
CH10 = CTRL11.BS
CH11 = CTRL11.FL
CH12 = CTRL11.MOUT

[Ctrl12.Channel]
CH1 = CTRL12.PV
CH2 = CTRL12.SV
CH3 = CTRL12.OUT
CH4 = CTRL12.Mode
CH5 = CTRL12.SPN
CH6 = CTRL12.P
CH7 = CTRL12.I
CH8 = CTRL12.D
CH9 = CTRL12.DEV
CH10 = CTRL12.BS
CH11 = CTRL12.FL
CH12 = CTRL12.MOUT

[Ctrl13.Channel]
CH1 = CTRL13.PV
CH2 = CTRL13.SV
CH3 = CTRL13.OUT
CH4 = CTRL13.Mode
CH5 = CTRL13.SPN
CH6 = CTRL13.P
CH7 = CTRL13.I
CH8 = CTRL13.D
CH9 = CTRL13.DEV
CH10 = CTRL13.BS
CH11 = CTRL13.FL
CH12 = CTRL13.MOUT

[Plc1.Channel]
CH1 = PLC1.1
CH2 = PLC1.2
CH3 = PLC1.3
CH4 = PLC1.4
CH5 = PLC1.5
CH6 = PLC1.6
CH7 = PLC1.7
CH8 = PLC1.8
CH9 = PLC1.9
CH10 = PLC1.10
CH11 = PLC1.11
CH12 = PLC1.12
CH13 = PLC1.13
CH14 = PLC1.14
CH15 = PLC1.15
CH16 = PLC1.16

[Constant.Channel]
;Name,UnitType,DefaultUnit,DisplayFormat,Save,Chart,Y-Axis
CH1 = Total.Rated.Capacity,Capacity,kcal,0.0,false,false,Capacity
CH2 = Total.Rated.Power,Power,W,0.0,false,false,Power
CH3 = Total.Rated.EER_COP,EER_COP,kcal,0.000,false,false,EER_COP
CH4 = Total.Rated.Voltage,Voltage,V,0.0,false,false,Voltage
CH5 = Total.Rated.Current,Current,A,0.000,false,false,Current
CH6 = Total.Rated.Frequency,Frequency,Hz,0.00,false,false,Frequency

[Calculated.Channel]
;Name,UnitType,DefaultUnit,DisplayFormat,Save,Chart,Y-Axis
CH1 = Total.Capacity,Capacity,kcal,0.0,true,true,Capacity
CH2 = Total.Power,Power,W,0.0,true,true,Power
CH3 = Total.Current,Current,A,0.000,true,true,Current
CH4 = Total.EER_COP,EER_COP,kcal,0.000,true,true,EER_COP
CH5 = Total.Capacity.Ratio,Ratio,Percent,0.00,true,true,Ratio
CH6 = Total.Power.Ratio,Ratio,Percent,0.00,true,true,Ratio
CH7 = Total.EER_COP.Ratio,Ratio,Percent,0.00,true,true,Ratio
CH8 = Total.Current.Ratio,Ratio,Percent,0.00,true,true,Ratio
CH9 = Total.IDU.Power,Power,W,0.0,true,true,Power
CH10 = Total.IDU.Voltage,Voltage,V,0.0,true,true,Voltage
CH11 = Total.IDU.Current,Current,A,0.000,true,true,Current
CH12 = Total.IDU.Frequency,Frequency,Hz,0.00,true,true,Frequency
CH13 = Total.IDU.Power.Factor,Ratio,Percent,0.00,true,true,Ratio
CH14 = Total.IDU.Integ.Power,PowerComsumption,Wh,0.0,true,true,PowerComsumption
CH15 = Total.IDU.Integ.Time,Time,sec,0.00,false,false,Time
CH16 = Total.ODU.Power,Power,W,0.0,true,true,Power
CH17 = Total.ODU.Voltage,Voltage,V,0.0,true,true,Voltage
CH18 = Total.ODU.Current,Current,A,0.000,true,true,Current
CH19 = Total.ODU.Frequency,Frequency,Hz,0.00,true,true,Frequency
CH20 = Total.ODU.Power.Factor,Ratio,Percent,0.00,true,true,Ratio
CH21 = Total.ODU.Integ.Power,PowerComsumption,Wh,0.0,true,true,PowerComsumption
CH22 = Total.ODU.Integ.Time,Time,sec,0.00,false,false,Time
CH23 = ID1.IDU.Power,Power,W,0.0,true,true,Power
CH24 = ID1.IDU.Voltage,Voltage,V,0.0,true,true,Voltage
CH25 = ID1.IDU.Current,Current,A,0.000,true,true,Current
CH26 = ID1.IDU.Frequency,Frequency,Hz,0.00,true,true,Frequency
CH27 = ID1.IDU.Power.Factor,Ratio,Percent,0.00,true,true,Ratio
CH28 = ID1.IDU.Integ.Power,PowerComsumption,Wh,0.0,true,true,PowerComsumption
CH29 = ID1.IDU.Integ.Time,Time,sec,0.0,false,false,Time
CH30 = ID1.ODU.Power,Power,W,0.0,true,true,Power
CH31 = ID1.ODU.Voltage,Voltage,V,0.0,true,true,Voltage
CH32 = ID1.ODU.Current,Current,A,0.000,true,true,Current
CH33 = ID1.ODU.Frequency,Frequency,Hz,0.00,true,true,Frequency
CH34 = ID1.ODU.Power.Factor,Ratio,Percent,0.00,true,true,Ratio
CH35 = ID1.ODU.Integ.Power,PowerComsumption,Wh,0.0,true,true,PowerComsumption
CH36 = ID1.ODU.Integ.Time,Time,sec,0.0,false,false,Time
CH37 = ID2.IDU.Power,Power,W,0.0,true,true,Power
CH38 = ID2.IDU.Voltage,Voltage,V,0.0,true,true,Voltage
CH39 = ID2.IDU.Current,Current,A,0.000,true,true,Current
CH40 = ID2.IDU.Frequency,Frequency,Hz,0.00,true,true,Frequency
CH41 = ID2.IDU.Power.Factor,Ratio,Percent,0.00,true,true,Ratio
CH42 = ID2.IDU.Integ.Power,PowerComsumption,Wh,0.0,true,true,PowerComsumption
CH43 = ID2.IDU.Integ.Time,Time,sec,0.0,false,false,Time
CH44 = ID2.ODU.Power,Power,W,0.0,true,true,Power
CH45 = ID2.ODU.Voltage,Voltage,V,0.0,true,true,Voltage
CH46 = ID2.ODU.Current,Current,A,0.000,true,true,Current
CH47 = ID2.ODU.Frequency,Frequency,Hz,0.00,true,true,Frequency
CH48 = ID2.ODU.Power.Factor,Ratio,Percent,0.00,true,true,Ratio
CH49 = ID2.ODU.Integ.Power,PowerComsumption,Wh,0.0,true,true,PowerComsumption
CH50 = ID2.ODU.Integ.Time,Time,sec,0.0,false,false,Time
CH51 = OD.Entering.RH,Ratio,Percent,0.00,true,true,Humidity
CH52 = OD.Sat.Dis.Temp1,Temperature,Celsius,0.00,true,true,Temperature
CH53 = OD.Sat.Suc.Temp1,Temperature,Celsius,0.00,true,true,Temperature
CH54 = OD.Sub.Cooling1,Temperature,Celsius,0.00,true,true,Temperature
CH55 = OD.Super.Heat1,Temperature,Celsius,0.00,true,true,Temperature
CH56 = OD.Sat.Dis.Temp2,Temperature,Celsius,0.00,true,true,Temperature
CH57 = OD.Sat.Suc.Temp2,Temperature,Celsius,0.00,true,true,Temperature
CH58 = OD.Sub.Cooling2,Temperature,Celsius,0.00,true,true,Temperature
CH59 = OD.Super.Heat2,Temperature,Celsius,0.00,true,true,Temperature
CH60 = ID11.Entering.RH,Ratio,Percent,0.00,true,true,Humidity
CH61 = ID11.Capacity,Capacity,kcal,0.0,true,true,Capacity
CH62 = ID11.Capacity.Ratio,Ratio,Percent,0.00,true,true,Ratio
CH63 = ID11.Sensible.Heat,Capacity,kcal,0.0,true,true,Capacity
CH64 = ID11.Latent.Heat,Capacity,kcal,0.0,true,true,Capacity
CH65 = ID11.Sensible.Heat.Ratio,Ratio,Percent,0.00,true,true,Ratio
CH66 = ID11.Heat.Leakage,Capacity,kcal,0.0,true,true,Capacity
CH67 = ID11.Drain.Weight,Flux,kg_h,0.00,true,true,Flux
CH68 = ID11.Leaving.RH,Ratio,Percent,0.00,true,true,Ratio
CH69 = ID11.Entering.Enthalpy,Enthalpy,kcal,0.000,true,true,Enthalpy
CH70 = ID11.Leaving.Enthalpy,Enthalpy,kcal,0.000,true,true,Enthalpy
CH71 = ID11.Entering.Humidity.Ratio,HumidityRatio,kg_kg,0.0000,true,true,HumidityRatio
CH72 = ID11.Leaving.Humidity.Ratio,HumidityRatio,kg_kg,0.0000,true,true,HumidityRatio
CH73 = ID11.Leaving.Specific.Heat,Heat,kcal,0.0000,true,true,Heat
CH74 = ID11.Leaving.Specific.Volume,Volume,m3_kg,0.0000,true,true,Volume
CH75 = ID11.Air.Flow.Lev,AirFlow,CMM,0.00,true,true,AirFlow
CH76 = ID11.Air.Velocity.Lev,Velocity,m_s,0.000,true,true,Velocity
CH77 = ID12.Entering.RH,Ratio,Percent,0.00,true,true,Humidity
CH78 = ID12.Capacity,Capacity,kcal,0.0,true,true,Capacity
CH79 = ID12.Capacity.Ratio,Ratio,Percent,0.00,true,true,Ratio
CH80 = ID12.Sensible.Heat,Capacity,kcal,0.0,true,true,Capacity
CH81 = ID12.Latent.Heat,Capacity,kcal,0.0,true,true,Capacity
CH82 = ID12.Sensible.Heat.Ratio,Ratio,Percent,0.00,true,true,Ratio
CH83 = ID12.Heat.Leakage,Capacity,kcal,0.0,true,true,Capacity
CH84 = ID12.Drain.Weight,Flux,kg_h,0.00,true,true,Flux
CH85 = ID12.Leaving.RH,Ratio,Percent,0.00,true,true,Ratio
CH86 = ID12.Entering.Enthalpy,Enthalpy,kcal,0.000,true,true,Enthalpy
CH87 = ID12.Leaving.Enthalpy,Enthalpy,kcal,0.000,true,true,Enthalpy
CH88 = ID12.Entering.Humidity.Ratio,HumidityRatio,kg_kg,0.0000,true,true,HumidityRatio
CH89 = ID12.Leaving.Humidity.Ratio,HumidityRatio,kg_kg,0.0000,true,true,HumidityRatio
CH90 = ID12.Leaving.Specific.Heat,Heat,kcal,0.0000,true,true,Heat
CH91 = ID12.Leaving.Specific.Volume,Volume,m3_kg,0.0000,true,true,Volume
CH92 = ID12.Air.Flow.Lev,AirFlow,CMM,0.00,true,true,AirFlow
CH93 = ID12.Air.Velocity.Lev,Velocity,m_s,0.000,true,true,Velocity
CH94 = ID21.Entering.RH,Ratio,Percent,0.00,true,true,Humidity
CH95 = ID21.Capacity,Capacity,kcal,0.0,true,true,Capacity
CH96 = ID21.Capacity.Ratio,Ratio,Percent,0.00,true,true,Ratio
CH97 = ID21.Sensible.Heat,Capacity,kcal,0.0,true,true,Capacity
CH98 = ID21.Latent.Heat,Capacity,kcal,0.0,true,true,Capacity
CH99 = ID21.Sensible.Heat.Ratio,Ratio,Percent,0.00,true,true,Ratio
CH100 = ID21.Heat.Leakage,Capacity,kcal,0.0,true,true,Capacity
CH101 = ID21.Drain.Weight,Flux,kg_h,0.00,true,true,Flux
CH102 = ID21.Leaving.RH,Ratio,Percent,0.00,true,true,Ratio
CH103 = ID21.Entering.Enthalpy,Enthalpy,kcal,0.000,true,true,Default
CH104 = ID21.Leaving.Enthalpy,Enthalpy,kcal,0.000,true,true,Default
CH105 = ID21.Entering.Humidity.Ratio,HumidityRatio,kg_kg,0.0000,true,true,HumidityRatio
CH106 = ID21.Leaving.Humidity.Ratio,HumidityRatio,kg_kg,0.0000,true,true,HumidityRatio
CH107 = ID21.Leaving.Specific.Heat,Heat,kcal,0.0000,true,true,Heat
CH108 = ID21.Leaving.Specific.Volume,Volume,m3_kg,0.0000,true,true,Volume
CH109 = ID21.Air.Flow.Lev,AirFlow,CMM,0.00,true,true,AirFlow
CH110 = ID21.Air.Velocity.Lev,Velocity,m_s,0.000,true,true,Velocity
CH111 = ID22.Entering.RH,Ratio,Percent,0.00,true,true,Humidity
CH112 = ID22.Capacity,Capacity,kcal,0.0,true,true,Capacity
CH113 = ID22.Capacity.Ratio,Ratio,Percent,0.00,true,true,Ratio
CH114 = ID22.Sensible.Heat,Capacity,kcal,0.0,true,true,Capacity
CH115 = ID22.Latent.Heat,Capacity,kcal,0.0,true,true,Capacity
CH116 = ID22.Sensible.Heat.Ratio,Ratio,Percent,0.00,true,true,Ratio
CH117 = ID22.Heat.Leakage,Capacity,kcal,0.0,true,true,Capacity
CH118 = ID22.Drain.Weight,Flux,kg_h,0.00,true,true,Flux
CH119 = ID22.Leaving.RH,Ratio,Percent,0.00,true,true,Ratio
CH120 = ID22.Entering.Enthalpy,Enthalpy,kcal,0.000,true,true,Default
CH121 = ID22.Leaving.Enthalpy,Enthalpy,kcal,0.000,true,true,Default
CH122 = ID22.Entering.Humidity.Ratio,HumidityRatio,kg_kg,0.0000,true,true,HumidityRatio
CH123 = ID22.Leaving.Humidity.Ratio,HumidityRatio,kg_kg,0.0000,true,true,HumidityRatio
CH124 = ID22.Leaving.Specific.Heat,Heat,kcal,0.0000,true,true,Heat
CH125 = ID22.Leaving.Specific.Volume,Volume,m3_kg,0.0000,true,true,Volume
CH126 = ID22.Air.Flow.Lev,AirFlow,CMM,0.00,true,true,AirFlow
CH127 = ID22.Air.Velocity.Lev,Velocity,m_s,0.000,true,true,Velocity
CH128 = ID11.Nozzle,None,None,0.0,false,false,None
CH129 = ID12.Nozzle,None,None,0.0,false,false,None
CH130 = ID21.Nozzle,None,None,0.0,false,false,None
CH131 = ID22.Nozzle,None,None,0.0,false,false,None
   
[Measured.Channel]
;PowerMeter-1
;Name,UnitType,DefaultUnit,DisplayFormat,Save,Chart,Y-Axis
CH1 = PM1.R.W,Power,W,0.0,false,false,Power
CH2 = PM1.R.V,Voltage,V,0.0,false,false,Voltage
CH3 = PM1.R.A,Current,A,0.000,false,false,Current
CH4 = PM1.R.Hz,Frequency,Hz,0.00,false,false,Frequency
CH5 = PM1.R.PF,Ratio,Percent,0.00,false,false,Ratio
CH6 = PM1.R.Wh,PowerComsumption,Wh,0.000,false,false,PowerComsumption
CH7 = PM1.S.W,Power,W,0.0,false,false,Power
CH8 = PM1.S.V,Voltage,V,0.0,false,false,Voltage
CH9 = PM1.S.A,Current,A,0.000,false,false,Current
CH10 = PM1.S.Hz,Frequency,Hz,0.00,false,false,Frequency
CH11 = PM1.S.PF,Ratio,Percent,0.00,false,false,PowerFactor
CH12 = PM1.S.Wh,PowerComsumption,Wh,0.000,false,false,PowerComsumption
CH13 = PM1.T.W,Power,W,0.0,false,false,Power
CH14 = PM1.T.V,Voltage,V,0.0,false,false,Voltage
CH15 = PM1.T.A,Current,A,0.000,false,false,Current
CH16 = PM1.T.Hz,Frequency,Hz,0.00,false,false,Frequency
CH17 = PM1.T.PF,Ratio,Percent,0.00,false,false,PowerFactor
CH18 = PM1.T.Wh,PowerComsumption,Wh,0.000,false,false,PowerComsumption
CH19 = PM1.Sigma.W,Power,W,0.0,false,false,Power
CH20 = PM1.Sigma.V,Voltage,V,0.0,false,false,Voltage
CH21 = PM1.Sigma.A,Current,A,0.000,false,false,Current
CH22 = PM1.Sigma.Hz,Frequency,Hz,0.00,false,false,Frequency
CH23 = PM1.Sigma.PF,Ratio,Percent,0.00,false,false,PowerFactor
CH24 = PM1.Sigma.Wh,PowerComsumption,Wh,0.000,false,false,PowerComsumption
CH25 = PM1.Time,Time,sec,0.0,false,false,Time

;PowerMeter-2
;Name,UnitType,DefaultUnit,DisplayFormat,Save,Chart,Y-Axis
CH26 = PM2.R.W,Power,W,0.0,false,false,Power
CH27 = PM2.R.V,Voltage,V,0.0,false,false,Voltage
CH28 = PM2.R.A,Current,A,0.000,false,false,Current
CH29 = PM2.R.Hz,Frequency,Hz,0.00,false,false,Frequency
CH30 = PM2.R.PF,Ratio,Percent,0.00,false,false,PowerFactor
CH31 = PM2.R.Wh,PowerComsumption,Wh,0.000,false,false,PowerComsumption
CH32 = PM2.S.W,Power,W,0.0,false,false,Power
CH33 = PM2.S.V,Voltage,V,0.0,false,false,Voltage
CH34 = PM2.S.A,Current,A,0.000,false,false,Current
CH35 = PM2.S.Hz,Frequency,Hz,0.00,false,false,Frequency
CH36 = PM2.S.PF,Ratio,Percent,0.00,false,false,PowerFactor
CH37 = PM2.S.Wh,PowerComsumption,Wh,0.000,false,false,PowerComsumption
CH38 = PM2.T.W,Power,W,0.0,false,false,Power
CH39 = PM2.T.V,Voltage,V,0.0,false,false,Voltage
CH40 = PM2.T.A,Current,A,0.000,false,false,Current
CH41 = PM2.T.Hz,Frequency,Hz,0.00,false,false,Frequency
CH42 = PM2.T.PF,Ratio,Percent,0.00,false,false,PowerFactor
CH43 = PM2.T.Wh,PowerComsumption,Wh,0.000,false,false,PowerComsumption
CH44 = PM2.Sigma.W,Power,W,0.0,false,false,Power
CH45 = PM2.Sigma.V,Voltage,V,0.0,false,false,Voltage
CH46 = PM2.Sigma.A,Current,A,0.000,false,false,Current
CH47 = PM2.Sigma.Hz,Frequency,Hz,0.00,false,false,Frequency
CH48 = PM2.Sigma.PF,Ratio,Percent,0.00,false,false,PowerFactor
CH49 = PM2.Sigma.Wh,PowerComsumption,Wh,0.000,false,false,PowerComsumption
CH50 = PM2.Time,Time,sec,0.0,false,false,Time

;PowerMeter-3
;Name,UnitType,DefaultUnit,DisplayFormat,Save,Chart,Y-Axis
CH51 = PM3.R.W,Power,W,0.0,false,false,Power
CH52 = PM3.R.V,Voltage,V,0.0,false,false,Voltage
CH53 = PM3.R.A,Current,A,0.000,false,false,Current
CH54 = PM3.R.Hz,Frequency,Hz,0.00,false,false,Frequency
CH55 = PM3.R.PF,Ratio,Percent,0.00,false,false,PowerFactor
CH56 = PM3.R.Wh,PowerComsumption,Wh,0.000,false,false,PowerComsumption
CH57 = PM3.S.W,Power,W,0.0,false,false,Power
CH58 = PM3.S.V,Voltage,V,0.0,false,false,Voltage
CH59 = PM3.S.A,Current,A,0.000,false,false,Current
CH60 = PM3.S.Hz,Frequency,Hz,0.00,false,false,Frequency
CH61 = PM3.S.PF,Ratio,Percent,0.00,false,false,PowerFactor
CH62 = PM3.S.Wh,PowerComsumption,Wh,0.000,false,false,PowerComsumption
CH63 = PM3.T.W,Power,W,0.0,false,false,Power
CH64 = PM3.T.V,Voltage,V,0.0,false,false,Voltage
CH65 = PM3.T.A,Current,A,0.000,false,false,Current
CH66 = PM3.T.Hz,Frequency,Hz,0.00,false,false,Frequency
CH67 = PM3.T.PF,Ratio,Percent,0.00,false,false,PowerFactor
CH68 = PM3.T.Wh,PowerComsumption,Wh,0.000,false,false,PowerComsumption
CH69 = PM3.Sigma.W,Power,W,0.0,false,false,Power
CH70 = PM3.Sigma.V,Voltage,V,0.0,false,false,Voltage
CH71 = PM3.Sigma.A,Current,A,0.000,false,false,Current
CH72 = PM3.Sigma.Hz,Frequency,Hz,0.00,false,false,Frequency
CH73 = PM3.Sigma.PF,Ratio,Percent,0.00,false,false,PowerFactor
CH74 = PM3.Sigma.Wh,PowerComsumption,Wh,0.000,false,false,PowerComsumption
CH75 = PM3.Time,Time,sec,0.0,false,false,Time

;PowerMeter-4
;Name,UnitType,DefaultUnit,DisplayFormat,Save,Chart,Y-Axis
CH76 = PM4.R.W,Power,W,0.0,false,false,Power
CH77 = PM4.R.V,Voltage,V,0.0,false,false,Voltage
CH78 = PM4.R.A,Current,A,0.000,false,false,Current
CH79 = PM4.R.Hz,Frequency,Hz,0.00,false,false,Frequency
CH80 = PM4.R.PF,Ratio,Percent,0.00,false,false,PowerFactor
CH81 = PM4.R.Wh,PowerComsumption,Wh,0.000,false,false,PowerComsumption
CH82 = PM4.S.W,Power,W,0.0,false,false,Power
CH83 = PM4.S.V,Voltage,V,0.0,false,false,Voltage
CH84 = PM4.S.A,Current,A,0.000,false,false,Current
CH85 = PM4.S.Hz,Frequency,Hz,0.00,false,false,Frequency
CH86 = PM4.S.PF,Ratio,Percent,0.00,false,false,PowerFactor
CH87 = PM4.S.Wh,PowerComsumption,Wh,0.000,false,false,PowerComsumption
CH88 = PM4.T.W,Power,W,0.0,false,false,Power
CH89 = PM4.T.V,Voltage,V,0.0,false,false,Voltage
CH90 = PM4.T.A,Current,A,0.000,false,false,Current
CH91 = PM4.T.Hz,Frequency,Hz,0.00,false,false,Frequency
CH92 = PM4.T.PF,Ratio,Percent,0.00,false,false,PowerFactor
CH93 = PM4.T.Wh,PowerComsumption,Wh,0.000,false,false,PowerComsumption
CH94 = PM4.Sigma.W,Power,W,0.0,false,false,Power
CH95 = PM4.Sigma.V,Voltage,V,0.0,false,false,Voltage
CH96 = PM4.Sigma.A,Current,A,0.000,false,false,Current
CH97 = PM4.Sigma.Hz,Frequency,Hz,0.00,false,false,Frequency
CH98 = PM4.Sigma.PF,Ratio,Percent,0.00,false,false,PowerFactor
CH99 = PM4.Sigma.Wh,PowerComsumption,Wh,0.000,false,false,PowerComsumption
CH100 = PM4.Time,Time,sec,0.0,false,false,Time

;Recorder-1
;Name,UnitType,DefaultUnit,DisplayFormat,Save,Chart,Y-Axis
CH101 = ID11.Entering.DB,Temperature,Celsius,0.00,true,true,Temperature
CH102 = ID11.Entering.WB,Temperature,Celsius,0.00,true,true,Temperature
CH103 = ID11.Leaving.DB,Temperature,Celsius,0.00,true,true,Temperature
CH104 = ID11.Leaving.WB,Temperature,Celsius,0.00,true,true,Temperature
CH105 = ID11.Nozzle.Diff.Pressure,DiffPressure,mmAq,0.00,true,true,DiffPressure
CH106 = ID11.Static.Pressure,DiffPressure,mmAq,0.00,true,true,DiffPressure
CH107 = ID11.Nozzle.Inlet.Temp,Temperature,Celsius,0.00,true,true,Temperature
CH108 = ID12.Entering.DB,Temperature,Celsius,0.00,true,true,Temperature
CH109 = ID12.Entering.WB,Temperature,Celsius,0.00,true,true,Temperature
CH110 = ID12.Leaving.DB,Temperature,Celsius,0.00,true,true,Temperature
CH111 = ID12.Leaving.WB,Temperature,Celsius,0.00,true,true,Temperature
CH112 = ID12.Nozzle.Diff.Pressure,DiffPressure,mmAq,0.00,true,true,DiffPressure
CH113 = ID12.Static.Pressure,DiffPressure,mmAq,0.00,true,true,DiffPressure
CH114 = ID12.Nozzle.Inlet.Temp,Temperature,Celsius,0.00,true,true,Temperature
CH115 = ID1.Atm.Pressure,AtmPressure,mmHg,0.00,true,true,AtmPressure
CH116 = ID21.Entering.DB,Temperature,Celsius,0.00,true,true,Temperature
CH117 = ID21.Entering.WB,Temperature,Celsius,0.00,true,true,Temperature
CH118 = ID21.Leaving.DB,Temperature,Celsius,0.00,true,true,Temperature
CH119 = ID21.Leaving.WB,Temperature,Celsius,0.00,true,true,Temperature
CH120 = ID21.Nozzle.Diff.Pressure,DiffPressure,mmAq,0.00,true,true,DiffPressure
CH121 = ID21.Static.Pressure,DiffPressure,mmAq,0.00,true,true,DiffPressure
CH122 = ID21.Nozzle.Inlet.Temp,Temperature,Celsius,0.00,true,true,Temperature
CH123 = ID22.Entering.DB,Temperature,Celsius,0.00,true,true,Temperature
CH124 = ID22.Entering.WB,Temperature,Celsius,0.00,true,true,Temperature
CH125 = ID22.Leaving.DB,Temperature,Celsius,0.00,true,true,Temperature
CH126 = ID22.Leaving.WB,Temperature,Celsius,0.00,true,true,Temperature
CH127 = ID22.Nozzle.Diff.Pressure,DiffPressure,mmAq,0.00,true,true,DiffPressure
CH128 = ID22.Static.Pressure,DiffPressure,mmAq,0.00,true,true,DiffPressure
CH129 = ID22.Nozzle.Inlet.Temp,Temperature,Celsius,0.00,true,true,Temperature
CH130 = ID2.Atm.Pressure,AtmPressure,mmHg,0.00,true,true,AtmPressure
CH131 = OD.Entering.DB,Temperature,Celsius,0.00,true,true,Temperature
CH132 = OD.Entering.WB,Temperature,Celsius,0.00,true,true,Temperature
CH133 = OD.Entering.DP,Temperature,Celsius,0.00,true,true,Temperature
CH134 = Pressure.1,Pressure,kg_cm2,0.00,true,true,Pressure
CH135 = Pressure.2,Pressure,kg_cm2,0.00,true,true,Pressure
CH136 = Pressure.3,Pressure,kg_cm2,0.00,true,true,Pressure
CH137 = Pressure.4,Pressure,kg_cm2,0.00,true,true,Pressure
CH138 = Pressure.5,Pressure,kg_cm2,0.00,true,true,Pressure
CH139 = Pressure.6,Pressure,kg_cm2,0.00,true,true,Pressure
CH140 = Pressure.7,Pressure,kg_cm2,0.00,true,true,Pressure
CH141 = Pressure.8,Pressure,kg_cm2,0.00,true,true,Pressure
CH142 = None.1,None,None,0.0,false,false,None
CH143 = None.2,None,None,0.0,false,false,None
CH144 = None.3,None,None,0.0,false,false,None
CH145 = None.4,None,None,0.0,false,false,None
CH146 = None.5,None,None,0.0,false,false,None
CH147 = None.6,None,None,0.0,false,false,None
CH148 = None.7,None,None,0.0,false,false,None
CH149 = None.8,None,None,0.0,false,false,None
CH150 = None.9,None,None,0.0,false,false,None
CH151 = None.10,None,None,0.0,false,false,None
CH152 = None.11,None,None,0.0,false,false,None
CH153 = None.12,None,None,0.0,false,false,None
CH154 = None.13,None,None,0.0,false,false,None
CH155 = None.14,None,None,0.0,false,false,None
CH156 = None.15,None,None,0.0,false,false,None
CH157 = None.16,None,None,0.0,false,false,None
CH158 = None.17,None,None,0.0,false,false,None
CH159 = None.18,None,None,0.0,false,false,None
CH160 = None.19,None,None,0.0,false,false,None
CH161 = ID1.TC.001,Temperature,Celsius,0.0,true,true,Temperature
CH162 = ID1.TC.002,Temperature,Celsius,0.0,true,true,Temperature
CH163 = ID1.TC.003,Temperature,Celsius,0.0,true,true,Temperature
CH164 = ID1.TC.004,Temperature,Celsius,0.0,true,true,Temperature
CH165 = ID1.TC.005,Temperature,Celsius,0.0,true,true,Temperature
CH166 = ID1.TC.006,Temperature,Celsius,0.0,true,true,Temperature
CH167 = ID1.TC.007,Temperature,Celsius,0.0,true,true,Temperature
CH168 = ID1.TC.008,Temperature,Celsius,0.0,true,true,Temperature
CH169 = ID1.TC.009,Temperature,Celsius,0.0,true,true,Temperature
CH170 = ID1.TC.010,Temperature,Celsius,0.0,true,true,Temperature
CH171 = ID1.TC.011,Temperature,Celsius,0.0,true,true,Temperature
CH172 = ID1.TC.012,Temperature,Celsius,0.0,true,true,Temperature
CH173 = ID1.TC.013,Temperature,Celsius,0.0,true,true,Temperature
CH174 = ID1.TC.014,Temperature,Celsius,0.0,true,true,Temperature
CH175 = ID1.TC.015,Temperature,Celsius,0.0,true,true,Temperature
CH176 = ID1.TC.016,Temperature,Celsius,0.0,true,true,Temperature
CH177 = ID1.TC.017,Temperature,Celsius,0.0,true,true,Temperature
CH178 = ID1.TC.018,Temperature,Celsius,0.0,true,true,Temperature
CH179 = ID1.TC.019,Temperature,Celsius,0.0,true,true,Temperature
CH180 = ID1.TC.020,Temperature,Celsius,0.0,true,true,Temperature
CH181 = ID1.TC.021,Temperature,Celsius,0.0,true,true,Temperature
CH182 = ID1.TC.022,Temperature,Celsius,0.0,true,true,Temperature
CH183 = ID1.TC.023,Temperature,Celsius,0.0,true,true,Temperature
CH184 = ID1.TC.024,Temperature,Celsius,0.0,true,true,Temperature
CH185 = ID1.TC.025,Temperature,Celsius,0.0,true,true,Temperature
CH186 = ID1.TC.026,Temperature,Celsius,0.0,true,true,Temperature
CH187 = ID1.TC.027,Temperature,Celsius,0.0,true,true,Temperature
CH188 = ID1.TC.028,Temperature,Celsius,0.0,true,true,Temperature
CH189 = ID1.TC.029,Temperature,Celsius,0.0,true,true,Temperature
CH190 = ID1.TC.030,Temperature,Celsius,0.0,true,true,Temperature
CH191 = ID1.TC.031,Temperature,Celsius,0.0,true,true,Temperature
CH192 = ID1.TC.032,Temperature,Celsius,0.0,true,true,Temperature
CH193 = ID1.TC.033,Temperature,Celsius,0.0,true,true,Temperature
CH194 = ID1.TC.034,Temperature,Celsius,0.0,true,true,Temperature
CH195 = ID1.TC.035,Temperature,Celsius,0.0,true,true,Temperature
CH196 = ID1.TC.036,Temperature,Celsius,0.0,true,true,Temperature
CH197 = ID1.TC.037,Temperature,Celsius,0.0,true,true,Temperature
CH198 = ID1.TC.038,Temperature,Celsius,0.0,true,true,Temperature
CH199 = ID1.TC.039,Temperature,Celsius,0.0,true,true,Temperature
CH200 = ID1.TC.040,Temperature,Celsius,0.0,true,true,Temperature
CH201 = ID1.TC.041,Temperature,Celsius,0.0,true,true,Temperature
CH202 = ID1.TC.042,Temperature,Celsius,0.0,true,true,Temperature
CH203 = ID1.TC.043,Temperature,Celsius,0.0,true,true,Temperature
CH204 = ID1.TC.044,Temperature,Celsius,0.0,true,true,Temperature
CH205 = ID1.TC.045,Temperature,Celsius,0.0,true,true,Temperature
CH206 = ID1.TC.046,Temperature,Celsius,0.0,true,true,Temperature
CH207 = ID1.TC.047,Temperature,Celsius,0.0,true,true,Temperature
CH208 = ID1.TC.048,Temperature,Celsius,0.0,true,true,Temperature
CH209 = ID1.TC.049,Temperature,Celsius,0.0,true,true,Temperature
CH210 = ID1.TC.050,Temperature,Celsius,0.0,true,true,Temperature
CH211 = ID1.TC.051,Temperature,Celsius,0.0,true,true,Temperature
CH212 = ID1.TC.052,Temperature,Celsius,0.0,true,true,Temperature
CH213 = ID1.TC.053,Temperature,Celsius,0.0,true,true,Temperature
CH214 = ID1.TC.054,Temperature,Celsius,0.0,true,true,Temperature
CH215 = ID1.TC.055,Temperature,Celsius,0.0,true,true,Temperature
CH216 = ID1.TC.056,Temperature,Celsius,0.0,true,true,Temperature
CH217 = ID1.TC.057,Temperature,Celsius,0.0,true,true,Temperature
CH218 = ID1.TC.058,Temperature,Celsius,0.0,true,true,Temperature
CH219 = ID1.TC.059,Temperature,Celsius,0.0,true,true,Temperature
CH220 = ID1.TC.060,Temperature,Celsius,0.0,true,true,Temperature
CH221 = ID2.TC.001,Temperature,Celsius,0.0,true,true,Temperature
CH222 = ID2.TC.002,Temperature,Celsius,0.0,true,true,Temperature
CH223 = ID2.TC.003,Temperature,Celsius,0.0,true,true,Temperature
CH224 = ID2.TC.004,Temperature,Celsius,0.0,true,true,Temperature
CH225 = ID2.TC.005,Temperature,Celsius,0.0,true,true,Temperature
CH226 = ID2.TC.006,Temperature,Celsius,0.0,true,true,Temperature
CH227 = ID2.TC.007,Temperature,Celsius,0.0,true,true,Temperature
CH228 = ID2.TC.008,Temperature,Celsius,0.0,true,true,Temperature
CH229 = ID2.TC.009,Temperature,Celsius,0.0,true,true,Temperature
CH230 = ID2.TC.010,Temperature,Celsius,0.0,true,true,Temperature
CH231 = ID2.TC.011,Temperature,Celsius,0.0,true,true,Temperature
CH232 = ID2.TC.012,Temperature,Celsius,0.0,true,true,Temperature
CH233 = ID2.TC.013,Temperature,Celsius,0.0,true,true,Temperature
CH234 = ID2.TC.014,Temperature,Celsius,0.0,true,true,Temperature
CH235 = ID2.TC.015,Temperature,Celsius,0.0,true,true,Temperature
CH236 = ID2.TC.016,Temperature,Celsius,0.0,true,true,Temperature
CH237 = ID2.TC.017,Temperature,Celsius,0.0,true,true,Temperature
CH238 = ID2.TC.018,Temperature,Celsius,0.0,true,true,Temperature
CH239 = ID2.TC.019,Temperature,Celsius,0.0,true,true,Temperature
CH240 = ID2.TC.020,Temperature,Celsius,0.0,true,true,Temperature
CH241 = ID2.TC.021,Temperature,Celsius,0.0,true,true,Temperature
CH242 = ID2.TC.022,Temperature,Celsius,0.0,true,true,Temperature
CH243 = ID2.TC.023,Temperature,Celsius,0.0,true,true,Temperature
CH244 = ID2.TC.024,Temperature,Celsius,0.0,true,true,Temperature
CH245 = ID2.TC.025,Temperature,Celsius,0.0,true,true,Temperature
CH246 = ID2.TC.026,Temperature,Celsius,0.0,true,true,Temperature
CH247 = ID2.TC.027,Temperature,Celsius,0.0,true,true,Temperature
CH248 = ID2.TC.028,Temperature,Celsius,0.0,true,true,Temperature
CH249 = ID2.TC.029,Temperature,Celsius,0.0,true,true,Temperature
CH250 = ID2.TC.030,Temperature,Celsius,0.0,true,true,Temperature
CH251 = ID2.TC.031,Temperature,Celsius,0.0,true,true,Temperature
CH252 = ID2.TC.032,Temperature,Celsius,0.0,true,true,Temperature
CH253 = ID2.TC.033,Temperature,Celsius,0.0,true,true,Temperature
CH254 = ID2.TC.034,Temperature,Celsius,0.0,true,true,Temperature
CH255 = ID2.TC.035,Temperature,Celsius,0.0,true,true,Temperature
CH256 = ID2.TC.036,Temperature,Celsius,0.0,true,true,Temperature
CH257 = ID2.TC.037,Temperature,Celsius,0.0,true,true,Temperature
CH258 = ID2.TC.038,Temperature,Celsius,0.0,true,true,Temperature
CH259 = ID2.TC.039,Temperature,Celsius,0.0,true,true,Temperature
CH260 = ID2.TC.040,Temperature,Celsius,0.0,true,true,Temperature
CH261 = ID2.TC.041,Temperature,Celsius,0.0,true,true,Temperature
CH262 = ID2.TC.042,Temperature,Celsius,0.0,true,true,Temperature
CH263 = ID2.TC.043,Temperature,Celsius,0.0,true,true,Temperature
CH264 = ID2.TC.044,Temperature,Celsius,0.0,true,true,Temperature
CH265 = ID2.TC.045,Temperature,Celsius,0.0,true,true,Temperature
CH266 = ID2.TC.046,Temperature,Celsius,0.0,true,true,Temperature
CH267 = ID2.TC.047,Temperature,Celsius,0.0,true,true,Temperature
CH268 = ID2.TC.048,Temperature,Celsius,0.0,true,true,Temperature
CH269 = ID2.TC.049,Temperature,Celsius,0.0,true,true,Temperature
CH270 = ID2.TC.050,Temperature,Celsius,0.0,true,true,Temperature
CH271 = ID2.TC.051,Temperature,Celsius,0.0,true,true,Temperature
CH272 = ID2.TC.052,Temperature,Celsius,0.0,true,true,Temperature
CH273 = ID2.TC.053,Temperature,Celsius,0.0,true,true,Temperature
CH274 = ID2.TC.054,Temperature,Celsius,0.0,true,true,Temperature
CH275 = ID2.TC.055,Temperature,Celsius,0.0,true,true,Temperature
CH276 = ID2.TC.056,Temperature,Celsius,0.0,true,true,Temperature
CH277 = ID2.TC.057,Temperature,Celsius,0.0,true,true,Temperature
CH278 = ID2.TC.058,Temperature,Celsius,0.0,true,true,Temperature
CH279 = ID2.TC.059,Temperature,Celsius,0.0,true,true,Temperature
CH280 = ID2.TC.060,Temperature,Celsius,0.0,true,true,Temperature
CH281 = OD.TC.001,Temperature,Celsius,0.0,true,true,Temperature
CH282 = OD.TC.002,Temperature,Celsius,0.0,true,true,Temperature
CH283 = OD.TC.003,Temperature,Celsius,0.0,true,true,Temperature
CH284 = OD.TC.004,Temperature,Celsius,0.0,true,true,Temperature
CH285 = OD.TC.005,Temperature,Celsius,0.0,true,true,Temperature
CH286 = OD.TC.006,Temperature,Celsius,0.0,true,true,Temperature
CH287 = OD.TC.007,Temperature,Celsius,0.0,true,true,Temperature
CH288 = OD.TC.008,Temperature,Celsius,0.0,true,true,Temperature
CH289 = OD.TC.009,Temperature,Celsius,0.0,true,true,Temperature
CH290 = OD.TC.010,Temperature,Celsius,0.0,true,true,Temperature
CH291 = OD.TC.011,Temperature,Celsius,0.0,true,true,Temperature
CH292 = OD.TC.012,Temperature,Celsius,0.0,true,true,Temperature
CH293 = OD.TC.013,Temperature,Celsius,0.0,true,true,Temperature
CH294 = OD.TC.014,Temperature,Celsius,0.0,true,true,Temperature
CH295 = OD.TC.015,Temperature,Celsius,0.0,true,true,Temperature
CH296 = OD.TC.016,Temperature,Celsius,0.0,true,true,Temperature
CH297 = OD.TC.017,Temperature,Celsius,0.0,true,true,Temperature
CH298 = OD.TC.018,Temperature,Celsius,0.0,true,true,Temperature
CH299 = OD.TC.019,Temperature,Celsius,0.0,true,true,Temperature
CH300 = OD.TC.020,Temperature,Celsius,0.0,true,true,Temperature
CH301 = OD.TC.021,Temperature,Celsius,0.0,true,true,Temperature
CH302 = OD.TC.022,Temperature,Celsius,0.0,true,true,Temperature
CH303 = OD.TC.023,Temperature,Celsius,0.0,true,true,Temperature
CH304 = OD.TC.024,Temperature,Celsius,0.0,true,true,Temperature
CH305 = OD.TC.025,Temperature,Celsius,0.0,true,true,Temperature
CH306 = OD.TC.026,Temperature,Celsius,0.0,true,true,Temperature
CH307 = OD.TC.027,Temperature,Celsius,0.0,true,true,Temperature
CH308 = OD.TC.028,Temperature,Celsius,0.0,true,true,Temperature
CH309 = OD.TC.029,Temperature,Celsius,0.0,true,true,Temperature
CH310 = OD.TC.030,Temperature,Celsius,0.0,true,true,Temperature
CH311 = OD.TC.031,Temperature,Celsius,0.0,true,true,Temperature
CH312 = OD.TC.032,Temperature,Celsius,0.0,true,true,Temperature
CH313 = OD.TC.033,Temperature,Celsius,0.0,true,true,Temperature
CH314 = OD.TC.034,Temperature,Celsius,0.0,true,true,Temperature
CH315 = OD.TC.035,Temperature,Celsius,0.0,true,true,Temperature
CH316 = OD.TC.036,Temperature,Celsius,0.0,true,true,Temperature
CH317 = OD.TC.037,Temperature,Celsius,0.0,true,true,Temperature
CH318 = OD.TC.038,Temperature,Celsius,0.0,true,true,Temperature
CH319 = OD.TC.039,Temperature,Celsius,0.0,true,true,Temperature
CH320 = OD.TC.040,Temperature,Celsius,0.0,true,true,Temperature
CH321 = OD.TC.041,Temperature,Celsius,0.0,true,true,Temperature
CH322 = OD.TC.042,Temperature,Celsius,0.0,true,true,Temperature
CH323 = OD.TC.043,Temperature,Celsius,0.0,true,true,Temperature
CH324 = OD.TC.044,Temperature,Celsius,0.0,true,true,Temperature
CH325 = OD.TC.045,Temperature,Celsius,0.0,true,true,Temperature
CH326 = OD.TC.046,Temperature,Celsius,0.0,true,true,Temperature
CH327 = OD.TC.047,Temperature,Celsius,0.0,true,true,Temperature
CH328 = OD.TC.048,Temperature,Celsius,0.0,true,true,Temperature
CH329 = OD.TC.049,Temperature,Celsius,0.0,true,true,Temperature
CH330 = OD.TC.050,Temperature,Celsius,0.0,true,true,Temperature
CH331 = OD.TC.051,Temperature,Celsius,0.0,true,true,Temperature
CH332 = OD.TC.052,Temperature,Celsius,0.0,true,true,Temperature
CH333 = OD.TC.053,Temperature,Celsius,0.0,true,true,Temperature
CH334 = OD.TC.054,Temperature,Celsius,0.0,true,true,Temperature
CH335 = OD.TC.055,Temperature,Celsius,0.0,true,true,Temperature
CH336 = OD.TC.056,Temperature,Celsius,0.0,true,true,Temperature
CH337 = OD.TC.057,Temperature,Celsius,0.0,true,true,Temperature
CH338 = OD.TC.058,Temperature,Celsius,0.0,true,true,Temperature
CH339 = OD.TC.059,Temperature,Celsius,0.0,true,true,Temperature
CH340 = OD.TC.060,Temperature,Celsius,0.0,true,true,Temperature

;Controller-1
;Name,UnitType,DefaultUnit,DisplayFormat,Save,Chart,Y-Axis
CH341 = CTRL1.PV,Temperature,Celsius,0.00,false,false,Temperature
CH342 = CTRL1.SV,Temperature,Celsius,0.00,false,false,Temperature
CH343 = CTRL1.OUT,None,None,0.00,false,false,None
CH344 = CTRL1.Mode,None,None,0.00,false,false,None
CH345 = CTRL1.SPN,None,None,0.00,false,false,None
CH346 = CTRL1.P,None,None,0.00,false,false,None
CH347 = CTRL1.I,None,None,0.00,false,false,None
CH348 = CTRL1.D,None,None,0.00,false,false,None
CH349 = CTRL1.DEV,None,None,0.00,false,false,None
CH350 = CTRL1.BS,None,None,0.00,false,false,None
CH351 = CTRL1.FL,None,None,0.00,false,false,None
CH352 = CTRL1.MOUT,None,None,0.00,false,false,None

;Controller-2
;Name,UnitType,DefaultUnit,DisplayFormat,Save,Chart,Y-Axis
CH353 = CTRL2.PV,Temperature,Celsius,0.00,false,false,Temperature
CH354 = CTRL2.SV,Temperature,Celsius,0.00,false,false,Temperature
CH355 = CTRL2.OUT,None,None,0.00,false,false,None
CH356 = CTRL2.Mode,None,None,0.00,false,false,None
CH357 = CTRL2.SPN,None,None,0.00,false,false,None
CH358 = CTRL2.P,None,None,0.00,false,false,None
CH359 = CTRL2.I,None,None,0.00,false,false,None
CH360 = CTRL2.D,None,None,0.00,false,false,None
CH361 = CTRL2.DEV,None,None,0.00,false,false,None
CH362 = CTRL2.BS,None,None,0.00,false,false,None
CH363 = CTRL2.FL,None,None,0.00,false,false,None
CH364 = CTRL2.MOUT,None,None,0.00,false,false,None

;Controller-3
;Name,UnitType,DefaultUnit,DisplayFormat,Save,Chart,Y-Axis
CH365 = CTRL3.PV,Temperature,Celsius,0.00,false,false,Temperature
CH366 = CTRL3.SV,Temperature,Celsius,0.00,false,false,Temperature
CH367 = CTRL3.OUT,None,None,0.00,false,false,None
CH368 = CTRL3.Mode,None,None,0.00,false,false,None
CH369 = CTRL3.SPN,None,None,0.00,false,false,None
CH370 = CTRL3.P,None,None,0.00,false,false,None
CH371 = CTRL3.I,None,None,0.00,false,false,None
CH372 = CTRL3.D,None,None,0.00,false,false,None
CH373 = CTRL3.DEV,None,None,0.00,false,false,None
CH374 = CTRL3.BS,None,None,0.00,false,false,None
CH375 = CTRL3.FL,None,None,0.00,false,false,None
CH376 = CTRL3.MOUT,None,None,0.00,false,false,None

;Controller-4
;Name,UnitType,DefaultUnit,DisplayFormat,Save,Chart,Y-Axis
CH377 = CTRL4.PV,Temperature,Celsius,0.00,false,false,Temperature
CH378 = CTRL4.SV,Temperature,Celsius,0.00,false,false,Temperature
CH379 = CTRL4.OUT,None,None,0.00,false,false,None
CH380 = CTRL4.Mode,None,None,0.00,false,false,None
CH381 = CTRL4.SPN,None,None,0.00,false,false,None
CH382 = CTRL4.P,None,None,0.00,false,false,None
CH383 = CTRL4.I,None,None,0.00,false,false,None
CH384 = CTRL4.D,None,None,0.00,false,false,None
CH385 = CTRL4.DEV,None,None,0.00,false,false,None
CH386 = CTRL4.BS,None,None,0.00,false,false,None
CH387 = CTRL4.FL,None,None,0.00,false,false,None
CH388 = CTRL4.MOUT,None,None,0.00,false,false,None

;Controller-5
;Name,UnitType,DefaultUnit,DisplayFormat,Save,Chart,Y-Axis
CH389 = CTRL5.PV,Temperature,Celsius,0.00,false,false,Temperature
CH390 = CTRL5.SV,Temperature,Celsius,0.00,false,false,Temperature
CH391 = CTRL5.OUT,None,None,0.00,false,false,None
CH392 = CTRL5.Mode,None,None,0.00,false,false,None
CH393 = CTRL5.SPN,None,None,0.00,false,false,None
CH394 = CTRL5.P,None,None,0.00,false,false,None
CH395 = CTRL5.I,None,None,0.00,false,false,None
CH396 = CTRL5.D,None,None,0.00,false,false,None
CH397 = CTRL5.DEV,None,None,0.00,false,false,None
CH398 = CTRL5.BS,None,None,0.00,false,false,None
CH399 = CTRL5.FL,None,None,0.00,false,false,None
CH400 = CTRL5.MOUT,None,None,0.00,false,false,None

;Controller-6
;Name,UnitType,DefaultUnit,DisplayFormat,Save,Chart,Y-Axis
CH401 = CTRL6.PV,Temperature,Celsius,0.00,false,false,Temperature
CH402 = CTRL6.SV,Temperature,Celsius,0.00,false,false,Temperature
CH403 = CTRL6.OUT,None,None,0.00,false,false,None
CH404 = CTRL6.Mode,None,None,0.00,false,false,None
CH405 = CTRL6.SPN,None,None,0.00,false,false,None
CH406 = CTRL6.P,None,None,0.00,false,false,None
CH407 = CTRL6.I,None,None,0.00,false,false,None
CH408 = CTRL6.D,None,None,0.00,false,false,None
CH409 = CTRL6.DEV,None,None,0.00,false,false,None
CH410 = CTRL6.BS,None,None,0.00,false,false,None
CH411 = CTRL6.FL,None,None,0.00,false,false,None
CH412 = CTRL6.MOUT,None,None,0.00,false,false,None

;Controller-7
;Name,UnitType,DefaultUnit,DisplayFormat,Save,Chart,Y-Axis
CH413 = CTRL7.PV,Temperature,Celsius,0.00,false,false,Temperature
CH414 = CTRL7.SV,Temperature,Celsius,0.00,false,false,Temperature
CH415 = CTRL7.OUT,None,None,0.00,false,false,None
CH416 = CTRL7.Mode,None,None,0.00,false,false,None
CH417 = CTRL7.SPN,None,None,0.00,false,false,None
CH418 = CTRL7.P,None,None,0.00,false,false,None
CH419 = CTRL7.I,None,None,0.00,false,false,None
CH420 = CTRL7.D,None,None,0.00,false,false,None
CH421 = CTRL7.DEV,None,None,0.00,false,false,None
CH422 = CTRL7.BS,None,None,0.00,false,false,None
CH423 = CTRL7.FL,None,None,0.00,false,false,None
CH424 = CTRL7.MOUT,None,None,0.00,false,false,None

;Controller-8
;Name,UnitType,DefaultUnit,DisplayFormat,Save,Chart,Y-Axis
CH425 = CTRL8.PV,Temperature,Celsius,0.00,false,false,Temperature
CH426 = CTRL8.SV,Temperature,Celsius,0.00,false,false,Temperature
CH427 = CTRL8.OUT,None,None,0.00,false,false,None
CH428 = CTRL8.Mode,None,None,0.00,false,false,None
CH429 = CTRL8.SPN,None,None,0.00,false,false,None
CH430 = CTRL8.P,None,None,0.00,false,false,None
CH431 = CTRL8.I,None,None,0.00,false,false,None
CH432 = CTRL8.D,None,None,0.00,false,false,None
CH433 = CTRL8.DEV,None,None,0.00,false,false,None
CH434 = CTRL8.BS,None,None,0.00,false,false,None
CH435 = CTRL8.FL,None,None,0.00,false,false,None
CH436 = CTRL8.MOUT,None,None,0.00,false,false,None

;Controller-9
;Name,UnitType,DefaultUnit,DisplayFormat,Save,Chart,Y-Axis
CH437 = CTRL9.PV,Temperature,Celsius,0.00,false,false,Temperature
CH438 = CTRL9.SV,Temperature,Celsius,0.00,false,false,Temperature
CH439 = CTRL9.OUT,None,None,0.00,false,false,None
CH440 = CTRL9.Mode,None,None,0.00,false,false,None
CH441 = CTRL9.SPN,None,None,0.00,false,false,None
CH442 = CTRL9.P,None,None,0.00,false,false,None
CH443 = CTRL9.I,None,None,0.00,false,false,None
CH444 = CTRL9.D,None,None,0.00,false,false,None
CH445 = CTRL9.DEV,None,None,0.00,false,false,None
CH446 = CTRL9.BS,None,None,0.00,false,false,None
CH447 = CTRL9.FL,None,None,0.00,false,false,None
CH448 = CTRL9.MOUT,None,None,0.00,false,false,None

;Controller-10
;Name,UnitType,DefaultUnit,DisplayFormat,Save,Chart,Y-Axis
CH449 = CTRL10.PV,Temperature,Celsius,0.00,false,false,Temperature
CH450 = CTRL10.SV,Temperature,Celsius,0.00,false,false,Temperature
CH451 = CTRL10.OUT,None,None,0.00,false,false,None
CH452 = CTRL10.Mode,None,None,0.00,false,false,None
CH453 = CTRL10.SPN,None,None,0.00,false,false,None
CH454 = CTRL10.P,None,None,0.00,false,false,None
CH455 = CTRL10.I,None,None,0.00,false,false,None
CH456 = CTRL10.D,None,None,0.00,false,false,None
CH457 = CTRL10.DEV,None,None,0.00,false,false,None
CH458 = CTRL10.BS,None,None,0.00,false,false,None
CH459 = CTRL10.FL,None,None,0.00,false,false,None
CH460 = CTRL10.MOUT,None,None,0.00,false,false,None

;Controller-11
;Name,UnitType,DefaultUnit,DisplayFormat,Save,Chart,Y-Axis
CH461 = CTRL11.PV,Temperature,Celsius,0.00,false,false,Temperature
CH462 = CTRL11.SV,Temperature,Celsius,0.00,false,false,Temperature
CH463 = CTRL11.OUT,None,None,0.00,false,false,None
CH464 = CTRL11.Mode,None,None,0.00,false,false,None
CH465 = CTRL11.SPN,None,None,0.00,false,false,None
CH466 = CTRL11.P,None,None,0.00,false,false,None
CH467 = CTRL11.I,None,None,0.00,false,false,None
CH468 = CTRL11.D,None,None,0.00,false,false,None
CH469 = CTRL11.DEV,None,None,0.00,false,false,None
CH470 = CTRL11.BS,None,None,0.00,false,false,None
CH471 = CTRL11.FL,None,None,0.00,false,false,None
CH472 = CTRL11.MOUT,None,None,0.00,false,false,None

;Controller-12
;Name,UnitType,DefaultUnit,DisplayFormat,Save,Chart,Y-Axis
CH473 = CTRL12.PV,Voltage,V,0.0,false,false,Voltage
CH474 = CTRL12.SV,Voltage,V,0.0,false,false,Voltage
CH475 = CTRL12.OUT,None,None,0.0,false,false,None
CH476 = CTRL12.Mode,None,None,0.0,false,false,None
CH477 = CTRL12.SPN,None,None,0.0,false,false,None
CH478 = CTRL12.P,None,None,0.0,false,false,None
CH479 = CTRL12.I,None,None,0.0,false,false,None
CH480 = CTRL12.D,None,None,0.0,false,false,None
CH481 = CTRL12.DEV,None,None,0.0,false,false,None
CH482 = CTRL12.BS,None,None,0.0,false,false,None
CH483 = CTRL12.FL,None,None,0.0,false,false,None
CH484 = CTRL12.MOUT,None,None,0.0,false,false,None

;Controller-13
;Name,UnitType,DefaultUnit,DisplayFormat,Save,Chart,Y-Axis
CH485 = CTRL13.PV,Voltage,V,0.0,false,false,Voltage
CH486 = CTRL13.SV,Voltage,V,0.0,false,false,Voltage
CH487 = CTRL13.OUT,None,None,0.0,false,false,None
CH488 = CTRL13.Mode,None,None,0.0,false,false,None
CH489 = CTRL13.SPN,None,None,0.0,false,false,None
CH490 = CTRL13.P,None,None,0.0,false,false,None
CH491 = CTRL13.I,None,None,0.0,false,false,None
CH492 = CTRL13.D,None,None,0.0,false,false,None
CH493 = CTRL13.DEV,None,None,0.0,false,false,None
CH494 = CTRL13.BS,None,None,0.0,false,false,None
CH495 = CTRL13.FL,None,None,0.0,false,false,None
CH496 = CTRL13.MOUT,None,None,0.0,false,false,None

;PLC-1
;Name,UnitType,DefaultUnit,DisplayFormat,Save,Chart,Y-Axis
CH497 = ID11.Nozzle1,None,None,0.0,false,false,None
CH498 = ID11.Nozzle2,None,None,0.0,false,false,None
CH499 = ID11.Nozzle3,None,None,0.0,false,false,None
CH500 = ID11.Nozzle4,None,None,0.0,false,false,None
CH501 = ID12.Nozzle1,None,None,0.0,false,false,None
CH502 = ID12.Nozzle2,None,None,0.0,false,false,None
CH503 = ID12.Nozzle3,None,None,0.0,false,false,None
CH504 = ID12.Nozzle4,None,None,0.0,false,false,None
CH505 = ID21.Nozzle1,None,None,0.0,false,false,None
CH506 = ID21.Nozzle2,None,None,0.0,false,false,None
CH507 = ID21.Nozzle3,None,None,0.0,false,false,None
CH508 = ID21.Nozzle4,None,None,0.0,false,false,None
CH509 = ID22.Nozzle1,None,None,0.0,false,false,None
CH510 = ID22.Nozzle2,None,None,0.0,false,false,None
CH511 = ID22.Nozzle3,None,None,0.0,false,false,None
CH512 = ID22.Nozzle4,None,None,0.0,false,false,None

[TC.Tag]
Tag1 = TC-001
Tag2 = TC-002
Tag3 = TC-003
Tag4 = TC-004
Tag5 = TC-005
Tag6 = TC-006
Tag7 = TC-007
Tag8 = TC-008
Tag9 = TC-009
Tag10 = TC-010

[Press.Tag]
Tag1 = Press-001
Tag2 = Press-002
Tag3 = Press-003
Tag4 = Press-004
Tag5 = Press-005
Tag6 = Press-006
Tag7 = Press-007
Tag8 = Press-008
Tag9 = Press-009
Tag10 = Press-010

[Options]
FixedAtmPressure =true
ForcedInteg =true
ExcelPath =D:\ShDoc\Projects\VS\Hnc\Calorimeter\Client\Excel
AutoExcel =true
StoppedTestExcel =true
Indoor1TC =false
Indoor2TC =true
OutdoorTC =true
IndoorTC1=false
IndoorTC2=false

[Coefficient.ID11]
Airflow =1.0
CoolingCapacity =1.0
HeatingCapacity =1.0
Cooling_HLK =4.0
Heating_HLK =4.0
Cooling_HLK_Duct1 =3.0
Heating_HLK_Duct1 =3.0
Cooling_HLK_Duct2 =4.5
Heating_HLK_Duct2 =4.5
Cooling_HLK_Duct3 =6.0
Heating_HLK_Duct3 =6.0
Cooling_HLK_Duct4 =7.5
Heating_HLK_Duct4 =7.5
Cooling_HLK_Duct5 =9.0
Heating_HLK_Duct5 =9.0
Nozzle1 =100.0
Nozzle2 =150.0
Nozzle3 =150.0
Nozzle4 =300.0

[Coefficient.ID12]
Airflow =1.0
CoolingCapacity =1.0
HeatingCapacity =1.0
Cooling_HLK =4.0
Heating_HLK =5.0
Cooling_HLK_Duct1 =0.0
Heating_HLK_Duct1 =3.0
Cooling_HLK_Duct2 =4.5
Heating_HLK_Duct2 =4.5
Cooling_HLK_Duct3 =6.0
Heating_HLK_Duct3 =6.0
Cooling_HLK_Duct4 =7.5
Heating_HLK_Duct4 =7.5
Cooling_HLK_Duct5 =9.0
Heating_HLK_Duct5 =9.0
Nozzle1 =100.0
Nozzle2 =60.0
Nozzle3 =85.0
Nozzle4 =100.0

[Coefficient.ID21]
Airflow =1.0
CoolingCapacity =2.0
HeatingCapacity =3.0
Cooling_HLK =4.0
Heating_HLK =5.0
Cooling_HLK_Duct1 =6.0
Heating_HLK_Duct1 =3.0
Cooling_HLK_Duct2 =4.5
Heating_HLK_Duct2 =4.5
Cooling_HLK_Duct3 =6.0
Heating_HLK_Duct3 =6.0
Cooling_HLK_Duct4 =7.5
Heating_HLK_Duct4 =7.5
Cooling_HLK_Duct5 =9.0
Heating_HLK_Duct5 =9.0
Nozzle1 =100.0
Nozzle2 =125.0
Nozzle3 =150.0
Nozzle4 =150.0

[Coefficient.ID22]
Airflow =1.0
CoolingCapacity =1.0
HeatingCapacity =1.0
Cooling_HLK =4.0
Heating_HLK =4.0
Cooling_HLK_Duct1 =3.0
Heating_HLK_Duct1 =3.0
Cooling_HLK_Duct2 =4.5
Heating_HLK_Duct2 =4.5
Cooling_HLK_Duct3 =6.0
Heating_HLK_Duct3 =6.0
Cooling_HLK_Duct4 =7.5
Heating_HLK_Duct4 =7.5
Cooling_HLK_Duct5 =9.0
Heating_HLK_Duct5 =9.0
Nozzle1 =50.0
Nozzle2 =200.0
Nozzle3 =85.0
Nozzle4 =100.0
<file_sep>﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

using Ulee.Device.Connection.Yokogawa;

namespace Hnc.Calorimeter.Client
{
    #region TestCondition
    public class TestCondition
    {
        public TestCondition(TestValue value)
        {
            Control = null;

            Schedules = new List<ConditionSchedule>();
            Method = new ConditionMethod();
            Note = new ConditionNote();

            Rateds = new Dictionary<EConditionRated, List<ConditionRated>>();

            Rateds.Add(EConditionRated.Total, new List<ConditionRated>() { new ConditionRated(), new ConditionRated() });
            Rateds.Add(EConditionRated.ID11, new List<ConditionRated>() { new ConditionRated(), new ConditionRated() });
            Rateds.Add(EConditionRated.ID12, new List<ConditionRated>() { new ConditionRated(), new ConditionRated() });
            Rateds.Add(EConditionRated.ID21, new List<ConditionRated>() { new ConditionRated(), new ConditionRated() });
            Rateds.Add(EConditionRated.ID22, new List<ConditionRated>() { new ConditionRated(), new ConditionRated() });

            ThermocoupleDic = new Dictionary<string, string>();
            PressureDic = new Dictionary<string, string>();

            Pressures = new List<MeasureRow>();
            for (int i = 0; i < Resource.Client.Devices.Recorder.PressureLength; i++)
            {
                Pressures.Add(new MeasureRow(null, "none", $"Pressure.{i + 1}", i + 1));
            }

            TC1 = new List<MeasureRow>();
            TC2 = new List<MeasureRow>();
            TC3 = new List<MeasureRow>();

            for (int i = 0; i < Resource.Client.Devices.Recorder.ThermocoupleLength / 3; i++)
            {
                TC1.Add(new MeasureRow(null, "none", $"ID1.TC.{i + 1:d3}", i + 1));
                TC2.Add(new MeasureRow(null, "none", $"ID2.TC.{i + 1:d3}", i + 1));
                TC3.Add(new MeasureRow(null, "none", $"OD.TC.{i + 1:d3}", i + 1));
            }
        }

        public CtrlTestCondition Control { get; set; }
        public List<ConditionSchedule> Schedules { get; set; }
        public ConditionMethod Method { get; set; }
        public ConditionNote Note { get; set; }
        public Dictionary<EConditionRated, List<ConditionRated>> Rateds { get; set; }
        public Dictionary<string, string> ThermocoupleDic { get; set; }
        public Dictionary<string, string> PressureDic { get; set; }
        public List<MeasureRow> Pressures { get; set; }
        public List<MeasureRow> TC1 { get; set; }
        public List<MeasureRow> TC2 { get; set; }
        public List<MeasureRow> TC3 { get; set; }
    }

    #region ConditionSchedule
    public class ConditionSchedule
    {
        public ConditionSchedule(int no)
        {
            No = no;
            Standard = "";
            Name = "";
            NoOfSteady = 1;
            PreRun = 120;
            Judge = 60;
            Repeat = 1;
            Indoor1DB = 27;
            Indoor1DBAvg = 0;
            Indoor1DBDev = 0;
            Indoor1WB = 19;
            Indoor1WBAvg = 0;
            Indoor1WBDev = 0;
            Indoor1LDB1Dev = 0;
            Indoor1LWB1Dev = 0;
            Indoor1AirFlow1Dev = 0;
            Indoor1LDB2Dev = 0;
            Indoor1LWB2Dev = 0;
            Indoor1AirFlow2Dev = 0;
            Indoor1CP1 = 0;
            Indoor1CP1Avg = 0;
            Indoor1CP1Dev = 0;
            Indoor1CP2 = 0;
            Indoor1CP2Avg = 0;
            Indoor1CP2Dev = 0;
            Indoor2DB = 27;
            Indoor2DBAvg = 0;
            Indoor2DBDev = 0;
            Indoor2WB = 19;
            Indoor2WBAvg = 0;
            Indoor2WBDev = 0;
            Indoor2LDB1Dev = 0;
            Indoor2LWB1Dev = 0;
            Indoor2AirFlow1Dev = 0;
            Indoor2LDB2Dev = 0;
            Indoor2LWB2Dev = 0;
            Indoor2AirFlow2Dev = 0;
            Indoor2CP1 = 0;
            Indoor2CP1Avg = 0;
            Indoor2CP1Dev = 0;
            Indoor2CP2 = 0;
            Indoor2CP2Avg = 0;
            Indoor2CP2Dev = 0;
            OutdoorDB = 35;
            OutdoorDBAvg = 0;
            OutdoorDBDev = 0;
            OutdoorWB = 24;
            OutdoorWBAvg = 0;
            OutdoorWBDev = 0;
            OutdoorDP = 10;
            OutdoorDPAvg = 0;
            OutdoorDPDev = 0;
            OutdoorVolt1 = 220;
            OutdoorVolt1Avg = 0;
            OutdoorVolt1Dev = 0;
            OutdoorVolt2 = 220;
            OutdoorVolt2Avg = 0;
            OutdoorVolt2Dev = 0;
            Indoor1Use = EIndoorUse.Indoor;
            Indoor1Mode1 = EIndoorMode.Cooling;
            Indoor1Duct1 = EIndoorDuct.NotUsed;
            Indoor1Mode2 = EIndoorMode.Cooling;
            Indoor1Duct2 = EIndoorDuct.NotUsed;
            Indoor2Use = EIndoorUse.Indoor;
            Indoor2Mode1 = EIndoorMode.Cooling;
            Indoor2Duct1 = EIndoorDuct.NotUsed;
            Indoor2Mode2 = EIndoorMode.Cooling;
            Indoor2Duct2 = EIndoorDuct.NotUsed;
            OutdoorUse = EOutdoorUse.Outdoor;
            OutdoorDpSensor = EEtcUse.NotUsed;
            OutdoorAutoVolt = EEtcUse.NotUsed;
        }

        public int No { get; set; }
        public string Standard { get; set; }
        public string Name { get; set; }
        public int NoOfSteady { get; set; }
        public int PreRun { get; set; }
        public int Judge { get; set; }
        public int Repeat { get; set; }
        public float Indoor1DB { get; set; }
        public float Indoor1DBAvg { get; set; }
        public float Indoor1DBDev { get; set; }
        public float Indoor1WB { get; set; }
        public float Indoor1WBAvg { get; set; }
        public float Indoor1WBDev { get; set; }
        public float Indoor1LDB1Dev { get; set; }
        public float Indoor1LWB1Dev { get; set; }
        public float Indoor1AirFlow1Dev { get; set; }
        public float Indoor1LDB2Dev { get; set; }
        public float Indoor1LWB2Dev { get; set; }
        public float Indoor1AirFlow2Dev { get; set; }
        public float Indoor1CP1 { get; set; }
        public float Indoor1CP1Avg { get; set; }
        public float Indoor1CP1Dev { get; set; }
        public float Indoor1CP2 { get; set; }
        public float Indoor1CP2Avg { get; set; }
        public float Indoor1CP2Dev { get; set; }
        public float Indoor2DB { get; set; }
        public float Indoor2DBAvg { get; set; }
        public float Indoor2DBDev { get; set; }
        public float Indoor2WB { get; set; }
        public float Indoor2WBAvg { get; set; }
        public float Indoor2WBDev { get; set; }
        public float Indoor2LDB1Dev { get; set; }
        public float Indoor2LWB1Dev { get; set; }
        public float Indoor2AirFlow1Dev { get; set; }
        public float Indoor2LDB2Dev { get; set; }
        public float Indoor2LWB2Dev { get; set; }
        public float Indoor2AirFlow2Dev { get; set; }
        public float Indoor2CP1 { get; set; }
        public float Indoor2CP1Avg { get; set; }
        public float Indoor2CP1Dev { get; set; }
        public float Indoor2CP2 { get; set; }
        public float Indoor2CP2Avg { get; set; }
        public float Indoor2CP2Dev { get; set; }
        public float OutdoorDB { get; set; }
        public float OutdoorDBAvg { get; set; }
        public float OutdoorDBDev { get; set; }
        public float OutdoorWB { get; set; }
        public float OutdoorWBAvg { get; set; }
        public float OutdoorWBDev { get; set; }
        public float OutdoorDP { get; set; }
        public float OutdoorDPAvg { get; set; }
        public float OutdoorDPDev { get; set; }
        public float OutdoorVolt1 { get; set; }
        public float OutdoorVolt1Avg { get; set; }
        public float OutdoorVolt1Dev { get; set; }
        public float OutdoorVolt2 { get; set; }
        public float OutdoorVolt2Avg { get; set; }
        public float OutdoorVolt2Dev { get; set; }
        public EIndoorUse Indoor1Use { get; set; }
        public EIndoorMode Indoor1Mode1 { get; set; }
        public EIndoorDuct Indoor1Duct1 { get; set; }
        public EIndoorMode Indoor1Mode2 { get; set; }
        public EIndoorDuct Indoor1Duct2 { get; set; }
        public EIndoorUse Indoor2Use { get; set; }
        public EIndoorMode Indoor2Mode1 { get; set; }
        public EIndoorDuct Indoor2Duct1 { get; set; }
        public EIndoorMode Indoor2Mode2 { get; set; }
        public EIndoorDuct Indoor2Duct2 { get; set; }
        public EOutdoorUse OutdoorUse { get; set; }
        public EEtcUse OutdoorDpSensor { get; set; }
        public EEtcUse OutdoorAutoVolt { get; set; }

        public EIndoorMode IndoorMode
        {
            get
            {
                EIndoorMode mode = EIndoorMode.NotUsed;

                if ((Indoor1Use == EIndoorUse.NotUsed) &&
                    (Indoor2Use == EIndoorUse.NotUsed)) return mode;

                if ((Indoor1Mode1 == EIndoorMode.NotUsed) &&
                    (Indoor1Mode2 == EIndoorMode.NotUsed) &&
                    (Indoor2Mode1 == EIndoorMode.NotUsed) &&
                    (Indoor2Mode2 == EIndoorMode.NotUsed)) return EIndoorMode.Cooling;

                if (Indoor1Use == EIndoorUse.Indoor)
                {
                    if (Indoor1Mode1 != EIndoorMode.NotUsed)
                    {
                        mode = Indoor1Mode1;
                    }
                    else if (Indoor1Mode2 != EIndoorMode.NotUsed)
                    {
                        mode = Indoor1Mode2;
                    }
                    else if (Indoor2Use == EIndoorUse.Indoor)
                    {
                        if (Indoor2Mode1 != EIndoorMode.NotUsed)
                        {
                            mode = Indoor2Mode1;
                        }
                        else if (Indoor2Mode2 != EIndoorMode.NotUsed)
                        {
                            mode = Indoor2Mode2;
                        }
                    }
                }
                else if (Indoor2Use == EIndoorUse.Indoor)
                {
                    if (Indoor2Mode1 != EIndoorMode.NotUsed)
                    {
                        mode = Indoor2Mode1;
                    }
                    else if (Indoor2Mode2 != EIndoorMode.NotUsed)
                    {
                        mode = Indoor2Mode2;
                    }
                }

                return mode;
            }
        }

        public EIndoorMode Indoor1Mode
        {
            get
            {
                EIndoorMode mode = EIndoorMode.NotUsed;

                if (Indoor1Use == EIndoorUse.NotUsed) return mode;

                if ((Indoor1Mode1 == EIndoorMode.NotUsed) &&
                    (Indoor1Mode2 == EIndoorMode.NotUsed)) return mode;

                if (Indoor1Mode1 != EIndoorMode.NotUsed)
                    mode = Indoor1Mode1;
                else
                    mode = Indoor1Mode2;

                return mode;
            }
        }

        public EIndoorMode Indoor2Mode
        {
            get
            {
                EIndoorMode mode = EIndoorMode.NotUsed;

                if (Indoor2Use == EIndoorUse.NotUsed) return mode;

                if ((Indoor2Mode1 == EIndoorMode.NotUsed) &&
                    (Indoor2Mode2 == EIndoorMode.NotUsed)) return mode;

                if (Indoor2Mode1 != EIndoorMode.NotUsed)
                    mode = Indoor2Mode1;
                else
                    mode = Indoor2Mode2;

                return mode;
            }
        }

        public bool Use
        {
            get
            {
                if (Indoor1Use == EIndoorUse.Indoor) return true;
                if (Indoor2Use == EIndoorUse.Indoor) return true;
                if (OutdoorUse == EOutdoorUse.Outdoor) return true;

                return false;
            }
        }
    }
    #endregion

    #region ConditionMethod
    public class ConditionMethod
    {
        public ConditionMethod()
        {
            IntegralCount = 1;
            IntegralTime = 1;
            ScanTime = 1;
            CoolingCapacity = EUnitCapacity.W;
            HeatingCapacity = EUnitCapacity.W;
            AirFlow = EUnitAirFlow.CMM;
            Enthalpy = EUnitEnthalpy.W;
            Pressure = EUnitPressure.Bar;
            Temperature = EUnitTemperature.Celsius;
            DiffPressure = EUnitDiffPressure.mmAq;
            AtmPressure = EUnitAtmPressure.mmAq;
            AutoControllerSetting = false;
            UsePowerMeterIntegral = false;
        }

        public int IntegralCount { get; set; }
        public int IntegralTime { get; set; }
        public int ScanTime { get; set; }
        public EUnitCapacity CoolingCapacity { get; set; }
        public EUnitCapacity HeatingCapacity { get; set; }
        public EUnitAirFlow AirFlow { get; set; }
        public EUnitEnthalpy Enthalpy { get; set; }
        public EUnitPressure Pressure { get; set; }
        public EUnitDiffPressure DiffPressure { get; set; }
        public EUnitAtmPressure AtmPressure { get; set; }
        public EUnitTemperature Temperature { get; set; }
        public bool AutoControllerSetting { get; set; }
        public bool UsePowerMeterIntegral { get; set; }
    }
    #endregion

    #region ConditionNote
    public class ConditionNote
    {
        public ConditionNote()
        {
            Company = "";
            Name = "";
            No = "";
            Observer = "";
            Maker = "";
            Model1 = "";
            Serial1 = "";
            Model2 = "";
            Serial2 = "";
            Model3 = "";
            Serial3 = "";
            ExpDevice = "";
            Refrigerant = "";
            RefCharge = "";
            Memo = "";
        }

        public string Company { get; set; }
        public string Name { get; set; }
        public string No { get; set; }
        public string Observer { get; set; }
        public string Maker { get; set; }
        public string Model1 { get; set; }
        public string Serial1 { get; set; }
        public string Model2 { get; set; }
        public string Serial2 { get; set; }
        public string Model3 { get; set; }
        public string Serial3 { get; set; }
        public string ExpDevice { get; set; }
        public string Refrigerant { get; set; }
        public string RefCharge { get; set; }
        public string Memo { get; set; }
    }
    #endregion

    #region ConditionRated
    public enum EConditionRated { Total, ID11, ID12, ID21, ID22 }

    public class ConditionRated
    {
        public ConditionRated()
        {
        }

        public float Capacity { get; set; }
        public float PowerInput { get; set; }
        public float EER_COP { get; set; }
        public float Voltage { get; set; }
        public float Current { get; set; }
        public string Frequency { get; set; }
        public int PM_IDU { get; set; }
        public int PM_ODU { get; set; }
        public EWT330Wiring Wiring { get; set; }
    }
    #endregion
    #endregion
}
<file_sep>﻿namespace Hnc.Calorimeter.Client
{
    partial class CtrlControllerView
    {
        /// <summary> 
        /// Required designer variable.
        /// </summary>
        private System.ComponentModel.IContainer components = null;

        /// <summary> 
        /// Clean up any resources being used.
        /// </summary>
        /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
        protected override void Dispose(bool disposing)
        {
            if (disposing && (components != null))
            {
                components.Dispose();
            }
            base.Dispose(disposing);
        }

        #region Component Designer generated code

        /// <summary> 
        /// Required method for Designer support - do not modify 
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            this.titleEdit = new Ulee.Controls.UlPanel();
            this.ulPanel1 = new Ulee.Controls.UlPanel();
            this.pvPanel = new Ulee.Controls.UlPanel();
            this.svPanel = new Ulee.Controls.UlPanel();
            this.ulPanel9 = new Ulee.Controls.UlPanel();
            this.modePanel = new Ulee.Controls.UlPanel();
            this.ulPanel13 = new Ulee.Controls.UlPanel();
            this.outPanel = new Ulee.Controls.UlPanel();
            this.ulPanel17 = new Ulee.Controls.UlPanel();
            this.flPanel = new Ulee.Controls.UlPanel();
            this.ulPanel10 = new Ulee.Controls.UlPanel();
            this.dPanel = new Ulee.Controls.UlPanel();
            this.ulPanel19 = new Ulee.Controls.UlPanel();
            this.iPanel = new Ulee.Controls.UlPanel();
            this.ulPanel22 = new Ulee.Controls.UlPanel();
            this.pPanel = new Ulee.Controls.UlPanel();
            this.ulPanel25 = new Ulee.Controls.UlPanel();
            this.settingButton = new System.Windows.Forms.Button();
            this.bgPanel.SuspendLayout();
            this.SuspendLayout();
            // 
            // bgPanel
            // 
            this.bgPanel.BevelInner = Ulee.Controls.EUlBevelStyle.Raised;
            this.bgPanel.Controls.Add(this.settingButton);
            this.bgPanel.Controls.Add(this.flPanel);
            this.bgPanel.Controls.Add(this.ulPanel10);
            this.bgPanel.Controls.Add(this.dPanel);
            this.bgPanel.Controls.Add(this.ulPanel19);
            this.bgPanel.Controls.Add(this.iPanel);
            this.bgPanel.Controls.Add(this.ulPanel22);
            this.bgPanel.Controls.Add(this.pPanel);
            this.bgPanel.Controls.Add(this.ulPanel25);
            this.bgPanel.Controls.Add(this.modePanel);
            this.bgPanel.Controls.Add(this.ulPanel13);
            this.bgPanel.Controls.Add(this.outPanel);
            this.bgPanel.Controls.Add(this.ulPanel17);
            this.bgPanel.Controls.Add(this.svPanel);
            this.bgPanel.Controls.Add(this.ulPanel9);
            this.bgPanel.Controls.Add(this.pvPanel);
            this.bgPanel.Controls.Add(this.ulPanel1);
            this.bgPanel.Controls.Add(this.titleEdit);
            this.bgPanel.Size = new System.Drawing.Size(160, 300);
            // 
            // titleEdit
            // 
            this.titleEdit.BackColor = System.Drawing.Color.DeepSkyBlue;
            this.titleEdit.BevelInner = Ulee.Controls.EUlBevelStyle.None;
            this.titleEdit.BevelOuter = Ulee.Controls.EUlBevelStyle.Lowered;
            this.titleEdit.Font = new System.Drawing.Font("Arial Rounded MT Bold", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.titleEdit.ForeColor = System.Drawing.Color.White;
            this.titleEdit.InnerColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.titleEdit.InnerColor2 = System.Drawing.Color.White;
            this.titleEdit.Location = new System.Drawing.Point(6, 6);
            this.titleEdit.Name = "titleEdit";
            this.titleEdit.OuterColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.titleEdit.OuterColor2 = System.Drawing.Color.White;
            this.titleEdit.Size = new System.Drawing.Size(148, 28);
            this.titleEdit.Spacing = 0;
            this.titleEdit.TabIndex = 6;
            this.titleEdit.Text = "CONTROLLER";
            this.titleEdit.TextHAlign = Ulee.Controls.EUlHoriAlign.Center;
            this.titleEdit.TextVAlign = Ulee.Controls.EUlVertAlign.Middle;
            // 
            // ulPanel1
            // 
            this.ulPanel1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(78)))), ((int)(((byte)(152)))));
            this.ulPanel1.BevelInner = Ulee.Controls.EUlBevelStyle.None;
            this.ulPanel1.BevelOuter = Ulee.Controls.EUlBevelStyle.None;
            this.ulPanel1.Font = new System.Drawing.Font("Arial Rounded MT Bold", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.ulPanel1.ForeColor = System.Drawing.Color.White;
            this.ulPanel1.InnerColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.ulPanel1.InnerColor2 = System.Drawing.Color.White;
            this.ulPanel1.Location = new System.Drawing.Point(6, 40);
            this.ulPanel1.Name = "ulPanel1";
            this.ulPanel1.OuterColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.ulPanel1.OuterColor2 = System.Drawing.Color.White;
            this.ulPanel1.Size = new System.Drawing.Size(50, 26);
            this.ulPanel1.Spacing = 0;
            this.ulPanel1.TabIndex = 7;
            this.ulPanel1.Text = "PV";
            this.ulPanel1.TextHAlign = Ulee.Controls.EUlHoriAlign.Center;
            this.ulPanel1.TextVAlign = Ulee.Controls.EUlVertAlign.Middle;
            // 
            // pvPanel
            // 
            this.pvPanel.BackColor = System.Drawing.Color.Black;
            this.pvPanel.BevelInner = Ulee.Controls.EUlBevelStyle.None;
            this.pvPanel.BevelOuter = Ulee.Controls.EUlBevelStyle.Lowered;
            this.pvPanel.Font = new System.Drawing.Font("Arial Rounded MT Bold", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.pvPanel.ForeColor = System.Drawing.Color.Lime;
            this.pvPanel.InnerColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.pvPanel.InnerColor2 = System.Drawing.Color.White;
            this.pvPanel.Location = new System.Drawing.Point(58, 40);
            this.pvPanel.Name = "pvPanel";
            this.pvPanel.OuterColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.pvPanel.OuterColor2 = System.Drawing.Color.White;
            this.pvPanel.Size = new System.Drawing.Size(96, 26);
            this.pvPanel.Spacing = 0;
            this.pvPanel.TabIndex = 8;
            this.pvPanel.Text = "0.0";
            this.pvPanel.TextHAlign = Ulee.Controls.EUlHoriAlign.Right;
            this.pvPanel.TextVAlign = Ulee.Controls.EUlVertAlign.Middle;
            // 
            // svPanel
            // 
            this.svPanel.BackColor = System.Drawing.Color.Black;
            this.svPanel.BevelInner = Ulee.Controls.EUlBevelStyle.None;
            this.svPanel.BevelOuter = Ulee.Controls.EUlBevelStyle.Lowered;
            this.svPanel.Font = new System.Drawing.Font("Arial Rounded MT Bold", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.svPanel.ForeColor = System.Drawing.Color.Lime;
            this.svPanel.InnerColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.svPanel.InnerColor2 = System.Drawing.Color.White;
            this.svPanel.Location = new System.Drawing.Point(58, 68);
            this.svPanel.Name = "svPanel";
            this.svPanel.OuterColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.svPanel.OuterColor2 = System.Drawing.Color.White;
            this.svPanel.Size = new System.Drawing.Size(96, 26);
            this.svPanel.Spacing = 0;
            this.svPanel.TabIndex = 12;
            this.svPanel.Text = "0.0";
            this.svPanel.TextHAlign = Ulee.Controls.EUlHoriAlign.Right;
            this.svPanel.TextVAlign = Ulee.Controls.EUlVertAlign.Middle;
            // 
            // ulPanel9
            // 
            this.ulPanel9.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(78)))), ((int)(((byte)(152)))));
            this.ulPanel9.BevelInner = Ulee.Controls.EUlBevelStyle.None;
            this.ulPanel9.BevelOuter = Ulee.Controls.EUlBevelStyle.None;
            this.ulPanel9.Font = new System.Drawing.Font("Arial Rounded MT Bold", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.ulPanel9.ForeColor = System.Drawing.Color.White;
            this.ulPanel9.InnerColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.ulPanel9.InnerColor2 = System.Drawing.Color.White;
            this.ulPanel9.Location = new System.Drawing.Point(6, 68);
            this.ulPanel9.Name = "ulPanel9";
            this.ulPanel9.OuterColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.ulPanel9.OuterColor2 = System.Drawing.Color.White;
            this.ulPanel9.Size = new System.Drawing.Size(50, 26);
            this.ulPanel9.Spacing = 0;
            this.ulPanel9.TabIndex = 11;
            this.ulPanel9.Text = "SV";
            this.ulPanel9.TextHAlign = Ulee.Controls.EUlHoriAlign.Center;
            this.ulPanel9.TextVAlign = Ulee.Controls.EUlVertAlign.Middle;
            // 
            // modePanel
            // 
            this.modePanel.BackColor = System.Drawing.Color.Black;
            this.modePanel.BevelInner = Ulee.Controls.EUlBevelStyle.None;
            this.modePanel.BevelOuter = Ulee.Controls.EUlBevelStyle.Lowered;
            this.modePanel.Font = new System.Drawing.Font("Arial Rounded MT Bold", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.modePanel.ForeColor = System.Drawing.Color.White;
            this.modePanel.InnerColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.modePanel.InnerColor2 = System.Drawing.Color.White;
            this.modePanel.Location = new System.Drawing.Point(58, 124);
            this.modePanel.Name = "modePanel";
            this.modePanel.OuterColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.modePanel.OuterColor2 = System.Drawing.Color.White;
            this.modePanel.Size = new System.Drawing.Size(96, 26);
            this.modePanel.Spacing = 0;
            this.modePanel.TabIndex = 20;
            this.modePanel.Text = "AUTO";
            this.modePanel.TextHAlign = Ulee.Controls.EUlHoriAlign.Center;
            this.modePanel.TextVAlign = Ulee.Controls.EUlVertAlign.Middle;
            // 
            // ulPanel13
            // 
            this.ulPanel13.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(78)))), ((int)(((byte)(152)))));
            this.ulPanel13.BevelInner = Ulee.Controls.EUlBevelStyle.None;
            this.ulPanel13.BevelOuter = Ulee.Controls.EUlBevelStyle.None;
            this.ulPanel13.Font = new System.Drawing.Font("Arial Rounded MT Bold", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.ulPanel13.ForeColor = System.Drawing.Color.White;
            this.ulPanel13.InnerColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.ulPanel13.InnerColor2 = System.Drawing.Color.White;
            this.ulPanel13.Location = new System.Drawing.Point(6, 124);
            this.ulPanel13.Name = "ulPanel13";
            this.ulPanel13.OuterColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.ulPanel13.OuterColor2 = System.Drawing.Color.White;
            this.ulPanel13.Size = new System.Drawing.Size(50, 26);
            this.ulPanel13.Spacing = 0;
            this.ulPanel13.TabIndex = 19;
            this.ulPanel13.Text = "MODE";
            this.ulPanel13.TextHAlign = Ulee.Controls.EUlHoriAlign.Center;
            this.ulPanel13.TextVAlign = Ulee.Controls.EUlVertAlign.Middle;
            // 
            // outPanel
            // 
            this.outPanel.BackColor = System.Drawing.Color.Black;
            this.outPanel.BevelInner = Ulee.Controls.EUlBevelStyle.None;
            this.outPanel.BevelOuter = Ulee.Controls.EUlBevelStyle.Lowered;
            this.outPanel.Font = new System.Drawing.Font("Arial Rounded MT Bold", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.outPanel.ForeColor = System.Drawing.Color.Lime;
            this.outPanel.InnerColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.outPanel.InnerColor2 = System.Drawing.Color.White;
            this.outPanel.Location = new System.Drawing.Point(58, 96);
            this.outPanel.Name = "outPanel";
            this.outPanel.OuterColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.outPanel.OuterColor2 = System.Drawing.Color.White;
            this.outPanel.Size = new System.Drawing.Size(96, 26);
            this.outPanel.Spacing = 0;
            this.outPanel.TabIndex = 16;
            this.outPanel.Text = "0.0";
            this.outPanel.TextHAlign = Ulee.Controls.EUlHoriAlign.Right;
            this.outPanel.TextVAlign = Ulee.Controls.EUlVertAlign.Middle;
            // 
            // ulPanel17
            // 
            this.ulPanel17.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(78)))), ((int)(((byte)(152)))));
            this.ulPanel17.BevelInner = Ulee.Controls.EUlBevelStyle.None;
            this.ulPanel17.BevelOuter = Ulee.Controls.EUlBevelStyle.None;
            this.ulPanel17.Font = new System.Drawing.Font("Arial Rounded MT Bold", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.ulPanel17.ForeColor = System.Drawing.Color.White;
            this.ulPanel17.InnerColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.ulPanel17.InnerColor2 = System.Drawing.Color.White;
            this.ulPanel17.Location = new System.Drawing.Point(6, 96);
            this.ulPanel17.Name = "ulPanel17";
            this.ulPanel17.OuterColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.ulPanel17.OuterColor2 = System.Drawing.Color.White;
            this.ulPanel17.Size = new System.Drawing.Size(50, 26);
            this.ulPanel17.Spacing = 0;
            this.ulPanel17.TabIndex = 15;
            this.ulPanel17.Text = "OUT";
            this.ulPanel17.TextHAlign = Ulee.Controls.EUlHoriAlign.Center;
            this.ulPanel17.TextVAlign = Ulee.Controls.EUlVertAlign.Middle;
            // 
            // flPanel
            // 
            this.flPanel.BackColor = System.Drawing.Color.Black;
            this.flPanel.BevelInner = Ulee.Controls.EUlBevelStyle.None;
            this.flPanel.BevelOuter = Ulee.Controls.EUlBevelStyle.Lowered;
            this.flPanel.Font = new System.Drawing.Font("Arial Rounded MT Bold", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.flPanel.ForeColor = System.Drawing.Color.Lime;
            this.flPanel.InnerColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.flPanel.InnerColor2 = System.Drawing.Color.White;
            this.flPanel.Location = new System.Drawing.Point(58, 236);
            this.flPanel.Name = "flPanel";
            this.flPanel.OuterColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.flPanel.OuterColor2 = System.Drawing.Color.White;
            this.flPanel.Size = new System.Drawing.Size(96, 26);
            this.flPanel.Spacing = 0;
            this.flPanel.TabIndex = 32;
            this.flPanel.Text = "0.0";
            this.flPanel.TextHAlign = Ulee.Controls.EUlHoriAlign.Right;
            this.flPanel.TextVAlign = Ulee.Controls.EUlVertAlign.Middle;
            // 
            // ulPanel10
            // 
            this.ulPanel10.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(78)))), ((int)(((byte)(152)))));
            this.ulPanel10.BevelInner = Ulee.Controls.EUlBevelStyle.None;
            this.ulPanel10.BevelOuter = Ulee.Controls.EUlBevelStyle.None;
            this.ulPanel10.Font = new System.Drawing.Font("Arial Rounded MT Bold", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.ulPanel10.ForeColor = System.Drawing.Color.White;
            this.ulPanel10.InnerColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.ulPanel10.InnerColor2 = System.Drawing.Color.White;
            this.ulPanel10.Location = new System.Drawing.Point(6, 236);
            this.ulPanel10.Name = "ulPanel10";
            this.ulPanel10.OuterColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.ulPanel10.OuterColor2 = System.Drawing.Color.White;
            this.ulPanel10.Size = new System.Drawing.Size(50, 26);
            this.ulPanel10.Spacing = 0;
            this.ulPanel10.TabIndex = 31;
            this.ulPanel10.Text = "FL";
            this.ulPanel10.TextHAlign = Ulee.Controls.EUlHoriAlign.Center;
            this.ulPanel10.TextVAlign = Ulee.Controls.EUlVertAlign.Middle;
            // 
            // dPanel
            // 
            this.dPanel.BackColor = System.Drawing.Color.Black;
            this.dPanel.BevelInner = Ulee.Controls.EUlBevelStyle.None;
            this.dPanel.BevelOuter = Ulee.Controls.EUlBevelStyle.Lowered;
            this.dPanel.Font = new System.Drawing.Font("Arial Rounded MT Bold", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.dPanel.ForeColor = System.Drawing.Color.Lime;
            this.dPanel.InnerColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.dPanel.InnerColor2 = System.Drawing.Color.White;
            this.dPanel.Location = new System.Drawing.Point(58, 208);
            this.dPanel.Name = "dPanel";
            this.dPanel.OuterColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.dPanel.OuterColor2 = System.Drawing.Color.White;
            this.dPanel.Size = new System.Drawing.Size(96, 26);
            this.dPanel.Spacing = 0;
            this.dPanel.TabIndex = 29;
            this.dPanel.Text = "0.0";
            this.dPanel.TextHAlign = Ulee.Controls.EUlHoriAlign.Right;
            this.dPanel.TextVAlign = Ulee.Controls.EUlVertAlign.Middle;
            // 
            // ulPanel19
            // 
            this.ulPanel19.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(78)))), ((int)(((byte)(152)))));
            this.ulPanel19.BevelInner = Ulee.Controls.EUlBevelStyle.None;
            this.ulPanel19.BevelOuter = Ulee.Controls.EUlBevelStyle.None;
            this.ulPanel19.Font = new System.Drawing.Font("Arial Rounded MT Bold", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.ulPanel19.ForeColor = System.Drawing.Color.White;
            this.ulPanel19.InnerColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.ulPanel19.InnerColor2 = System.Drawing.Color.White;
            this.ulPanel19.Location = new System.Drawing.Point(6, 208);
            this.ulPanel19.Name = "ulPanel19";
            this.ulPanel19.OuterColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.ulPanel19.OuterColor2 = System.Drawing.Color.White;
            this.ulPanel19.Size = new System.Drawing.Size(50, 26);
            this.ulPanel19.Spacing = 0;
            this.ulPanel19.TabIndex = 28;
            this.ulPanel19.Text = "D";
            this.ulPanel19.TextHAlign = Ulee.Controls.EUlHoriAlign.Center;
            this.ulPanel19.TextVAlign = Ulee.Controls.EUlVertAlign.Middle;
            // 
            // iPanel
            // 
            this.iPanel.BackColor = System.Drawing.Color.Black;
            this.iPanel.BevelInner = Ulee.Controls.EUlBevelStyle.None;
            this.iPanel.BevelOuter = Ulee.Controls.EUlBevelStyle.Lowered;
            this.iPanel.Font = new System.Drawing.Font("Arial Rounded MT Bold", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.iPanel.ForeColor = System.Drawing.Color.Lime;
            this.iPanel.InnerColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.iPanel.InnerColor2 = System.Drawing.Color.White;
            this.iPanel.Location = new System.Drawing.Point(58, 180);
            this.iPanel.Name = "iPanel";
            this.iPanel.OuterColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.iPanel.OuterColor2 = System.Drawing.Color.White;
            this.iPanel.Size = new System.Drawing.Size(96, 26);
            this.iPanel.Spacing = 0;
            this.iPanel.TabIndex = 26;
            this.iPanel.Text = "0.0";
            this.iPanel.TextHAlign = Ulee.Controls.EUlHoriAlign.Right;
            this.iPanel.TextVAlign = Ulee.Controls.EUlVertAlign.Middle;
            // 
            // ulPanel22
            // 
            this.ulPanel22.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(78)))), ((int)(((byte)(152)))));
            this.ulPanel22.BevelInner = Ulee.Controls.EUlBevelStyle.None;
            this.ulPanel22.BevelOuter = Ulee.Controls.EUlBevelStyle.None;
            this.ulPanel22.Font = new System.Drawing.Font("Arial Rounded MT Bold", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.ulPanel22.ForeColor = System.Drawing.Color.White;
            this.ulPanel22.InnerColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.ulPanel22.InnerColor2 = System.Drawing.Color.White;
            this.ulPanel22.Location = new System.Drawing.Point(6, 180);
            this.ulPanel22.Name = "ulPanel22";
            this.ulPanel22.OuterColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.ulPanel22.OuterColor2 = System.Drawing.Color.White;
            this.ulPanel22.Size = new System.Drawing.Size(50, 26);
            this.ulPanel22.Spacing = 0;
            this.ulPanel22.TabIndex = 25;
            this.ulPanel22.Text = "I";
            this.ulPanel22.TextHAlign = Ulee.Controls.EUlHoriAlign.Center;
            this.ulPanel22.TextVAlign = Ulee.Controls.EUlVertAlign.Middle;
            // 
            // pPanel
            // 
            this.pPanel.BackColor = System.Drawing.Color.Black;
            this.pPanel.BevelInner = Ulee.Controls.EUlBevelStyle.None;
            this.pPanel.BevelOuter = Ulee.Controls.EUlBevelStyle.Lowered;
            this.pPanel.Font = new System.Drawing.Font("Arial Rounded MT Bold", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.pPanel.ForeColor = System.Drawing.Color.Lime;
            this.pPanel.InnerColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.pPanel.InnerColor2 = System.Drawing.Color.White;
            this.pPanel.Location = new System.Drawing.Point(58, 152);
            this.pPanel.Name = "pPanel";
            this.pPanel.OuterColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.pPanel.OuterColor2 = System.Drawing.Color.White;
            this.pPanel.Size = new System.Drawing.Size(96, 26);
            this.pPanel.Spacing = 0;
            this.pPanel.TabIndex = 23;
            this.pPanel.Text = "0.0";
            this.pPanel.TextHAlign = Ulee.Controls.EUlHoriAlign.Right;
            this.pPanel.TextVAlign = Ulee.Controls.EUlVertAlign.Middle;
            // 
            // ulPanel25
            // 
            this.ulPanel25.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(78)))), ((int)(((byte)(152)))));
            this.ulPanel25.BevelInner = Ulee.Controls.EUlBevelStyle.None;
            this.ulPanel25.BevelOuter = Ulee.Controls.EUlBevelStyle.None;
            this.ulPanel25.Font = new System.Drawing.Font("Arial Rounded MT Bold", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.ulPanel25.ForeColor = System.Drawing.Color.White;
            this.ulPanel25.InnerColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.ulPanel25.InnerColor2 = System.Drawing.Color.White;
            this.ulPanel25.Location = new System.Drawing.Point(6, 152);
            this.ulPanel25.Name = "ulPanel25";
            this.ulPanel25.OuterColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.ulPanel25.OuterColor2 = System.Drawing.Color.White;
            this.ulPanel25.Size = new System.Drawing.Size(50, 26);
            this.ulPanel25.Spacing = 0;
            this.ulPanel25.TabIndex = 22;
            this.ulPanel25.Text = "P";
            this.ulPanel25.TextHAlign = Ulee.Controls.EUlHoriAlign.Center;
            this.ulPanel25.TextVAlign = Ulee.Controls.EUlVertAlign.Middle;
            // 
            // settingButton
            // 
            this.settingButton.Location = new System.Drawing.Point(6, 264);
            this.settingButton.Name = "settingButton";
            this.settingButton.Size = new System.Drawing.Size(148, 30);
            this.settingButton.TabIndex = 33;
            this.settingButton.Text = "Setting";
            this.settingButton.UseVisualStyleBackColor = true;
            this.settingButton.Click += new System.EventHandler(this.settingButton_Click);
            // 
            // CtrlControllerView
            // 
            this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            this.Name = "CtrlControllerView";
            this.Size = new System.Drawing.Size(160, 300);
            this.Load += new System.EventHandler(this.CtrlControllerView_Load);
            this.bgPanel.ResumeLayout(false);
            this.ResumeLayout(false);
            this.PerformLayout();

        }

        #endregion

        private Ulee.Controls.UlPanel titleEdit;
        private Ulee.Controls.UlPanel flPanel;
        private Ulee.Controls.UlPanel ulPanel10;
        private Ulee.Controls.UlPanel dPanel;
        private Ulee.Controls.UlPanel ulPanel19;
        private Ulee.Controls.UlPanel iPanel;
        private Ulee.Controls.UlPanel ulPanel22;
        private Ulee.Controls.UlPanel pPanel;
        private Ulee.Controls.UlPanel ulPanel25;
        private Ulee.Controls.UlPanel modePanel;
        private Ulee.Controls.UlPanel ulPanel13;
        private Ulee.Controls.UlPanel outPanel;
        private Ulee.Controls.UlPanel ulPanel17;
        private Ulee.Controls.UlPanel svPanel;
        private Ulee.Controls.UlPanel ulPanel9;
        private Ulee.Controls.UlPanel pvPanel;
        private Ulee.Controls.UlPanel ulPanel1;
        private System.Windows.Forms.Button settingButton;
    }
}
<file_sep>﻿/*******************************************************************************
 * Default character set: NONE
 * Server version: 2.5
 * Server version string: WI-V2.5.8.27089 Firebird 2.5
 * Database ODS: 11.2
 * Database page size: 8192
 ******************************************************************************/

/*******************************************************************************
 * Selected metadata objects
 * -------------------------
 * Extracted at 2018-07-04 오후 3:28:24
 ******************************************************************************/

/*******************************************************************************
 * Roles
 * -----
 * Extracted at 2018-07-04 오후 3:28:24
 ******************************************************************************/

/* "PUBLIC" is a system role, no CREATE ROLE statement. */
/* "RDB$ADMIN" is a system role, no CREATE ROLE statement. */
/*******************************************************************************
 * UDFs
 * ----
 * Extracted at 2018-07-04 오후 3:28:24
 ******************************************************************************/

/*******************************************************************************
 * Sequences
 * ---------
 * Extracted at 2018-07-04 오후 3:28:24
 ******************************************************************************/

CREATE GENERATOR GN_ALLPARAM;
CREATE GENERATOR GN_CALIBPOINT;
CREATE GENERATOR GN_CALIBRATOR;
CREATE GENERATOR GN_CALIBRATOR_ROW;
CREATE GENERATOR GN_CONDITION_METHODPARAM;
CREATE GENERATOR GN_CONDITION_NOTEPARAM;
CREATE GENERATOR GN_CONDITION_RATEDPARAM;
CREATE GENERATOR GN_CONDITION_THERMOPRESSPARAM;
CREATE GENERATOR GN_SCHEDULEPARAM;
CREATE GENERATOR GN_USER;
/*******************************************************************************
 * Tables
 * ------
 * Extracted at 2018-07-04 오후 3:28:24
 ******************************************************************************/

CREATE TABLE TB_ALLPARAM 
(
  PK_RECNO               INTEGER         NOT NULL,
  FK_USERNO              INTEGER         NOT NULL,
  REGTIME                VARCHAR(    19) NOT NULL COLLATE NONE,
  MEMO                   VARCHAR(    50) NOT NULL COLLATE NONE,
 CONSTRAINT PK_TB_ALLPARAM PRIMARY KEY (PK_RECNO)
);
CREATE TABLE TB_CALIBPOINT 
(
  PK_RECNO                    INTEGER         NOT NULL,
  FK_CALIB_ROWNO              INTEGER         NOT NULL,
  POINTNO                     INTEGER         NOT NULL,
  PV                 DOUBLE PRECISION         NOT NULL,
  SV                 DOUBLE PRECISION         NOT NULL,
 CONSTRAINT PK_TB_CALIBPOINT PRIMARY KEY (PK_RECNO)
);
CREATE TABLE TB_CALIBRATOR 
(
  PK_RECNO               INTEGER         NOT NULL,
  FK_USERNO              INTEGER         NOT NULL,
  REGTIME                VARCHAR(    20) NOT NULL COLLATE NONE,
  MEMO                   VARCHAR(    80) NOT NULL COLLATE NONE,
 CONSTRAINT PK_TB_CALIBRATOR PRIMARY KEY (PK_RECNO)
);
CREATE TABLE TB_CALIBRATOR_ROW 
(
  PK_RECNO                     INTEGER         NOT NULL,
  FK_CALIBRATORNO              INTEGER         NOT NULL,
  CHANNEL                      INTEGER         NOT NULL,
  RAW_A               DOUBLE PRECISION         NOT NULL,
  RAW_B               DOUBLE PRECISION         NOT NULL,
  RAW_C               DOUBLE PRECISION         NOT NULL,
  DIFF_A              DOUBLE PRECISION         NOT NULL,
  DIFF_B              DOUBLE PRECISION         NOT NULL,
  DIFF_C              DOUBLE PRECISION         NOT NULL,
 CONSTRAINT PK_TB_CALIBRATOR_ROW PRIMARY KEY (PK_RECNO)
);
CREATE TABLE TB_CONDITION_METHODPARAM 
(
  PK_RECO                 INTEGER         NOT NULL,
  FK_NOTENO               INTEGER         NOT NULL,
  INTEGCOUNT              INTEGER         NOT NULL,
  INTEGTIME               INTEGER         NOT NULL,
  SCANTIME                INTEGER         NOT NULL,
  COOLCAPA                INTEGER         NOT NULL,
  HEATCAPA                INTEGER         NOT NULL,
  AIRFLOW                 INTEGER         NOT NULL,
  ENTHALPY                INTEGER         NOT NULL,
  PRESS                   INTEGER         NOT NULL,
  TEMP                    INTEGER         NOT NULL,
  DIFFPRESS               INTEGER         NOT NULL,
  ATMPRESS                INTEGER         NOT NULL,
  AUTOSET                 INTEGER         NOT NULL,
  USEPM                   INTEGER         NOT NULL,
 CONSTRAINT PK_TB_CONDITION_METHODPARAM PRIMARY KEY (PK_RECO)
);
CREATE TABLE TB_CONDITION_NOTEPARAM 
(
  PK_RECNO                INTEGER         NOT NULL,
  FK_PARAMNO              INTEGER         NOT NULL,
  COMPANY                 VARCHAR(    30) NOT NULL COLLATE NONE,
  TESTNAME                VARCHAR(    30) NOT NULL COLLATE NONE,
  TESTNO                  VARCHAR(    30) NOT NULL COLLATE NONE,
  OBSERVER                VARCHAR(    30) NOT NULL COLLATE NONE,
  MAKER                   VARCHAR(    30) NOT NULL COLLATE NONE,
  MODEL1                  VARCHAR(    30) NOT NULL COLLATE NONE,
  SERIAL1                 VARCHAR(    30) NOT NULL COLLATE NONE,
  MODEL2                  VARCHAR(    30) NOT NULL COLLATE NONE,
  SERIAL2                 VARCHAR(    30) NOT NULL COLLATE NONE,
  MODEL3                  VARCHAR(    30) NOT NULL COLLATE NONE,
  SERIAL3                 VARCHAR(    30) NOT NULL COLLATE NONE,
  EXPDEVICE               VARCHAR(    30) NOT NULL COLLATE NONE,
  REFRIGE                 VARCHAR(    30) NOT NULL COLLATE NONE,
  REFCHARGE               VARCHAR(    30) NOT NULL COLLATE NONE,
  MEMO                    VARCHAR(    50) NOT NULL COLLATE NONE,
  COOLUNIT                INTEGER         NOT NULL,
  HEATUNIT                INTEGER         NOT NULL,
 CONSTRAINT PK_TB_CONDITION_NOTEPARAM PRIMARY KEY (PK_RECNO)
);
CREATE TABLE TB_CONDITION_RATEDPARAM 
(
  PK_RECNO               INTEGER         NOT NULL,
  FK_NOTENO              INTEGER         NOT NULL,
  PAGENO                 INTEGER         NOT NULL,
  MODE                   INTEGER         NOT NULL,
  CAPACITY                 FLOAT         NOT NULL,
  POWER                    FLOAT         NOT NULL,
  EER_COP                  FLOAT         NOT NULL,
  VOLT                     FLOAT         NOT NULL,
  AMP                      FLOAT         NOT NULL,
  FREQ                   VARCHAR(    10) NOT NULL COLLATE NONE,
  PM_IDU                 INTEGER         NOT NULL,
  PM_ODU                 INTEGER         NOT NULL,
  PHASE                  INTEGER         NOT NULL,
 CONSTRAINT PK_TB_CONDITION_RATEDPARAM PRIMARY KEY (PK_RECNO)
);
CREATE TABLE TB_CONDITION_THERMOPRESSPARAM 
(
  PK_RECNO               INTEGER         NOT NULL,
  FK_NOTENO              INTEGER         NOT NULL,
  CHTYPE                 INTEGER         NOT NULL,
  CHNO                   INTEGER         NOT NULL,
  "NAME"                 VARCHAR(    40) NOT NULL COLLATE NONE,
 CONSTRAINT PK_TB_CONDITION_THERMOPRESS PRIMARY KEY (PK_RECNO)
);
CREATE TABLE TB_SCHEDULEPARAM 
(
  PK_RECNO                  INTEGER         NOT NULL,
  FK_PARAMNO                INTEGER         NOT NULL,
  STANDARD                  VARCHAR(    50) NOT NULL COLLATE NONE,
  "NAME"                    VARCHAR(    50) NOT NULL COLLATE NONE,
  NOOFSTEADY                INTEGER         NOT NULL,
  PREPARATION               INTEGER         NOT NULL,
  JUDGEMENT                 INTEGER         NOT NULL,
  REPEAT                    INTEGER         NOT NULL,
  ID1USE                    INTEGER         NOT NULL,
  ID1MODE1                  INTEGER         NOT NULL,
  ID1DUCT1                  INTEGER         NOT NULL,
  ID1MODE2                  INTEGER         NOT NULL,
  ID1DUCT2                  INTEGER         NOT NULL,
  ID1EDBSETUP                 FLOAT         NOT NULL,
  ID1EDBAVG                   FLOAT         NOT NULL,
  ID1EDBDEV                   FLOAT         NOT NULL,
  ID1EWBSETUP                 FLOAT         NOT NULL,
  ID1EWBAVG                   FLOAT         NOT NULL,
  ID1EWBDEV                   FLOAT         NOT NULL,
  ID1LDB1DEV                  FLOAT         NOT NULL,
  ID1LWB1DEV                  FLOAT         NOT NULL,
  ID1AF1DEV                   FLOAT         NOT NULL,
  ID1LDB2DEV                  FLOAT         NOT NULL,
  ID1LWB2DEV                  FLOAT         NOT NULL,
  ID1AF2DEV                   FLOAT         NOT NULL,
  ID1CDP1SETUP                FLOAT         NOT NULL,
  ID1CDP1AVG                  FLOAT         NOT NULL,
  ID1CDP1DEV                  FLOAT         NOT NULL,
  ID1CDP2SETUP                FLOAT         NOT NULL,
  ID1CDP2AVG                  FLOAT         NOT NULL,
  ID1CDP2DEV                  FLOAT         NOT NULL,
  ID2USE                    INTEGER         NOT NULL,
  ID2MODE1                  INTEGER         NOT NULL,
  ID2DUCT1                  INTEGER         NOT NULL,
  ID2MODE2                  INTEGER         NOT NULL,
  ID2DUCT2                  INTEGER         NOT NULL,
  ID2EDBSETUP                 FLOAT         NOT NULL,
  ID2EDBAVG                   FLOAT         NOT NULL,
  ID2EDBDEV                   FLOAT         NOT NULL,
  ID2EWBSETUP                 FLOAT         NOT NULL,
  ID2EWBAVG                   FLOAT         NOT NULL,
  ID2EWBDEV                   FLOAT         NOT NULL,
  ID2LDB1DEV                  FLOAT         NOT NULL,
  ID2LWB1DEV                  FLOAT         NOT NULL,
  ID2AF1DEV                   FLOAT         NOT NULL,
  ID2LDB2DEV                  FLOAT         NOT NULL,
  ID2LWB2DEV                  FLOAT         NOT NULL,
  ID2AF2DEV                   FLOAT         NOT NULL,
  ID2CDP1SETUP                FLOAT         NOT NULL,
  ID2CDP1AVG                  FLOAT         NOT NULL,
  ID2CDP1DEV                  FLOAT         NOT NULL,
  ID2CDP2SETUP                FLOAT         NOT NULL,
  ID2CDP2AVG                  FLOAT         NOT NULL,
  ID2CDP2DEV                  FLOAT         NOT NULL,
  ODUSE                     INTEGER         NOT NULL,
  ODDP                      INTEGER         NOT NULL,
  ODAUTOVOLT                INTEGER         NOT NULL,
  ODEDBSETUP                  FLOAT         NOT NULL,
  ODEDBAVG                    FLOAT         NOT NULL,
  ODEDBDEV                    FLOAT         NOT NULL,
  ODEWBSETUP                  FLOAT         NOT NULL,
  ODEWBAVG                    FLOAT         NOT NULL,
  ODEWBDEV                    FLOAT         NOT NULL,
  ODEDPSETUP                  FLOAT         NOT NULL,
  ODEDPAVG                    FLOAT         NOT NULL,
  ODEDPDEV                    FLOAT         NOT NULL,
  ODVOLT1SETUP                FLOAT         NOT NULL,
  ODVOLT1AVG                  FLOAT         NOT NULL,
  ODVOLT1DEV                  FLOAT         NOT NULL,
  ODVOLT2SETUP                FLOAT         NOT NULL,
  ODVOLT2AVG                  FLOAT         NOT NULL,
  ODVOLT2DEV                  FLOAT         NOT NULL,
 CONSTRAINT PK_TB_SCHEDULEPARAM PRIMARY KEY (PK_RECNO)
);
CREATE TABLE TB_USER 
(
  PK_RECNO               INTEGER         NOT NULL,
  "NAME"                 VARCHAR(    20) NOT NULL COLLATE NONE,
  AUTHORITY              INTEGER         NOT NULL,
  PASSWD                 VARCHAR(    60) NOT NULL COLLATE NONE,
  MEMO                   VARCHAR(   100) NOT NULL COLLATE NONE,
 CONSTRAINT PK_TB_USER PRIMARY KEY (PK_RECNO)
);
/*******************************************************************************
 * Indices
 * -------
 * Extracted at 2018-07-04 오후 3:28:24
 ******************************************************************************/

CREATE ASC INDEX IDX_NOTEPARAM_MAKER ON TB_CONDITION_NOTEPARAM (MAKER);
CREATE ASC INDEX IDX_NOTEPARAM_MODEL1 ON TB_CONDITION_NOTEPARAM (MODEL1);
CREATE ASC INDEX IDX_NOTEPARAM_SERIAL1 ON TB_CONDITION_NOTEPARAM (SERIAL1);
CREATE ASC INDEX IDX_SCHPARAM_NAME ON TB_SCHEDULEPARAM ("NAME");
CREATE ASC INDEX IDX_SCHPARAM_STANDARD ON TB_SCHEDULEPARAM (STANDARD);
/*******************************************************************************
 * Foreign Key Constraints
 * -----------------------
 * Extracted at 2018-07-04 오후 3:28:24
 ******************************************************************************/

ALTER TABLE TB_CONDITION_METHODPARAM ADD CONSTRAINT FK_METHOD_NOTE 
  FOREIGN KEY (FK_NOTENO) REFERENCES TB_CONDITION_NOTEPARAM
  (PK_RECNO) 
  ON DELETE NO ACTION
  ON UPDATE NO ACTION
;

ALTER TABLE TB_CONDITION_NOTEPARAM ADD CONSTRAINT FK_NOTEPARAM_ALLPARAM 
  FOREIGN KEY (FK_PARAMNO) REFERENCES TB_ALLPARAM
  (PK_RECNO) 
  ON DELETE NO ACTION
  ON UPDATE NO ACTION
;

ALTER TABLE TB_SCHEDULEPARAM ADD CONSTRAINT FK_SCHEDULEPARAM_ALLPARAM 
  FOREIGN KEY (FK_PARAMNO) REFERENCES TB_ALLPARAM
  (PK_RECNO) 
  ON DELETE NO ACTION
  ON UPDATE NO ACTION
;

ALTER TABLE TB_CALIBPOINT ADD CONSTRAINT FK_TB_CALIBPOINT_TB_CALIB_ROW 
  FOREIGN KEY (FK_CALIB_ROWNO) REFERENCES TB_CALIBRATOR_ROW
  (PK_RECNO) 
  ON DELETE NO ACTION
  ON UPDATE NO ACTION
;

ALTER TABLE TB_CALIBRATOR ADD CONSTRAINT FK_TB_CALIBRATOR_TB_USER 
  FOREIGN KEY (FK_USERNO) REFERENCES TB_USER
  (PK_RECNO) 
  ON DELETE NO ACTION
  ON UPDATE NO ACTION
;

ALTER TABLE TB_CALIBRATOR_ROW ADD CONSTRAINT FK_TB_CALIB_ROW_TB_CALIB 
  FOREIGN KEY (FK_CALIBRATORNO) REFERENCES TB_CALIBRATOR
  (PK_RECNO) 
  ON DELETE NO ACTION
  ON UPDATE NO ACTION
;

ALTER TABLE TB_CONDITION_RATEDPARAM ADD CONSTRAINT FK_TB_RATEDPARAM_TB_NOTEPARAM 
  FOREIGN KEY (FK_NOTENO) REFERENCES TB_CONDITION_NOTEPARAM
  (PK_RECNO) 
  ON DELETE NO ACTION
  ON UPDATE NO ACTION
;

ALTER TABLE TB_CONDITION_THERMOPRESSPARAM ADD CONSTRAINT FK_THERMOPRESSPARAM_NOTEPARAM 
  FOREIGN KEY (FK_NOTENO) REFERENCES TB_CONDITION_NOTEPARAM
  (PK_RECNO) 
  ON DELETE NO ACTION
  ON UPDATE NO ACTION
;

<file_sep>﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Threading;

using FirebirdSql.Data.FirebirdClient;

using Ulee.Database.Firebird;
using Ulee.Device.Connection.Yokogawa;

namespace Hnc.Calorimeter.Client
{
    public class CalorimeterTestDatabase : UlFirebird
    {
        public CalorimeterTestDatabase(FbServerType type = FbServerType.Default) : base(type)
        {
            UserSet = new UserDataSet(connect, null, null);
            AllParamSet = new AllParamDataSet(connect, null, null);
            ScheduleParamSet = new ScheduleParamDataSet(connect, null, null);
            NoteParamSet = new NoteParamDataSet(connect, null, null);
            MethodParamSet = new MethodParamDataSet(connect, null, null);
            RatedParamSet = new RatedParamDataSet(connect, null, null);
            ThermoPressParamSet = new ThermoPressParamDataSet(connect, null, null);
            NoteParamConfigSet = new NoteParamDataSet(connect, null, null);
            DataBookSet = new DataBookDataSet(connect, null, null);
            DataSheetSet = new DataSheetDataSet(connect, null, null);
            DataValueUnitSet = new DataValueUnitDataSet(connect, null, null);
            DataValueSet = new DataValueDataSet(connect, null, null);
            DataRawUnitSet = new DataRawUnitDataSet(connect, null, null);
            DataRawSet = new DataRawDataSet(connect, null, null);
            XAxisSettingSet = new XAxisSettingDataSet(connect, null, null);
            YAxisSettingSet = new YAxisSettingDataSet(connect, null, null);
            SeriesSettingSet = new SeriesSettingDataSet(connect, null, null);
        }

        public FbConnection Connect { get { return connect; } }

        public UserDataSet UserSet { get; private set; }
        public AllParamDataSet AllParamSet { get; private set; }
        public ScheduleParamDataSet ScheduleParamSet { get; private set; }
        public NoteParamDataSet NoteParamSet { get; private set; }
        public MethodParamDataSet MethodParamSet { get; private set; }
        public RatedParamDataSet RatedParamSet { get; private set; }
        public ThermoPressParamDataSet ThermoPressParamSet { get; private set; }
        public NoteParamDataSet NoteParamConfigSet { get; private set; }
        public DataBookDataSet DataBookSet { get; private set; }
        public DataSheetDataSet DataSheetSet { get; private set; }
        public DataValueUnitDataSet DataValueUnitSet { get; private set; }
        public DataValueDataSet DataValueSet { get; private set; }
        public DataRawUnitDataSet DataRawUnitSet { get; private set; }
        public DataRawDataSet DataRawSet { get; private set; }
        public XAxisSettingDataSet XAxisSettingSet { get; private set; }
        public YAxisSettingDataSet YAxisSettingSet { get; private set; }
        public SeriesSettingDataSet SeriesSettingSet { get; private set; }
    }

    public class CalorimeterViewDatabase : UlFirebird
    {
        public CalorimeterViewDatabase(FbServerType type = FbServerType.Default) : base(type)
        {
            DataBookSet = new DataBookDataSet(connect, null, null);
            DataSheetSet = new DataSheetDataSet(connect, null, null);
            DataValueUnitSet = new DataValueUnitDataSet(connect, null, null);
            DataValueSet = new DataValueDataSet(connect, null, null);
            DataRawUnitSet = new DataRawUnitDataSet(connect, null, null);
            DataRawSet = new DataRawDataSet(connect, null, null);
            YAxisSettingSet = new YAxisSettingDataSet(connect, null, null);
            SeriesSettingSet = new SeriesSettingDataSet(connect, null, null);
        }

        public FbConnection Connect { get { return connect; } }

        public DataBookDataSet DataBookSet { get; private set; }
        public DataSheetDataSet DataSheetSet { get; private set; }
        public DataValueUnitDataSet DataValueUnitSet { get; private set; }
        public DataValueDataSet DataValueSet { get; private set; }
        public DataRawUnitDataSet DataRawUnitSet { get; private set; }
        public DataRawDataSet DataRawSet { get; private set; }
        public YAxisSettingDataSet YAxisSettingSet { get; private set; }
        public SeriesSettingDataSet SeriesSettingSet { get; private set; }
    }

    public class CalorimeterConfigDatabase : UlFirebird
    {
        public CalorimeterConfigDatabase(FbServerType type = FbServerType.Default) : base(type)
        {
            UserSet = new UserDataSet(connect, null, null);
            AllParamSet = new AllParamDataSet(connect, null, null);
            ScheduleParamSet = new ScheduleParamDataSet(connect, null, null);
            NoteParamSet = new NoteParamDataSet(connect, null, null);
            MethodParamSet = new MethodParamDataSet(connect, null, null);
            RatedParamSet = new RatedParamDataSet(connect, null, null);
            ThermoPressParamSet = new ThermoPressParamDataSet(connect, null, null);
            NoteParamConfigSet = new NoteParamDataSet(connect, null, null);
        }

        public FbConnection Connect { get { return connect; } }

        public UserDataSet UserSet { get; private set; }
        public AllParamDataSet AllParamSet { get; private set; }
        public ScheduleParamDataSet ScheduleParamSet { get; private set; }
        public NoteParamDataSet NoteParamSet { get; private set; }
        public MethodParamDataSet MethodParamSet { get; private set; }
        public RatedParamDataSet RatedParamSet { get; private set; }
        public ThermoPressParamDataSet ThermoPressParamSet { get; private set; }
        public NoteParamDataSet NoteParamConfigSet { get; private set; }

        public void DeleteAllParam(int paramNo)
        {
            NoteParamSet.Select(paramNo);
            NoteParamSet.Fetch();
            int noteNo = NoteParamSet.RecNo;

            BeginTrans();

            try
            {
                ThermoPressParamSet.NoteNo = noteNo;
                ThermoPressParamSet.Delete(Trans);
                RatedParamSet.NoteNo = noteNo;
                RatedParamSet.Delete(Trans);
                MethodParamSet.NoteNo = noteNo;
                MethodParamSet.Delete(Trans);
                NoteParamSet.Delete(paramNo, Trans);
                ScheduleParamSet.Delete(paramNo, Trans);
                AllParamSet.RecNo = paramNo;
                AllParamSet.Delete(Trans);

                CommitTrans();
            }
            catch (Exception e)
            {
                Resource.TLog.Log((int)ELogItem.Exception, e.ToString());
                RollbackTrans();
            }
        }

        public void DeleteNoteParam()
        {
            int recNo = NoteParamSet.RecNo;

            BeginTrans();

            try
            {
                ThermoPressParamSet.NoteNo = recNo;
                ThermoPressParamSet.Delete(Trans);
                RatedParamSet.NoteNo = recNo;
                RatedParamSet.Delete(Trans);
                NoteParamSet.Delete(Trans);

                CommitTrans();
            }
            catch (Exception e)
            {
                Resource.TLog.Log((int)ELogItem.Exception, e.ToString());
                RollbackTrans();
            }
        }
    }

    //public class TestDataSets
    //{
    //    public TestDataSets(FbConnection connect)
    //    {
    //        DataBookSet = new DataBookDataSet(connect, null, null);
    //        DataSheetSet = new DataSheetDataSet(connect, null, null);
    //        DataValueUnitSet = new DataValueUnitDataSet(connect, null, null);
    //        DataValueSet = new DataValueDataSet(connect, null, null);
    //        DataRawUnitSet = new DataRawUnitDataSet(connect, null, null);
    //        DataRawSet = new DataRawDataSet(connect, null, null);
    //        YAxisSettingSet = new YAxisSettingDataSet(connect, null, null);
    //        SeriesSettingSet = new SeriesSettingDataSet(connect, null, null);
    //    }

    //    public DataBookDataSet DataBookSet { get; private set; }
    //    public DataSheetDataSet DataSheetSet { get; private set; }
    //    public DataValueUnitDataSet DataValueUnitSet { get; private set; }
    //    public DataValueDataSet DataValueSet { get; private set; }
    //    public DataRawUnitDataSet DataRawUnitSet { get; private set; }
    //    public DataRawDataSet DataRawSet { get; private set; }
    //    public YAxisSettingDataSet YAxisSettingSet { get; private set; }
    //    public SeriesSettingDataSet SeriesSettingSet { get; private set; }
    //}

    //public class ConfigDataSets
    //{
    //    public ConfigDataSets(FbConnection connect)
    //    {
    //        ScheduleParamSet = new ScheduleParamDataSet(connect, null, null);
    //        NoteParamSet = new NoteParamDataSet(connect, null, null);
    //        MethodParamSet = new MethodParamDataSet(connect, null, null);
    //        RatedParamSet = new RatedParamDataSet(connect, null, null);
    //        ThermoPressParamSet = new ThermoPressParamDataSet(connect, null, null);
    //    }

    //    public ScheduleParamDataSet ScheduleParamSet { get; private set; }
    //    public NoteParamDataSet NoteParamSet { get; private set; }
    //    public MethodParamDataSet MethodParamSet { get; private set; }
    //    public RatedParamDataSet RatedParamSet { get; private set; }
    //    public ThermoPressParamDataSet ThermoPressParamSet { get; private set; }
    //}

    public class UserDataSet : UlDataSet
    {
        public int RecNo { get; set; }
        public string Name { get; set; }
        public EUserAuthority Authority { get; set; }
        public string Passwd { get; set; }
        public string Memo { get; set; }

        public UserDataSet(FbConnection connect, FbCommand command, FbDataAdapter adapter)
            : base(connect, command, adapter)
        {
        }

        public void Select()
        {
            SetTrans(null);
            command.CommandText = "select * from TB_USER where pk_recno>0 order by pk_recno asc";
            dataSet.Clear();
            dataAdapter.Fill(dataSet);
        }

        public void Select(int recno)
        {
            SetTrans(null);
            command.CommandText = $"select * from TB_USER where pk_recno={recno} order by pk_recno asc";
            dataSet.Clear();
            dataAdapter.Fill(dataSet);
        }

        public void Select(string name)
        {
            SetTrans(null);
            command.CommandText = $"select * from TB_USER where name='{name}' order by pk_recno asc";
            dataSet.Clear();
            dataAdapter.Fill(dataSet);
        }

        public int GetRecNo(string name)
        {
            Select(name);
            Fetch();

            return RecNo;
        }

        public string GetName(int recno)
        {
            Select(recno);
            Fetch();

            return Name;
        }

        public void Insert(FbTransaction trans = null)
        {
            string sql = $"insert into TB_USER values ({RecNo}, '{Name}', {(int)Authority}, '{Passwd}', '{Memo}')";

            SetTrans(trans);

            try
            {
                BeginTrans(trans);
                command.CommandText = sql;
                command.ExecuteNonQuery();
                CommitTrans(trans);
            }
            catch (Exception e)
            {
                Resource.TLog.Log((int)ELogItem.Error, sql);
                Resource.TLog.Log((int)ELogItem.Exception, e.ToString());
                RollbackTrans(trans, e);
            }
        }

        public void Update(FbTransaction trans = null)
        {
            string sql =
                $"update TB_USER set name='{Name}', authority={(int)Authority}, passwd='{<PASSWORD>}', memo='{Memo}' where pk_recno={RecNo}";

            SetTrans(trans);

            try
            {
                BeginTrans(trans);
                command.CommandText = sql;
                command.ExecuteNonQuery();
                CommitTrans(trans);
            }
            catch (Exception e)
            {
                Resource.TLog.Log((int)ELogItem.Error, sql);
                Resource.TLog.Log((int)ELogItem.Exception, e.ToString());
                RollbackTrans(trans, e);
            }
        }

        public void Delete(FbTransaction trans = null)
        {
            string sql = $" delete from TB_USER where pk_recno={RecNo} ";

            SetTrans(trans);

            try
            {
                BeginTrans(trans);
                command.CommandText = sql;
                command.ExecuteNonQuery();
                CommitTrans(trans);
            }
            catch (Exception e)
            {
                Resource.TLog.Log((int)ELogItem.Error, sql);
                Resource.TLog.Log((int)ELogItem.Exception, e.ToString());
                RollbackTrans(trans, e);
            }
        }

        public void Fetch(int index = 0, int tableNo = 0)
        {
            if (index < GetRowCount(tableNo))
            {
                Fetch(dataSet.Tables[tableNo].Rows[index]);
            }
            else
            {
                RecNo = -1;
                Name = "";
                Authority = EUserAuthority.Viewer;
                Passwd = "";
                Memo = "";
            }
        }

        public void Fetch(DataRow row)
        {
            RecNo = Convert.ToInt32(row["pk_recno"]);
            Name = Convert.ToString(row["name"]);
            Authority = (EUserAuthority)Convert.ToInt32(row["authority"]);
            Passwd = Convert.ToString(row["passwd"]);
            Memo = Convert.ToString(row["memo"]);
        }
    }

    public class AllParamDataSet : UlDataSet
    {
        public int RecNo { get; set; }
        public int UserNo { get; set; }
        public string UserName { get; set; }
        public string RegTime { get; set; }
        public string Memo { get; set; }

        public AllParamDataSet(FbConnection connect, FbCommand command, FbDataAdapter adapter)
            : base(connect, command, adapter)
        {
        }

        public void Select()
        {
            SetTrans(null);
            command.CommandText = 
                  " select t1.*, t2.name as username from TB_ALLPARAM t1 " 
                + " join TB_USER t2 on t2.pk_recno=T1.fk_userno "
                + " where t1.pk_recno>=0 "
                + " order by t1.pk_recno asc ";
            dataSet.Clear();
            dataAdapter.Fill(dataSet);
        }

        public void Insert(FbTransaction trans = null)
        {
            string sql = $" insert into TB_ALLPARAM values ({RecNo}, {UserNo}, '{RegTime}', '{Memo}') ";

            SetTrans(trans);

            try
            {
                BeginTrans(trans);
                command.CommandText = sql;
                command.ExecuteNonQuery();
                CommitTrans(trans);
            }
            catch (Exception e)
            {
                Resource.TLog.Log((int)ELogItem.Error, sql);
                Resource.TLog.Log((int)ELogItem.Exception, e.ToString());
                RollbackTrans(trans, e);
            }
        }

        public void Delete(FbTransaction trans = null)
        {
            string sql = $"delete from TB_ALLPARAM where pk_recno={RecNo}";

            SetTrans(trans);

            try
            {
                BeginTrans(trans);
                command.CommandText = sql;
                command.ExecuteNonQuery();
                CommitTrans(trans);
            }
            catch (Exception e)
            {
                Resource.TLog.Log((int)ELogItem.Error, sql);
                Resource.TLog.Log((int)ELogItem.Exception, e.ToString());
                RollbackTrans(trans, e);
            }
        }

        public void Fetch(int index = 0, int tableNo = 0)
        {
            if (index < GetRowCount(tableNo))
            {
                Fetch(dataSet.Tables[tableNo].Rows[index]);
            }
            else
            {
                RecNo = -1;
                UserNo = 0;
                RegTime = "";
                Memo = "";
            }
        }

        public void Fetch(DataRow row)
        {
            RecNo = Convert.ToInt32(row["pk_recno"]);
            UserNo = Convert.ToInt32(row["fk_userno"]);
            UserName = Convert.ToString(row["username"]);
            RegTime = Convert.ToString(row["regtime"]);
            Memo = Convert.ToString(row["memo"]);
        }
    }

    public class NoteParamDataSet : UlDataSet
    {
        public NoteParamDataSet(FbConnection connect, FbCommand command, FbDataAdapter adapter)
            : base(connect, command, adapter)
        {
        }

        public int RecNo { get; set; }
        public int ParamNo { get; set; }
        public string Company { get; set; }
        public string TestName { get; set; }
        public string TestNo { get; set; }
        public string Observer { get; set; }
        public string Maker { get; set; }
        public string Model1 { get; set; }
        public string Serial1 { get; set; }
        public string Model2 { get; set; }
        public string Serial2 { get; set; }
        public string Model3 { get; set; }
        public string Serial3 { get; set; }
        public string ExpDevice { get; set; }
        public string Refrig { get; set; }
        public string RefCharge { get; set; }
        public string Memo { get; set; }
        public EUnitCapacity CoolUnit { get; set; }
        public EUnitCapacity HeatUnit { get; set; }

        public void Select(int paramNo=-1)
        {
            SetTrans(null);
            command.CommandText =
                  $" select * from TB_CONDITION_NOTEPARAM "
                + $" where fk_paramno={paramNo} "
                + $" order by maker, model1, serial1 asc ";
            dataSet.Clear();
            dataAdapter.Fill(dataSet);
        }

        public void SelectRecNo(int recNo)
        {
            SetTrans(null);
            command.CommandText =
                  $" select * from TB_CONDITION_NOTEPARAM "
                + $" where pk_recno={recNo} ";
            dataSet.Clear();
            dataAdapter.Fill(dataSet);
        }

        public void Select(string maker, int paramNo=-1)
        {
            SetTrans(null);
            command.CommandText = 
                  $" select * from TB_CONDITION_NOTEPARAM "
                + $" where fk_paramno={paramNo} and maker like '{maker}%' " 
                + $" order by maker, model1, serial1 asc ";
            dataSet.Clear();
            dataAdapter.Fill(dataSet);
        }

        public void SelectDistinct(int paramNo = -1)
        {
            SetTrans(null);
            command.CommandText =
                  $" select distinct(maker) from TB_CONDITION_NOTEPARAM "
                + $" where fk_paramno={paramNo} ";
            dataSet.Clear();
            dataAdapter.Fill(dataSet);
        }

        public void SelectDistinct(string maker, int paramNo = -1)
        {
            SetTrans(null);
            command.CommandText =
                  $" select distinct(model1) from TB_CONDITION_NOTEPARAM "
                + $" where fk_paramno={paramNo} and maker='{maker}' ";
            dataSet.Clear();
            dataAdapter.Fill(dataSet);
        }

        public void SelectDistinct(string maker, string model, int paramNo = -1)
        {
            SetTrans(null);
            command.CommandText =
                  $" select pk_recno, serial1 from TB_CONDITION_NOTEPARAM "
                + $" where fk_paramno={paramNo} and maker='{maker}' and model1='{model}' ";
            dataSet.Clear();
            dataAdapter.Fill(dataSet);
        }

        public void Select(string maker, string model, string serial, int paramNo = -1)
        {
            SetTrans(null);
            command.CommandText =
                  $" select * from TB_CONDITION_NOTEPARAM "
                + $" where fk_paramno={paramNo} and maker='{maker}' "
                + $" and model1='{model}' and serial1='{serial}' ";
            dataSet.Clear();
            dataAdapter.Fill(dataSet);
        }

        public void Insert(FbTransaction trans = null)
        {
            string sql = $" insert into TB_CONDITION_NOTEPARAM values ( "
                + $" {RecNo}, {ParamNo}, '{Company}', '{TestName}', '{TestNo}', '{Observer}', "
                + $" '{Maker}', '{Model1}', '{Serial1}', '{Model2}', '{Serial2}', '{Model3}', '{Serial3}', "
                + $" '{ExpDevice}', '{Refrig}', '{RefCharge}', '{Memo}', {(int)CoolUnit}, {(int)HeatUnit}) ";

            SetTrans(trans);

            try
            {
                BeginTrans(trans);
                command.CommandText = sql;
                command.ExecuteNonQuery();
                CommitTrans(trans);
            }
            catch (Exception e)
            {
                Resource.TLog.Log((int)ELogItem.Error, sql);
                Resource.TLog.Log((int)ELogItem.Exception, e.ToString());
                RollbackTrans(trans, e);
            }
        }

        public void Update(FbTransaction trans = null)
        {
            string sql = $" update TB_CONDITION_NOTEPARAM set company='{Company}', testname='{TestName}', "
                + $" testno='{TestNo}', Observer='{Observer}', maker='{Maker}', model1='{Model1}', serial1='{Serial1}', "
                + $" model2='{Model2}', serial2='{Serial2}', model3='{Model3}', serial3='{Serial3}', expdevice='{ExpDevice}', "
                + $" refrige='{Refrig}', refcharge='{RefCharge}', memo='{Memo}', coolunit={(int)CoolUnit}, heatunit={(int)HeatUnit} "
                + $" where pk_recno={RecNo} ";

            SetTrans(trans);

            try
            {
                BeginTrans(trans);
                command.CommandText = sql;
                command.ExecuteNonQuery();
                CommitTrans(trans);
            }
            catch (Exception e)
            {
                Resource.TLog.Log((int)ELogItem.Error, sql);
                Resource.TLog.Log((int)ELogItem.Exception, e.ToString());
                RollbackTrans(trans, e);
            }
        }

        public void Delete(FbTransaction trans = null)
        {
            string sql = $"delete from TB_CONDITION_NOTEPARAM where pk_recno={RecNo}";

            SetTrans(trans);

            try
            {
                BeginTrans(trans);
                command.CommandText = sql;
                command.ExecuteNonQuery();
                CommitTrans(trans);
            }
            catch (Exception e)
            {
                Resource.TLog.Log((int)ELogItem.Error, sql);
                Resource.TLog.Log((int)ELogItem.Exception, e.ToString());
                RollbackTrans(trans, e);
            }
        }

        public void Delete(int paramNo, FbTransaction trans = null)
        {
            string sql = $"delete from TB_CONDITION_NOTEPARAM where fk_paramno={paramNo}";

            SetTrans(trans);

            try
            {
                BeginTrans(trans);
                command.CommandText = sql;
                command.ExecuteNonQuery();
                CommitTrans(trans);
            }
            catch (Exception e)
            {
                Resource.TLog.Log((int)ELogItem.Error, sql);
                Resource.TLog.Log((int)ELogItem.Exception, e.ToString());
                RollbackTrans(trans, e);
            }
        }

        public void Fetch(int index = 0, int tableNo = 0)
        {
            if (index < GetRowCount(tableNo))
            {
                Fetch(dataSet.Tables[tableNo].Rows[index]);
            }
            else
            {
                RecNo = -1;
                ParamNo = 0;
                Company = "";
                TestName = "";
                TestNo = "";
                Observer = "";
                Maker = "";
                Model1 = "";
                Serial1 = "";
                Model2 = "";
                Serial2 = "";
                Model3 = "";
                Serial3 = "";
                ExpDevice = "";
                Refrig = "";
                RefCharge = "";
                Memo = "";
                CoolUnit = EUnitCapacity.kcal;
                HeatUnit = EUnitCapacity.Btu;
            }
        }

        public void Fetch(DataRow row)
        {
            RecNo = Convert.ToInt32(row["pk_recno"]);
            ParamNo = Convert.ToInt32(row["fk_paramno"]);
            Company = Convert.ToString(row["company"]);
            TestName = Convert.ToString(row["testname"]);
            TestNo = Convert.ToString(row["testno"]);
            Observer = Convert.ToString(row["observer"]);
            Maker = Convert.ToString(row["maker"]);
            Model1 = Convert.ToString(row["model1"]);
            Serial1 = Convert.ToString(row["serial1"]);
            Model2 = Convert.ToString(row["model2"]);
            Serial2 = Convert.ToString(row["serial2"]);
            Model3 = Convert.ToString(row["model3"]);
            Serial3 = Convert.ToString(row["serial3"]);
            ExpDevice = Convert.ToString(row["expdevice"]);
            Refrig = Convert.ToString(row["refrige"]);
            RefCharge = Convert.ToString(row["refcharge"]);
            Memo = Convert.ToString(row["memo"]);
            CoolUnit = (EUnitCapacity)Convert.ToInt32(row["coolunit"]);
            HeatUnit = (EUnitCapacity)Convert.ToInt32(row["heatunit"]);
        }

        public void FetchMaker(int index = 0, int tableNo = 0)
        {
            if (index < GetRowCount(tableNo))
            {
                FetchMaker(dataSet.Tables[tableNo].Rows[index]);
            }
            else
            {
                RecNo = -1;
                Maker = "";
            }
        }

        public void FetchMaker(DataRow row)
        {
            RecNo = -1;
            Maker = Convert.ToString(row["maker"]);
            Model1 = "";
            Serial1 = "";
        }

        public void FetchModel1(int index = 0, int tableNo = 0)
        {
            if (index < GetRowCount(tableNo))
            {
                FetchModel1(dataSet.Tables[tableNo].Rows[index]);
            }
            else
            {
                RecNo = -1;
                Model1 = "";
            }
        }

        public void FetchModel1(DataRow row)
        {
            RecNo = -1;
            Maker = "";
            Model1 = Convert.ToString(row["model1"]);
            Serial1 = "";
        }

        public void FetchSerial1(int index = 0, int tableNo = 0)
        {
            if (index < GetRowCount(tableNo))
            {
                FetchSerial1(dataSet.Tables[tableNo].Rows[index]);
            }
            else
            {
                RecNo = -1;
                Serial1 = "";
            }
        }

        public void FetchSerial1(DataRow row)
        {
            RecNo = Convert.ToInt32(row["pk_recno"]);
            Maker = "";
            Model1 = "";
            Serial1 = Convert.ToString(row["serial1"]);
        }
    }

    public class MethodParamDataSet : UlDataSet
    {
        public MethodParamDataSet(FbConnection connect, FbCommand command, FbDataAdapter adapter)
            : base(connect, command, adapter)
        {
        }

        public int RecNo { get; set; }
        public int NoteNo { get; set; }
        public int IntegCount { get; set; }
        public int IntegTime { get; set; }
        public int ScanTime { get; set; }
        public EUnitCapacity CoolCapacityUnit { get; set; }
        public EUnitCapacity HeatCapacityUnit { get; set; }
        public EUnitAirFlow AirFlowUnit { get; set; }
        public EUnitEnthalpy EnthalpyUnit { get; set; }
        public EUnitPressure PressureUnit { get; set; }
        public EUnitTemperature TemperatureUnit { get; set; }
        public EUnitDiffPressure DiffPressureUnit { get; set; }
        public EUnitAtmPressure AtmPressureUnit { get; set; }
        public bool AutoSetController { get; set; }
        public bool UsePowerMeter { get; set; }

        public void Select(int noteNo)
        {
            SetTrans(null);
            command.CommandText =
                  $" select * from TB_CONDITION_METHODPARAM "
                + $" where fk_noteno={noteNo} ";
            dataSet.Clear();
            dataAdapter.Fill(dataSet);
        }

        public void Insert(FbTransaction trans = null)
        {
            int auto = (AutoSetController == false) ? 0 : 1;
            int use = (UsePowerMeter == false) ? 0 : 1;
            string sql = $" insert into TB_CONDITION_METHODPARAM values ( "
                + $" {RecNo}, {NoteNo}, {IntegCount}, {IntegTime}, {ScanTime}, "
                + $" {(int)CoolCapacityUnit}, {(int)HeatCapacityUnit}, {(int)AirFlowUnit}, {(int)EnthalpyUnit}, "
                + $" {(int)PressureUnit}, {(int)TemperatureUnit}, {(int)DiffPressureUnit}, {(int)AtmPressureUnit}, "
                + $" {auto}, {use})";


            SetTrans(trans);

            try
            {
                BeginTrans(trans);
                command.CommandText = sql;
                command.ExecuteNonQuery();
                CommitTrans(trans);
            }
            catch (Exception e)
            {
                Resource.TLog.Log((int)ELogItem.Error, sql);
                Resource.TLog.Log((int)ELogItem.Exception, e.ToString());
                RollbackTrans(trans, e);
            }
        }

        public void Delete(FbTransaction trans = null)
        {
            string sql = $" delete from TB_CONDITION_METHODPARAM where fk_noteno={NoteNo} ";

            SetTrans(trans);

            try
            {
                BeginTrans(trans);
                command.CommandText = sql;
                command.ExecuteNonQuery();
                CommitTrans(trans);
            }
            catch (Exception e)
            {
                Resource.TLog.Log((int)ELogItem.Error, sql);
                Resource.TLog.Log((int)ELogItem.Exception, e.ToString());
                RollbackTrans(trans, e);
            }
        }

        public void Fetch(int index = 0, int tableNo = 0)
        {
            if (index < GetRowCount(tableNo))
            {
                Fetch(dataSet.Tables[tableNo].Rows[index]);
            }
            else
            {
                RecNo = 0;
                NoteNo = 0;
                IntegCount = 0;
                IntegTime = 0;
                ScanTime = 0;
                CoolCapacityUnit = EUnitCapacity.W;
                HeatCapacityUnit = EUnitCapacity.W;
                AirFlowUnit = EUnitAirFlow.CMM;
                EnthalpyUnit = EUnitEnthalpy.W;
                PressureUnit = EUnitPressure.Bar;
                TemperatureUnit = EUnitTemperature.Celsius;
                DiffPressureUnit = EUnitDiffPressure.mmAq;
                AtmPressureUnit = EUnitAtmPressure.mmAq;
                AutoSetController = false;
                UsePowerMeter = false;
            }
        }

        public void Fetch(DataRow row)
        {
            RecNo = Convert.ToInt32(row["pk_reco"]);
            NoteNo = Convert.ToInt32(row["fk_noteno"]);
            IntegCount = Convert.ToInt32(row["integcount"]); 
            IntegTime = Convert.ToInt32(row["integtime"]);
            ScanTime = Convert.ToInt32(row["scantime"]);
            CoolCapacityUnit = (EUnitCapacity)Convert.ToInt32(row["coolcapa"]);
            HeatCapacityUnit = (EUnitCapacity)Convert.ToInt32(row["heatcapa"]);
            AirFlowUnit = (EUnitAirFlow)Convert.ToInt32(row["airflow"]);
            EnthalpyUnit = (EUnitEnthalpy)Convert.ToInt32(row["enthalpy"]);
            PressureUnit = (EUnitPressure)Convert.ToInt32(row["press"]);
            TemperatureUnit = (EUnitTemperature)Convert.ToInt32(row["temp"]);
            DiffPressureUnit = (EUnitDiffPressure)Convert.ToInt32(row["diffpress"]);
            AtmPressureUnit = (EUnitAtmPressure)Convert.ToInt32(row["atmpress"]);
            AutoSetController = (Convert.ToInt32(row["autoset"]) == 0) ? false : true;
            UsePowerMeter = (Convert.ToInt32(row["usepm"]) == 0) ? false : true;
        }
    }

    public class RatedParamDataSet : UlDataSet
    {
        public RatedParamDataSet(FbConnection connect, FbCommand command, FbDataAdapter adapter)
            : base(connect, command, adapter)
        {
        }

        public int RecNo { get; set; }
        public int NoteNo { get; set; }
        public EConditionRated PageNo { get; set; }
        public ETestMode Mode { get; set; }
        public float Capacity { get; set; }
        public float Power { get; set; }
        public float EER_COP { get; set; }
        public float Volt { get; set; }
        public float Amp { get; set; }
        public string Freq { get; set; }
        public int PM_IDU { get; set; }
        public int PM_ODU { get; set; }
        public EWT330Wiring Phase { get; set; }

        public void Select(int noteno, EConditionRated pageno)
        {
            SetTrans(null);
            command.CommandText 
                = " select * from TB_CONDITION_RATEDPARAM "
                + $" where fk_noteno={noteno} and pageno={(int)pageno} "
                + $" order by mode asc ";
            dataSet.Clear();
            dataAdapter.Fill(dataSet);
        }

        public void Insert(FbTransaction trans = null)
        {
            string sql = $" insert into TB_CONDITION_RATEDPARAM values ( "
                + $" {RecNo}, {NoteNo}, {(int)PageNo}, {(int)Mode}, {Capacity}, {Power}, "
                + $" {EER_COP}, {Volt}, {Amp}, '{Freq}', {PM_IDU}, {PM_ODU}, {(int)Phase}) ";

            SetTrans(trans);

            try
            {
                BeginTrans(trans);
                command.CommandText = sql;
                command.ExecuteNonQuery();
                CommitTrans(trans);
            }
            catch (Exception e)
            {
                Resource.TLog.Log((int)ELogItem.Error, sql);
                Resource.TLog.Log((int)ELogItem.Exception, e.ToString());
                RollbackTrans(trans, e);
            }
        }

        public void Update(FbTransaction trans = null)
        {
            string sql = $" update TB_CONDITION_RATEDPARAM set "
                + $" capacity={Capacity}, power={Power}, eer_cop={EER_COP}, volt={Volt}, "
                + $" amp={Amp}, freq='{Freq}', pm_idu={PM_IDU}, pm_odu={PM_ODU}, phase={(int)Phase} "
                + $" where pk_recno={RecNo} ";

            SetTrans(trans);

            try
            {
                BeginTrans(trans);
                command.CommandText = sql;
                command.ExecuteNonQuery();
                CommitTrans(trans);
            }
            catch (Exception e)
            {
                Resource.TLog.Log((int)ELogItem.Error, sql);
                Resource.TLog.Log((int)ELogItem.Exception, e.ToString());
                RollbackTrans(trans, e);
            }
        }

        public void Delete(FbTransaction trans = null)
        {
            string sql = $" delete from TB_CONDITION_RATEDPARAM where fk_noteno={NoteNo} ";

            SetTrans(trans);

            try
            {
                BeginTrans(trans);
                command.CommandText = sql;
                command.ExecuteNonQuery();
                CommitTrans(trans);
            }
            catch (Exception e)
            {
                Resource.TLog.Log((int)ELogItem.Error, sql);
                Resource.TLog.Log((int)ELogItem.Exception, e.ToString());
                RollbackTrans(trans, e);
            }
        }

        public void Fetch(int index = 0, int tableNo = 0)
        {
            if (index < GetRowCount(tableNo))
            {
                Fetch(dataSet.Tables[tableNo].Rows[index]);
            }
            else
            {
                RecNo = 0;
                NoteNo = 0;
                PageNo = EConditionRated.Total;
                Mode = ETestMode.Cooling;
                Capacity = 0;
                Power = 0;
                EER_COP = 0;
                Volt = 0;
                Amp = 0;
                Freq = "";
                PM_IDU = 0;
                PM_ODU = 0;
                Phase = EWT330Wiring.P3W4;
            }
        }

        public void Fetch(DataRow row)
        {
            RecNo = Convert.ToInt32(row["pk_recno"]);
            NoteNo = Convert.ToInt32(row["fk_noteno"]);
            PageNo = (EConditionRated)Convert.ToInt32(row["pageno"]);
            Mode = (ETestMode)Convert.ToInt32(row["mode"]);
            Capacity = Convert.ToSingle(row["capacity"]);
            Power = Convert.ToSingle(row["power"]);
            EER_COP = Convert.ToSingle(row["eer_cop"]);
            Volt = Convert.ToSingle(row["volt"]);
            Amp = Convert.ToSingle(row["amp"]);
            Freq = Convert.ToString(row["freq"]);
            PM_IDU = Convert.ToInt32(row["pm_idu"]);
            PM_ODU = Convert.ToInt32(row["pm_odu"]);
            Phase = (EWT330Wiring)Convert.ToInt32(row["phase"]);
        }
    }

    public class ThermoPressParamDataSet : UlDataSet
    {
        public ThermoPressParamDataSet(FbConnection connect, FbCommand command, FbDataAdapter adapter)
            : base(connect, command, adapter)
        {
        }

        public int RecNo { get; set; }
        public int NoteNo { get; set; }
        public int ChType { get; set; }
        public int ChNo { get; set; }
        public string Name { get; set; }

        public void Select(int noteno, int chType)
        {
            SetTrans(null);
            command.CommandText = " select * from TB_CONDITION_THERMOPRESSPARAM "
                + $" where fk_noteno={noteno} and chtype={chType} order by chno asc ";
            dataSet.Clear();
            dataAdapter.Fill(dataSet);
        }

        public void Insert(FbTransaction trans = null)
        {
            string sql = $" insert into TB_CONDITION_THERMOPRESSPARAM values "
                + $" ({RecNo}, {NoteNo}, {ChType}, {ChNo}, '{Name}') ";

            SetTrans(trans);

            try
            {
                BeginTrans(trans);
                command.CommandText = sql;
                command.ExecuteNonQuery();
                CommitTrans(trans);
            }
            catch (Exception e)
            {
                Resource.TLog.Log((int)ELogItem.Error, sql);
                Resource.TLog.Log((int)ELogItem.Exception, e.ToString());
                RollbackTrans(trans, e);
            }
        }

        public void Update(FbTransaction trans = null)
        {
            string sql = $" update TB_CONDITION_THERMOPRESSPARAM "
                + $" set name='{Name}' where pk_recno={RecNo} ";

            SetTrans(trans);

            try
            {
                BeginTrans(trans);
                command.CommandText = sql;
                command.ExecuteNonQuery();
                CommitTrans(trans);
            }
            catch (Exception e)
            {
                Resource.TLog.Log((int)ELogItem.Error, sql);
                Resource.TLog.Log((int)ELogItem.Exception, e.ToString());
                RollbackTrans(trans, e);
            }
        }

        public void Delete(FbTransaction trans = null)
        {
            string sql = $" delete from TB_CONDITION_THERMOPRESSPARAM where fk_noteno={NoteNo} ";

            SetTrans(trans);

            try
            {
                BeginTrans(trans);
                command.CommandText = sql;
                command.ExecuteNonQuery();
                CommitTrans(trans);
            }
            catch (Exception e)
            {
                Resource.TLog.Log((int)ELogItem.Error, sql);
                Resource.TLog.Log((int)ELogItem.Exception, e.ToString());
                RollbackTrans(trans, e);
            }
        }

        public void Fetch(int index = 0, int tableNo = 0)
        {
            if (index < GetRowCount(tableNo))
            {
                Fetch(dataSet.Tables[tableNo].Rows[index]);
            }
            else
            {
                RecNo = 0;
                NoteNo = 0;
                ChType = 0;
                ChNo = 0;
                Name = "";
            }
        }

        public void Fetch(DataRow row)
        {
            RecNo = Convert.ToInt32(row["pk_recno"]);
            NoteNo = Convert.ToInt32(row["fk_noteno"]);
            ChType = Convert.ToInt32(row["chtype"]);
            ChNo = Convert.ToInt32(row["chno"]);
            Name = Convert.ToString(row["name"]);
        }
    }

    public class ScheduleParamDataSet : UlDataSet
    {
        public ScheduleParamDataSet(FbConnection connect, FbCommand command, FbDataAdapter adapter)
            : base(connect, command, adapter)
        {
        }

        public int RecNo { get; set; }
        public int ParamNo { get; set; }
        public string Standard { get; set; }
        public string Name { get; set; }
        public int NoOfSteady { get; set; }
        public int Preparation { get; set; }
        public int Judgement { get; set; }
        public int Repeat { get; set; }

        // Indoor 1
        public EIndoorUse ID1Use { get; set; }
        public EIndoorMode ID1Mode1 { get; set; }
        public EIndoorDuct ID1Duct1 { get; set; }
        public EIndoorMode ID1Mode2 { get; set; }
        public EIndoorDuct ID1Duct2 { get; set; }
        public float ID1EdbSetup { get; set; }
        public float ID1EdbAvg { get; set; }
        public float ID1EdbDev { get; set; }
        public float ID1EwbSetup { get; set; }
        public float ID1EwbAvg { get; set; }
        public float ID1EwbDev { get; set; }
        public float ID1Ldb1Dev { get; set; }
        public float ID1Lwb1Dev { get; set; }
        public float ID1Af1Dev { get; set; }
        public float ID1Ldb2Dev { get; set; }
        public float ID1Lwb2Dev { get; set; }
        public float ID1Af2Dev { get; set; }
        public float ID1Cdp1Setup { get; set; }
        public float ID1Cdp1Avg { get; set; }
        public float ID1Cdp1Dev { get; set; }
        public float ID1Cdp2Setup { get; set; }
        public float ID1Cdp2Avg { get; set; }
        public float ID1Cdp2Dev { get; set; }

        // Indoor 2
        public EIndoorUse ID2Use { get; set; }
        public EIndoorMode ID2Mode1 { get; set; }
        public EIndoorDuct ID2Duct1 { get; set; }
        public EIndoorMode ID2Mode2 { get; set; }
        public EIndoorDuct ID2Duct2 { get; set; }
        public float ID2EdbSetup { get; set; }
        public float ID2EdbAvg { get; set; }
        public float ID2EdbDev { get; set; }
        public float ID2EwbSetup { get; set; }
        public float ID2EwbAvg { get; set; }
        public float ID2EwbDev { get; set; }
        public float ID2Ldb1Dev { get; set; }
        public float ID2Lwb1Dev { get; set; }
        public float ID2Af1Dev { get; set; }
        public float ID2Ldb2Dev { get; set; }
        public float ID2Lwb2Dev { get; set; }
        public float ID2Af2Dev { get; set; }
        public float ID2Cdp1Setup { get; set; }
        public float ID2Cdp1Avg { get; set; }
        public float ID2Cdp1Dev { get; set; }
        public float ID2Cdp2Setup { get; set; }
        public float ID2Cdp2Avg { get; set; }
        public float ID2Cdp2Dev { get; set; }

        // Outdoor
        public EOutdoorUse ODUse { get; set; }
        public EEtcUse ODDp { get; set; }
        public EEtcUse ODAutoVolt { get; set; }
        public float ODEdbSetup { get; set; }
        public float ODEdbAvg { get; set; }
        public float ODEdbDev { get; set; }
        public float ODEwbSetup { get; set; }
        public float ODEwbAvg { get; set; }
        public float ODEwbDev { get; set; }
        public float ODEdpSetup { get; set; }
        public float ODEdpAvg { get; set; }
        public float ODEdpDev { get; set; }
        public float ODVolt1Setup { get; set; }
        public float ODVolt1Avg { get; set; }
        public float ODVolt1Dev { get; set; }
        public float ODVolt2Setup { get; set; }
        public float ODVolt2Avg { get; set; }
        public float ODVolt2Dev { get; set; }

        public void Select(int paramNo = -1)
        {
            SetTrans(null);
            command.CommandText =
                  $" select * from TB_SCHEDULEPARAM "
                + $" where fk_paramno={paramNo} "
                + $" order by standard, name asc ";
            dataSet.Clear();
            dataAdapter.Fill(dataSet);
        }

        public void SelectOrderByRecNo(int paramNo = -1)
        {
            SetTrans(null);
            command.CommandText =
                  $" select * from TB_SCHEDULEPARAM "
                + $" where fk_paramno={paramNo} "
                + $" order by pk_recno asc ";
            dataSet.Clear();
            dataAdapter.Fill(dataSet);
        }

        public void Select(string standard, int paramNo = -1)
        {
            SetTrans(null);
            command.CommandText = 
                  $" select * from TB_SCHEDULEPARAM "
                + $" where fk_paramno={paramNo} and standard like '{standard}%' "
                + $" order by name asc ";
            dataSet.Clear();
            dataAdapter.Fill(dataSet);
        }

        public void Insert(FbTransaction trans = null)
        {
            string sql = 
                  $" insert into TB_SCHEDULEPARAM values ({RecNo}, {ParamNo}, "
                + $" '{Standard}', '{Name}', {NoOfSteady}, {Preparation}, {Judgement}, {Repeat}, "
                + $" {(int)ID1Use}, {(int)ID1Mode1}, {(int)ID1Duct1}, {(int)ID1Mode2}, {(int)ID1Duct2}, "
                + $" {ID1EdbSetup}, {ID1EdbAvg}, {ID1EdbDev}, {ID1EwbSetup}, {ID1EwbAvg}, {ID1EwbDev}, "
                + $" {ID1Ldb1Dev}, {ID1Lwb1Dev}, {ID1Af1Dev}, {ID1Ldb2Dev}, {ID1Lwb2Dev}, {ID1Af2Dev}, "
                + $" {ID1Cdp1Setup}, {ID1Cdp1Avg}, {ID1Cdp1Dev}, {ID1Cdp2Setup}, {ID1Cdp2Avg}, {ID1Cdp2Dev}, "
                + $" {(int)ID2Use}, {(int)ID2Mode1}, {(int)ID2Duct1}, {(int)ID2Mode2}, {(int)ID2Duct2}, "
                + $" {ID2EdbSetup}, {ID2EdbAvg}, {ID2EdbDev}, {ID2EwbSetup}, {ID2EwbAvg}, {ID2EwbDev}, "
                + $" {ID2Ldb1Dev}, {ID2Lwb1Dev}, {ID2Af1Dev}, {ID2Ldb2Dev}, {ID2Lwb2Dev}, {ID2Af2Dev}, "
                + $" {ID2Cdp1Setup}, {ID2Cdp1Avg}, {ID2Cdp1Dev}, {ID2Cdp2Setup}, {ID2Cdp2Avg}, {ID2Cdp2Dev}, "
                + $" {(int)ODUse}, {(int)ODDp}, {(int)ODAutoVolt}, {ODEdbSetup}, {ODEdbAvg}, {ODEdbDev}, "
                + $" {ODEwbSetup}, {ODEwbAvg}, {ODEwbDev}, {ODEdpSetup}, {ODEdpAvg}, {ODEdpDev}, "
                + $" {ODVolt1Setup}, {ODVolt1Avg}, {ODVolt1Dev}, {ODVolt2Setup}, {ODVolt2Avg}, {ODVolt2Dev}) ";

            SetTrans(trans);

            try
            {
                BeginTrans(trans);
                command.CommandText = sql;
                command.ExecuteNonQuery();
                CommitTrans(trans);
            }
            catch (Exception e)
            {
                Resource.TLog.Log((int)ELogItem.Error, sql);
                Resource.TLog.Log((int)ELogItem.Exception, e.ToString());
                RollbackTrans(trans, e);
            }
        }

        public void Update(FbTransaction trans = null)
        {
            string sql = $" update TB_SCHEDULEPARAM set "
                + $" standard='{Standard}', name='{Name}', noofsteady={NoOfSteady}, "
                + $" preparation={Preparation}, judgement={Judgement}, repeat={Repeat}, "
                + $" id1use={(int)ID1Use}, id1mode1={(int)ID1Mode1}, id1duct1={(int)ID1Duct1}, "
                + $" id1mode2={(int)ID1Mode2}, id1duct2={(int)ID1Duct2}, "
                + $" id1edbsetup={ID1EdbSetup}, id1edbavg={ID1EdbAvg}, id1edbdev={ID1EdbDev}, "
                + $" id1ewbsetup={ID1EwbSetup}, id1ewbavg={ID1EwbAvg}, id1ewbdev={ID1EwbDev}, "
                + $" id1ldb1dev={ID1Ldb1Dev}, id1lwb1dev={ID1Lwb1Dev}, id1af1dev={ID1Af1Dev}, "
                + $" id1ldb2dev={ID1Ldb2Dev}, id1lwb2dev={ID1Lwb2Dev}, id1af2dev={ID1Af2Dev}, "
                + $" id1cdp1setup={ID1Cdp1Setup}, id1cdp1avg={ID1Cdp1Avg}, id1cdp1dev={ID1Cdp1Dev}, "
                + $" id1cdp2setup={ID1Cdp2Setup}, id1cdp2avg={ID1Cdp2Avg}, id1cdp2dev={ID1Cdp2Dev}, "
                + $" id2use={(int)ID2Use}, id2mode1={(int)ID2Mode1}, id2duct1={(int)ID2Duct1}, "
                + $" id2mode2={(int)ID2Mode2}, id2duct2={(int)ID2Duct2}, "
                + $" id2edbsetup={ID2EdbSetup}, id2edbavg={ID2EdbAvg}, id2edbdev={ID2EdbDev}, "
                + $" id2ewbsetup={ID2EwbSetup}, id2ewbavg={ID2EwbAvg}, id2ewbdev={ID2EwbDev}, "
                + $" id2ldb1dev={ID2Ldb1Dev}, id2lwb1dev={ID2Lwb1Dev}, id2af1dev={ID2Af1Dev}, "
                + $" id2ldb2dev={ID2Ldb2Dev}, id2lwb2dev={ID2Lwb2Dev}, id2af2dev={ID2Af2Dev}, "
                + $" id2cdp1setup={ID2Cdp1Setup}, id2cdp1avg={ID2Cdp1Avg}, id2cdp1dev={ID2Cdp1Dev}, "
                + $" id2cdp2setup={ID2Cdp2Setup}, id2cdp2avg={ID2Cdp2Avg}, id2cdp2dev={ID2Cdp2Dev}, "
                + $" oduse={(int)ODUse}, oddp={(int)ODDp}, odautovolt={(int)ODAutoVolt}, "
                + $" odedbsetup={ODEdbSetup}, odedbavg={ODEdbAvg}, odedbdev={ODEdbDev}, "
                + $" odewbsetup={ODEwbSetup}, odewbavg={ODEwbAvg}, odewbdev={ODEwbDev}, "
                + $" odedpsetup={ODEdpSetup}, odedpavg={ODEdpAvg}, odedpdev={ODEdpDev}, "
                + $" odvolt1setup={ODVolt1Setup}, odvolt1avg={ODVolt1Avg}, odvolt1dev={ODVolt1Dev}, "
                + $" odvolt2setup={ODVolt2Setup}, odvolt2avg={ODVolt2Avg}, odvolt2dev={ODVolt2Dev} "
                + $" where pk_recno={RecNo} ";

            SetTrans(trans);

            try
            {
                BeginTrans(trans);
                command.CommandText = sql;
                command.ExecuteNonQuery();
                CommitTrans(trans);
            }
            catch (Exception e)
            {
                Resource.TLog.Log((int)ELogItem.Error, sql);
                Resource.TLog.Log((int)ELogItem.Exception, e.ToString());
                RollbackTrans(trans, e);
            }
        }

        public void Delete(FbTransaction trans = null)
        {
            string sql = $"delete from TB_SCHEDULEPARAM where pk_recno={RecNo}";

            SetTrans(trans);

            try
            {
                BeginTrans(trans);
                command.CommandText = sql;
                command.ExecuteNonQuery();
                CommitTrans(trans);
            }
            catch (Exception e)
            {
                Resource.TLog.Log((int)ELogItem.Error, sql);
                Resource.TLog.Log((int)ELogItem.Exception, e.ToString());
                RollbackTrans(trans, e);
            }
        }

        public void Delete(int paramNo, FbTransaction trans = null)
        {
            string sql = $" delete from TB_SCHEDULEPARAM where fk_paramno={paramNo} ";

            SetTrans(trans);

            try
            {
                BeginTrans(trans);
                command.CommandText = sql;
                command.ExecuteNonQuery();
                CommitTrans(trans);
            }
            catch (Exception e)
            {
                Resource.TLog.Log((int)ELogItem.Error, sql);
                Resource.TLog.Log((int)ELogItem.Exception, e.ToString());
                RollbackTrans(trans, e);
            }
        }

        public void Fetch(int index = 0, int tableNo = 0)
        {
            if (index < GetRowCount(tableNo))
            {
                Fetch(dataSet.Tables[tableNo].Rows[index]);
            }
            else
            {
                RecNo = 0;
                ParamNo = 0;
                Standard = "";
                Name = "";
                NoOfSteady = 0;
                Preparation = 0;
                Judgement = 0;
                Repeat = 0;

                ID1Use = EIndoorUse.NotUsed;
                ID1Mode1 = EIndoorMode.NotUsed;
                ID1Duct1 = EIndoorDuct.NotUsed;
                ID1Mode2 = EIndoorMode.NotUsed;
                ID1Duct2 = EIndoorDuct.NotUsed;
                ID1EdbSetup = 0;
                ID1EdbAvg = 0;
                ID1EdbDev = 0;
                ID1EwbSetup = 0;
                ID1EwbAvg = 0;
                ID1EwbDev = 0;
                ID1Ldb1Dev = 0;
                ID1Lwb1Dev = 0;
                ID1Af1Dev = 0;
                ID1Ldb2Dev = 0;
                ID1Lwb2Dev = 0;
                ID1Af2Dev = 0;
                ID1Cdp1Setup = 0;
                ID1Cdp1Avg = 0;
                ID1Cdp1Dev = 0;
                ID1Cdp2Setup = 0;
                ID1Cdp2Avg = 0;
                ID1Cdp2Dev = 0;

                ID2Use = EIndoorUse.NotUsed;
                ID2Mode1 = EIndoorMode.NotUsed;
                ID2Duct1 = EIndoorDuct.NotUsed;
                ID2Mode2 = EIndoorMode.NotUsed;
                ID2Duct2 = EIndoorDuct.NotUsed;
                ID2EdbSetup = 0;
                ID2EdbAvg = 0;
                ID2EdbDev = 0;
                ID2EwbSetup = 0;
                ID2EwbAvg = 0;
                ID2EwbDev = 0;
                ID2Ldb1Dev = 0;
                ID2Lwb1Dev = 0;
                ID2Af1Dev = 0;
                ID2Ldb2Dev = 0;
                ID2Lwb2Dev = 0;
                ID2Af2Dev = 0;
                ID2Cdp1Setup = 0;
                ID2Cdp1Avg = 0;
                ID2Cdp1Dev = 0;
                ID2Cdp2Setup = 0;
                ID2Cdp2Avg = 0;
                ID2Cdp2Dev = 0;

                ODUse = EOutdoorUse.NotUsed;
                ODDp = EEtcUse.NotUsed;
                ODAutoVolt = EEtcUse.NotUsed;
                ODEdbSetup = 0;
                ODEdbAvg = 0;
                ODEdbDev = 0;
                ODEwbSetup = 0;
                ODEwbAvg = 0;
                ODEwbDev = 0;
                ODEdpSetup = 0;
                ODEdpAvg = 0;
                ODEdpDev = 0;
                ODVolt1Setup = 0;
                ODVolt1Avg = 0;
                ODVolt1Dev = 0;
                ODVolt2Setup = 0;
                ODVolt2Avg = 0;
                ODVolt2Dev = 0;
            }
        }

        public void Fetch(DataRow row)
        {
            RecNo = Convert.ToInt32(row["pk_recno"]);
            ParamNo = Convert.ToInt32(row["fk_paramno"]);
            Standard = Convert.ToString(row["standard"]);
            Name = Convert.ToString(row["name"]);
            NoOfSteady = Convert.ToInt32(row["noofsteady"]);
            Preparation = Convert.ToInt32(row["preparation"]);
            Judgement = Convert.ToInt32(row["judgement"]);
            Repeat = Convert.ToInt32(row["repeat"]);

            ID1Use = (EIndoorUse)Convert.ToInt32(row["id1use"]);
            ID1Mode1 = (EIndoorMode)Convert.ToInt32(row["id1mode1"]);
            ID1Duct1 = (EIndoorDuct)Convert.ToInt32(row["id1duct1"]);
            ID1Mode2 = (EIndoorMode)Convert.ToInt32(row["id1mode2"]);
            ID1Duct2 = (EIndoorDuct)Convert.ToInt32(row["id1duct2"]);
            ID1EdbSetup = Convert.ToSingle(row["id1edbsetup"]);
            ID1EdbAvg = Convert.ToSingle(row["id1edbavg"]);
            ID1EdbDev = Convert.ToSingle(row["id1edbdev"]);
            ID1EwbSetup = Convert.ToSingle(row["id1ewbsetup"]);
            ID1EwbAvg = Convert.ToSingle(row["id1ewbavg"]);
            ID1EwbDev = Convert.ToSingle(row["id1ewbdev"]);
            ID1Ldb1Dev = Convert.ToSingle(row["id1ldb1dev"]);
            ID1Lwb1Dev = Convert.ToSingle(row["id1lwb1dev"]);
            ID1Af1Dev = Convert.ToSingle(row["id1af1dev"]);
            ID1Ldb2Dev = Convert.ToSingle(row["id1ldb2dev"]);
            ID1Lwb2Dev = Convert.ToSingle(row["id1lwb2dev"]);
            ID1Af2Dev = Convert.ToSingle(row["id1af2dev"]);
            ID1Cdp1Setup = Convert.ToSingle(row["id1cdp1setup"]);
            ID1Cdp1Avg = Convert.ToSingle(row["id1cdp1avg"]);
            ID1Cdp1Dev = Convert.ToSingle(row["id1cdp1dev"]);
            ID1Cdp2Setup = Convert.ToSingle(row["id1cdp2setup"]);
            ID1Cdp2Avg = Convert.ToSingle(row["id1cdp2avg"]);
            ID1Cdp2Dev = Convert.ToSingle(row["id1cdp2dev"]);

            ID2Use = (EIndoorUse)Convert.ToInt32(row["id2use"]);
            ID2Mode1 = (EIndoorMode)Convert.ToInt32(row["id2mode1"]);
            ID2Duct1 = (EIndoorDuct)Convert.ToInt32(row["id2duct1"]);
            ID2Mode2 = (EIndoorMode)Convert.ToInt32(row["id2mode2"]);
            ID2Duct2 = (EIndoorDuct)Convert.ToInt32(row["id2duct2"]);
            ID2EdbSetup = Convert.ToSingle(row["id2edbsetup"]);
            ID2EdbAvg = Convert.ToSingle(row["id2edbavg"]);
            ID2EdbDev = Convert.ToSingle(row["id2edbdev"]);
            ID2EwbSetup = Convert.ToSingle(row["id2ewbsetup"]);
            ID2EwbAvg = Convert.ToSingle(row["id2ewbavg"]);
            ID2EwbDev = Convert.ToSingle(row["id2ewbdev"]);
            ID2Ldb1Dev = Convert.ToSingle(row["id2ldb1dev"]);
            ID2Lwb1Dev = Convert.ToSingle(row["id2lwb1dev"]);
            ID2Af1Dev = Convert.ToSingle(row["id2af1dev"]);
            ID2Ldb2Dev = Convert.ToSingle(row["id2ldb2dev"]);
            ID2Lwb2Dev = Convert.ToSingle(row["id2lwb2dev"]);
            ID2Af2Dev = Convert.ToSingle(row["id2af2dev"]);
            ID2Cdp1Setup = Convert.ToSingle(row["id2cdp1setup"]);
            ID2Cdp1Avg = Convert.ToSingle(row["id2cdp1avg"]);
            ID2Cdp1Dev = Convert.ToSingle(row["id2cdp1dev"]);
            ID2Cdp2Setup = Convert.ToSingle(row["id2cdp2setup"]);
            ID2Cdp2Avg = Convert.ToSingle(row["id2cdp2avg"]);
            ID2Cdp2Dev = Convert.ToSingle(row["id2cdp2dev"]);

            ODUse = (EOutdoorUse)Convert.ToInt32(row["oduse"]);
            ODDp = (EEtcUse)Convert.ToInt32(row["oddp"]);
            ODAutoVolt = (EEtcUse)Convert.ToInt32(row["odautovolt"]);
            ODEdbSetup = Convert.ToSingle(row["odedbsetup"]);
            ODEdbAvg = Convert.ToSingle(row["odedbavg"]);
            ODEdbDev = Convert.ToSingle(row["odedbdev"]);
            ODEwbSetup = Convert.ToSingle(row["odewbsetup"]);
            ODEwbAvg = Convert.ToSingle(row["odewbavg"]);
            ODEwbDev = Convert.ToSingle(row["odewbdev"]);
            ODEdpSetup = Convert.ToSingle(row["odedpsetup"]);
            ODEdpAvg = Convert.ToSingle(row["odedpavg"]);
            ODEdpDev = Convert.ToSingle(row["odedpdev"]);
            ODVolt1Setup = Convert.ToSingle(row["odvolt1setup"]);
            ODVolt1Avg = Convert.ToSingle(row["odvolt1avg"]);
            ODVolt1Dev = Convert.ToSingle(row["odvolt1dev"]);
            ODVolt2Setup = Convert.ToSingle(row["odvolt2setup"]);
            ODVolt2Avg = Convert.ToSingle(row["odvolt2avg"]);
            ODVolt2Dev = Convert.ToSingle(row["odvolt2dev"]);
        }
    }

    public class DataBookDataSet : UlDataSet
    {
        public DataBookDataSet(FbConnection connect, FbCommand command, FbDataAdapter adapter)
            : base(connect, command, adapter)
        {
            Condition = new DataBookCondition();
        }

        public Int64 RecNo { get; set; }
        public int UserNo { get; set; }
        public string BeginTime { get; set; }
        public string EndTime { get; set; }
        public string ElapsedTime { get; set; }
        public int TestLine { get; set; }
        public int IntegCount { get; set; }
        public int IntegTime { get; set; }
        public int ScanTime { get; set; }
        public string Company { get; set; }
        public string TestName { get; set; }
        public string TestNo { get; set; }
        public string Observer { get; set; }
        public string Maker { get; set; }
        public string Model1 { get; set; }
        public string Serial1 { get; set; }
        public string Model2 { get; set; }
        public string Serial2 { get; set; }
        public string Model3 { get; set; }
        public string Serial3 { get; set; }
        public string ExpDevice { get; set; }
        public string Refrige { get; set; }
        public string RefCharge { get; set; }
        public string Capacity { get; set; }
        public string PowerInput { get; set; }
        public string EER_COP { get; set; }
        public string PowerSource { get; set; }
        public string TotalCapacity { get; set; }
        public string TotalPower { get; set; }
        public string TotalEER_COP { get; set; }
        public string Memo { get; set; }
        public ETestState State { get; set; }

        public DataBookCondition Condition { get; private set; }

        public void Select()
        {
            string sql
                = " select t1.*, t2.name as username from TB_DATABOOK t1 "
                + " join TB_USER t2 on t2.pk_recno=t1.fk_userno "
                + " where t1.pk_recno>=0 ";

            if (Condition.TimeUsed == true)
            {
                if (Condition.FromTime.ToString("yyyy-MM-dd") == Condition.ToTime.ToString("yyyy-MM-dd"))
                {
                    sql += $" and t1.begintime like '{Condition.FromTime.ToString("yyyy-MM-dd")}%%' ";
                }
                else
                {
                    sql += $" and (t1.begintime>='{Condition.FromTime.ToString("yyyy-MM-dd")} 00:00:00' ";
                    sql += $" and t1.begintime<='{Condition.ToTime.ToString("yyyy-MM-dd")} 23:59:59') ";
                }
            }

            if (Condition.Line > 0)
            {
                sql += $" and t1.testline={Condition.Line - 1} ";
            }
            
            if (Condition.State > 0)
            {
                ETestState state = (Condition.State == 1) ? ETestState.Done : ETestState.Stopped;

                sql += $" and t1.state={(int)state} ";
            }
            else
            {
                sql += $" and t1.state<>0 ";
            }

            SetTrans(null);
            command.CommandText = sql;
            dataSet.Clear();
            dataAdapter.Fill(dataSet);
        }

        public void Select(Int64 recNo)
        {
            string sql
                = " select t1.*, t2.name as username from TB_DATABOOK t1 "
                + " join TB_USER t2 on t2.pk_recno=t1.fk_userno "
                + $" where t1.pk_recno={recNo} ";

            SetTrans(null);
            command.CommandText = sql;
            dataSet.Clear();
            dataAdapter.Fill(dataSet);
        }

        public void Insert(FbTransaction trans = null)
        {
            string sql = $" insert into TB_DATABOOK values ({RecNo}, {UserNo}, '{BeginTime}', '{EndTime}', '{ElapsedTime}', {TestLine}, "
                + $" {IntegCount}, {IntegTime}, {ScanTime}, '{Company}', '{TestName}', '{TestNo}', '{Observer}', '{Maker}', '{Model1}', "
                + $" '{Serial1}', '{Model2}', '{Serial2}', '{Model3}', '{Serial3}', '{ExpDevice}', '{Refrige}', '{RefCharge}', '{Capacity}', "
                + $" '{PowerInput}', '{EER_COP}', '{PowerSource}', '{TotalCapacity}', '{TotalPower}', '{TotalEER_COP}', '{Memo}', {(int)State}) ";

            SetTrans(trans);

            try
            {
                BeginTrans(trans);
                command.CommandText = sql;
                command.ExecuteNonQuery();
                CommitTrans(trans);
            }
            catch (Exception e)
            {
                Resource.TLog.Log((int)ELogItem.Error, sql);
                Resource.TLog.Log((int)ELogItem.Exception, e.ToString());
                RollbackTrans(trans, e);
            }
        }

        //public void Update(FbTransaction trans = null)
        //{
        //    string sql = $" update TB_DATABOOK set "
        //        + $" fk_userno={UserNo}, begintime='{BeginTime}', endtime='{EndTime}', testline={TestLine}, "
        //        + $" integcount={IntegCount}, integtime={IntegTime}, scantime={ScanTime}, company='{Company}', "
        //        + $" testname='{TestName}', testno='{TestNo}', observer='{Observer}', maker='{Maker}', "
        //        + $" model1='{Model1}', serial1='{Serial1}', model2='{Model2}', serial2='{Serial2}', "
        //        + $" model3='{Model3}', serial3='{Serial3}', expdevice='{ExpDevice}', refrige='{Refrige}', "
        //        + $" refcharge='{RefCharge}', capacity='{Capacity}', powerinput='{PowerInput}', "
        //        + $" eer_cop='{EER_COP}', powersource='{PowerSource}', state={(int)State} "
        //        + $" where pk_recno={RecNo} ";

        //    SetTrans(trans);

        //    try
        //    {
        //        BeginTrans(trans);
        //        command.CommandText = sql;
        //        command.ExecuteNonQuery();
        //        CommitTrans(trans);
        //    }
        //    catch (Exception e)
        //    {
        //        Resource.TLog.Log((int)ELogItem.Error, sql);
        //        Resource.TLog.Log((int)ELogItem.Exception, e.ToString());
        //        RollbackTrans(trans, e);
        //    }
        //}

        public void Update(FbTransaction trans = null)
        {
            string sql
                = $" update TB_DATABOOK set endtime='{EndTime}', elapsedtime='{ElapsedTime}', totalcapacity='{TotalCapacity}', "
                + $" totalpower='{TotalPower}', totaleer_cop='{TotalEER_COP}', state={(int)State} "
                + $" where pk_recno={RecNo} ";

            SetTrans(trans);

            try
            {
                BeginTrans(trans);
                command.CommandText = sql;
                command.ExecuteNonQuery();
                CommitTrans(trans);
            }
            catch (Exception e)
            {
                Resource.TLog.Log((int)ELogItem.Error, sql);
                Resource.TLog.Log((int)ELogItem.Exception, e.ToString());
                RollbackTrans(trans, e);
            }
        }

        public void Update(ETestState state, FbTransaction trans = null)
        {
            string sql 
                = $" update TB_DATABOOK set state={(int)state} "
                + $" where pk_recno={RecNo} ";

            SetTrans(trans);

            try
            {
                BeginTrans(trans);
                command.CommandText = sql;
                command.ExecuteNonQuery();
                CommitTrans(trans);
            }
            catch (Exception e)
            {
                Resource.TLog.Log((int)ELogItem.Error, sql);
                Resource.TLog.Log((int)ELogItem.Exception, e.ToString());
                RollbackTrans(trans, e);
            }
        }

        public void Delete(FbTransaction trans = null)
        {
            string sql = $" delete from TB_DATABOOK where pk_recno={RecNo} ";

            SetTrans(trans);

            try
            {
                BeginTrans(trans);
                command.CommandText = sql;
                command.ExecuteNonQuery();
                CommitTrans(trans);
            }
            catch (Exception e)
            {
                Resource.TLog.Log((int)ELogItem.Error, sql);
                Resource.TLog.Log((int)ELogItem.Exception, e.ToString());
                RollbackTrans(trans, e);
            }
        }

        public void Fetch(int index = 0, int tableNo = 0)
        {
            if (index < GetRowCount(tableNo))
            {
                Fetch(dataSet.Tables[tableNo].Rows[index]);
            }
            else
            {
                RecNo  = 0;
                UserNo  = 0;
                BeginTime  = "";
                EndTime  = "";
                TestLine  = 0;
                IntegCount  = 0;
                IntegTime  = 0;
                ScanTime  = 0;
                Company  = "";
                TestName  = "";
                TestNo  = "";
                Observer  = "";
                Maker  = "";
                Model1  = "";
                Serial1  = "";
                Model2  = "";
                Serial2  = "";
                Model3  = "";
                Serial3  = "";
                ExpDevice  = "";
                Refrige  = "";
                RefCharge  = "";
                Capacity  = "";
                PowerInput  = "";
                EER_COP  = "";
                PowerSource  = "";
                State = ETestState.Testing;
            }
        }

        public void Fetch(DataRow row)
        {
            RecNo = Convert.ToInt64(row["pk_recno"]);
            UserNo = Convert.ToInt32(row["fk_userno"]);
            BeginTime = Convert.ToString(row["begintime"]);
            EndTime = Convert.ToString(row["endtime"]);
            TestLine = Convert.ToInt32(row["testline"]);
            IntegCount = Convert.ToInt32(row["integcount"]);
            IntegTime = Convert.ToInt32(row["integtime"]);
            ScanTime = Convert.ToInt32(row["scantime"]);
            Company = Convert.ToString(row["company"]);
            TestName = Convert.ToString(row["testname"]);
            TestNo = Convert.ToString(row["testno"]);
            Observer = Convert.ToString(row["observer"]);
            Maker = Convert.ToString(row["maker"]);
            Model1 = Convert.ToString(row["model1"]);
            Serial1 = Convert.ToString(row["serial1"]);
            Model2 = Convert.ToString(row["model2"]);
            Serial2 = Convert.ToString(row["serial2"]);
            Model3 = Convert.ToString(row["model3"]);
            Serial3 = Convert.ToString(row["serial3"]);
            ExpDevice = Convert.ToString(row["expdevice"]);
            Refrige = Convert.ToString(row["refrige"]);
            RefCharge = Convert.ToString(row["refcharge"]);
            Capacity = Convert.ToString(row["capacity"]);
            PowerInput = Convert.ToString(row["powerinput"]);
            EER_COP = Convert.ToString(row["eer_cop"]);
            PowerSource = Convert.ToString(row["powersource"]);
            State = (ETestState)Convert.ToInt32(row["state"]);
        }
    }

    public class DataSheetDataSet : UlDataSet
    {
        public DataSheetDataSet(FbConnection connect, FbCommand command, FbDataAdapter adapter)
            : base(connect, command, adapter)
        {
        }

        public Int64 RecNo { get; set; }
        public Int64 DataBookNo { get; set; }
        public string SheetName { get; set; }
        public bool Use { get; set; }
        public string IDTemp { get; set; }
        public string IDState { get; set; }
        public string ODTemp { get; set; }
        public string ODState { get; set; }
        public string NozzleName { get; set; }
        public string NozzleState { get; set; }

        public void Select()
        {
            SetTrans(null);
            command.CommandText = " select * from TB_DATASHEET ";
            dataSet.Clear();
            dataAdapter.Fill(dataSet);
        }

        public void Select(Int64 dataBookNo)
        {
            SetTrans(null);
            command.CommandText = $" select * from TB_DATASHEET where fk_databookno={dataBookNo} ";
            dataSet.Clear();
            dataAdapter.Fill(dataSet);
        }

        public void Insert(FbTransaction trans = null)
        {
            string sql = $" insert into TB_DATASHEET values "
                + $" ({RecNo}, {DataBookNo}, '{SheetName}', {((Use==false) ? 0 : 1)}, '{IDTemp}', "
                + $" '{IDState}', '{ODTemp}', '{ODState}', '{NozzleName}', '{NozzleState}') ";

            SetTrans(trans);

            try
            {
                BeginTrans(trans);
                command.CommandText = sql;
                command.ExecuteNonQuery();
                CommitTrans(trans);
            }
            catch (Exception e)
            {
                Resource.TLog.Log((int)ELogItem.Error, sql);
                Resource.TLog.Log((int)ELogItem.Exception, e.ToString());
                RollbackTrans(trans, e);
            }
        }

        public void Update(FbTransaction trans = null)
        {
            string sql = $" update TB_DATASHEET set fk_databookno={DataBookNo}, "
                + $" sheetname='{SheetName}', use={((Use == false) ? 0 : 1)}, "
                + $" idtemp='{IDTemp}', idstate='{IDState}', odtemp='{ODTemp}', "
                + $" odstate='{ODState}', nozzlename='{NozzleName}', nozzlestate='{NozzleState}' "
                + $" where pk_recno={RecNo} ";

            SetTrans(trans);

            try
            {
                BeginTrans(trans);
                command.CommandText = sql;
                command.ExecuteNonQuery();
                CommitTrans(trans);
            }
            catch (Exception e)
            {
                Resource.TLog.Log((int)ELogItem.Error, sql);
                Resource.TLog.Log((int)ELogItem.Exception, e.ToString());
                RollbackTrans(trans, e);
            }
        }

        public void UpdateTemp(FbTransaction trans = null)
        {
            string sql = $" update TB_DATASHEET set "
                + $" idtemp='{IDTemp}', odtemp='{ODTemp}' "
                + $" where pk_recno={RecNo} ";

            SetTrans(trans);

            try
            {
                BeginTrans(trans);
                command.CommandText = sql;
                command.ExecuteNonQuery();
                CommitTrans(trans);
            }
            catch (Exception e)
            {
                Resource.TLog.Log((int)ELogItem.Error, sql);
                Resource.TLog.Log((int)ELogItem.Exception, e.ToString());
                RollbackTrans(trans, e);
            }
        }

        public void Delete(FbTransaction trans = null)
        {
            string sql = $" delete from TB_DATASHEET where fk_databookno={DataBookNo} ";

            SetTrans(trans);

            try
            {
                BeginTrans(trans);
                command.CommandText = sql;
                command.ExecuteNonQuery();
                CommitTrans(trans);
            }
            catch (Exception e)
            {
                Resource.TLog.Log((int)ELogItem.Error, sql);
                Resource.TLog.Log((int)ELogItem.Exception, e.ToString());
                RollbackTrans(trans, e);
            }
        }

        public void Fetch(int index = 0, int tableNo = 0)
        {
            if (index < GetRowCount(tableNo))
            {
                Fetch(dataSet.Tables[tableNo].Rows[index]);
            }
            else
            {
                RecNo = 0;
                DataBookNo = 0;
                SheetName = "";
                Use = false;
                IDTemp = "";
                IDState = "";
                ODTemp = "";
                ODState = "";
                NozzleName = "";
                NozzleState = "";
            }
        }

        public void Fetch(DataRow row)
        {
            RecNo = Convert.ToInt64(row["pk_recno"]);
            DataBookNo = Convert.ToInt64(row["fk_databookno"]);
            SheetName = Convert.ToString(row["sheetname"]);
            Use = (Convert.ToInt32(row["use"]) == 0) ? false : true;
            IDTemp = Convert.ToString(row["idtemp"]);
            IDState = Convert.ToString(row["idstate"]);
            ODTemp = Convert.ToString(row["odtemp"]);
            ODState = Convert.ToString(row["odstate"]);
            NozzleName = Convert.ToString(row["nozzlename"]);
            NozzleState = Convert.ToString(row["nozzlestate"]);
        }
    }

    public class DataValueUnitDataSet : UlDataSet
    {
        public DataValueUnitDataSet(FbConnection connect, FbCommand command, FbDataAdapter adapter)
            : base(connect, command, adapter)
        {
        }

        public Int64 RecNo { get; set; }
        public Int64 DataSheetNo { get; set; }
        public string ValueName { get; set; }
        public int UnitType { get; set; }
        public int UnitFrom { get; set; }
        public int UnitTo { get; set; }
        public string Format { get; set; }

        public void Select(Int64 sheetNo)
        {
            SetTrans(null);
            command.CommandText = $" select * from TB_DATAVALUEUNIT where fk_datasheetno={sheetNo} ";
            dataSet.Clear();
            dataAdapter.Fill(dataSet);
        }

        public void Insert(FbTransaction trans = null)
        {
            string sql = " insert into TB_DATAVALUEUNIT values "
                + $" ({RecNo}, {DataSheetNo}, '{ValueName}', {UnitType}, {UnitFrom}, {UnitTo}, '{Format}') ";

            SetTrans(trans);

            try
            {
                BeginTrans(trans);
                command.CommandText = sql;
                command.ExecuteNonQuery();
                CommitTrans(trans);
            }
            catch (Exception e)
            {
                Resource.TLog.Log((int)ELogItem.Error, sql);
                Resource.TLog.Log((int)ELogItem.Exception, e.ToString());
                RollbackTrans(trans, e);
            }
        }

        public void Update(FbTransaction trans = null)
        {
        }

        public void Delete(FbTransaction trans = null)
        {
            string sql = $" delete from TB_DATAVALUEUNIT where fk_datasheetno={DataSheetNo} ";

            SetTrans(trans);

            try
            {
                BeginTrans(trans);
                command.CommandText = sql;
                command.ExecuteNonQuery();
                CommitTrans(trans);
            }
            catch (Exception e)
            {
                Resource.TLog.Log((int)ELogItem.Error, sql);
                Resource.TLog.Log((int)ELogItem.Exception, e.ToString());
                RollbackTrans(trans, e);
            }
        }

        public void Fetch(int index = 0, int tableNo = 0)
        {
            if (index < GetRowCount(tableNo))
            {
                Fetch(dataSet.Tables[tableNo].Rows[index]);
            }
            else
            {
                RecNo = 0;
                DataSheetNo = 0;
                ValueName = "";
                UnitType = 0;
                UnitFrom = 0;
                UnitTo = 0;
                Format = "";
            }
        }

        public void Fetch(DataRow row)
        {
            RecNo = Convert.ToInt64(row["pk_recno"]);
            DataSheetNo = Convert.ToInt64(row["fk_datasheetno"]);
            ValueName = Convert.ToString(row["valuename"]);
            UnitType = Convert.ToInt32(row["unittype"]);
            UnitFrom = Convert.ToInt32(row["unitfrom"]);
            UnitTo = Convert.ToInt32(row["unitto"]);
            Format = Convert.ToString(row["format"]);
        }
    }

    public class DataValueDataSet : UlDataSet
    {
        public DataValueDataSet(FbConnection connect, FbCommand command, FbDataAdapter adapter)
            : base(connect, command, adapter)
        {
        }

        public Int64 RecNo { get; set; }
        public Int64 DataValueUnitNo { get; set; }
        public int DataNo { get; set; }
        public float DataValue { get; set; }

        public void Select(Int64 valueUnitNo)
        {
            SetTrans(null);
            command.CommandText = $" select * from TB_DATAVALUE where fk_datavalueunitno={valueUnitNo} ";
            dataSet.Clear();
            dataAdapter.Fill(dataSet);
        }

        public void Insert(FbTransaction trans = null)
        {
            float dataValue = (float.IsNaN(DataValue) == true) ? 0.0f : DataValue;
            string sql = $" insert into TB_DATAVALUE values "
                + $" ({RecNo}, {DataValueUnitNo}, {DataNo}, {dataValue}) ";

            SetTrans(trans);

            try
            {
                BeginTrans(trans);
                command.CommandText = sql;
                command.ExecuteNonQuery();
                CommitTrans(trans);
            }
            catch (Exception e)
            {
                Resource.TLog.Log((int)ELogItem.Error, sql);
                Resource.TLog.Log((int)ELogItem.Exception, e.ToString());
                RollbackTrans(trans, e);
            }
        }

        public void Update(FbTransaction trans = null)
        {
            string sql = $" update TB_DATAVALUE set "
                + $" fk_datavalueunitno={DataValueUnitNo}, {DataNo}, datavalue={DataValue} "
                + $" where pk_recno={RecNo} ";

            SetTrans(trans);

            try
            {
                BeginTrans(trans);
                command.CommandText = sql;
                command.ExecuteNonQuery();
                CommitTrans(trans);
            }
            catch (Exception e)
            {
                Resource.TLog.Log((int)ELogItem.Error, sql);
                Resource.TLog.Log((int)ELogItem.Exception, e.ToString());
                RollbackTrans(trans, e);
            }
        }

        public void Delete(FbTransaction trans = null)
        {
            string sql = $" delete from TB_DATAVALUE where fk_sheetno={DataValueUnitNo} ";

            SetTrans(trans);

            try
            {
                BeginTrans(trans);
                command.CommandText = sql;
                command.ExecuteNonQuery();
                CommitTrans(trans);
            }
            catch (Exception e)
            {
                Resource.TLog.Log((int)ELogItem.Error, sql);
                Resource.TLog.Log((int)ELogItem.Exception, e.ToString());
                RollbackTrans(trans, e);
            }
        }

        public void Fetch(int index = 0, int tableNo = 0)
        {
            if (index < GetRowCount(tableNo))
            {
                Fetch(dataSet.Tables[tableNo].Rows[index]);
            }
            else
            {
                RecNo = 0;
                DataValueUnitNo = 0;
                DataNo = 0;
                DataValue = 0;
            }
        }

        public void Fetch(DataRow row)
        {
            RecNo = Convert.ToInt64(row["pk_recno"]);
            DataValueUnitNo = Convert.ToInt64(row["fk_datavalueunitno"]);
            DataNo = Convert.ToInt32(row["datano"]);
            DataValue = Convert.ToSingle(row["datavalue"]);
        }
    }

    public class DataRawUnitDataSet : UlDataSet
    {
        public DataRawUnitDataSet(FbConnection connect, FbCommand command, FbDataAdapter adapter)
            : base(connect, command, adapter)
        {
        }

        public Int64 RecNo { get; set; }
        public Int64 DataBookNo { get; set; }
        public string DataName { get; set; }
        public int UnitType { get; set; }
        public int UnitFrom { get; set; }
        public int UnitTo { get; set; }

        public void Select(Int64 bookNo)
        {
            SetTrans(null);
            command.CommandText = $" select * from TB_DATARAWUNIT where fk_databookno={bookNo} ";
            dataSet.Clear();
            dataAdapter.Fill(dataSet);
        }

        public void GetDataRawUnit(Int64 bookNo, ConditionMethod method)
        {
            SetTrans(null);
            command.CommandText = $" select distinct unittype, unitto from TB_DATARAWUNIT where fk_databookno={bookNo} ";
            dataSet.Clear();
            dataAdapter.Fill(dataSet);
        }

        public void Insert(FbTransaction trans = null)
        {
            string sql = " insert into TB_DATARAWUNIT values "
                + $" ({RecNo}, {DataBookNo}, '{DataName}', {UnitType}, {UnitFrom}, {UnitTo}) ";

            SetTrans(trans);

            try
            {
                BeginTrans(trans);
                command.CommandText = sql;
                command.ExecuteNonQuery();
                CommitTrans(trans);
            }
            catch (Exception e)
            {
                Resource.TLog.Log((int)ELogItem.Error, sql);
                Resource.TLog.Log((int)ELogItem.Exception, e.ToString());
                RollbackTrans(trans, e);
            }
        }

        public void Update(FbTransaction trans = null)
        {
        }

        public void Delete(FbTransaction trans = null)
        {
            string sql = $" delete from TB_DATARAWUNIT where fk_databookno={DataBookNo} ";

            SetTrans(trans);

            try
            {
                BeginTrans(trans);
                command.CommandText = sql;
                command.ExecuteNonQuery();
                CommitTrans(trans);
            }
            catch (Exception e)
            {
                Resource.TLog.Log((int)ELogItem.Error, sql);
                Resource.TLog.Log((int)ELogItem.Exception, e.ToString());
                RollbackTrans(trans, e);
            }
        }

        public void Fetch(int index = 0, int tableNo = 0)
        {
            if (index < GetRowCount(tableNo))
            {
                Fetch(dataSet.Tables[tableNo].Rows[index]);
            }
            else
            {
                RecNo = 0;
                DataBookNo = 0;
                DataName = "";
                UnitType = 0;
                UnitFrom = 0;
                UnitTo = 0;
            }
        }

        public void Fetch(DataRow row)
        {
            RecNo = Convert.ToInt64(row["pk_recno"]);
            DataBookNo = Convert.ToInt64(row["fk_databookno"]);
            DataName = Convert.ToString(row["DataName"]);
            UnitType = Convert.ToInt32(row["unittype"]);
            UnitFrom = Convert.ToInt32(row["unitfrom"]);
            UnitTo = Convert.ToInt32(row["unitto"]);
        }
    }

    public class DataRawDataSet : UlDataSet
    {
        public DataRawDataSet(FbConnection connect, FbCommand command, FbDataAdapter adapter)
            : base(connect, command, adapter)
        {
        }

        public Int64 RecNo { get; set; }
        public Int64 DataRawUnitNo { get; set; }
        public string RegTime { get; set; }
        public int ScanTime { get; set; }
        public float[] DataRaw { get; set; }

        public void Select()
        {
            SetTrans(null);
            command.CommandText = " select * from TB_DATARAW ";
            dataSet.Clear();
            dataAdapter.Fill(dataSet);
        }

        public void Select(Int64 unitNo)
        {
            SetTrans(null);
            command.CommandText = $" select * from TB_DATARAW where fk_datarawunitno={unitNo} ";
            dataSet.Clear();
            dataAdapter.Fill(dataSet);
        }

        public void Insert(FbTransaction trans = null)
        {
            string sql = " insert into TB_DATARAW values "
                + $" ({RecNo}, {DataRawUnitNo}, '{RegTime}', {ScanTime}, @dataraw) ";

            byte[] byData = new byte[DataRaw.Length * sizeof(float)];
            Buffer.BlockCopy(DataRaw, 0, byData, 0, byData.Length);

            SetTrans(trans);

            try
            {
                BeginTrans(trans);
                command.CommandText = sql;

                command.Parameters.Clear();
                command.Parameters.Add("@dataraw", FbDbType.Binary);
                command.Parameters["@dataraw"].Value = byData;

                command.ExecuteNonQuery();
                CommitTrans(trans);
            }
            catch (Exception e)
            {
                Resource.TLog.Log((int)ELogItem.Error, sql);
                Resource.TLog.Log((int)ELogItem.Exception, e.ToString());
                RollbackTrans(trans, e);
            }
        }

        public void Update(FbTransaction trans = null)
        {
            string sql = $" update TB_DATARAW set "
                + $" fk_databookno={DataRawUnitNo}, regtime='{RegTime}', "
                + $" scantime={ScanTime}, dataraw=@dataraw "
                + $" where pk_recno={RecNo} ";

            byte[] byData = new byte[DataRaw.Length * sizeof(float)];
            Buffer.BlockCopy(DataRaw, 0, byData, 0, byData.Length);

            SetTrans(trans);

            try
            {
                BeginTrans(trans);
                command.CommandText = sql;

                command.Parameters.Clear();
                command.Parameters.Add("@dataraw", FbDbType.Binary);
                command.Parameters["@dataraw"].Value = byData;

                command.ExecuteNonQuery();
                CommitTrans(trans);
            }
            catch (Exception e)
            {
                Resource.TLog.Log((int)ELogItem.Error, sql);
                Resource.TLog.Log((int)ELogItem.Exception, e.ToString());
                RollbackTrans(trans, e);
            }
        }

        public void Delete(FbTransaction trans = null)
        {
            string sql = $" delete from TB_DATARAW where fk_datarawunitno={DataRawUnitNo} ";

            SetTrans(trans);

            try
            {
                BeginTrans(trans);
                command.CommandText = sql;
                command.ExecuteNonQuery();
                CommitTrans(trans);
            }
            catch (Exception e)
            {
                Resource.TLog.Log((int)ELogItem.Error, sql);
                Resource.TLog.Log((int)ELogItem.Exception, e.ToString());
                RollbackTrans(trans, e);
            }
        }

        public void Fetch(int index = 0, int tableNo = 0)
        {
            if (index < GetRowCount(tableNo))
            {
                Fetch(dataSet.Tables[tableNo].Rows[index]);
            }
            else
            {
                RecNo = 0;
                DataRawUnitNo = 0;
                RegTime = "";
                ScanTime = 1;
                DataRaw = null;
            }
        }

        public void Fetch(DataRow row)
        {
            byte[] byData;

            RecNo = Convert.ToInt64(row["pk_recno"]);
            DataRawUnitNo = Convert.ToInt64(row["fk_datarawunitno"]);
            RegTime = Convert.ToString(row["regtime"]);
            ScanTime = Convert.ToInt32(row["scantime"]);
            byData = (byte[])row["dataraw"];

            DataRaw = new float[byData.Length / sizeof(float)];
            Buffer.BlockCopy(byData, 0, DataRaw, 0, byData.Length);
        }
    }

    public class XAxisSettingDataSet : UlDataSet
    {
        public XAxisSettingDataSet(FbConnection connect, FbCommand command, FbDataAdapter adapter)
            : base(connect, command, adapter)
        {
        }

        public int RecNo { get; set; }
        public string Ip { get; set; }
        public int Mode { get; set; }
        public int GraphNo { get; set; }
        public int Minutes { get; set; }

        public void Select()
        {
            string sql = " select * from TB_XAXISSETTING "
                + $" where ip='{Ip}' and mode={Mode} and graphno={GraphNo} ";

            SetTrans(null);
            command.CommandText = sql;
            dataSet.Clear();
            dataAdapter.Fill(dataSet);
        }

        public void Insert(FbTransaction trans = null)
        {
            string sql = " insert into TB_XAXISSETTING values "
                + $" ({RecNo}, '{Ip}', {Mode}, {GraphNo}, {Minutes}) ";

            SetTrans(trans);

            try
            {
                BeginTrans(trans);
                command.CommandText = sql;
                command.Parameters.Clear();
                command.ExecuteNonQuery();
                CommitTrans(trans);
            }
            catch (Exception e)
            {
                Resource.TLog.Log((int)ELogItem.Error, sql);
                Resource.TLog.Log((int)ELogItem.Exception, e.ToString());
                RollbackTrans(trans, e);
            }
        }

        public void Update(FbTransaction trans = null)
        {
            string sql = $" update TB_XAXISSETTING set minutes={Minutes} "
                + $" where pk_recno={RecNo} ";

            SetTrans(trans);

            try
            {
                BeginTrans(trans);
                command.CommandText = sql;
                command.Parameters.Clear();
                command.ExecuteNonQuery();
                CommitTrans(trans);
            }
            catch (Exception e)
            {
                Resource.TLog.Log((int)ELogItem.Error, sql);
                Resource.TLog.Log((int)ELogItem.Exception, e.ToString());
                RollbackTrans(trans, e);
            }
        }

        public void Delete(FbTransaction trans = null)
        {
            string sql = " delete from TB_XAXISSETTING "
                + $" where ip={Ip} and mode={Mode} and graphno={GraphNo} ";

            SetTrans(trans);

            try
            {
                BeginTrans(trans);
                command.CommandText = sql;
                command.ExecuteNonQuery();
                CommitTrans(trans);
            }
            catch (Exception e)
            {
                Resource.TLog.Log((int)ELogItem.Error, sql);
                Resource.TLog.Log((int)ELogItem.Exception, e.ToString());
                RollbackTrans(trans, e);
            }
        }

        public void Fetch(int index = 0, int tableNo = 0)
        {
            if (index < GetRowCount(tableNo))
            {
                Fetch(dataSet.Tables[tableNo].Rows[index]);
            }
            else
            {
                RecNo = 0;
                Ip = "0.0.0.0";
                Mode = 0;
                GraphNo = 0;
                Minutes = 0;
            }
        }

        public void Fetch(DataRow row)
        {
            RecNo = Convert.ToInt32(row["pk_recno"]);
            Ip = Convert.ToString(row["ip"]);
            Mode = Convert.ToInt32(row["mode"]);
            GraphNo = Convert.ToInt32(row["graphno"]);
            Minutes = Convert.ToInt32(row["minutes"]);
        }
    }

    public class YAxisSettingDataSet : UlDataSet
    {
        public YAxisSettingDataSet(FbConnection connect, FbCommand command, FbDataAdapter adapter)
            : base(connect, command, adapter)
        {
        }

        public int RecNo { get; set; }
        public string Ip { get; set; }
        public int Mode { get; set; }
        public int GraphNo { get; set; }
        public bool Checked { get; set; }
        public EAxisAlign Align { get; set; }
        public string Name { get; set; }
        public string Desc { get; set; }
        public string Unit { get; set; }
        public float VisualMin { get; set; }
        public float VisualMax { get; set; }
        public float WholeMin { get; set; }
        public float WholeMax { get; set; }

        public void Select()
        {
            string sql = " select * from TB_YAXISSETTING "
                + $" where ip='{Ip}' and mode={Mode} and graphno={GraphNo} ";

            SetTrans(null);
            command.CommandText = sql;
            dataSet.Clear();
            dataAdapter.Fill(dataSet);
        }

        public void Insert(FbTransaction trans = null)
        {
            int active = (Checked == false) ? 0 : 1;
            string sql = " insert into TB_YAXISSETTING values "
                + $" ({RecNo}, '{Ip}', {Mode}, {GraphNo}, {active}, {(int)Align}, '{Name}', " 
                + $" '{Desc}', @unit, {VisualMin}, {VisualMax}, {WholeMin}, {WholeMax}) ";

            SetTrans(trans);

            try
            {
                BeginTrans(trans);
                command.CommandText = sql;
                command.Parameters.Clear();
                command.Parameters.Add("@unit", FbDbType.VarChar);
                command.Parameters["@unit"].Value = Unit;
                command.ExecuteNonQuery();
                CommitTrans(trans);
            }
            catch (Exception e)
            {
                Resource.TLog.Log((int)ELogItem.Error, sql);
                Resource.TLog.Log((int)ELogItem.Exception, e.ToString());
                RollbackTrans(trans, e);
            }
        }

        public void Update(FbTransaction trans = null)
        {
            int active = (Checked == false) ? 0 : 1;
            string sql = $" update TB_YAXISSETTING set "
                + $" checked={active}, align={(int)Align}, axisname='{Name}', axisdesc='{Desc}', axisunit=@unit, "
                + $" visualmin={VisualMin}, visualmax={VisualMax}, wholemin={WholeMin}, wholemax={WholeMax} "
                + $" where pk_recno={RecNo} ";

            SetTrans(trans);

            try
            {
                BeginTrans(trans);
                command.CommandText = sql;
                command.Parameters.Clear();
                command.Parameters.Add("@unit", FbDbType.VarChar);
                command.Parameters["@unit"].Value = Unit;
                command.ExecuteNonQuery();
                CommitTrans(trans);
            }
            catch (Exception e)
            {
                Resource.TLog.Log((int)ELogItem.Error, sql);
                Resource.TLog.Log((int)ELogItem.Exception, e.ToString());
                RollbackTrans(trans, e);
            }
        }

        public void Delete(FbTransaction trans = null)
        {
            string sql = " delete from TB_YAXISSETTING "
                + $" where ip={Ip} and mode={Mode} and graphno={GraphNo} ";

            SetTrans(trans);

            try
            {
                BeginTrans(trans);
                command.CommandText = sql;
                command.ExecuteNonQuery();
                CommitTrans(trans);
            }
            catch (Exception e)
            {
                Resource.TLog.Log((int)ELogItem.Error, sql);
                Resource.TLog.Log((int)ELogItem.Exception, e.ToString());
                RollbackTrans(trans, e);
            }
        }

        public void Fetch(int index = 0, int tableNo = 0)
        {
            if (index < GetRowCount(tableNo))
            {
                Fetch(dataSet.Tables[tableNo].Rows[index]);
            }
            else
            {
                RecNo = 0;
                Ip = "0.0.0.0";
                Mode = 0;
                GraphNo = 0;
                Checked = false;
                Align = EAxisAlign.Left;
                Name = "";
                Desc = "";
                Unit = "";
                VisualMin = -100;
                VisualMax = 100;
                WholeMin = -100;
                WholeMax = 100;
            }
        }

        public void Fetch(DataRow row)
        {
            RecNo = Convert.ToInt32(row["pk_recno"]);
            Ip = Convert.ToString(row["ip"]);
            Mode = Convert.ToInt32(row["mode"]);
            GraphNo = Convert.ToInt32(row["graphno"]);
            Checked = (Convert.ToInt32(row["checked"]) == 0) ? false : true;
            Align = (EAxisAlign)Convert.ToInt32(row["align"]);
            Name = Convert.ToString(row["axisname"]);
            Desc = Convert.ToString(row["axisdesc"]);
            Unit = Convert.ToString(row["axisunit"]);
            VisualMin = Convert.ToSingle(row["visualmin"]);
            VisualMax = Convert.ToSingle(row["visualmax"]);
            WholeMin = Convert.ToSingle(row["wholemin"]);
            WholeMax = Convert.ToSingle(row["wholemax"]);
        }
    }

    public class SeriesSettingDataSet : UlDataSet
    {
        public SeriesSettingDataSet(FbConnection connect, FbCommand command, FbDataAdapter adapter)
            : base(connect, command, adapter)
        {
        }

        public int RecNo { get; set; }
        public string Ip { get; set; }
        public int Mode { get; set; }
        public int GraphNo { get; set; }
        public bool Checked { get; set; }
        public Color Color { get; set; }
        public string Name { get; set; }
        public string UnitType { get; set; }

        public void Select()
        {
            string sql = " select * from TB_SERIESSETTING "
                + $" where ip='{Ip}' and mode={Mode} and graphno={GraphNo} ";

            SetTrans(null);
            command.CommandText = sql;
            dataSet.Clear();
            dataAdapter.Fill(dataSet);
        }

        public void Insert(FbTransaction trans = null)
        {
            int active = (Checked == false) ? 0 : 1;
            string sql = " insert into TB_SERIESSETTING values "
                + $" ({RecNo}, '{Ip}', {Mode}, {GraphNo}, {active}, {Color.ToArgb()}, '{Name}', '{UnitType}') ";

            SetTrans(trans);

            try
            {
                BeginTrans(trans);
                command.CommandText = sql;
                command.ExecuteNonQuery();
                CommitTrans(trans);
            }
            catch (Exception e)
            {
                Resource.TLog.Log((int)ELogItem.Error, sql);
                Resource.TLog.Log((int)ELogItem.Exception, e.ToString());
                RollbackTrans(trans, e);
            }
        }

        public void Update(FbTransaction trans = null)
        {
            int active = (Checked == false) ? 0 : 1;
            string sql = $" update TB_SERIESSETTING set "
                + $" ip='{Ip}', mode={Mode}, graphno={GraphNo}, checked={active}, "
                + $" color={Color.ToArgb()}, seriesname='{Name}', unittype='{UnitType}' "
                + $" where pk_recno={RecNo} ";

            SetTrans(trans);

            try
            {
                BeginTrans(trans);
                command.CommandText = sql;
                command.ExecuteNonQuery();
                CommitTrans(trans);
            }
            catch (Exception e)
            {
                Resource.TLog.Log((int)ELogItem.Error, sql);
                Resource.TLog.Log((int)ELogItem.Exception, e.ToString());
                RollbackTrans(trans, e);
            }
        }

        public void Delete(FbTransaction trans = null)
        {
            string sql = " delete from TB_SERIESSETTING "
                + $" where ip='{Ip}' and mode={Mode} and graphno={GraphNo} ";

            SetTrans(trans);

            try
            {
                BeginTrans(trans);
                command.CommandText = sql;
                command.ExecuteNonQuery();
                CommitTrans(trans);
            }
            catch (Exception e)
            {
                Resource.TLog.Log((int)ELogItem.Error, sql);
                Resource.TLog.Log((int)ELogItem.Exception, e.ToString());
                RollbackTrans(trans, e);
            }
        }

        public void Fetch(int index = 0, int tableNo = 0)
        {
            if (index < GetRowCount(tableNo))
            {
                Fetch(dataSet.Tables[tableNo].Rows[index]);
            }
            else
            {
                RecNo = 0;
                Ip = "0.0.0.0";
                Mode = 0;
                GraphNo = 0;
                Checked = false;
                Color = Color.White;
                Name = "";
                UnitType = "";
            }
        }

        public void Fetch(DataRow row)
        {
            RecNo = Convert.ToInt32(row["pk_recno"]);
            Ip = Convert.ToString(row["ip"]);
            Mode = Convert.ToInt32(row["mode"]);
            GraphNo = Convert.ToInt32(row["graphno"]);
            Checked = (Convert.ToInt32(row["checked"]) == 0) ? false : true;
            Color = Color.FromArgb(Convert.ToInt32(row["color"]));
            Name = Convert.ToString(row["seriesname"]);
            UnitType = Convert.ToString(row["unittype"]);
        }
    }

    public class DataBookCondition
    {
        public bool TimeUsed { get; set; }
        public DateTime FromTime { get; set; }
        public DateTime ToTime { get; set; }
        public int Line { get; set; }
        public int State { get; set; }

        public DataBookCondition()
        {
            Reset();
        }

        public void Reset()
        {
            TimeUsed = false;
            FromTime = DateTime.Now;
            ToTime = DateTime.Now;
            Line = 0;
            State = 0;
        }
    }
}
<file_sep>﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

using DevExpress.Utils;

using Ulee.Controls;

namespace Hnc.Calorimeter.Server
{
    public partial class CtrlViewClient : UlUserControlEng
    {
        public CtrlViewClient()
        {
            InitializeComponent();
            Initialize();            
        }

        private void Initialize()
        {
            clientGrid.DataSource = Resource.Server.ClientList;

            clientGridView.Appearance.EvenRow.BackColor = Color.FromArgb(244, 244, 236);
            clientGridView.OptionsView.EnableAppearanceEvenRow = true;

            Resource.Server.Listener.ChangedClients += InvalidGrid;
        }

        private void CtrlViewClient_Enter(object sender, EventArgs e)
        {
            clientGridView.RefreshData();
        }

        private void InvalidGrid(object sender, EventArgs e)
        {
            if (this.InvokeRequired == true)
            {
                EventHandler func = new EventHandler(InvalidGrid);
                this.BeginInvoke(func, new object[] { sender, e });
            }
            else
            {
                clientGridView.RefreshData();
            }
        }
    }
}
<file_sep>﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

using DevExpress.Utils;
using DevExpress.XtraGrid.Views.Grid;
using DevExpress.XtraGrid.Views.Grid.ViewInfo;

using Ulee.Controls;
using Ulee.Utils;

namespace Hnc.Calorimeter.Client
{
    public partial class FormYAxesSetting : UlFormEng
    {
        public FormYAxesSetting(List<YAxisRow> axes, int min=0)
        {
            InitializeComponent();

            orgAxes = axes;
            Axes = new List<YAxisRow>();
            SetTimeEdit(min);
            Initialize();
        }

        private bool yAxisChecked;
        private List<YAxisRow> orgAxes;

        public List<YAxisRow> Axes { get; private set; }
        public int Time { get { return (int)timeEdit.Value; } }

        private void Initialize()
        {
            NameValue<EAxisAlign>[] axAlignItems = EnumHelper.GetNameValues<EAxisAlign>();
            yaAlignLookUp.DataSource = axAlignItems;
            yaAlignLookUp.DisplayMember = "Name";
            yaAlignLookUp.ValueMember = "Value";
            yaAlignLookUp.KeyMember = "Value";

            foreach (YAxisRow axis in orgAxes)
            {
                Axes.Add(new YAxisRow(-1, axis.AxisNo, axis.Checked, axis.Align, axis.Name, 
                    axis.Description, axis.Unit, axis.VisualMin, axis.VisualMax, axis.WholeMin, axis.WholeMax));
            }

            yAxesGrid.DataSource = Axes;
            yAxesGrid.UseDirectXPaint = DefaultBoolean.False;
            yAxesGridView.Columns["Checked"].ImageOptions.ImageIndex = 1;
            yAxesGridView.Appearance.EvenRow.BackColor = Color.FromArgb(244, 244, 236);
            yAxesGridView.OptionsView.EnableAppearanceEvenRow = true;
            yAxesGridView.RefreshData();
        }

        private void defaultButton_Click(object sender, EventArgs e)
        {
            if (MessageBox.Show("Would you like to set min and max of all Y-Axes to default values?",
                Resource.Caption, MessageBoxButtons.YesNo, MessageBoxIcon.Question)
                == DialogResult.No)
            {
                return;
            }

            foreach (YAxisRow row in Axes)
            {
                row.WholeMin = -300;
                row.WholeMax = 300;
            }

            yAxesGridView.RefreshData();
        }

        private void yAxesGridView_CustomDrawColumnHeader(object sender, ColumnHeaderCustomDrawEventArgs e)
        {
            if (e.Column == null) return;

            if (e.Column.FieldName == "Checked")
            {
                Image image = (yAxisChecked == true) ? imageList.Images[1] : imageList.Images[0];

                e.DefaultDraw();
                e.Cache.DrawImage(image,
                    new Rectangle(e.Bounds.X + (e.Bounds.Width - image.Size.Width) / 2,
                    e.Bounds.Y + (e.Bounds.Height - image.Size.Height) / 2 - 1,
                    image.Size.Width, image.Size.Height));

                e.Handled = true;
            }
        }

        private void SetTimeEdit(int min)
        {
            bool visible = (min == 0) ? false : true;

            timeEdit.Value = min;
            timeEdit.Visible = visible;
            timeLabel.Visible = visible;
            timeUnitLabel.Visible = visible;
        }

        private void yAxesGridView_MouseDown(object sender, MouseEventArgs e)
        {
            GridView view = sender as GridView;
            GridHitInfo hit = view.CalcHitInfo(e.Location);

            if (hit == null) return;

            switch (hit.HitTest)
            {
                case GridHitTest.Column:
                    if (hit.Column.FieldName == "Checked")
                    {
                        yAxisChecked = !yAxisChecked;
                        SetYAxesCheckColumn(view);
                    }
                    break;
            }
        }

        private void SetYAxesCheckColumn(GridView view)
        {
            if (view.RowCount < 1) return;

            view.BeginUpdate();

            try
            {
                view.Columns["Checked"].ImageOptions.ImageIndex = (yAxisChecked == false) ? 0 : 1;

                for (int i = 0; i < view.RowCount; i++)
                {
                    (view.GetRow(i) as YAxisRow).Checked = yAxisChecked;
                }
            }
            finally
            {
                view.EndUpdate();
            }
        }

        public int GetYAxesCheckedCount()
        {
            int count = 0;

            foreach (YAxisRow row in Axes)
            {
                if (row.Checked == true) count++;
            }

            return count;
        }

        public void RefreshGrid()
        {
            yAxesGridView.RefreshData();
        }
    }
}
<file_sep>﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

using Ulee.Controls;

namespace Hnc.Calorimeter.Client
{
    public partial class CtrlDeviceRecorder : UlUserControlEng
    {
        public List<UlPanel> Views { get; private set; }

        public CtrlDeviceRecorder()
        {
            InitializeComponent();
            Initialize();
        }

        private void Initialize()
        {
            Views = new List<UlPanel>();
            Views.Add(view1Panel);
            Views.Add(view2Panel);
            Views.Add(view3Panel);
            Views.Add(view4Panel);

            for (int i = 0; i < Resource.Client.Devices.Recorder.Rows.Count; i++)
            {
                Views[i].Controls.Add(new CtrlRecorderView(
                    Resource.Client.Devices.Recorder.Rows[i].Name,
                    Resource.Client.Devices.Recorder.Rows[i].Values));
            }
        }

        public override void InvalidControl(object sender, EventArgs e)
        {
            if (this.InvokeRequired == true)
            {
                EventHandler func = new EventHandler(InvalidControl);
                this.BeginInvoke(func, new object[] { sender, e });
            }
            else
            {
                for (int i = 0; i < Resource.Client.Devices.Recorder.Rows.Count; i++)
                {
                    (Views[i].Controls[0] as CtrlRecorderView).RefreshMeter();
                }
            }
        }
    }
}
<file_sep>﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

using DevExpress.XtraEditors;
using DevExpress.XtraEditors.Controls;
using DevExpress.XtraGrid.Columns;
using DevExpress.XtraGrid.Views.BandedGrid;
using DevExpress.XtraGrid.Views.Base;
using DevExpress.XtraGrid.Views.Grid;

using Ulee.Controls;
using Ulee.Utils;

namespace Hnc.Calorimeter.Client
{ 
    public partial class CtrlConfigSchedule : UlUserControlEng
    {
        public CtrlConfigSchedule()
        {
            InitializeComponent();
            Initialize();
        }

        private EDataSetMode mode;
        private GridBookmark bookmark;
        private CalorimeterConfigDatabase db;

        private List<TextEdit> viewEdits;
        private List<TextEdit> id1Edits;
        private List<TextEdit> id2Edits;
        private List<TextEdit> odEdits;
        private List<AdvBandedGridView> viewGrids;
        private List<ChamberParams> chamberParams;

        private void Initialize()
        {
            db = Resource.ConfigDB;
            mode = EDataSetMode.View;
            bookmark = new GridBookmark(scheduleGridView);

            viewEdits = new List<TextEdit>();
            viewEdits.Add(standardEdit);
            viewEdits.Add(nameEdit);
            viewEdits.Add(noSteadyEdit);
            viewEdits.Add(preparationEdit);
            viewEdits.Add(judgementEdit);
            viewEdits.Add(repeatEdit);

            id1Edits = new List<TextEdit>();
            id1Edits.Add(id1EdbSetupEdit);
            id1Edits.Add(id1EdbAvgEdit);
            id1Edits.Add(id1EdbDevEdit);
            id1Edits.Add(id1EwbSetupEdit);
            id1Edits.Add(id1EwbAvgEdit);
            id1Edits.Add(id1EwbDevEdit);
            id1Edits.Add(id1Ldb1DevEdit);
            id1Edits.Add(id1Lwb1DevEdit);
            id1Edits.Add(id1Airflow1DevEdit);
            id1Edits.Add(id1Ldb2DevEdit);
            id1Edits.Add(id1Lwb2DevEdit);
            id1Edits.Add(id1Airflow2DevEdit);
            id1Edits.Add(id1Cdp1SetupEdit);
            id1Edits.Add(id1Cdp1AvgEdit);
            id1Edits.Add(id1Cdp1DevEdit);
            id1Edits.Add(id1Cdp2SetupEdit);
            id1Edits.Add(id1Cdp2AvgEdit);
            id1Edits.Add(id1Cdp2DevEdit);

            id2Edits = new List<TextEdit>();
            id2Edits.Add(id2EdbSetupEdit);
            id2Edits.Add(id2EdbAvgEdit);
            id2Edits.Add(id2EdbDevEdit);
            id2Edits.Add(id2EwbSetupEdit);
            id2Edits.Add(id2EwbAvgEdit);
            id2Edits.Add(id2EwbDevEdit);
            id2Edits.Add(id2Ldb1DevEdit);
            id2Edits.Add(id2Lwb1DevEdit);
            id2Edits.Add(id2Airflow1DevEdit);
            id2Edits.Add(id2Ldb2DevEdit);
            id2Edits.Add(id2Lwb2DevEdit);
            id2Edits.Add(id2Airflow2DevEdit);
            id2Edits.Add(id2Cdp1SetupEdit);
            id2Edits.Add(id2Cdp1AvgEdit);
            id2Edits.Add(id2Cdp1DevEdit);
            id2Edits.Add(id2Cdp2SetupEdit);
            id2Edits.Add(id2Cdp2AvgEdit);
            id2Edits.Add(id2Cdp2DevEdit);

            odEdits = new List<TextEdit>();
            odEdits.Add(odEdbSetupEdit);
            odEdits.Add(odEdbAvgEdit);
            odEdits.Add(odEdbDevEdit);
            odEdits.Add(odEwbSetupEdit);
            odEdits.Add(odEwbAvgEdit);
            odEdits.Add(odEwbDevEdit);
            odEdits.Add(odEdpSetupEdit);
            odEdits.Add(odEdpAvgEdit);
            odEdits.Add(odEdpDevEdit);
            odEdits.Add(odVolt1SetupEdit);
            odEdits.Add(odVolt1AvgEdit);
            odEdits.Add(odVolt1DevEdit);
            odEdits.Add(odVolt2SetupEdit);
            odEdits.Add(odVolt2AvgEdit);
            odEdits.Add(odVolt2DevEdit);

            viewGrids = new List<AdvBandedGridView>();
            viewGrids.Add(indoor1GridView);
            viewGrids.Add(indoor2GridView);
            viewGrids.Add(outdoorGridView);

            chamberParams = new List<ChamberParams>();
            chamberParams.Add(new ChamberParams());

            indoor1Grid.DataSource = chamberParams;
            indoor2Grid.DataSource = chamberParams;
            outdoorGrid.DataSource = chamberParams;

            NameValue<EIndoorUse>[] inUseItems = EnumHelper.GetNameValues<EIndoorUse>();
            indoor1UseLookUp.DataSource = inUseItems;
            indoor1UseLookUp.DisplayMember = "Name";
            indoor1UseLookUp.ValueMember = "Value";
            indoor1UseLookUp.KeyMember = "Value";
            indoor2UseLookUp.DataSource = inUseItems;
            indoor2UseLookUp.DisplayMember = "Name";
            indoor2UseLookUp.ValueMember = "Value";
            indoor2UseLookUp.KeyMember = "Value";

            NameValue<EIndoorMode>[] modeItems = EnumHelper.GetNameValues<EIndoorMode>();
            indoor1ModeLookUp.DataSource = modeItems;
            indoor1ModeLookUp.DisplayMember = "Name";
            indoor1ModeLookUp.ValueMember = "Value";
            indoor1ModeLookUp.KeyMember = "Value";
            indoor2ModeLookUp.DataSource = modeItems;
            indoor2ModeLookUp.DisplayMember = "Name";
            indoor2ModeLookUp.ValueMember = "Value";
            indoor2ModeLookUp.KeyMember = "Value";

            NameValue<EIndoorDuct>[] ductItems = EnumHelper.GetNameValues<EIndoorDuct>();
            indoor1DuctLookUp.DataSource = ductItems;
            indoor1DuctLookUp.DisplayMember = "Name";
            indoor1DuctLookUp.ValueMember = "Value";
            indoor1DuctLookUp.KeyMember = "Value";
            indoor2DuctLookUp.DataSource = ductItems;
            indoor2DuctLookUp.DisplayMember = "Name";
            indoor2DuctLookUp.ValueMember = "Value";
            indoor2DuctLookUp.KeyMember = "Value";

            NameValue<EOutdoorUse>[] outUseItems = EnumHelper.GetNameValues<EOutdoorUse>();
            outdoorUseLookUp.DataSource = outUseItems;
            outdoorUseLookUp.DisplayMember = "Name";
            outdoorUseLookUp.ValueMember = "Value";
            outdoorUseLookUp.KeyMember = "Value";

            NameValue<EEtcUse>[] etcUseItems = EnumHelper.GetNameValues<EEtcUse>();
            outdoorEtcUseLookUp.DataSource = etcUseItems;
            outdoorEtcUseLookUp.DisplayMember = "Name";
            outdoorEtcUseLookUp.ValueMember = "Value";
            outdoorEtcUseLookUp.KeyMember = "Value";

            string format;
            string devFormat;

            foreach (TextEdit edit in id1Edits)
            {
                switch (int.Parse(((string)edit.Tag).ToString()))
                {
                    // Temperature Edit
                    case 0:
                        format = Resource.Variables.Measured["ID11.Entering.DB"].Format;
                        devFormat = ToDevFormat(format);
                        break;

                    // Air Flow Edit
                    case 1:
                        format = Resource.Variables.Calcurated["ID11.Air.Flow.Lev"].Format;
                        devFormat = ToDevFormat(format);
                        break;

                    // Diff. Pressure Edit
                    case 2:
                        format = Resource.Variables.Measured["ID11.Nozzle.Diff.Pressure"].Format;
                        devFormat = ToDevFormat(format);
                        break;

                    default:
                        format = "0.0";
                        devFormat = "f1";
                        break;
                }

                edit.EditValue = 0f;
                edit.Properties.Mask.EditMask = devFormat;
                edit.Properties.DisplayFormat.FormatString = devFormat;
                edit.Properties.EditFormat.FormatString = devFormat;
            }

            foreach (TextEdit edit in id2Edits)
            {
                switch (int.Parse(((string)edit.Tag).ToString()))
                {
                    // Temperature Edit
                    case 0:
                        format = Resource.Variables.Measured["ID21.Entering.DB"].Format;
                        devFormat = ToDevFormat(format);
                        break;

                    // Air Flow Edit
                    case 1:
                        format = Resource.Variables.Calcurated["ID21.Air.Flow.Lev"].Format;
                        devFormat = ToDevFormat(format);
                        break;

                    // Diff. Pressure Edit
                    case 2:
                        format = Resource.Variables.Measured["ID21.Nozzle.Diff.Pressure"].Format;
                        devFormat = ToDevFormat(format);
                        break;

                    default:
                        format = "0.0";
                        devFormat = "f1";
                        break;
                }

                edit.EditValue = 0f;
                edit.Properties.Mask.EditMask = devFormat;
                edit.Properties.DisplayFormat.FormatString = devFormat;
                edit.Properties.EditFormat.FormatString = devFormat;
            }

            foreach (TextEdit edit in odEdits)
            {
                switch (int.Parse(((string)edit.Tag).ToString()))
                {
                    // Temperature Edit
                    case 0:
                        format = Resource.Variables.Measured["OD.Entering.DB"].Format;
                        devFormat = ToDevFormat(format);
                        break;

                    // Air Flow Edit
                    case 1:
                        format = Resource.Variables.Calcurated["ID1.IDU.Voltage"].Format;
                        devFormat = ToDevFormat(format);
                        break;

                    default:
                        format = "0.0";
                        devFormat = "f1";
                        break;
                }

                edit.EditValue = 0f;
                edit.Properties.Mask.EditMask = devFormat;
                edit.Properties.DisplayFormat.FormatString = devFormat;
                edit.Properties.EditFormat.FormatString = devFormat;
            }
        }

        private void CtrlConfigSchedule_Load(object sender, EventArgs e)
        {
            db.Lock();

            try
            {
                ScheduleParamDataSet set = db.ScheduleParamSet;

                set.Select();
                scheduleGrid.DataSource = set.DataSet.Tables[0];
                scheduleGridView.Appearance.EvenRow.BackColor = Color.FromArgb(244, 244, 236);
                scheduleGridView.OptionsView.EnableAppearanceEvenRow = true;
            }
            finally
            {
                db.Unlock();
            }

            SetDataSetMode(EDataSetMode.View);
        }

        public void CtrlConfigSchedule_KeyPress(object sender, KeyPressEventArgs e)
        {
            if (e.KeyChar == (char)Keys.Escape)
            {
                if (cancelButton.Enabled == true)
                {
                    cancelButton_Click(null, null);
                }
            }
        }

        private void indoor1GridView_CellValueChanging(object sender, CellValueChangedEventArgs e)
        {
            AdvBandedGridView view = sender as AdvBandedGridView;

            switch (e.Column.FieldName)
            {
                case "Indoor1Use":
                    if ((EIndoorUse)e.Value == EIndoorUse.NotUsed)
                    {
                        view.SetRowCellValue(e.RowHandle, view.Columns["Indoor1Mode1"], EIndoorMode.NotUsed);
                        view.SetRowCellValue(e.RowHandle, view.Columns["Indoor1Duct1"], EIndoorDuct.NotUsed);
                        view.SetRowCellValue(e.RowHandle, view.Columns["Indoor1Mode2"], EIndoorMode.NotUsed);
                        view.SetRowCellValue(e.RowHandle, view.Columns["Indoor1Duct2"], EIndoorDuct.NotUsed);
                    }
                    break;

                case "Indoor2Use":
                    if ((EIndoorUse)e.Value == EIndoorUse.NotUsed)
                    {
                        view.SetRowCellValue(e.RowHandle, view.Columns["Indoor2Mode1"], EIndoorMode.NotUsed);
                        view.SetRowCellValue(e.RowHandle, view.Columns["Indoor2Duct1"], EIndoorDuct.NotUsed);
                        view.SetRowCellValue(e.RowHandle, view.Columns["Indoor2Mode2"], EIndoorMode.NotUsed);
                        view.SetRowCellValue(e.RowHandle, view.Columns["Indoor2Duct2"], EIndoorDuct.NotUsed);
                    }
                    break;
            }
        }

        private void indoor1GridView_CustomDrawBandHeader(object sender, BandHeaderCustomDrawEventArgs e)
        {
            if (e.Band == null) return;

            if (e.Band.AppearanceHeader.BackColor != Color.Empty)
            {
                e.Info.AllowColoring = true;
            }
        }

        private void indoor1GridView_CustomDrawColumnHeader(object sender, ColumnHeaderCustomDrawEventArgs e)
        {
            if (e.Column == null) return;

            if (e.Column.AppearanceHeader.BackColor != Color.Empty)
            {
                e.Info.AllowColoring = true;
            }
        }

        private void indoor1ModeLookUp_EditValueChanging(object sender, ChangingEventArgs e)
        {
            GridView view = indoor1GridView;
            GridColumn column = view.FocusedColumn;

            if ((EIndoorUse)view.GetRowCellValue(view.FocusedRowHandle,
                view.Columns["Indoor1Use"]) == EIndoorUse.NotUsed)
            {
                e.Cancel = true;
            }
            else
            {
                e.Cancel = false;
            }

            if ((e.Cancel == false) && ((EIndoorMode)e.NewValue == EIndoorMode.NotUsed))
            {
                switch (column.FieldName)
                {
                    case "Indoor1Mode1":
                        view.SetRowCellValue(view.FocusedRowHandle,
                            view.Columns["Indoor1Duct1"], EIndoorDuct.NotUsed);
                        break;

                    case "Indoor1Mode2":
                        view.SetRowCellValue(view.FocusedRowHandle,
                            view.Columns["Indoor1Duct2"], EIndoorDuct.NotUsed);
                        break;
                }
            }
        }

        private void indoor2ModeLookUp_EditValueChanging(object sender, ChangingEventArgs e)
        {
            GridView view = indoor2GridView;
            GridColumn column = view.FocusedColumn;

            if (column.FieldName != "Indoor2Use")
            {
                if ((EIndoorUse)view.GetRowCellValue(view.FocusedRowHandle,
                    view.Columns["Indoor2Use"]) == EIndoorUse.NotUsed)
                {
                    e.Cancel = true;
                }
            }

            if ((e.Cancel == false) && ((EIndoorMode)e.NewValue == EIndoorMode.NotUsed))
            {
                switch (column.FieldName)
                {
                    case "Indoor2Mode1":
                        view.SetRowCellValue(view.FocusedRowHandle,
                            view.Columns["Indoor2Duct1"], EIndoorDuct.NotUsed);
                        break;

                    case "Indoor2Mode2":
                        view.SetRowCellValue(view.FocusedRowHandle,
                            view.Columns["Indoor2Duct2"], EIndoorDuct.NotUsed);
                        break;
                }
            }
        }

        private void indoor1DuctLookUp_EditValueChanging(object sender, ChangingEventArgs e)
        {
            GridColumn column = indoor1GridView.FocusedColumn;

            switch (column.FieldName)
            {
                case "Indoor1Duct1":
                    if ((EIndoorMode)indoor1GridView.GetRowCellValue(
                        indoor1GridView.FocusedRowHandle,
                        indoor1GridView.Columns["Indoor1Mode1"])
                        == EIndoorMode.NotUsed)
                    {
                        e.Cancel = true;
                    }
                    else
                    {
                        e.Cancel = false;
                    }
                    break;

                case "Indoor1Duct2":
                    if ((EIndoorMode)indoor1GridView.GetRowCellValue(
                        indoor1GridView.FocusedRowHandle,
                        indoor1GridView.Columns["Indoor1Mode2"])
                        == EIndoorMode.NotUsed)
                    {
                        e.Cancel = true;
                    }
                    else
                    {
                        e.Cancel = false;
                    }
                    break;
            }
        }

        private void indoor2DuctLookUp_EditValueChanging(object sender, ChangingEventArgs e)
        {
            GridColumn column = indoor2GridView.FocusedColumn;

            switch (column.FieldName)
            {
                case "Indoor2Duct1":
                    if ((EIndoorMode)indoor2GridView.GetRowCellValue(
                        indoor2GridView.FocusedRowHandle,
                        indoor2GridView.Columns["Indoor2Mode1"])
                        == EIndoorMode.NotUsed)
                    {
                        e.Cancel = true;
                    }
                    else
                    {
                        e.Cancel = false;
                    }
                    break;

                case "Indoor2Duct2":
                    if ((EIndoorMode)indoor2GridView.GetRowCellValue(
                        indoor2GridView.FocusedRowHandle,
                        indoor2GridView.Columns["Indoor2Mode2"])
                        == EIndoorMode.NotUsed)
                    {
                        e.Cancel = true;
                    }
                    else
                    {
                        e.Cancel = false;
                    }
                    break;
            }
        }

        private void searchButton_Click(object sender, EventArgs e)
        {
            if (mode != EDataSetMode.View) return;

            db.Lock();

            try
            {
                ScheduleParamDataSet set = db.ScheduleParamSet;
                bookmark.Get();

                if (string.IsNullOrWhiteSpace(searchStandardEdit.Text) == true)
                    set.Select();
                else
                    set.Select(searchStandardEdit.Text.Trim());
            }
            finally
            {
                db.Unlock();
            }

            bookmark.Goto();
            scheduleGrid.Focus();
        }

        private void newButton_Click(object sender, EventArgs e)
        {
            if (mode != EDataSetMode.View) return;

            SetDataSetMode(EDataSetMode.New);
            ResetEdit();
            standardEdit.Focus();
        }

        private void modifyButton_Click(object sender, EventArgs e)
        {
            if (mode != EDataSetMode.View) return;
            if (scheduleGridView.FocusedRowHandle < 0) return;

            SetDataSetMode(EDataSetMode.Modify);

            db.Lock();
            try
            {
                SetEditFromDataSet();
            }
            finally
            {
                db.Unlock();
            }

            standardEdit.Focus();
        }

        private void copyButton_Click(object sender, EventArgs e)
        {
            if (mode != EDataSetMode.View) return;
            if (scheduleGridView.FocusedRowHandle < 0) return;

            if (MessageBox.Show("Would you like to copy a record focused?",
                Resource.Caption, MessageBoxButtons.YesNo, MessageBoxIcon.Question)
                == DialogResult.No)
            {
                return;
            }

            db.Lock();

            try
            {
                ScheduleParamDataSet set = db.ScheduleParamSet;

                standardEdit.Focus();
                SetEditToDataSet();

                set.RecNo = (int)db.GetGenNo("GN_SCHEDULEPARAM");
                set.Insert();
            }
            finally
            {
                db.Unlock();
            }

            searchButton.PerformClick();
        }

        private void deleteButton_Click(object sender, EventArgs e)
        {
            if (mode != EDataSetMode.View) return;
            if (scheduleGridView.FocusedRowHandle < 0) return;

            if (MessageBox.Show("Would you like to delete a record focused?",
                Resource.Caption, MessageBoxButtons.YesNo, MessageBoxIcon.Question)
                == DialogResult.No)
            {
                return;
            }

            db.Lock();
            try
            {
                db.ScheduleParamSet.Delete();
            }
            finally
            {
                db.Unlock();
            }

            searchButton.PerformClick();
        }

        private void saveButton_Click(object sender, EventArgs e)
        {
            standardEdit.Focus();

            string standard = standardEdit.Text.Trim();
            string name = nameEdit.Text.Trim();

            if ((standard == "") || (name == ""))
            {
                MessageBox.Show("You must fill Standard and Name fields!",
                    Resource.Caption, MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
                standardEdit.Focus();
                return;
            }

            db.Lock();

            try
            {
                ScheduleParamDataSet set = db.ScheduleParamSet;
                SetEditToDataSet();

                if (mode == EDataSetMode.New)
                {
                    set.RecNo = (int)db.GetGenNo("GN_SCHEDULEPARAM");
                    set.ParamNo = -1;
                    set.Insert();
                }
                else
                {
                    db.ScheduleParamSet.Update();
                }
            }
            finally
            {
                db.Unlock();
            }

            SetDataSetMode(EDataSetMode.View);
            searchButton.PerformClick();
        }

        private void cancelButton_Click(object sender, EventArgs e)
        {
            SetDataSetMode(EDataSetMode.View);
            searchButton.PerformClick();
        }

        private void scheduleGridView_FocusedRowChanged(object sender, FocusedRowChangedEventArgs e)
        {
            if (e.FocusedRowHandle < 0) return;
            if (mode != EDataSetMode.View) return;

            db.Lock();

            try
            {
                DataRow row = scheduleGridView.GetDataRow(e.FocusedRowHandle);
                db.ScheduleParamSet.Fetch(row);
                SetEditFromDataSet();
            }
            finally
            {
                db.Unlock();
            }
        }

        private void scheduleGrid_DoubleClick(object sender, EventArgs e)
        {
            if (mode != EDataSetMode.View) return;

            modifyButton.PerformClick();
        }

        private string ToDevFormat(string format)
        {
            string[] strings = format.Split(new[] { '.' }, StringSplitOptions.None);

            if ((strings == null) || (strings.Length != 2)) return "f0";

            return $"f{strings[1].Length}";
        }

        private void SetDataSetMode(EDataSetMode mode)
        {
            this.mode = mode;
            viewStatePanel.Text = mode.ToString().ToUpper();

            switch (mode)
            {
                case EDataSetMode.View:
                    saveButton.Enabled = false;
                    cancelButton.Enabled = false;
                    viewStatePanel.BackColor = Color.Gray;
                    SetEditReadOnly(true);
                    break;

                case EDataSetMode.New:
                    saveButton.Enabled = true;
                    cancelButton.Enabled = true;
                    viewStatePanel.BackColor = Color.DeepSkyBlue;
                    SetEditReadOnly(false);
                    break;

                case EDataSetMode.Modify:
                    saveButton.Enabled = true;
                    cancelButton.Enabled = true;
                    viewStatePanel.BackColor = Color.DeepSkyBlue;
                    SetEditReadOnly(false);
                    break;
            }
        }

        private void SetEditReadOnly(bool active)
        {
            searchPanel.Enabled = active;

            foreach (TextEdit edit in id1Edits)
            {
                edit.Properties.ReadOnly = active;
                edit.EnterMoveNextControl = true;
            }

            foreach (TextEdit edit in id2Edits)
            {
                edit.Properties.ReadOnly = active;
                edit.EnterMoveNextControl = true;
            }

            foreach (TextEdit edit in odEdits)
            {
                edit.Properties.ReadOnly = active;
                edit.EnterMoveNextControl = true;
            }

            foreach (TextEdit edit in viewEdits)
            {
                edit.Properties.ReadOnly = active;
                edit.EnterMoveNextControl = true;
            }

            foreach (AdvBandedGridView gridView in viewGrids)
            {
                gridView.OptionsBehavior.ReadOnly = active;
            }
        }

        private void SetEditFromDataSet()
        {
            ScheduleParamDataSet set = db.ScheduleParamSet;

            standardEdit.Text = set.Standard;
            nameEdit.Text = set.Name;
            noSteadyEdit.EditValue = set.NoOfSteady;
            preparationEdit.EditValue = set.Preparation;
            judgementEdit.EditValue = set.Judgement;
            repeatEdit.EditValue = set.Repeat;

            chamberParams[0].Indoor1Use = set.ID1Use;
            chamberParams[0].Indoor1Mode1 = set.ID1Mode1;
            chamberParams[0].Indoor1Duct1 = set.ID1Duct1;
            chamberParams[0].Indoor1Mode2 = set.ID1Mode2;
            chamberParams[0].Indoor1Duct2 = set.ID1Duct2;

            id1EdbSetupEdit.EditValue = set.ID1EdbSetup;
            id1EdbAvgEdit.EditValue = set.ID1EdbAvg;
            id1EdbDevEdit.EditValue = set.ID1EdbDev;
            id1EwbSetupEdit.EditValue = set.ID1EwbSetup;
            id1EwbAvgEdit.EditValue = set.ID1EwbAvg;
            id1EwbDevEdit.EditValue = set.ID1EwbDev;
            id1Ldb1DevEdit.EditValue = set.ID1Ldb1Dev;
            id1Lwb1DevEdit.EditValue = set.ID1Lwb1Dev;
            id1Airflow1DevEdit.EditValue = set.ID1Af1Dev;
            id1Ldb2DevEdit.EditValue = set.ID1Ldb2Dev;
            id1Lwb2DevEdit.EditValue = set.ID1Lwb2Dev;
            id1Airflow2DevEdit.EditValue = set.ID1Af2Dev;
            id1Cdp1SetupEdit.EditValue = set.ID1Cdp1Setup;
            id1Cdp1AvgEdit.EditValue = set.ID1Cdp1Avg;
            id1Cdp1DevEdit.EditValue = set.ID1Cdp1Dev;
            id1Cdp2SetupEdit.EditValue = set.ID1Cdp2Setup;
            id1Cdp2AvgEdit.EditValue = set.ID1Cdp2Avg;
            id1Cdp2DevEdit.EditValue = set.ID1Cdp2Dev;

            chamberParams[0].Indoor2Use = set.ID2Use;
            chamberParams[0].Indoor2Mode1 = set.ID2Mode1;
            chamberParams[0].Indoor2Duct1 = set.ID2Duct1;
            chamberParams[0].Indoor2Mode2 = set.ID2Mode2;
            chamberParams[0].Indoor2Duct2 = set.ID2Duct2;

            id2EdbSetupEdit.EditValue = set.ID2EdbSetup;
            id2EdbAvgEdit.EditValue = set.ID2EdbAvg;
            id2EdbDevEdit.EditValue = set.ID2EdbDev;
            id2EwbSetupEdit.EditValue = set.ID2EwbSetup;
            id2EwbAvgEdit.EditValue = set.ID2EwbAvg;
            id2EwbDevEdit.EditValue = set.ID2EwbDev;
            id2Ldb1DevEdit.EditValue = set.ID2Ldb1Dev;
            id2Lwb1DevEdit.EditValue = set.ID2Lwb1Dev;
            id2Airflow1DevEdit.EditValue = set.ID2Af1Dev;
            id2Ldb2DevEdit.EditValue = set.ID2Ldb2Dev;
            id2Lwb2DevEdit.EditValue = set.ID2Lwb2Dev;
            id2Airflow2DevEdit.EditValue = set.ID2Af2Dev;
            id2Cdp1SetupEdit.EditValue = set.ID2Cdp1Setup;
            id2Cdp1AvgEdit.EditValue = set.ID2Cdp1Avg;
            id2Cdp1DevEdit.EditValue = set.ID2Cdp1Dev;
            id2Cdp2SetupEdit.EditValue = set.ID2Cdp2Setup;
            id2Cdp2AvgEdit.EditValue = set.ID2Cdp2Avg;
            id2Cdp2DevEdit.EditValue = set.ID2Cdp2Dev;

            chamberParams[0].OutdoorUse = set.ODUse;
            chamberParams[0].OutdoorDpSensor = set.ODDp;
            chamberParams[0].OutdoorAutoVolt = set.ODAutoVolt;

            odEdbSetupEdit.EditValue = set.ODEdbSetup;
            odEdbAvgEdit.EditValue = set.ODEdbAvg;
            odEdbDevEdit.EditValue = set.ODEdbDev;
            odEwbSetupEdit.EditValue = set.ODEwbSetup;
            odEwbAvgEdit.EditValue = set.ODEwbAvg;
            odEwbDevEdit.EditValue = set.ODEwbDev;
            odEdpSetupEdit.EditValue = set.ODEdpSetup;
            odEdpAvgEdit.EditValue = set.ODEdpAvg;
            odEdpDevEdit.EditValue = set.ODEdpDev;
            odVolt1SetupEdit.EditValue = set.ODVolt1Setup;
            odVolt1AvgEdit.EditValue = set.ODVolt1Avg;
            odVolt1DevEdit.EditValue = set.ODVolt1Dev;
            odVolt2SetupEdit.EditValue = set.ODVolt2Setup;
            odVolt2AvgEdit.EditValue = set.ODVolt2Avg;
            odVolt2DevEdit.EditValue = set.ODVolt2Dev;

            indoor1GridView.RefreshData();
            indoor2GridView.RefreshData();
            outdoorGridView.RefreshData();
        }

        private void SetEditToDataSet()
        {
            ScheduleParamDataSet set = db.ScheduleParamSet;

            set.Standard = standardEdit.Text;
            set.Name = nameEdit.Text;
            set.NoOfSteady = int.Parse(noSteadyEdit.Text);
            set.Preparation = int.Parse(preparationEdit.Text);
            set.Judgement = int.Parse(judgementEdit.Text);
            set.Repeat = int.Parse(repeatEdit.Text);

            set.ID1Use = chamberParams[0].Indoor1Use;
            set.ID1Mode1 = chamberParams[0].Indoor1Mode1;
            set.ID1Duct1 = chamberParams[0].Indoor1Duct1;
            set.ID1Mode2 = chamberParams[0].Indoor1Mode2;
            set.ID1Duct2 = chamberParams[0].Indoor1Duct2;

            set.ID1EdbSetup = float.Parse(id1EdbSetupEdit.Text);
            set.ID1EdbAvg = float.Parse(id1EdbAvgEdit.Text);  
            set.ID1EdbDev = float.Parse(id1EdbDevEdit.Text);  
            set.ID1EwbSetup = float.Parse(id1EwbSetupEdit.Text);
            set.ID1EwbAvg = float.Parse(id1EwbAvgEdit.Text);  
            set.ID1EwbDev = float.Parse(id1EwbDevEdit.Text);  
            set.ID1Ldb1Dev = float.Parse(id1Ldb1DevEdit.Text); 
            set.ID1Lwb1Dev = float.Parse(id1Lwb1DevEdit.Text);
            set.ID1Af1Dev = float.Parse(id1Airflow1DevEdit.Text);
            set.ID1Ldb2Dev = float.Parse(id1Ldb2DevEdit.Text);
            set.ID1Lwb2Dev = float.Parse(id1Lwb2DevEdit.Text);
            set.ID1Af2Dev = float.Parse(id1Airflow2DevEdit.Text);

            set.ID1Cdp1Setup = float.Parse(id1Cdp1SetupEdit.Text);
            set.ID1Cdp1Avg = float.Parse(id1Cdp1AvgEdit.Text);
            set.ID1Cdp1Dev = float.Parse(id1Cdp1DevEdit.Text);
            set.ID1Cdp2Setup = float.Parse(id1Cdp2SetupEdit.Text);
            set.ID1Cdp2Avg = float.Parse(id1Cdp2AvgEdit.Text);
            set.ID1Cdp2Dev = float.Parse(id1Cdp2DevEdit.Text);

            set.ID2Use = chamberParams[0].Indoor2Use;
            set.ID2Mode1 = chamberParams[0].Indoor2Mode1;
            set.ID2Duct1 = chamberParams[0].Indoor2Duct1;
            set.ID2Mode2 = chamberParams[0].Indoor2Mode2;
            set.ID2Duct2 = chamberParams[0].Indoor2Duct2;

            set.ID2EdbSetup = float.Parse(id2EdbSetupEdit.Text);
            set.ID2EdbAvg = float.Parse(id2EdbAvgEdit.Text);
            set.ID2EdbDev = float.Parse(id2EdbDevEdit.Text);
            set.ID2EwbSetup = float.Parse(id2EwbSetupEdit.Text);
            set.ID2EwbAvg = float.Parse(id2EwbAvgEdit.Text);
            set.ID2EwbDev = float.Parse(id2EwbDevEdit.Text);
            set.ID2Ldb1Dev = float.Parse(id2Ldb1DevEdit.Text);
            set.ID2Lwb1Dev = float.Parse(id2Lwb1DevEdit.Text);
            set.ID2Af1Dev = float.Parse(id2Airflow1DevEdit.Text);
            set.ID2Ldb2Dev = float.Parse(id2Ldb2DevEdit.Text);
            set.ID2Lwb2Dev = float.Parse(id2Lwb2DevEdit.Text);
            set.ID2Af2Dev = float.Parse(id2Airflow2DevEdit.Text);

            set.ID2Cdp1Setup = float.Parse(id2Cdp1SetupEdit.Text);
            set.ID2Cdp1Avg = float.Parse(id2Cdp1AvgEdit.Text);
            set.ID2Cdp1Dev = float.Parse(id2Cdp1DevEdit.Text);
            set.ID2Cdp2Setup = float.Parse(id2Cdp2SetupEdit.Text);
            set.ID2Cdp2Avg = float.Parse(id2Cdp2AvgEdit.Text);
            set.ID2Cdp2Dev = float.Parse(id2Cdp2DevEdit.Text);

            set.ODUse = chamberParams[0].OutdoorUse;
            set.ODDp = chamberParams[0].OutdoorDpSensor;
            set.ODAutoVolt = chamberParams[0].OutdoorAutoVolt;

            set.ODEdbSetup = float.Parse(odEdbSetupEdit.Text);  
            set.ODEdbAvg = float.Parse(odEdbAvgEdit.Text);    
            set.ODEdbDev = float.Parse(odEdbDevEdit.Text);    
            set.ODEwbSetup = float.Parse(odEwbSetupEdit.Text);  
            set.ODEwbAvg = float.Parse(odEwbAvgEdit.Text);    
            set.ODEwbDev = float.Parse(odEwbDevEdit.Text);    
            set.ODEdpSetup = float.Parse(odEdpSetupEdit.Text);  
            set.ODEdpAvg = float.Parse(odEdpAvgEdit.Text);    
            set.ODEdpDev = float.Parse(odEdpDevEdit.Text);    
            set.ODVolt1Setup = float.Parse(odVolt1SetupEdit.Text);
            set.ODVolt1Avg = float.Parse(odVolt1AvgEdit.Text);  
            set.ODVolt1Dev = float.Parse(odVolt1DevEdit.Text);  
            set.ODVolt2Setup = float.Parse(odVolt2SetupEdit.Text);
            set.ODVolt2Avg = float.Parse(odVolt2AvgEdit.Text);  
            set.ODVolt2Dev = float.Parse(odVolt2DevEdit.Text);  
        }

        private void ResetEdit()
        {
            standardEdit.Text = "";
            nameEdit.Text = "";
            noSteadyEdit.EditValue = 0;
            preparationEdit.EditValue = 0;
            judgementEdit.EditValue = 0;
            repeatEdit.EditValue = 0;

            chamberParams[0].Indoor1Use = EIndoorUse.Indoor;
            chamberParams[0].Indoor1Mode1 = EIndoorMode.Cooling;
            chamberParams[0].Indoor1Duct1 = EIndoorDuct.N1;
            chamberParams[0].Indoor1Mode2 = EIndoorMode.Cooling;
            chamberParams[0].Indoor1Duct2 = EIndoorDuct.N1;

            chamberParams[0].Indoor2Use = EIndoorUse.Indoor;
            chamberParams[0].Indoor2Mode1 = EIndoorMode.Cooling;
            chamberParams[0].Indoor2Duct1 = EIndoorDuct.N1;
            chamberParams[0].Indoor2Mode2 = EIndoorMode.Cooling;
            chamberParams[0].Indoor2Duct2 = EIndoorDuct.N1;

            chamberParams[0].OutdoorUse = EOutdoorUse.Outdoor;
            chamberParams[0].OutdoorDpSensor = EEtcUse.Use;
            chamberParams[0].OutdoorAutoVolt = EEtcUse.Use;

            foreach (TextEdit edit in id1Edits)
            {
                edit.EditValue = 0f;
            }

            foreach (TextEdit edit in id2Edits)
            {
                edit.EditValue = 0f;
            }

            foreach (TextEdit edit in odEdits)
            {
                edit.EditValue = 0f;
            }

            indoor1GridView.RefreshData();
            indoor2GridView.RefreshData();
            outdoorGridView.RefreshData();
        }
    }
}
<file_sep>﻿using System;
using System.Collections.Generic;
using System.Net;
using System.Net.Sockets;
using System.Text;

using Ulee.Utils;
using Ulee.Threading;
using Ulee.Device.Connection;
using Ulee.Device.Connection.Yokogawa;

namespace Hnc.Calorimeter.Server
{
    public enum EClientCommand : byte
    {
        ConnectClient = 200,
        DisconnectClient,
        GetClientList,
        SetClientState,
        SetController,
        SetPlc,
        StartIntegrationPM,
        StopIntegrationPM,
        ResetIntegrationPM,
        SetWiringPM
    }

    public enum EListenerLogging
    { None, Event, All }

    public enum EListenerLogItem
    { Send, Receive, Note, Exception }

    public class ServerListener : UlThread
    {
        public ServerListener(CalorimeterServer server) : base(false)
        {
            this.server = server;
            packet = new ServerReceivePacket(64);
            ChangedClients = null;

            logger = new UlLogger();
            logger.Active = true;
            logger.Path = server.Ini.GetString("Listener", "LogPath");
            logger.FName = server.Ini.GetString("Listener", "LogFileName");
            logger.AddHead("SERVER->CLIENT");
            logger.AddHead("SERVER<-CLIENT");
            logger.AddHead("NOTE");
            logger.AddHead("EXCEPTION");

            Logging = GetLogging();
        }

        private CalorimeterServer server;

        private ServerReceivePacket packet;

        private UlLogger logger;

        public event EventHandler ChangedClients;
        public void OnChangedClients(object sender, EventArgs args)
        {
            ChangedClients?.Invoke(sender, args);
        }
    
        // Log 파일기록여부
        public EListenerLogging Logging { get; private set; }

        // Log 파일경로
        public string LogPath
        { get { return logger.Path; } set { logger.Path = value; } }

        // Log 파일명
        public string LogFName
        { get { return logger.FName; } set { logger.FName = value; } }

        // Log 파일명
        public string LogExt
        { get { return logger.Ext; } set { logger.Ext = value; } }

        // Log 파일 Encoding 
        public Encoding LogFEncoding
        { get { return logger.FEncoding; } set { logger.FEncoding = value; } }

        // Log 파일 분리 기준 - Min, Hour, Day
        public EUlLogFileSeperation LogFSeperation
        { get { return logger.FSeperation; } set { logger.FSeperation = value; } }

        private EListenerLogging GetLogging()
        {
            EListenerLogging ret;

            switch (server.Ini.GetString("listener", "logging").ToLower())
            {
                case "none":
                    ret = EListenerLogging.None;
                    break;

                case "event":
                    ret = EListenerLogging.Event;
                    break;

                case "all":
                    ret = EListenerLogging.All;
                    break;

                default:
                    ret = EListenerLogging.Event;
                    break;
            }

            return ret;
        }

        protected override void Execute()
        {
            byte[] bytes = null;
            IPEndPoint ipPoint = new IPEndPoint(IPAddress.Any, 0);

            // Thread 종료 신호가 들어올때 까지 루프
            while (Terminated == false)
            {
                try
                {
                    if ((server != null) && (server.Udp != null))
                    {
                        lock (server.Udp)
                        {
                            if (server.Udp.Available > 0)
                            {
                                bytes = server.Udp.Receive(ref ipPoint);
                            }
                            else
                            {
                                bytes = null;
                            }
                        }

                        if (bytes != null)
                        {
                            packet.Clear();
                            Array.Copy(bytes, 0, packet.Bytes, 0, bytes.Length);

                            CommandExecute(ipPoint);
                        }
                    }
                }
                catch (Exception e)
                {
                    logger.Log((int)EListenerLogItem.Exception, e.ToString());
                    DisconnectClient(ipPoint);
                }

                // 제어권 양보
                Yield();
            }
        }

        private void AddClient(ClientRow client)
        {
            server.Clients.Add(client.Ip, client);
            server.ClientList.Add(client);
            ResetClientIndex();
        }

        private void RemoveClient(ClientRow client)
        {
            if (server.Clients.ContainsKey(client.Ip) == true)
            {
                server.ClientList.Remove(client);
                server.Clients.Remove(client.Ip);
                ResetClientIndex();
            }
        }

        private void ResetClientIndex()
        {
            List<ClientRow> clientList = server.ClientList;

            for (int i=0; i<clientList.Count; i++)
            {
                clientList[i].Index = i + 1;
            }
        }

        private void CommandExecute(IPEndPoint ipPoint)
        {
            logger.Log((int)EListenerLogItem.Receive,
                "Received a Command({0}) - IArg1 : {1}, IArg2 : {2}, IArg3 : {3}, FArg1 : {4:F2} from {5}",
                packet.Command.ToString(), packet.IArg1, packet.IArg2, packet.IArg3, packet.FArg1, ipPoint.ToString());

            switch (packet.Command)
            {
                case EClientCommand.ConnectClient:
                    ConnectClient(ipPoint);
                    break;

                case EClientCommand.DisconnectClient:
                    DisconnectClient(ipPoint);
                    break;

                case EClientCommand.GetClientList:
                    GetClientList();
                    break;

                case EClientCommand.SetClientState:
                    SetClientState(ipPoint);
                    break;

                case EClientCommand.SetController:
                    SetController();
                    break;

                case EClientCommand.SetPlc:
                    SetPlc();
                    break;

                case EClientCommand.StartIntegrationPM:
                    StartIntegrationPM();
                    break;

                case EClientCommand.StopIntegrationPM:
                    StopIntegrationPM();
                    break;

                case EClientCommand.ResetIntegrationPM:
                    ResetIntegrationPM();
                    break;

                case EClientCommand.SetWiringPM:
                    SetWiringPM();
                    break;
            }

            server.Sender.Acknowledge(ipPoint);
        }

        // IArg1 : Device data value scanning time(msec)
        private void ConnectClient(IPEndPoint ipPoint)
        {
            lock (server.Clients)
            {
                if (server.Clients.ContainsKey(ipPoint.Address.ToString()) == true)
                {
                    logger.Log((int)EListenerLogItem.Note,
                        "Found a client({0}) already existed in Client Dictionary",
                        ipPoint.Address.ToString());

                    RemoveClient(server.Clients[ipPoint.Address.ToString()]);

                    logger.Log((int)EListenerLogItem.Note,
                        "Removed a client({0}) in Client Dictionary",
                        ipPoint.Address.ToString());
                }

                AddClient(new ClientRow(ipPoint, packet.IArg1));
                logger.Log((int)EListenerLogItem.Note,
                    "Added a client({0}) in Client Dictionary",
                    ipPoint.Address.ToString());
            }

            OnChangedClients(this, null);
        }

        private void DisconnectClient(IPEndPoint ipPoint)
        {
            lock (server.Clients)
            {
                logger.Log((int)EListenerLogItem.Note,
                    "Removed a client({0}) in Client Dictionary",
                    ipPoint.Address.ToString());

                RemoveClient(server.Clients[ipPoint.Address.ToString()]);
            }

            OnChangedClients(this, null);
        }

        private void GetClientList()
        {

        }

        private void SetClientState(IPEndPoint ipPoint)
        {
            lock (server.Clients)
            {

                if (server.Clients.ContainsKey(ipPoint.ToString()) == false)
                {
                    logger.Log((int)EListenerLogItem.Note,
                        "Can't find a client({0}) in Client Dictionary",
                        ipPoint.ToString());
                    return;
                }

                ClientRow client = server.Clients[ipPoint.ToString()];
                EClientState state = (EClientState)packet.IArg1;
                client.State = state;

                logger.Log((int)EListenerLogItem.Note,
                    "Changed client({0}) to {1}",
                    ipPoint.ToString(), state.ToString());
            }

            OnChangedClients(this, null);
        }

        private void SetController()
        {
            int networkNo = packet.IArg1;
            int controllerNo = packet.IArg2;
            EUT55ARegisterAddress regAddr = (EUT55ARegisterAddress)packet.IArg3;
            float value = packet.FArg1;

            if (server.Devices.Controller.Count == 0) return;
            if (server.Devices.Controller[networkNo].Connected == false) return;

            UlUT55AEthernetClient device = server.Devices.Controller[networkNo];

            logger.Log((int)EListenerLogItem.Note,
                "Changed PID Controller (IP : {0}, Port : {1}, Address : {2}, Register : {3}) to {4:F2}",
                device.Ip, device.Port, controllerNo, regAddr.ToString(), value);

            device.Write(controllerNo, regAddr, value);
        }

        private void SetPlc()
        {
            int index = packet.IArg1;

            if (server.Devices.Plc.Count == 0) return;
            if (server.Devices.Plc[index].Connected == false) return;

        }

        private void StartIntegrationPM()
        {
            int index = packet.IArg1;

            if (server.Devices.PowerMeter.Count == 0) return;
            if (server.Devices.PowerMeter[index].Connected == false) return;

            UlWT330EthernetClient device = server.Devices.PowerMeter[index];

            logger.Log((int)EListenerLogItem.Note,
                "Start integration on Power Meter({0})",
                device.IpPoint.ToString());

            device.StartIntegration();
        }

        private void StopIntegrationPM()
        {
            int index = packet.IArg1;

            if (server.Devices.PowerMeter.Count == 0) return;
            if (server.Devices.PowerMeter[index].Connected == false) return;

            UlWT330EthernetClient device = server.Devices.PowerMeter[index];

            logger.Log((int)EListenerLogItem.Note,
                "Stop integration on Power Meter({0})",
                device.IpPoint.ToString());

            device.StopIntegration();
        }

        private void ResetIntegrationPM()
        {
            int index = packet.IArg1;

            if (server.Devices.PowerMeter.Count == 0) return;
            if (server.Devices.PowerMeter[index].Connected == false) return;

            UlWT330EthernetClient device = server.Devices.PowerMeter[index];

            logger.Log((int)EListenerLogItem.Note,
                "Reset integration on Power Meter({0})",
                device.IpPoint.ToString());

            device.ResetIntegration();
        }

        private void SetWiringPM()
        {
            int index = packet.IArg1;

            if (server.Devices.PowerMeter.Count == 0) return;
            if (server.Devices.PowerMeter[index].Connected == false) return;

            EWT330Wiring wiring = (EWT330Wiring)packet.IArg2;
            UlWT330EthernetClient device = server.Devices.PowerMeter[index];

            logger.Log((int)EListenerLogItem.Note,
                "Changed wiring on Power Meter({0}) to {2}",
                device.IpPoint.ToString(), wiring.ToString());

            device.SetWiring(wiring);
        }
    }

    public class ServerReceivePacket
    {
        public ServerReceivePacket(int length)
        {
            packet = new UlBinSets(length);
        }

        public EClientCommand Command { get { return (EClientCommand)packet.Byte(0); } }

        public int IArg1 { get { return (int)packet.DWord(1); } }

        public int IArg2 { get { return (int)packet.DWord(5); } }

        public int IArg3 { get { return (int)packet.DWord(9); } }

        public float FArg1 { get { return BitConverter.ToSingle(packet.Bytes, 13); } }

        private UlBinSets packet;

        public void Clear()
        {
            packet.Clear();
        }

        public byte[] Bytes
        { get { return packet.Bytes; } }

        public int Length
        { get { return packet.Count; } }
    }
}
<file_sep>﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;

using Ulee.Threading;
using Ulee.Device.Connection.Yokogawa;
using Ulee.Utils;

namespace Hnc.Calorimeter.Client
{
    #region enums
    public enum ETestButtonState
    {
        Started,
        Paused,
        Stopped
    }

    public enum ETestMode
    {
        [Description("Cooling")]
        Cooling,
        [Description("Heating")]
        Heating
    }

    public enum EValueState
    {
        None,
        Ok,
        Ng
    }

    public enum EIndoorUse
    {
        [Description("Indoor")]
        Indoor,
        [Description("Not Used")]
        NotUsed
    }

    public enum EIndoorMode
    {
        [Description("Cooling")]
        Cooling,
        [Description("Heating")]
        Heating,
        [Description("Not Used")]
        NotUsed
    }

    public enum EIndoorDuct
    {
        [Description("1")]
        N1,
        [Description("2")]
        N2,
        [Description("3")]
        N3,
        [Description("4")]
        N4,
        [Description("5")]
        N5,
        [Description("Not Used")]
        NotUsed
    }

    public enum EOutdoorUse
    {
        [Description("Outdoor")]
        Outdoor,
        [Description("Not Used")]
        NotUsed
    }

    public enum EEtcUse
    {
        [Description("Use")]
        Use,
        [Description("Not Used")]
        NotUsed
    }

    public enum EAxisAlign
    {
        Left,
        Right
    }
    #endregion

    #region TestContext
    public class TestContext : UlThread
    {
        public TestContext(int handle, IntPtr wndHandle) : base(false)
        {
            TestThread = null;
            State = ETestButtonState.Stopped;

            this.Handle = handle;
            this.WndHandle = wndHandle;

            DB = Resource.TestDB[handle];
            Value = new TestValue();
            Measure = new TestMeasure(Value);
            Condition = new TestCondition(Value);
            Report = new TestReport(this);
        }

        private const long csInvalidTicks = 1000;
        private const float csMinimumTemp = -99.9f;
        private const float csLimitedTemp = -300.0f;

        public int Handle { get; set; }
        public IntPtr WndHandle { get; set; }
        public CalorimeterTestThread TestThread { get; private set; }
        public CalorimeterTestDatabase DB { get; private set;}
        public ETestButtonState State { get; set; }
        public TestCondition Condition { get; set; }
        public TestMeasure Measure { get; set; }
        public TestValue Value { get; set; }
        public TestReport Report { get; set; }

        public int Index { get; set; }

        protected override void Execute()
        {
            long prevTicks = ElapsedMilliseconds;

            while (Terminated == false)
            {
                if (IsTimeoutMilliseconds(prevTicks, csInvalidTicks) == true)
                {
                    prevTicks += csInvalidTicks;
                    DoMeasureCalcurateValues();
                }

                Yield();
            }
        }

        private void DoMeasureCalcurateValues()
        {
            Value.Lock();

            try
            {
                LoadMeasuredValues();
                Calcurate();
            }
            finally
            {
                Value.Unlock();
            }
        }

        public bool IsTestThreadNull { get { return (TestThread == null) ? true : false; } }

        public CalorimeterTestThread TestCreate()
        {
            TestThread = new CalorimeterTestThread(this);

            return TestThread;
        }

        public void TestStart()
        {
            if (TestThread != null)
            {
                TestThread.Start();
            }
        }

        public void TestSuspend()
        {
            if (TestThread != null)
            {
                TestThread.Suspend();
            }
        }

        public void TestResume()
        {
            if (TestThread != null)
            {
                TestThread.Resume();
            }
        }

        public void TestTerminate(ETestMessage msg)
        {
            if (TestThread != null)
            {
                TestThread.Terminate((int)msg, false);
            }
        }

        public void TestReset()
        {
            Index = 0;
            Resource.BusySets[Handle] = false;
            TestThread = null;
        }

        public void Initialize()
        {
            List<ConditionRated> rateds = null;
            ConditionSchedule sch = Condition.Schedules[Index];

            if (sch.IndoorMode == EIndoorMode.NotUsed)
            {
                Measure.TotalRateds[(int)EMeasTotalRated.TotalCapacity].Row = null;
                Measure.TotalRateds[(int)EMeasTotalRated.TotalPowerInput].Row = null;
                Measure.TotalRateds[(int)EMeasTotalRated.TotalEER_COP].Row = null;

                Measure.TotalRateds[(int)EMeasTotalRated.TotalRatedCapacity].Row = null;
                Measure.TotalRateds[(int)EMeasTotalRated.TotalCapacityRatio].Row = null;
                Measure.TotalRateds[(int)EMeasTotalRated.TotalRatedPowerInput].Row = null;
                Measure.TotalRateds[(int)EMeasTotalRated.TotalPowerInputRatio].Row = null;
                Measure.TotalRateds[(int)EMeasTotalRated.TotalRatedEER_COP].Row = null;
                Measure.TotalRateds[(int)EMeasTotalRated.TotalEER_COPRatio].Row = null;
                Measure.TotalRateds[(int)EMeasTotalRated.TotalRatedCurrent].Row = null;
                Measure.TotalRateds[(int)EMeasTotalRated.TotalCurrentRatio].Row = null;
            }
            else
            {
                rateds = Condition.Rateds[EConditionRated.Total];
                Value.Const["Total.Rated.Capacity"].Value = rateds[(int)sch.IndoorMode].Capacity;
                Value.Const["Total.Rated.Power"].Value = rateds[(int)sch.IndoorMode].PowerInput;
                Value.Const["Total.Rated.EER_COP"].Value = rateds[(int)sch.IndoorMode].EER_COP;
                Value.Const["Total.Rated.Voltage"].Value = rateds[(int)sch.IndoorMode].Voltage;
                Value.Const["Total.Rated.Current"].Value = rateds[(int)sch.IndoorMode].Current;

                try
                {
                    if (string.IsNullOrWhiteSpace(rateds[(int)sch.IndoorMode].Frequency) == true)
                        Value.Const["Total.Rated.Frequency"].Value = 0;
                    else
                        Value.Const["Total.Rated.Frequency"].Value = float.Parse(rateds[(int)sch.IndoorMode].Frequency);
                }
                catch
                {
                    Value.Const["Total.Rated.Frequency"].Value = 0;
                }

                Measure.TotalRateds[(int)EMeasTotalRated.TotalCapacity].Row = Value.Calcurated["Total.Capacity"];
                Measure.TotalRateds[(int)EMeasTotalRated.TotalPowerInput].Row = Value.Calcurated["Total.Power"];
                Measure.TotalRateds[(int)EMeasTotalRated.TotalEER_COP].Row = Value.Calcurated["Total.EER_COP"];

                Measure.TotalRateds[(int)EMeasTotalRated.TotalRatedCapacity].Row = Value.Const["Total.Rated.Capacity"];
                Measure.TotalRateds[(int)EMeasTotalRated.TotalCapacityRatio].Row = Value.Calcurated["Total.Capacity.Ratio"];
                Measure.TotalRateds[(int)EMeasTotalRated.TotalRatedPowerInput].Row = Value.Const["Total.Rated.Power"];
                Measure.TotalRateds[(int)EMeasTotalRated.TotalPowerInputRatio].Row = Value.Calcurated["Total.Power.Ratio"];
                Measure.TotalRateds[(int)EMeasTotalRated.TotalRatedEER_COP].Row = Value.Const["Total.Rated.EER_COP"];
                Measure.TotalRateds[(int)EMeasTotalRated.TotalEER_COPRatio].Row = Value.Calcurated["Total.EER_COP.Ratio"];
                Measure.TotalRateds[(int)EMeasTotalRated.TotalRatedCurrent].Row = Value.Const["Total.Rated.Current"];
                Measure.TotalRateds[(int)EMeasTotalRated.TotalCurrentRatio].Row = Value.Calcurated["Total.Current.Ratio"];
            }

            Measure.TotalRateds[(int)EMeasTotalRated.IDU_PowerInput].Row = Value.Calcurated["Total.IDU.Power"];
            Measure.TotalRateds[(int)EMeasTotalRated.IDU_Voltage].Row = Value.Calcurated["Total.IDU.Voltage"];
            Measure.TotalRateds[(int)EMeasTotalRated.IDU_Current].Row = Value.Calcurated["Total.IDU.Current"];
            Measure.TotalRateds[(int)EMeasTotalRated.IDU_Frequency].Row = Value.Calcurated["Total.IDU.Frequency"];
            Measure.TotalRateds[(int)EMeasTotalRated.IDU_PowerFactor].Row = Value.Calcurated["Total.IDU.Power.Factor"];
            Measure.TotalRateds[(int)EMeasTotalRated.IDU_IntegPowerInput].Row = Value.Calcurated["Total.IDU.Integ.Power"];
            Measure.TotalRateds[(int)EMeasTotalRated.IDU_IntegTime].Row = Value.Calcurated["Total.IDU.Integ.Time"];
            Value.Calcurated["Total.IDU.Integ.Time"].Unit.To = (int)EUnitTime.min;

            Measure.TotalRateds[(int)EMeasTotalRated.ODU_PowerInput].Row = Value.Calcurated["Total.ODU.Power"];
            Measure.TotalRateds[(int)EMeasTotalRated.ODU_Voltage].Row = Value.Calcurated["Total.ODU.Voltage"];
            Measure.TotalRateds[(int)EMeasTotalRated.ODU_Current].Row = Value.Calcurated["Total.ODU.Current"];
            Measure.TotalRateds[(int)EMeasTotalRated.ODU_Frequency].Row = Value.Calcurated["Total.ODU.Frequency"];
            Measure.TotalRateds[(int)EMeasTotalRated.ODU_PowerFactor].Row = Value.Calcurated["Total.ODU.Power.Factor"];
            Measure.TotalRateds[(int)EMeasTotalRated.ODU_IntegPowerInput].Row = Value.Calcurated["Total.ODU.Integ.Power"];
            Measure.TotalRateds[(int)EMeasTotalRated.ODU_IntegTime].Row = Value.Calcurated["Total.ODU.Integ.Time"];
            Value.Calcurated["Total.ODU.Integ.Time"].Unit.To = (int)EUnitTime.min;

            if (sch.IndoorMode == EIndoorMode.NotUsed)
            {
                Measure.Rateds[(int)EMeasRated.Capacity].Row = null;
                Measure.Rateds[(int)EMeasRated.PowerInput].Row = null;
                Measure.Rateds[(int)EMeasRated.EER_COP].Row = null;
                Measure.Rateds[(int)EMeasRated.IDU_Voltage].Row = null;
                Measure.Rateds[(int)EMeasRated.IDU_Current].Row = null;
                Measure.Rateds[(int)EMeasRated.IDU_Frequency].Row = null;
                Measure.Rateds[(int)EMeasRated.IDU_SelectedPM].Row = null;
                Measure.Rateds[(int)EMeasRated.ODU_SelectedPM].Row = null;
                Measure.Rateds[(int)EMeasRated.ODU_Phase].Row = null;
            }
            else
            {
                Measure.Rateds[(int)EMeasRated.Capacity].Row = Value.Const["Total.Rated.Capacity"];
                Measure.Rateds[(int)EMeasRated.PowerInput].Row = Value.Const["Total.Rated.Power"];
                Measure.Rateds[(int)EMeasRated.EER_COP].Row = Value.Const["Total.Rated.EER_COP"];
                Measure.Rateds[(int)EMeasRated.IDU_Voltage].Row = Value.Const["Total.Rated.Voltage"];
                Measure.Rateds[(int)EMeasRated.IDU_Current].Row = Value.Const["Total.Rated.Current"];
                Measure.Rateds[(int)EMeasRated.IDU_Frequency].Row = Value.Const["Total.Rated.Frequency"];
                Measure.Rateds[(int)EMeasRated.IDU_SelectedPM].Value = GetNameIDU(rateds[(int)sch.IndoorMode].PM_IDU);
                Measure.Rateds[(int)EMeasRated.ODU_SelectedPM].Value = GetNameODU(rateds[(int)sch.IndoorMode].PM_ODU);
                Measure.Rateds[(int)EMeasRated.ODU_Phase].Value = EnumHelper.GetNames<EWT330Wiring>()[(int)rateds[(int)sch.IndoorMode].Wiring];
            }

            List<CoefficientDataRow> coeffs = Resource.Settings.Coefficients;
            Measure.Nozzles[(int)EMeasNozzle.Nozzle1].SetDiameter(coeffs[0].Nozzle1, coeffs[1].Nozzle1, coeffs[2].Nozzle1, coeffs[3].Nozzle1);
            Measure.Nozzles[(int)EMeasNozzle.Nozzle2].SetDiameter(coeffs[0].Nozzle2, coeffs[1].Nozzle2, coeffs[2].Nozzle2, coeffs[3].Nozzle2);
            Measure.Nozzles[(int)EMeasNozzle.Nozzle3].SetDiameter(coeffs[0].Nozzle3, coeffs[1].Nozzle3, coeffs[2].Nozzle3, coeffs[3].Nozzle3);
            Measure.Nozzles[(int)EMeasNozzle.Nozzle4].SetDiameter(coeffs[0].Nozzle4, coeffs[1].Nozzle4, coeffs[2].Nozzle4, coeffs[3].Nozzle4);

            if (sch.Indoor1Use == EIndoorUse.NotUsed)
            {
                foreach (EMeasAirSide airSide in Enum.GetValues(typeof(EMeasAirSide)))
               {
                    Measure.AirSides[(int)airSide].Indoor11Enabled = false;
                    Measure.AirSides[(int)airSide].Indoor12Enabled = false;
                }

                foreach (EMeasNozzle nozzle in Enum.GetValues(typeof(EMeasNozzle)))
                {
                    Measure.Nozzles[(int)nozzle].ID11Enabled = false;
                    Measure.Nozzles[(int)nozzle].ID12Enabled = false;
                }
            }
            else
            {
                if (sch.Indoor1Mode == EIndoorMode.NotUsed)
                {
                    foreach (EMeasAirSide airSide in Enum.GetValues(typeof(EMeasAirSide)))
                    {
                        Measure.AirSides[(int)airSide].Indoor11Enabled = false;
                        Measure.AirSides[(int)airSide].Indoor12Enabled = false;
                    }

                    Measure.AirSides[(int)EMeasAirSide.EnteringDB].Indoor11Enabled = true;
                    Measure.AirSides[(int)EMeasAirSide.EnteringWB].Indoor11Enabled = true;
                    Measure.AirSides[(int)EMeasAirSide.EnteringRH].Indoor11Enabled = true;
                    Measure.AirSides[(int)EMeasAirSide.LeavingDB].Indoor11Enabled = true;
                    Measure.AirSides[(int)EMeasAirSide.LeavingWB].Indoor11Enabled = true;
                    Measure.AirSides[(int)EMeasAirSide.LeavingRH].Indoor11Enabled = true;

                    Measure.AirSides[(int)EMeasAirSide.EnteringDB].Indoor12Enabled = true;
                    Measure.AirSides[(int)EMeasAirSide.EnteringWB].Indoor12Enabled = true;
                    Measure.AirSides[(int)EMeasAirSide.EnteringRH].Indoor12Enabled = true;
                    Measure.AirSides[(int)EMeasAirSide.LeavingDB].Indoor12Enabled = true;
                    Measure.AirSides[(int)EMeasAirSide.LeavingWB].Indoor12Enabled = true;
                    Measure.AirSides[(int)EMeasAirSide.LeavingRH].Indoor12Enabled = true;

                    foreach (EMeasNozzle nozzle in Enum.GetValues(typeof(EMeasNozzle)))
                    {
                        Measure.Nozzles[(int)nozzle].ID11Enabled = false;
                        Measure.Nozzles[(int)nozzle].ID12Enabled = false;
                    }
                }
                else
                {
                    if (sch.Indoor1Mode1 == EIndoorMode.NotUsed)
                    {
                        foreach (EMeasAirSide airSide in Enum.GetValues(typeof(EMeasAirSide)))
                        {
                            Measure.AirSides[(int)airSide].Indoor11Enabled = false;
                        }

                        Measure.AirSides[(int)EMeasAirSide.EnteringDB].Indoor11Enabled = true;
                        Measure.AirSides[(int)EMeasAirSide.EnteringWB].Indoor11Enabled = true;
                        Measure.AirSides[(int)EMeasAirSide.EnteringRH].Indoor11Enabled = true;
                        Measure.AirSides[(int)EMeasAirSide.LeavingDB].Indoor11Enabled = true;
                        Measure.AirSides[(int)EMeasAirSide.LeavingWB].Indoor11Enabled = true;
                        Measure.AirSides[(int)EMeasAirSide.LeavingRH].Indoor11Enabled = true;

                        foreach (EMeasNozzle nozzle in Enum.GetValues(typeof(EMeasNozzle)))
                        {
                            Measure.Nozzles[(int)nozzle].ID11Enabled = false;
                        }
                    }
                    else
                    {
                        foreach (EMeasAirSide airSide in Enum.GetValues(typeof(EMeasAirSide)))
                        {
                            Measure.AirSides[(int)airSide].Indoor11Enabled = true;
                        }

                        foreach (EMeasNozzle nozzle in Enum.GetValues(typeof(EMeasNozzle)))
                        {
                            Measure.Nozzles[(int)nozzle].ID11Enabled = true;
                        }
                    }

                    if (sch.Indoor1Mode2 == EIndoorMode.NotUsed)
                    {
                        foreach (EMeasAirSide airSide in Enum.GetValues(typeof(EMeasAirSide)))
                        {
                            Measure.AirSides[(int)airSide].Indoor12Enabled = false;
                        }

                        Measure.AirSides[(int)EMeasAirSide.EnteringDB].Indoor12Enabled = true;
                        Measure.AirSides[(int)EMeasAirSide.EnteringWB].Indoor12Enabled = true;
                        Measure.AirSides[(int)EMeasAirSide.EnteringRH].Indoor12Enabled = true;
                        Measure.AirSides[(int)EMeasAirSide.LeavingDB].Indoor12Enabled = true;
                        Measure.AirSides[(int)EMeasAirSide.LeavingWB].Indoor12Enabled = true;
                        Measure.AirSides[(int)EMeasAirSide.LeavingRH].Indoor12Enabled = true;

                        foreach (EMeasNozzle nozzle in Enum.GetValues(typeof(EMeasNozzle)))
                        {
                            Measure.Nozzles[(int)nozzle].ID12Enabled = false;
                        }
                    }
                    else
                    {
                        foreach (EMeasAirSide airSide in Enum.GetValues(typeof(EMeasAirSide)))
                        {
                            Measure.AirSides[(int)airSide].Indoor12Enabled = true;
                        }

                        foreach (EMeasNozzle nozzle in Enum.GetValues(typeof(EMeasNozzle)))
                        {
                            Measure.Nozzles[(int)nozzle].ID12Enabled = true;
                        }
                    }
                }
            }

            if (sch.Indoor2Use == EIndoorUse.NotUsed)
            {
                foreach (EMeasAirSide airSide in Enum.GetValues(typeof(EMeasAirSide)))
                {
                    Measure.AirSides[(int)airSide].Indoor21Enabled = false;
                    Measure.AirSides[(int)airSide].Indoor22Enabled = false;
                }

                foreach (EMeasNozzle nozzle in Enum.GetValues(typeof(EMeasNozzle)))
                {
                    Measure.Nozzles[(int)nozzle].ID21Enabled = false;
                    Measure.Nozzles[(int)nozzle].ID22Enabled = false;
                }
            }
            else
            {
                if (sch.Indoor2Mode == EIndoorMode.NotUsed)
                {
                    foreach (EMeasAirSide airSide in Enum.GetValues(typeof(EMeasAirSide)))
                    {
                        Measure.AirSides[(int)airSide].Indoor21Enabled = false;
                        Measure.AirSides[(int)airSide].Indoor22Enabled = false;
                    }

                    Measure.AirSides[(int)EMeasAirSide.EnteringDB].Indoor21Enabled = true;
                    Measure.AirSides[(int)EMeasAirSide.EnteringWB].Indoor21Enabled = true;
                    Measure.AirSides[(int)EMeasAirSide.EnteringRH].Indoor21Enabled = true;
                    Measure.AirSides[(int)EMeasAirSide.LeavingDB].Indoor21Enabled = true;
                    Measure.AirSides[(int)EMeasAirSide.LeavingWB].Indoor21Enabled = true;
                    Measure.AirSides[(int)EMeasAirSide.LeavingRH].Indoor21Enabled = true;

                    Measure.AirSides[(int)EMeasAirSide.EnteringDB].Indoor22Enabled = true;
                    Measure.AirSides[(int)EMeasAirSide.EnteringWB].Indoor22Enabled = true;
                    Measure.AirSides[(int)EMeasAirSide.EnteringRH].Indoor22Enabled = true;
                    Measure.AirSides[(int)EMeasAirSide.LeavingDB].Indoor22Enabled = true;
                    Measure.AirSides[(int)EMeasAirSide.LeavingWB].Indoor22Enabled = true;
                    Measure.AirSides[(int)EMeasAirSide.LeavingRH].Indoor22Enabled = true;

                    foreach (EMeasNozzle nozzle in Enum.GetValues(typeof(EMeasNozzle)))
                    {
                        Measure.Nozzles[(int)nozzle].ID21Enabled = false;
                        Measure.Nozzles[(int)nozzle].ID22Enabled = false;
                    }
                }
                else
                {
                    if (sch.Indoor2Mode1 == EIndoorMode.NotUsed)
                    {
                        foreach (EMeasAirSide airSide in Enum.GetValues(typeof(EMeasAirSide)))
                        {
                            Measure.AirSides[(int)airSide].Indoor21Enabled = false;
                        }

                        Measure.AirSides[(int)EMeasAirSide.EnteringDB].Indoor21Enabled = true;
                        Measure.AirSides[(int)EMeasAirSide.EnteringWB].Indoor21Enabled = true;
                        Measure.AirSides[(int)EMeasAirSide.EnteringRH].Indoor21Enabled = true;
                        Measure.AirSides[(int)EMeasAirSide.LeavingDB].Indoor21Enabled = true;
                        Measure.AirSides[(int)EMeasAirSide.LeavingWB].Indoor21Enabled = true;
                        Measure.AirSides[(int)EMeasAirSide.LeavingRH].Indoor21Enabled = true;

                        foreach (EMeasNozzle nozzle in Enum.GetValues(typeof(EMeasNozzle)))
                        {
                            Measure.Nozzles[(int)nozzle].ID21Enabled = false;
                        }
                    }
                    else
                    {
                        foreach (EMeasAirSide airSide in Enum.GetValues(typeof(EMeasAirSide)))
                        {
                            Measure.AirSides[(int)airSide].Indoor21Enabled = true;
                        }

                        foreach (EMeasNozzle nozzle in Enum.GetValues(typeof(EMeasNozzle)))
                        {
                            Measure.Nozzles[(int)nozzle].ID21Enabled = true;
                        }
                    }

                    if (sch.Indoor2Mode2 == EIndoorMode.NotUsed)
                    {
                        foreach (EMeasAirSide airSide in Enum.GetValues(typeof(EMeasAirSide)))
                        {
                            Measure.AirSides[(int)airSide].Indoor22Enabled = false;
                        }

                        Measure.AirSides[(int)EMeasAirSide.EnteringDB].Indoor22Enabled = true;
                        Measure.AirSides[(int)EMeasAirSide.EnteringWB].Indoor22Enabled = true;
                        Measure.AirSides[(int)EMeasAirSide.EnteringRH].Indoor22Enabled = true;
                        Measure.AirSides[(int)EMeasAirSide.LeavingDB].Indoor22Enabled = true;
                        Measure.AirSides[(int)EMeasAirSide.LeavingWB].Indoor22Enabled = true;
                        Measure.AirSides[(int)EMeasAirSide.LeavingRH].Indoor22Enabled = true;

                        foreach (EMeasNozzle nozzle in Enum.GetValues(typeof(EMeasNozzle)))
                        {
                            Measure.Nozzles[(int)nozzle].ID22Enabled = false;
                        }
                    }
                    else
                    {
                        foreach (EMeasAirSide airSide in Enum.GetValues(typeof(EMeasAirSide)))
                        {
                            Measure.AirSides[(int)airSide].Indoor22Enabled = true;
                        }

                        foreach (EMeasNozzle nozzle in Enum.GetValues(typeof(EMeasNozzle)))
                        {
                            Measure.Nozzles[(int)nozzle].ID22Enabled = true;
                        }
                    }
                }
            }

            if (sch.OutdoorUse == EOutdoorUse.NotUsed)
            {
                Measure.Outsides[(int)EMeasOutside.EnteringDB].Value = "-";
                Measure.Outsides[(int)EMeasOutside.EnteringWB].Value = "-";
                Measure.Outsides[(int)EMeasOutside.EnteringDP].Value = "-";
                Measure.Outsides[(int)EMeasOutside.EnteringRH].Value = "-";
            }
            else
            {
                Measure.Outsides[(int)EMeasOutside.EnteringDB].Value = "";
                Measure.Outsides[(int)EMeasOutside.EnteringWB].Value = "";
                Measure.Outsides[(int)EMeasOutside.EnteringDP].Value = "";
                Measure.Outsides[(int)EMeasOutside.EnteringRH].Value = "";
            }

            // Note
            Measure.Notes[(int)EMeasNote.Company].Value = Condition.Note.Company;
            Measure.Notes[(int)EMeasNote.TestName].Value = Condition.Note.Name;
            Measure.Notes[(int)EMeasNote.TestNo].Value = Condition.Note.No;
            Measure.Notes[(int)EMeasNote.Observer].Value = Condition.Note.Observer;
            Measure.Notes[(int)EMeasNote.Maker].Value = Condition.Note.Maker;
            Measure.Notes[(int)EMeasNote.Model1].Value = Condition.Note.Model1;
            Measure.Notes[(int)EMeasNote.SerialNo1].Value = Condition.Note.Serial1;
            Measure.Notes[(int)EMeasNote.Model2].Value = Condition.Note.Model2;
            Measure.Notes[(int)EMeasNote.SerialNo2].Value = Condition.Note.Serial2;
            Measure.Notes[(int)EMeasNote.Model3].Value = Condition.Note.Model3;
            Measure.Notes[(int)EMeasNote.SerialNo3].Value = Condition.Note.Serial3;
            Measure.Notes[(int)EMeasNote.ExpDevice].Value = Condition.Note.ExpDevice;
            Measure.Notes[(int)EMeasNote.Refrigerant].Value = Condition.Note.Refrigerant;
            Measure.Notes[(int)EMeasNote.RefCharge].Value = Condition.Note.RefCharge;
            Measure.Notes[(int)EMeasNote.Memo].Value = Condition.Note.Memo;

            // Method
            Measure.Methods[(int)EMeasMethod.Method].Value = $"{Condition.Method.IntegralTime}min / {Condition.Method.IntegralCount}times";
            Measure.Methods[(int)EMeasMethod.ScanTime].Value = $"{Condition.Method.ScanTime} sec";

            //Indoor1 #1
            Measure.Indoors11[(int)EMeasIndoor.Use].Value = EnumHelper.GetNames<EIndoorUse>()[(int)sch.Indoor1Use];
            Measure.Indoors11[(int)EMeasIndoor.Mode].Value = EnumHelper.GetNames<EIndoorMode>()[(int)sch.Indoor1Mode1];
            Measure.Indoors11[(int)EMeasIndoor.Duct].Value = EnumHelper.GetNames<EIndoorDuct>()[(int)sch.Indoor1Duct1];
            Measure.Indoors11[(int)EMeasIndoor.DB].Value = sch.Indoor1DB.ToString("0.00");
            Measure.Indoors11[(int)EMeasIndoor.DB].Unit = Condition.Method.Temperature.ToDescription();
            Measure.Indoors11[(int)EMeasIndoor.WB].Value = sch.Indoor1WB.ToString("0.00");
            Measure.Indoors11[(int)EMeasIndoor.WB].Unit = Condition.Method.Temperature.ToDescription();

            //Indoor1 #2
            Measure.Indoors12[(int)EMeasIndoor.Use].Value = EnumHelper.GetNames<EIndoorUse>()[(int)sch.Indoor1Use];
            Measure.Indoors12[(int)EMeasIndoor.Mode].Value = EnumHelper.GetNames<EIndoorMode>()[(int)sch.Indoor1Mode2];
            Measure.Indoors12[(int)EMeasIndoor.Duct].Value = EnumHelper.GetNames<EIndoorDuct>()[(int)sch.Indoor1Duct2];
            Measure.Indoors12[(int)EMeasIndoor.DB].Value = sch.Indoor1DB.ToString("0.00");
            Measure.Indoors12[(int)EMeasIndoor.DB].Unit = Condition.Method.Temperature.ToDescription();
            Measure.Indoors12[(int)EMeasIndoor.WB].Value = sch.Indoor1WB.ToString("0.00");
            Measure.Indoors12[(int)EMeasIndoor.WB].Unit = Condition.Method.Temperature.ToDescription();

            //Indoor2 #1
            Measure.Indoors21[(int)EMeasIndoor.Use].Value = EnumHelper.GetNames<EIndoorUse>()[(int)sch.Indoor2Use];
            Measure.Indoors21[(int)EMeasIndoor.Mode].Value = EnumHelper.GetNames<EIndoorMode>()[(int)sch.Indoor2Mode1];
            Measure.Indoors21[(int)EMeasIndoor.Duct].Value = EnumHelper.GetNames<EIndoorDuct>()[(int)sch.Indoor2Duct1];
            Measure.Indoors21[(int)EMeasIndoor.DB].Value = sch.Indoor2DB.ToString("0.00");
            Measure.Indoors21[(int)EMeasIndoor.DB].Unit = Condition.Method.Temperature.ToDescription();
            Measure.Indoors21[(int)EMeasIndoor.WB].Value = sch.Indoor2WB.ToString("0.00");
            Measure.Indoors21[(int)EMeasIndoor.WB].Unit = Condition.Method.Temperature.ToDescription();

            //Indoor2 #2
            Measure.Indoors22[(int)EMeasIndoor.Use].Value = EnumHelper.GetNames<EIndoorUse>()[(int)sch.Indoor2Use];
            Measure.Indoors22[(int)EMeasIndoor.Mode].Value = EnumHelper.GetNames<EIndoorMode>()[(int)sch.Indoor2Mode2];
            Measure.Indoors22[(int)EMeasIndoor.Duct].Value = EnumHelper.GetNames<EIndoorDuct>()[(int)sch.Indoor2Duct2];
            Measure.Indoors22[(int)EMeasIndoor.DB].Value = sch.Indoor2DB.ToString("0.00");
            Measure.Indoors22[(int)EMeasIndoor.DB].Unit = Condition.Method.Temperature.ToDescription();
            Measure.Indoors22[(int)EMeasIndoor.WB].Value = sch.Indoor2WB.ToString("0.00");
            Measure.Indoors22[(int)EMeasIndoor.WB].Unit = Condition.Method.Temperature.ToDescription();

            //Outdoor
            Measure.Outdoors[(int)EMeasOutdoor.Use].Value = EnumHelper.GetNames<EOutdoorUse>()[(int)sch.OutdoorUse];
            Measure.Outdoors[(int)EMeasOutdoor.DPSensor].Value = EnumHelper.GetNames<EEtcUse>()[(int)sch.OutdoorDpSensor];
            Measure.Outdoors[(int)EMeasOutdoor.AutoVoltage].Value = EnumHelper.GetNames<EEtcUse>()[(int)sch.OutdoorAutoVolt];
            Measure.Outdoors[(int)EMeasIndoor.DB].Value = sch.OutdoorDB.ToString("0.00");
            Measure.Outdoors[(int)EMeasIndoor.DB].Unit = Condition.Method.Temperature.ToDescription();
            Measure.Outdoors[(int)EMeasIndoor.WB].Value = sch.OutdoorWB.ToString("0.00");
            Measure.Outdoors[(int)EMeasIndoor.WB].Unit = Condition.Method.Temperature.ToDescription();

            for (int i = 0; i < Condition.TC1.Count; i++)
            {
                if (Condition.TC1[i].Name.Trim() != "")
                {
                    Measure.IndoorTC1[i].Value = "";
                    Measure.IndoorTC1[i].Unit = "";
                    Measure.IndoorTC1[i].Name = Condition.TC1[i].Name.Trim();
                }
                else
                {
                    Measure.IndoorTC1[i].Value = "-";
                    Measure.IndoorTC1[i].Unit = "-";
                    Measure.IndoorTC1[i].Name = "-";
                }
            }

            for (int i = 0; i < Condition.TC2.Count; i++)
            {
                if (Condition.TC2[i].Name.Trim() != "")
                {
                    Measure.IndoorTC2[i].Value = "";
                    Measure.IndoorTC2[i].Unit = "";
                    Measure.IndoorTC2[i].Name = Condition.TC2[i].Name.Trim();
                }
                else
                {
                    Measure.IndoorTC2[i].Value = "-";
                    Measure.IndoorTC2[i].Unit = "-";
                    Measure.IndoorTC2[i].Name = "-";
                }
            }

            for (int i = 0; i < Condition.TC3.Count; i++)
            {
                if (Condition.TC3[i].Name.Trim() != "")
                {
                    Measure.OutdoorTC[i].Value = "";
                    Measure.OutdoorTC[i].Unit = "";
                    Measure.OutdoorTC[i].Name = Condition.TC3[i].Name.Trim();
                }
                else
                {
                    Measure.OutdoorTC[i].Value = "-";
                    Measure.OutdoorTC[i].Unit = "-";
                    Measure.OutdoorTC[i].Name = "-";
                }
            }

            for (int i = 0; i < Condition.Pressures.Count; i++)
            {
                if (Condition.Pressures[i].Name.Trim() != "")
                {
                    Measure.Pressures[i].Value = "";
                    Measure.Pressures[i].Unit = "";
                    Measure.Pressures[i].Name = Condition.Pressures[i].Name.Trim();
                }
                else
                {
                    Measure.Pressures[i].Value = "-";
                    Measure.Pressures[i].Unit = "-";
                    Measure.Pressures[i].Name = "-";
                }
            }

            if (sch.IndoorMode == EIndoorMode.Cooling)
            {
                Value.SetUnitTo(EUnitType.Capacity, (int)Condition.Method.CoolingCapacity);
                Value.SetUnitTo(EUnitType.EER_COP, (int)Condition.Method.CoolingCapacity);
            }
            else
            {
                Value.SetUnitTo(EUnitType.Capacity, (int)Condition.Method.HeatingCapacity);
                Value.SetUnitTo(EUnitType.EER_COP, (int)Condition.Method.HeatingCapacity);
            }
        }

        public void RefreshCondition()
        {
            ConditionSchedule sch = Condition.Schedules[Index];

            // Note
            Measure.Notes[(int)EMeasNote.Company].Value = Condition.Note.Company;
            Measure.Notes[(int)EMeasNote.TestName].Value = Condition.Note.Name;
            Measure.Notes[(int)EMeasNote.TestNo].Value = Condition.Note.No;
            Measure.Notes[(int)EMeasNote.Observer].Value = Condition.Note.Observer;
            Measure.Notes[(int)EMeasNote.Maker].Value = Condition.Note.Maker;
            Measure.Notes[(int)EMeasNote.Model1].Value = Condition.Note.Model1;
            Measure.Notes[(int)EMeasNote.SerialNo1].Value = Condition.Note.Serial1;
            Measure.Notes[(int)EMeasNote.Model2].Value = Condition.Note.Model2;
            Measure.Notes[(int)EMeasNote.SerialNo2].Value = Condition.Note.Serial2;
            Measure.Notes[(int)EMeasNote.Model3].Value = Condition.Note.Model3;
            Measure.Notes[(int)EMeasNote.SerialNo3].Value = Condition.Note.Serial3;
            Measure.Notes[(int)EMeasNote.ExpDevice].Value = Condition.Note.ExpDevice;
            Measure.Notes[(int)EMeasNote.Refrigerant].Value = Condition.Note.Refrigerant;
            Measure.Notes[(int)EMeasNote.RefCharge].Value = Condition.Note.RefCharge;
            Measure.Notes[(int)EMeasNote.Memo].Value = Condition.Note.Memo;

            //Indoor1 #1
            Measure.Indoors11[(int)EMeasIndoor.DB].Value = sch.Indoor1DB.ToString("0.00");
            Measure.Indoors11[(int)EMeasIndoor.WB].Value = sch.Indoor1WB.ToString("0.00");

            //Indoor1 #2
            Measure.Indoors12[(int)EMeasIndoor.DB].Value = sch.Indoor1DB.ToString("0.00");
            Measure.Indoors12[(int)EMeasIndoor.WB].Value = sch.Indoor1WB.ToString("0.00");

            //Indoor2 #1
            Measure.Indoors21[(int)EMeasIndoor.DB].Value = sch.Indoor2DB.ToString("0.00");
            Measure.Indoors21[(int)EMeasIndoor.WB].Value = sch.Indoor2WB.ToString("0.00");

            //Indoor2 #2
            Measure.Indoors22[(int)EMeasIndoor.DB].Value = sch.Indoor2DB.ToString("0.00");
            Measure.Indoors22[(int)EMeasIndoor.WB].Value = sch.Indoor2WB.ToString("0.00");

            //Outdoor
            Measure.Outdoors[(int)EMeasIndoor.DB].Value = sch.OutdoorDB.ToString("0.00");
            Measure.Outdoors[(int)EMeasIndoor.WB].Value = sch.OutdoorWB.ToString("0.00");

            for (int i = 0; i < Condition.TC1.Count; i++)
            {
                if (Condition.TC1[i].Name.Trim() != "")
                {
                    Measure.IndoorTC1[i].Value = "";
                    Measure.IndoorTC1[i].Name = Condition.TC1[i].Name.Trim();
                }
                else
                {
                    Measure.IndoorTC1[i].Value = "-";
                    Measure.IndoorTC1[i].Unit = "-";
                    Measure.IndoorTC1[i].Name = "-";
                }
            }

            for (int i = 0; i < Condition.TC2.Count; i++)
            {
                if (Condition.TC2[i].Name.Trim() != "")
                {
                    Measure.IndoorTC2[i].Value = "";
                    Measure.IndoorTC2[i].Name = Condition.TC2[i].Name.Trim();
                }
                else
                {
                    Measure.IndoorTC2[i].Value = "-";
                    Measure.IndoorTC2[i].Name = "-";
                }
            }

            for (int i = 0; i < Condition.TC3.Count; i++)
            {
                if (Condition.TC3[i].Name.Trim() != "")
                {
                    Measure.OutdoorTC[i].Value = "";
                    Measure.OutdoorTC[i].Name = Condition.TC3[i].Name.Trim();
                }
                else
                {
                    Measure.OutdoorTC[i].Value = "-";
                    Measure.OutdoorTC[i].Unit = "-";
                    Measure.OutdoorTC[i].Name = "-";
                }
            }

            for (int i = 0; i < Condition.Pressures.Count; i++)
            {
                if (Condition.Pressures[i].Name.Trim() != "")
                {
                    Measure.Pressures[i].Value = "";
                    Measure.Pressures[i].Name = Condition.Pressures[i].Name.Trim();
                }
                else
                {
                    Measure.Pressures[i].Value = "-";
                    Measure.Pressures[i].Unit = "-";
                    Measure.Pressures[i].Name = "-";
                }
            }
        }

        public void Calcurate()
        {
            InitializeCalc();
            SetPowerMeterValues();
            MainCalc();
            FinalizeCalc();
        }

        private void InitializeCalc()
        {
            SetFixedAtmPressure();
        }

        private void MainCalc()
        {
            CalcNozzle();

            ConditionSchedule sch = Condition.Schedules[Index];
            Dictionary<string, ValueRow> inVar = new Dictionary<string, ValueRow>();
            Dictionary<string, ValueRow> outVar = new Dictionary<string, ValueRow>();

            inVar.Clear();
            inVar.Add("Entering DB", Value.Measured["ID11.Entering.DB"]);
            inVar.Add("Entering WB", Value.Measured["ID11.Entering.WB"]);
            inVar.Add("Leaving DB", Value.Measured["ID11.Leaving.DB"]);
            inVar.Add("Leaving WB", Value.Measured["ID11.Leaving.WB"]);
            inVar.Add("Nozzle1", Value.Calcurated["ID11.Nozzle.1"]);
            inVar.Add("Nozzle2", Value.Calcurated["ID11.Nozzle.2"]);
            inVar.Add("Nozzle3", Value.Calcurated["ID11.Nozzle.3"]);
            inVar.Add("Nozzle4", Value.Calcurated["ID11.Nozzle.4"]);
            inVar.Add("Nozzle Diff Pressure", Value.Measured["ID11.Nozzle.Diff.Pressure"]);
            inVar.Add("Atmospheric Pressure", Value.Measured["ID1.Atm.Pressure"]);
            inVar.Add("Static Pressure", Value.Measured["ID11.Static.Pressure"]);
            inVar.Add("Nozzle Inlet Temp", Value.Measured["ID11.Nozzle.Inlet.Temp"]);

            outVar.Clear();
            outVar.Add("Capacity", Value.Calcurated["ID11.Capacity"]);
            outVar.Add("Drain Weight", Value.Calcurated["ID11.Drain.Weight"]);
            outVar.Add("Latent Heat", Value.Calcurated["ID11.Latent.Heat"]);
            outVar.Add("Sensible Heat", Value.Calcurated["ID11.Sensible.Heat"]);
            outVar.Add("Sensible Heat Ratio", Value.Calcurated["ID11.Sensible.Heat.Ratio"]);
            outVar.Add("Heat Leakage", Value.Calcurated["ID11.Heat.Leakage"]);
            outVar.Add("Entering RH", Value.Calcurated["ID11.Entering.RH"]);
            outVar.Add("Leaving RH", Value.Calcurated["ID11.Leaving.RH"]);
            outVar.Add("Entering Enthalpy", Value.Calcurated["ID11.Entering.Enthalpy"]);
            outVar.Add("Leaving Enthalpy", Value.Calcurated["ID11.Leaving.Enthalpy"]);
            outVar.Add("Entering Humidity Ratio", Value.Calcurated["ID11.Entering.Humidity.Ratio"]);
            outVar.Add("Leaving Humidity Ratio", Value.Calcurated["ID11.Leaving.Humidity.Ratio"]);
            outVar.Add("Leaving Specific Heat", Value.Calcurated["ID11.Leaving.Specific.Heat"]);
            outVar.Add("Leaving Specific Volume", Value.Calcurated["ID11.Leaving.Specific.Volume"]);
            outVar.Add("Air Flow [Lev]", Value.Calcurated["ID11.Air.Flow.Lev"]);
            outVar.Add("Air Velocity [Lev]", Value.Calcurated["ID11.Air.Velocity.Lev"]);

            CalcAir(Resource.Settings.Coefficients[0], sch.Indoor1Mode1, sch.Indoor1Duct1, inVar, outVar);

            if (sch.Indoor1Mode1 == EIndoorMode.NotUsed)
            {
                Value.Calcurated["ID11.Capacity.Ratio"].StoredValue = 0;
            }
            else
            {
                int mode = (sch.Indoor1Mode1 == EIndoorMode.Cooling) ? 0 : 1;

                if (Condition.Rateds[EConditionRated.ID11][mode].Capacity == 0)
                {
                    Value.Calcurated["ID11.Capacity.Ratio"].StoredValue = 0;
                }
                else
                {
                    Value.Calcurated["ID11.Capacity.Ratio"].StoredValue =
                        Value.Calcurated["ID11.Capacity"].Value / Condition.Rateds[EConditionRated.ID11][mode].Capacity * 100.0f;
                }
            }

            inVar.Clear();
            inVar.Add("Entering DB", Value.Measured["ID12.Entering.DB"]);
            inVar.Add("Entering WB", Value.Measured["ID12.Entering.WB"]);
            inVar.Add("Leaving DB", Value.Measured["ID12.Leaving.DB"]);
            inVar.Add("Leaving WB", Value.Measured["ID12.Leaving.WB"]);
            inVar.Add("Nozzle1", Value.Calcurated["ID12.Nozzle.1"]);
            inVar.Add("Nozzle2", Value.Calcurated["ID12.Nozzle.2"]);
            inVar.Add("Nozzle3", Value.Calcurated["ID12.Nozzle.3"]);
            inVar.Add("Nozzle4", Value.Calcurated["ID12.Nozzle.4"]);
            inVar.Add("Nozzle Diff Pressure", Value.Measured["ID12.Nozzle.Diff.Pressure"]);
            inVar.Add("Atmospheric Pressure", Value.Measured["ID1.Atm.Pressure"]);
            inVar.Add("Static Pressure", Value.Measured["ID12.Static.Pressure"]);
            inVar.Add("Nozzle Inlet Temp", Value.Measured["ID12.Nozzle.Inlet.Temp"]);

            outVar.Clear();
            outVar.Add("Capacity", Value.Calcurated["ID12.Capacity"]);
            outVar.Add("Drain Weight", Value.Calcurated["ID12.Drain.Weight"]);
            outVar.Add("Latent Heat", Value.Calcurated["ID12.Latent.Heat"]);
            outVar.Add("Sensible Heat", Value.Calcurated["ID12.Sensible.Heat"]);
            outVar.Add("Sensible Heat Ratio", Value.Calcurated["ID12.Sensible.Heat.Ratio"]);
            outVar.Add("Heat Leakage", Value.Calcurated["ID12.Heat.Leakage"]);
            outVar.Add("Entering RH", Value.Calcurated["ID12.Entering.RH"]);
            outVar.Add("Leaving RH", Value.Calcurated["ID12.Leaving.RH"]);
            outVar.Add("Entering Enthalpy", Value.Calcurated["ID12.Entering.Enthalpy"]);
            outVar.Add("Leaving Enthalpy", Value.Calcurated["ID12.Leaving.Enthalpy"]);
            outVar.Add("Entering Humidity Ratio", Value.Calcurated["ID12.Entering.Humidity.Ratio"]);
            outVar.Add("Leaving Humidity Ratio", Value.Calcurated["ID12.Leaving.Humidity.Ratio"]);
            outVar.Add("Leaving Specific Heat", Value.Calcurated["ID12.Leaving.Specific.Heat"]);
            outVar.Add("Leaving Specific Volume", Value.Calcurated["ID12.Leaving.Specific.Volume"]);
            outVar.Add("Air Flow [Lev]", Value.Calcurated["ID12.Air.Flow.Lev"]);
            outVar.Add("Air Velocity [Lev]", Value.Calcurated["ID12.Air.Velocity.Lev"]);

            CalcAir(Resource.Settings.Coefficients[1], sch.Indoor1Mode2, sch.Indoor1Duct2, inVar, outVar);

            if (sch.Indoor1Mode2 == EIndoorMode.NotUsed)
            {
                Value.Calcurated["ID12.Capacity.Ratio"].StoredValue = 0;
            }
            else
            {
                int mode = (sch.Indoor1Mode2 == EIndoorMode.Cooling) ? 0 : 1;

                if (Condition.Rateds[EConditionRated.ID12][mode].Capacity == 0)
                {
                    Value.Calcurated["ID12.Capacity.Ratio"].StoredValue = 0;
                }
                else
                {
                    Value.Calcurated["ID12.Capacity.Ratio"].StoredValue =
                        Value.Calcurated["ID12.Capacity"].Value / Condition.Rateds[EConditionRated.ID12][mode].Capacity * 100.0f;
                }
            }

            inVar.Clear();
            inVar.Add("Entering DB", Value.Measured["ID21.Entering.DB"]);
            inVar.Add("Entering WB", Value.Measured["ID21.Entering.WB"]);
            inVar.Add("Leaving DB", Value.Measured["ID21.Leaving.DB"]);
            inVar.Add("Leaving WB", Value.Measured["ID21.Leaving.WB"]);
            inVar.Add("Nozzle1", Value.Calcurated["ID21.Nozzle.1"]);
            inVar.Add("Nozzle2", Value.Calcurated["ID21.Nozzle.2"]);
            inVar.Add("Nozzle3", Value.Calcurated["ID21.Nozzle.3"]);
            inVar.Add("Nozzle4", Value.Calcurated["ID21.Nozzle.4"]);
            inVar.Add("Nozzle Diff Pressure", Value.Measured["ID21.Nozzle.Diff.Pressure"]);
            inVar.Add("Atmospheric Pressure", Value.Measured["ID2.Atm.Pressure"]);
            inVar.Add("Static Pressure", Value.Measured["ID21.Static.Pressure"]);
            inVar.Add("Nozzle Inlet Temp", Value.Measured["ID21.Nozzle.Inlet.Temp"]);

            outVar.Clear();
            outVar.Add("Capacity", Value.Calcurated["ID21.Capacity"]);
            outVar.Add("Drain Weight", Value.Calcurated["ID21.Drain.Weight"]);
            outVar.Add("Latent Heat", Value.Calcurated["ID21.Latent.Heat"]);
            outVar.Add("Sensible Heat", Value.Calcurated["ID21.Sensible.Heat"]);
            outVar.Add("Sensible Heat Ratio", Value.Calcurated["ID21.Sensible.Heat.Ratio"]);
            outVar.Add("Heat Leakage", Value.Calcurated["ID21.Heat.Leakage"]);
            outVar.Add("Entering RH", Value.Calcurated["ID21.Entering.RH"]);
            outVar.Add("Leaving RH", Value.Calcurated["ID21.Leaving.RH"]);
            outVar.Add("Entering Enthalpy", Value.Calcurated["ID21.Entering.Enthalpy"]);
            outVar.Add("Leaving Enthalpy", Value.Calcurated["ID21.Leaving.Enthalpy"]);
            outVar.Add("Entering Humidity Ratio", Value.Calcurated["ID21.Entering.Humidity.Ratio"]);
            outVar.Add("Leaving Humidity Ratio", Value.Calcurated["ID21.Leaving.Humidity.Ratio"]);
            outVar.Add("Leaving Specific Heat", Value.Calcurated["ID21.Leaving.Specific.Heat"]);
            outVar.Add("Leaving Specific Volume", Value.Calcurated["ID21.Leaving.Specific.Volume"]);
            outVar.Add("Air Flow [Lev]", Value.Calcurated["ID21.Air.Flow.Lev"]);
            outVar.Add("Air Velocity [Lev]", Value.Calcurated["ID21.Air.Velocity.Lev"]);

            CalcAir(Resource.Settings.Coefficients[2], sch.Indoor2Mode1, sch.Indoor2Duct1, inVar, outVar);


            if (sch.Indoor2Mode1 == EIndoorMode.NotUsed)
            {
                Value.Calcurated["ID21.Capacity.Ratio"].StoredValue = 0;
            }
            else
            {
                int mode = (sch.Indoor2Mode1 == EIndoorMode.Cooling) ? 0 : 1;

                if (Condition.Rateds[EConditionRated.ID21][mode].Capacity == 0)
                {
                    Value.Calcurated["ID21.Capacity.Ratio"].StoredValue = 0;
                }
                else
                {
                    Value.Calcurated["ID21.Capacity.Ratio"].StoredValue =
                        Value.Calcurated["ID21.Capacity"].Value / Condition.Rateds[EConditionRated.ID21][mode].Capacity * 100.0f;
                }
            }

            inVar.Clear();
            inVar.Add("Entering DB", Value.Measured["ID22.Entering.DB"]);
            inVar.Add("Entering WB", Value.Measured["ID22.Entering.WB"]);
            inVar.Add("Leaving DB", Value.Measured["ID22.Leaving.DB"]);
            inVar.Add("Leaving WB", Value.Measured["ID22.Leaving.WB"]);
            inVar.Add("Nozzle1", Value.Calcurated["ID22.Nozzle.1"]);
            inVar.Add("Nozzle2", Value.Calcurated["ID22.Nozzle.2"]);
            inVar.Add("Nozzle3", Value.Calcurated["ID22.Nozzle.3"]);
            inVar.Add("Nozzle4", Value.Calcurated["ID22.Nozzle.4"]);
            inVar.Add("Nozzle Diff Pressure", Value.Measured["ID22.Nozzle.Diff.Pressure"]);
            inVar.Add("Atmospheric Pressure", Value.Measured["ID2.Atm.Pressure"]);
            inVar.Add("Static Pressure", Value.Measured["ID22.Static.Pressure"]);
            inVar.Add("Nozzle Inlet Temp", Value.Measured["ID22.Nozzle.Inlet.Temp"]);

            outVar.Clear();
            outVar.Add("Capacity", Value.Calcurated["ID22.Capacity"]);
            outVar.Add("Drain Weight", Value.Calcurated["ID22.Drain.Weight"]);
            outVar.Add("Latent Heat", Value.Calcurated["ID22.Latent.Heat"]);
            outVar.Add("Sensible Heat", Value.Calcurated["ID22.Sensible.Heat"]);
            outVar.Add("Sensible Heat Ratio", Value.Calcurated["ID22.Sensible.Heat.Ratio"]);
            outVar.Add("Heat Leakage", Value.Calcurated["ID22.Heat.Leakage"]);
            outVar.Add("Entering RH", Value.Calcurated["ID22.Entering.RH"]);
            outVar.Add("Leaving RH", Value.Calcurated["ID22.Leaving.RH"]);
            outVar.Add("Entering Enthalpy", Value.Calcurated["ID22.Entering.Enthalpy"]);
            outVar.Add("Leaving Enthalpy", Value.Calcurated["ID22.Leaving.Enthalpy"]);
            outVar.Add("Entering Humidity Ratio", Value.Calcurated["ID22.Entering.Humidity.Ratio"]);
            outVar.Add("Leaving Humidity Ratio", Value.Calcurated["ID22.Leaving.Humidity.Ratio"]);
            outVar.Add("Leaving Specific Heat", Value.Calcurated["ID22.Leaving.Specific.Heat"]);
            outVar.Add("Leaving Specific Volume", Value.Calcurated["ID22.Leaving.Specific.Volume"]);
            outVar.Add("Air Flow [Lev]", Value.Calcurated["ID22.Air.Flow.Lev"]);
            outVar.Add("Air Velocity [Lev]", Value.Calcurated["ID22.Air.Velocity.Lev"]);

            CalcAir(Resource.Settings.Coefficients[3], sch.Indoor2Mode2, sch.Indoor2Duct2, inVar, outVar);

            if (sch.Indoor2Mode2 == EIndoorMode.NotUsed)
            {
                Value.Calcurated["ID22.Capacity.Ratio"].StoredValue = 0;
            }
            else
            {
                int mode = (sch.Indoor2Mode2 == EIndoorMode.Cooling) ? 0 : 1;

                if (Condition.Rateds[EConditionRated.ID22][mode].Capacity == 0)
                {
                    Value.Calcurated["ID22.Capacity.Ratio"].StoredValue = 0;
                }
                else
                {
                    Value.Calcurated["ID22.Capacity.Ratio"].StoredValue =
                        Value.Calcurated["ID22.Capacity"].Value / Condition.Rateds[EConditionRated.ID22][mode].Capacity * 100.0f;
                }
            }

            inVar.Clear();
            inVar.Add("Entering DB", Value.Measured["OD.Entering.DB"]);
            inVar.Add("Entering WB", Value.Measured["OD.Entering.WB"]);
            inVar.Add("Atmospheric Pressure", Value.Measured["ID1.Atm.Pressure"]);

            outVar.Clear();
            outVar.Add("Entering RH", Value.Calcurated["OD.Entering.RH"]);

            CalcAir(null, EIndoorMode.Cooling, EIndoorDuct.NotUsed, inVar, outVar);

            Value.Calcurated["Total.Capacity"].StoredValue =
                (Value.Calcurated["ID11.Capacity"].Raw + Value.Calcurated["ID12.Capacity"].Raw +
                Value.Calcurated["ID21.Capacity"].Raw + Value.Calcurated["ID22.Capacity"].Raw);

            if (Value.Calcurated["Total.Power"].Raw == 0)
            {
                Value.Calcurated["Total.EER_COP"].StoredValue = 0f;
            }
            else
            {
                Value.Calcurated["Total.EER_COP"].StoredValue =
                    Value.Calcurated["Total.Capacity"].Raw / Value.Calcurated["Total.Power"].Raw;
            }
        }

        private void FinalizeCalc()
        {
            CalcTotalRatio();
            CalcOutdoorDP();    // DP Sensor 사용시
            //CalcOutdoorRH();  // RH Sensor 사용시

            Value.Calcurated["OD.Sat.Dis.Temp1"].StoredValue = 0;
            Value.Calcurated["OD.Sat.Suc.Temp1"].StoredValue = 0;
            Value.Calcurated["OD.Sub.Cooling1"].StoredValue = 0;
            Value.Calcurated["OD.Super.Heat1"].StoredValue = 0;
            Value.Calcurated["OD.Sat.Dis.Temp2"].StoredValue = 0;
            Value.Calcurated["OD.Sat.Suc.Temp2"].StoredValue = 0;
            Value.Calcurated["OD.Sub.Cooling2"].StoredValue = 0;
            Value.Calcurated["OD.Super.Heat2"].StoredValue = 0;
        }

        private void CalcNozzle()
        {
            UInt16 value = (UInt16)(((UInt16)Value.Measured["PLC1.01"].Raw) >> 12);
            Value.Calcurated["ID11.Nozzle"].StoredValue = value;
            Value.Calcurated["ID11.Nozzle.1"].StoredValue = (UlBits.Get((byte)value, 0) == true) ? 1 : 0;
            Value.Calcurated["ID11.Nozzle.2"].StoredValue = (UlBits.Get((byte)value, 1) == true) ? 1 : 0;
            Value.Calcurated["ID11.Nozzle.3"].StoredValue = (UlBits.Get((byte)value, 2) == true) ? 1 : 0;
            Value.Calcurated["ID11.Nozzle.4"].StoredValue = (UlBits.Get((byte)value, 3) == true) ? 1 : 0;

            value = (UInt16)((((UInt16)Value.Measured["PLC1.02"].Raw) >> 1) & 0x000F);
            Value.Calcurated["ID12.Nozzle"].StoredValue = value;
            Value.Calcurated["ID12.Nozzle.1"].StoredValue = (UlBits.Get((byte)value, 0) == true) ? 1 : 0;
            Value.Calcurated["ID12.Nozzle.2"].StoredValue = (UlBits.Get((byte)value, 1) == true) ? 1 : 0;
            Value.Calcurated["ID12.Nozzle.3"].StoredValue = (UlBits.Get((byte)value, 2) == true) ? 1 : 0;
            Value.Calcurated["ID12.Nozzle.4"].StoredValue = (UlBits.Get((byte)value, 3) == true) ? 1 : 0;

            value = (UInt16)(((((UInt16)Value.Measured["PLC1.03"].Raw) & 0xC000) >> 14) | ((((UInt16)Value.Measured["PLC1.04"].Raw) & 0x0003) << 2));
            Value.Calcurated["ID21.Nozzle"].StoredValue = value;
            Value.Calcurated["ID21.Nozzle.1"].StoredValue = (UlBits.Get((byte)value, 0) == true) ? 1 : 0;
            Value.Calcurated["ID21.Nozzle.2"].StoredValue = (UlBits.Get((byte)value, 1) == true) ? 1 : 0;
            Value.Calcurated["ID21.Nozzle.3"].StoredValue = (UlBits.Get((byte)value, 2) == true) ? 1 : 0;
            Value.Calcurated["ID21.Nozzle.4"].StoredValue = (UlBits.Get((byte)value, 3) == true) ? 1 : 0;

            value = (UInt16)((((UInt16)Value.Measured["PLC1.04"].Raw) >> 3) & 0x000F);
            Value.Calcurated["ID22.Nozzle"].StoredValue = value;
            Value.Calcurated["ID22.Nozzle.1"].StoredValue = (UlBits.Get((byte)value, 0) == true) ? 1 : 0;
            Value.Calcurated["ID22.Nozzle.2"].StoredValue = (UlBits.Get((byte)value, 1) == true) ? 1 : 0;
            Value.Calcurated["ID22.Nozzle.3"].StoredValue = (UlBits.Get((byte)value, 2) == true) ? 1 : 0;
            Value.Calcurated["ID22.Nozzle.4"].StoredValue = (UlBits.Get((byte)value, 3) == true) ? 1 : 0;
        }

        private void CalcTotalRatio()
        {
            // Capacity Ratio
            try
            {
                Value.Calcurated["Total.Capacity.Ratio"].StoredValue =
                    Value.Calcurated["Total.Capacity"].Value / Value.Const["Total.Rated.Capacity"].Raw * 100f;
            }
            catch
            {
                Value.Calcurated["Total.Capacity.Ratio"].StoredValue = 0;
            }

            // Power Input Ratio
            try
            {
                Value.Calcurated["Total.Power.Ratio"].StoredValue =
                    Value.Calcurated["Total.Power"].Raw / Value.Const["Total.Rated.Power"].Raw * 100f;
            }
            catch
            {
                Value.Calcurated["Total.Power.Ratio"].StoredValue = 0;
            }

            // EER/COP Ratio
            try
            {
                Value.Calcurated["Total.EER_COP.Ratio"].StoredValue =
                    Value.Calcurated["Total.EER_COP"].Value / Value.Const["Total.Rated.EER_COP"].Raw * 100f;
            }
            catch
            {
                Value.Calcurated["Total.EER_COP.Ratio"].StoredValue = 0;
            }

            // Current Ratio
            try
            {
                Value.Calcurated["Total.Current.Ratio"].StoredValue =
                    Value.Calcurated["Total.Current"].Raw / Value.Const["Total.Rated.Current"].Raw * 100f;
            }
            catch
            {
                Value.Calcurated["Total.Current.Ratio"].StoredValue = 0;
            }
        }

        private void CalcOutdoorDP()
        {
            ConditionSchedule sch = Condition.Schedules[Index];
            double OD1_EnteringDB = Value.Measured["OD.Entering.DB"].Raw;
            double OD1_EnteringWB = Value.Measured["OD.Entering.WB"].Raw;
            double ID1_AtmosphericPressure = Value.Measured["ID1.Atm.Pressure"].Raw;
            double OD1_EnteringDP = Value.Measured["OD.Entering.DP"].Raw;

            // DP 사용이거나 Outdoor Entering DB가 0도 미만일 경우 측정값 사용. 아닌경우 계산값 사용
            if ((sch.OutdoorDpSensor != EEtcUse.Use) && (OD1_EnteringDB >= 0))
            {
                double epws = AirFormula.GetPws(OD1_EnteringWB);                    // Entering WB 기준 포화수증기압
                double exs = AirFormula.GetXs(ID1_AtmosphericPressure, epws);       // Entering WB 기준 포화절대습도                
                double exw = AirFormula.GetXw(OD1_EnteringDB, OD1_EnteringWB, exs); // Entering 절대습도

                var dp = AirFormula.GetDp(ID1_AtmosphericPressure, OD1_EnteringDB, exw);

                Value.Measured["OD.Entering.DP"].Value = (float)dp;
            }

            if (OD1_EnteringDB < 0)
            {
                var pws = AirFormula.GetPws(OD1_EnteringDP);
                var pws2 = AirFormula.GetPws(OD1_EnteringDB);

                var xs = AirFormula.GetXs(AirFormula.Pb, pws);
                var rh = AirFormula.GetRh(AirFormula.Pb, pws2, xs, 0, OD1_EnteringDB);

                Value.Calcurated["OD.Entering.RH"].Value = (float)rh;
            }
        }

        private void CalcOutdoorRH()
        {
            ConditionSchedule sch = Condition.Schedules[Index];
            double OD1_EnteringDB = Value.Measured["OD.Entering.DB"].Raw;
            double OD1_EnteringWB = Value.Measured["OD.Entering.WB"].Raw;
            double ID1_AtmosphericPressure = Value.Measured["ID1.Atm.Pressure"].Raw;
            double OD1_EnteringRH = Value.Measured["OD.Entering.RH"].Raw;

            // RH 사용이거나 Outdoor Entering DB가 0도 미만일 경우 측정값 사용. 아닌경우 계산값 사용
            if (sch.OutdoorDpSensor == EEtcUse.Use || OD1_EnteringDB < 0)
                Value.Measured["OD.Entering.RH"].Value = (float)OD1_EnteringRH;

            // 노점 온도 계산
            if (OD1_EnteringDB >= 0)
            {
                double epws = AirFormula.GetPws(OD1_EnteringWB);                    // Entering WB 기준 포화수증기압
                double exs = AirFormula.GetXs(ID1_AtmosphericPressure, epws);       // Entering WB 기준 포화절대습도
                double exw = AirFormula.GetXw(OD1_EnteringDB, OD1_EnteringWB, exs); // Entering 절대습도

                var dp = AirFormula.GetDp(ID1_AtmosphericPressure, OD1_EnteringDB, exw);

                Value.Calcurated["OD.Entering.DP"].Value = (float)dp;
            }
            else
            {
                double epws = AirFormula.GetPws(OD1_EnteringDB);         // Entering WB 기준 포화수증기압
                var wb = AirFormula.GetWb(AirFormula.Pb, epws, OD1_EnteringDB, OD1_EnteringRH);

                epws = AirFormula.GetPws(wb);                            // Entering WB 기준 포화수증기압
                double exs = AirFormula.GetXs(AirFormula.Pb, epws);      // Entering WB 기준 포화절대습도                
                double exw = AirFormula.GetXwn(exs, OD1_EnteringDB, wb); // Entering 절대습도

                var dp = AirFormula.GetDp(AirFormula.Pb, OD1_EnteringDB, exw);

                Value.Calcurated["OD.Entering.DP"].Value = (float)dp;
            }
        }

        #region CalcWater
        //private void CalcWater(ModeKind2 mode, UseKind nrGtUse, Dictionary<string, MeasureValue> i, Dictionary<string, MeasureValue> o, bool isLoadSide)
        //{
        //    var waterInletTemp = i["Water Inlet Temperature"].Value;
        //    var waterOutletTemp = i["Water Outlet Temperature"].Value;

        //    var waterFlowRate = i["Water Flow Rate"].Value;
        //    var waterDensity = WaterFormula.GetWaterDensity(waterInletTemp);
        //    var massWaterFlow = WaterFormula.GetMassWaterFlow(waterFlowRate, waterDensity);

        //    var specificHeat = WaterFormula.GetSpecificHeat(waterInletTemp);

        //    var pressureDrop = i["Pressure Drop"].Value;
        //    var pumpPower = 0d;
        //    if (nrGtUse == UseKind.Use)
        //        pumpPower = WaterFormula.GetPumpPower(waterFlowRate, pressureDrop);

        //    var deltaT = 0d;
        //    var netCapacity = 0d;
        //    if (mode == ModeKind2.Cooling)
        //    {
        //        if (isLoadSide == true)
        //        {
        //            deltaT = waterInletTemp - waterOutletTemp;
        //            netCapacity = -pumpPower;
        //        }
        //        // Heat Source
        //        else
        //        {
        //            deltaT = waterOutletTemp - waterInletTemp;
        //            netCapacity = pumpPower;
        //        }
        //    }
        //    // Heating
        //    else
        //    {
        //        if (isLoadSide == true)
        //        {
        //            deltaT = waterOutletTemp - waterInletTemp;
        //            netCapacity = pumpPower;
        //        }
        //        else
        //        {
        //            deltaT = waterInletTemp - waterOutletTemp;
        //            netCapacity = -pumpPower;
        //        }
        //    }

        //    var capacity = massWaterFlow * specificHeat * deltaT * 1000;
        //    netCapacity += capacity;

        //    o["Net Capacity"].Value = netCapacity;
        //    o["Capacity"].Value = capacity;

        //    var waterFlowRateLs = WaterFormula.GetWaterFlowRateToLs(waterFlowRate);
        //    o["Water Flow Rate"].Value = waterFlowRateLs;

        //    o["Specific Heat"].Value = specificHeat;

        //    o["Water Density"].Value = waterDensity;

        //    o["Water Diff. Temperature"].Value = deltaT;

        //    o["Pressure Drop"].Value = WaterFormula.GetPressureDropTokPa(pressureDrop);
        //    o["Pump Power"].Value = pumpPower;
        //}
        #endregion

        private void CalcAir(
            CoefficientDataRow coefficient,
            EIndoorMode mode,
            EIndoorDuct duct,
            Dictionary<string, ValueRow> i,
            Dictionary<string, ValueRow> o)
        {
            if (mode == EIndoorMode.NotUsed)
            {
                foreach (KeyValuePair<string, ValueRow> row in o)
                {
                    if (row.Value != null)
                    {
                        row.Value.StoredValue = 0;
                    }
                }
                return;
            }

            double etd = i["Entering DB"].Raw;
            double etw = i["Entering WB"].Raw;

            double pb = i["Atmospheric Pressure"].Raw;

            double epds = AirFormula.GetPws(etd);         // Entering DB 기준 포화수증기압
            double epws = AirFormula.GetPws(etw);         // Entering WB 기준 포화수증기압
            double exs = AirFormula.GetXs(pb, epws);      // Entering WB 기준 포화절대습도
            double exw = AirFormula.GetXw(etd, etw, exs); // Entering 절대습도


            // ### 2-1. Entering RH (상대습도)
            o["Entering RH"].StoredValue = (float)AirFormula.GetRh(pb, epds, exw, AirFormula.GetU(exw, exs), etd);

            if (coefficient == null) return;

            double coefCapacity = (mode == EIndoorMode.Cooling) ? coefficient.CoolingCapacity : coefficient.HeatingCapacity;
            double coefAirFlow = coefficient.Airflow;

            double ltd = i["Leaving DB"].Raw;
            double ltw = i["Leaving WB"].Raw;

            double deltaT = etd - ltd;
            if (mode == EIndoorMode.Heating)
                deltaT = -deltaT;
            double qLoss = (float)GetQLoss(coefficient, mode, duct, deltaT);


            // ### 1-1. Capacity (Qac)
            double qac = 0d;

            double[] noz = GetNozzleCheckedList(i, "Nozzle1", "Nozzle2", "Nozzle3", "Nozzle4");
            double[] d = GetNozzleValueList(coefficient, noz.Length);
            //double pn = i["Nozzle Diff Pressure"].Convert((int)EUnitDiffPressure.kg_cm2);
            double pn = i["Nozzle Diff Pressure"].Raw;
            //double pc = i["Static Pressure"].Convert((int)EUnitDiffPressure.kg_cm2);
            double pc = i["Static Pressure"].Raw;
            double rho5 = AirFormula.GetRho5(ltd, ltw, pc, pb);

            double lpds = AirFormula.GetPws(ltd);    // Leaving DB 기준 포화수증기압
            double lpws = AirFormula.GetPws(ltw);    // Leaving WB 기준 포화수증기압
            double lxs = AirFormula.GetXs(pb, lpws); // Leaving WB 기준 포화절대습도
            double lxw = 0d;
            if (mode == EIndoorMode.Heating)
                lxw = exw;
            else
                lxw = AirFormula.GetXw(ltd, ltw, lxs); // Leaving 절대습도

            double nozzleInletTemp = i["Nozzle Inlet Temp"].Raw;
            double nvw = AirFormula.GetVw(AirFormula.GetVd(pb, nozzleInletTemp, lxw), lxw); // Nozzle Inlet Temp. 기준 비체적(습공기)
            double[] vx = AirFormula.GetVx(d, pn, pb, rho5, nozzleInletTemp, nvw);          // Nozzle Inlet 기준 노즐통과풍속

            double vw = AirFormula.GetVw(AirFormula.GetVd(pb, ltd, lxw), lxw);              // Leaving DB 기준 비체적(습공기)
            double yex = AirFormula.GetYex(nozzleInletTemp, ltw, pn, pc, pb);               // Nozzle Inlet 기준 팽창계수
            double ga = AirFormula.GetGa(noz, vx, d, yex, pn, AirFormula.GetVd(pb, nozzleInletTemp, lxw)); // Original 풍량
            ga *= coefAirFlow;

            double vmDry = AirFormula.GetVmDry(ga, vw, nvw, exw);                               // 체적 풍량
            double maDry = AirFormula.GetMaDry(ga, AirFormula.GetVd(pb, nozzleInletTemp, lxw)); // 질량 풍량

            if (mode == EIndoorMode.Cooling)
            {
                double haI = AirFormula.GetHa(etd, exw);
                double haO = AirFormula.GetHa(ltd, lxw);

                qac = AirFormula.GetQacCold(maDry, AirFormula.GetVd(pb, nozzleInletTemp, lxw), exw, haI, haO, qLoss); // 체적 풍량, 출구측, 입구측, 입구측, 출구측, 열손실
            }
            // Heat
            else
            {
                qac = AirFormula.GetQacHeat(maDry, AirFormula.GetVd(pb, nozzleInletTemp, lxw), lxw, etd, ltd, qLoss);
            }
            qac *= coefCapacity; // Capacity 보정계수 적용

            o["Capacity"].StoredValue = (float)qac;


            // ### 1-2. Rated Capacity
            //o["Rated Capacity"].StoredValue = ratedCondition.Capacity;


            // ### 1-3. Capacity Ratio (Capacity / Rated Capacity)
            //o["Capacity Ratio"].StoredValue = qac / ratedCondition.Capacity * 100d;


            // ### 1-8. Drain Weight (Gcw)
            double gcw = 0d;
            if (mode == EIndoorMode.Cooling)
            {
                double xwI = AirFormula.GetXw(etd, etw, exs);
                double xwO = AirFormula.GetXw(ltd, ltw, lxs);

                gcw = AirFormula.GetGcw(maDry, xwI, xwO);
            }
            // Heat
            else
            {
                gcw = 0;
            }
            o["Drain Weight"].StoredValue = (float)gcw;


            // ### 1-5. Latent Heat (Qcc)
            double qcc = 0d;

            if (mode == EIndoorMode.Cooling)
            {
                qcc = AirFormula.GetQcc(qac, gcw);
            }
            // Heat
            else
            {
                qcc = 0;
            }
            o["Latent Heat"].StoredValue = (float)qcc;


            // ### 1-4. Sensible Heat (Qs)
            double qs = 0d;

            if (mode == EIndoorMode.Cooling)
            {
                qs = qac - qcc;
            }
            // Heat
            else
            {
                qs = qac;
            }
            o["Sensible Heat"].StoredValue = (float)qs;


            // ### 1-6. Sensible Heat Ratio (SHR)
            o["Sensible Heat Ratio"].StoredValue = (float)AirFormula.GetShr(qac, qs);


            // ### 1-7. Heat Leakage (Qloss)
            o["Heat Leakage"].StoredValue = (float)qLoss;


            // ### 2-2. Leaving RH (상대습도)
            //o["Leaving RH"].Value = AirFormula.GetRh(pb, lpds, lxw, AirFormula.GetU(lxw, lxs), ltd);
            o["Leaving RH"].StoredValue = (float)AirFormula.GetRh(pb, lpds, AirFormula.GetXw(ltd, ltw, lxs), AirFormula.GetU(lxw, lxs), ltd);


            // ### 2-3. Entering Enthalpy (Ha)
            o["Entering Enthalpy"].StoredValue = (float)AirFormula.GetHa(etd, exw);


            // ### 2-4. Leaving Enthalpy (Ha)
            o["Leaving Enthalpy"].StoredValue = (float)AirFormula.GetHa(ltd, lxw);


            // ### 2-5. Entering Humidity Ratio
            o["Entering Humidity Ratio"].StoredValue = (float)exw;


            // ### 2-6. Leaving Humidity Ratio
            o["Leaving Humidity Ratio"].StoredValue = (float)lxw;


            // ### 2-7. Leaving Specific Heat
            o["Leaving Specific Heat"].StoredValue = (float)AirFormula.GetCp(lxw);


            // ### 2-8. Leaving Specific Volume
            o["Leaving Specific Volume"].StoredValue = (float)AirFormula.GetVw(AirFormula.GetVd(pb, ltd, lxw), lxw);


            // KDN 추가 (18.04.10) {{{
            // ### 2-11. Entering Specific Heat
            //if (o.ContainsKey("Entering Specific Heat") == true)
            //    o["Entering Specific Heat"].StoredValue = (float)AirFormula.GetCp(exw);


            // ### 2-12. Entering Specific Volume
            //if (o.ContainsKey("Entering Specific Volume") == true)
            //    o["Entering Specific Volume"].StoredValue = (float)AirFormula.GetVw(AirFormula.GetVd(pb, etd, exw), exw);


            // ### 2-13. Leaving Density
            //if (o.ContainsKey("Leaving Density") == true)
            //    o["Leaving Density"].StoredValue = (float)(1d / (AirFormula.GetVw(AirFormula.GetVd(pb, ltd, lxw), lxw)));
            // }}}


            // ### 3-1. Air Flow [Lev]
            o["Air Flow [Lev]"].StoredValue = (float)vmDry;


            // ### 3-2. Fan Power
            //var fanpower = 0d;
            //if (fanPowerUse == UseKind.Use)
            //    fanpower = ((vmDry / 60 * 1000) * 10e-3 * (Math.Abs(pc) * 9.80661358d)) / 0.3d;
            //o["Fan Power"].StoredValue = fanpower;


            // ### 3-3. Air Velocity [Lev]


            // ### 10-1. 냉방 시험 시 입구 절대 습도보다 출구 절대 습도가 높을 때
            if (mode == EIndoorMode.Cooling && exw <= lxw)
            {
                //var capacity = qac - Math.Abs(qcc);
                //o["Capacity"].Storage.Set(capacity);
                o["Drain Weight"].Storage.Set(0);
                o["Latent Heat"].Storage.Set(0);
                o["Sensible Heat"].Storage.Set((float)qac);
                o["Sensible Heat Ratio"].Storage.Set(100);
            }


            // ### 열교환기 관련 계산 추가 (2017.08.19)
            // ### 11-1. Capacity (Qac)
            double qLoss2 = (float)GetQLoss(coefficient, mode, duct, deltaT);

            double qac2 = 0d;

            double pb2 = pb - pc / 13.6d;
            double lxs2 = AirFormula.GetXs(pb2, lpws);
            double lxw2 = 0d;
            if (mode == EIndoorMode.Heating)
                lxw2 = exw;
            else
                lxw2 = AirFormula.GetXw(ltd, ltw, lxs2);

            double nvw2 = AirFormula.GetVw(AirFormula.GetVd(pb2, nozzleInletTemp, lxw2), lxw2);
            double[] vx2 = AirFormula.GetVx(d, pn, pb2, rho5, nozzleInletTemp, nvw2);

            double vw2 = AirFormula.GetVw(AirFormula.GetVd(pb, etd, exw), exw);
            double vw3 = AirFormula.GetVw(AirFormula.GetVd(pb2, ltd, lxw2), lxw2);
            double yex2 = AirFormula.GetYex(nozzleInletTemp, ltw, pn, pc, pb2);
            double ga2 = AirFormula.GetGa(noz, vx2, d, yex2, pn, AirFormula.GetVd(pb2, nozzleInletTemp, lxw2));
            ga2 *= coefAirFlow;

            double vmDry2 = AirFormula.GetVmDry(ga2, vw2, nvw2, exw);                               // 체적 풍량.1
            double vmDry3 = AirFormula.GetVmDry(ga2, vw3, nvw2, exw);                               // 체적 풍량.2
            double maDry2 = AirFormula.GetMaDry(ga2, AirFormula.GetVd(pb2, nozzleInletTemp, lxw2)); // 질량 풍량

            if (mode == EIndoorMode.Cooling)
            {
                double haI = AirFormula.GetHa(etd, exw);
                double haO = AirFormula.GetHa(ltd, lxw2);

                qac2 = AirFormula.GetQacCold(maDry2, AirFormula.GetVd(pb2, nozzleInletTemp, lxw2), exw, haI, haO, qLoss2);
            }
            // Heat
            else
            {
                qac2 = AirFormula.GetQacHeat(maDry2, AirFormula.GetVd(pb2, nozzleInletTemp, lxw2), lxw, etd, ltd, qLoss2);
            }
            qac2 *= coefCapacity;

            // o["Capacity"].StoredValue = qac2;


            // ### 11-8. Drain Weight (Gcw2)
            double gcw2 = 0d;
            if (mode == EIndoorMode.Cooling)
            {
                double xwI = AirFormula.GetXw(etd, etw, exs);
                double xwO = AirFormula.GetXw(ltd, ltw, lxs2);

                gcw2 = AirFormula.GetGcw(maDry2, xwI, xwO);
            }
            // Heat
            else
            {
                gcw2 = 0;
            }
            //o["Drain Weight"].StoredValue = gcw2;


            // ### 11-5. Latent Heat (Qcc2)
            double qcc2 = 0d;

            if (mode == EIndoorMode.Cooling)
            {
                qcc2 = AirFormula.GetQcc(qac2, gcw2);
            }
            // Heat
            else
            {
                qcc2 = 0;
            }
            //o["Latent Heat"].StoredValue = qcc2;


            // ### 11-4. Sensible Heat (Qs2)
            double qs2 = 0d;

            if (mode == EIndoorMode.Cooling)
            {
                qs2 = qac2 - qcc2;
            }
            // Heat
            else
            {
                qs2 = qac2;
            }
            //o["Sensible Heat"].Value = qs2;


            // ### 11-6. Sensible Heat Ratio (SHR)
            //o["Sensible Heat Ratio"].StoredValue = AirFormula.GetShr(qac2, qs2);


            // ### 12-2. Leaving RH (상대습도)
            // o["Leaving RH"].StoredValue = AirFormula.GetRh(pb2, lpds, AirFormula.GetXw(ltd, ltw, lxs2), AirFormula.GetU(lxw2, lxs2), ltd);


            // ### 12-4. Leaving Enthalpy (Ha)
            // o["Leaving Enthalpy"].StoredValue = AirFormula.GetHa(ltd, lxw2);


            // ### 12-8. Leaving Specific Heat
            // o["Leaving Specific Heat"].StoredValue = AirFormula.GetCp(lxw2);


            // ### 13-3. Air Velocity [Lev]
            if (o.ContainsKey("Air Velocity [Lev]") == true)
                o["Air Velocity [Lev]"].StoredValue = (float)GetAirVelocity(vx2, noz);
            else
                o["Air Velocity [Lev]"].StoredValue = 0;
        }

        private double[] GetNozzleValueList(CoefficientDataRow coefficient, int count)  // 노즐경 리스트
        {
            // mm -> m 단위 변환
            var list = new double[]
            {
                (double)coefficient.Nozzle1 / 1000d,
                (double)coefficient.Nozzle2 / 1000d,
                (double)coefficient.Nozzle3 / 1000d,
                (double)coefficient.Nozzle4 / 1000d,
            };

            var result = new double[count];
            Array.Copy(list, result, count);

            return result;
        }

        private double[] GetNozzleCheckedList(Dictionary<string, ValueRow> i, params string[] nozzleNames)  // 노즐 선택 여부 확인
        {
            var result = new List<double>();

            for (var idx = 0; idx < nozzleNames.Length; idx++)
            {
                var nozzleName = nozzleNames[idx];
                var value = i[nozzleName];

                if (value == null) continue;

                result.Add(value.Value);
            }

            return result.ToArray();
        }

        private double GetAirVelocity(double[] vx2, double[] nozzleOnOffList)
        {
            for (var i = 0; i < 4; i++)
            {
                vx2[i] *= nozzleOnOffList[i];
            }

            var count = 0;
            foreach (var v in nozzleOnOffList)
            {
                if (v > 0d) count++;
            }

            if (count == 0) return 0d;

            var sum = vx2.Sum();
            return sum / count;
        }

        private double GetQLoss(CoefficientDataRow coefficient, EIndoorMode mode, EIndoorDuct duct, double deltaT)
        {
            double[] hlks;
            var count = 0;

            if (duct == EIndoorDuct.NotUsed)
                count = 1;
            else
                count = (int)duct + 1 + 1;

            var result = 0d;

            if (mode == EIndoorMode.Cooling)
            {
                hlks = new double[]
                {
                    (double)coefficient.Cooling_HLK,
                    (double)coefficient.Cooling_HLK_Duct1,
                    (double)coefficient.Cooling_HLK_Duct2,
                    (double)coefficient.Cooling_HLK_Duct3,
                    (double)coefficient.Cooling_HLK_Duct4,
                    (double)coefficient.Cooling_HLK_Duct5
                };
            }
            else
            {
                hlks = new double[]
                {
                    (double)coefficient.Heating_HLK,
                    (double)coefficient.Heating_HLK_Duct1,
                    (double)coefficient.Heating_HLK_Duct2,
                    (double)coefficient.Heating_HLK_Duct3,
                    (double)coefficient.Heating_HLK_Duct4,
                    (double)coefficient.Heating_HLK_Duct5
                };
            }

            for (var i = 0; i < count; i++)
                result += AirFormula.GetQLoss(hlks[i], deltaT);

            return result;
        }

        private void SetFixedAtmPressure()
        {
            if (Resource.Settings.Options.FixedAtmPressure == true)
            {
                Value.Measured["ID1.Atm.Pressure"].Value = (float)AirFormula.Pb;
                Value.Measured["ID2.Atm.Pressure"].Value = (float)AirFormula.Pb;
            }
        }

        private void SetPowerMeterValues()
        {
            string iduHead;
            string oduHead;
            EIndoorMode mode;
            EConditionRated rated;
            float totalPower = 0;
            float totalCurrent = 0;
            ConditionSchedule sch = Condition.Schedules[Index];

            iduHead = GetHeadIDU(EConditionRated.Total, EIndoorMode.Cooling);
            oduHead = GetHeadODU(EConditionRated.Total, EIndoorMode.Cooling);

            if (iduHead == "None")
            {
                Value.Calcurated["Total.IDU.Power"].StoredValue = 0;
                Value.Calcurated["Total.IDU.Voltage"].StoredValue = 0;
                Value.Calcurated["Total.IDU.Current"].StoredValue = 0;
                Value.Calcurated["Total.IDU.Frequency"].StoredValue = 0;
                Value.Calcurated["Total.IDU.Power.Factor"].StoredValue = 0;
                Value.Calcurated["Total.IDU.Integ.Power"].StoredValue = 0;
                Value.Calcurated["Total.IDU.Integ.Time"].StoredValue = 0;
            }
            else
            {
                Value.Calcurated["Total.IDU.Power"].StoredValue = Value.Measured[iduHead + "R.W"].Raw;
                Value.Calcurated["Total.IDU.Voltage"].StoredValue = Value.Measured[iduHead + "R.V"].Raw;
                Value.Calcurated["Total.IDU.Current"].StoredValue = Value.Measured[iduHead + "R.A"].Raw;
                Value.Calcurated["Total.IDU.Frequency"].StoredValue = Value.Measured[iduHead + "R.Hz"].Raw;
                Value.Calcurated["Total.IDU.Power.Factor"].StoredValue = Value.Measured[iduHead + "R.PF"].Raw * 100.0f;
                Value.Calcurated["Total.IDU.Integ.Power"].StoredValue = Value.Measured[iduHead + "R.Wh"].Raw;
                Value.Calcurated["Total.IDU.Integ.Time"].StoredValue = Value.Measured[iduHead + "Time"].Raw;
            }

            if (oduHead == "None")
            {
                Value.Calcurated["Total.ODU.Power"].StoredValue = 0;
                Value.Calcurated["Total.ODU.Voltage"].StoredValue = 0;
                Value.Calcurated["Total.ODU.Current"].StoredValue = 0;
                Value.Calcurated["Total.ODU.Frequency"].StoredValue = 0;
                Value.Calcurated["Total.ODU.Power.Factor"].StoredValue = 0;
                Value.Calcurated["Total.ODU.Integ.Power"].StoredValue = 0;
                Value.Calcurated["Total.ODU.Integ.Time"].StoredValue = 0;
            }
            else
            {
                switch (GetWiringODU(EConditionRated.Total, EIndoorMode.Cooling))
                {
                    case EWT330Wiring.P1W3:
                        Value.Calcurated["Total.ODU.Power"].StoredValue = Value.Measured[oduHead + "R.W"].Raw;
                        Value.Calcurated["Total.ODU.Voltage"].StoredValue = Value.Measured[oduHead + "R.V"].Raw;
                        Value.Calcurated["Total.ODU.Current"].StoredValue = Value.Measured[oduHead + "R.A"].Raw;
                        Value.Calcurated["Total.ODU.Frequency"].StoredValue = Value.Measured[oduHead + "R.Hz"].Raw;
                        Value.Calcurated["Total.ODU.Power.Factor"].StoredValue = Value.Measured[oduHead + "R.PF"].Raw * 100.0f;
                        Value.Calcurated["Total.ODU.Integ.Power"].StoredValue = Value.Measured[oduHead + "R.Wh"].Raw;
                        Value.Calcurated["Total.ODU.Integ.Time"].StoredValue = Value.Measured[oduHead + "Time"].Raw;
                        break;

                    case EWT330Wiring.P3W3:
                        Value.Calcurated["Total.ODU.Power"].StoredValue = Value.Measured[oduHead + "Sigma.W"].Raw;
                        Value.Calcurated["Total.ODU.Voltage"].StoredValue = Value.Measured[oduHead + "Sigma.V"].Raw;
                        Value.Calcurated["Total.ODU.Current"].StoredValue = Value.Measured[oduHead + "Sigma.A"].Raw;
                        Value.Calcurated["Total.ODU.Frequency"].StoredValue = Value.Measured[oduHead + "Sigma.Hz"].Raw;
                        Value.Calcurated["Total.ODU.Power.Factor"].StoredValue = Value.Measured[oduHead + "Sigma.PF"].Raw * 100.0f;
                        Value.Calcurated["Total.ODU.Integ.Power"].StoredValue = Value.Measured[oduHead + "Sigma.Wh"].Raw;
                        Value.Calcurated["Total.ODU.Integ.Time"].StoredValue = Value.Measured[oduHead + "Time"].Raw;
                        break;

                    case EWT330Wiring.P3W4:
                        Value.Calcurated["Total.ODU.Power"].StoredValue = Value.Measured[oduHead + "Sigma.W"].Raw;
                        Value.Calcurated["Total.ODU.Voltage"].StoredValue = Value.Measured[oduHead + "Sigma.V"].Raw;
                        Value.Calcurated["Total.ODU.Current"].StoredValue = Value.Measured[oduHead + "Sigma.A"].Raw;
                        Value.Calcurated["Total.ODU.Frequency"].StoredValue = Value.Measured[oduHead + "Sigma.Hz"].Raw;
                        Value.Calcurated["Total.ODU.Power.Factor"].StoredValue = Value.Measured[oduHead + "Sigma.PF"].Raw * 100.0f;
                        Value.Calcurated["Total.ODU.Integ.Power"].StoredValue = Value.Measured[oduHead + "Sigma.Wh"].Raw;
                        Value.Calcurated["Total.ODU.Integ.Time"].StoredValue = Value.Measured[oduHead + "Time"].Raw;
                        break;
                }
            }

            if (sch.Indoor1Use == EIndoorUse.NotUsed)
            {
                Value.Calcurated["ID1.IDU.Power"].StoredValue = 0;
                Value.Calcurated["ID1.IDU.Voltage"].StoredValue = 0;
                Value.Calcurated["ID1.IDU.Current"].StoredValue = 0;
                Value.Calcurated["ID1.IDU.Frequency"].StoredValue = 0;
                Value.Calcurated["ID1.IDU.Power.Factor"].StoredValue = 0;
                Value.Calcurated["ID1.IDU.Integ.Power"].StoredValue = 0;
                Value.Calcurated["ID1.IDU.Integ.Time"].StoredValue = 0;

                Value.Calcurated["ID1.ODU.Power"].StoredValue = 0;
                Value.Calcurated["ID1.ODU.Voltage"].StoredValue = 0;
                Value.Calcurated["ID1.ODU.Current"].StoredValue = 0;
                Value.Calcurated["ID1.ODU.Frequency"].StoredValue = 0;
                Value.Calcurated["ID1.ODU.Power.Factor"].StoredValue = 0;
                Value.Calcurated["ID1.ODU.Integ.Power"].StoredValue = 0;
                Value.Calcurated["ID1.ODU.Integ.Time"].StoredValue = 0;
            }
            else
            {
                if (sch.Indoor1Mode1 != EIndoorMode.NotUsed)
                {
                    mode = sch.Indoor1Mode1;
                    rated = EConditionRated.ID11;
                }
                else if (sch.Indoor1Mode2 != EIndoorMode.NotUsed)
                {
                    mode = sch.Indoor1Mode2;
                    rated = EConditionRated.ID12;
                }
                else
                {
                    mode = EIndoorMode.Cooling;
                    rated = EConditionRated.ID11;
                }

                iduHead = GetHeadIDU(rated, mode);
                oduHead = GetHeadODU(rated, mode);

                if (iduHead == "None")
                {
                    Value.Calcurated["ID1.IDU.Power"].StoredValue = 0;
                    Value.Calcurated["ID1.IDU.Voltage"].StoredValue = 0;
                    Value.Calcurated["ID1.IDU.Current"].StoredValue = 0;
                    Value.Calcurated["ID1.IDU.Frequency"].StoredValue = 0;
                    Value.Calcurated["ID1.IDU.Power.Factor"].StoredValue = 0;
                    Value.Calcurated["ID1.IDU.Integ.Power"].StoredValue = 0;
                    Value.Calcurated["ID1.IDU.Integ.Time"].StoredValue = 0;
                }
                else
                {
                    Value.Calcurated["ID1.IDU.Power"].StoredValue = Value.Measured[iduHead + "R.W"].Raw;
                    Value.Calcurated["ID1.IDU.Voltage"].StoredValue = Value.Measured[iduHead + "R.V"].Raw;
                    Value.Calcurated["ID1.IDU.Current"].StoredValue = Value.Measured[iduHead + "R.A"].Raw;
                    Value.Calcurated["ID1.IDU.Frequency"].StoredValue = Value.Measured[iduHead + "R.Hz"].Raw;
                    Value.Calcurated["ID1.IDU.Power.Factor"].StoredValue = Value.Measured[iduHead + "R.PF"].Raw * 100.0f;
                    Value.Calcurated["ID1.IDU.Integ.Power"].StoredValue = Value.Measured[iduHead + "R.Wh"].Raw;
                    Value.Calcurated["ID1.IDU.Integ.Time"].StoredValue = Value.Measured[iduHead + "Time"].Raw;
                }

                if (oduHead == "None")
                {
                    Value.Calcurated["ID1.ODU.Power"].StoredValue = 0;
                    Value.Calcurated["ID1.ODU.Voltage"].StoredValue = 0;
                    Value.Calcurated["ID1.ODU.Current"].StoredValue = 0;
                    Value.Calcurated["ID1.ODU.Frequency"].StoredValue = 0;
                    Value.Calcurated["ID1.ODU.Power.Factor"].StoredValue = 0;
                    Value.Calcurated["ID1.ODU.Integ.Power"].StoredValue = 0;
                    Value.Calcurated["ID1.ODU.Integ.Time"].StoredValue = 0;
                }
                else
                {
                    switch (GetWiringODU(rated, mode))
                    {
                        case EWT330Wiring.P1W3:
                            Value.Calcurated["ID1.ODU.Power"].StoredValue = Value.Measured[oduHead + "R.W"].Raw;
                            Value.Calcurated["ID1.ODU.Voltage"].StoredValue = Value.Measured[oduHead + "R.V"].Raw;
                            Value.Calcurated["ID1.ODU.Current"].StoredValue = Value.Measured[oduHead + "R.A"].Raw;
                            Value.Calcurated["ID1.ODU.Frequency"].StoredValue = Value.Measured[oduHead + "R.Hz"].Raw;
                            Value.Calcurated["ID1.ODU.Power.Factor"].StoredValue = Value.Measured[oduHead + "R.PF"].Raw * 100.0f;
                            Value.Calcurated["ID1.ODU.Integ.Power"].StoredValue = Value.Measured[oduHead + "R.Wh"].Raw;
                            Value.Calcurated["ID1.ODU.Integ.Time"].StoredValue = Value.Measured[oduHead + "Time"].Raw;
                            break;

                        case EWT330Wiring.P3W3:
                            Value.Calcurated["ID1.ODU.Power"].StoredValue = Value.Measured[oduHead + "Sigma.W"].Raw;
                            Value.Calcurated["ID1.ODU.Voltage"].StoredValue = Value.Measured[oduHead + "Sigma.V"].Raw;
                            Value.Calcurated["ID1.ODU.Current"].StoredValue = Value.Measured[oduHead + "Sigma.A"].Raw;
                            Value.Calcurated["ID1.ODU.Frequency"].StoredValue = Value.Measured[oduHead + "Sigma.Hz"].Raw;
                            Value.Calcurated["ID1.ODU.Power.Factor"].StoredValue = Value.Measured[oduHead + "Sigma.PF"].Raw * 100.0f;
                            Value.Calcurated["ID1.ODU.Integ.Power"].StoredValue = Value.Measured[oduHead + "Sigma.Wh"].Raw;
                            Value.Calcurated["ID1.ODU.Integ.Time"].StoredValue = Value.Measured[oduHead + "Time"].Raw;
                            break;

                        case EWT330Wiring.P3W4:
                            Value.Calcurated["ID1.ODU.Power"].StoredValue = Value.Measured[oduHead + "Sigma.W"].Raw;
                            Value.Calcurated["ID1.ODU.Voltage"].StoredValue = Value.Measured[oduHead + "Sigma.V"].Raw;
                            Value.Calcurated["ID1.ODU.Current"].StoredValue = Value.Measured[oduHead + "Sigma.A"].Raw;
                            Value.Calcurated["ID1.ODU.Frequency"].StoredValue = Value.Measured[oduHead + "Sigma.Hz"].Raw;
                            Value.Calcurated["ID1.ODU.Power.Factor"].StoredValue = Value.Measured[oduHead + "Sigma.PF"].Raw * 100.0f;
                            Value.Calcurated["ID1.ODU.Integ.Power"].StoredValue = Value.Measured[oduHead + "Sigma.Wh"].Raw;
                            Value.Calcurated["ID1.ODU.Integ.Time"].StoredValue = Value.Measured[oduHead + "Time"].Raw;
                            break;
                    }
                }

                totalPower += Value.Calcurated["ID1.IDU.Power"].Raw;
                totalPower += Value.Calcurated["ID1.ODU.Power"].Raw;

                totalCurrent += Value.Calcurated["ID1.IDU.Current"].Raw;
                totalCurrent += Value.Calcurated["ID1.ODU.Current"].Raw;
            }

            if (sch.Indoor2Use == EIndoorUse.NotUsed)
            {
                Value.Calcurated["ID2.IDU.Power"].StoredValue = 0;
                Value.Calcurated["ID2.IDU.Voltage"].StoredValue = 0;
                Value.Calcurated["ID2.IDU.Current"].StoredValue = 0;
                Value.Calcurated["ID2.IDU.Frequency"].StoredValue = 0;
                Value.Calcurated["ID2.IDU.Power.Factor"].StoredValue = 0;
                Value.Calcurated["ID2.IDU.Integ.Power"].StoredValue = 0;
                Value.Calcurated["ID2.IDU.Integ.Time"].StoredValue = 0;

                Value.Calcurated["ID2.ODU.Power"].StoredValue = 0;
                Value.Calcurated["ID2.ODU.Voltage"].StoredValue = 0;
                Value.Calcurated["ID2.ODU.Current"].StoredValue = 0;
                Value.Calcurated["ID2.ODU.Frequency"].StoredValue = 0;
                Value.Calcurated["ID2.ODU.Power.Factor"].StoredValue = 0;
                Value.Calcurated["ID2.ODU.Integ.Power"].StoredValue = 0;
                Value.Calcurated["ID2.ODU.Integ.Time"].StoredValue = 0;
            }
            else
            {
                if (sch.Indoor2Mode1 != EIndoorMode.NotUsed)
                {
                    mode = sch.Indoor2Mode1;
                    rated = EConditionRated.ID21;
                }
                else if (sch.Indoor2Mode2 != EIndoorMode.NotUsed)
                {
                    mode = sch.Indoor2Mode2;
                    rated = EConditionRated.ID22;
                }
                else
                {
                    mode = EIndoorMode.Cooling;
                    rated = EConditionRated.ID21;
                }

                iduHead = GetHeadIDU(rated, mode);
                oduHead = GetHeadODU(rated, mode);

                if (iduHead == "None")
                {
                    Value.Calcurated["ID2.IDU.Power"].StoredValue = 0;
                    Value.Calcurated["ID2.IDU.Voltage"].StoredValue = 0;
                    Value.Calcurated["ID2.IDU.Current"].StoredValue = 0;
                    Value.Calcurated["ID2.IDU.Frequency"].StoredValue = 0;
                    Value.Calcurated["ID2.IDU.Power.Factor"].StoredValue = 0;
                    Value.Calcurated["ID2.IDU.Integ.Power"].StoredValue = 0;
                    Value.Calcurated["ID2.IDU.Integ.Time"].StoredValue = 0;
                }
                else
                {
                    Value.Calcurated["ID2.IDU.Power"].StoredValue = Value.Measured[iduHead + "R.W"].Raw;
                    Value.Calcurated["ID2.IDU.Voltage"].StoredValue = Value.Measured[iduHead + "R.V"].Raw;
                    Value.Calcurated["ID2.IDU.Current"].StoredValue = Value.Measured[iduHead + "R.A"].Raw;
                    Value.Calcurated["ID2.IDU.Frequency"].StoredValue = Value.Measured[iduHead + "R.Hz"].Raw;
                    Value.Calcurated["ID2.IDU.Power.Factor"].StoredValue = Value.Measured[iduHead + "R.PF"].Raw * 100.0f;
                    Value.Calcurated["ID2.IDU.Integ.Power"].StoredValue = Value.Measured[iduHead + "R.Wh"].Raw;
                    Value.Calcurated["ID2.IDU.Integ.Time"].StoredValue = Value.Measured[iduHead + "Time"].Raw;
                }

                if (oduHead == "None")
                {
                    Value.Calcurated["ID2.ODU.Power"].StoredValue = 0;
                    Value.Calcurated["ID2.ODU.Voltage"].StoredValue = 0;
                    Value.Calcurated["ID2.ODU.Current"].StoredValue = 0;
                    Value.Calcurated["ID2.ODU.Frequency"].StoredValue = 0;
                    Value.Calcurated["ID2.ODU.Power.Factor"].StoredValue = 0;
                    Value.Calcurated["ID2.ODU.Integ.Power"].StoredValue = 0;
                    Value.Calcurated["ID2.ODU.Integ.Time"].StoredValue = 0;
                }
                else
                {
                    switch (GetWiringODU(rated, mode))
                    {
                        case EWT330Wiring.P1W3:
                            Value.Calcurated["ID2.ODU.Power"].StoredValue = Value.Measured[oduHead + "R.W"].Raw;
                            Value.Calcurated["ID2.ODU.Voltage"].StoredValue = Value.Measured[oduHead + "R.V"].Raw;
                            Value.Calcurated["ID2.ODU.Current"].StoredValue = Value.Measured[oduHead + "R.A"].Raw;
                            Value.Calcurated["ID2.ODU.Frequency"].StoredValue = Value.Measured[oduHead + "R.Hz"].Raw;
                            Value.Calcurated["ID2.ODU.Power.Factor"].StoredValue = Value.Measured[oduHead + "R.PF"].Raw * 100.0f;
                            Value.Calcurated["ID2.ODU.Integ.Power"].StoredValue = Value.Measured[oduHead + "R.Wh"].Raw;
                            Value.Calcurated["ID2.ODU.Integ.Time"].StoredValue = Value.Measured[oduHead + "Time"].Raw;
                            break;

                        case EWT330Wiring.P3W3:
                            Value.Calcurated["ID2.ODU.Power"].StoredValue = Value.Measured[oduHead + "Sigma.W"].Raw;
                            Value.Calcurated["ID2.ODU.Voltage"].StoredValue = Value.Measured[oduHead + "Sigma.V"].Raw;
                            Value.Calcurated["ID2.ODU.Current"].StoredValue = Value.Measured[oduHead + "Sigma.A"].Raw;
                            Value.Calcurated["ID2.ODU.Frequency"].StoredValue = Value.Measured[oduHead + "Sigma.Hz"].Raw;
                            Value.Calcurated["ID2.ODU.Power.Factor"].StoredValue = Value.Measured[oduHead + "Sigma.PF"].Raw * 100.0f;
                            Value.Calcurated["ID2.ODU.Integ.Power"].StoredValue = Value.Measured[oduHead + "Sigma.Wh"].Raw;
                            Value.Calcurated["ID2.ODU.Integ.Time"].StoredValue = Value.Measured[oduHead + "Time"].Raw;
                            break;

                        case EWT330Wiring.P3W4:
                            Value.Calcurated["ID2.ODU.Power"].StoredValue = Value.Measured[oduHead + "Sigma.W"].Raw;
                            Value.Calcurated["ID2.ODU.Voltage"].StoredValue = Value.Measured[oduHead + "Sigma.V"].Raw;
                            Value.Calcurated["ID2.ODU.Current"].StoredValue = Value.Measured[oduHead + "Sigma.A"].Raw;
                            Value.Calcurated["ID2.ODU.Frequency"].StoredValue = Value.Measured[oduHead + "Sigma.Hz"].Raw;
                            Value.Calcurated["ID2.ODU.Power.Factor"].StoredValue = Value.Measured[oduHead + "Sigma.PF"].Raw * 100.0f;
                            Value.Calcurated["ID2.ODU.Integ.Power"].StoredValue = Value.Measured[oduHead + "Sigma.Wh"].Raw;
                            Value.Calcurated["ID2.ODU.Integ.Time"].StoredValue = Value.Measured[oduHead + "Time"].Raw;
                            break;
                    }
                }

                totalPower += Value.Calcurated["ID2.IDU.Power"].Raw;
                totalPower += Value.Calcurated["ID2.ODU.Power"].Raw;

                totalCurrent += Value.Calcurated["ID2.IDU.Current"].Raw;
                totalCurrent += Value.Calcurated["ID2.ODU.Current"].Raw;
            }

            Value.Calcurated["Total.Power"].StoredValue = totalPower;
            Value.Calcurated["Total.Current"].StoredValue = totalCurrent;
        }

        private string GetHeadIDU(EConditionRated rated, EIndoorMode mode)
        {
            int i = 0;
            int j = 0;
            int pmNo = Condition.Rateds[rated][(int)mode].PM_IDU;
            string sRet = "None";

            foreach (PowerMeterRow<float> row in Resource.Client.Devices.PowerMeter.Rows)
            {
                if (row.Phase == EWT330Phase.P1)
                {
                    if (j == pmNo)
                    {
                        sRet = $"PM{i + 1}.";
                        break;
                    }
                    else
                    {
                        j++;
                    }
                }

                i++;
            }

            return sRet;
        }

        private string GetHeadODU(EConditionRated rated, EIndoorMode mode)
        {
            int i = 0;
            int j = 0;
            int pmNo = Condition.Rateds[rated][(int)mode].PM_ODU;
            string sRet = "None";

            foreach (PowerMeterRow<float> row in Resource.Client.Devices.PowerMeter.Rows)
            {
                if (row.Phase == EWT330Phase.P3)
                {
                    if (j == pmNo)
                    {
                        sRet = $"PM{i + 1}.";
                        break;
                    }
                    else
                    {
                        j++;
                    }
                }

                i++;
            }

            return sRet;
        }

        private EWT330Wiring GetWiringODU(EConditionRated rated, EIndoorMode mode)
        {
            return Condition.Rateds[rated][(int)mode].Wiring;
        }

        private string GetNameIDU(int index)
        {
            int i = 0;
            int j = 0;
            string sRet = "None";

            foreach (PowerMeterRow<float> row in Resource.Client.Devices.PowerMeter.Rows)
            {
                if (row.Phase == EWT330Phase.P1)
                {
                    if (j == index)
                    {
                        sRet = row.Name;
                        break;
                    }
                    else
                    {
                        j++;
                    }
                }

                i++;
            }

            return sRet;
        }

        private string GetNameODU(int index)
        {
            int i = 0;
            int j = 0;
            string sRet = "None";

            foreach (PowerMeterRow<float> row in Resource.Client.Devices.PowerMeter.Rows)
            {
                if (row.Phase == EWT330Phase.P3)
                {
                    if (j == index)
                    {
                        sRet = row.Name;
                        break;
                    }
                    else
                    {
                        j++;
                    }
                }

                i++;
            }

            return sRet;
        }

        private void LoadMeasuredValues()
        {
            int i = 0;
            int j = 0;
            
            Resource.Client.Listener.Lock();

            try
            {
                foreach (KeyValuePair<string, ValueRow> row in Value.Measured)
                {
                    if (i < Resource.Client.Listener.FValues.Length)
                    {
                        row.Value.StoredValue = Resource.Client.Listener.FValues[i++];
                    }
                    else
                    {
                        row.Value.StoredValue = Resource.Client.Listener.NValues[j++];
                    }

                    if (row.Value.Unit.Type == EUnitType.Temperature)
                    {
                        if (row.Value.Value < csLimitedTemp)
                        {
                            row.Value.Value = csMinimumTemp;
                        }
                    }
                }
            }
            finally
            {
                Resource.Client.Listener.Unlock();
            }
        }
    }
    #endregion
}<file_sep>﻿using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;

using FirebirdSql.Data.FirebirdClient;

using Ulee.Device.Connection.Yokogawa;
using Ulee.DllImport.Win32;
using Ulee.Threading;
using Ulee.Utils;

namespace Hnc.Calorimeter.Client
{
    public enum ETestMessage
    {
        None,
        Next,
        Reset
    }

    public enum ETestStep
    {
        None,
        Preparation,
        Judgement,
        Integration
    }

    public enum EWorkSheet
    {
        Current = -1,
        Title,
        I1,
        I2,
        I3,
        I4,
        I5,
        I6,
        I7
    }

    public class TestDescriptionArgs : EventArgs
    {
        public TestDescriptionArgs()
        {
            Index = 0;
            Name = "None";
            Step = ETestStep.None;
        }

        public int Index { get; set; }
        public string Name { get; set; }
        public ETestStep Step { get; set; }
        public long ElapsedTime { get; set; }
        public long TotalElapsedTime { get; set; }
        public long PrepareCurTime { get; set; }
        public long PrepareMaxTime { get; set; }
        public long JudgeCurTime { get; set; }
        public long JudgeMaxTime { get; set; }
        public long IntegCurTime { get; set; }
        public long IntegMaxTime { get; set; }
        public int JudgeCount { get; set; }
        public int JudgeMax { get; set; }
        public int RepeatCount { get; set; }
        public int RepeatMax { get; set; }
        public int ScheduleCount { get; set; }
        public int ScheduleMax { get; set; }
    }

    public class TestSpreadSheetArgs : EventArgs
    {
        public TestSpreadSheetArgs()
        {
            Index = EWorkSheet.Title;
            SettingAverage = false;
            Report = null;
        }

        public EWorkSheet Index { get; set; }
        public bool SettingAverage { get; set; }
        public TestReport Report { get; set; }
    }

    public class CalorimeterTestThread : UlThread
    {
        public CalorimeterTestThread(TestContext context) : base(false, true)
        {
            InvalidContext = false;
            this.context = context;
            this.prevRawTicks = 0;
            this.totalWatch = new Stopwatch();
            this.sheetArgs = new TestSpreadSheetArgs();
            this.descArgs = new TestDescriptionArgs();
            this.descArgs.Index = context.Handle;

            Priority = ThreadPriority.Highest;
        }

        private const int csInvalidTime = 1000;
        private const int csOneMiniteMsec = 60000;

        private long prevRawTicks;
        private Stopwatch totalWatch;
        private TestContext context;
        private TestDescriptionArgs descArgs;
        private TestSpreadSheetArgs sheetArgs;

        public bool InvalidContext { get; set; }

        public event EventHandler ClearSpreadSheet = null;
        protected void OnClearSpreadSheet()
        {
            ClearSpreadSheet?.Invoke(null, null);
        }

        public event EventHandler ClearGraph = null;
        protected void OnClearGraph()
        {
            ClearGraph?.Invoke(null, null);
        }


        public event EventHandler SetSpreadSheet = null;
        protected void OnSetSpreadSheet()
        {
            SetSpreadSheet?.Invoke(null, sheetArgs);
        }

        public event EventHandler DispState = null;
        public event EventHandler DispStateMainForm = null;
        protected void OnDispState()
        {
            DispState?.Invoke(null, descArgs);
            DispStateMainForm?.Invoke(null, descArgs);
        }

        public event EventInt64Handler InvalidGraph = null;
        protected void OnInvalidGraph(long ticks)
        {
            InvalidGraph?.Invoke(null, ticks);
        }

        public event EventBoolHandler SetToggleButtonState = null;
        protected void OnSetToggleButtonState(bool enabled)
        {
            SetToggleButtonState?.Invoke(null, enabled);
        }

        public void Lock()
        {
            Monitor.Enter(this);
        }

        public void Unlock()
        {
            Monitor.Exit(this);
        }

        protected override void Execute()
        {
            Watch.Stop();
            totalWatch.Stop();

            DateTime endTime;
            TimeSpan elapsedTime;
            ConditionSchedule sch;
            TestValue value = context.Value;
            ConditionMethod method = context.Condition.Method;
            List<ConditionSchedule> schedules = context.Condition.Schedules;

            try
            {
                descArgs.ScheduleCount = 0;
                descArgs.ScheduleMax = schedules.Count;
                descArgs.TotalElapsedTime = 0;

                for (int i = 0; i < schedules.Count; i++)
                {
                    sch = schedules[i];
                    if (sch.Use == false) continue;

                    context.Index = i;
                    context.Initialize();
                    context.Report.Initialize();

                    sheetArgs.Report = context.Report;

                    value.Integral.Initialize(method.ScanTime, method.IntegralTime, sch);

                    descArgs.Name = sch.Name;
                    descArgs.Step = ETestStep.None;
                    descArgs.RepeatMax = sch.Repeat;
                    descArgs.ScheduleCount = i + 1;

                    for (int j = 0; j < sch.Repeat; j++)
                    {
                        value.Integral.Clear();
                        context.Report.Clear();

                        OnClearSpreadSheet();

                        sheetArgs.Index = EWorkSheet.Title;
                        OnSetSpreadSheet();

                        descArgs.RepeatCount = j + 1;
                        descArgs.JudgeMax = sch.NoOfSteady;
                        descArgs.JudgeCount = 0;
                        descArgs.JudgeMaxTime = sch.Judge * csOneMiniteMsec;
                        descArgs.JudgeCurTime = 0;
                        descArgs.IntegMaxTime = method.IntegralTime * method.IntegralCount * csOneMiniteMsec;
                        descArgs.IntegCurTime = 0;
                        OnDispState();

                        InsertDataHead();
                        prevRawTicks = 0;
                        context.Value.Saving = true;
                        OnInvalidGraph(0);
                        Watch.Restart();
                        totalWatch.Start();

                        try
                        {
                            DoPreparation(sch);
                            DoJudgement(sch);
                            DoIntegration(method);
                        }
                        finally
                        {
                            endTime = DateTime.Now;
                            elapsedTime = endTime.Subtract(context.Report.RegTime);

                            totalWatch.Stop();
                            Watch.Stop();
                            context.Value.Saving = false;

                            InsertAllDataRaw();

                            string capacity = GetSheetAverageValue("Total.Capacity");
                            string power = GetSheetAverageValue("Total.Power");
                            string eer_cop = GetSheetAverageValue("Total.EER_COP");

                            UpdateDataBook(endTime, elapsedTime, capacity, power, eer_cop, ETestState.Done);
                            SaveSpreadSheet();

                            OnClearGraph();

                            descArgs.Step = ETestStep.None;
                            OnDispState();
                        }
                    }
                }

                PostMessage(Resource.WM_TEST_NORMAL_TERMINATED);
            }
            catch (UlThreadTerminatedException)
            {
                UpdateDataBook(ETestState.Stopped);
                PostMessage(Resource.WM_TEST_ABNORMAL_TERMINATED);
            }
        }

        private string GetSheetAverageValue(string tag)
        {
            string sValue = "";

            foreach (KeyValuePair<string, ReportSheet> sheet in sheetArgs.Report.ValueSheets)
            {
                if (sheet.Value.Use == false) continue;

                foreach (KeyValuePair<string, ReportRow> row in sheet.Value.Rows)
                {
                    if (row.Key == tag)
                    {
                        if (row.Value.Row == null) break;

                        sValue = $"{row.Value.Row.Unit.Convert(row.Value.Average).ToString(row.Value.Row.Format)} {row.Value.Row.Unit.ToDescription}";
                        goto lbEnd;
                    }
                }
            }

        lbEnd:
            return sValue;
        }

        private void UpdateDataBook(ETestState state)
        {
            if (context.Report.RecNo < 0) return;

            context.DB.Lock();

            try
            {
                FbTransaction trans = context.DB.BeginTrans();

                try
                {
                    DataBookDataSet set = context.DB.DataBookSet;

                    set.RecNo = context.Report.RecNo;
                    set.Update(state, trans);

                    context.DB.CommitTrans();
                }
                catch (Exception e)
                {
                    Resource.TLog.Log((int)ELogItem.Exception, e.ToString());
                    context.DB.RollbackTrans();
                }
            }
            finally
            {
                context.DB.Unlock();
            }
        }

        private void UpdateDataBook(DateTime time, TimeSpan elpased, 
            string capacity, string power, string eer_cop, ETestState state)
        {
            if (context.Report.RecNo < 0) return;

            context.DB.Lock();

            try
            {
                FbTransaction trans = context.DB.BeginTrans();

                try
                {
                    DataBookDataSet set = context.DB.DataBookSet;

                    set.RecNo = context.Report.RecNo;
                    set.EndTime = time.ToString(Resource.csDateTimeFormat);
                    set.ElapsedTime = elpased.ToString(@"ddd\.hh\:mm\:ss");
                    set.TotalCapacity = capacity;
                    set.TotalPower = power;
                    set.TotalEER_COP = eer_cop;
                    set.State = state;
                    set.Update(trans);

                    context.DB.CommitTrans();
                }
                catch (Exception e)
                {
                    Resource.TLog.Log((int)ELogItem.Exception, e.ToString());
                    context.DB.RollbackTrans();
                }
            }
            finally
            {
                context.DB.Unlock();
            }
        }

        private void PostMessage(int msg, int wParam=0, int lParam=0)
        {
            Win32.PostMessage(context.WndHandle, msg, (IntPtr)wParam, (IntPtr)lParam);
        }

        private void DoPreparation(ConditionSchedule sch)
        {
            bool repeat = true;
            descArgs.Step = ETestStep.Preparation;

            while (repeat == true)
            {
                try
                {
                    descArgs.Step = ETestStep.Preparation;
                    descArgs.PrepareMaxTime = sch.PreRun * csOneMiniteMsec;
                    descArgs.PrepareCurTime = 0;
                    OnDispState();

                    Preparation();
                    repeat = false;
                }
                catch (UlThreadTerminatedException e) 
                {
                    ClearCurrentValues();

                    switch ((ETestMessage)e.Code)
                    {
                        case ETestMessage.None:
                            throw e;

                        case ETestMessage.Next:
                            repeat = false;
                            break;

                        case ETestMessage.Reset:
                            repeat = true;
                            break;
                    }
                }
            }
        }

        private void Preparation()
        {
            long ticks;
            long maxTicks = descArgs.PrepareMaxTime;
            long prevTicks = ElapsedMilliseconds;
            long startTicks = prevTicks;

            int scanCount = 0;

            while (Terminated == false)
            {
                ticks = ElapsedMilliseconds;

                if (IsTimeoutMilliseconds(prevTicks, csInvalidTime) == true)
                {
                    prevTicks += csInvalidTime;
                    descArgs.ElapsedTime = ticks - startTicks;
                    descArgs.TotalElapsedTime = totalWatch.ElapsedMilliseconds;
                    descArgs.PrepareCurTime = descArgs.ElapsedTime;
                    OnDispState();

                    DispCurrentValues();

                    scanCount++;
                    if (scanCount >= context.Condition.Method.ScanTime)
                    {
                        OnInvalidGraph(ticks);
                        scanCount = 0;
                    }

                    DecideJudgement();
                }

                if (IsTimeoutMilliseconds(startTicks, maxTicks) == true)
                {
                    descArgs.PrepareCurTime = maxTicks;
                    break;
                }

                SaveDataRaw();
                RefreshContext();
                maxTicks = descArgs.PrepareMaxTime;
                Yield();
            }
        }

        private void DoJudgement(ConditionSchedule sch)
        {
            bool repeat = true;

            try
            {
                while (repeat == true)
                {
                    try
                    {
                        descArgs.Step = ETestStep.Judgement;
                        descArgs.JudgeMax = sch.NoOfSteady;
                        descArgs.JudgeCount = 0;
                        descArgs.JudgeMaxTime = sch.Judge * csOneMiniteMsec;
                        descArgs.JudgeCurTime = 0;
                        OnDispState();

                        Judgement();
                        repeat = false;
                    }
                    catch (UlThreadTerminatedException e)
                    {
                        ClearCurrentValues();

                        switch ((ETestMessage)e.Code)
                        {
                            case ETestMessage.None:
                                throw e;

                            case ETestMessage.Next:
                                repeat = false;
                                break;

                            case ETestMessage.Reset:
                                repeat = true;
                                break;
                        }
                    }

                }
            }
            finally
            {
                context.Value.Integral.Clear("Judge");
            }
        }

        private void Judgement()
        {
            long ticks;
            long maxTicks = descArgs.JudgeMaxTime;
            long prevTicks = ElapsedMilliseconds;
            long prevJudgeTicks = prevTicks;
            long startTicks = prevTicks;

            int scanCount = 0;

            while (Terminated == false)
            {
                ticks = ElapsedMilliseconds;

                if (IsTimeoutMilliseconds(prevTicks, csInvalidTime) == true)
                {
                    prevTicks += csInvalidTime;
                    descArgs.ElapsedTime = ticks - startTicks;
                    descArgs.TotalElapsedTime = totalWatch.ElapsedMilliseconds;
                    descArgs.JudgeCurTime = descArgs.ElapsedTime;
                    OnDispState();

                    DispCurrentValues();

                    scanCount++;
                    if (scanCount >= context.Condition.Method.ScanTime)
                    {
                        OnInvalidGraph(ticks);
                        scanCount = 0;
                    }

                    if (context.Value.Integral.IgnoreJudgement == false)
                    {
                        DecideJudgement();
                    }
                }

                if (IsTimeoutMilliseconds(prevJudgeTicks, csOneMiniteMsec) == true)
                {
                    prevJudgeTicks += csOneMiniteMsec;

                    if (context.Value.Integral.IgnoreJudgement == false)
                    {
                        if (IsSteadyAll() == true) descArgs.JudgeCount++;
                        if (descArgs.JudgeCount >= descArgs.JudgeMax) break;
                    }
                }

                if (IsTimeoutMilliseconds(startTicks, maxTicks) == true)
                {
                    if (context.Value.Integral.IgnoreJudgement == true)
                    {
                        descArgs.JudgeCurTime = maxTicks;
                        break;
                    }

                    if (Resource.Settings.Options.ForcedInteg == true)
                    {
                        descArgs.JudgeCurTime = maxTicks;
                        break;
                    }
                    else
                    {
                        throw new UlThreadTerminatedException((int)ETestMessage.Reset);
                    }
                }

                SaveDataRaw();
                RefreshContext();
                maxTicks = descArgs.JudgeMaxTime;
                Yield();
            }
        }

        private bool IsSteadyAll()
        {
            IntegralValues values = context.Value.Integral["Judge"];

            foreach (KeyValuePair<string, IntegralValue> row in values.Values)
            {
                if (row.Value.State == EValueState.Ng) return false;
            }

            return true;
        }

        private void DoIntegration(ConditionMethod method)
        {
            bool repeat = true;

            OnSetToggleButtonState(false);

            while (repeat == true)
            {
                try
                {
                    context.Value.Integral.Clear();

                    descArgs.Step = ETestStep.Integration;
                    descArgs.IntegMaxTime = method.IntegralTime * method.IntegralCount * csOneMiniteMsec;
                    descArgs.IntegCurTime = 0;
                    OnDispState();

                    Integration(method);
                    repeat = false;
                }
                catch (UlThreadTerminatedException e)
                {
                    ClearValues((int)sheetArgs.Index - 1);

                    switch ((ETestMessage)e.Code)
                    {
                        case ETestMessage.None:
                            throw e;

                        case ETestMessage.Next:
                            repeat = false;
                            break;

                        case ETestMessage.Reset:
                            repeat = true;
                            break;
                    }
                }
            }

            OnSetToggleButtonState(true);
        }

        private void Integration(ConditionMethod method)
        {
            long ticks;
            long maxTicks = descArgs.IntegMaxTime;
            long prevTicks = ElapsedMilliseconds;
            long integPrevTicks = prevTicks;
            long startTicks = prevTicks;
            long integTime = method.IntegralTime * csOneMiniteMsec;

            int scanCount = 0;
            int integCount = 0;
            int integMaxCount = method.IntegralCount;
            bool needInsert = true;

            while (Terminated == false)
            {
                ticks = ElapsedMilliseconds;

                if (needInsert == true)
                {
                    needInsert = false;
                    InsertDataSheet();
                }

                if (IsTimeoutMilliseconds(prevTicks, csInvalidTime) == true)
                {
                    prevTicks += csInvalidTime;
                    descArgs.ElapsedTime = ticks - startTicks;
                    descArgs.TotalElapsedTime = totalWatch.ElapsedMilliseconds;
                    descArgs.IntegCurTime = descArgs.ElapsedTime;
                    OnDispState();

                    scanCount++;
                    if (scanCount >= context.Condition.Method.ScanTime)
                    {
                        OnInvalidGraph(ticks);
                        scanCount = 0;
                    }

                    DispValues(integCount);
                    Integrate();
                }

                if (IsTimeoutMilliseconds(integPrevTicks, integTime) == true)
                {
                    SetIntegralValuesToReport(integCount);
                    DispIntegralValues(integCount);
                    InsertDataValue(integCount);

                    integPrevTicks += integTime;
                    integCount++;
                }

                if (IsTimeoutMilliseconds(startTicks, maxTicks) == true)
                {
                    descArgs.IntegCurTime = maxTicks;
                    break;
                }

                SaveDataRaw();
                Yield();
            }
        }

        private void DecideJudgement()
        {
            TestValue value = context.Value;

            value.Lock();
            try
            {
                value.Integral.IntegrateSheet("Judge");
            }
            finally
            {
                value.Unlock();
            }
        }

        private void Integrate()
        {
            TestValue value = context.Value;

            value.Lock();
            try
            {
                value.Integral.Integrate("Judge");
            }
            finally
            {
                value.Unlock();
            }
        }

        private void ClearValues(int index)
        {
            sheetArgs.Report.Lock();

            try
            {
                foreach (KeyValuePair<string, ReportSheet> sheet in sheetArgs.Report.ValueSheets)
                {
                    sheet.Value.ClearData(index);
                }
            }
            finally
            {
                sheetArgs.Report.Unlock();
            }

            sheetArgs.Index = (EWorkSheet)index + 1;
            sheetArgs.SettingAverage = false;
            OnSetSpreadSheet();
        }

        private void DispValues(int index)
        {
            sheetArgs.Report.Lock();

            try
            {
                foreach (KeyValuePair<string, ReportSheet> sheet in sheetArgs.Report.ValueSheets)
                {
                    sheet.Value.RefreshData(index);
                }
            }
            finally
            {
                sheetArgs.Report.Unlock();
            }

            sheetArgs.Index = (EWorkSheet)index + 1;
            sheetArgs.SettingAverage = false;
            OnSetSpreadSheet();
        }

        private void DispIntegralValues(int index)
        {
            sheetArgs.Index = (EWorkSheet)index + 1;
            sheetArgs.SettingAverage = true;
            OnSetSpreadSheet();
        }

        private void ClearCurrentValues()
        {
            sheetArgs.Report.Lock();

            try
            {
                foreach (KeyValuePair<string, ReportSheet> sheet in sheetArgs.Report.ValueSheets)
                {
                    sheet.Value.ClearData(0);
                }
            }
            finally
            {
                sheetArgs.Report.Unlock();
            }

            sheetArgs.Index = EWorkSheet.Current;
            sheetArgs.SettingAverage = false;
            OnSetSpreadSheet();
        }

        private void DispCurrentValues()
        {
            sheetArgs.Report.Lock();

            try
            {
                foreach (KeyValuePair<string, ReportSheet> sheet in sheetArgs.Report.ValueSheets)
                {
                    sheet.Value.RefreshData(0);
                }
            }
            finally
            {
                sheetArgs.Report.Unlock();
            }

            sheetArgs.Index = EWorkSheet.Current;
            sheetArgs.SettingAverage = false;
            OnSetSpreadSheet();
        }

        private void SetIntegralValuesToReport(int index)
        {
            TestValue value = context.Value;
            Dictionary<string, ReportSheet> reportSheet = sheetArgs.Report.ValueSheets;

            value.Lock();
            sheetArgs.Report.Lock();

            try
            {
                foreach (KeyValuePair<string, IntegralValues> integSheet in value.Integral.Sheets)
                {
                    if (integSheet.Key == "Judge") continue;
                    if (reportSheet[integSheet.Key].Use == false) continue;

                    foreach (KeyValuePair<string, IntegralValue> integValue in integSheet.Value.Values)
                    {
                        if (reportSheet[integSheet.Key].Rows[integValue.Key].Row == null)
                        {
                            reportSheet[integSheet.Key].Rows[integValue.Key].Cells[index].Raw = float.NaN;
                        }
                        else
                        {
                            reportSheet[integSheet.Key].Rows[integValue.Key].Cells[index].Raw =
                                integValue.Value.AverageSum;
                        }
                    }
                }
            }
            finally
            {
                sheetArgs.Report.Unlock();
                value.Unlock();
            }
        }

        private void RefreshContext()
        {
            if (InvalidContext == false) return;

            try
            {
                ConditionSchedule sch = context.Condition.Schedules[context.Index];
                ConditionMethod method = context.Condition.Method;

                context.RefreshCondition();
                context.Report.RefreshCondition();
                context.Value.Integral.Initialize(method.ScanTime, method.IntegralTime, sch);

                sheetArgs.Index = EWorkSheet.Title;
                OnSetSpreadSheet();

                descArgs.Name = sch.Name;
                descArgs.RepeatMax = sch.Repeat;
                descArgs.PrepareMaxTime = sch.PreRun * csOneMiniteMsec;
                descArgs.JudgeMaxTime = sch.Judge * csOneMiniteMsec;
                descArgs.JudgeMax = sch.NoOfSteady;

                OnDispState();
            }
            finally
            {
                InvalidContext = false;
            }
        }

        private void SaveDataRaw()
        {
            if (IsTimeoutMilliseconds(prevRawTicks, csInvalidTime) == true)
            {
                prevRawTicks += csInvalidTime;

                if (context.Report.DataRaw.HalfFull == true)
                {
                    InsertHalfFullDataRaw();
                }
            }
        }

        private void SaveSpreadSheet()
        {
            if (Resource.Settings.Options.AutoExcel == true)
            {
                string fName;

                if (string.IsNullOrWhiteSpace(context.Condition.Schedules[context.Index].Name) == true)
                {
                    fName = $"None_Line{context.Handle + 1}";
                }
                else
                {
                    fName = $"{context.Condition.Schedules[context.Index].Name}_Line{context.Handle + 1}";
                }

                fName = Resource.Settings.Options.ExcelPath + "\\" + fName + "_"
                    + context.Report.RegTime.ToString("yyyyMMddHHmmss") + ".xlsx";

                try
                {
                    context.Measure.Control.Workbook.SaveDocument(fName);
                }
                catch (Exception e)
                {
                    Resource.TLog.Log((int)ELogItem.Exception, e.ToString());
                }
            }
        }

        private void InsertDataValue(int index)
        {
            TestValue value = context.Value;

            context.DB.Lock();

            try
            {
                value.Lock();
                sheetArgs.Report.Lock();

                FbTransaction trans = context.DB.BeginTrans();

                try
                {
                    foreach (KeyValuePair<string, ReportSheet> sheet in sheetArgs.Report.ValueSheets)
                    {
                        if (sheet.Value.Use == false) continue;

                        foreach (KeyValuePair<string, ReportRow> row in sheet.Value.Rows)
                        {
                            SetDataValue(index, row.Value);
                            context.DB.DataValueSet.Insert(trans);
                        }
                    }

                    context.DB.CommitTrans();
                }
                catch (Exception e)
                {
                    Resource.TLog.Log((int)ELogItem.Exception, e.ToString());
                    context.DB.RollbackTrans();
                }
                finally
                {
                    sheetArgs.Report.Unlock();
                    value.Unlock();
                }
            }
            finally
            {
                context.DB.Unlock();
            }
        }

        private void InsertHalfFullDataRaw()
        {
            DataRaw raw = null;
            context.DB.Lock();

            try
            {
                context.Report.Lock();

                FbTransaction trans = context.DB.BeginTrans();

                try
                {
                    for (int i = 0; i < context.Report.DataRaw.Count; i++)
                    {
                        raw = context.Report.DataRaw.HalfFullDataRaw;
                        if (raw == null) break;

                        ValueStorageRaw storageRaw = raw.Row.Storage.HalfFullValues;

                        if (raw.RecNo < 0)
                        {
                            InsertDataRawUnit(trans, context.DB.DataRawUnitSet, raw);
                        }

                        InsertDataRaw(trans, context.DB.DataRawSet, storageRaw, raw.RecNo);
                    }

                    context.DB.CommitTrans();
                }
                catch (Exception e)
                {
                    Resource.TLog.Log((int)ELogItem.Exception, e.ToString());
                    context.DB.RollbackTrans();
                }
                finally
                {
                    context.Report.Unlock();
                }
            }
            finally
            {
                context.DB.Unlock();
            }
        }

        private void InsertAllDataRaw()
        {
            DataRaw raw = null;
            context.DB.Lock();

            try
            {
                context.Value.Lock();
                context.Report.Lock();

                FbTransaction trans = context.DB.BeginTrans();

                try
                {
                    ValueStorageRaw storageRaw;

                    foreach (KeyValuePair<string, DataRaw> dataRaw in context.Report.DataRaw.Rows)
                    {
                        raw = dataRaw.Value;

                        if (raw.Row.Storage.HalfFull == true)
                        {
                            storageRaw = raw.Row.Storage.HalfFullValues;

                            if (raw.RecNo < 0)
                            {
                                InsertDataRawUnit(trans, context.DB.DataRawUnitSet, raw);
                            }

                            InsertDataRaw(trans, context.DB.DataRawSet, storageRaw, raw.RecNo);
                        }

                        storageRaw = raw.Row.Storage.CurrentValues;
                        if (storageRaw != null)
                        {
                            if (raw.RecNo < 0)
                            {
                                InsertDataRawUnit(trans, context.DB.DataRawUnitSet, raw);
                            }

                            InsertDataRaw(trans, context.DB.DataRawSet, storageRaw, raw.RecNo);
                        }

                        Win32.SwitchToThread();
                    }

                    context.DB.CommitTrans();
                }
                catch (Exception e)
                {
                    Resource.TLog.Log((int)ELogItem.Exception, e.ToString());
                    context.DB.RollbackTrans();
                }
                finally
                {
                    context.Report.Unlock();
                    context.Value.Unlock();
                }
            }
            finally
            {
                context.DB.Unlock();
            }
        }

        private void InsertDataRawUnit(FbTransaction trans, DataRawUnitDataSet set, DataRaw raw)
        {
            raw.RecNo = context.DB.GetGenNo("GN_DATARAWUNIT");

            set.RecNo = raw.RecNo;
            set.DataBookNo = context.Report.RecNo;
            set.DataName = raw.Row.Name;
            set.UnitType = (int)raw.Row.Unit.Type;
            set.UnitFrom = (int)raw.Row.Unit.From;
            set.UnitTo = (int)raw.Row.Unit.To;
            set.Insert(trans);
        }

        private void InsertDataRaw(FbTransaction trans, DataRawDataSet set, ValueStorageRaw storageRaw, Int64 rawUnitNo)
        {
            set.RecNo = context.DB.GetGenNo("GN_DATARAW");
            set.DataRawUnitNo = rawUnitNo;
            set.RegTime = storageRaw.RegTime.ToString(Resource.csDateTimeFormat);
            set.ScanTime = context.Report.Method.ScanTime;
            set.DataRaw = ExtractDataRaw(storageRaw.RawValues, set.ScanTime);
            set.Insert(trans);
        }

        private void InsertDataHead()
        {
            context.DB.Lock();

            try
            {
                context.Report.Lock();
                FbTransaction trans = context.DB.BeginTrans();

                try
                {
                    SetDataBook();
                    context.DB.DataBookSet.Insert(trans);
                    context.DB.CommitTrans();
                }
                catch (Exception e)
                {
                    Resource.TLog.Log((int)ELogItem.Exception, e.ToString());
                    context.DB.RollbackTrans();
                }
                finally
                {
                    context.Report.Unlock();
                }
            }
            finally
            {
                context.DB.Unlock();
            }
        }

        private void InsertDataSheet()
        {
            context.DB.Lock();

            try
            {
                context.Report.Lock();
                FbTransaction trans = context.DB.BeginTrans();

                try
                {
                    foreach (KeyValuePair<string, ReportSheet> sheet in context.Report.ValueSheets)
                    {
                        try
                        {
                            SetDataSheet(context.Report.RecNo, sheet.Key, sheet.Value);
                            context.DB.DataSheetSet.Insert(trans);
                        }
                        catch (Exception e)
                        {
                            Resource.TLog.Log((int)ELogItem.Exception, e.ToString());
                            throw e;
                        }

                        int i = 0;
                        string name;
                        foreach (KeyValuePair<string, ReportRow> row in sheet.Value.Rows)
                        {
                            if (row.Value != null)
                            {
                                try
                                {
                                    if (sheet.Value.TcTags != null)
                                    {
                                        name = sheet.Value.TcTags[i].Name;
                                    }
                                    else
                                    {
                                        name = row.Key;
                                    }

                                    SetDataValueUnit(sheet.Value.RecNo, name, row.Value);
                                    context.DB.DataValueUnitSet.Insert(trans);
                                }
                                catch (Exception e)
                                {
                                    Resource.TLog.Log((int)ELogItem.Exception, e.ToString());
                                    throw e;
                                }
                            }

                            i++;
                        }
                    }

                    context.DB.CommitTrans();
                }
                catch (Exception e)
                {
                    Resource.TLog.Log((int)ELogItem.Exception, e.ToString());
                    context.DB.RollbackTrans();
                }
                finally
                {
                    context.Report.Unlock();
                }
            }
            finally
            {
                context.DB.Unlock();
            }
        }

        private void UpdateDataSheet()
        {
            context.DB.Lock();

            try
            {
                context.Report.Lock();
                FbTransaction trans = context.DB.BeginTrans();

                try
                {
                    DataSheetDataSet set = context.DB.DataSheetSet;

                    foreach (KeyValuePair<string, ReportSheet> sheet in context.Report.ValueSheets)
                    {
                        try
                        {
                            set.RecNo = sheet.Value.RecNo;
                            set.IDTemp = $"{sheet.Value.IndoorDB:f2} / {sheet.Value.IndoorWB:f2} ℃";
                            set.ODTemp = $"{sheet.Value.OutdoorDB:f2} / {sheet.Value.OutdoorWB:f2} ℃";
                            context.DB.DataSheetSet.UpdateTemp(trans);
                        }
                        catch (Exception e)
                        {
                            Resource.TLog.Log((int)ELogItem.Exception, e.ToString());
                            throw e;
                        }
                    }

                    context.DB.CommitTrans();
                }
                catch (Exception e)
                {
                    Resource.TLog.Log((int)ELogItem.Exception, e.ToString());
                    context.DB.RollbackTrans();
                }
                finally
                {
                    context.Report.Unlock();
                }
            }
            finally
            {
                context.DB.Unlock();
            }
        }

        private void SetDataBook()
        {
            ValueRow row;
            ConditionNote note = context.Report.Note;
            ConditionRated rated = context.Report.Rated;
            ConditionMethod method = context.Report.Method;
            DataBookDataSet set = context.DB.DataBookSet;
            context.Report.RecNo = context.DB.GetGenNo("GN_DATABOOK");
            context.Report.RegTime = DateTime.Now;

            set.RecNo = context.Report.RecNo;
            set.UserNo = Resource.UserNo;
            set.BeginTime = context.Report.RegTime.ToString(Resource.csDateTimeFormat);
            set.EndTime = set.BeginTime;
            set.ElapsedTime = "00 00:00:00";
            set.TestLine = context.Handle;
            set.IntegCount = method.IntegralCount;
            set.IntegTime = method.IntegralTime;
            set.ScanTime = method.ScanTime;
            set.Company = note.Company;
            set.TestName = note.Name;
            set.TestNo = note.No;
            set.Observer = note.Observer;
            set.Maker = note.Maker;
            set.Model1 = note.Model1;
            set.Serial1 = note.Serial1;
            set.Model2 = note.Model2;
            set.Serial2 = note.Serial2;
            set.Model3 = note.Model3;
            set.Serial3 = note.Serial3;
            set.ExpDevice = note.ExpDevice;
            set.Refrige = note.Refrigerant;
            set.RefCharge = note.RefCharge;
            row = context.Value.Calcurated["Total.Capacity"];
            set.Capacity = $"{rated.Capacity.ToString(row.Format)} {row.Unit.ToDescription}";
            row = context.Value.Calcurated["Total.Power"];
            set.PowerInput = $"{rated.PowerInput.ToString(row.Format)} {row.Unit.ToDescription}";
            row = context.Value.Calcurated["Total.EER_COP"];
            set.EER_COP = $"{rated.EER_COP.ToString(row.Format)} {row.Unit.ToDescription}";
            set.PowerSource = $"{rated.Voltage}V / {rated.Current}A / {rated.Frequency}Hz / {EnumHelper.GetNames<EWT330Wiring>()[(int)rated.Wiring]}";
            set.TotalCapacity = "0.0 kcal/h";
            set.TotalPower = "0.0 W";
            set.TotalEER_COP = "0.0 kcal/hW";
            set.Memo = note.Memo;
            set.State = ETestState.Testing;
        }

        private void SetDataSheet(Int64 dataBookNo, string key, ReportSheet sheet)
        {
            DataSheetDataSet set = context.DB.DataSheetSet;
            sheet.RecNo = context.DB.GetGenNo("GN_DATASHEET");

            set.RecNo = sheet.RecNo;
            set.DataBookNo = dataBookNo;
            set.SheetName = key;
            set.Use = sheet.Use;
            set.IDTemp = $"{sheet.IndoorDB:f2} / {sheet.IndoorWB:f2} ℃";

            if (sheet.IndoorUse == EIndoorUse.NotUsed)
                set.IDState = $"{sheet.IndoorUse.ToDescription()}";
            else
                set.IDState = $"{sheet.IndoorUse.ToDescription()}, {sheet.IndoorMode.ToDescription()}";

            set.ODTemp = $"{sheet.OutdoorDB:f2} / {sheet.OutdoorWB:f2} ℃";

            if (sheet.OutdoorDP == EEtcUse.Use)
                set.ODState = $"{sheet.OutdoorUse}, DP Used";
            else
                set.ODState = $"{sheet.OutdoorUse}";

            set.NozzleName = sheet.NozzleName;
            set.NozzleState = sheet.NozzleState;
        }

        private void SetDataValueUnit(Int64 sheetNo, string key, ReportRow row)
        {
            DataValueUnitDataSet set = context.DB.DataValueUnitSet;
            row.RecNo = context.DB.GetGenNo("GN_DATAVALUEUNIT");

            set.RecNo = row.RecNo;
            set.DataSheetNo = sheetNo;
            set.ValueName = key;

            if (row.Row == null)
            {
                set.UnitType = 0;
                set.UnitFrom = 0;
                set.UnitTo = 0;
                set.Format = "0.0";
            }
            else
            {
                set.UnitType = (int)row.Row.Unit.Type;
                set.UnitFrom = (int)row.Row.Unit.From;
                set.UnitTo = (int)row.Row.Unit.To;
                set.Format = row.Row.Format;
            }
        }

        private void SetDataValue(int index, ReportRow row)
        {
            DataValueDataSet set = context.DB.DataValueSet;

            set.RecNo = context.DB.GetGenNo("GN_DATAVALUE");
            set.DataValueUnitNo = row.RecNo;
            set.DataNo = index;
            set.DataValue = row.Cells[index].Raw;
        }

        private float[] ExtractDataRaw(float[] raws, int count)
        {
            int loopCount = raws.Length / count;

            if ((raws.Length % count) != 0) loopCount++;

            float[] newRaws = new float[loopCount];

            for (int i = 0; i < loopCount; i++)
            {
                newRaws[i] = raws[i * count];
            }

            return newRaws;
        }
    }
}
<file_sep>﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Sockets;
using System.Text;
using System.Threading.Tasks;

using Ulee.Utils;

namespace Hnc.Calorimeter.Client
{
    public class CalorimeterClient
    {
        public CalorimeterClient(UlIniFile ini)
        {
            Ini = ini;

            string ip = Ini.GetString("Server", "ip");
            int port = Ini.GetInteger("Server", "port");

            IpPoint = new IPEndPoint(
                IPAddress.Parse(ip), port);

            Udp = new UdpClient();

            Listener = new ClientListener(this);

            Sender = new ClientSender(this);

            Devices = new ClientDevice(this);
        }

        public UlIniFile Ini;

        public UdpClient Udp { get; private set; }

        public IPEndPoint IpPoint { get; private set; }

        public ClientDevice Devices { get; private set; }

        public ClientListener Listener { get; private set; }

        public ClientSender Sender { get; private set;}

        public void Connect()
        {
            Sender.Connect();
        }

        public void Disconnect()
        {
            Sender.Disconnect();
        }

        public void Resume()
        {
            Listener.Resume();
        }

        public void Suspend()
        {
            Listener.Suspend();
        }

        public void Terminate()
        {
            Listener.Terminate();
        }
    }
}
<file_sep>﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

using DevExpress.Utils;

using Ulee.Controls;
using Ulee.Utils;
using Ulee.Device.Connection.Yokogawa;

namespace Hnc.Calorimeter.Client
{
    public enum ETestRatedField
    {
        Capacity,
        Power,
        EER_COP,
        Voltage,
        Current,
        Frequency,
        PM_IDU,
        PM_ODU,
        Phase
    }

    public partial class CtrlTestRated : UlUserControlEng
    {
        public CtrlTestRated(EConditionRated index, Dictionary<string, ValueRow> values)
        {
            InitializeComponent();

            CoolingRecNo = -1;
            HeatingRecNo = -1;
            Index = index;
            Initialize(values);
        }

        public int CoolingRecNo { get; set; }
        public int HeatingRecNo { get; set; }

        public EConditionRated Index { get; private set; }

        private List<Label> unitCoolingLabels;
        private List<Label> unitHeatingLabels;

        private RatedPowerMeterArgs powerArgs;

        public event EventHandler CalcCapacity;
        private void OnCalcTotalCapacity(object sender, EventArgs args)
        {
            CalcCapacity?.Invoke(sender, args);
        }

        public event EventHandler ChangedPowerMeter;
        private void OnChangedPowerMeter(object sender, RatedPowerMeterArgs args)
        {
            ChangedPowerMeter?.Invoke(sender, args);
        }

        public bool ReadOnly
        {
            set
            {
                coolingCapacityEdit.ReadOnly = value;
                coolingCurrentEdit.ReadOnly = value;
                coolingFreqCombo.ReadOnly = value;
                coolingVoltEdit.ReadOnly = value;
                coolingPowerInEdit.ReadOnly = value;
                coolingPowerMeter1Combo.Enabled = !value;
                coolingPowerMeter2Combo.Enabled = !value;
                coolingPhaseCombo.Enabled = !value;

                heatingCapacityEdit.ReadOnly = value;
                heatingCurrentEdit.ReadOnly = value;
                heatingFreqCombo.ReadOnly = value;
                heatingVoltEdit.ReadOnly = value;
                heatingPowerInEdit.ReadOnly = value;
                heatingPowerMeter1Combo.Enabled = !value;
                heatingPowerMeter2Combo.Enabled = !value;
                heatingPhaseCombo.Enabled = !value;
            }
        }

        private void Initialize(Dictionary<string, ValueRow> values)
        {
            string format, devFormat;

            powerArgs = new RatedPowerMeterArgs(Index, ETestRatedField.PM_IDU, 0, 0);

            coolingFreqCombo.SelectedIndex = 1;
            heatingFreqCombo.SelectedIndex = 1;

            NameValue<EWT330Wiring>[] coolWiring = EnumHelper.GetNameValues<EWT330Wiring>();

            coolingPhaseCombo.DataSource = coolWiring;
            coolingPhaseCombo.DisplayMember = "Name";
            coolingPhaseCombo.ValueMember = "Value";
            coolingPhaseCombo.SelectedValue = EWT330Wiring.P3W4;

            NameValue<EWT330Wiring>[] heatWiring = EnumHelper.GetNameValues<EWT330Wiring>();

            heatingPhaseCombo.DataSource = heatWiring;
            heatingPhaseCombo.DisplayMember = "Name";
            heatingPhaseCombo.ValueMember = "Value";
            heatingPhaseCombo.SelectedValue = EWT330Wiring.P3W4;

            coolingPowerMeter1Combo.Items.Clear();
            coolingPowerMeter2Combo.Items.Clear();

            heatingPowerMeter1Combo.Items.Clear();
            heatingPowerMeter2Combo.Items.Clear();

            foreach (PowerMeterRow<float> row in Resource.Client.Devices.PowerMeter.Rows)
            {
                if (row.Phase == EWT330Phase.P1)
                {
                    coolingPowerMeter1Combo.Items.Add(row.Name);
                    heatingPowerMeter1Combo.Items.Add(row.Name);
                }
                else
                {
                    coolingPowerMeter2Combo.Items.Add(row.Name);
                    heatingPowerMeter2Combo.Items.Add(row.Name);
                }
            }

            coolingPowerMeter1Combo.SelectedIndex = 0;
            coolingPowerMeter2Combo.SelectedIndex = 0;

            heatingPowerMeter1Combo.SelectedIndex = 0;
            heatingPowerMeter2Combo.SelectedIndex = 0;

            format = values["Total.Capacity"].Format;
            devFormat = ToDevFormat(format);

            coolingCapacityEdit.EditValue = 0;
            coolingCapacityEdit.Properties.Mask.EditMask = devFormat;
            coolingCapacityEdit.Properties.DisplayFormat.FormatType = FormatType.Numeric;
            coolingCapacityEdit.Properties.DisplayFormat.FormatString = devFormat;
            coolingCapacityEdit.Properties.EditFormat.FormatType = FormatType.Numeric;
            coolingCapacityEdit.Properties.EditFormat.FormatString = devFormat;
            heatingCapacityEdit.EditValue = 0;
            heatingCapacityEdit.Properties.Mask.EditMask = devFormat;
            heatingCapacityEdit.Properties.DisplayFormat.FormatType = FormatType.Numeric;
            heatingCapacityEdit.Properties.DisplayFormat.FormatString = devFormat;
            heatingCapacityEdit.Properties.EditFormat.FormatType = FormatType.Numeric;
            heatingCapacityEdit.Properties.EditFormat.FormatString = devFormat;

            format = values["Total.Power"].Format;
            devFormat = ToDevFormat(format);

            coolingPowerInEdit.EditValue = 0;
            coolingPowerInEdit.Properties.Mask.EditMask = devFormat;
            coolingPowerInEdit.Properties.DisplayFormat.FormatType = FormatType.Numeric;
            coolingPowerInEdit.Properties.DisplayFormat.FormatString = devFormat;
            coolingPowerInEdit.Properties.EditFormat.FormatType = FormatType.Numeric;
            coolingPowerInEdit.Properties.EditFormat.FormatString = devFormat;
            heatingPowerInEdit.EditValue = 0;
            heatingPowerInEdit.Properties.Mask.EditMask = devFormat;
            heatingPowerInEdit.Properties.DisplayFormat.FormatType = FormatType.Numeric;
            heatingPowerInEdit.Properties.DisplayFormat.FormatString = devFormat;
            heatingPowerInEdit.Properties.EditFormat.FormatType = FormatType.Numeric;
            heatingPowerInEdit.Properties.EditFormat.FormatString = devFormat;

            format = values["Total.EER_COP"].Format;
            devFormat = ToDevFormat(format);

            coolingEepEdit.EditValue = 0;
            coolingEepEdit.Properties.Mask.EditMask = devFormat;
            coolingEepEdit.Properties.DisplayFormat.FormatType = FormatType.Numeric;
            coolingEepEdit.Properties.DisplayFormat.FormatString = devFormat;
            coolingEepEdit.Properties.EditFormat.FormatType = FormatType.Numeric;
            coolingEepEdit.Properties.EditFormat.FormatString = devFormat;
            coolingEepEdit.Properties.ReadOnly = true;
            heatingEepEdit.EditValue = 0;
            heatingEepEdit.Properties.Mask.EditMask = devFormat;
            heatingEepEdit.Properties.DisplayFormat.FormatType = FormatType.Numeric;
            heatingEepEdit.Properties.DisplayFormat.FormatString = devFormat;
            heatingEepEdit.Properties.EditFormat.FormatType = FormatType.Numeric;
            heatingEepEdit.Properties.EditFormat.FormatString = devFormat;
            heatingEepEdit.Properties.ReadOnly = true;

            format = values["ID1.IDU.Voltage"].Format;
            devFormat = ToDevFormat(format);

            coolingVoltEdit.EditValue = 0;
            coolingVoltEdit.Properties.Mask.EditMask = devFormat;
            coolingVoltEdit.Properties.DisplayFormat.FormatType = FormatType.Numeric;
            coolingVoltEdit.Properties.DisplayFormat.FormatString = devFormat;
            coolingVoltEdit.Properties.EditFormat.FormatType = FormatType.Numeric;
            coolingVoltEdit.Properties.EditFormat.FormatString = devFormat;
            heatingVoltEdit.EditValue = 0;
            heatingVoltEdit.Properties.Mask.EditMask = devFormat;
            heatingVoltEdit.Properties.DisplayFormat.FormatType = FormatType.Numeric;
            heatingVoltEdit.Properties.DisplayFormat.FormatString = devFormat;
            heatingVoltEdit.Properties.EditFormat.FormatType = FormatType.Numeric;
            heatingVoltEdit.Properties.EditFormat.FormatString = devFormat;

            format = values["ID1.IDU.Current"].Format;
            devFormat = ToDevFormat(format);

            coolingCurrentEdit.EditValue = 0;
            coolingCurrentEdit.Properties.Mask.EditMask = devFormat;
            coolingCurrentEdit.Properties.DisplayFormat.FormatType = FormatType.Numeric;
            coolingCurrentEdit.Properties.DisplayFormat.FormatString = devFormat;
            coolingCurrentEdit.Properties.EditFormat.FormatType = FormatType.Numeric;
            coolingCurrentEdit.Properties.EditFormat.FormatString = devFormat;
            heatingCurrentEdit.EditValue = 0;
            heatingCurrentEdit.Properties.Mask.EditMask = devFormat;
            heatingCurrentEdit.Properties.DisplayFormat.FormatType = FormatType.Numeric;
            heatingCurrentEdit.Properties.DisplayFormat.FormatString = devFormat;
            heatingCurrentEdit.Properties.EditFormat.FormatType = FormatType.Numeric;
            heatingCurrentEdit.Properties.EditFormat.FormatString = devFormat;

            unitCoolingLabels = new List<Label>();
            unitCoolingLabels.Add(coolingCapacityUnitLabel);
            unitCoolingLabels.Add(coolingPowerUnitLabel);
            unitCoolingLabels.Add(coolingEER_COPUnitLabel);
            unitCoolingLabels.Add(coolingVoltageUnitLabel);
            unitCoolingLabels.Add(coolingCurrentUnitLabel);

            unitHeatingLabels = new List<Label>();
            unitHeatingLabels.Add(heatingCapacityUnitLabel);
            unitHeatingLabels.Add(heatingPowerUnitLabel);
            unitHeatingLabels.Add(heatingEER_COPUnitLabel);
            unitHeatingLabels.Add(heatingVoltageUnitLabel);
            unitHeatingLabels.Add(heatingCurrentUnitLabel);

            ReadOnly = false;
        }

        private string ToDevFormat(string format)
        {
            string[] strings = format.Split(new[] { '.' }, StringSplitOptions.None);

            if ((strings == null) || (strings.Length != 2)) return "f0";

            return $"f{strings[1].Length}";
        }

        public void SetCoolingUnit(ETestRatedField index, string unit)
        {
            unitCoolingLabels[(int)index].Text = unit;
        }

        public void SetHeatingUnit(ETestRatedField index, string unit)
        {
            unitHeatingLabels[(int)index].Text = unit;
        }

        public void capacityEdit_Leave(object sender, EventArgs e)
        {
            double coolingCapacity = double.Parse(coolingCapacityEdit.Text);
            double coolingPower = double.Parse(coolingPowerInEdit.Text);
            double heatingCapacity = double.Parse(heatingCapacityEdit.Text);
            double heatingPower = double.Parse(heatingPowerInEdit.Text);

            if (coolingPower == 0.0)
                coolingEepEdit.EditValue = 0.0;
            else
                coolingEepEdit.EditValue = coolingCapacity / coolingPower;

            if (heatingPower == 0.0)
                heatingEepEdit.EditValue = 0.0;
            else
                heatingEepEdit.EditValue = heatingCapacity / heatingPower;

            OnCalcTotalCapacity(this, null);
        }

        private void coolingPowerMeter1Combo_SelectedIndexChanged(object sender, EventArgs e)
        {
            ComboBox combo = sender as ComboBox;
            int tag = int.Parse(combo.Tag.ToString());

            SetIduComboSelectedIndexWithoutEvent(tag, combo.SelectedIndex);

            powerArgs.Field = ETestRatedField.PM_IDU;
            powerArgs.Tag = tag;
            powerArgs.PowerMeterNo = combo.SelectedIndex;

            OnChangedPowerMeter(sender, powerArgs);
        }

        private void coolingPowerMeter2Combo_SelectedIndexChanged(object sender, EventArgs e)
        {
            ComboBox combo = sender as ComboBox;
            int tag = int.Parse(combo.Tag.ToString());

            SetOduComboSelectedIndexWithoutEvent(tag, combo.SelectedIndex);

            powerArgs.Field = ETestRatedField.PM_ODU;
            powerArgs.Tag = tag;
            powerArgs.PowerMeterNo = combo.SelectedIndex;

            OnChangedPowerMeter(sender, powerArgs);
        }

        public void SetIduComboSelectedIndexWithoutEvent(int tag, int index)
        {
            ComboBox combo;
            EventHandler eventHandler = coolingPowerMeter1Combo_SelectedIndexChanged;

            if (tag == 0)
            {
                combo = heatingPowerMeter1Combo;
            }
            else
            {
                combo = coolingPowerMeter1Combo;
            }

            combo.SelectedIndexChanged -= eventHandler;
            combo.SelectedIndex = index;
            combo.SelectedIndexChanged += eventHandler;
        }

        public void SetOduComboSelectedIndexWithoutEvent(int tag, int index)
        {
            ComboBox combo;
            EventHandler eventHandler = coolingPowerMeter2Combo_SelectedIndexChanged;

            if (tag == 0)
            {
                combo = heatingPowerMeter2Combo;
            }
            else
            {
                combo = coolingPowerMeter2Combo;
            }

            combo.SelectedIndexChanged -= eventHandler;
            combo.SelectedIndex = index;
            combo.SelectedIndexChanged += eventHandler;
        }
    }

    public class RatedPowerMeterArgs : EventArgs
    {
        public RatedPowerMeterArgs(EConditionRated index, ETestRatedField field, int tag, int powerMeterNo)
        {
            Index = index;
            Field = field;
            Tag = tag;
            PowerMeterNo = powerMeterNo;
        }

        public EConditionRated Index { get; set; }
        public ETestRatedField Field { get; set; }
        public int Tag { get; set; }
        public int PowerMeterNo { get; set; }
    }
}
<file_sep>﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

using Ulee.Controls;

namespace Hnc.Calorimeter.Client
{
    public partial class CtrlViewLeft : UlUserControlEng
    {
        public CtrlViewLeft()
        {
            InitializeComponent();
            Initialize();
        }

        private void Initialize()
        {
            DefMenu = new UlMenu(viewPanel);
            DefMenu.Add(new CtrlViewRight(0), testView1Button);
            DefMenu.Add(new CtrlViewRight(1), testView2Button);
            DefMenu.Add(new CtrlViewRight(2), testView3Button);
            DefMenu.Add(new CtrlViewRight(3), testView4Button);
        }

        private void CtrlViewTop_Load(object sender, EventArgs e)
        {
            DefMenu.Index = 0;
        }
    }
}
<file_sep>﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Hnc.Calorimeter.Client
{
    public static class AirFormula
    {
        /// <summary>
        /// 대기압 Pb (Atmospheric Pressure) [mmHg] - 고정 760 mmHg
        /// </summary>
        public static double Pb => 760d;

        public static double mmHg2Pa => 1.0d;

        public static double mmAq2Pa => 1.0d;

        public static double AdjPws => 1.0d;


        private static readonly double[] c1 =
        {
            -5.6745359e3d,
            6.3925247d,
            -9.677843e-3d,
            6.2215701e-7d,
            2.0747825e-9d,
            -9.484024e-13d,
            4.1635019d
        };
        private static readonly double[] c2 =
        {
            -5.8002206e3d,
            1.3914993d,
            -4.8640239e-2d,
            4.1764768e-5d,
            -1.4452093e-8d,
            6.5459673d
        };

        /// <summary>
        /// 포화수증기압 Pws [mmHg]
        /// 
        /// 건구 온도 기준일 때 Td 입력, 습구 온도 기준일 때 Tw 입력
        /// </summary>
        /// <param name="temp">건구/습구 온도 [℃]</param>
        /// <returns></returns>
        public static double GetPws(double temp)
        {
            // 절대 온도로 변경
            temp = temp + 273.15d;

            if (temp < 273.15d)
            {
                return Math.Exp(c1[0] / temp
                    + c1[1]
                    + c1[2] * temp
                    + c1[3] * Math.Pow(temp, 2)
                    + c1[4] * Math.Pow(temp, 3)
                    + c1[5] * Math.Pow(temp, 4)
                    + c1[6] * Math.Log(temp))
                    * 760d / 101325d;
            }
            else
            {
                return Math.Exp(c2[0] / temp
                    + c2[1]
                    + c2[2] * temp
                    + c2[3] * Math.Pow(temp, 2)
                    + c2[4] * Math.Pow(temp, 3)
                    + c2[5] * Math.Log(temp))
                    * 760d / 101325d;
            }
        }

        public static double GetVmDry(double ga, double vw, double nvw, double xw)
        {
            var vm = ga * 60d * vw / nvw;
            return vm;
        }

        public static double GetMaDry(double ga, double vw)
        {
            var ma = (ga * 60d) / vw;
            return ma;
        }

        ///// <summary>
        ///// 질량 유량 Ma [m3/min]
        ///// </summary>
        ///// <param name="ga"></param>
        ///// <param name="vw"></param>
        ///// <returns></returns>
        //public static double GetMa(double ga, double vw, double td, double tw, double xs)
        //{
        //    var ma = ga / vw;
        //    var maDry = GetMaDry(ma, td, tw, xs);

        //    return 0d;
        //}

        /// <summary>
        /// 포화절대습도 Xs [kg/kg']
        /// 
        /// Pws가 건구 온도 일 경우 건구온도 기준 포화절대습도
        /// Pws가 습구 온도 일 경우 습구온도 기준 포화절대습도
        /// </summary>
        /// <param name="pb">대기압 [mmHq]</param>
        /// <param name="pws">포화수증기압 [mmHq]</param>
        /// <returns></returns>
        public static double GetXs(double pb, double pws)
        {
            pb = mmHg2Pa * pb;

            return 0.62198d * (AdjPws * pws / (pb - AdjPws * pws));
            //return 0.622d * (AdjPws * pws / (pb - AdjPws * pws));
        }

        /// <summary>
        /// 절대습도(습구온도기준) Xw (Humidity Ratio) [kg/kg']
        /// 
        /// 난방(Heating) 시험일 대 입구측(Indoor Entering) 절대습도와 출구측 (Indoor Leaving) 절대습도는 같음
        /// </summary>
        /// <param name="td">건구온도 [℃]</param>
        /// <param name="tw">습구온도 [℃]</param>
        /// <param name="xs">포화절대습도 [kg/kg']</param>
        /// <returns></returns>
        public static double GetXw(double td, double tw, double xs)
        {
            return xs - ((0.24d + 0.441d * xs) * (td - tw)) / (597.3d + 0.441d * td - tw);
        }

        /// <summary>
        /// 비체적(건공기 기준) Vd [m3/kg']
        /// </summary>
        /// <param name="pb">대기압 [mmHg]</param>
        /// <param name="td">건구온도 [℃]</param>
        /// <param name="xw">절대습도 [kg/kg’]</param>
        /// <returns></returns>
        public static double GetVd(double pb, double td, double xw)
        {
            pb = mmHg2Pa * pb;

            return 0.4555d * (td + 273.15d) * (0.622d + xw) * 760d / 100d / pb;
        }

        /// <summary>
        /// 비체적(습공기기준) Vw [m3/kg]
        /// </summary>
        /// <param name="vd">비체적(건공기 기준) [m3/kg']</param>
        /// <param name="xw">절대습도[kg/kg']</param>
        /// <returns></returns>
        public static double GetVw(double vd, double xw)
        {
            return vd / (1d + xw);
        }

        /// <summary>
        /// 비엔탈피 Ha [kcal/kg']
        /// </summary>
        /// <param name="td">건구온도 [℃]</param>
        /// <param name="xw">절대습도 [kg/kg']</param>
        /// <returns></returns>
        public static double GetHa(double td, double xw)
        {
            return 0.24d * td + xw * (597.3d + 0.441d * td);
        }

        /// <summary>
        /// 현열 비엔탈피 Hs [kcal/kg']
        /// </summary>
        /// <param name="td">건구온도 [℃]</param>
        /// <param name="xw">절대습도 [kg/kg']</param>
        /// <returns></returns>
        public static double GetHs(double td, double xw)
        {
            return 0d;
        }

        /// <summary>
        /// 잠열 비엔탈피 HI [kcal/kg']
        /// </summary>
        /// <param name="xw">절대습도 [kg/kg']</param>
        /// <returns></returns>
        public static double GetHi(double xw)
        {
            return 0d;
        }

        /// <summary>
        /// 정압비열 Cp [kcal/kg'℃]
        /// </summary>
        /// <param name="xw">절대습도 [kg/kg']</param>
        /// <returns></returns>
        public static double GetCp(double xw)
        {
            return 0.24d + 0.441d * xw;
        }

        //public static double GetPe(double tw)
        //{
        //    return 3.25d * Math.Pow(tw, 2) + 18.6d * tw + 692.0d;
        //}

        //public static double GetPp(double pe, double pb, double td, double tw)
        //{
        //    return pe - pb * (td - tw) / 1500.0d;
        //}

        //public static double GetRho0(double pb, double pp, double td)
        //{
        //    return (pb - 0.378d * pp) / (287.1d * (td + 273.15d));
        //}

        //public static double GetRho5(double rho0, double pc, double pb)
        //{
        //    return rho0 * (pc + pb) / pb;
        //}

        public static double GetRho5(double td, double tw, double pc, double pb)
        {
            var pe = 3.25d * Math.Pow(tw, 2) + 18.6d * tw + 692.0d;
            var pp = pe - pb * (td - tw) / 1500.0d;
            var rho0 = (pb - 0.378d * pp) / (287.1d * (td + 273.15d));

            return rho0 * (pc + pb) / pb;
        }

        /// <summary>
        /// 팽창계수 Yex [m3/kg']
        /// </summary>
        /// <param name="td">건구온도 [℃]</param>
        /// <param name="tw">습구온도 [℃]</param>
        /// <param name="pn">노즐차압 [mmAq]</param>
        /// <param name="pc">챔버차압 [mmAq]</param>
        /// <param name="pb">대기압 [mmAq]</param>
        /// <returns></returns>
        public static double GetYex(double td, double tw, double pn, double pc, double pb)
        {
            pn = pn * mmAq2Pa;
            pc = pc * mmAq2Pa;
            pb = pb * mmHg2Pa;

            // 노즐 전단 밀도 계산
            var rho5 = GetRho5(td, tw, pc, pb);

            // 알파비 계산
            var alpha = 1.0d - pn / (pb * 13.6d);
            //var alpha = 1.0d - pn / (rho5 * 287.1d * (td + 273.15d));

            // 베타비 계산
            //var beta = 0m;      // 정체실 근접 가정

            return 0.452d + 0.548d * alpha;
            //return Math.Sqrt(1.4d / 0.4d * Math.Pow(alpha, (2.0d / 1.4d))
            //* (1.0d - Math.Pow(alpha, (0.4d / 1.4d))) / (1.0d - alpha));
        }

        /// <summary>
        /// 노즐통과풍속 Vx [m/sec]
        /// </summary>
        /// <param name="d">D1 ~ D6 : 노즐의 직경 [m]</param>
        /// <param name="pn">노즐차압 [mmAq]</param>
        /// <param name="rho5">노즐 전단 밀도</param>
        /// <returns></returns>
        public static double[] GetVx(double[] d, double pn, double pb, double rho5, double td, double vw)
        {
            var kv = 0.000003139d * Math.Pow((273.15d + td), 2.5d) / pb / (383.55d + td);
            var vx0 = Math.Pow((2d * pn), 0.5d);

            var vx = new double[d.Length];
            for (var i = 0; i < vx.Length; i++)
            {
                double vx1 = 0d;

                for (var j = 0; j < 49; j++)
                {
                    // Reynolds 수 계산
                    var re = vx0 * d[i] / kv;
                    var c = 0.9986d - 7.006d / Math.Pow(re, 0.5d) + 134.6d / re;
                    vx1 = c * Math.Pow((2d * 9.80665d * vw * pn), 0.5d);
                    var dv = Math.Abs(vx1 - vx0) / vx1;

                    if (dv < 0.001)
                    {
                        vx0 = Math.Pow((2d * pn), 0.5d);
                        break;
                    }
                    else
                    {
                        vx0 = vx1;
                    }
                }
                vx[i] = vx1;
            }
            return vx;

            // 노즐 유량계수 (Discharge coefficient) 계산
            // D/L = 0.6
            //var vx = new double[d.Length];
            //for (var i = 0; i < d.Length; i++)
            //vx[i] = 0.9986d - 7.006d / Math.Sqrt(re[i]) + 134.6d / re[i];

            //return vx;
        }

        /// <summary>
        /// 포화도 U [%]
        /// 
        /// Pws가 건구 온도 기준 - 건구온도 기준 포화절대습도
        /// Pws가 습구 온도 기준 - 습구온도 기준 포화절대습도
        /// </summary>
        /// <param name="xw">계산 포인트의 절대습도 [kg/kg']</param>
        /// <param name="xs">건구온도(DB) 기준 포화절대습도 [kg/kg']</param>
        /// <returns></returns>
        public static double GetU(double xw, double xs)
        {
            return xw / xs;
        }


        /// <summary>
        /// 상대습도 RH (Relative Humidity) [%]
        /// </summary>
        /// <param name="pb">대기압 [mmHq]</param>
        /// <param name="pws">건구온도(DB)기준 포화수증기압 [mmHq]</param>
        /// <param name="u"><포화도 [%]/param>
        /// <returns></returns>
        public static double GetRh(double pb, double pws, double xw, double u, double td)
        {
            pb = mmHg2Pa * pb;

            var fs = 1.0d + 0.004d * pb / 760d + Math.Pow((0.0008d * td - 0.004d), 2.0d);  // Pb --> pb 변경 (20161204)
            var rh1 = 50d;
            var rh2 = 49d;
            double rh = 0d;
            double rh3 = 0d;

            for (var i = 0; i < 49; i++)
            {
                var pw1 = pws * fs * rh1 * 0.01d;
                var pw2 = pws * fs * rh2 * 0.01d;
                var ws1 = 0.622d * (pw1 / (pb - pw1));
                var ws2 = 0.622d * (pw2 / (pb - pw2));

                rh3 = rh1 + (rh2 - rh1) * (xw - ws1) / (ws2 - ws1);
                var pw3 = pws * fs * rh3 * 0.01d;
                var ws3 = 0.622d * (pw3 / (pb - pw3));

                if (Math.Abs((ws3 - ws2) / ws3) < Math.Pow(10d, -8d))
                {
                    break;
                }
                else
                {
                    rh1 = rh2;
                    rh2 = rh3;
                }
            }
            return rh = rh3;

            //var rh = 100.0d * u / (1.0d - (1.0d - u) * (AdjPws * pws / pb));
            //if (rh > 100.0d)
            //rh = 100.0d;

            //return rh;
        }

        /// <summary>
        /// 체적풍량 Ga [m3/min]
        /// 
        /// - NOZ1 ~ NOZ6은 노즐의 개폐 여부로 0과 1
        /// - D1 ~ D6은 Coefficients 옵션의 Nozzle Diameter 값, mm -> m 변경 필요
        /// - 계산된 결과에 Airfow(풍량 보정계수) 값을 최종 Q에 곱함
        /// - Vw(습공기 기준 비체적)은 출구 온도 기준, 단, 비체적 계산에 들어가는 건구 온도는 출구쪽 건구 온도가 아닌 Nozzle Inlet Temp.의 건구 온도 사용
        /// </summary>
        /// <param name="noz">노즐 Open 여부(0 or 1)</param>
        /// <param name="vx">노즐통과풍속 [m/sec]</param>
        /// <param name="d">노즐의 직경 [m]</param>
        /// <param name="yex">팽창계수 [m3/kg']</param>
        /// <param name="pn">노즐차압 [mmAq]</param>
        /// <param name="vw">비체적(습공기기준) [m3/kg]</param>
        /// <returns></returns>
        public static double GetGa(double[] noz, double[] vx, double[] d, double yex, double pn, double vw)
        {
            pn = pn * mmAq2Pa;

            // 노즐 단면적 계산
            var a = new double[d.Length];
            for (var i = 0; i < d.Length; i++)
                a[i] = Math.PI * Math.Pow(d[i], 2d);

            // 풍량 계산
            double q = 0d;
            for (var i = 0; i < d.Length; i++)
            {
                if (noz[i] == 0d)
                    continue;

                q += ((noz[i] * vx[i] * a[i] * yex) / 4d);
            }
            return q;
        }

        /// <summary>
        /// 열손실 계수 QLoss [kcal/h]
        /// </summary>
        /// 
        /// - 난방 시험일 경우△t는 (출구 건구 온도 - 입구 건구) 온도 임
        /// - 연손실 계순 x는 Coefficients 옵션의 'Colling H.L.K'와 'Heating H.L.K' 값
        /// ※ 보조 덕트 사용 개수에 따라 연손실 계수(QLoss)가 추가 될 수 도 있음 (합산 적용)
        /// <param name="x">열손실계수 [kcal/hm2℃]</param>
        /// <param name="deltaT">△t : 입구건구온도 - 출구건구온도 [℃]</param>
        /// <returns></returns>
        public static double GetQLoss(double x, double deltaT)
        {
            return x * deltaT;
        }

        /// <summary>
        /// 냉방 전열량 Qac (Capacity) [kacl/h]
        /// 
        /// - Qac에 Colling Capacity(냉방능력 보정계수)를 곱해야 함
        /// </summary>
        /// <param name="ga">체적 풍량 [m3/min]</param>
        /// <param name="vw">출구측 비체적 (습공기기준) [m3/kg]</param>
        /// <param name="xw">입구측 절대습도 [kg/kg']</param>
        /// <param name="haI">입구측 비엔탈피 [kcal/kg']</param>
        /// <param name="haO">출구측 비엔탈피 [kcal/kg']</param>
        /// <param name="qLoss">열손실 [kcal/h]</param>
        /// <returns></returns>
        public static double GetQacCold(double maDry, double vw, double xw, double haI, double haO, double qLoss)
        {
            // 열교환량 계산
            return maDry * (haI - haO) * 60d + qLoss;
        }

        /// <summary>
        /// 난방 전열량 Qac (Capacity) [kcal/h]
        /// 
        /// - Qac에 Heating Capacity(난방능력 보정계수)를 곱해야 함
        /// - 난방(Heating) 시험일 때 입구측(Indoor Entering) 절대습도와 출구측(Indoor Leaving) 절대습도가 같음
        /// Vw(습공기 기준 비체적)은 출구 온도 기준, 단, 비체적 계산에 들어가는 건구 온도는 출구측 건구 온도가 아닌 Nozzle Inlet Temp.의 건구 온도 사용
        /// </summary>
        /// <param name="ga">체적 풍량 [m3/min]</param>
        /// <param name="vw">출구측 비체적 (습공기기준) [m3/kg]</param>
        /// <param name="xw">입구측 절대습도 [kg/kg']</param>
        /// <param name="tdI">입구측 건구온도 [℃]</param>
        /// <param name="tdO">출구측 건구온도 [℃]</param>
        /// <param name="qLoss">연손실</param>
        /// <returns></returns>
        public static double GetQacHeat(double maDry, double vw, double xw, double tdI, double tdO, double qLoss)
        {
            // 열교환량 계산
            return maDry * (tdO - tdI) * (0.24d + 0.441d * xw) * 60d + qLoss;
        }

        /// <summary>
        /// 냉방 현열량 Qs (Sensible Heat) [kcal/h]
        /// </summary>
        /// <param name="maDry">질량 풍량 [kg/min]</param>
        /// <param name="hsI">입구측 현열 비엔탈피 [kcal/kg']</param>
        /// <param name="hsO">출구측 현열 비엔탈피 [kcal/kg']</param>
        /// <param name="qLoss">열손실 [kcal/h]</param>
        /// <returns></returns>
        public static double GetQsCold(double maDry, double hsI, double hsO, double qLoss)
        {
            return maDry * (hsI - hsO) * 1000d + qLoss;
        }

        /// <summary>
        /// 난방 현열량 Qs (Sensible Heat) [kcal/h]
        /// </summary>
        /// <param name="maDry">질량 풍량 [kg/min]</param>
        /// <param name="xw">입구측 절대습도 [kg/kg']</param>
        /// <param name="tdI">입구측 건구온도 [℃]</param>
        /// <param name="tdO">출구측 건구온도 [℃]</param>
        /// <param name="qLoss">열손시 [kcal/h]</param>
        /// <returns></returns>
        public static double GetQsHeat(double maDry, double xw, double tdI, double tdO, double qLoss)
        {
            return maDry * (tdI - tdO) * (1.006d + 1.86d * xw) * 1000d * qLoss;
        }

        /// <summary>
        /// 잠열량 Qcc (Latent Heat) [kcal/h]
        /// </summary>
        /// <param name="qac">전열량 [kcal/h]</param>
        /// <param name="qs">현열량 [kcal/h]</param>
        /// <returns></returns>
        public static double GetQcc(double qac, double qs)
        {
            return 588.0d * qs;
        }

        /// <summary>
        /// 응축수량 Gcw (Drain Weight) [g/h]
        /// </summary>
        /// <param name="maDry"질량 풍량 [kg/min]></param>
        /// <param name="xwI">입구측 절대습도 [kg/kg']</param>
        /// <param name="xwO">출구측 절대습도 [kg/kg']</param>
        /// <returns></returns>
        public static double GetGcw(double maDry, double xwI, double xwO)
        {
            return maDry * (xwI - xwO) * 60d;
        }

        /// <summary>
        /// 현열비 SHR (Sensible Heat Ratio)
        /// </summary>
        /// <param name="qac">전열량 [kcal/h]</param>
        /// <param name="qs">현열량 [kcal/h]</param>
        /// <returns></returns>
        public static double GetShr(double qac, double qs)
        {
            return qs / qac * 100d;
        }

        /// <summary>
        /// Fan Power (W)
        /// </summary>
        /// <param name="airflowLev">Air Flow [Lev] (㎥/min)</param>
        /// <param name="staticPressure">Static Pressure (mmAq)</param>
        /// <returns></returns>
        public static double GetFanPower(double airflowLev, double staticPressure)
        {
            return (airflowLev / 60d * 1000d) * 10e-3d * (staticPressure * 9.80661358d) / 0.3d;
        }

        /// <summary>
        /// 노점온도 DP (Dew Point) [℃]
        /// </summary>
        /// <param name="pb">대기압 [mmHq]</param>
        /// <param name="ws"></param>
        /// <returns></returns>
        public static double GetDp(double pb, double td, double ws)
        {
            var dp1 = td;
            var dp2 = td - 1d;
            double dp = 0d;
            double dp3 = 0d;

            for (var i = 0; i < 49; i++)
            {
                var pw1 = GetPws(dp1);
                var pw2 = GetPws(dp2);
                var ws1 = 0.622d * (pw1 / (pb - pw1));
                var ws2 = 0.622d * (pw2 / (pb - pw2));

                if (Math.Abs(ws2 - ws1) < Math.Pow(10d, -8d))
                {
                    dp3 = dp1;
                    break;
                }
                dp3 = dp1 + (dp2 - dp1) * (ws - ws1) / (ws2 - ws1);

                var pw3 = GetPws(dp3);
                var ws3 = 0.622d * (pw3 / (pb - pw3));
                var xw3 = GetXwn(ws3, td, dp3);

                if (Math.Abs((xw3 - ws2) / xw3) < Math.Pow(10d, -8d))
                {
                    break;
                }
                else
                {
                    dp1 = dp2;
                    dp2 = dp3;
                }
            }
            return dp = dp3;
        }

        /// <summary>
        /// 습구온도 WB (Wet Bulb) [℃]
        /// </summary>
        /// <param name="pb">대기압 [mmHq]</param>
        /// <param name="pws">건구온도(DB)기준 포화수증기압 [mmHq]</param>
        /// <param name="RH">상대습도 [%]</param>
        /// <returns></returns>
        public static double GetWb(double pb, double pws, double td, double rh)
        {
            //pb = Pb;
            var fs = 1.0d + 0.004d * pb / 760d + Math.Pow((0.0008d * td - 0.004d), 2.0d);

            var pw = pws * fs * rh * 0.01d;
            var ws = 0.622d * (pw / (pb - pw));

            return WetBulb(pb, td, ws);
        }

        private static double WetBulb(double pb, double td, double ws)
        {
            var wb1 = td;
            var wb2 = td - 1d;
            double wb = 0d;
            double wb3 = 0d;

            for (var i = 0; i < 49; i++)
            {
                var pw1 = GetPws(wb1);
                var pw2 = GetPws(wb2);
                var ws1 = 0.622d * (pw1 / (pb - pw1));
                var ws2 = 0.622d * (pw2 / (pb - pw2));

                var xw1 = GetXwn(ws1, td, wb1);
                var xw2 = GetXwn(ws2, td, wb2);
                //var xw1 = GetXw(td, wb1, ws1);
                //var xw2 = GetXw(td, wb2, ws2);
                wb3 = wb1 + (wb2 - wb1) * (ws - xw1) / (xw2 - xw1);

                var pw3 = GetPws(wb3);
                var ws3 = 0.622d * (pw3 / (pb - pw3));
                var xw3 = GetXwn(ws3, td, wb3);
                //var xw3 = GetXw(td, wb3, ws3);

                if (Math.Abs((xw3 - xw2) / xw3) < Math.Pow(10d, -8d))
                {
                    break;
                }
                else
                {
                    wb1 = wb2;
                    wb2 = wb3;
                }
            }
            return wb = wb3;
        }

        public static double GetXwn(double ws, double td, double wb)
        {
            var n1 = (0.24d + 0.441d * ws) * (td - wb);
            var n2 = (597.3d + 0.441d * td);
            var n3 = wb < 0.0 ? (0.5d * wb - 79.7d) : wb;

            return ws - n1 / (n2 - n3);
        }
    }
}
<file_sep>﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

using DevExpress.Spreadsheet;

namespace Hnc.Calorimeter.Client
{
    public class WorksheetTagCollection
    {
        public WorksheetTagCollection(IWorkbook workbook)
        {
            this.workbook = workbook;
            Sheets = new Dictionary<string, Dictionary<string, Cell>>();
            Initialize();
        }

        private string csHeadTag = "{";
        private string csTailTag = "}";
        private string csEndTag = "{end}";

        private IWorkbook workbook;
        public Dictionary<string, Dictionary<string, Cell>> Sheets { get; private set; }

        public void SetWorkSheetVisible(string key, bool visible)
        {
            workbook.Worksheets[key].Visible = visible;
        }

        public void Clear()
        {
            workbook.BeginUpdate();

            try
            {
                foreach (KeyValuePair<string, Dictionary<string, Cell>> sheet in Sheets)
                {
                    foreach (KeyValuePair<string, Cell> tag in sheet.Value)
                    {
                        tag.Value.Value = "";
                    }
                }
            }
            finally
            {
                workbook.EndUpdate();
            }
        }

        private void Initialize()
        {
            int rowLength, columnLength;

            workbook.BeginUpdate();

            try
            {
                foreach (Worksheet sheet in workbook.Worksheets)
                {
                    rowLength = GetRowLength(sheet, csEndTag);
                    columnLength = GetColumnLength(sheet, csEndTag);

                    Dictionary<string, Cell> tags = new Dictionary<string, Cell>();
                    AddTags(sheet, tags, rowLength, columnLength);
                    Sheets.Add(sheet.Name, tags);
                }
            }
            finally
            {
                workbook.EndUpdate();
            }
        }

        public void Save(string fName)
        {
            try
            {
                workbook.SaveDocument(fName);
            }
            catch (Exception e)
            {
                Resource.TLog.Log((int)ELogItem.Exception, e.ToString());
            }
        }

        private void AddTags(Worksheet sheet, Dictionary<string, Cell> tags, int rowLength, int columnLength)
        {
            for (int row = 0; row < rowLength; row++)
            {
                for (int column = 0; column < columnLength; column++)
                {
                    string text = sheet.Cells[row, column].Value.TextValue;

                    if (string.IsNullOrWhiteSpace(text) == false)
                    {
                        text = text.Trim();

                        if (text.Length > 2)
                        {
                            string head = text.Substring(0, 1);
                            string tail = text.Substring(text.Length - 1, 1);

                            if ((head == csHeadTag) && (tail == csTailTag))
                            {
                                tags.Add(text, sheet.Cells[row, column]);
                            }
                        }
                    }
                }
            }
        }

        private int GetRowLength(Worksheet sheet, string text, int length = 100)
        {
            for (int i = 0; i < length; i++)
            {
                if (sheet.Cells[i, 0].Value.TextValue == text)
                {
                    sheet.Cells[i, 0].Value = "";

                    return sheet.Cells[i, 0].RowIndex + 1;
                }
            }

            return 0;
        }

        private int GetColumnLength(Worksheet sheet, string text, int length = 100)
        {
            for (int i = 0; i < length; i++)
            {
                if (sheet.Cells[0, i].Value.TextValue == csEndTag)
                {
                    sheet[0, i].Value = "";

                    return sheet[0, i].ColumnIndex + 1;
                }
            }

            return 0;
        }
    }
}
<file_sep>﻿namespace Hnc.Calorimeter.Client
{
    partial class CtrlDeviceAll
    {
        /// <summary> 
        /// Required designer variable.
        /// </summary>
        private System.ComponentModel.IContainer components = null;

        /// <summary> 
        /// Clean up any resources being used.
        /// </summary>
        /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
        protected override void Dispose(bool disposing)
        {
            if (disposing && (components != null))
            {
                components.Dispose();
            }
            base.Dispose(disposing);
        }

        #region Component Designer generated code

        /// <summary> 
        /// Required method for Designer support - do not modify 
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            this.ulPanel4 = new Ulee.Controls.UlPanel();
            this.powerMeterGrid = new DevExpress.XtraGrid.GridControl();
            this.powerMeterGridView = new DevExpress.XtraGrid.Views.Grid.GridView();
            this.pmNameColumn = new DevExpress.XtraGrid.Columns.GridColumn();
            this.pmValueColumn = new DevExpress.XtraGrid.Columns.GridColumn();
            this.ulPanel6 = new Ulee.Controls.UlPanel();
            this.ulPanel1 = new Ulee.Controls.UlPanel();
            this.controllerGrid = new DevExpress.XtraGrid.GridControl();
            this.controllerGridView = new DevExpress.XtraGrid.Views.Grid.GridView();
            this.cgNameColumn = new DevExpress.XtraGrid.Columns.GridColumn();
            this.cgValueColumn = new DevExpress.XtraGrid.Columns.GridColumn();
            this.ulPanel2 = new Ulee.Controls.UlPanel();
            this.ulPanel3 = new Ulee.Controls.UlPanel();
            this.plcGrid = new DevExpress.XtraGrid.GridControl();
            this.plcGridView = new DevExpress.XtraGrid.Views.Grid.GridView();
            this.pgNameColumn = new DevExpress.XtraGrid.Columns.GridColumn();
            this.pgValueColumn = new DevExpress.XtraGrid.Columns.GridColumn();
            this.ulPanel5 = new Ulee.Controls.UlPanel();
            this.ulPanel7 = new Ulee.Controls.UlPanel();
            this.recorder4Grid = new DevExpress.XtraGrid.GridControl();
            this.recorder4GridView = new DevExpress.XtraGrid.Views.Grid.GridView();
            this.gridColumn3 = new DevExpress.XtraGrid.Columns.GridColumn();
            this.gridColumn4 = new DevExpress.XtraGrid.Columns.GridColumn();
            this.recorder3Grid = new DevExpress.XtraGrid.GridControl();
            this.recorder3GridView = new DevExpress.XtraGrid.Views.Grid.GridView();
            this.gridColumn5 = new DevExpress.XtraGrid.Columns.GridColumn();
            this.gridColumn6 = new DevExpress.XtraGrid.Columns.GridColumn();
            this.recorder2Grid = new DevExpress.XtraGrid.GridControl();
            this.recorder2GridView = new DevExpress.XtraGrid.Views.Grid.GridView();
            this.gridColumn1 = new DevExpress.XtraGrid.Columns.GridColumn();
            this.gridColumn2 = new DevExpress.XtraGrid.Columns.GridColumn();
            this.recorder1Grid = new DevExpress.XtraGrid.GridControl();
            this.recorder1GridView = new DevExpress.XtraGrid.Views.Grid.GridView();
            this.rgNameColumn = new DevExpress.XtraGrid.Columns.GridColumn();
            this.rgValueColumn = new DevExpress.XtraGrid.Columns.GridColumn();
            this.ulPanel8 = new Ulee.Controls.UlPanel();
            this.bgPanel.SuspendLayout();
            this.ulPanel4.SuspendLayout();
            ((System.ComponentModel.ISupportInitialize)(this.powerMeterGrid)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.powerMeterGridView)).BeginInit();
            this.ulPanel1.SuspendLayout();
            ((System.ComponentModel.ISupportInitialize)(this.controllerGrid)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.controllerGridView)).BeginInit();
            this.ulPanel3.SuspendLayout();
            ((System.ComponentModel.ISupportInitialize)(this.plcGrid)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.plcGridView)).BeginInit();
            this.ulPanel7.SuspendLayout();
            ((System.ComponentModel.ISupportInitialize)(this.recorder4Grid)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.recorder4GridView)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.recorder3Grid)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.recorder3GridView)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.recorder2Grid)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.recorder2GridView)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.recorder1Grid)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.recorder1GridView)).BeginInit();
            this.SuspendLayout();
            // 
            // bgPanel
            // 
            this.bgPanel.BevelOuter = Ulee.Controls.EUlBevelStyle.None;
            this.bgPanel.Controls.Add(this.ulPanel7);
            this.bgPanel.Controls.Add(this.ulPanel3);
            this.bgPanel.Controls.Add(this.ulPanel1);
            this.bgPanel.Controls.Add(this.ulPanel4);
            this.bgPanel.Size = new System.Drawing.Size(1816, 915);
            // 
            // ulPanel4
            // 
            this.ulPanel4.BevelInner = Ulee.Controls.EUlBevelStyle.Raised;
            this.ulPanel4.BevelOuter = Ulee.Controls.EUlBevelStyle.Lowered;
            this.ulPanel4.Controls.Add(this.powerMeterGrid);
            this.ulPanel4.Controls.Add(this.ulPanel6);
            this.ulPanel4.InnerColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.ulPanel4.InnerColor2 = System.Drawing.Color.White;
            this.ulPanel4.Location = new System.Drawing.Point(0, 0);
            this.ulPanel4.Name = "ulPanel4";
            this.ulPanel4.OuterColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.ulPanel4.OuterColor2 = System.Drawing.Color.White;
            this.ulPanel4.Size = new System.Drawing.Size(300, 915);
            this.ulPanel4.Spacing = 0;
            this.ulPanel4.TabIndex = 5;
            this.ulPanel4.TextHAlign = Ulee.Controls.EUlHoriAlign.Center;
            this.ulPanel4.TextVAlign = Ulee.Controls.EUlVertAlign.Middle;
            // 
            // powerMeterGrid
            // 
            this.powerMeterGrid.Cursor = System.Windows.Forms.Cursors.Default;
            this.powerMeterGrid.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.powerMeterGrid.Location = new System.Drawing.Point(6, 40);
            this.powerMeterGrid.MainView = this.powerMeterGridView;
            this.powerMeterGrid.Name = "powerMeterGrid";
            this.powerMeterGrid.Size = new System.Drawing.Size(288, 868);
            this.powerMeterGrid.TabIndex = 6;
            this.powerMeterGrid.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] {
            this.powerMeterGridView});
            // 
            // powerMeterGridView
            // 
            this.powerMeterGridView.Appearance.FixedLine.Font = new System.Drawing.Font("Arial", 9F);
            this.powerMeterGridView.Appearance.FixedLine.Options.UseFont = true;
            this.powerMeterGridView.Appearance.FocusedRow.Font = new System.Drawing.Font("Arial", 9F);
            this.powerMeterGridView.Appearance.FocusedRow.Options.UseFont = true;
            this.powerMeterGridView.Appearance.HeaderPanel.Font = new System.Drawing.Font("Arial", 9F);
            this.powerMeterGridView.Appearance.HeaderPanel.Options.UseFont = true;
            this.powerMeterGridView.Appearance.HideSelectionRow.Font = new System.Drawing.Font("Arial", 9F);
            this.powerMeterGridView.Appearance.HideSelectionRow.Options.UseFont = true;
            this.powerMeterGridView.Appearance.OddRow.Font = new System.Drawing.Font("Arial", 9F);
            this.powerMeterGridView.Appearance.OddRow.Options.UseFont = true;
            this.powerMeterGridView.Appearance.Preview.Font = new System.Drawing.Font("Arial", 9F);
            this.powerMeterGridView.Appearance.Preview.Options.UseFont = true;
            this.powerMeterGridView.Appearance.Row.Font = new System.Drawing.Font("Arial", 9F);
            this.powerMeterGridView.Appearance.Row.Options.UseFont = true;
            this.powerMeterGridView.Appearance.SelectedRow.Font = new System.Drawing.Font("Arial", 9F);
            this.powerMeterGridView.Appearance.SelectedRow.Options.UseFont = true;
            this.powerMeterGridView.Appearance.ViewCaption.Font = new System.Drawing.Font("Arial", 9F);
            this.powerMeterGridView.Appearance.ViewCaption.Options.UseFont = true;
            this.powerMeterGridView.Columns.AddRange(new DevExpress.XtraGrid.Columns.GridColumn[] {
            this.pmNameColumn,
            this.pmValueColumn});
            this.powerMeterGridView.CustomizationFormBounds = new System.Drawing.Rectangle(2884, 580, 210, 186);
            this.powerMeterGridView.GridControl = this.powerMeterGrid;
            this.powerMeterGridView.Name = "powerMeterGridView";
            this.powerMeterGridView.OptionsView.ColumnAutoWidth = false;
            this.powerMeterGridView.OptionsView.ShowGroupPanel = false;
            this.powerMeterGridView.OptionsView.ShowIndicator = false;
            this.powerMeterGridView.Tag = 0;
            // 
            // pmNameColumn
            // 
            this.pmNameColumn.AppearanceCell.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.pmNameColumn.AppearanceCell.Options.UseFont = true;
            this.pmNameColumn.AppearanceHeader.Font = new System.Drawing.Font("Arial", 9F);
            this.pmNameColumn.AppearanceHeader.Options.UseFont = true;
            this.pmNameColumn.Caption = "Name";
            this.pmNameColumn.FieldName = "Name";
            this.pmNameColumn.Name = "pmNameColumn";
            this.pmNameColumn.OptionsColumn.AllowEdit = false;
            this.pmNameColumn.OptionsColumn.AllowFocus = false;
            this.pmNameColumn.OptionsColumn.AllowGroup = DevExpress.Utils.DefaultBoolean.False;
            this.pmNameColumn.OptionsColumn.AllowIncrementalSearch = false;
            this.pmNameColumn.OptionsColumn.AllowMerge = DevExpress.Utils.DefaultBoolean.False;
            this.pmNameColumn.OptionsColumn.AllowMove = false;
            this.pmNameColumn.OptionsColumn.AllowShowHide = false;
            this.pmNameColumn.OptionsColumn.AllowSize = false;
            this.pmNameColumn.OptionsColumn.AllowSort = DevExpress.Utils.DefaultBoolean.False;
            this.pmNameColumn.OptionsColumn.FixedWidth = true;
            this.pmNameColumn.OptionsColumn.ImmediateUpdateRowPosition = DevExpress.Utils.DefaultBoolean.False;
            this.pmNameColumn.OptionsColumn.Printable = DevExpress.Utils.DefaultBoolean.False;
            this.pmNameColumn.OptionsColumn.ReadOnly = true;
            this.pmNameColumn.OptionsColumn.TabStop = false;
            this.pmNameColumn.OptionsFilter.AllowAutoFilter = false;
            this.pmNameColumn.OptionsFilter.AllowFilter = false;
            this.pmNameColumn.Visible = true;
            this.pmNameColumn.VisibleIndex = 0;
            this.pmNameColumn.Width = 160;
            // 
            // pmValueColumn
            // 
            this.pmValueColumn.AppearanceCell.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.pmValueColumn.AppearanceCell.Options.UseFont = true;
            this.pmValueColumn.AppearanceHeader.Font = new System.Drawing.Font("Arial", 9F);
            this.pmValueColumn.AppearanceHeader.Options.UseFont = true;
            this.pmValueColumn.Caption = "Value";
            this.pmValueColumn.DisplayFormat.FormatString = "{0:F2}";
            this.pmValueColumn.DisplayFormat.FormatType = DevExpress.Utils.FormatType.Numeric;
            this.pmValueColumn.FieldName = "Value";
            this.pmValueColumn.Name = "pmValueColumn";
            this.pmValueColumn.OptionsColumn.AllowEdit = false;
            this.pmValueColumn.OptionsColumn.AllowFocus = false;
            this.pmValueColumn.OptionsColumn.AllowGroup = DevExpress.Utils.DefaultBoolean.False;
            this.pmValueColumn.OptionsColumn.AllowIncrementalSearch = false;
            this.pmValueColumn.OptionsColumn.AllowMerge = DevExpress.Utils.DefaultBoolean.False;
            this.pmValueColumn.OptionsColumn.AllowMove = false;
            this.pmValueColumn.OptionsColumn.AllowShowHide = false;
            this.pmValueColumn.OptionsColumn.AllowSize = false;
            this.pmValueColumn.OptionsColumn.AllowSort = DevExpress.Utils.DefaultBoolean.False;
            this.pmValueColumn.OptionsColumn.FixedWidth = true;
            this.pmValueColumn.OptionsColumn.ImmediateUpdateRowPosition = DevExpress.Utils.DefaultBoolean.False;
            this.pmValueColumn.OptionsColumn.Printable = DevExpress.Utils.DefaultBoolean.False;
            this.pmValueColumn.OptionsColumn.ReadOnly = true;
            this.pmValueColumn.OptionsColumn.TabStop = false;
            this.pmValueColumn.OptionsFilter.AllowAutoFilter = false;
            this.pmValueColumn.OptionsFilter.AllowFilter = false;
            this.pmValueColumn.Visible = true;
            this.pmValueColumn.VisibleIndex = 1;
            this.pmValueColumn.Width = 100;
            // 
            // ulPanel6
            // 
            this.ulPanel6.BackColor = System.Drawing.Color.DeepSkyBlue;
            this.ulPanel6.BevelInner = Ulee.Controls.EUlBevelStyle.None;
            this.ulPanel6.BevelOuter = Ulee.Controls.EUlBevelStyle.Lowered;
            this.ulPanel6.Font = new System.Drawing.Font("Arial Rounded MT Bold", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.ulPanel6.ForeColor = System.Drawing.Color.White;
            this.ulPanel6.InnerColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.ulPanel6.InnerColor2 = System.Drawing.Color.White;
            this.ulPanel6.Location = new System.Drawing.Point(6, 6);
            this.ulPanel6.Name = "ulPanel6";
            this.ulPanel6.OuterColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.ulPanel6.OuterColor2 = System.Drawing.Color.White;
            this.ulPanel6.Size = new System.Drawing.Size(288, 28);
            this.ulPanel6.Spacing = 0;
            this.ulPanel6.TabIndex = 5;
            this.ulPanel6.Text = "POWER METER";
            this.ulPanel6.TextHAlign = Ulee.Controls.EUlHoriAlign.Center;
            this.ulPanel6.TextVAlign = Ulee.Controls.EUlVertAlign.Middle;
            // 
            // ulPanel1
            // 
            this.ulPanel1.BevelInner = Ulee.Controls.EUlBevelStyle.Raised;
            this.ulPanel1.BevelOuter = Ulee.Controls.EUlBevelStyle.Lowered;
            this.ulPanel1.Controls.Add(this.controllerGrid);
            this.ulPanel1.Controls.Add(this.ulPanel2);
            this.ulPanel1.InnerColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.ulPanel1.InnerColor2 = System.Drawing.Color.White;
            this.ulPanel1.Location = new System.Drawing.Point(1516, 0);
            this.ulPanel1.Name = "ulPanel1";
            this.ulPanel1.OuterColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.ulPanel1.OuterColor2 = System.Drawing.Color.White;
            this.ulPanel1.Size = new System.Drawing.Size(300, 689);
            this.ulPanel1.Spacing = 0;
            this.ulPanel1.TabIndex = 6;
            this.ulPanel1.TextHAlign = Ulee.Controls.EUlHoriAlign.Center;
            this.ulPanel1.TextVAlign = Ulee.Controls.EUlVertAlign.Middle;
            // 
            // controllerGrid
            // 
            this.controllerGrid.Cursor = System.Windows.Forms.Cursors.Default;
            this.controllerGrid.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.controllerGrid.Location = new System.Drawing.Point(6, 40);
            this.controllerGrid.MainView = this.controllerGridView;
            this.controllerGrid.Name = "controllerGrid";
            this.controllerGrid.Size = new System.Drawing.Size(288, 643);
            this.controllerGrid.TabIndex = 8;
            this.controllerGrid.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] {
            this.controllerGridView});
            // 
            // controllerGridView
            // 
            this.controllerGridView.Appearance.FixedLine.Font = new System.Drawing.Font("Arial", 9F);
            this.controllerGridView.Appearance.FixedLine.Options.UseFont = true;
            this.controllerGridView.Appearance.FocusedRow.Font = new System.Drawing.Font("Arial", 9F);
            this.controllerGridView.Appearance.FocusedRow.Options.UseFont = true;
            this.controllerGridView.Appearance.HeaderPanel.Font = new System.Drawing.Font("Arial", 9F);
            this.controllerGridView.Appearance.HeaderPanel.Options.UseFont = true;
            this.controllerGridView.Appearance.HideSelectionRow.Font = new System.Drawing.Font("Arial", 9F);
            this.controllerGridView.Appearance.HideSelectionRow.Options.UseFont = true;
            this.controllerGridView.Appearance.OddRow.Font = new System.Drawing.Font("Arial", 9F);
            this.controllerGridView.Appearance.OddRow.Options.UseFont = true;
            this.controllerGridView.Appearance.Preview.Font = new System.Drawing.Font("Arial", 9F);
            this.controllerGridView.Appearance.Preview.Options.UseFont = true;
            this.controllerGridView.Appearance.Row.Font = new System.Drawing.Font("Arial", 9F);
            this.controllerGridView.Appearance.Row.Options.UseFont = true;
            this.controllerGridView.Appearance.SelectedRow.Font = new System.Drawing.Font("Arial", 9F);
            this.controllerGridView.Appearance.SelectedRow.Options.UseFont = true;
            this.controllerGridView.Appearance.ViewCaption.Font = new System.Drawing.Font("Arial", 9F);
            this.controllerGridView.Appearance.ViewCaption.Options.UseFont = true;
            this.controllerGridView.Columns.AddRange(new DevExpress.XtraGrid.Columns.GridColumn[] {
            this.cgNameColumn,
            this.cgValueColumn});
            this.controllerGridView.CustomizationFormBounds = new System.Drawing.Rectangle(2884, 580, 210, 186);
            this.controllerGridView.GridControl = this.controllerGrid;
            this.controllerGridView.Name = "controllerGridView";
            this.controllerGridView.OptionsView.ColumnAutoWidth = false;
            this.controllerGridView.OptionsView.ShowGroupPanel = false;
            this.controllerGridView.OptionsView.ShowIndicator = false;
            this.controllerGridView.Tag = 0;
            // 
            // cgNameColumn
            // 
            this.cgNameColumn.AppearanceCell.Font = new System.Drawing.Font("Arial", 9F);
            this.cgNameColumn.AppearanceCell.Options.UseFont = true;
            this.cgNameColumn.AppearanceHeader.Font = new System.Drawing.Font("Arial", 9F);
            this.cgNameColumn.AppearanceHeader.Options.UseFont = true;
            this.cgNameColumn.Caption = "Name";
            this.cgNameColumn.FieldName = "Name";
            this.cgNameColumn.Name = "cgNameColumn";
            this.cgNameColumn.OptionsColumn.AllowEdit = false;
            this.cgNameColumn.OptionsColumn.AllowFocus = false;
            this.cgNameColumn.OptionsColumn.AllowGroup = DevExpress.Utils.DefaultBoolean.False;
            this.cgNameColumn.OptionsColumn.AllowIncrementalSearch = false;
            this.cgNameColumn.OptionsColumn.AllowMerge = DevExpress.Utils.DefaultBoolean.False;
            this.cgNameColumn.OptionsColumn.AllowMove = false;
            this.cgNameColumn.OptionsColumn.AllowShowHide = false;
            this.cgNameColumn.OptionsColumn.AllowSize = false;
            this.cgNameColumn.OptionsColumn.AllowSort = DevExpress.Utils.DefaultBoolean.False;
            this.cgNameColumn.OptionsColumn.FixedWidth = true;
            this.cgNameColumn.OptionsColumn.ImmediateUpdateRowPosition = DevExpress.Utils.DefaultBoolean.False;
            this.cgNameColumn.OptionsColumn.Printable = DevExpress.Utils.DefaultBoolean.False;
            this.cgNameColumn.OptionsColumn.ReadOnly = true;
            this.cgNameColumn.OptionsColumn.TabStop = false;
            this.cgNameColumn.OptionsFilter.AllowAutoFilter = false;
            this.cgNameColumn.OptionsFilter.AllowFilter = false;
            this.cgNameColumn.Visible = true;
            this.cgNameColumn.VisibleIndex = 0;
            this.cgNameColumn.Width = 160;
            // 
            // cgValueColumn
            // 
            this.cgValueColumn.AppearanceCell.Font = new System.Drawing.Font("Arial", 9F);
            this.cgValueColumn.AppearanceCell.Options.UseFont = true;
            this.cgValueColumn.AppearanceHeader.Font = new System.Drawing.Font("Arial", 9F);
            this.cgValueColumn.AppearanceHeader.Options.UseFont = true;
            this.cgValueColumn.Caption = "Value";
            this.cgValueColumn.DisplayFormat.FormatString = "{0:F2}";
            this.cgValueColumn.DisplayFormat.FormatType = DevExpress.Utils.FormatType.Numeric;
            this.cgValueColumn.FieldName = "Value";
            this.cgValueColumn.Name = "cgValueColumn";
            this.cgValueColumn.OptionsColumn.AllowEdit = false;
            this.cgValueColumn.OptionsColumn.AllowFocus = false;
            this.cgValueColumn.OptionsColumn.AllowGroup = DevExpress.Utils.DefaultBoolean.False;
            this.cgValueColumn.OptionsColumn.AllowIncrementalSearch = false;
            this.cgValueColumn.OptionsColumn.AllowMerge = DevExpress.Utils.DefaultBoolean.False;
            this.cgValueColumn.OptionsColumn.AllowMove = false;
            this.cgValueColumn.OptionsColumn.AllowShowHide = false;
            this.cgValueColumn.OptionsColumn.AllowSize = false;
            this.cgValueColumn.OptionsColumn.AllowSort = DevExpress.Utils.DefaultBoolean.False;
            this.cgValueColumn.OptionsColumn.FixedWidth = true;
            this.cgValueColumn.OptionsColumn.ImmediateUpdateRowPosition = DevExpress.Utils.DefaultBoolean.False;
            this.cgValueColumn.OptionsColumn.Printable = DevExpress.Utils.DefaultBoolean.False;
            this.cgValueColumn.OptionsColumn.ReadOnly = true;
            this.cgValueColumn.OptionsColumn.TabStop = false;
            this.cgValueColumn.OptionsFilter.AllowAutoFilter = false;
            this.cgValueColumn.OptionsFilter.AllowFilter = false;
            this.cgValueColumn.Visible = true;
            this.cgValueColumn.VisibleIndex = 1;
            this.cgValueColumn.Width = 100;
            // 
            // ulPanel2
            // 
            this.ulPanel2.BackColor = System.Drawing.Color.DeepSkyBlue;
            this.ulPanel2.BevelInner = Ulee.Controls.EUlBevelStyle.None;
            this.ulPanel2.BevelOuter = Ulee.Controls.EUlBevelStyle.Lowered;
            this.ulPanel2.Font = new System.Drawing.Font("Arial Rounded MT Bold", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.ulPanel2.ForeColor = System.Drawing.Color.White;
            this.ulPanel2.InnerColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.ulPanel2.InnerColor2 = System.Drawing.Color.White;
            this.ulPanel2.Location = new System.Drawing.Point(6, 6);
            this.ulPanel2.Name = "ulPanel2";
            this.ulPanel2.OuterColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.ulPanel2.OuterColor2 = System.Drawing.Color.White;
            this.ulPanel2.Size = new System.Drawing.Size(288, 28);
            this.ulPanel2.Spacing = 0;
            this.ulPanel2.TabIndex = 5;
            this.ulPanel2.Text = "CONTROLLER";
            this.ulPanel2.TextHAlign = Ulee.Controls.EUlHoriAlign.Center;
            this.ulPanel2.TextVAlign = Ulee.Controls.EUlVertAlign.Middle;
            // 
            // ulPanel3
            // 
            this.ulPanel3.BevelInner = Ulee.Controls.EUlBevelStyle.Raised;
            this.ulPanel3.BevelOuter = Ulee.Controls.EUlBevelStyle.Lowered;
            this.ulPanel3.Controls.Add(this.plcGrid);
            this.ulPanel3.Controls.Add(this.ulPanel5);
            this.ulPanel3.InnerColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.ulPanel3.InnerColor2 = System.Drawing.Color.White;
            this.ulPanel3.Location = new System.Drawing.Point(1516, 695);
            this.ulPanel3.Name = "ulPanel3";
            this.ulPanel3.OuterColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.ulPanel3.OuterColor2 = System.Drawing.Color.White;
            this.ulPanel3.Size = new System.Drawing.Size(300, 220);
            this.ulPanel3.Spacing = 0;
            this.ulPanel3.TabIndex = 7;
            this.ulPanel3.TextHAlign = Ulee.Controls.EUlHoriAlign.Center;
            this.ulPanel3.TextVAlign = Ulee.Controls.EUlVertAlign.Middle;
            // 
            // plcGrid
            // 
            this.plcGrid.Cursor = System.Windows.Forms.Cursors.Default;
            this.plcGrid.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.plcGrid.Location = new System.Drawing.Point(6, 40);
            this.plcGrid.MainView = this.plcGridView;
            this.plcGrid.Name = "plcGrid";
            this.plcGrid.Size = new System.Drawing.Size(288, 173);
            this.plcGrid.TabIndex = 10;
            this.plcGrid.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] {
            this.plcGridView});
            // 
            // plcGridView
            // 
            this.plcGridView.Appearance.FixedLine.Font = new System.Drawing.Font("Arial", 9F);
            this.plcGridView.Appearance.FixedLine.Options.UseFont = true;
            this.plcGridView.Appearance.FocusedRow.Font = new System.Drawing.Font("Arial", 9F);
            this.plcGridView.Appearance.FocusedRow.Options.UseFont = true;
            this.plcGridView.Appearance.HeaderPanel.Font = new System.Drawing.Font("Arial", 9F);
            this.plcGridView.Appearance.HeaderPanel.Options.UseFont = true;
            this.plcGridView.Appearance.HideSelectionRow.Font = new System.Drawing.Font("Arial", 9F);
            this.plcGridView.Appearance.HideSelectionRow.Options.UseFont = true;
            this.plcGridView.Appearance.OddRow.Font = new System.Drawing.Font("Arial", 9F);
            this.plcGridView.Appearance.OddRow.Options.UseFont = true;
            this.plcGridView.Appearance.Preview.Font = new System.Drawing.Font("Arial", 9F);
            this.plcGridView.Appearance.Preview.Options.UseFont = true;
            this.plcGridView.Appearance.Row.Font = new System.Drawing.Font("Arial", 9F);
            this.plcGridView.Appearance.Row.Options.UseFont = true;
            this.plcGridView.Appearance.SelectedRow.Font = new System.Drawing.Font("Arial", 9F);
            this.plcGridView.Appearance.SelectedRow.Options.UseFont = true;
            this.plcGridView.Appearance.ViewCaption.Font = new System.Drawing.Font("Arial", 9F);
            this.plcGridView.Appearance.ViewCaption.Options.UseFont = true;
            this.plcGridView.Columns.AddRange(new DevExpress.XtraGrid.Columns.GridColumn[] {
            this.pgNameColumn,
            this.pgValueColumn});
            this.plcGridView.CustomizationFormBounds = new System.Drawing.Rectangle(2884, 580, 210, 186);
            this.plcGridView.GridControl = this.plcGrid;
            this.plcGridView.Name = "plcGridView";
            this.plcGridView.OptionsView.ColumnAutoWidth = false;
            this.plcGridView.OptionsView.ShowGroupPanel = false;
            this.plcGridView.OptionsView.ShowIndicator = false;
            this.plcGridView.Tag = 0;
            // 
            // pgNameColumn
            // 
            this.pgNameColumn.AppearanceCell.Font = new System.Drawing.Font("Arial", 9F);
            this.pgNameColumn.AppearanceCell.Options.UseFont = true;
            this.pgNameColumn.AppearanceHeader.Font = new System.Drawing.Font("Arial", 9F);
            this.pgNameColumn.AppearanceHeader.Options.UseFont = true;
            this.pgNameColumn.Caption = "Name";
            this.pgNameColumn.FieldName = "Name";
            this.pgNameColumn.Name = "pgNameColumn";
            this.pgNameColumn.OptionsColumn.AllowEdit = false;
            this.pgNameColumn.OptionsColumn.AllowFocus = false;
            this.pgNameColumn.OptionsColumn.AllowGroup = DevExpress.Utils.DefaultBoolean.False;
            this.pgNameColumn.OptionsColumn.AllowIncrementalSearch = false;
            this.pgNameColumn.OptionsColumn.AllowMerge = DevExpress.Utils.DefaultBoolean.False;
            this.pgNameColumn.OptionsColumn.AllowMove = false;
            this.pgNameColumn.OptionsColumn.AllowShowHide = false;
            this.pgNameColumn.OptionsColumn.AllowSize = false;
            this.pgNameColumn.OptionsColumn.AllowSort = DevExpress.Utils.DefaultBoolean.False;
            this.pgNameColumn.OptionsColumn.FixedWidth = true;
            this.pgNameColumn.OptionsColumn.ImmediateUpdateRowPosition = DevExpress.Utils.DefaultBoolean.False;
            this.pgNameColumn.OptionsColumn.Printable = DevExpress.Utils.DefaultBoolean.False;
            this.pgNameColumn.OptionsColumn.ReadOnly = true;
            this.pgNameColumn.OptionsColumn.TabStop = false;
            this.pgNameColumn.OptionsFilter.AllowAutoFilter = false;
            this.pgNameColumn.OptionsFilter.AllowFilter = false;
            this.pgNameColumn.Visible = true;
            this.pgNameColumn.VisibleIndex = 0;
            this.pgNameColumn.Width = 160;
            // 
            // pgValueColumn
            // 
            this.pgValueColumn.AppearanceCell.Font = new System.Drawing.Font("Arial", 9F);
            this.pgValueColumn.AppearanceCell.Options.UseFont = true;
            this.pgValueColumn.AppearanceHeader.Font = new System.Drawing.Font("Arial", 9F);
            this.pgValueColumn.AppearanceHeader.Options.UseFont = true;
            this.pgValueColumn.Caption = "Value";
            this.pgValueColumn.DisplayFormat.FormatString = "{0:X4}";
            this.pgValueColumn.DisplayFormat.FormatType = DevExpress.Utils.FormatType.Numeric;
            this.pgValueColumn.FieldName = "Value";
            this.pgValueColumn.Name = "pgValueColumn";
            this.pgValueColumn.OptionsColumn.AllowEdit = false;
            this.pgValueColumn.OptionsColumn.AllowFocus = false;
            this.pgValueColumn.OptionsColumn.AllowGroup = DevExpress.Utils.DefaultBoolean.False;
            this.pgValueColumn.OptionsColumn.AllowIncrementalSearch = false;
            this.pgValueColumn.OptionsColumn.AllowMerge = DevExpress.Utils.DefaultBoolean.False;
            this.pgValueColumn.OptionsColumn.AllowMove = false;
            this.pgValueColumn.OptionsColumn.AllowShowHide = false;
            this.pgValueColumn.OptionsColumn.AllowSize = false;
            this.pgValueColumn.OptionsColumn.AllowSort = DevExpress.Utils.DefaultBoolean.False;
            this.pgValueColumn.OptionsColumn.FixedWidth = true;
            this.pgValueColumn.OptionsColumn.ImmediateUpdateRowPosition = DevExpress.Utils.DefaultBoolean.False;
            this.pgValueColumn.OptionsColumn.Printable = DevExpress.Utils.DefaultBoolean.False;
            this.pgValueColumn.OptionsColumn.ReadOnly = true;
            this.pgValueColumn.OptionsColumn.TabStop = false;
            this.pgValueColumn.OptionsFilter.AllowAutoFilter = false;
            this.pgValueColumn.OptionsFilter.AllowFilter = false;
            this.pgValueColumn.Visible = true;
            this.pgValueColumn.VisibleIndex = 1;
            this.pgValueColumn.Width = 100;
            // 
            // ulPanel5
            // 
            this.ulPanel5.BackColor = System.Drawing.Color.DeepSkyBlue;
            this.ulPanel5.BevelInner = Ulee.Controls.EUlBevelStyle.None;
            this.ulPanel5.BevelOuter = Ulee.Controls.EUlBevelStyle.Lowered;
            this.ulPanel5.Font = new System.Drawing.Font("Arial Rounded MT Bold", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.ulPanel5.ForeColor = System.Drawing.Color.White;
            this.ulPanel5.InnerColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.ulPanel5.InnerColor2 = System.Drawing.Color.White;
            this.ulPanel5.Location = new System.Drawing.Point(6, 6);
            this.ulPanel5.Name = "ulPanel5";
            this.ulPanel5.OuterColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.ulPanel5.OuterColor2 = System.Drawing.Color.White;
            this.ulPanel5.Size = new System.Drawing.Size(288, 28);
            this.ulPanel5.Spacing = 0;
            this.ulPanel5.TabIndex = 5;
            this.ulPanel5.Text = "PLC";
            this.ulPanel5.TextHAlign = Ulee.Controls.EUlHoriAlign.Center;
            this.ulPanel5.TextVAlign = Ulee.Controls.EUlVertAlign.Middle;
            // 
            // ulPanel7
            // 
            this.ulPanel7.BevelInner = Ulee.Controls.EUlBevelStyle.Raised;
            this.ulPanel7.BevelOuter = Ulee.Controls.EUlBevelStyle.Lowered;
            this.ulPanel7.Controls.Add(this.recorder4Grid);
            this.ulPanel7.Controls.Add(this.recorder3Grid);
            this.ulPanel7.Controls.Add(this.recorder2Grid);
            this.ulPanel7.Controls.Add(this.recorder1Grid);
            this.ulPanel7.Controls.Add(this.ulPanel8);
            this.ulPanel7.InnerColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.ulPanel7.InnerColor2 = System.Drawing.Color.White;
            this.ulPanel7.Location = new System.Drawing.Point(306, 0);
            this.ulPanel7.Name = "ulPanel7";
            this.ulPanel7.OuterColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.ulPanel7.OuterColor2 = System.Drawing.Color.White;
            this.ulPanel7.Size = new System.Drawing.Size(1204, 915);
            this.ulPanel7.Spacing = 0;
            this.ulPanel7.TabIndex = 8;
            this.ulPanel7.TextHAlign = Ulee.Controls.EUlHoriAlign.Center;
            this.ulPanel7.TextVAlign = Ulee.Controls.EUlVertAlign.Middle;
            // 
            // recorder4Grid
            // 
            this.recorder4Grid.Cursor = System.Windows.Forms.Cursors.Default;
            this.recorder4Grid.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.recorder4Grid.Location = new System.Drawing.Point(904, 40);
            this.recorder4Grid.MainView = this.recorder4GridView;
            this.recorder4Grid.Name = "recorder4Grid";
            this.recorder4Grid.Size = new System.Drawing.Size(294, 868);
            this.recorder4Grid.TabIndex = 9;
            this.recorder4Grid.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] {
            this.recorder4GridView});
            // 
            // recorder4GridView
            // 
            this.recorder4GridView.Appearance.FixedLine.Font = new System.Drawing.Font("Arial", 9F);
            this.recorder4GridView.Appearance.FixedLine.Options.UseFont = true;
            this.recorder4GridView.Appearance.FocusedRow.Font = new System.Drawing.Font("Arial", 9F);
            this.recorder4GridView.Appearance.FocusedRow.Options.UseFont = true;
            this.recorder4GridView.Appearance.HeaderPanel.Font = new System.Drawing.Font("Arial", 9F);
            this.recorder4GridView.Appearance.HeaderPanel.Options.UseFont = true;
            this.recorder4GridView.Appearance.HideSelectionRow.Font = new System.Drawing.Font("Arial", 9F);
            this.recorder4GridView.Appearance.HideSelectionRow.Options.UseFont = true;
            this.recorder4GridView.Appearance.OddRow.Font = new System.Drawing.Font("Arial", 9F);
            this.recorder4GridView.Appearance.OddRow.Options.UseFont = true;
            this.recorder4GridView.Appearance.Preview.Font = new System.Drawing.Font("Arial", 9F);
            this.recorder4GridView.Appearance.Preview.Options.UseFont = true;
            this.recorder4GridView.Appearance.Row.Font = new System.Drawing.Font("Arial", 9F);
            this.recorder4GridView.Appearance.Row.Options.UseFont = true;
            this.recorder4GridView.Appearance.SelectedRow.Font = new System.Drawing.Font("Arial", 9F);
            this.recorder4GridView.Appearance.SelectedRow.Options.UseFont = true;
            this.recorder4GridView.Appearance.ViewCaption.Font = new System.Drawing.Font("Arial", 9F);
            this.recorder4GridView.Appearance.ViewCaption.Options.UseFont = true;
            this.recorder4GridView.Columns.AddRange(new DevExpress.XtraGrid.Columns.GridColumn[] {
            this.gridColumn3,
            this.gridColumn4});
            this.recorder4GridView.CustomizationFormBounds = new System.Drawing.Rectangle(2884, 580, 210, 186);
            this.recorder4GridView.GridControl = this.recorder4Grid;
            this.recorder4GridView.Name = "recorder4GridView";
            this.recorder4GridView.OptionsView.ColumnAutoWidth = false;
            this.recorder4GridView.OptionsView.ShowGroupPanel = false;
            this.recorder4GridView.OptionsView.ShowIndicator = false;
            this.recorder4GridView.Tag = 0;
            // 
            // gridColumn3
            // 
            this.gridColumn3.AppearanceCell.Font = new System.Drawing.Font("Arial", 9F);
            this.gridColumn3.AppearanceCell.Options.UseFont = true;
            this.gridColumn3.AppearanceHeader.Font = new System.Drawing.Font("Arial", 9F);
            this.gridColumn3.AppearanceHeader.Options.UseFont = true;
            this.gridColumn3.Caption = "Name";
            this.gridColumn3.FieldName = "Name";
            this.gridColumn3.Name = "gridColumn3";
            this.gridColumn3.OptionsColumn.AllowEdit = false;
            this.gridColumn3.OptionsColumn.AllowFocus = false;
            this.gridColumn3.OptionsColumn.AllowGroup = DevExpress.Utils.DefaultBoolean.False;
            this.gridColumn3.OptionsColumn.AllowIncrementalSearch = false;
            this.gridColumn3.OptionsColumn.AllowMerge = DevExpress.Utils.DefaultBoolean.False;
            this.gridColumn3.OptionsColumn.AllowMove = false;
            this.gridColumn3.OptionsColumn.AllowShowHide = false;
            this.gridColumn3.OptionsColumn.AllowSize = false;
            this.gridColumn3.OptionsColumn.AllowSort = DevExpress.Utils.DefaultBoolean.False;
            this.gridColumn3.OptionsColumn.FixedWidth = true;
            this.gridColumn3.OptionsColumn.ImmediateUpdateRowPosition = DevExpress.Utils.DefaultBoolean.False;
            this.gridColumn3.OptionsColumn.Printable = DevExpress.Utils.DefaultBoolean.False;
            this.gridColumn3.OptionsColumn.ReadOnly = true;
            this.gridColumn3.OptionsColumn.TabStop = false;
            this.gridColumn3.OptionsFilter.AllowAutoFilter = false;
            this.gridColumn3.OptionsFilter.AllowFilter = false;
            this.gridColumn3.Visible = true;
            this.gridColumn3.VisibleIndex = 0;
            this.gridColumn3.Width = 170;
            // 
            // gridColumn4
            // 
            this.gridColumn4.AppearanceCell.Font = new System.Drawing.Font("Arial", 9F);
            this.gridColumn4.AppearanceCell.Options.UseFont = true;
            this.gridColumn4.AppearanceHeader.Font = new System.Drawing.Font("Arial", 9F);
            this.gridColumn4.AppearanceHeader.Options.UseFont = true;
            this.gridColumn4.Caption = "Value";
            this.gridColumn4.DisplayFormat.FormatString = "{0:F2}";
            this.gridColumn4.DisplayFormat.FormatType = DevExpress.Utils.FormatType.Numeric;
            this.gridColumn4.FieldName = "Value";
            this.gridColumn4.Name = "gridColumn4";
            this.gridColumn4.OptionsColumn.AllowEdit = false;
            this.gridColumn4.OptionsColumn.AllowFocus = false;
            this.gridColumn4.OptionsColumn.AllowGroup = DevExpress.Utils.DefaultBoolean.False;
            this.gridColumn4.OptionsColumn.AllowIncrementalSearch = false;
            this.gridColumn4.OptionsColumn.AllowMerge = DevExpress.Utils.DefaultBoolean.False;
            this.gridColumn4.OptionsColumn.AllowMove = false;
            this.gridColumn4.OptionsColumn.AllowShowHide = false;
            this.gridColumn4.OptionsColumn.AllowSize = false;
            this.gridColumn4.OptionsColumn.AllowSort = DevExpress.Utils.DefaultBoolean.False;
            this.gridColumn4.OptionsColumn.FixedWidth = true;
            this.gridColumn4.OptionsColumn.ImmediateUpdateRowPosition = DevExpress.Utils.DefaultBoolean.False;
            this.gridColumn4.OptionsColumn.Printable = DevExpress.Utils.DefaultBoolean.False;
            this.gridColumn4.OptionsColumn.ReadOnly = true;
            this.gridColumn4.OptionsColumn.TabStop = false;
            this.gridColumn4.OptionsFilter.AllowAutoFilter = false;
            this.gridColumn4.OptionsFilter.AllowFilter = false;
            this.gridColumn4.Visible = true;
            this.gridColumn4.VisibleIndex = 1;
            this.gridColumn4.Width = 100;
            // 
            // recorder3Grid
            // 
            this.recorder3Grid.Cursor = System.Windows.Forms.Cursors.Default;
            this.recorder3Grid.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.recorder3Grid.Location = new System.Drawing.Point(605, 40);
            this.recorder3Grid.MainView = this.recorder3GridView;
            this.recorder3Grid.Name = "recorder3Grid";
            this.recorder3Grid.Size = new System.Drawing.Size(293, 868);
            this.recorder3Grid.TabIndex = 8;
            this.recorder3Grid.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] {
            this.recorder3GridView});
            // 
            // recorder3GridView
            // 
            this.recorder3GridView.Appearance.FixedLine.Font = new System.Drawing.Font("Arial", 9F);
            this.recorder3GridView.Appearance.FixedLine.Options.UseFont = true;
            this.recorder3GridView.Appearance.FocusedRow.Font = new System.Drawing.Font("Arial", 9F);
            this.recorder3GridView.Appearance.FocusedRow.Options.UseFont = true;
            this.recorder3GridView.Appearance.HeaderPanel.Font = new System.Drawing.Font("Arial", 9F);
            this.recorder3GridView.Appearance.HeaderPanel.Options.UseFont = true;
            this.recorder3GridView.Appearance.HideSelectionRow.Font = new System.Drawing.Font("Arial", 9F);
            this.recorder3GridView.Appearance.HideSelectionRow.Options.UseFont = true;
            this.recorder3GridView.Appearance.OddRow.Font = new System.Drawing.Font("Arial", 9F);
            this.recorder3GridView.Appearance.OddRow.Options.UseFont = true;
            this.recorder3GridView.Appearance.Preview.Font = new System.Drawing.Font("Arial", 9F);
            this.recorder3GridView.Appearance.Preview.Options.UseFont = true;
            this.recorder3GridView.Appearance.Row.Font = new System.Drawing.Font("Arial", 9F);
            this.recorder3GridView.Appearance.Row.Options.UseFont = true;
            this.recorder3GridView.Appearance.SelectedRow.Font = new System.Drawing.Font("Arial", 9F);
            this.recorder3GridView.Appearance.SelectedRow.Options.UseFont = true;
            this.recorder3GridView.Appearance.ViewCaption.Font = new System.Drawing.Font("Arial", 9F);
            this.recorder3GridView.Appearance.ViewCaption.Options.UseFont = true;
            this.recorder3GridView.Columns.AddRange(new DevExpress.XtraGrid.Columns.GridColumn[] {
            this.gridColumn5,
            this.gridColumn6});
            this.recorder3GridView.CustomizationFormBounds = new System.Drawing.Rectangle(2884, 580, 210, 186);
            this.recorder3GridView.GridControl = this.recorder3Grid;
            this.recorder3GridView.Name = "recorder3GridView";
            this.recorder3GridView.OptionsView.ColumnAutoWidth = false;
            this.recorder3GridView.OptionsView.ShowGroupPanel = false;
            this.recorder3GridView.OptionsView.ShowIndicator = false;
            this.recorder3GridView.Tag = 0;
            // 
            // gridColumn5
            // 
            this.gridColumn5.AppearanceCell.Font = new System.Drawing.Font("Arial", 9F);
            this.gridColumn5.AppearanceCell.Options.UseFont = true;
            this.gridColumn5.AppearanceHeader.Font = new System.Drawing.Font("Arial", 9F);
            this.gridColumn5.AppearanceHeader.Options.UseFont = true;
            this.gridColumn5.Caption = "Name";
            this.gridColumn5.FieldName = "Name";
            this.gridColumn5.Name = "gridColumn5";
            this.gridColumn5.OptionsColumn.AllowEdit = false;
            this.gridColumn5.OptionsColumn.AllowFocus = false;
            this.gridColumn5.OptionsColumn.AllowGroup = DevExpress.Utils.DefaultBoolean.False;
            this.gridColumn5.OptionsColumn.AllowIncrementalSearch = false;
            this.gridColumn5.OptionsColumn.AllowMerge = DevExpress.Utils.DefaultBoolean.False;
            this.gridColumn5.OptionsColumn.AllowMove = false;
            this.gridColumn5.OptionsColumn.AllowShowHide = false;
            this.gridColumn5.OptionsColumn.AllowSize = false;
            this.gridColumn5.OptionsColumn.AllowSort = DevExpress.Utils.DefaultBoolean.False;
            this.gridColumn5.OptionsColumn.FixedWidth = true;
            this.gridColumn5.OptionsColumn.ImmediateUpdateRowPosition = DevExpress.Utils.DefaultBoolean.False;
            this.gridColumn5.OptionsColumn.Printable = DevExpress.Utils.DefaultBoolean.False;
            this.gridColumn5.OptionsColumn.ReadOnly = true;
            this.gridColumn5.OptionsColumn.TabStop = false;
            this.gridColumn5.OptionsFilter.AllowAutoFilter = false;
            this.gridColumn5.OptionsFilter.AllowFilter = false;
            this.gridColumn5.Visible = true;
            this.gridColumn5.VisibleIndex = 0;
            this.gridColumn5.Width = 170;
            // 
            // gridColumn6
            // 
            this.gridColumn6.AppearanceCell.Font = new System.Drawing.Font("Arial", 9F);
            this.gridColumn6.AppearanceCell.Options.UseFont = true;
            this.gridColumn6.AppearanceHeader.Font = new System.Drawing.Font("Arial", 9F);
            this.gridColumn6.AppearanceHeader.Options.UseFont = true;
            this.gridColumn6.Caption = "Value";
            this.gridColumn6.DisplayFormat.FormatString = "{0:F2}";
            this.gridColumn6.DisplayFormat.FormatType = DevExpress.Utils.FormatType.Numeric;
            this.gridColumn6.FieldName = "Value";
            this.gridColumn6.Name = "gridColumn6";
            this.gridColumn6.OptionsColumn.AllowEdit = false;
            this.gridColumn6.OptionsColumn.AllowFocus = false;
            this.gridColumn6.OptionsColumn.AllowGroup = DevExpress.Utils.DefaultBoolean.False;
            this.gridColumn6.OptionsColumn.AllowIncrementalSearch = false;
            this.gridColumn6.OptionsColumn.AllowMerge = DevExpress.Utils.DefaultBoolean.False;
            this.gridColumn6.OptionsColumn.AllowMove = false;
            this.gridColumn6.OptionsColumn.AllowShowHide = false;
            this.gridColumn6.OptionsColumn.AllowSize = false;
            this.gridColumn6.OptionsColumn.AllowSort = DevExpress.Utils.DefaultBoolean.False;
            this.gridColumn6.OptionsColumn.FixedWidth = true;
            this.gridColumn6.OptionsColumn.ImmediateUpdateRowPosition = DevExpress.Utils.DefaultBoolean.False;
            this.gridColumn6.OptionsColumn.Printable = DevExpress.Utils.DefaultBoolean.False;
            this.gridColumn6.OptionsColumn.ReadOnly = true;
            this.gridColumn6.OptionsColumn.TabStop = false;
            this.gridColumn6.OptionsFilter.AllowAutoFilter = false;
            this.gridColumn6.OptionsFilter.AllowFilter = false;
            this.gridColumn6.Visible = true;
            this.gridColumn6.VisibleIndex = 1;
            this.gridColumn6.Width = 100;
            // 
            // recorder2Grid
            // 
            this.recorder2Grid.Cursor = System.Windows.Forms.Cursors.Default;
            this.recorder2Grid.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.recorder2Grid.Location = new System.Drawing.Point(305, 40);
            this.recorder2Grid.MainView = this.recorder2GridView;
            this.recorder2Grid.Name = "recorder2Grid";
            this.recorder2Grid.Size = new System.Drawing.Size(294, 868);
            this.recorder2Grid.TabIndex = 7;
            this.recorder2Grid.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] {
            this.recorder2GridView});
            // 
            // recorder2GridView
            // 
            this.recorder2GridView.Appearance.FixedLine.Font = new System.Drawing.Font("Arial", 9F);
            this.recorder2GridView.Appearance.FixedLine.Options.UseFont = true;
            this.recorder2GridView.Appearance.FocusedRow.Font = new System.Drawing.Font("Arial", 9F);
            this.recorder2GridView.Appearance.FocusedRow.Options.UseFont = true;
            this.recorder2GridView.Appearance.HeaderPanel.Font = new System.Drawing.Font("Arial", 9F);
            this.recorder2GridView.Appearance.HeaderPanel.Options.UseFont = true;
            this.recorder2GridView.Appearance.HideSelectionRow.Font = new System.Drawing.Font("Arial", 9F);
            this.recorder2GridView.Appearance.HideSelectionRow.Options.UseFont = true;
            this.recorder2GridView.Appearance.OddRow.Font = new System.Drawing.Font("Arial", 9F);
            this.recorder2GridView.Appearance.OddRow.Options.UseFont = true;
            this.recorder2GridView.Appearance.Preview.Font = new System.Drawing.Font("Arial", 9F);
            this.recorder2GridView.Appearance.Preview.Options.UseFont = true;
            this.recorder2GridView.Appearance.Row.Font = new System.Drawing.Font("Arial", 9F);
            this.recorder2GridView.Appearance.Row.Options.UseFont = true;
            this.recorder2GridView.Appearance.SelectedRow.Font = new System.Drawing.Font("Arial", 9F);
            this.recorder2GridView.Appearance.SelectedRow.Options.UseFont = true;
            this.recorder2GridView.Appearance.ViewCaption.Font = new System.Drawing.Font("Arial", 9F);
            this.recorder2GridView.Appearance.ViewCaption.Options.UseFont = true;
            this.recorder2GridView.Columns.AddRange(new DevExpress.XtraGrid.Columns.GridColumn[] {
            this.gridColumn1,
            this.gridColumn2});
            this.recorder2GridView.CustomizationFormBounds = new System.Drawing.Rectangle(2884, 580, 210, 186);
            this.recorder2GridView.GridControl = this.recorder2Grid;
            this.recorder2GridView.Name = "recorder2GridView";
            this.recorder2GridView.OptionsView.ColumnAutoWidth = false;
            this.recorder2GridView.OptionsView.ShowGroupPanel = false;
            this.recorder2GridView.OptionsView.ShowIndicator = false;
            this.recorder2GridView.Tag = 0;
            // 
            // gridColumn1
            // 
            this.gridColumn1.AppearanceCell.Font = new System.Drawing.Font("Arial", 9F);
            this.gridColumn1.AppearanceCell.Options.UseFont = true;
            this.gridColumn1.AppearanceHeader.Font = new System.Drawing.Font("Arial", 9F);
            this.gridColumn1.AppearanceHeader.Options.UseFont = true;
            this.gridColumn1.Caption = "Name";
            this.gridColumn1.FieldName = "Name";
            this.gridColumn1.Name = "gridColumn1";
            this.gridColumn1.OptionsColumn.AllowEdit = false;
            this.gridColumn1.OptionsColumn.AllowFocus = false;
            this.gridColumn1.OptionsColumn.AllowGroup = DevExpress.Utils.DefaultBoolean.False;
            this.gridColumn1.OptionsColumn.AllowIncrementalSearch = false;
            this.gridColumn1.OptionsColumn.AllowMerge = DevExpress.Utils.DefaultBoolean.False;
            this.gridColumn1.OptionsColumn.AllowMove = false;
            this.gridColumn1.OptionsColumn.AllowShowHide = false;
            this.gridColumn1.OptionsColumn.AllowSize = false;
            this.gridColumn1.OptionsColumn.AllowSort = DevExpress.Utils.DefaultBoolean.False;
            this.gridColumn1.OptionsColumn.FixedWidth = true;
            this.gridColumn1.OptionsColumn.ImmediateUpdateRowPosition = DevExpress.Utils.DefaultBoolean.False;
            this.gridColumn1.OptionsColumn.Printable = DevExpress.Utils.DefaultBoolean.False;
            this.gridColumn1.OptionsColumn.ReadOnly = true;
            this.gridColumn1.OptionsColumn.TabStop = false;
            this.gridColumn1.OptionsFilter.AllowAutoFilter = false;
            this.gridColumn1.OptionsFilter.AllowFilter = false;
            this.gridColumn1.Visible = true;
            this.gridColumn1.VisibleIndex = 0;
            this.gridColumn1.Width = 170;
            // 
            // gridColumn2
            // 
            this.gridColumn2.AppearanceCell.Font = new System.Drawing.Font("Arial", 9F);
            this.gridColumn2.AppearanceCell.Options.UseFont = true;
            this.gridColumn2.AppearanceHeader.Font = new System.Drawing.Font("Arial", 9F);
            this.gridColumn2.AppearanceHeader.Options.UseFont = true;
            this.gridColumn2.Caption = "Value";
            this.gridColumn2.DisplayFormat.FormatString = "{0:F2}";
            this.gridColumn2.DisplayFormat.FormatType = DevExpress.Utils.FormatType.Numeric;
            this.gridColumn2.FieldName = "Value";
            this.gridColumn2.Name = "gridColumn2";
            this.gridColumn2.OptionsColumn.AllowEdit = false;
            this.gridColumn2.OptionsColumn.AllowFocus = false;
            this.gridColumn2.OptionsColumn.AllowGroup = DevExpress.Utils.DefaultBoolean.False;
            this.gridColumn2.OptionsColumn.AllowIncrementalSearch = false;
            this.gridColumn2.OptionsColumn.AllowMerge = DevExpress.Utils.DefaultBoolean.False;
            this.gridColumn2.OptionsColumn.AllowMove = false;
            this.gridColumn2.OptionsColumn.AllowShowHide = false;
            this.gridColumn2.OptionsColumn.AllowSize = false;
            this.gridColumn2.OptionsColumn.AllowSort = DevExpress.Utils.DefaultBoolean.False;
            this.gridColumn2.OptionsColumn.FixedWidth = true;
            this.gridColumn2.OptionsColumn.ImmediateUpdateRowPosition = DevExpress.Utils.DefaultBoolean.False;
            this.gridColumn2.OptionsColumn.Printable = DevExpress.Utils.DefaultBoolean.False;
            this.gridColumn2.OptionsColumn.ReadOnly = true;
            this.gridColumn2.OptionsColumn.TabStop = false;
            this.gridColumn2.OptionsFilter.AllowAutoFilter = false;
            this.gridColumn2.OptionsFilter.AllowFilter = false;
            this.gridColumn2.Visible = true;
            this.gridColumn2.VisibleIndex = 1;
            this.gridColumn2.Width = 100;
            // 
            // recorder1Grid
            // 
            this.recorder1Grid.Cursor = System.Windows.Forms.Cursors.Default;
            this.recorder1Grid.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.recorder1Grid.Location = new System.Drawing.Point(6, 40);
            this.recorder1Grid.MainView = this.recorder1GridView;
            this.recorder1Grid.Name = "recorder1Grid";
            this.recorder1Grid.Size = new System.Drawing.Size(293, 868);
            this.recorder1Grid.TabIndex = 6;
            this.recorder1Grid.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] {
            this.recorder1GridView});
            // 
            // recorder1GridView
            // 
            this.recorder1GridView.Appearance.FixedLine.Font = new System.Drawing.Font("Arial", 9F);
            this.recorder1GridView.Appearance.FixedLine.Options.UseFont = true;
            this.recorder1GridView.Appearance.FocusedRow.Font = new System.Drawing.Font("Arial", 9F);
            this.recorder1GridView.Appearance.FocusedRow.Options.UseFont = true;
            this.recorder1GridView.Appearance.HeaderPanel.Font = new System.Drawing.Font("Arial", 9F);
            this.recorder1GridView.Appearance.HeaderPanel.Options.UseFont = true;
            this.recorder1GridView.Appearance.HideSelectionRow.Font = new System.Drawing.Font("Arial", 9F);
            this.recorder1GridView.Appearance.HideSelectionRow.Options.UseFont = true;
            this.recorder1GridView.Appearance.OddRow.Font = new System.Drawing.Font("Arial", 9F);
            this.recorder1GridView.Appearance.OddRow.Options.UseFont = true;
            this.recorder1GridView.Appearance.Preview.Font = new System.Drawing.Font("Arial", 9F);
            this.recorder1GridView.Appearance.Preview.Options.UseFont = true;
            this.recorder1GridView.Appearance.Row.Font = new System.Drawing.Font("Arial", 9F);
            this.recorder1GridView.Appearance.Row.Options.UseFont = true;
            this.recorder1GridView.Appearance.SelectedRow.Font = new System.Drawing.Font("Arial", 9F);
            this.recorder1GridView.Appearance.SelectedRow.Options.UseFont = true;
            this.recorder1GridView.Appearance.ViewCaption.Font = new System.Drawing.Font("Arial", 9F);
            this.recorder1GridView.Appearance.ViewCaption.Options.UseFont = true;
            this.recorder1GridView.Columns.AddRange(new DevExpress.XtraGrid.Columns.GridColumn[] {
            this.rgNameColumn,
            this.rgValueColumn});
            this.recorder1GridView.CustomizationFormBounds = new System.Drawing.Rectangle(2884, 580, 210, 186);
            this.recorder1GridView.GridControl = this.recorder1Grid;
            this.recorder1GridView.Name = "recorder1GridView";
            this.recorder1GridView.OptionsView.ColumnAutoWidth = false;
            this.recorder1GridView.OptionsView.ShowGroupPanel = false;
            this.recorder1GridView.OptionsView.ShowIndicator = false;
            this.recorder1GridView.Tag = 0;
            // 
            // rgNameColumn
            // 
            this.rgNameColumn.AppearanceCell.Font = new System.Drawing.Font("Arial", 9F);
            this.rgNameColumn.AppearanceCell.Options.UseFont = true;
            this.rgNameColumn.AppearanceHeader.Font = new System.Drawing.Font("Arial", 9F);
            this.rgNameColumn.AppearanceHeader.Options.UseFont = true;
            this.rgNameColumn.Caption = "Name";
            this.rgNameColumn.FieldName = "Name";
            this.rgNameColumn.Name = "rgNameColumn";
            this.rgNameColumn.OptionsColumn.AllowEdit = false;
            this.rgNameColumn.OptionsColumn.AllowFocus = false;
            this.rgNameColumn.OptionsColumn.AllowGroup = DevExpress.Utils.DefaultBoolean.False;
            this.rgNameColumn.OptionsColumn.AllowIncrementalSearch = false;
            this.rgNameColumn.OptionsColumn.AllowMerge = DevExpress.Utils.DefaultBoolean.False;
            this.rgNameColumn.OptionsColumn.AllowMove = false;
            this.rgNameColumn.OptionsColumn.AllowShowHide = false;
            this.rgNameColumn.OptionsColumn.AllowSize = false;
            this.rgNameColumn.OptionsColumn.AllowSort = DevExpress.Utils.DefaultBoolean.False;
            this.rgNameColumn.OptionsColumn.FixedWidth = true;
            this.rgNameColumn.OptionsColumn.ImmediateUpdateRowPosition = DevExpress.Utils.DefaultBoolean.False;
            this.rgNameColumn.OptionsColumn.Printable = DevExpress.Utils.DefaultBoolean.False;
            this.rgNameColumn.OptionsColumn.ReadOnly = true;
            this.rgNameColumn.OptionsColumn.TabStop = false;
            this.rgNameColumn.OptionsFilter.AllowAutoFilter = false;
            this.rgNameColumn.OptionsFilter.AllowFilter = false;
            this.rgNameColumn.Visible = true;
            this.rgNameColumn.VisibleIndex = 0;
            this.rgNameColumn.Width = 170;
            // 
            // rgValueColumn
            // 
            this.rgValueColumn.AppearanceCell.Font = new System.Drawing.Font("Arial", 9F);
            this.rgValueColumn.AppearanceCell.Options.UseFont = true;
            this.rgValueColumn.AppearanceHeader.Font = new System.Drawing.Font("Arial", 9F);
            this.rgValueColumn.AppearanceHeader.Options.UseFont = true;
            this.rgValueColumn.Caption = "Value";
            this.rgValueColumn.DisplayFormat.FormatString = "{0:F2}";
            this.rgValueColumn.DisplayFormat.FormatType = DevExpress.Utils.FormatType.Numeric;
            this.rgValueColumn.FieldName = "Value";
            this.rgValueColumn.Name = "rgValueColumn";
            this.rgValueColumn.OptionsColumn.AllowEdit = false;
            this.rgValueColumn.OptionsColumn.AllowFocus = false;
            this.rgValueColumn.OptionsColumn.AllowGroup = DevExpress.Utils.DefaultBoolean.False;
            this.rgValueColumn.OptionsColumn.AllowIncrementalSearch = false;
            this.rgValueColumn.OptionsColumn.AllowMerge = DevExpress.Utils.DefaultBoolean.False;
            this.rgValueColumn.OptionsColumn.AllowMove = false;
            this.rgValueColumn.OptionsColumn.AllowShowHide = false;
            this.rgValueColumn.OptionsColumn.AllowSize = false;
            this.rgValueColumn.OptionsColumn.AllowSort = DevExpress.Utils.DefaultBoolean.False;
            this.rgValueColumn.OptionsColumn.FixedWidth = true;
            this.rgValueColumn.OptionsColumn.ImmediateUpdateRowPosition = DevExpress.Utils.DefaultBoolean.False;
            this.rgValueColumn.OptionsColumn.Printable = DevExpress.Utils.DefaultBoolean.False;
            this.rgValueColumn.OptionsColumn.ReadOnly = true;
            this.rgValueColumn.OptionsColumn.TabStop = false;
            this.rgValueColumn.OptionsFilter.AllowAutoFilter = false;
            this.rgValueColumn.OptionsFilter.AllowFilter = false;
            this.rgValueColumn.Visible = true;
            this.rgValueColumn.VisibleIndex = 1;
            this.rgValueColumn.Width = 100;
            // 
            // ulPanel8
            // 
            this.ulPanel8.BackColor = System.Drawing.Color.DeepSkyBlue;
            this.ulPanel8.BevelInner = Ulee.Controls.EUlBevelStyle.None;
            this.ulPanel8.BevelOuter = Ulee.Controls.EUlBevelStyle.Lowered;
            this.ulPanel8.Font = new System.Drawing.Font("Arial Rounded MT Bold", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.ulPanel8.ForeColor = System.Drawing.Color.White;
            this.ulPanel8.InnerColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.ulPanel8.InnerColor2 = System.Drawing.Color.White;
            this.ulPanel8.Location = new System.Drawing.Point(6, 6);
            this.ulPanel8.Name = "ulPanel8";
            this.ulPanel8.OuterColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.ulPanel8.OuterColor2 = System.Drawing.Color.White;
            this.ulPanel8.Size = new System.Drawing.Size(1192, 28);
            this.ulPanel8.Spacing = 0;
            this.ulPanel8.TabIndex = 5;
            this.ulPanel8.Text = "RECORDER";
            this.ulPanel8.TextHAlign = Ulee.Controls.EUlHoriAlign.Center;
            this.ulPanel8.TextVAlign = Ulee.Controls.EUlVertAlign.Middle;
            // 
            // CtrlDeviceAll
            // 
            this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            this.Name = "CtrlDeviceAll";
            this.Size = new System.Drawing.Size(1816, 915);
            this.bgPanel.ResumeLayout(false);
            this.ulPanel4.ResumeLayout(false);
            ((System.ComponentModel.ISupportInitialize)(this.powerMeterGrid)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.powerMeterGridView)).EndInit();
            this.ulPanel1.ResumeLayout(false);
            ((System.ComponentModel.ISupportInitialize)(this.controllerGrid)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.controllerGridView)).EndInit();
            this.ulPanel3.ResumeLayout(false);
            ((System.ComponentModel.ISupportInitialize)(this.plcGrid)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.plcGridView)).EndInit();
            this.ulPanel7.ResumeLayout(false);
            ((System.ComponentModel.ISupportInitialize)(this.recorder4Grid)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.recorder4GridView)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.recorder3Grid)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.recorder3GridView)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.recorder2Grid)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.recorder2GridView)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.recorder1Grid)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.recorder1GridView)).EndInit();
            this.ResumeLayout(false);
            this.PerformLayout();

        }

        #endregion

        private Ulee.Controls.UlPanel ulPanel1;
        private Ulee.Controls.UlPanel ulPanel2;
        private Ulee.Controls.UlPanel ulPanel4;
        private Ulee.Controls.UlPanel ulPanel6;
        private Ulee.Controls.UlPanel ulPanel7;
        private Ulee.Controls.UlPanel ulPanel8;
        private Ulee.Controls.UlPanel ulPanel3;
        private Ulee.Controls.UlPanel ulPanel5;
        private DevExpress.XtraGrid.GridControl powerMeterGrid;
        private DevExpress.XtraGrid.Views.Grid.GridView powerMeterGridView;
        private DevExpress.XtraGrid.Columns.GridColumn pmNameColumn;
        private DevExpress.XtraGrid.Columns.GridColumn pmValueColumn;
        private DevExpress.XtraGrid.GridControl controllerGrid;
        private DevExpress.XtraGrid.Views.Grid.GridView controllerGridView;
        private DevExpress.XtraGrid.Columns.GridColumn cgNameColumn;
        private DevExpress.XtraGrid.Columns.GridColumn cgValueColumn;
        private DevExpress.XtraGrid.GridControl plcGrid;
        private DevExpress.XtraGrid.Views.Grid.GridView plcGridView;
        private DevExpress.XtraGrid.Columns.GridColumn pgNameColumn;
        private DevExpress.XtraGrid.Columns.GridColumn pgValueColumn;
        private DevExpress.XtraGrid.GridControl recorder4Grid;
        private DevExpress.XtraGrid.Views.Grid.GridView recorder4GridView;
        private DevExpress.XtraGrid.Columns.GridColumn gridColumn3;
        private DevExpress.XtraGrid.Columns.GridColumn gridColumn4;
        private DevExpress.XtraGrid.GridControl recorder3Grid;
        private DevExpress.XtraGrid.Views.Grid.GridView recorder3GridView;
        private DevExpress.XtraGrid.Columns.GridColumn gridColumn5;
        private DevExpress.XtraGrid.Columns.GridColumn gridColumn6;
        private DevExpress.XtraGrid.GridControl recorder2Grid;
        private DevExpress.XtraGrid.Views.Grid.GridView recorder2GridView;
        private DevExpress.XtraGrid.Columns.GridColumn gridColumn1;
        private DevExpress.XtraGrid.Columns.GridColumn gridColumn2;
        private DevExpress.XtraGrid.GridControl recorder1Grid;
        private DevExpress.XtraGrid.Views.Grid.GridView recorder1GridView;
        private DevExpress.XtraGrid.Columns.GridColumn rgNameColumn;
        private DevExpress.XtraGrid.Columns.GridColumn rgValueColumn;
    }
}
<file_sep>﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;

using DevExpress.Spreadsheet;

namespace Hnc.Calorimeter.Client
{
    #region TestReport
    public class TestReport
    {
        public TestReport(TestContext context)
        {
            this.context = context;

            Method = new ConditionMethod();
            Note = new ConditionNote();
            Rated = new ConditionRated();
            ValueSheets = new Dictionary<string, ReportSheet>();
            DataRaw = new DataRawCollection(context);
        }

        private TestContext context;
        
        public Int64 RecNo { get; set; }
        public DateTime RegTime { get; set; }
        public ConditionMethod Method { get; set; }
        public ConditionNote Note { get; set; }
        public ConditionRated Rated { get; set; }
        public Dictionary<string, ReportSheet> ValueSheets { get; set; }
        public DataRawCollection DataRaw { get; set; }

        public void Initialize()
        {
            RecNo = -1;
            RegTime = DateTime.Now;

            ConditionSchedule sch = context.Condition.Schedules[context.Index];
            ReportSheet sheet;

            ConditionMethod method = context.Condition.Method;
            Method.IntegralCount = method.IntegralCount;
            Method.IntegralTime = method.IntegralTime;
            Method.ScanTime = method.ScanTime;
            Method.CoolingCapacity = method.CoolingCapacity;
            Method.HeatingCapacity = method.HeatingCapacity;
            Method.AirFlow = method.AirFlow;
            Method.Enthalpy = method.Enthalpy;
            Method.Pressure = method.Pressure;
            Method.DiffPressure = method.DiffPressure;
            Method.AtmPressure = method.AtmPressure;
            Method.AutoControllerSetting = method.AutoControllerSetting;
            Method.UsePowerMeterIntegral = method.UsePowerMeterIntegral;

            ConditionNote note = context.Condition.Note;
            Note.Company = note.Company;
            Note.Name = note.Name;
            Note.No = note.No;
            Note.Observer = note.Observer;
            Note.Maker = note.Maker;
            Note.Model1 = note.Model1;
            Note.Serial1 = note.Serial1;
            Note.Model2 = note.Model2;
            Note.Serial2 = note.Serial2;
            Note.Model3 = note.Model3;
            Note.Serial3 = note.Serial3;
            Note.ExpDevice = note.ExpDevice;
            Note.Refrigerant = note.Refrigerant;
            Note.RefCharge = note.RefCharge;
            Note.Memo = note.Memo;

            EIndoorMode mode = sch.IndoorMode;
            if (mode == EIndoorMode.NotUsed) mode = EIndoorMode.Cooling;

            EUnitCapacity unitCapa = (mode == EIndoorMode.Cooling) ? method.CoolingCapacity : method.HeatingCapacity;

            context.Value.SetUnitTo(EUnitType.Capacity, (int)unitCapa);
            context.Value.SetUnitTo(EUnitType.EER_COP, (int)unitCapa);

            ConditionRated rated = context.Condition.Rateds[EConditionRated.Total][(int)mode];
            Rated.Capacity = rated.Capacity;
            Rated.PowerInput = rated.PowerInput;
            Rated.EER_COP = rated.EER_COP;
            Rated.Voltage = rated.Voltage;
            Rated.Current = rated.Current;
            Rated.Frequency = rated.Frequency;
            Rated.PM_IDU = rated.PM_IDU;
            Rated.PM_ODU = rated.PM_ODU;
            Rated.Wiring = rated.Wiring;

            lock (ValueSheets)
            {
                string nozzleName;
                string nozzleState = "O,O,O,O";
                List<CoefficientDataRow> coeff = Resource.Settings.Coefficients;

                ValueSheets.Clear();

                nozzleName = $"Nozzle ({coeff[0].Nozzle1:f0}/{coeff[0].Nozzle2:f0}/{coeff[0].Nozzle3:f0}/{coeff[0].Nozzle4:f0})";
                sheet = new ReportCalorieSheet(context, "ID1", "ID11",
                    sch.Indoor1DB, sch.Indoor1WB, sch.Indoor1Use, sch.Indoor1Mode1,
                    sch.OutdoorDB, sch.OutdoorWB, sch.OutdoorUse, sch.OutdoorDpSensor,
                    nozzleName, nozzleState);
                sheet.Use = (sch.Indoor1Use == EIndoorUse.Indoor) ? true : false;
                ValueSheets.Add("ID A #1", sheet);

                nozzleName = $"Nozzle ({coeff[1].Nozzle1:f0}/{coeff[1].Nozzle2:f0}/{coeff[1].Nozzle3:f0}/{coeff[1].Nozzle4:f0})";
                sheet = new ReportCalorieSheet(context, "ID1", "ID12",
                    sch.Indoor1DB, sch.Indoor1WB, sch.Indoor1Use, sch.Indoor1Mode2,
                    sch.OutdoorDB, sch.OutdoorWB, sch.OutdoorUse, sch.OutdoorDpSensor,
                    nozzleName, nozzleState);
                sheet.Use = (sch.Indoor1Use == EIndoorUse.Indoor) ? true : false;
                ValueSheets.Add("ID A #2", sheet);

                nozzleName = $"Nozzle ({coeff[2].Nozzle1:f0}/{coeff[2].Nozzle2:f0}/{coeff[2].Nozzle3:f0}/{coeff[2].Nozzle4:f0})";
                sheet = new ReportCalorieSheet(context, "ID2", "ID21",
                    sch.Indoor2DB, sch.Indoor2WB, sch.Indoor2Use, sch.Indoor2Mode1,
                    sch.OutdoorDB, sch.OutdoorWB, sch.OutdoorUse, sch.OutdoorDpSensor,
                    nozzleName, nozzleState);
                sheet.Use = (sch.Indoor2Use == EIndoorUse.Indoor) ? true : false;
                ValueSheets.Add("ID B #1", sheet);

                nozzleName = $"Nozzle ({coeff[3].Nozzle1:f0}/{coeff[3].Nozzle2:f0}/{coeff[3].Nozzle3:f0}/{coeff[3].Nozzle4:f0})";
                sheet = new ReportCalorieSheet(context, "ID2", "ID22",
                    sch.Indoor2DB, sch.Indoor2WB, sch.Indoor2Use, sch.Indoor2Mode2,
                    sch.OutdoorDB, sch.OutdoorWB, sch.OutdoorUse, sch.OutdoorDpSensor,
                    nozzleName, nozzleState);
                sheet.Use = (sch.Indoor2Use == EIndoorUse.Indoor) ? true : false;
                ValueSheets.Add("ID B #2", sheet);

                sheet = new ReportThermoSheet(context, "ID1", "",
                    sch.Indoor1DB, sch.Indoor1WB, sch.Indoor1Use, sch.Indoor1Mode1,
                    sch.OutdoorDB, sch.OutdoorWB, sch.OutdoorUse, sch.OutdoorDpSensor, "", "");
                if (sheet.Use == true)
                {
                    sheet.Use = (sch.Indoor1Use == EIndoorUse.Indoor) ? true : false;
                }
                ValueSheets.Add("ID A TC", sheet);

                sheet = new ReportThermoSheet(context, "ID2", "",
                    sch.Indoor2DB, sch.Indoor2WB, sch.Indoor2Use, sch.Indoor2Mode1,
                    sch.OutdoorDB, sch.OutdoorWB, sch.OutdoorUse, sch.OutdoorDpSensor, "", "");
                if (sheet.Use == true)
                {
                    sheet.Use = (sch.Indoor2Use == EIndoorUse.Indoor) ? true : false;
                }
                ValueSheets.Add("ID B TC", sheet);

                sheet = new ReportThermoSheet(context, "OD", "",
                    sch.Indoor1DB, sch.Indoor1WB, sch.Indoor1Use, sch.Indoor1Mode1,
                    sch.OutdoorDB, sch.OutdoorWB, sch.OutdoorUse, sch.OutdoorDpSensor, "", "");
                if (sheet.Use == true)
                {
                    sheet.Use = (sch.OutdoorUse == EOutdoorUse.Outdoor) ? true : false;
                }
                ValueSheets.Add("OD TC", sheet);
            }

            DataRaw.Clear();

            foreach (KeyValuePair<string, ValueRow> row in context.Value.Calcurated)
            {
                if (row.Value.Save == true)
                {
                    DataRaw.Rows.Add(row.Key, new DataRaw(-1, row.Value));
                }
            }

            foreach (KeyValuePair<string, ValueRow> row in context.Value.Measured)
            {
                if (row.Value.Save == true)
                {
                    DataRaw.Rows.Add(row.Key, new DataRaw(-1, row.Value));
                }
            }

            DataRaw.Count = DataRaw.Rows.Count / 600;
            if ((DataRaw.Rows.Count % 600) != 0) DataRaw.Count++;
        }

        public void RefreshCondition()
        {
            ConditionSchedule sch = context.Condition.Schedules[context.Index];

            ConditionNote note = context.Condition.Note;
            Note.Company = note.Company;
            Note.Name = note.Name;
            Note.No = note.No;
            Note.Observer = note.Observer;
            Note.Maker = note.Maker;
            Note.Model1 = note.Model1;
            Note.Serial1 = note.Serial1;
            Note.Model2 = note.Model2;
            Note.Serial2 = note.Serial2;
            Note.Model3 = note.Model3;
            Note.Serial3 = note.Serial3;
            Note.ExpDevice = note.ExpDevice;
            Note.Refrigerant = note.Refrigerant;
            Note.RefCharge = note.RefCharge;
            Note.Memo = note.Memo;

            EIndoorMode mode = sch.IndoorMode;
            if (mode == EIndoorMode.NotUsed) mode = EIndoorMode.Cooling;

            ConditionRated rated = context.Condition.Rateds[EConditionRated.Total][(int)mode];
            Rated.Capacity = rated.Capacity;
            Rated.PowerInput = rated.PowerInput;
            Rated.EER_COP = rated.EER_COP;
            Rated.Voltage = rated.Voltage;
            Rated.Current = rated.Current;
            Rated.Frequency = rated.Frequency;
            Rated.PM_IDU = rated.PM_IDU;
            Rated.PM_ODU = rated.PM_ODU;
            Rated.Wiring = rated.Wiring;

            (ValueSheets["ID A #1"] as ReportCalorieSheet).Set(sch.Indoor1DB, sch.Indoor1WB, sch.OutdoorDB, sch.OutdoorWB);
            (ValueSheets["ID A #2"] as ReportCalorieSheet).Set(sch.Indoor1DB, sch.Indoor1WB, sch.OutdoorDB, sch.OutdoorWB);
            (ValueSheets["ID B #1"] as ReportCalorieSheet).Set(sch.Indoor2DB, sch.Indoor2WB, sch.OutdoorDB, sch.OutdoorWB);
            (ValueSheets["ID B #2"] as ReportCalorieSheet).Set(sch.Indoor2DB, sch.Indoor2WB, sch.OutdoorDB, sch.OutdoorWB);
            (ValueSheets["ID A TC"] as ReportThermoSheet).Set(sch.Indoor1DB, sch.Indoor1WB, sch.OutdoorDB, sch.OutdoorWB);
            (ValueSheets["ID A TC"] as ReportThermoSheet).Reinitialize();
            (ValueSheets["ID B TC"] as ReportThermoSheet).Set(sch.Indoor2DB, sch.Indoor2WB, sch.OutdoorDB, sch.OutdoorWB);
            (ValueSheets["ID B TC"] as ReportThermoSheet).Reinitialize();
            (ValueSheets["OD TC"] as ReportThermoSheet).Set(sch.Indoor1DB, sch.Indoor1WB, sch.OutdoorDB, sch.OutdoorWB);
            (ValueSheets["OD TC"] as ReportThermoSheet).Reinitialize();
        }

        public void Clear()
        {
            lock (this)
            {
                // Reset PK_RECNO of TB_DATABOOK
                RecNo = -1;

                foreach (KeyValuePair<string, ReportSheet> sheet in ValueSheets)
                {
                    // Reset PK_RECNO of TB_DATASHEET
                    sheet.Value.RecNo = -1;

                    foreach (KeyValuePair<string, ReportRow> row in sheet.Value.Rows)
                    {
                        // Reset PK_RECNO of TB_DATAVALUEUNIT
                        row.Value.RecNo = -1;

                        foreach (ReportCell cell in row.Value.Cells)
                        {
                            cell.Clear();
                        }
                    }
                }

                foreach (KeyValuePair<string, DataRaw> row in DataRaw.Rows)
                {
                    // Reset PK_RECNO of TB_DATARAWUNIT
                    row.Value.RecNo = -1;
                    row.Value.Row.Storage.Reset();
                }
            }
        }

        public void Lock()
        {
            Monitor.Enter(this);
        }

        public void Unlock()
        {
            Monitor.Exit(this);
        }
    }

    public abstract class ReportSheet
    {
        public ReportSheet(TestContext context, string head1, string head2,
            float idDB, float idWB, EIndoorUse idUse, EIndoorMode idMode,
            float odDB, float odWB, EOutdoorUse odUse, EEtcUse odDp, 
            string nozzleName, string nozzleState)
        {
            RecNo = -1;
            IndoorDB = idDB;
            IndoorWB = idWB;
            IndoorUse = idUse;
            IndoorMode = idMode;
            OutdoorDB = odDB;
            OutdoorWB = odWB;
            OutdoorUse = odUse;
            OutdoorDP = odDp;
            NozzleName = nozzleName;
            NozzleState = nozzleState;
            Rows = new Dictionary<string, ReportRow>();

            TcTags = null;

            if (string.IsNullOrWhiteSpace(head2) == true)
            {
                switch (head1)
                {
                    case "ID1":
                        TcTags = context.Condition.TC1;
                        break;

                    case "ID2":
                        TcTags = context.Condition.TC2;
                        break;

                    case "OD":
                        TcTags = context.Condition.TC3;
                        break;
                }
            }

            Initialize(context.Value, head1, head2);
        }

        public Int64 RecNo { get; set; }
        public float IndoorDB { get; set; }
        public float IndoorWB { get; set; }
        public bool Use { get; set; }
        public EIndoorUse IndoorUse { get; set; }
        public EIndoorMode IndoorMode { get; set; }
        public float OutdoorDB { get; set; }
        public float OutdoorWB { get; set; }
        public EOutdoorUse OutdoorUse { get; set; }
        public EEtcUse OutdoorDP { get; set; }
        public string NozzleName { get; set; }
        public string NozzleState { get; set; }
        public Dictionary<string, ReportRow> Rows { get; set; }
        public bool Enabled
        { get { return (Rows.Count == 0) ? false : true; } }
        public List<MeasureRow> TcTags { get; private set; }

        protected abstract void Initialize(TestValue value, string head1, string head2);

        public virtual void Set(float idDB, float idWB, float odDB, float odWB)
        {
            IndoorDB = idDB;
            IndoorWB = idWB;
            OutdoorDB = odDB;
            OutdoorWB = odWB;
        }

        public void ClearData(int index)
        {
            foreach (KeyValuePair<string, ReportRow> row in Rows)
            {
                row.Value.Cells[index].Raw = float.NaN;
            }
        }

        public void RefreshData(int index)
        {
            foreach (KeyValuePair<string, ReportRow> row in Rows)
            {
                if (row.Value.Row != null)
                    row.Value.Cells[index].Raw = row.Value.Row.Raw;
                else
                    row.Value.Cells[index].Raw = float.NaN;
            }
        }
    }

    public class ReportCalorieSheet : ReportSheet
    {
        public ReportCalorieSheet(TestContext context, string head1, string head2,
            float idDB, float idWB, EIndoorUse idUse, EIndoorMode idMode, float odDB, 
            float odWB, EOutdoorUse odUse, EEtcUse odDp, string nozzleName, string nozzleState)
            : base(context, head1, head2, idDB, idWB, idUse, idMode, 
                  odDB, odWB, odUse, odDp, nozzleName, nozzleState)
        {
        }

        protected override void Initialize(TestValue value, string head1, string head2)
        {
            if (IndoorUse == EIndoorUse.NotUsed) return;

            if (IndoorMode == EIndoorMode.NotUsed)
            {
                Rows.Add("Total.Capacity", new ReportRow("324", null));
                Rows.Add("Total.Power", new ReportRow("325", value.Calcurated["Total.Power"]));
                Rows.Add("Total.EER_COP", new ReportRow("326", null));
                Rows.Add("Total.Capacity.Ratio", new ReportRow("327", null));
                Rows.Add("Total.Power.Ratio", new ReportRow("328", value.Calcurated["Total.Power.Ratio"]));
                Rows.Add("Total.EER_COP.Ratio", new ReportRow("329", null));

                Rows.Add("IDU.Power", new ReportRow("330", value.Calcurated[head1+".IDU.Power"]));
                Rows.Add("IDU.Voltage", new ReportRow("331", value.Calcurated[head1+".IDU.Voltage"]));
                Rows.Add("IDU.Current", new ReportRow("332", value.Calcurated[head1+".IDU.Current"]));
                Rows.Add("IDU.Frequency", new ReportRow("333", value.Calcurated[head1+".IDU.Frequency"]));
                Rows.Add("IDU.Power.Factor", new ReportRow("334", value.Calcurated[head1+".IDU.Power.Factor"]));

                Rows.Add("ODU.Power", new ReportRow("335", value.Calcurated[head1+".ODU.Power"]));
                Rows.Add("ODU.Voltage", new ReportRow("336", value.Calcurated[head1+".ODU.Voltage"]));
                Rows.Add("ODU.Current", new ReportRow("337", value.Calcurated[head1+".ODU.Current"]));
                Rows.Add("ODU.Frequency", new ReportRow("338", value.Calcurated[head1+".ODU.Frequency"]));
                Rows.Add("ODU.Power.Factor", new ReportRow("339", value.Calcurated[head1+".ODU.Power.Factor"]));

                Rows.Add("Capacity", new ReportRow("341", null));
                Rows.Add("Capacity.Ratio", new ReportRow("394", null));
                Rows.Add("Sensible.Heat", new ReportRow("342", null));
                Rows.Add("Latent.Heat", new ReportRow("343", null));
                Rows.Add("Sensible.Heat.Ratio", new ReportRow("344", null));
                Rows.Add("Heat.Leakage", new ReportRow("345", null));
                Rows.Add("Drain.Weight", new ReportRow("346", null));

                Rows.Add("Entering.DB", new ReportRow("347", value.Measured[head2+".Entering.DB"]));
                Rows.Add("Entering.WB", new ReportRow("348", value.Measured[head2+".Entering.WB"]));
                Rows.Add("Entering.RH", new ReportRow("349", value.Calcurated[head2+".Entering.RH"]));
                Rows.Add("Leaving.DB", new ReportRow("350", value.Measured[head2+".Leaving.DB"]));
                Rows.Add("Leaving.WB", new ReportRow("351", value.Measured[head2+".Leaving.WB"]));
                Rows.Add("Leaving.RH", new ReportRow("352", value.Calcurated[head2+".Leaving.RH"]));

                Rows.Add("Entering.Enthalpy", new ReportRow("353", null));
                Rows.Add("Leaving.Enthalpy", new ReportRow("354", null));
                Rows.Add("Entering.Humidity.Ratio", new ReportRow("355", null));
                Rows.Add("Leaving.Humidity.Ratio", new ReportRow("356", null));
                Rows.Add("Leaving.Specific.Heat", new ReportRow("357", null));
                Rows.Add("Leaving.Specific.Volume", new ReportRow("358", null));

                Rows.Add("Air.Flow.Lev", new ReportRow("359", null));
                Rows.Add("Static.Pressure", new ReportRow("360", null));
                Rows.Add("Nozzle.Diff.Pressure", new ReportRow("361", null));
                Rows.Add("Atm.Pressure", new ReportRow("362", null));
                Rows.Add("Nozzle.Inlet.Temp", new ReportRow("363", null));
                Rows.Add("Nozzle", new ReportRow("365", null));
            }
            else
            {
                Rows.Add("Total.Capacity", new ReportRow("324", value.Calcurated["Total.Capacity"]));
                Rows.Add("Total.Power", new ReportRow("325", value.Calcurated["Total.Power"]));
                Rows.Add("Total.EER_COP", new ReportRow("326", value.Calcurated["Total.EER_COP"]));
                Rows.Add("Total.Capacity.Ratio", new ReportRow("327", value.Calcurated["Total.Capacity.Ratio"]));
                Rows.Add("Total.Power.Ratio", new ReportRow("328", value.Calcurated["Total.Power.Ratio"]));
                Rows.Add("Total.EER_COP.Ratio", new ReportRow("329", value.Calcurated["Total.EER_COP.Ratio"]));

                Rows.Add("IDU.Power", new ReportRow("330", value.Calcurated[head1+".IDU.Power"]));
                Rows.Add("IDU.Voltage", new ReportRow("331", value.Calcurated[head1+".IDU.Voltage"]));
                Rows.Add("IDU.Current", new ReportRow("332", value.Calcurated[head1+".IDU.Current"]));
                Rows.Add("IDU.Frequency", new ReportRow("333", value.Calcurated[head1+".IDU.Frequency"]));
                Rows.Add("IDU.Power.Factor", new ReportRow("334", value.Calcurated[head1+".IDU.Power.Factor"]));

                Rows.Add("ODU.Power", new ReportRow("335", value.Calcurated[head1+".ODU.Power"]));
                Rows.Add("ODU.Voltage", new ReportRow("336", value.Calcurated[head1+".ODU.Voltage"]));
                Rows.Add("ODU.Current", new ReportRow("337", value.Calcurated[head1+".ODU.Current"]));
                Rows.Add("ODU.Frequency", new ReportRow("338", value.Calcurated[head1+".ODU.Frequency"]));
                Rows.Add("ODU.Power.Factor", new ReportRow("339", value.Calcurated[head1+".ODU.Power.Factor"]));

                Rows.Add("Capacity", new ReportRow("341", value.Calcurated[head2+".Capacity"]));
                Rows.Add("Capacity.Ratio", new ReportRow("394", value.Calcurated[head2+".Capacity.Ratio"]));
                Rows.Add("Sensible.Heat", new ReportRow("342", value.Calcurated[head2+".Sensible.Heat"]));
                Rows.Add("Latent.Heat", new ReportRow("343", value.Calcurated[head2+".Latent.Heat"]));
                Rows.Add("Sensible.Heat.Ratio", new ReportRow("344", value.Calcurated[head2+".Sensible.Heat.Ratio"]));
                Rows.Add("Heat.Leakage", new ReportRow("345", value.Calcurated[head2+".Heat.Leakage"]));
                Rows.Add("Drain.Weight", new ReportRow("346", value.Calcurated[head2+".Drain.Weight"]));

                Rows.Add("Entering.DB", new ReportRow("347", value.Measured[head2+".Entering.DB"]));
                Rows.Add("Entering.WB", new ReportRow("348", value.Measured[head2+".Entering.WB"]));
                Rows.Add("Entering.RH", new ReportRow("349", value.Calcurated[head2+".Entering.RH"]));
                Rows.Add("Leaving.DB", new ReportRow("350", value.Measured[head2+".Leaving.DB"]));
                Rows.Add("Leaving.WB", new ReportRow("351", value.Measured[head2+".Leaving.WB"]));
                Rows.Add("Leaving.RH", new ReportRow("352", value.Calcurated[head2+".Leaving.RH"]));

                Rows.Add("Entering.Enthalpy", new ReportRow("353", value.Calcurated[head2+".Entering.Enthalpy"]));
                Rows.Add("Leaving.Enthalpy", new ReportRow("354", value.Calcurated[head2+".Leaving.Enthalpy"]));
                Rows.Add("Entering.Humidity.Ratio", new ReportRow("355", value.Calcurated[head2+".Entering.Humidity.Ratio"]));
                Rows.Add("Leaving.Humidity.Ratio", new ReportRow("356", value.Calcurated[head2+".Leaving.Humidity.Ratio"]));
                Rows.Add("Leaving.Specific.Heat", new ReportRow("357", value.Calcurated[head2+".Leaving.Specific.Heat"]));
                Rows.Add("Leaving.Specific.Volume", new ReportRow("358", value.Calcurated[head2+".Leaving.Specific.Volume"]));

                Rows.Add("Air.Flow.Lev", new ReportRow("359", value.Calcurated[head2+".Air.Flow.Lev"]));
                Rows.Add("Static.Pressure", new ReportRow("360", value.Measured[head2+".Static.Pressure"]));
                Rows.Add("Nozzle.Diff.Pressure", new ReportRow("361", value.Measured[head2+".Nozzle.Diff.Pressure"]));
                Rows.Add("Atm.Pressure", new ReportRow("362", value.Measured[head1+".Atm.Pressure"]));
                Rows.Add("Nozzle.Inlet.Temp", new ReportRow("363", value.Measured[head2 + ".Nozzle.Inlet.Temp"]));
                Rows.Add("Nozzle", new ReportRow("365", value.Calcurated[head2 + ".Nozzle"]));
            }

            if (OutdoorUse == EOutdoorUse.Outdoor)
            {
                Rows.Add("OD.Entering.DB", new ReportRow("366", value.Measured["OD.Entering.DB"]));
                Rows.Add("OD.Entering.WB", new ReportRow("367", value.Measured["OD.Entering.WB"]));
                Rows.Add("OD.Entering.RH", new ReportRow("368", value.Calcurated["OD.Entering.RH"]));
                Rows.Add("OD.Entering.DP", new ReportRow("369", value.Measured["OD.Entering.DP"]));
            }
        }
    }

    public class ReportThermoSheet : ReportSheet
    {
        public ReportThermoSheet(TestContext context, string head1, string head2,
            float idDB, float idWB, EIndoorUse idUse, EIndoorMode idMode, float odDB, 
            float odWB, EOutdoorUse odUse, EEtcUse odDp, string nozzleName, string nozzleState)
            : base(context, head1, head2, idDB, idWB, idUse, idMode, 
                  odDB, odWB, odUse, odDp, nozzleName, nozzleState)
        {
            this.context = context;
            this.head1 = head1;
            this.head2 = head2;
        }

        private TestContext context;
        private string head1;
        private string head2;

        protected override void Initialize(TestValue value, string head1, string head2)
        {
            if (IsTcTagsEmpty() == true)
            {
                Use = false;
                return;
            }

            if (head1.Substring(0, 2) == "ID")
            {
                if (IndoorUse == EIndoorUse.NotUsed) return;
            }
            else
            {
                if (OutdoorUse == EOutdoorUse.NotUsed) return;
            }

            Use = true;
            for (int i = 0; i < 60; i++)
            {
                if (string.IsNullOrWhiteSpace(TcTags[i].Name) == true)
                {
                    Rows.Add($"TC {i + 1:d2}", new ReportRow($"{525 + i}", null));
                }
                else
                {
                    Rows.Add($"TC {i + 1:d2}", new ReportRow($"{525 + i}", value.Measured[head1 + $".TC.{i + 1:d3}"], TcTags[i].Name));
                }
            }
        }

        public void Reinitialize()
        {
            if (IsTcTagsEmpty() == true)
            {
                Use = false;
                return;
            }

            if (head1.Substring(0, 2) == "ID")
            {
                if (IndoorUse == EIndoorUse.NotUsed) return;
            }
            else
            {
                if (OutdoorUse == EOutdoorUse.NotUsed) return;
            }

            Use = true;
            Rows.Clear();

            for (int i = 0; i < 60; i++)
            {
                if (string.IsNullOrWhiteSpace(TcTags[i].Name) == true)
                {
                    Rows.Add($"TC {i + 1:d2}", new ReportRow($"{525 + i}", null));
                }
                else
                {
                    Rows.Add($"TC {i + 1:d2}", new ReportRow($"{525 + i}", context.Value.Measured[head1 + $".TC.{i + 1:d3}"], TcTags[i].Name));
                }
            }
        }

        private bool IsTcTagsEmpty()
        {
            bool empty = true;

            foreach (MeasureRow row in TcTags)
            {
                if (string.IsNullOrWhiteSpace(row.Name) == false)
                {
                    empty = false;
                    break;
                }
            }

            return empty;
        }
    }

    public class ReportRow
    {
        public ReportRow(string tag, ValueRow row, string alias="", int count = 7)
        {
            RecNo = -1;
            Tag = tag;
            Row = row;
            Alias = alias;

            if (count > 7) count = 7;
            count++;

            float value = (Row == null) ? float.NaN : 0;
            string format = (Row == null) ? "" : Row.Format;

            Cells = new List<ReportCell>();
            for (int i = 0; i < count; i++)
            {
                Cells.Add(new ReportCell($"{Tag}-{i + 1}", value, format));
            }
        }

        public Int64 RecNo { get; set; }
        public string Tag { get; }
        public ValueRow Row { get; }
        public string Alias { get; }
        public List<ReportCell> Cells { get; }
        public float Average
        {
            get
            {
                if (Row == null) return float.NaN;

                int i = 0;
                float sum = 0;

                foreach (ReportCell cell in Cells)
                {
                    if (cell.Raw == 0.0) break;
                    if (float.IsNaN(cell.Raw) == true) break;
                    if (string.IsNullOrWhiteSpace(cell.Value) == true) break;

                    sum += cell.Raw;
                    i++;
                }

                return (i == 0) ? 0 : (sum / i);
            }
        }
        public int Count { get { return Cells.Count; } }
    }

    public class ReportCell
    {
        public ReportCell(string tag, float value, string format, string strValue = "")
        {
            Tag = tag;
            Raw = value;
            Format = format;
            StrValue = strValue;
        }

        public string Tag { get; }
        public float Raw { get; set; }
        public string Value
        {
            get
            {
                if (StrValue != "") return StrValue;
                if (Format == "") return "";
                if (float.IsNaN(Raw) == true) return "";

                return Raw.ToString(Format);
            }
        }
        public string Format { get; }
        public string StrValue { get; set; }

        public void Clear()
        {
            Raw = 0;
            StrValue = "";
        }
    }

    public class DataRawCollection
    {
        public DataRawCollection(TestContext context)
        {
            this.Count = 1;
            this.Rows = new Dictionary<string, DataRaw>();
            this.context = context;
        }

        private TestContext context;

        public int Count { get; set; }
        public Dictionary<string, DataRaw> Rows { get; private set; }

        public bool HalfFull
        {
            get
            {
                bool state = false;
                context.Value.Lock();

                try
                {
                    foreach (KeyValuePair<string, DataRaw> dataRaw in Rows)
                    {
                        if (dataRaw.Value.Row.Storage.HalfFull == true)
                        {
                            state = true;
                            break;
                        }
                    }
                }
                finally
                {
                    context.Value.Unlock();
                }

                return state;
            }
        }

        public DataRaw HalfFullDataRaw
        {
            get
            {
                DataRaw raw = null;
                context.Value.Lock();

                try
                {
                    foreach (KeyValuePair<string, DataRaw> dataRaw in Rows)
                    {
                        if (dataRaw.Value.Row.Storage.HalfFull == true)
                        {
                            raw = dataRaw.Value;
                            break;
                        }
                    }
                }
                finally
                {
                    context.Value.Unlock();
                }

                return raw;
            }
        }

        public void Clear()
        {
            Count = 1;
            Rows.Clear();
        }
    }

    public class DataRaw
    {
        public DataRaw(Int64 recNo=-1, ValueRow row=null)
        {
            RecNo = recNo;
            Row = row;
        }

        public Int64 RecNo { get; set; }
        public ValueRow Row { get; set; }
    }
    #endregion
}
<file_sep>﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

using Ulee.Controls;

namespace Hnc.Calorimeter.Client
{
    public partial class CtrlRecorderView : UlUserControlEng
    {
        public CtrlRecorderView(string name, List<DeviceValueRow<float>> values)
        {
            InitializeComponent();
            titleEdit.Text = name;

            recorderGrid.DataSource = values;
            recorderGridView.Appearance.EvenRow.BackColor = Color.FromArgb(244, 244, 236);
            recorderGridView.OptionsView.EnableAppearanceEvenRow = true;
        }

        private void CtrlRecorderView_Load(object sender, EventArgs e)
        {
        }

        public void RefreshMeter()
        {
            recorderGridView.RefreshData();
        }
    }
}
<file_sep>﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

using Ulee.Controls;

namespace Hnc.Calorimeter.Client
{
    public partial class FormPrintingOption : UlFormEng
    {
        public FormPrintingOption()
        {
            InitializeComponent();
        }

        public bool AutoExcel { get { return autoExcelCheck.Checked; } }
        public bool StoppedTestExcel { get { return stoppedTestExcelCheck.Checked; } }
        public bool Indoor11 { get { return indoor11Check.Checked; } }
        public bool Indoor12 { get { return indoor12Check.Checked; } }
        public bool Indoor21 { get { return indoor21Check.Checked; } }
        public bool Indoor22 { get { return indoor22Check.Checked; } }
        public bool IndoorTC1 { get { return indoorTC1Check.Checked; } }
        public bool IndoorTC2 { get { return indoorTC2Check.Checked; } }
        public bool OutdoorTC { get { return outdoorTCCheck.Checked; } }

        private void FormPrintingOption_Load(object sender, EventArgs e)
        {
            Resource.Settings.Load();

            TestOptions opt = Resource.Settings.Options;
            autoExcelCheck.Checked = opt.AutoExcel;
            stoppedTestExcelCheck.Checked = opt.StoppedTestExcel;
            indoor11Check.Checked = opt.Indoor11;
            indoor12Check.Checked = opt.Indoor12;
            indoor21Check.Checked = opt.Indoor21;
            indoor22Check.Checked = opt.Indoor22;
            indoorTC1Check.Checked = opt.Indoor1TC;
            indoorTC2Check.Checked = opt.Indoor2TC;
            outdoorTCCheck.Checked = opt.OutdoorTC;
        }

        private void FormPrintingOption_KeyPress(object sender, KeyPressEventArgs e)
        {
            if (e.KeyChar == (char)Keys.Escape)
            {
                cancelButton.PerformClick();
            }
        }
    }
}
<file_sep>﻿namespace Hnc.Calorimeter.Server
{ 
    partial class FormUserLogin
    {
        /// <summary>
        /// Required designer variable.
        /// </summary>
        private System.ComponentModel.IContainer components = null;

        /// <summary>
        /// Clean up any resources being used.
        /// </summary>
        /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
        protected override void Dispose(bool disposing)
        {
            if (disposing && (components != null))
            {
                components.Dispose();
            }
            base.Dispose(disposing);
        }

        #region Windows Form Designer generated code

        /// <summary>
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FormUserLogin));
            this.cancelButton = new System.Windows.Forms.Button();
            this.okButton = new System.Windows.Forms.Button();
            this.userCombo = new System.Windows.Forms.ComboBox();
            this.label5 = new System.Windows.Forms.Label();
            this.passwdEdit = new DevExpress.XtraEditors.TextEdit();
            this.prtSpeedLabel = new System.Windows.Forms.Label();
            this.bgPanel.SuspendLayout();
            ((System.ComponentModel.ISupportInitialize)(this.passwdEdit.Properties)).BeginInit();
            this.SuspendLayout();
            // 
            // bgPanel
            // 
            this.bgPanel.BevelOuter = Ulee.Controls.EUlBevelStyle.Single;
            this.bgPanel.Controls.Add(this.userCombo);
            this.bgPanel.Controls.Add(this.label5);
            this.bgPanel.Controls.Add(this.passwdEdit);
            this.bgPanel.Controls.Add(this.prtSpeedLabel);
            this.bgPanel.Controls.Add(this.cancelButton);
            this.bgPanel.Controls.Add(this.okButton);
            this.bgPanel.Size = new System.Drawing.Size(300, 180);
            // 
            // cancelButton
            // 
            this.cancelButton.DialogResult = System.Windows.Forms.DialogResult.Cancel;
            this.cancelButton.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.cancelButton.Image = ((System.Drawing.Image)(resources.GetObject("cancelButton.Image")));
            this.cancelButton.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
            this.cancelButton.Location = new System.Drawing.Point(154, 134);
            this.cancelButton.Name = "cancelButton";
            this.cancelButton.Padding = new System.Windows.Forms.Padding(8, 0, 0, 0);
            this.cancelButton.Size = new System.Drawing.Size(128, 32);
            this.cancelButton.TabIndex = 3;
            this.cancelButton.Text = "Cancel";
            this.cancelButton.UseVisualStyleBackColor = true;
            this.cancelButton.Click += new System.EventHandler(this.cancelButton_Click);
            // 
            // okButton
            // 
            this.okButton.DialogResult = System.Windows.Forms.DialogResult.OK;
            this.okButton.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.okButton.Image = ((System.Drawing.Image)(resources.GetObject("okButton.Image")));
            this.okButton.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
            this.okButton.Location = new System.Drawing.Point(16, 134);
            this.okButton.Name = "okButton";
            this.okButton.Padding = new System.Windows.Forms.Padding(8, 0, 0, 0);
            this.okButton.Size = new System.Drawing.Size(128, 32);
            this.okButton.TabIndex = 2;
            this.okButton.Text = "Ok";
            this.okButton.UseVisualStyleBackColor = true;
            this.okButton.Click += new System.EventHandler(this.okButton_Click);
            // 
            // userCombo
            // 
            this.userCombo.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.userCombo.FormattingEnabled = true;
            this.userCombo.Items.AddRange(new object[] {
            "일반",
            "관리자"});
            this.userCombo.Location = new System.Drawing.Point(113, 37);
            this.userCombo.MaxLength = 20;
            this.userCombo.Name = "userCombo";
            this.userCombo.Size = new System.Drawing.Size(148, 23);
            this.userCombo.TabIndex = 0;
            // 
            // label5
            // 
            this.label5.AutoSize = true;
            this.label5.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.label5.Location = new System.Drawing.Point(39, 82);
            this.label5.Name = "label5";
            this.label5.Size = new System.Drawing.Size(63, 15);
            this.label5.TabIndex = 23;
            this.label5.Text = "Password";
            // 
            // passwdEdit
            // 
            this.passwdEdit.EditValue = "";
            this.passwdEdit.Location = new System.Drawing.Point(113, 77);
            this.passwdEdit.Name = "passwdEdit";
            this.passwdEdit.Properties.Appearance.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.passwdEdit.Properties.Appearance.Options.UseFont = true;
            this.passwdEdit.Properties.Mask.EditMask = "f1";
            this.passwdEdit.Properties.MaxLength = 20;
            this.passwdEdit.Properties.PasswordChar = '*';
            this.passwdEdit.Size = new System.Drawing.Size(148, 22);
            this.passwdEdit.TabIndex = 1;
            // 
            // prtSpeedLabel
            // 
            this.prtSpeedLabel.AutoSize = true;
            this.prtSpeedLabel.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.prtSpeedLabel.Location = new System.Drawing.Point(39, 40);
            this.prtSpeedLabel.Name = "prtSpeedLabel";
            this.prtSpeedLabel.Size = new System.Drawing.Size(49, 15);
            this.prtSpeedLabel.TabIndex = 22;
            this.prtSpeedLabel.Text = "User ID";
            // 
            // FormUserLogin
            // 
            this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            this.CancelButton = this.cancelButton;
            this.ClientSize = new System.Drawing.Size(300, 180);
            this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
            this.KeyPreview = true;
            this.Name = "FormUserLogin";
            this.ShowIcon = false;
            this.ShowInTaskbar = false;
            this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
            this.Text = "FormUserLogin";
            this.Load += new System.EventHandler(this.FormUserLogin_Load);
            this.Enter += new System.EventHandler(this.FormUserLogin_Enter);
            this.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.FormUserLogin_KeyPress);
            this.bgPanel.ResumeLayout(false);
            this.bgPanel.PerformLayout();
            ((System.ComponentModel.ISupportInitialize)(this.passwdEdit.Properties)).EndInit();
            this.ResumeLayout(false);
            this.PerformLayout();

        }

    #endregion

        public System.Windows.Forms.ComboBox userCombo;
        private System.Windows.Forms.Label label5;
        public DevExpress.XtraEditors.TextEdit passwdEdit;
        private System.Windows.Forms.Label prtSpeedLabel;
        private System.Windows.Forms.Button cancelButton;
        private System.Windows.Forms.Button okButton;
    }
}<file_sep>﻿namespace Hnc.Calorimeter.Client
{
    partial class CtrlTestGraphPanel
    {
        /// <summary>
        /// Required designer variable.
        /// </summary>
        private System.ComponentModel.IContainer components = null;

        /// <summary>
        /// Clean up any resources being used.
        /// </summary>
        /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
        protected override void Dispose(bool disposing)
        {
            if (disposing && (components != null))
            {
                components.Dispose();
            }
            base.Dispose(disposing);
        }

        #region Windows Form Designer generated code

        /// <summary>
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            this.components = new System.ComponentModel.Container();
            DevExpress.XtraEditors.Controls.EditorButtonImageOptions editorButtonImageOptions1 = new DevExpress.XtraEditors.Controls.EditorButtonImageOptions();
            DevExpress.Utils.SerializableAppearanceObject serializableAppearanceObject1 = new DevExpress.Utils.SerializableAppearanceObject();
            DevExpress.Utils.SerializableAppearanceObject serializableAppearanceObject2 = new DevExpress.Utils.SerializableAppearanceObject();
            DevExpress.Utils.SerializableAppearanceObject serializableAppearanceObject3 = new DevExpress.Utils.SerializableAppearanceObject();
            DevExpress.Utils.SerializableAppearanceObject serializableAppearanceObject4 = new DevExpress.Utils.SerializableAppearanceObject();
            Ulee.Chart.UlDoubleBufferedSeriesCollection ulDoubleBufferedSeriesCollection1 = new Ulee.Chart.UlDoubleBufferedSeriesCollection();
            System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(CtrlTestGraphPanel));
            this.applyButton = new System.Windows.Forms.Button();
            this.plotPanel = new Ulee.Controls.UlPanel();
            this.ulPanel6 = new Ulee.Controls.UlPanel();
            this.plotSeriesGrid = new DevExpress.XtraGrid.GridControl();
            this.plotSeriesGridView = new DevExpress.XtraGrid.Views.Grid.GridView();
            this.psRecNoColumn = new DevExpress.XtraGrid.Columns.GridColumn();
            this.psCheckedColumn = new DevExpress.XtraGrid.Columns.GridColumn();
            this.psColorColumn = new DevExpress.XtraGrid.Columns.GridColumn();
            this.psColorEdit = new DevExpress.XtraEditors.Repository.RepositoryItemColorEdit();
            this.psNameColumn = new DevExpress.XtraGrid.Columns.GridColumn();
            this.psValueColumn = new DevExpress.XtraGrid.Columns.GridColumn();
            this.psCursorAColumn = new DevExpress.XtraGrid.Columns.GridColumn();
            this.psCursorBColumn = new DevExpress.XtraGrid.Columns.GridColumn();
            this.psDiffColumn = new DevExpress.XtraGrid.Columns.GridColumn();
            this.psMinColumn = new DevExpress.XtraGrid.Columns.GridColumn();
            this.psMaxColumn = new DevExpress.XtraGrid.Columns.GridColumn();
            this.psAvgColumn = new DevExpress.XtraGrid.Columns.GridColumn();
            this.psUnitColumn = new DevExpress.XtraGrid.Columns.GridColumn();
            this.yAxesSettingButton = new System.Windows.Forms.Button();
            this.hideUncheckedCheck = new System.Windows.Forms.CheckBox();
            this.resetButton = new System.Windows.Forms.Button();
            this.undoButton = new System.Windows.Forms.Button();
            this.stackButton = new System.Windows.Forms.Button();
            this.autosetButton = new System.Windows.Forms.Button();
            this.graphPanel = new Ulee.Controls.UlPanel();
            this.viewGraph = new Ulee.Chart.UlDoubleBufferedLineChart();
            this.imageList = new System.Windows.Forms.ImageList(this.components);
            this.graphPauseLed = new Ulee.Controls.UlLed();
            this.graphPauseButton = new System.Windows.Forms.Button();
            this.zoomAxisCombo = new System.Windows.Forms.ComboBox();
            this.label25 = new System.Windows.Forms.Label();
            this.cursorButton = new System.Windows.Forms.Button();
            this.bgPanel.SuspendLayout();
            this.plotPanel.SuspendLayout();
            ((System.ComponentModel.ISupportInitialize)(this.plotSeriesGrid)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.plotSeriesGridView)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.psColorEdit)).BeginInit();
            this.graphPanel.SuspendLayout();
            ((System.ComponentModel.ISupportInitialize)(this.viewGraph)).BeginInit();
            this.SuspendLayout();
            // 
            // bgPanel
            // 
            this.bgPanel.BevelOuter = Ulee.Controls.EUlBevelStyle.None;
            this.bgPanel.Controls.Add(this.cursorButton);
            this.bgPanel.Controls.Add(this.zoomAxisCombo);
            this.bgPanel.Controls.Add(this.label25);
            this.bgPanel.Controls.Add(this.graphPauseLed);
            this.bgPanel.Controls.Add(this.graphPauseButton);
            this.bgPanel.Controls.Add(this.resetButton);
            this.bgPanel.Controls.Add(this.undoButton);
            this.bgPanel.Controls.Add(this.stackButton);
            this.bgPanel.Controls.Add(this.autosetButton);
            this.bgPanel.Controls.Add(this.graphPanel);
            this.bgPanel.Controls.Add(this.applyButton);
            this.bgPanel.Controls.Add(this.plotPanel);
            this.bgPanel.Controls.Add(this.yAxesSettingButton);
            this.bgPanel.Controls.Add(this.hideUncheckedCheck);
            this.bgPanel.Size = new System.Drawing.Size(1384, 859);
            // 
            // applyButton
            // 
            this.applyButton.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
            this.applyButton.Location = new System.Drawing.Point(304, 2);
            this.applyButton.Name = "applyButton";
            this.applyButton.Padding = new System.Windows.Forms.Padding(2, 0, 0, 0);
            this.applyButton.Size = new System.Drawing.Size(96, 26);
            this.applyButton.TabIndex = 79;
            this.applyButton.TabStop = false;
            this.applyButton.Text = "Apply";
            this.applyButton.UseVisualStyleBackColor = true;
            this.applyButton.Click += new System.EventHandler(this.applyButton_Click);
            // 
            // plotPanel
            // 
            this.plotPanel.BevelInner = Ulee.Controls.EUlBevelStyle.Raised;
            this.plotPanel.BevelOuter = Ulee.Controls.EUlBevelStyle.Lowered;
            this.plotPanel.Controls.Add(this.ulPanel6);
            this.plotPanel.Controls.Add(this.plotSeriesGrid);
            this.plotPanel.InnerColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.plotPanel.InnerColor2 = System.Drawing.Color.White;
            this.plotPanel.Location = new System.Drawing.Point(0, 30);
            this.plotPanel.Name = "plotPanel";
            this.plotPanel.OuterColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.plotPanel.OuterColor2 = System.Drawing.Color.White;
            this.plotPanel.Size = new System.Drawing.Size(400, 829);
            this.plotPanel.Spacing = 0;
            this.plotPanel.TabIndex = 78;
            this.plotPanel.TextHAlign = Ulee.Controls.EUlHoriAlign.Center;
            this.plotPanel.TextVAlign = Ulee.Controls.EUlVertAlign.Middle;
            // 
            // ulPanel6
            // 
            this.ulPanel6.BackColor = System.Drawing.Color.DeepSkyBlue;
            this.ulPanel6.BevelInner = Ulee.Controls.EUlBevelStyle.None;
            this.ulPanel6.BevelOuter = Ulee.Controls.EUlBevelStyle.Lowered;
            this.ulPanel6.Font = new System.Drawing.Font("Arial Rounded MT Bold", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.ulPanel6.ForeColor = System.Drawing.Color.White;
            this.ulPanel6.InnerColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.ulPanel6.InnerColor2 = System.Drawing.Color.White;
            this.ulPanel6.Location = new System.Drawing.Point(6, 6);
            this.ulPanel6.Name = "ulPanel6";
            this.ulPanel6.OuterColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.ulPanel6.OuterColor2 = System.Drawing.Color.White;
            this.ulPanel6.Size = new System.Drawing.Size(388, 28);
            this.ulPanel6.Spacing = 0;
            this.ulPanel6.TabIndex = 6;
            this.ulPanel6.Text = "PLOT SERIES";
            this.ulPanel6.TextHAlign = Ulee.Controls.EUlHoriAlign.Center;
            this.ulPanel6.TextVAlign = Ulee.Controls.EUlVertAlign.Middle;
            // 
            // plotSeriesGrid
            // 
            this.plotSeriesGrid.Location = new System.Drawing.Point(6, 38);
            this.plotSeriesGrid.MainView = this.plotSeriesGridView;
            this.plotSeriesGrid.Name = "plotSeriesGrid";
            this.plotSeriesGrid.RepositoryItems.AddRange(new DevExpress.XtraEditors.Repository.RepositoryItem[] {
            this.psColorEdit});
            this.plotSeriesGrid.Size = new System.Drawing.Size(388, 785);
            this.plotSeriesGrid.TabIndex = 73;
            this.plotSeriesGrid.TabStop = false;
            this.plotSeriesGrid.Tag = "1";
            this.plotSeriesGrid.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] {
            this.plotSeriesGridView});
            // 
            // plotSeriesGridView
            // 
            this.plotSeriesGridView.ActiveFilterEnabled = false;
            this.plotSeriesGridView.Appearance.FixedLine.Font = new System.Drawing.Font("Arial", 9F);
            this.plotSeriesGridView.Appearance.FixedLine.Options.UseFont = true;
            this.plotSeriesGridView.Appearance.FocusedCell.Font = new System.Drawing.Font("Arial", 9F);
            this.plotSeriesGridView.Appearance.FocusedCell.Options.UseFont = true;
            this.plotSeriesGridView.Appearance.FocusedRow.Font = new System.Drawing.Font("Arial", 9F);
            this.plotSeriesGridView.Appearance.FocusedRow.Options.UseFont = true;
            this.plotSeriesGridView.Appearance.HeaderPanel.Font = new System.Drawing.Font("Arial", 9F);
            this.plotSeriesGridView.Appearance.HeaderPanel.Options.UseFont = true;
            this.plotSeriesGridView.Appearance.HideSelectionRow.Font = new System.Drawing.Font("Arial", 9F);
            this.plotSeriesGridView.Appearance.HideSelectionRow.Options.UseFont = true;
            this.plotSeriesGridView.Appearance.OddRow.Font = new System.Drawing.Font("Arial", 9F);
            this.plotSeriesGridView.Appearance.OddRow.Options.UseFont = true;
            this.plotSeriesGridView.Appearance.Preview.Font = new System.Drawing.Font("Arial", 9F);
            this.plotSeriesGridView.Appearance.Preview.Options.UseFont = true;
            this.plotSeriesGridView.Appearance.Row.Font = new System.Drawing.Font("Arial", 9F);
            this.plotSeriesGridView.Appearance.Row.Options.UseFont = true;
            this.plotSeriesGridView.Appearance.SelectedRow.Font = new System.Drawing.Font("Arial", 9F);
            this.plotSeriesGridView.Appearance.SelectedRow.Options.UseFont = true;
            this.plotSeriesGridView.Appearance.ViewCaption.Font = new System.Drawing.Font("Arial", 9F);
            this.plotSeriesGridView.Appearance.ViewCaption.Options.UseFont = true;
            this.plotSeriesGridView.Columns.AddRange(new DevExpress.XtraGrid.Columns.GridColumn[] {
            this.psRecNoColumn,
            this.psCheckedColumn,
            this.psColorColumn,
            this.psNameColumn,
            this.psValueColumn,
            this.psCursorAColumn,
            this.psCursorBColumn,
            this.psDiffColumn,
            this.psMinColumn,
            this.psMaxColumn,
            this.psAvgColumn,
            this.psUnitColumn});
            this.plotSeriesGridView.CustomizationFormBounds = new System.Drawing.Rectangle(2884, 580, 210, 186);
            this.plotSeriesGridView.GridControl = this.plotSeriesGrid;
            this.plotSeriesGridView.Name = "plotSeriesGridView";
            this.plotSeriesGridView.OptionsCustomization.AllowColumnMoving = false;
            this.plotSeriesGridView.OptionsCustomization.AllowFilter = false;
            this.plotSeriesGridView.OptionsCustomization.AllowGroup = false;
            this.plotSeriesGridView.OptionsCustomization.AllowMergedGrouping = DevExpress.Utils.DefaultBoolean.False;
            this.plotSeriesGridView.OptionsCustomization.AllowQuickHideColumns = false;
            this.plotSeriesGridView.OptionsCustomization.AllowSort = false;
            this.plotSeriesGridView.OptionsFilter.AllowAutoFilterConditionChange = DevExpress.Utils.DefaultBoolean.False;
            this.plotSeriesGridView.OptionsFilter.AllowColumnMRUFilterList = false;
            this.plotSeriesGridView.OptionsFilter.AllowFilterEditor = false;
            this.plotSeriesGridView.OptionsFilter.AllowFilterIncrementalSearch = false;
            this.plotSeriesGridView.OptionsFilter.AllowMRUFilterList = false;
            this.plotSeriesGridView.OptionsFilter.AllowMultiSelectInCheckedFilterPopup = false;
            this.plotSeriesGridView.OptionsFilter.ShowAllTableValuesInCheckedFilterPopup = false;
            this.plotSeriesGridView.OptionsLayout.Columns.AddNewColumns = false;
            this.plotSeriesGridView.OptionsLayout.Columns.RemoveOldColumns = false;
            this.plotSeriesGridView.OptionsLayout.StoreAllOptions = true;
            this.plotSeriesGridView.OptionsView.ColumnAutoWidth = false;
            this.plotSeriesGridView.OptionsView.ShowGroupPanel = false;
            this.plotSeriesGridView.OptionsView.ShowIndicator = false;
            this.plotSeriesGridView.Tag = 1;
            this.plotSeriesGridView.CustomDrawColumnHeader += new DevExpress.XtraGrid.Views.Grid.ColumnHeaderCustomDrawEventHandler(this.plotSeriesGridView_CustomDrawColumnHeader);
            this.plotSeriesGridView.CustomRowFilter += new DevExpress.XtraGrid.Views.Base.RowFilterEventHandler(this.plotSeriesGridView_CustomRowFilter);
            this.plotSeriesGridView.MouseDown += new System.Windows.Forms.MouseEventHandler(this.plotSeriesGridView_MouseDown);
            // 
            // psRecNoColumn
            // 
            this.psRecNoColumn.Caption = "RecNo";
            this.psRecNoColumn.FieldName = "RecNo";
            this.psRecNoColumn.Name = "psRecNoColumn";
            // 
            // psCheckedColumn
            // 
            this.psCheckedColumn.AppearanceCell.Font = new System.Drawing.Font("Arial", 9F);
            this.psCheckedColumn.AppearanceCell.Options.UseFont = true;
            this.psCheckedColumn.AppearanceCell.Options.UseTextOptions = true;
            this.psCheckedColumn.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
            this.psCheckedColumn.AppearanceHeader.Font = new System.Drawing.Font("Arial", 9F);
            this.psCheckedColumn.AppearanceHeader.Options.UseFont = true;
            this.psCheckedColumn.AppearanceHeader.Options.UseTextOptions = true;
            this.psCheckedColumn.AppearanceHeader.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
            this.psCheckedColumn.Caption = "Checked";
            this.psCheckedColumn.FieldName = "Checked";
            this.psCheckedColumn.ImageOptions.Alignment = System.Drawing.StringAlignment.Center;
            this.psCheckedColumn.ImageOptions.Image = global::Hnc.Calorimeter.Client.Properties.Resources.Unchecked;
            this.psCheckedColumn.ImageOptions.ImageIndex = 0;
            this.psCheckedColumn.Name = "psCheckedColumn";
            this.psCheckedColumn.OptionsColumn.AllowGroup = DevExpress.Utils.DefaultBoolean.False;
            this.psCheckedColumn.OptionsColumn.AllowIncrementalSearch = false;
            this.psCheckedColumn.OptionsColumn.AllowMerge = DevExpress.Utils.DefaultBoolean.False;
            this.psCheckedColumn.OptionsColumn.AllowMove = false;
            this.psCheckedColumn.OptionsColumn.AllowShowHide = false;
            this.psCheckedColumn.OptionsColumn.AllowSize = false;
            this.psCheckedColumn.OptionsColumn.AllowSort = DevExpress.Utils.DefaultBoolean.False;
            this.psCheckedColumn.OptionsColumn.FixedWidth = true;
            this.psCheckedColumn.OptionsColumn.ImmediateUpdateRowPosition = DevExpress.Utils.DefaultBoolean.False;
            this.psCheckedColumn.OptionsColumn.Printable = DevExpress.Utils.DefaultBoolean.False;
            this.psCheckedColumn.OptionsColumn.ShowCaption = false;
            this.psCheckedColumn.OptionsColumn.TabStop = false;
            this.psCheckedColumn.OptionsFilter.AllowAutoFilter = false;
            this.psCheckedColumn.OptionsFilter.AllowFilter = false;
            this.psCheckedColumn.OptionsFilter.AllowFilterModeChanging = DevExpress.Utils.DefaultBoolean.False;
            this.psCheckedColumn.OptionsFilter.FilterBySortField = DevExpress.Utils.DefaultBoolean.False;
            this.psCheckedColumn.OptionsFilter.ImmediateUpdateAutoFilter = false;
            this.psCheckedColumn.OptionsFilter.ImmediateUpdatePopupDateFilterOnCheck = DevExpress.Utils.DefaultBoolean.False;
            this.psCheckedColumn.OptionsFilter.ImmediateUpdatePopupDateFilterOnDateChange = DevExpress.Utils.DefaultBoolean.False;
            this.psCheckedColumn.OptionsFilter.ImmediateUpdatePopupExcelFilter = DevExpress.Utils.DefaultBoolean.False;
            this.psCheckedColumn.OptionsFilter.ShowEmptyDateFilter = false;
            this.psCheckedColumn.Visible = true;
            this.psCheckedColumn.VisibleIndex = 0;
            this.psCheckedColumn.Width = 22;
            // 
            // psColorColumn
            // 
            this.psColorColumn.AppearanceCell.Font = new System.Drawing.Font("Arial", 9F);
            this.psColorColumn.AppearanceCell.Options.UseFont = true;
            this.psColorColumn.AppearanceCell.Options.UseTextOptions = true;
            this.psColorColumn.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
            this.psColorColumn.AppearanceHeader.Font = new System.Drawing.Font("Arial", 9F);
            this.psColorColumn.AppearanceHeader.Options.UseBackColor = true;
            this.psColorColumn.AppearanceHeader.Options.UseFont = true;
            this.psColorColumn.AppearanceHeader.Options.UseTextOptions = true;
            this.psColorColumn.AppearanceHeader.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
            this.psColorColumn.Caption = "Color";
            this.psColorColumn.ColumnEdit = this.psColorEdit;
            this.psColorColumn.FieldName = "Color";
            this.psColorColumn.Name = "psColorColumn";
            this.psColorColumn.OptionsColumn.AllowGroup = DevExpress.Utils.DefaultBoolean.False;
            this.psColorColumn.OptionsColumn.AllowIncrementalSearch = false;
            this.psColorColumn.OptionsColumn.AllowMerge = DevExpress.Utils.DefaultBoolean.False;
            this.psColorColumn.OptionsColumn.AllowMove = false;
            this.psColorColumn.OptionsColumn.AllowShowHide = false;
            this.psColorColumn.OptionsColumn.AllowSize = false;
            this.psColorColumn.OptionsColumn.AllowSort = DevExpress.Utils.DefaultBoolean.False;
            this.psColorColumn.OptionsColumn.FixedWidth = true;
            this.psColorColumn.OptionsColumn.ImmediateUpdateRowPosition = DevExpress.Utils.DefaultBoolean.False;
            this.psColorColumn.OptionsColumn.Printable = DevExpress.Utils.DefaultBoolean.False;
            this.psColorColumn.OptionsFilter.AllowAutoFilter = false;
            this.psColorColumn.OptionsFilter.AllowFilter = false;
            this.psColorColumn.Visible = true;
            this.psColorColumn.VisibleIndex = 1;
            this.psColorColumn.Width = 44;
            // 
            // psColorEdit
            // 
            this.psColorEdit.Appearance.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.psColorEdit.Appearance.Options.UseFont = true;
            this.psColorEdit.Appearance.Options.UseTextOptions = true;
            this.psColorEdit.Appearance.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
            this.psColorEdit.AppearanceDropDown.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.psColorEdit.AppearanceDropDown.Options.UseFont = true;
            this.psColorEdit.AppearanceDropDown.Options.UseTextOptions = true;
            this.psColorEdit.AppearanceDropDown.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
            this.psColorEdit.AppearanceFocused.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.psColorEdit.AppearanceFocused.Options.UseFont = true;
            this.psColorEdit.AppearanceFocused.Options.UseTextOptions = true;
            this.psColorEdit.AppearanceFocused.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
            this.psColorEdit.AutoHeight = false;
            serializableAppearanceObject1.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            serializableAppearanceObject1.Options.UseFont = true;
            serializableAppearanceObject1.Options.UseTextOptions = true;
            serializableAppearanceObject1.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
            this.psColorEdit.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
            new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo, "", -1, true, true, false, editorButtonImageOptions1, new DevExpress.Utils.KeyShortcut(System.Windows.Forms.Keys.None), serializableAppearanceObject1, serializableAppearanceObject2, serializableAppearanceObject3, serializableAppearanceObject4, "", null, null, DevExpress.Utils.ToolTipAnchor.Default)});
            this.psColorEdit.ColorAlignment = DevExpress.Utils.HorzAlignment.Center;
            this.psColorEdit.Name = "psColorEdit";
            this.psColorEdit.ShowSystemColors = false;
            // 
            // psNameColumn
            // 
            this.psNameColumn.AppearanceCell.Font = new System.Drawing.Font("Arial", 9F);
            this.psNameColumn.AppearanceCell.Options.UseFont = true;
            this.psNameColumn.AppearanceHeader.Font = new System.Drawing.Font("Arial", 9F);
            this.psNameColumn.AppearanceHeader.Options.UseFont = true;
            this.psNameColumn.Caption = "Name";
            this.psNameColumn.FieldName = "Name";
            this.psNameColumn.MaxWidth = 200;
            this.psNameColumn.MinWidth = 98;
            this.psNameColumn.Name = "psNameColumn";
            this.psNameColumn.OptionsColumn.AllowEdit = false;
            this.psNameColumn.OptionsColumn.AllowFocus = false;
            this.psNameColumn.OptionsColumn.AllowGroup = DevExpress.Utils.DefaultBoolean.False;
            this.psNameColumn.OptionsColumn.AllowIncrementalSearch = false;
            this.psNameColumn.OptionsColumn.AllowMerge = DevExpress.Utils.DefaultBoolean.False;
            this.psNameColumn.OptionsColumn.AllowMove = false;
            this.psNameColumn.OptionsColumn.AllowShowHide = false;
            this.psNameColumn.OptionsColumn.AllowSort = DevExpress.Utils.DefaultBoolean.False;
            this.psNameColumn.OptionsColumn.ImmediateUpdateRowPosition = DevExpress.Utils.DefaultBoolean.False;
            this.psNameColumn.OptionsColumn.Printable = DevExpress.Utils.DefaultBoolean.False;
            this.psNameColumn.OptionsColumn.ReadOnly = true;
            this.psNameColumn.OptionsFilter.AllowAutoFilter = false;
            this.psNameColumn.OptionsFilter.AllowFilter = false;
            this.psNameColumn.OptionsFilter.ImmediateUpdateAutoFilter = false;
            this.psNameColumn.OptionsFilter.ShowEmptyDateFilter = false;
            this.psNameColumn.Visible = true;
            this.psNameColumn.VisibleIndex = 2;
            this.psNameColumn.Width = 152;
            // 
            // psValueColumn
            // 
            this.psValueColumn.AppearanceCell.Font = new System.Drawing.Font("Arial", 9F);
            this.psValueColumn.AppearanceCell.Options.UseFont = true;
            this.psValueColumn.AppearanceCell.Options.UseTextOptions = true;
            this.psValueColumn.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Far;
            this.psValueColumn.AppearanceHeader.Font = new System.Drawing.Font("Arial", 9F);
            this.psValueColumn.AppearanceHeader.Options.UseFont = true;
            this.psValueColumn.Caption = "Value";
            this.psValueColumn.FieldName = "Value";
            this.psValueColumn.Name = "psValueColumn";
            this.psValueColumn.OptionsColumn.AllowEdit = false;
            this.psValueColumn.OptionsColumn.AllowFocus = false;
            this.psValueColumn.OptionsColumn.AllowGroup = DevExpress.Utils.DefaultBoolean.False;
            this.psValueColumn.OptionsColumn.AllowIncrementalSearch = false;
            this.psValueColumn.OptionsColumn.AllowMerge = DevExpress.Utils.DefaultBoolean.False;
            this.psValueColumn.OptionsColumn.AllowMove = false;
            this.psValueColumn.OptionsColumn.AllowShowHide = false;
            this.psValueColumn.OptionsColumn.AllowSize = false;
            this.psValueColumn.OptionsColumn.AllowSort = DevExpress.Utils.DefaultBoolean.False;
            this.psValueColumn.OptionsColumn.FixedWidth = true;
            this.psValueColumn.OptionsColumn.ImmediateUpdateRowPosition = DevExpress.Utils.DefaultBoolean.False;
            this.psValueColumn.OptionsColumn.Printable = DevExpress.Utils.DefaultBoolean.False;
            this.psValueColumn.OptionsColumn.ReadOnly = true;
            this.psValueColumn.OptionsFilter.AllowAutoFilter = false;
            this.psValueColumn.OptionsFilter.AllowFilter = false;
            this.psValueColumn.OptionsFilter.AllowFilterModeChanging = DevExpress.Utils.DefaultBoolean.False;
            this.psValueColumn.OptionsFilter.FilterBySortField = DevExpress.Utils.DefaultBoolean.False;
            this.psValueColumn.OptionsFilter.ImmediateUpdateAutoFilter = false;
            this.psValueColumn.OptionsFilter.ShowBlanksFilterItems = DevExpress.Utils.DefaultBoolean.False;
            this.psValueColumn.OptionsFilter.ShowEmptyDateFilter = false;
            this.psValueColumn.Visible = true;
            this.psValueColumn.VisibleIndex = 3;
            this.psValueColumn.Width = 60;
            // 
            // psCursorAColumn
            // 
            this.psCursorAColumn.AppearanceCell.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.psCursorAColumn.AppearanceCell.Options.UseFont = true;
            this.psCursorAColumn.AppearanceCell.Options.UseTextOptions = true;
            this.psCursorAColumn.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Far;
            this.psCursorAColumn.AppearanceHeader.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.psCursorAColumn.AppearanceHeader.Options.UseFont = true;
            this.psCursorAColumn.Caption = "A";
            this.psCursorAColumn.FieldName = "CursorA";
            this.psCursorAColumn.Name = "psCursorAColumn";
            this.psCursorAColumn.OptionsColumn.AllowEdit = false;
            this.psCursorAColumn.OptionsColumn.AllowFocus = false;
            this.psCursorAColumn.OptionsColumn.AllowGroup = DevExpress.Utils.DefaultBoolean.False;
            this.psCursorAColumn.OptionsColumn.AllowIncrementalSearch = false;
            this.psCursorAColumn.OptionsColumn.AllowMerge = DevExpress.Utils.DefaultBoolean.False;
            this.psCursorAColumn.OptionsColumn.AllowMove = false;
            this.psCursorAColumn.OptionsColumn.AllowShowHide = false;
            this.psCursorAColumn.OptionsColumn.AllowSize = false;
            this.psCursorAColumn.OptionsColumn.AllowSort = DevExpress.Utils.DefaultBoolean.False;
            this.psCursorAColumn.OptionsColumn.FixedWidth = true;
            this.psCursorAColumn.OptionsColumn.ImmediateUpdateRowPosition = DevExpress.Utils.DefaultBoolean.False;
            this.psCursorAColumn.OptionsColumn.Printable = DevExpress.Utils.DefaultBoolean.False;
            this.psCursorAColumn.OptionsColumn.ReadOnly = true;
            this.psCursorAColumn.OptionsFilter.AllowAutoFilter = false;
            this.psCursorAColumn.OptionsFilter.AllowFilter = false;
            this.psCursorAColumn.OptionsFilter.AllowFilterModeChanging = DevExpress.Utils.DefaultBoolean.False;
            this.psCursorAColumn.OptionsFilter.FilterBySortField = DevExpress.Utils.DefaultBoolean.False;
            this.psCursorAColumn.OptionsFilter.ImmediateUpdateAutoFilter = false;
            this.psCursorAColumn.OptionsFilter.ImmediateUpdatePopupDateFilterOnCheck = DevExpress.Utils.DefaultBoolean.False;
            this.psCursorAColumn.OptionsFilter.ImmediateUpdatePopupDateFilterOnDateChange = DevExpress.Utils.DefaultBoolean.False;
            this.psCursorAColumn.OptionsFilter.ImmediateUpdatePopupExcelFilter = DevExpress.Utils.DefaultBoolean.False;
            this.psCursorAColumn.OptionsFilter.ShowBlanksFilterItems = DevExpress.Utils.DefaultBoolean.False;
            this.psCursorAColumn.OptionsFilter.ShowEmptyDateFilter = false;
            this.psCursorAColumn.Visible = true;
            this.psCursorAColumn.VisibleIndex = 4;
            this.psCursorAColumn.Width = 60;
            // 
            // psCursorBColumn
            // 
            this.psCursorBColumn.AppearanceCell.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.psCursorBColumn.AppearanceCell.Options.UseFont = true;
            this.psCursorBColumn.AppearanceCell.Options.UseTextOptions = true;
            this.psCursorBColumn.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Far;
            this.psCursorBColumn.AppearanceHeader.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.psCursorBColumn.AppearanceHeader.Options.UseFont = true;
            this.psCursorBColumn.Caption = "B";
            this.psCursorBColumn.FieldName = "CursorB";
            this.psCursorBColumn.Name = "psCursorBColumn";
            this.psCursorBColumn.OptionsColumn.AllowEdit = false;
            this.psCursorBColumn.OptionsColumn.AllowFocus = false;
            this.psCursorBColumn.OptionsColumn.AllowGroup = DevExpress.Utils.DefaultBoolean.False;
            this.psCursorBColumn.OptionsColumn.AllowIncrementalSearch = false;
            this.psCursorBColumn.OptionsColumn.AllowMerge = DevExpress.Utils.DefaultBoolean.False;
            this.psCursorBColumn.OptionsColumn.AllowMove = false;
            this.psCursorBColumn.OptionsColumn.AllowShowHide = false;
            this.psCursorBColumn.OptionsColumn.AllowSize = false;
            this.psCursorBColumn.OptionsColumn.AllowSort = DevExpress.Utils.DefaultBoolean.False;
            this.psCursorBColumn.OptionsColumn.FixedWidth = true;
            this.psCursorBColumn.OptionsColumn.ImmediateUpdateRowPosition = DevExpress.Utils.DefaultBoolean.False;
            this.psCursorBColumn.OptionsColumn.Printable = DevExpress.Utils.DefaultBoolean.False;
            this.psCursorBColumn.OptionsColumn.ReadOnly = true;
            this.psCursorBColumn.OptionsFilter.AllowAutoFilter = false;
            this.psCursorBColumn.OptionsFilter.AllowFilter = false;
            this.psCursorBColumn.OptionsFilter.AllowFilterModeChanging = DevExpress.Utils.DefaultBoolean.False;
            this.psCursorBColumn.OptionsFilter.FilterBySortField = DevExpress.Utils.DefaultBoolean.False;
            this.psCursorBColumn.OptionsFilter.ImmediateUpdateAutoFilter = false;
            this.psCursorBColumn.OptionsFilter.ImmediateUpdatePopupDateFilterOnCheck = DevExpress.Utils.DefaultBoolean.False;
            this.psCursorBColumn.OptionsFilter.ImmediateUpdatePopupDateFilterOnDateChange = DevExpress.Utils.DefaultBoolean.False;
            this.psCursorBColumn.OptionsFilter.ImmediateUpdatePopupExcelFilter = DevExpress.Utils.DefaultBoolean.False;
            this.psCursorBColumn.OptionsFilter.ShowBlanksFilterItems = DevExpress.Utils.DefaultBoolean.False;
            this.psCursorBColumn.OptionsFilter.ShowEmptyDateFilter = false;
            this.psCursorBColumn.Visible = true;
            this.psCursorBColumn.VisibleIndex = 5;
            this.psCursorBColumn.Width = 60;
            // 
            // psDiffColumn
            // 
            this.psDiffColumn.AppearanceCell.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.psDiffColumn.AppearanceCell.Options.UseFont = true;
            this.psDiffColumn.AppearanceCell.Options.UseTextOptions = true;
            this.psDiffColumn.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Far;
            this.psDiffColumn.AppearanceHeader.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.psDiffColumn.AppearanceHeader.Options.UseFont = true;
            this.psDiffColumn.Caption = "A-B";
            this.psDiffColumn.FieldName = "Diff";
            this.psDiffColumn.Name = "psDiffColumn";
            this.psDiffColumn.OptionsColumn.AllowEdit = false;
            this.psDiffColumn.OptionsColumn.AllowFocus = false;
            this.psDiffColumn.OptionsColumn.AllowGroup = DevExpress.Utils.DefaultBoolean.False;
            this.psDiffColumn.OptionsColumn.AllowIncrementalSearch = false;
            this.psDiffColumn.OptionsColumn.AllowMerge = DevExpress.Utils.DefaultBoolean.False;
            this.psDiffColumn.OptionsColumn.AllowMove = false;
            this.psDiffColumn.OptionsColumn.AllowShowHide = false;
            this.psDiffColumn.OptionsColumn.AllowSize = false;
            this.psDiffColumn.OptionsColumn.AllowSort = DevExpress.Utils.DefaultBoolean.False;
            this.psDiffColumn.OptionsColumn.FixedWidth = true;
            this.psDiffColumn.OptionsColumn.ImmediateUpdateRowPosition = DevExpress.Utils.DefaultBoolean.False;
            this.psDiffColumn.OptionsColumn.Printable = DevExpress.Utils.DefaultBoolean.False;
            this.psDiffColumn.OptionsColumn.ReadOnly = true;
            this.psDiffColumn.OptionsFilter.AllowAutoFilter = false;
            this.psDiffColumn.OptionsFilter.AllowFilter = false;
            this.psDiffColumn.OptionsFilter.AllowFilterModeChanging = DevExpress.Utils.DefaultBoolean.False;
            this.psDiffColumn.OptionsFilter.FilterBySortField = DevExpress.Utils.DefaultBoolean.False;
            this.psDiffColumn.OptionsFilter.ImmediateUpdateAutoFilter = false;
            this.psDiffColumn.OptionsFilter.ImmediateUpdatePopupDateFilterOnCheck = DevExpress.Utils.DefaultBoolean.False;
            this.psDiffColumn.OptionsFilter.ImmediateUpdatePopupDateFilterOnDateChange = DevExpress.Utils.DefaultBoolean.False;
            this.psDiffColumn.OptionsFilter.ImmediateUpdatePopupExcelFilter = DevExpress.Utils.DefaultBoolean.False;
            this.psDiffColumn.OptionsFilter.ShowBlanksFilterItems = DevExpress.Utils.DefaultBoolean.False;
            this.psDiffColumn.OptionsFilter.ShowEmptyDateFilter = false;
            this.psDiffColumn.Visible = true;
            this.psDiffColumn.VisibleIndex = 6;
            this.psDiffColumn.Width = 60;
            // 
            // psMinColumn
            // 
            this.psMinColumn.AppearanceCell.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.psMinColumn.AppearanceCell.Options.UseFont = true;
            this.psMinColumn.AppearanceCell.Options.UseTextOptions = true;
            this.psMinColumn.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Far;
            this.psMinColumn.AppearanceHeader.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.psMinColumn.AppearanceHeader.Options.UseFont = true;
            this.psMinColumn.Caption = "Min";
            this.psMinColumn.FieldName = "Min";
            this.psMinColumn.Name = "psMinColumn";
            this.psMinColumn.OptionsColumn.AllowEdit = false;
            this.psMinColumn.OptionsColumn.AllowFocus = false;
            this.psMinColumn.OptionsColumn.AllowGroup = DevExpress.Utils.DefaultBoolean.False;
            this.psMinColumn.OptionsColumn.AllowIncrementalSearch = false;
            this.psMinColumn.OptionsColumn.AllowMerge = DevExpress.Utils.DefaultBoolean.False;
            this.psMinColumn.OptionsColumn.AllowMove = false;
            this.psMinColumn.OptionsColumn.AllowShowHide = false;
            this.psMinColumn.OptionsColumn.AllowSize = false;
            this.psMinColumn.OptionsColumn.AllowSort = DevExpress.Utils.DefaultBoolean.False;
            this.psMinColumn.OptionsColumn.FixedWidth = true;
            this.psMinColumn.OptionsColumn.ImmediateUpdateRowPosition = DevExpress.Utils.DefaultBoolean.False;
            this.psMinColumn.OptionsColumn.Printable = DevExpress.Utils.DefaultBoolean.False;
            this.psMinColumn.OptionsColumn.ReadOnly = true;
            this.psMinColumn.OptionsFilter.AllowAutoFilter = false;
            this.psMinColumn.OptionsFilter.AllowFilter = false;
            this.psMinColumn.OptionsFilter.AllowFilterModeChanging = DevExpress.Utils.DefaultBoolean.False;
            this.psMinColumn.OptionsFilter.FilterBySortField = DevExpress.Utils.DefaultBoolean.False;
            this.psMinColumn.OptionsFilter.ImmediateUpdateAutoFilter = false;
            this.psMinColumn.OptionsFilter.ImmediateUpdatePopupDateFilterOnCheck = DevExpress.Utils.DefaultBoolean.False;
            this.psMinColumn.OptionsFilter.ImmediateUpdatePopupDateFilterOnDateChange = DevExpress.Utils.DefaultBoolean.False;
            this.psMinColumn.OptionsFilter.ImmediateUpdatePopupExcelFilter = DevExpress.Utils.DefaultBoolean.False;
            this.psMinColumn.OptionsFilter.ShowBlanksFilterItems = DevExpress.Utils.DefaultBoolean.False;
            this.psMinColumn.OptionsFilter.ShowEmptyDateFilter = false;
            this.psMinColumn.Visible = true;
            this.psMinColumn.VisibleIndex = 7;
            this.psMinColumn.Width = 60;
            // 
            // psMaxColumn
            // 
            this.psMaxColumn.AppearanceCell.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.psMaxColumn.AppearanceCell.Options.UseFont = true;
            this.psMaxColumn.AppearanceCell.Options.UseTextOptions = true;
            this.psMaxColumn.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Far;
            this.psMaxColumn.AppearanceHeader.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.psMaxColumn.AppearanceHeader.Options.UseFont = true;
            this.psMaxColumn.Caption = "Max";
            this.psMaxColumn.FieldName = "Max";
            this.psMaxColumn.Name = "psMaxColumn";
            this.psMaxColumn.OptionsColumn.AllowEdit = false;
            this.psMaxColumn.OptionsColumn.AllowFocus = false;
            this.psMaxColumn.OptionsColumn.AllowGroup = DevExpress.Utils.DefaultBoolean.False;
            this.psMaxColumn.OptionsColumn.AllowIncrementalSearch = false;
            this.psMaxColumn.OptionsColumn.AllowMerge = DevExpress.Utils.DefaultBoolean.False;
            this.psMaxColumn.OptionsColumn.AllowMove = false;
            this.psMaxColumn.OptionsColumn.AllowShowHide = false;
            this.psMaxColumn.OptionsColumn.AllowSize = false;
            this.psMaxColumn.OptionsColumn.AllowSort = DevExpress.Utils.DefaultBoolean.False;
            this.psMaxColumn.OptionsColumn.FixedWidth = true;
            this.psMaxColumn.OptionsColumn.ImmediateUpdateRowPosition = DevExpress.Utils.DefaultBoolean.False;
            this.psMaxColumn.OptionsColumn.Printable = DevExpress.Utils.DefaultBoolean.False;
            this.psMaxColumn.OptionsColumn.ReadOnly = true;
            this.psMaxColumn.OptionsFilter.AllowAutoFilter = false;
            this.psMaxColumn.OptionsFilter.AllowFilter = false;
            this.psMaxColumn.OptionsFilter.AllowFilterModeChanging = DevExpress.Utils.DefaultBoolean.False;
            this.psMaxColumn.OptionsFilter.FilterBySortField = DevExpress.Utils.DefaultBoolean.False;
            this.psMaxColumn.OptionsFilter.ImmediateUpdateAutoFilter = false;
            this.psMaxColumn.OptionsFilter.ImmediateUpdatePopupDateFilterOnCheck = DevExpress.Utils.DefaultBoolean.False;
            this.psMaxColumn.OptionsFilter.ImmediateUpdatePopupDateFilterOnDateChange = DevExpress.Utils.DefaultBoolean.False;
            this.psMaxColumn.OptionsFilter.ImmediateUpdatePopupExcelFilter = DevExpress.Utils.DefaultBoolean.False;
            this.psMaxColumn.OptionsFilter.ShowBlanksFilterItems = DevExpress.Utils.DefaultBoolean.False;
            this.psMaxColumn.OptionsFilter.ShowEmptyDateFilter = false;
            this.psMaxColumn.Visible = true;
            this.psMaxColumn.VisibleIndex = 8;
            this.psMaxColumn.Width = 60;
            // 
            // psAvgColumn
            // 
            this.psAvgColumn.AppearanceCell.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.psAvgColumn.AppearanceCell.Options.UseFont = true;
            this.psAvgColumn.AppearanceCell.Options.UseTextOptions = true;
            this.psAvgColumn.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Far;
            this.psAvgColumn.AppearanceHeader.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.psAvgColumn.AppearanceHeader.Options.UseFont = true;
            this.psAvgColumn.Caption = "Avg";
            this.psAvgColumn.FieldName = "Avg";
            this.psAvgColumn.Name = "psAvgColumn";
            this.psAvgColumn.OptionsColumn.AllowEdit = false;
            this.psAvgColumn.OptionsColumn.AllowFocus = false;
            this.psAvgColumn.OptionsColumn.AllowGroup = DevExpress.Utils.DefaultBoolean.False;
            this.psAvgColumn.OptionsColumn.AllowIncrementalSearch = false;
            this.psAvgColumn.OptionsColumn.AllowMerge = DevExpress.Utils.DefaultBoolean.False;
            this.psAvgColumn.OptionsColumn.AllowMove = false;
            this.psAvgColumn.OptionsColumn.AllowShowHide = false;
            this.psAvgColumn.OptionsColumn.AllowSize = false;
            this.psAvgColumn.OptionsColumn.AllowSort = DevExpress.Utils.DefaultBoolean.False;
            this.psAvgColumn.OptionsColumn.FixedWidth = true;
            this.psAvgColumn.OptionsColumn.ImmediateUpdateRowPosition = DevExpress.Utils.DefaultBoolean.False;
            this.psAvgColumn.OptionsColumn.Printable = DevExpress.Utils.DefaultBoolean.False;
            this.psAvgColumn.OptionsColumn.ReadOnly = true;
            this.psAvgColumn.OptionsFilter.AllowAutoFilter = false;
            this.psAvgColumn.OptionsFilter.AllowFilter = false;
            this.psAvgColumn.OptionsFilter.AllowFilterModeChanging = DevExpress.Utils.DefaultBoolean.False;
            this.psAvgColumn.OptionsFilter.FilterBySortField = DevExpress.Utils.DefaultBoolean.False;
            this.psAvgColumn.OptionsFilter.ImmediateUpdateAutoFilter = false;
            this.psAvgColumn.OptionsFilter.ImmediateUpdatePopupDateFilterOnCheck = DevExpress.Utils.DefaultBoolean.False;
            this.psAvgColumn.OptionsFilter.ImmediateUpdatePopupDateFilterOnDateChange = DevExpress.Utils.DefaultBoolean.False;
            this.psAvgColumn.OptionsFilter.ImmediateUpdatePopupExcelFilter = DevExpress.Utils.DefaultBoolean.False;
            this.psAvgColumn.OptionsFilter.ShowBlanksFilterItems = DevExpress.Utils.DefaultBoolean.False;
            this.psAvgColumn.OptionsFilter.ShowEmptyDateFilter = false;
            this.psAvgColumn.Visible = true;
            this.psAvgColumn.VisibleIndex = 9;
            this.psAvgColumn.Width = 60;
            // 
            // psUnitColumn
            // 
            this.psUnitColumn.AppearanceCell.Font = new System.Drawing.Font("Arial", 9F);
            this.psUnitColumn.AppearanceCell.Options.UseFont = true;
            this.psUnitColumn.AppearanceHeader.Font = new System.Drawing.Font("Arial", 9F);
            this.psUnitColumn.AppearanceHeader.Options.UseFont = true;
            this.psUnitColumn.Caption = "Unit";
            this.psUnitColumn.FieldName = "UnitFrom";
            this.psUnitColumn.Name = "psUnitColumn";
            this.psUnitColumn.OptionsColumn.AllowEdit = false;
            this.psUnitColumn.OptionsColumn.AllowFocus = false;
            this.psUnitColumn.OptionsColumn.AllowGroup = DevExpress.Utils.DefaultBoolean.False;
            this.psUnitColumn.OptionsColumn.AllowIncrementalSearch = false;
            this.psUnitColumn.OptionsColumn.AllowMerge = DevExpress.Utils.DefaultBoolean.False;
            this.psUnitColumn.OptionsColumn.AllowMove = false;
            this.psUnitColumn.OptionsColumn.AllowShowHide = false;
            this.psUnitColumn.OptionsColumn.AllowSize = false;
            this.psUnitColumn.OptionsColumn.AllowSort = DevExpress.Utils.DefaultBoolean.False;
            this.psUnitColumn.OptionsColumn.FixedWidth = true;
            this.psUnitColumn.OptionsColumn.ImmediateUpdateRowPosition = DevExpress.Utils.DefaultBoolean.False;
            this.psUnitColumn.OptionsColumn.Printable = DevExpress.Utils.DefaultBoolean.False;
            this.psUnitColumn.OptionsColumn.ReadOnly = true;
            this.psUnitColumn.OptionsFilter.AllowAutoFilter = false;
            this.psUnitColumn.OptionsFilter.AllowFilter = false;
            this.psUnitColumn.OptionsFilter.AllowFilterModeChanging = DevExpress.Utils.DefaultBoolean.False;
            this.psUnitColumn.OptionsFilter.FilterBySortField = DevExpress.Utils.DefaultBoolean.False;
            this.psUnitColumn.OptionsFilter.ImmediateUpdateAutoFilter = false;
            this.psUnitColumn.OptionsFilter.ShowBlanksFilterItems = DevExpress.Utils.DefaultBoolean.False;
            this.psUnitColumn.OptionsFilter.ShowEmptyDateFilter = false;
            this.psUnitColumn.Visible = true;
            this.psUnitColumn.VisibleIndex = 10;
            this.psUnitColumn.Width = 66;
            // 
            // yAxesSettingButton
            // 
            this.yAxesSettingButton.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
            this.yAxesSettingButton.Location = new System.Drawing.Point(206, 2);
            this.yAxesSettingButton.Name = "yAxesSettingButton";
            this.yAxesSettingButton.Padding = new System.Windows.Forms.Padding(2, 0, 0, 0);
            this.yAxesSettingButton.Size = new System.Drawing.Size(96, 26);
            this.yAxesSettingButton.TabIndex = 77;
            this.yAxesSettingButton.TabStop = false;
            this.yAxesSettingButton.Text = "Setting";
            this.yAxesSettingButton.UseVisualStyleBackColor = true;
            this.yAxesSettingButton.Click += new System.EventHandler(this.yAxesSettingButton_Click);
            // 
            // hideUncheckedCheck
            // 
            this.hideUncheckedCheck.AutoSize = true;
            this.hideUncheckedCheck.Location = new System.Drawing.Point(6, 6);
            this.hideUncheckedCheck.Name = "hideUncheckedCheck";
            this.hideUncheckedCheck.Size = new System.Drawing.Size(145, 19);
            this.hideUncheckedCheck.TabIndex = 76;
            this.hideUncheckedCheck.TabStop = false;
            this.hideUncheckedCheck.Text = "Hide unchecked rows";
            this.hideUncheckedCheck.UseVisualStyleBackColor = true;
            this.hideUncheckedCheck.CheckedChanged += new System.EventHandler(this.hideUncheckedCheck_CheckedChanged);
            // 
            // resetButton
            // 
            this.resetButton.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
            this.resetButton.Location = new System.Drawing.Point(1287, 2);
            this.resetButton.Name = "resetButton";
            this.resetButton.Padding = new System.Windows.Forms.Padding(2, 0, 0, 0);
            this.resetButton.Size = new System.Drawing.Size(96, 26);
            this.resetButton.TabIndex = 84;
            this.resetButton.TabStop = false;
            this.resetButton.Text = "Reset";
            this.resetButton.UseVisualStyleBackColor = true;
            this.resetButton.Click += new System.EventHandler(this.resetButton_Click);
            // 
            // undoButton
            // 
            this.undoButton.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
            this.undoButton.Location = new System.Drawing.Point(1189, 2);
            this.undoButton.Name = "undoButton";
            this.undoButton.Padding = new System.Windows.Forms.Padding(2, 0, 0, 0);
            this.undoButton.Size = new System.Drawing.Size(96, 26);
            this.undoButton.TabIndex = 83;
            this.undoButton.TabStop = false;
            this.undoButton.Text = "Undo";
            this.undoButton.UseVisualStyleBackColor = true;
            this.undoButton.Click += new System.EventHandler(this.undoButton_Click);
            // 
            // stackButton
            // 
            this.stackButton.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
            this.stackButton.Location = new System.Drawing.Point(1091, 2);
            this.stackButton.Name = "stackButton";
            this.stackButton.Padding = new System.Windows.Forms.Padding(2, 0, 0, 0);
            this.stackButton.Size = new System.Drawing.Size(96, 26);
            this.stackButton.TabIndex = 82;
            this.stackButton.TabStop = false;
            this.stackButton.Text = "Stack";
            this.stackButton.UseVisualStyleBackColor = true;
            this.stackButton.Click += new System.EventHandler(this.stackButton_Click);
            // 
            // autosetButton
            // 
            this.autosetButton.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
            this.autosetButton.Location = new System.Drawing.Point(993, 2);
            this.autosetButton.Name = "autosetButton";
            this.autosetButton.Padding = new System.Windows.Forms.Padding(2, 0, 0, 0);
            this.autosetButton.Size = new System.Drawing.Size(96, 26);
            this.autosetButton.TabIndex = 81;
            this.autosetButton.TabStop = false;
            this.autosetButton.Text = "Auto Set";
            this.autosetButton.UseVisualStyleBackColor = true;
            this.autosetButton.Click += new System.EventHandler(this.autosetButton_Click);
            // 
            // graphPanel
            // 
            this.graphPanel.BackColor = System.Drawing.SystemColors.Control;
            this.graphPanel.BevelInner = Ulee.Controls.EUlBevelStyle.None;
            this.graphPanel.BevelOuter = Ulee.Controls.EUlBevelStyle.Single;
            this.graphPanel.Controls.Add(this.viewGraph);
            this.graphPanel.InnerColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.graphPanel.InnerColor2 = System.Drawing.Color.White;
            this.graphPanel.Location = new System.Drawing.Point(404, 30);
            this.graphPanel.Name = "graphPanel";
            this.graphPanel.OuterColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.graphPanel.OuterColor2 = System.Drawing.Color.White;
            this.graphPanel.Size = new System.Drawing.Size(978, 829);
            this.graphPanel.Spacing = 0;
            this.graphPanel.TabIndex = 80;
            this.graphPanel.TextHAlign = Ulee.Controls.EUlHoriAlign.Center;
            this.graphPanel.TextVAlign = Ulee.Controls.EUlVertAlign.Middle;
            // 
            // viewGraph
            // 
            this.viewGraph.BaseTime = 1000F;
            this.viewGraph.BlockLength = 600;
            ulDoubleBufferedSeriesCollection1.BaseTime = 1000F;
            ulDoubleBufferedSeriesCollection1.BlockLength = 600;
            this.viewGraph.BufferedSeries = ulDoubleBufferedSeriesCollection1;
            this.viewGraph.CrosshairEnabled = DevExpress.Utils.DefaultBoolean.False;
            this.viewGraph.Dock = System.Windows.Forms.DockStyle.Fill;
            this.viewGraph.Legend.Name = "Default Legend";
            this.viewGraph.Legend.Visibility = DevExpress.Utils.DefaultBoolean.False;
            this.viewGraph.LegendFont = new System.Drawing.Font("Arial", 8F);
            this.viewGraph.Location = new System.Drawing.Point(0, 0);
            this.viewGraph.Mode = Ulee.Chart.EChartMode.Static;
            this.viewGraph.Name = "viewGraph";
            this.viewGraph.SeriesSerializable = new DevExpress.XtraCharts.Series[0];
            this.viewGraph.Size = new System.Drawing.Size(978, 829);
            this.viewGraph.TabIndex = 0;
            this.viewGraph.VisualRangeChanging = true;
            // 
            // imageList
            // 
            this.imageList.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imageList.ImageStream")));
            this.imageList.TransparentColor = System.Drawing.Color.Transparent;
            this.imageList.Images.SetKeyName(0, "Unchecked.png");
            this.imageList.Images.SetKeyName(1, "Checked.png");
            // 
            // graphPauseLed
            // 
            this.graphPauseLed.Active = false;
            this.graphPauseLed.BackColor = System.Drawing.SystemColors.Control;
            this.graphPauseLed.BevelInner = Ulee.Controls.EUlBevelStyle.None;
            this.graphPauseLed.BevelOuter = Ulee.Controls.EUlBevelStyle.None;
            this.graphPauseLed.Gap = 0;
            this.graphPauseLed.InnerColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.graphPauseLed.InnerColor2 = System.Drawing.SystemColors.Control;
            this.graphPauseLed.Location = new System.Drawing.Point(803, 7);
            this.graphPauseLed.Name = "graphPauseLed";
            this.graphPauseLed.OffColor = System.Drawing.Color.Black;
            this.graphPauseLed.OnColor = System.Drawing.Color.Red;
            this.graphPauseLed.OuterColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.graphPauseLed.OuterColor2 = System.Drawing.SystemColors.Control;
            this.graphPauseLed.Size = new System.Drawing.Size(16, 16);
            this.graphPauseLed.Spacing = 0;
            this.graphPauseLed.TabIndex = 90;
            this.graphPauseLed.TextHAlign = Ulee.Controls.EUlHoriAlign.Center;
            this.graphPauseLed.TextVAlign = Ulee.Controls.EUlVertAlign.Middle;
            this.graphPauseLed.Type = Ulee.Controls.EUlLedType.Circle;
            // 
            // graphPauseButton
            // 
            this.graphPauseButton.BackColor = System.Drawing.SystemColors.Control;
            this.graphPauseButton.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
            this.graphPauseButton.Location = new System.Drawing.Point(797, 2);
            this.graphPauseButton.Name = "graphPauseButton";
            this.graphPauseButton.Padding = new System.Windows.Forms.Padding(2, 0, 0, 0);
            this.graphPauseButton.Size = new System.Drawing.Size(96, 26);
            this.graphPauseButton.TabIndex = 89;
            this.graphPauseButton.Text = "Pause";
            this.graphPauseButton.UseVisualStyleBackColor = true;
            this.graphPauseButton.Click += new System.EventHandler(this.graphPauseButton_Click);
            // 
            // zoomAxisCombo
            // 
            this.zoomAxisCombo.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
            this.zoomAxisCombo.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.zoomAxisCombo.FormattingEnabled = true;
            this.zoomAxisCombo.ItemHeight = 15;
            this.zoomAxisCombo.Items.AddRange(new object[] {
            "Both",
            "X-Axis",
            "Y-Axis"});
            this.zoomAxisCombo.Location = new System.Drawing.Point(444, 3);
            this.zoomAxisCombo.Name = "zoomAxisCombo";
            this.zoomAxisCombo.Size = new System.Drawing.Size(68, 23);
            this.zoomAxisCombo.TabIndex = 91;
            this.zoomAxisCombo.SelectedIndexChanged += new System.EventHandler(this.zoomAxisCombo_SelectedIndexChanged);
            // 
            // label25
            // 
            this.label25.Location = new System.Drawing.Point(403, 4);
            this.label25.Name = "label25";
            this.label25.Size = new System.Drawing.Size(39, 22);
            this.label25.TabIndex = 92;
            this.label25.Text = "Zoom";
            this.label25.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
            // 
            // cursorButton
            // 
            this.cursorButton.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
            this.cursorButton.Location = new System.Drawing.Point(895, 2);
            this.cursorButton.Name = "cursorButton";
            this.cursorButton.Padding = new System.Windows.Forms.Padding(2, 0, 0, 0);
            this.cursorButton.Size = new System.Drawing.Size(96, 26);
            this.cursorButton.TabIndex = 93;
            this.cursorButton.TabStop = false;
            this.cursorButton.Text = "Cursor";
            this.cursorButton.UseVisualStyleBackColor = true;
            this.cursorButton.Click += new System.EventHandler(this.cursorButton_Click);
            // 
            // CtrlTestGraphPanel
            // 
            this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);
            this.Name = "CtrlTestGraphPanel";
            this.Size = new System.Drawing.Size(1384, 859);
            this.bgPanel.ResumeLayout(false);
            this.bgPanel.PerformLayout();
            this.plotPanel.ResumeLayout(false);
            ((System.ComponentModel.ISupportInitialize)(this.plotSeriesGrid)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.plotSeriesGridView)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.psColorEdit)).EndInit();
            this.graphPanel.ResumeLayout(false);
            ((System.ComponentModel.ISupportInitialize)(this.viewGraph)).EndInit();
            this.ResumeLayout(false);
            this.PerformLayout();

        }

        #endregion

        private System.Windows.Forms.Button applyButton;
        private Ulee.Controls.UlPanel plotPanel;
        private Ulee.Controls.UlPanel ulPanel6;
        private DevExpress.XtraGrid.GridControl plotSeriesGrid;
        private DevExpress.XtraGrid.Views.Grid.GridView plotSeriesGridView;
        private DevExpress.XtraGrid.Columns.GridColumn psRecNoColumn;
        private DevExpress.XtraGrid.Columns.GridColumn psCheckedColumn;
        private DevExpress.XtraGrid.Columns.GridColumn psColorColumn;
        private DevExpress.XtraEditors.Repository.RepositoryItemColorEdit psColorEdit;
        private DevExpress.XtraGrid.Columns.GridColumn psNameColumn;
        private DevExpress.XtraGrid.Columns.GridColumn psValueColumn;
        private DevExpress.XtraGrid.Columns.GridColumn psUnitColumn;
        private System.Windows.Forms.Button yAxesSettingButton;
        private System.Windows.Forms.CheckBox hideUncheckedCheck;
        private System.Windows.Forms.Button resetButton;
        private System.Windows.Forms.Button undoButton;
        private System.Windows.Forms.Button stackButton;
        private System.Windows.Forms.Button autosetButton;
        private Ulee.Controls.UlPanel graphPanel;
        private Ulee.Chart.UlDoubleBufferedLineChart viewGraph;
        private System.Windows.Forms.ImageList imageList;
        private Ulee.Controls.UlLed graphPauseLed;
        private System.Windows.Forms.Button graphPauseButton;
        public System.Windows.Forms.ComboBox zoomAxisCombo;
        private System.Windows.Forms.Label label25;
        private System.Windows.Forms.Button cursorButton;
        private DevExpress.XtraGrid.Columns.GridColumn psCursorAColumn;
        private DevExpress.XtraGrid.Columns.GridColumn psCursorBColumn;
        private DevExpress.XtraGrid.Columns.GridColumn psDiffColumn;
        private DevExpress.XtraGrid.Columns.GridColumn psMinColumn;
        private DevExpress.XtraGrid.Columns.GridColumn psMaxColumn;
        private DevExpress.XtraGrid.Columns.GridColumn psAvgColumn;
    }
}
<file_sep>﻿namespace Hnc.Calorimeter.Client
{
    partial class CtrlTestMeas
    {
        /// <summary> 
        /// Required designer variable.
        /// </summary>
        private System.ComponentModel.IContainer components = null;

        /// <summary> 
        /// Clean up any resources being used.
        /// </summary>
        /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
        protected override void Dispose(bool disposing)
        {
            if (disposing && (components != null))
            {
                components.Dispose();
            }
            base.Dispose(disposing);
        }

        #region Component Designer generated code

        /// <summary> 
        /// Required method for Designer support - do not modify 
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(CtrlTestMeas));
            this.ulPanel4 = new Ulee.Controls.UlPanel();
            this.totalRatedGrid = new DevExpress.XtraGrid.GridControl();
            this.totalRatedGridView = new DevExpress.XtraGrid.Views.Grid.GridView();
            this.trgNameColumn = new DevExpress.XtraGrid.Columns.GridColumn();
            this.trgValueColumn = new DevExpress.XtraGrid.Columns.GridColumn();
            this.trgUnitColumn = new DevExpress.XtraGrid.Columns.GridColumn();
            this.ulPanel6 = new Ulee.Controls.UlPanel();
            this.ulPanel1 = new Ulee.Controls.UlPanel();
            this.runStateGrid = new DevExpress.XtraGrid.GridControl();
            this.runStateGridView = new DevExpress.XtraGrid.Views.Grid.GridView();
            this.rsgNameColumn = new DevExpress.XtraGrid.Columns.GridColumn();
            this.rsgValueColumn = new DevExpress.XtraGrid.Columns.GridColumn();
            this.label38 = new System.Windows.Forms.Label();
            this.label37 = new System.Windows.Forms.Label();
            this.label36 = new System.Windows.Forms.Label();
            this.label35 = new System.Windows.Forms.Label();
            this.label32 = new System.Windows.Forms.Label();
            this.label31 = new System.Windows.Forms.Label();
            this.scheduleProgress = new DevExpress.XtraEditors.ProgressBarControl();
            this.repeatProgress = new DevExpress.XtraEditors.ProgressBarControl();
            this.noOfSteadyProgress = new DevExpress.XtraEditors.ProgressBarControl();
            this.integrationProgress = new DevExpress.XtraEditors.ProgressBarControl();
            this.judgementProgress = new DevExpress.XtraEditors.ProgressBarControl();
            this.preparationProgress = new DevExpress.XtraEditors.ProgressBarControl();
            this.ulPanel2 = new Ulee.Controls.UlPanel();
            this.testMeasTab = new System.Windows.Forms.TabControl();
            this.measPage = new System.Windows.Forms.TabPage();
            this.measTab = new System.Windows.Forms.TabControl();
            this.meas1Page = new System.Windows.Forms.TabPage();
            this.ulPanel5 = new Ulee.Controls.UlPanel();
            this.methodGrid = new DevExpress.XtraGrid.GridControl();
            this.methodGridView = new DevExpress.XtraGrid.Views.Grid.GridView();
            this.mgNameColumn = new DevExpress.XtraGrid.Columns.GridColumn();
            this.meValueColumn = new DevExpress.XtraGrid.Columns.GridColumn();
            this.ulPanel7 = new Ulee.Controls.UlPanel();
            this.ulPanel3 = new Ulee.Controls.UlPanel();
            this.indoor11Grid = new DevExpress.XtraGrid.GridControl();
            this.indoor11GridView = new DevExpress.XtraGrid.Views.Grid.GridView();
            this.ID11NameColumn = new DevExpress.XtraGrid.Columns.GridColumn();
            this.ID11ValueColumn = new DevExpress.XtraGrid.Columns.GridColumn();
            this.ID11UnitColumn = new DevExpress.XtraGrid.Columns.GridColumn();
            this.ulPanel17 = new Ulee.Controls.UlPanel();
            this.ulPanel79 = new Ulee.Controls.UlPanel();
            this.outdoorGrid = new DevExpress.XtraGrid.GridControl();
            this.outdoorGridView = new DevExpress.XtraGrid.Views.Grid.GridView();
            this.ODNameColumn = new DevExpress.XtraGrid.Columns.GridColumn();
            this.ODValueColumn = new DevExpress.XtraGrid.Columns.GridColumn();
            this.ODUnitColumn = new DevExpress.XtraGrid.Columns.GridColumn();
            this.ulPanel83 = new Ulee.Controls.UlPanel();
            this.ulPanel59 = new Ulee.Controls.UlPanel();
            this.ratedGrid = new DevExpress.XtraGrid.GridControl();
            this.ratedGridView = new DevExpress.XtraGrid.Views.Grid.GridView();
            this.rgNameColumn = new DevExpress.XtraGrid.Columns.GridColumn();
            this.rgValueColumn = new DevExpress.XtraGrid.Columns.GridColumn();
            this.rgUnitColumn = new DevExpress.XtraGrid.Columns.GridColumn();
            this.ulPanel60 = new Ulee.Controls.UlPanel();
            this.ulPanel69 = new Ulee.Controls.UlPanel();
            this.indoor22Grid = new DevExpress.XtraGrid.GridControl();
            this.indoor22GridView = new DevExpress.XtraGrid.Views.Grid.GridView();
            this.ID22NameColumn = new DevExpress.XtraGrid.Columns.GridColumn();
            this.ID22ValueColumn = new DevExpress.XtraGrid.Columns.GridColumn();
            this.ID22UnitColumn = new DevExpress.XtraGrid.Columns.GridColumn();
            this.ulPanel73 = new Ulee.Controls.UlPanel();
            this.ulPanel74 = new Ulee.Controls.UlPanel();
            this.indoor21Grid = new DevExpress.XtraGrid.GridControl();
            this.indoor21GridView = new DevExpress.XtraGrid.Views.Grid.GridView();
            this.ID21NameColumn = new DevExpress.XtraGrid.Columns.GridColumn();
            this.ID21ValueColumn = new DevExpress.XtraGrid.Columns.GridColumn();
            this.ID21UnitColumn = new DevExpress.XtraGrid.Columns.GridColumn();
            this.ulPanel78 = new Ulee.Controls.UlPanel();
            this.ulPanel64 = new Ulee.Controls.UlPanel();
            this.indoor12Grid = new DevExpress.XtraGrid.GridControl();
            this.indoor12GridView = new DevExpress.XtraGrid.Views.Grid.GridView();
            this.ID12NameColumn = new DevExpress.XtraGrid.Columns.GridColumn();
            this.ID12ValueColumn = new DevExpress.XtraGrid.Columns.GridColumn();
            this.ID12UnitColumn = new DevExpress.XtraGrid.Columns.GridColumn();
            this.ulPanel68 = new Ulee.Controls.UlPanel();
            this.ulPanel39 = new Ulee.Controls.UlPanel();
            this.noteGrid = new DevExpress.XtraGrid.GridControl();
            this.noteGridView = new DevExpress.XtraGrid.Views.Grid.GridView();
            this.noteNameColumn = new DevExpress.XtraGrid.Columns.GridColumn();
            this.noteValueColumn = new DevExpress.XtraGrid.Columns.GridColumn();
            this.ulPanel40 = new Ulee.Controls.UlPanel();
            this.ulPanel37 = new Ulee.Controls.UlPanel();
            this.outsideGrid = new DevExpress.XtraGrid.GridControl();
            this.outsideGridView = new DevExpress.XtraGrid.Views.Grid.GridView();
            this.osNameColumn = new DevExpress.XtraGrid.Columns.GridColumn();
            this.osValueColumn = new DevExpress.XtraGrid.Columns.GridColumn();
            this.osUnitColumn = new DevExpress.XtraGrid.Columns.GridColumn();
            this.ulPanel38 = new Ulee.Controls.UlPanel();
            this.ulPanel15 = new Ulee.Controls.UlPanel();
            this.asNozzleGrid = new DevExpress.XtraGrid.GridControl();
            this.asNozzleGridView = new DevExpress.XtraGrid.Views.BandedGrid.AdvBandedGridView();
            this.asNozzleGenaralBand = new DevExpress.XtraGrid.Views.BandedGrid.GridBand();
            this.asNozzleNameColumn = new DevExpress.XtraGrid.Views.BandedGrid.BandedGridColumn();
            this.asNozzleID11Band = new DevExpress.XtraGrid.Views.BandedGrid.GridBand();
            this.asNozzleID11DiameterColumn = new DevExpress.XtraGrid.Views.BandedGrid.BandedGridColumn();
            this.asNozzleID11CheckColumn = new DevExpress.XtraGrid.Views.BandedGrid.BandedGridColumn();
            this.asNozzleCheckEdit = new DevExpress.XtraEditors.Repository.RepositoryItemCheckEdit();
            this.asNozzleID12Band = new DevExpress.XtraGrid.Views.BandedGrid.GridBand();
            this.asNozzleID12DiameterColumn = new DevExpress.XtraGrid.Views.BandedGrid.BandedGridColumn();
            this.asNozzleID12CheckColumn = new DevExpress.XtraGrid.Views.BandedGrid.BandedGridColumn();
            this.asNozzleID21Band = new DevExpress.XtraGrid.Views.BandedGrid.GridBand();
            this.asNozzleID21DiameterColumn = new DevExpress.XtraGrid.Views.BandedGrid.BandedGridColumn();
            this.asNozzleID21CheckColumn = new DevExpress.XtraGrid.Views.BandedGrid.BandedGridColumn();
            this.asNozzleID22Band = new DevExpress.XtraGrid.Views.BandedGrid.GridBand();
            this.asNozzleID22DiameterColumn = new DevExpress.XtraGrid.Views.BandedGrid.BandedGridColumn();
            this.asNozzleID22CheckColumn = new DevExpress.XtraGrid.Views.BandedGrid.BandedGridColumn();
            this.airSideGrid = new DevExpress.XtraGrid.GridControl();
            this.airSideGridView = new DevExpress.XtraGrid.Views.Grid.GridView();
            this.agNameColumn = new DevExpress.XtraGrid.Columns.GridColumn();
            this.agID11Column = new DevExpress.XtraGrid.Columns.GridColumn();
            this.agID12Column = new DevExpress.XtraGrid.Columns.GridColumn();
            this.agID21Column = new DevExpress.XtraGrid.Columns.GridColumn();
            this.sgID22Column = new DevExpress.XtraGrid.Columns.GridColumn();
            this.sgUnitColumn = new DevExpress.XtraGrid.Columns.GridColumn();
            this.ulPanel16 = new Ulee.Controls.UlPanel();
            this.meas2Page = new System.Windows.Forms.TabPage();
            this.ulPanel85 = new Ulee.Controls.UlPanel();
            this.pressureGrid = new DevExpress.XtraGrid.GridControl();
            this.pressureGridView = new DevExpress.XtraGrid.Views.Grid.GridView();
            this.pressureNoColumn = new DevExpress.XtraGrid.Columns.GridColumn();
            this.pressureNameColumn = new DevExpress.XtraGrid.Columns.GridColumn();
            this.pressureValueColumn = new DevExpress.XtraGrid.Columns.GridColumn();
            this.pressureUnitColumn = new DevExpress.XtraGrid.Columns.GridColumn();
            this.ulPanel86 = new Ulee.Controls.UlPanel();
            this.ulPanel84 = new Ulee.Controls.UlPanel();
            this.tc3Grid = new DevExpress.XtraGrid.GridControl();
            this.tc3GridView = new DevExpress.XtraGrid.Views.Grid.GridView();
            this.tc3NoColumn = new DevExpress.XtraGrid.Columns.GridColumn();
            this.tc3NameColumn = new DevExpress.XtraGrid.Columns.GridColumn();
            this.tc3ValueColumn = new DevExpress.XtraGrid.Columns.GridColumn();
            this.tc3UnitColumn = new DevExpress.XtraGrid.Columns.GridColumn();
            this.tc2Grid = new DevExpress.XtraGrid.GridControl();
            this.tc2GridView = new DevExpress.XtraGrid.Views.Grid.GridView();
            this.tc2NoColumn = new DevExpress.XtraGrid.Columns.GridColumn();
            this.tc2NameColumn = new DevExpress.XtraGrid.Columns.GridColumn();
            this.tc2ValueColumn = new DevExpress.XtraGrid.Columns.GridColumn();
            this.tc2UnitColumn = new DevExpress.XtraGrid.Columns.GridColumn();
            this.tc1Grid = new DevExpress.XtraGrid.GridControl();
            this.tc1GridView = new DevExpress.XtraGrid.Views.Grid.GridView();
            this.tc1NoColumn = new DevExpress.XtraGrid.Columns.GridColumn();
            this.tc1NameColumn = new DevExpress.XtraGrid.Columns.GridColumn();
            this.tc1ValueColumn = new DevExpress.XtraGrid.Columns.GridColumn();
            this.tc1UnitColumn = new DevExpress.XtraGrid.Columns.GridColumn();
            this.ulPanel95 = new Ulee.Controls.UlPanel();
            this.reportPage = new System.Windows.Forms.TabPage();
            this.reportSheet = new DevExpress.XtraSpreadsheet.SpreadsheetControl();
            this.graphPage = new System.Windows.Forms.TabPage();
            this.graphTab = new System.Windows.Forms.TabControl();
            this.graph1Page = new System.Windows.Forms.TabPage();
            this.graph2Page = new System.Windows.Forms.TabPage();
            this.graph3Page = new System.Windows.Forms.TabPage();
            this.graph4Page = new System.Windows.Forms.TabPage();
            this.graph5Page = new System.Windows.Forms.TabPage();
            this.graph6Page = new System.Windows.Forms.TabPage();
            this.bgPanel.SuspendLayout();
            this.ulPanel4.SuspendLayout();
            ((System.ComponentModel.ISupportInitialize)(this.totalRatedGrid)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.totalRatedGridView)).BeginInit();
            this.ulPanel1.SuspendLayout();
            ((System.ComponentModel.ISupportInitialize)(this.runStateGrid)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.runStateGridView)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.scheduleProgress.Properties)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.repeatProgress.Properties)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.noOfSteadyProgress.Properties)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.integrationProgress.Properties)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.judgementProgress.Properties)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.preparationProgress.Properties)).BeginInit();
            this.testMeasTab.SuspendLayout();
            this.measPage.SuspendLayout();
            this.measTab.SuspendLayout();
            this.meas1Page.SuspendLayout();
            this.ulPanel5.SuspendLayout();
            ((System.ComponentModel.ISupportInitialize)(this.methodGrid)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.methodGridView)).BeginInit();
            this.ulPanel3.SuspendLayout();
            ((System.ComponentModel.ISupportInitialize)(this.indoor11Grid)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.indoor11GridView)).BeginInit();
            this.ulPanel79.SuspendLayout();
            ((System.ComponentModel.ISupportInitialize)(this.outdoorGrid)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.outdoorGridView)).BeginInit();
            this.ulPanel59.SuspendLayout();
            ((System.ComponentModel.ISupportInitialize)(this.ratedGrid)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.ratedGridView)).BeginInit();
            this.ulPanel69.SuspendLayout();
            ((System.ComponentModel.ISupportInitialize)(this.indoor22Grid)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.indoor22GridView)).BeginInit();
            this.ulPanel74.SuspendLayout();
            ((System.ComponentModel.ISupportInitialize)(this.indoor21Grid)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.indoor21GridView)).BeginInit();
            this.ulPanel64.SuspendLayout();
            ((System.ComponentModel.ISupportInitialize)(this.indoor12Grid)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.indoor12GridView)).BeginInit();
            this.ulPanel39.SuspendLayout();
            ((System.ComponentModel.ISupportInitialize)(this.noteGrid)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.noteGridView)).BeginInit();
            this.ulPanel37.SuspendLayout();
            ((System.ComponentModel.ISupportInitialize)(this.outsideGrid)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.outsideGridView)).BeginInit();
            this.ulPanel15.SuspendLayout();
            ((System.ComponentModel.ISupportInitialize)(this.asNozzleGrid)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.asNozzleGridView)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.asNozzleCheckEdit)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.airSideGrid)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.airSideGridView)).BeginInit();
            this.meas2Page.SuspendLayout();
            this.ulPanel85.SuspendLayout();
            ((System.ComponentModel.ISupportInitialize)(this.pressureGrid)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.pressureGridView)).BeginInit();
            this.ulPanel84.SuspendLayout();
            ((System.ComponentModel.ISupportInitialize)(this.tc3Grid)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.tc3GridView)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.tc2Grid)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.tc2GridView)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.tc1Grid)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.tc1GridView)).BeginInit();
            this.reportPage.SuspendLayout();
            this.graphPage.SuspendLayout();
            this.graphTab.SuspendLayout();
            this.SuspendLayout();
            // 
            // bgPanel
            // 
            this.bgPanel.BevelOuter = Ulee.Controls.EUlBevelStyle.None;
            this.bgPanel.Controls.Add(this.testMeasTab);
            this.bgPanel.Controls.Add(this.ulPanel1);
            this.bgPanel.Controls.Add(this.ulPanel4);
            this.bgPanel.Size = new System.Drawing.Size(1728, 915);
            // 
            // ulPanel4
            // 
            this.ulPanel4.BevelInner = Ulee.Controls.EUlBevelStyle.Raised;
            this.ulPanel4.BevelOuter = Ulee.Controls.EUlBevelStyle.Lowered;
            this.ulPanel4.Controls.Add(this.totalRatedGrid);
            this.ulPanel4.Controls.Add(this.ulPanel6);
            this.ulPanel4.InnerColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.ulPanel4.InnerColor2 = System.Drawing.Color.White;
            this.ulPanel4.Location = new System.Drawing.Point(0, 0);
            this.ulPanel4.Name = "ulPanel4";
            this.ulPanel4.OuterColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.ulPanel4.OuterColor2 = System.Drawing.Color.White;
            this.ulPanel4.Size = new System.Drawing.Size(320, 504);
            this.ulPanel4.Spacing = 0;
            this.ulPanel4.TabIndex = 5;
            this.ulPanel4.TextHAlign = Ulee.Controls.EUlHoriAlign.Center;
            this.ulPanel4.TextVAlign = Ulee.Controls.EUlVertAlign.Middle;
            // 
            // totalRatedGrid
            // 
            this.totalRatedGrid.Cursor = System.Windows.Forms.Cursors.Default;
            this.totalRatedGrid.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.totalRatedGrid.Location = new System.Drawing.Point(6, 40);
            this.totalRatedGrid.MainView = this.totalRatedGridView;
            this.totalRatedGrid.Name = "totalRatedGrid";
            this.totalRatedGrid.Size = new System.Drawing.Size(308, 458);
            this.totalRatedGrid.TabIndex = 279;
            this.totalRatedGrid.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] {
            this.totalRatedGridView});
            // 
            // totalRatedGridView
            // 
            this.totalRatedGridView.Appearance.FixedLine.Font = new System.Drawing.Font("Arial", 9F);
            this.totalRatedGridView.Appearance.FixedLine.Options.UseFont = true;
            this.totalRatedGridView.Appearance.FocusedRow.Font = new System.Drawing.Font("Arial", 9F);
            this.totalRatedGridView.Appearance.FocusedRow.Options.UseFont = true;
            this.totalRatedGridView.Appearance.HeaderPanel.Font = new System.Drawing.Font("Arial", 9F);
            this.totalRatedGridView.Appearance.HeaderPanel.Options.UseFont = true;
            this.totalRatedGridView.Appearance.HideSelectionRow.Font = new System.Drawing.Font("Arial", 9F);
            this.totalRatedGridView.Appearance.HideSelectionRow.Options.UseFont = true;
            this.totalRatedGridView.Appearance.OddRow.Font = new System.Drawing.Font("Arial", 9F);
            this.totalRatedGridView.Appearance.OddRow.Options.UseFont = true;
            this.totalRatedGridView.Appearance.Preview.Font = new System.Drawing.Font("Arial", 9F);
            this.totalRatedGridView.Appearance.Preview.Options.UseFont = true;
            this.totalRatedGridView.Appearance.Row.Font = new System.Drawing.Font("Arial", 9F);
            this.totalRatedGridView.Appearance.Row.Options.UseFont = true;
            this.totalRatedGridView.Appearance.SelectedRow.Font = new System.Drawing.Font("Arial", 9F);
            this.totalRatedGridView.Appearance.SelectedRow.Options.UseFont = true;
            this.totalRatedGridView.Appearance.ViewCaption.Font = new System.Drawing.Font("Arial", 9F);
            this.totalRatedGridView.Appearance.ViewCaption.Options.UseFont = true;
            this.totalRatedGridView.Columns.AddRange(new DevExpress.XtraGrid.Columns.GridColumn[] {
            this.trgNameColumn,
            this.trgValueColumn,
            this.trgUnitColumn});
            this.totalRatedGridView.CustomizationFormBounds = new System.Drawing.Rectangle(2884, 580, 210, 186);
            this.totalRatedGridView.GridControl = this.totalRatedGrid;
            this.totalRatedGridView.Name = "totalRatedGridView";
            this.totalRatedGridView.OptionsBehavior.ReadOnly = true;
            this.totalRatedGridView.OptionsClipboard.AllowCopy = DevExpress.Utils.DefaultBoolean.True;
            this.totalRatedGridView.OptionsClipboard.AllowExcelFormat = DevExpress.Utils.DefaultBoolean.True;
            this.totalRatedGridView.OptionsClipboard.CopyColumnHeaders = DevExpress.Utils.DefaultBoolean.False;
            this.totalRatedGridView.OptionsSelection.MultiSelect = true;
            this.totalRatedGridView.OptionsSelection.MultiSelectMode = DevExpress.XtraGrid.Views.Grid.GridMultiSelectMode.CellSelect;
            this.totalRatedGridView.OptionsView.ColumnAutoWidth = false;
            this.totalRatedGridView.OptionsView.ShowColumnHeaders = false;
            this.totalRatedGridView.OptionsView.ShowGroupPanel = false;
            this.totalRatedGridView.OptionsView.ShowIndicator = false;
            this.totalRatedGridView.Tag = 0;
            this.totalRatedGridView.CustomDrawCell += new DevExpress.XtraGrid.Views.Base.RowCellCustomDrawEventHandler(this.totalRatedGridView_CustomDrawCell);
            // 
            // trgNameColumn
            // 
            this.trgNameColumn.AppearanceCell.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.trgNameColumn.AppearanceCell.Options.UseFont = true;
            this.trgNameColumn.AppearanceCell.Options.UseTextOptions = true;
            this.trgNameColumn.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Near;
            this.trgNameColumn.AppearanceHeader.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.trgNameColumn.AppearanceHeader.Options.UseFont = true;
            this.trgNameColumn.AppearanceHeader.Options.UseTextOptions = true;
            this.trgNameColumn.AppearanceHeader.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Near;
            this.trgNameColumn.Caption = "Name";
            this.trgNameColumn.FieldName = "Name";
            this.trgNameColumn.Name = "trgNameColumn";
            this.trgNameColumn.OptionsColumn.AllowEdit = false;
            this.trgNameColumn.OptionsColumn.AllowFocus = false;
            this.trgNameColumn.OptionsColumn.AllowGroup = DevExpress.Utils.DefaultBoolean.False;
            this.trgNameColumn.OptionsColumn.AllowIncrementalSearch = false;
            this.trgNameColumn.OptionsColumn.AllowMerge = DevExpress.Utils.DefaultBoolean.False;
            this.trgNameColumn.OptionsColumn.AllowMove = false;
            this.trgNameColumn.OptionsColumn.AllowShowHide = false;
            this.trgNameColumn.OptionsColumn.AllowSize = false;
            this.trgNameColumn.OptionsColumn.AllowSort = DevExpress.Utils.DefaultBoolean.False;
            this.trgNameColumn.OptionsColumn.FixedWidth = true;
            this.trgNameColumn.OptionsColumn.Printable = DevExpress.Utils.DefaultBoolean.False;
            this.trgNameColumn.OptionsColumn.ReadOnly = true;
            this.trgNameColumn.OptionsColumn.TabStop = false;
            this.trgNameColumn.OptionsFilter.AllowAutoFilter = false;
            this.trgNameColumn.OptionsFilter.AllowFilter = false;
            this.trgNameColumn.Visible = true;
            this.trgNameColumn.VisibleIndex = 0;
            this.trgNameColumn.Width = 115;
            // 
            // trgValueColumn
            // 
            this.trgValueColumn.AppearanceCell.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.trgValueColumn.AppearanceCell.Options.UseFont = true;
            this.trgValueColumn.AppearanceCell.Options.UseTextOptions = true;
            this.trgValueColumn.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Far;
            this.trgValueColumn.AppearanceHeader.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.trgValueColumn.AppearanceHeader.Options.UseFont = true;
            this.trgValueColumn.AppearanceHeader.Options.UseTextOptions = true;
            this.trgValueColumn.AppearanceHeader.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Near;
            this.trgValueColumn.Caption = "Value";
            this.trgValueColumn.FieldName = "Value";
            this.trgValueColumn.Name = "trgValueColumn";
            this.trgValueColumn.OptionsColumn.AllowEdit = false;
            this.trgValueColumn.OptionsColumn.AllowFocus = false;
            this.trgValueColumn.OptionsColumn.AllowGroup = DevExpress.Utils.DefaultBoolean.False;
            this.trgValueColumn.OptionsColumn.AllowIncrementalSearch = false;
            this.trgValueColumn.OptionsColumn.AllowMerge = DevExpress.Utils.DefaultBoolean.False;
            this.trgValueColumn.OptionsColumn.AllowMove = false;
            this.trgValueColumn.OptionsColumn.AllowShowHide = false;
            this.trgValueColumn.OptionsColumn.AllowSize = false;
            this.trgValueColumn.OptionsColumn.AllowSort = DevExpress.Utils.DefaultBoolean.False;
            this.trgValueColumn.OptionsColumn.FixedWidth = true;
            this.trgValueColumn.OptionsColumn.Printable = DevExpress.Utils.DefaultBoolean.False;
            this.trgValueColumn.OptionsColumn.ReadOnly = true;
            this.trgValueColumn.OptionsColumn.TabStop = false;
            this.trgValueColumn.Visible = true;
            this.trgValueColumn.VisibleIndex = 1;
            this.trgValueColumn.Width = 94;
            // 
            // trgUnitColumn
            // 
            this.trgUnitColumn.AppearanceCell.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.trgUnitColumn.AppearanceCell.Options.UseFont = true;
            this.trgUnitColumn.AppearanceCell.Options.UseTextOptions = true;
            this.trgUnitColumn.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Near;
            this.trgUnitColumn.AppearanceHeader.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.trgUnitColumn.AppearanceHeader.Options.UseFont = true;
            this.trgUnitColumn.AppearanceHeader.Options.UseTextOptions = true;
            this.trgUnitColumn.AppearanceHeader.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Near;
            this.trgUnitColumn.Caption = "Unit";
            this.trgUnitColumn.FieldName = "Unit";
            this.trgUnitColumn.Name = "trgUnitColumn";
            this.trgUnitColumn.OptionsColumn.AllowEdit = false;
            this.trgUnitColumn.OptionsColumn.AllowFocus = false;
            this.trgUnitColumn.OptionsColumn.AllowGroup = DevExpress.Utils.DefaultBoolean.False;
            this.trgUnitColumn.OptionsColumn.AllowIncrementalSearch = false;
            this.trgUnitColumn.OptionsColumn.AllowMerge = DevExpress.Utils.DefaultBoolean.False;
            this.trgUnitColumn.OptionsColumn.AllowMove = false;
            this.trgUnitColumn.OptionsColumn.AllowShowHide = false;
            this.trgUnitColumn.OptionsColumn.AllowSize = false;
            this.trgUnitColumn.OptionsColumn.AllowSort = DevExpress.Utils.DefaultBoolean.False;
            this.trgUnitColumn.OptionsColumn.FixedWidth = true;
            this.trgUnitColumn.OptionsColumn.Printable = DevExpress.Utils.DefaultBoolean.False;
            this.trgUnitColumn.OptionsColumn.ReadOnly = true;
            this.trgUnitColumn.OptionsColumn.TabStop = false;
            this.trgUnitColumn.OptionsFilter.AllowAutoFilter = false;
            this.trgUnitColumn.OptionsFilter.AllowFilter = false;
            this.trgUnitColumn.Visible = true;
            this.trgUnitColumn.VisibleIndex = 2;
            this.trgUnitColumn.Width = 79;
            // 
            // ulPanel6
            // 
            this.ulPanel6.BackColor = System.Drawing.Color.DeepSkyBlue;
            this.ulPanel6.BevelInner = Ulee.Controls.EUlBevelStyle.None;
            this.ulPanel6.BevelOuter = Ulee.Controls.EUlBevelStyle.Lowered;
            this.ulPanel6.Font = new System.Drawing.Font("Arial Rounded MT Bold", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.ulPanel6.ForeColor = System.Drawing.Color.White;
            this.ulPanel6.InnerColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.ulPanel6.InnerColor2 = System.Drawing.Color.White;
            this.ulPanel6.Location = new System.Drawing.Point(6, 6);
            this.ulPanel6.Name = "ulPanel6";
            this.ulPanel6.OuterColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.ulPanel6.OuterColor2 = System.Drawing.Color.White;
            this.ulPanel6.Size = new System.Drawing.Size(308, 28);
            this.ulPanel6.Spacing = 0;
            this.ulPanel6.TabIndex = 5;
            this.ulPanel6.Text = "TOTAL RATED POWER";
            this.ulPanel6.TextHAlign = Ulee.Controls.EUlHoriAlign.Center;
            this.ulPanel6.TextVAlign = Ulee.Controls.EUlVertAlign.Middle;
            // 
            // ulPanel1
            // 
            this.ulPanel1.BevelInner = Ulee.Controls.EUlBevelStyle.Raised;
            this.ulPanel1.BevelOuter = Ulee.Controls.EUlBevelStyle.Lowered;
            this.ulPanel1.Controls.Add(this.runStateGrid);
            this.ulPanel1.Controls.Add(this.label38);
            this.ulPanel1.Controls.Add(this.label37);
            this.ulPanel1.Controls.Add(this.label36);
            this.ulPanel1.Controls.Add(this.label35);
            this.ulPanel1.Controls.Add(this.label32);
            this.ulPanel1.Controls.Add(this.label31);
            this.ulPanel1.Controls.Add(this.scheduleProgress);
            this.ulPanel1.Controls.Add(this.repeatProgress);
            this.ulPanel1.Controls.Add(this.noOfSteadyProgress);
            this.ulPanel1.Controls.Add(this.integrationProgress);
            this.ulPanel1.Controls.Add(this.judgementProgress);
            this.ulPanel1.Controls.Add(this.preparationProgress);
            this.ulPanel1.Controls.Add(this.ulPanel2);
            this.ulPanel1.InnerColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.ulPanel1.InnerColor2 = System.Drawing.Color.White;
            this.ulPanel1.Location = new System.Drawing.Point(0, 510);
            this.ulPanel1.Name = "ulPanel1";
            this.ulPanel1.OuterColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.ulPanel1.OuterColor2 = System.Drawing.Color.White;
            this.ulPanel1.Size = new System.Drawing.Size(320, 406);
            this.ulPanel1.Spacing = 0;
            this.ulPanel1.TabIndex = 6;
            this.ulPanel1.TextHAlign = Ulee.Controls.EUlHoriAlign.Center;
            this.ulPanel1.TextVAlign = Ulee.Controls.EUlVertAlign.Middle;
            // 
            // runStateGrid
            // 
            this.runStateGrid.Cursor = System.Windows.Forms.Cursors.Default;
            this.runStateGrid.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.runStateGrid.Location = new System.Drawing.Point(6, 40);
            this.runStateGrid.MainView = this.runStateGridView;
            this.runStateGrid.Name = "runStateGrid";
            this.runStateGrid.Size = new System.Drawing.Size(308, 230);
            this.runStateGrid.TabIndex = 280;
            this.runStateGrid.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] {
            this.runStateGridView});
            // 
            // runStateGridView
            // 
            this.runStateGridView.Appearance.FixedLine.Font = new System.Drawing.Font("Arial", 9F);
            this.runStateGridView.Appearance.FixedLine.Options.UseFont = true;
            this.runStateGridView.Appearance.FocusedRow.Font = new System.Drawing.Font("Arial", 9F);
            this.runStateGridView.Appearance.FocusedRow.Options.UseFont = true;
            this.runStateGridView.Appearance.HeaderPanel.Font = new System.Drawing.Font("Arial", 9F);
            this.runStateGridView.Appearance.HeaderPanel.Options.UseFont = true;
            this.runStateGridView.Appearance.HideSelectionRow.Font = new System.Drawing.Font("Arial", 9F);
            this.runStateGridView.Appearance.HideSelectionRow.Options.UseFont = true;
            this.runStateGridView.Appearance.OddRow.Font = new System.Drawing.Font("Arial", 9F);
            this.runStateGridView.Appearance.OddRow.Options.UseFont = true;
            this.runStateGridView.Appearance.Preview.Font = new System.Drawing.Font("Arial", 9F);
            this.runStateGridView.Appearance.Preview.Options.UseFont = true;
            this.runStateGridView.Appearance.Row.Font = new System.Drawing.Font("Arial", 9F);
            this.runStateGridView.Appearance.Row.Options.UseFont = true;
            this.runStateGridView.Appearance.SelectedRow.Font = new System.Drawing.Font("Arial", 9F);
            this.runStateGridView.Appearance.SelectedRow.Options.UseFont = true;
            this.runStateGridView.Appearance.ViewCaption.Font = new System.Drawing.Font("Arial", 9F);
            this.runStateGridView.Appearance.ViewCaption.Options.UseFont = true;
            this.runStateGridView.Columns.AddRange(new DevExpress.XtraGrid.Columns.GridColumn[] {
            this.rsgNameColumn,
            this.rsgValueColumn});
            this.runStateGridView.CustomizationFormBounds = new System.Drawing.Rectangle(2884, 580, 210, 186);
            this.runStateGridView.GridControl = this.runStateGrid;
            this.runStateGridView.Name = "runStateGridView";
            this.runStateGridView.OptionsBehavior.Editable = false;
            this.runStateGridView.OptionsBehavior.ReadOnly = true;
            this.runStateGridView.OptionsClipboard.AllowCopy = DevExpress.Utils.DefaultBoolean.True;
            this.runStateGridView.OptionsClipboard.AllowExcelFormat = DevExpress.Utils.DefaultBoolean.True;
            this.runStateGridView.OptionsSelection.MultiSelect = true;
            this.runStateGridView.OptionsSelection.MultiSelectMode = DevExpress.XtraGrid.Views.Grid.GridMultiSelectMode.CellSelect;
            this.runStateGridView.OptionsView.ColumnAutoWidth = false;
            this.runStateGridView.OptionsView.ShowColumnHeaders = false;
            this.runStateGridView.OptionsView.ShowGroupPanel = false;
            this.runStateGridView.OptionsView.ShowIndicator = false;
            this.runStateGridView.Tag = 0;
            this.runStateGridView.CustomDrawCell += new DevExpress.XtraGrid.Views.Base.RowCellCustomDrawEventHandler(this.runStateGridView_CustomDrawCell);
            // 
            // rsgNameColumn
            // 
            this.rsgNameColumn.AppearanceCell.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.rsgNameColumn.AppearanceCell.Options.UseFont = true;
            this.rsgNameColumn.AppearanceCell.Options.UseTextOptions = true;
            this.rsgNameColumn.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Near;
            this.rsgNameColumn.AppearanceHeader.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.rsgNameColumn.AppearanceHeader.Options.UseFont = true;
            this.rsgNameColumn.AppearanceHeader.Options.UseTextOptions = true;
            this.rsgNameColumn.AppearanceHeader.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Near;
            this.rsgNameColumn.Caption = "Name";
            this.rsgNameColumn.FieldName = "Name";
            this.rsgNameColumn.Name = "rsgNameColumn";
            this.rsgNameColumn.OptionsColumn.AllowEdit = false;
            this.rsgNameColumn.OptionsColumn.AllowFocus = false;
            this.rsgNameColumn.OptionsColumn.AllowGroup = DevExpress.Utils.DefaultBoolean.False;
            this.rsgNameColumn.OptionsColumn.AllowIncrementalSearch = false;
            this.rsgNameColumn.OptionsColumn.AllowMerge = DevExpress.Utils.DefaultBoolean.False;
            this.rsgNameColumn.OptionsColumn.AllowMove = false;
            this.rsgNameColumn.OptionsColumn.AllowShowHide = false;
            this.rsgNameColumn.OptionsColumn.AllowSize = false;
            this.rsgNameColumn.OptionsColumn.AllowSort = DevExpress.Utils.DefaultBoolean.False;
            this.rsgNameColumn.OptionsColumn.FixedWidth = true;
            this.rsgNameColumn.OptionsColumn.ImmediateUpdateRowPosition = DevExpress.Utils.DefaultBoolean.False;
            this.rsgNameColumn.OptionsColumn.Printable = DevExpress.Utils.DefaultBoolean.False;
            this.rsgNameColumn.OptionsColumn.ReadOnly = true;
            this.rsgNameColumn.OptionsColumn.TabStop = false;
            this.rsgNameColumn.OptionsFilter.AllowAutoFilter = false;
            this.rsgNameColumn.OptionsFilter.AllowFilter = false;
            this.rsgNameColumn.Visible = true;
            this.rsgNameColumn.VisibleIndex = 0;
            this.rsgNameColumn.Width = 115;
            // 
            // rsgValueColumn
            // 
            this.rsgValueColumn.AppearanceCell.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.rsgValueColumn.AppearanceCell.Options.UseFont = true;
            this.rsgValueColumn.AppearanceCell.Options.UseTextOptions = true;
            this.rsgValueColumn.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
            this.rsgValueColumn.AppearanceHeader.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.rsgValueColumn.AppearanceHeader.Options.UseFont = true;
            this.rsgValueColumn.AppearanceHeader.Options.UseTextOptions = true;
            this.rsgValueColumn.AppearanceHeader.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
            this.rsgValueColumn.FieldName = "Value";
            this.rsgValueColumn.Name = "rsgValueColumn";
            this.rsgValueColumn.OptionsColumn.AllowEdit = false;
            this.rsgValueColumn.OptionsColumn.AllowFocus = false;
            this.rsgValueColumn.OptionsColumn.AllowGroup = DevExpress.Utils.DefaultBoolean.False;
            this.rsgValueColumn.OptionsColumn.AllowIncrementalSearch = false;
            this.rsgValueColumn.OptionsColumn.AllowMerge = DevExpress.Utils.DefaultBoolean.False;
            this.rsgValueColumn.OptionsColumn.AllowMove = false;
            this.rsgValueColumn.OptionsColumn.AllowShowHide = false;
            this.rsgValueColumn.OptionsColumn.AllowSize = false;
            this.rsgValueColumn.OptionsColumn.AllowSort = DevExpress.Utils.DefaultBoolean.False;
            this.rsgValueColumn.OptionsColumn.FixedWidth = true;
            this.rsgValueColumn.OptionsColumn.ReadOnly = true;
            this.rsgValueColumn.Visible = true;
            this.rsgValueColumn.VisibleIndex = 1;
            this.rsgValueColumn.Width = 190;
            // 
            // label38
            // 
            this.label38.Location = new System.Drawing.Point(8, 378);
            this.label38.Name = "label38";
            this.label38.Size = new System.Drawing.Size(86, 22);
            this.label38.TabIndex = 157;
            this.label38.Text = "Schedule";
            this.label38.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
            // 
            // label37
            // 
            this.label37.Location = new System.Drawing.Point(8, 357);
            this.label37.Name = "label37";
            this.label37.Size = new System.Drawing.Size(86, 22);
            this.label37.TabIndex = 156;
            this.label37.Text = "Repeat";
            this.label37.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
            // 
            // label36
            // 
            this.label36.Location = new System.Drawing.Point(8, 336);
            this.label36.Name = "label36";
            this.label36.Size = new System.Drawing.Size(86, 22);
            this.label36.TabIndex = 155;
            this.label36.Text = "No of Steady";
            this.label36.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
            // 
            // label35
            // 
            this.label35.Location = new System.Drawing.Point(8, 315);
            this.label35.Name = "label35";
            this.label35.Size = new System.Drawing.Size(86, 22);
            this.label35.TabIndex = 154;
            this.label35.Text = "Integration";
            this.label35.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
            // 
            // label32
            // 
            this.label32.Location = new System.Drawing.Point(8, 294);
            this.label32.Name = "label32";
            this.label32.Size = new System.Drawing.Size(86, 22);
            this.label32.TabIndex = 153;
            this.label32.Text = "Judgement";
            this.label32.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
            // 
            // label31
            // 
            this.label31.Location = new System.Drawing.Point(8, 273);
            this.label31.Name = "label31";
            this.label31.Size = new System.Drawing.Size(86, 22);
            this.label31.TabIndex = 152;
            this.label31.Text = "Preparation";
            this.label31.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
            // 
            // scheduleProgress
            // 
            this.scheduleProgress.Location = new System.Drawing.Point(120, 381);
            this.scheduleProgress.Name = "scheduleProgress";
            this.scheduleProgress.Properties.AllowFocused = false;
            this.scheduleProgress.Properties.Appearance.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.scheduleProgress.Properties.Appearance.ForeColor = System.Drawing.Color.Black;
            this.scheduleProgress.Properties.Appearance.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
            this.scheduleProgress.Properties.FlowAnimationDuration = 2000;
            this.scheduleProgress.Properties.FlowAnimationEnabled = true;
            this.scheduleProgress.Properties.ShowTitle = true;
            this.scheduleProgress.Properties.TextOrientation = DevExpress.Utils.Drawing.TextOrientation.Horizontal;
            this.scheduleProgress.Size = new System.Drawing.Size(194, 18);
            this.scheduleProgress.TabIndex = 151;
            // 
            // repeatProgress
            // 
            this.repeatProgress.Location = new System.Drawing.Point(120, 360);
            this.repeatProgress.Name = "repeatProgress";
            this.repeatProgress.Properties.AllowFocused = false;
            this.repeatProgress.Properties.Appearance.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.repeatProgress.Properties.Appearance.ForeColor = System.Drawing.Color.Black;
            this.repeatProgress.Properties.Appearance.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
            this.repeatProgress.Properties.FlowAnimationDuration = 2000;
            this.repeatProgress.Properties.FlowAnimationEnabled = true;
            this.repeatProgress.Properties.ShowTitle = true;
            this.repeatProgress.Properties.TextOrientation = DevExpress.Utils.Drawing.TextOrientation.Horizontal;
            this.repeatProgress.Size = new System.Drawing.Size(194, 18);
            this.repeatProgress.TabIndex = 150;
            // 
            // noOfSteadyProgress
            // 
            this.noOfSteadyProgress.Location = new System.Drawing.Point(120, 339);
            this.noOfSteadyProgress.Name = "noOfSteadyProgress";
            this.noOfSteadyProgress.Properties.AllowFocused = false;
            this.noOfSteadyProgress.Properties.Appearance.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.noOfSteadyProgress.Properties.Appearance.ForeColor = System.Drawing.Color.Black;
            this.noOfSteadyProgress.Properties.Appearance.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
            this.noOfSteadyProgress.Properties.FlowAnimationDuration = 2000;
            this.noOfSteadyProgress.Properties.FlowAnimationEnabled = true;
            this.noOfSteadyProgress.Properties.ShowTitle = true;
            this.noOfSteadyProgress.Properties.TextOrientation = DevExpress.Utils.Drawing.TextOrientation.Horizontal;
            this.noOfSteadyProgress.Size = new System.Drawing.Size(194, 18);
            this.noOfSteadyProgress.TabIndex = 149;
            // 
            // integrationProgress
            // 
            this.integrationProgress.Location = new System.Drawing.Point(120, 318);
            this.integrationProgress.Name = "integrationProgress";
            this.integrationProgress.Properties.AllowFocused = false;
            this.integrationProgress.Properties.Appearance.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.integrationProgress.Properties.Appearance.ForeColor = System.Drawing.Color.Black;
            this.integrationProgress.Properties.Appearance.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
            this.integrationProgress.Properties.FlowAnimationDuration = 2000;
            this.integrationProgress.Properties.FlowAnimationEnabled = true;
            this.integrationProgress.Properties.ShowTitle = true;
            this.integrationProgress.Properties.TextOrientation = DevExpress.Utils.Drawing.TextOrientation.Horizontal;
            this.integrationProgress.Size = new System.Drawing.Size(194, 18);
            this.integrationProgress.TabIndex = 148;
            // 
            // judgementProgress
            // 
            this.judgementProgress.Location = new System.Drawing.Point(120, 297);
            this.judgementProgress.Name = "judgementProgress";
            this.judgementProgress.Properties.AllowFocused = false;
            this.judgementProgress.Properties.Appearance.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.judgementProgress.Properties.Appearance.ForeColor = System.Drawing.Color.Black;
            this.judgementProgress.Properties.Appearance.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
            this.judgementProgress.Properties.FlowAnimationDuration = 2000;
            this.judgementProgress.Properties.FlowAnimationEnabled = true;
            this.judgementProgress.Properties.ShowTitle = true;
            this.judgementProgress.Properties.TextOrientation = DevExpress.Utils.Drawing.TextOrientation.Horizontal;
            this.judgementProgress.Size = new System.Drawing.Size(194, 18);
            this.judgementProgress.TabIndex = 147;
            // 
            // preparationProgress
            // 
            this.preparationProgress.Location = new System.Drawing.Point(120, 276);
            this.preparationProgress.Name = "preparationProgress";
            this.preparationProgress.Properties.AllowFocused = false;
            this.preparationProgress.Properties.Appearance.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.preparationProgress.Properties.Appearance.ForeColor = System.Drawing.Color.Black;
            this.preparationProgress.Properties.Appearance.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
            this.preparationProgress.Properties.FlowAnimationDuration = 2000;
            this.preparationProgress.Properties.FlowAnimationEnabled = true;
            this.preparationProgress.Properties.ShowTitle = true;
            this.preparationProgress.Properties.TextOrientation = DevExpress.Utils.Drawing.TextOrientation.Horizontal;
            this.preparationProgress.Size = new System.Drawing.Size(194, 18);
            this.preparationProgress.TabIndex = 145;
            // 
            // ulPanel2
            // 
            this.ulPanel2.BackColor = System.Drawing.Color.DeepSkyBlue;
            this.ulPanel2.BevelInner = Ulee.Controls.EUlBevelStyle.None;
            this.ulPanel2.BevelOuter = Ulee.Controls.EUlBevelStyle.Lowered;
            this.ulPanel2.Font = new System.Drawing.Font("Arial Rounded MT Bold", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.ulPanel2.ForeColor = System.Drawing.Color.White;
            this.ulPanel2.InnerColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.ulPanel2.InnerColor2 = System.Drawing.Color.White;
            this.ulPanel2.Location = new System.Drawing.Point(6, 6);
            this.ulPanel2.Name = "ulPanel2";
            this.ulPanel2.OuterColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.ulPanel2.OuterColor2 = System.Drawing.Color.White;
            this.ulPanel2.Size = new System.Drawing.Size(308, 28);
            this.ulPanel2.Spacing = 0;
            this.ulPanel2.TabIndex = 5;
            this.ulPanel2.Text = "RUN STATE";
            this.ulPanel2.TextHAlign = Ulee.Controls.EUlHoriAlign.Center;
            this.ulPanel2.TextVAlign = Ulee.Controls.EUlVertAlign.Middle;
            // 
            // testMeasTab
            // 
            this.testMeasTab.Controls.Add(this.measPage);
            this.testMeasTab.Controls.Add(this.reportPage);
            this.testMeasTab.Controls.Add(this.graphPage);
            this.testMeasTab.Location = new System.Drawing.Point(326, 0);
            this.testMeasTab.Margin = new System.Windows.Forms.Padding(0);
            this.testMeasTab.Name = "testMeasTab";
            this.testMeasTab.Padding = new System.Drawing.Point(0, 0);
            this.testMeasTab.SelectedIndex = 0;
            this.testMeasTab.Size = new System.Drawing.Size(1400, 915);
            this.testMeasTab.TabIndex = 7;
            // 
            // measPage
            // 
            this.measPage.Controls.Add(this.measTab);
            this.measPage.Location = new System.Drawing.Point(4, 24);
            this.measPage.Margin = new System.Windows.Forms.Padding(0);
            this.measPage.Name = "measPage";
            this.measPage.Size = new System.Drawing.Size(1392, 887);
            this.measPage.TabIndex = 0;
            this.measPage.Text = " Measure ";
            this.measPage.UseVisualStyleBackColor = true;
            // 
            // measTab
            // 
            this.measTab.Alignment = System.Windows.Forms.TabAlignment.Bottom;
            this.measTab.Controls.Add(this.meas1Page);
            this.measTab.Controls.Add(this.meas2Page);
            this.measTab.Dock = System.Windows.Forms.DockStyle.Fill;
            this.measTab.Location = new System.Drawing.Point(0, 0);
            this.measTab.Margin = new System.Windows.Forms.Padding(0);
            this.measTab.Multiline = true;
            this.measTab.Name = "measTab";
            this.measTab.Padding = new System.Drawing.Point(0, 0);
            this.measTab.SelectedIndex = 0;
            this.measTab.Size = new System.Drawing.Size(1392, 887);
            this.measTab.TabIndex = 0;
            // 
            // meas1Page
            // 
            this.meas1Page.Controls.Add(this.ulPanel5);
            this.meas1Page.Controls.Add(this.ulPanel3);
            this.meas1Page.Controls.Add(this.ulPanel79);
            this.meas1Page.Controls.Add(this.ulPanel59);
            this.meas1Page.Controls.Add(this.ulPanel69);
            this.meas1Page.Controls.Add(this.ulPanel74);
            this.meas1Page.Controls.Add(this.ulPanel64);
            this.meas1Page.Controls.Add(this.ulPanel39);
            this.meas1Page.Controls.Add(this.ulPanel37);
            this.meas1Page.Controls.Add(this.ulPanel15);
            this.meas1Page.Location = new System.Drawing.Point(4, 4);
            this.meas1Page.Margin = new System.Windows.Forms.Padding(0);
            this.meas1Page.Name = "meas1Page";
            this.meas1Page.Size = new System.Drawing.Size(1384, 859);
            this.meas1Page.TabIndex = 0;
            this.meas1Page.Text = " Room ";
            this.meas1Page.UseVisualStyleBackColor = true;
            // 
            // ulPanel5
            // 
            this.ulPanel5.BackColor = System.Drawing.SystemColors.Control;
            this.ulPanel5.BevelInner = Ulee.Controls.EUlBevelStyle.Raised;
            this.ulPanel5.BevelOuter = Ulee.Controls.EUlBevelStyle.Lowered;
            this.ulPanel5.Controls.Add(this.methodGrid);
            this.ulPanel5.Controls.Add(this.ulPanel7);
            this.ulPanel5.InnerColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.ulPanel5.InnerColor2 = System.Drawing.Color.White;
            this.ulPanel5.Location = new System.Drawing.Point(1070, 0);
            this.ulPanel5.Name = "ulPanel5";
            this.ulPanel5.OuterColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.ulPanel5.OuterColor2 = System.Drawing.Color.White;
            this.ulPanel5.Size = new System.Drawing.Size(314, 114);
            this.ulPanel5.Spacing = 0;
            this.ulPanel5.TabIndex = 17;
            this.ulPanel5.TextHAlign = Ulee.Controls.EUlHoriAlign.Center;
            this.ulPanel5.TextVAlign = Ulee.Controls.EUlVertAlign.Middle;
            // 
            // methodGrid
            // 
            this.methodGrid.Cursor = System.Windows.Forms.Cursors.Default;
            this.methodGrid.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.methodGrid.Location = new System.Drawing.Point(6, 40);
            this.methodGrid.MainView = this.methodGridView;
            this.methodGrid.Name = "methodGrid";
            this.methodGrid.Size = new System.Drawing.Size(302, 68);
            this.methodGrid.TabIndex = 279;
            this.methodGrid.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] {
            this.methodGridView});
            // 
            // methodGridView
            // 
            this.methodGridView.Appearance.FixedLine.Font = new System.Drawing.Font("Arial", 9F);
            this.methodGridView.Appearance.FixedLine.Options.UseFont = true;
            this.methodGridView.Appearance.FocusedRow.Font = new System.Drawing.Font("Arial", 9F);
            this.methodGridView.Appearance.FocusedRow.Options.UseFont = true;
            this.methodGridView.Appearance.HeaderPanel.Font = new System.Drawing.Font("Arial", 9F);
            this.methodGridView.Appearance.HeaderPanel.Options.UseFont = true;
            this.methodGridView.Appearance.HideSelectionRow.Font = new System.Drawing.Font("Arial", 9F);
            this.methodGridView.Appearance.HideSelectionRow.Options.UseFont = true;
            this.methodGridView.Appearance.OddRow.Font = new System.Drawing.Font("Arial", 9F);
            this.methodGridView.Appearance.OddRow.Options.UseFont = true;
            this.methodGridView.Appearance.Preview.Font = new System.Drawing.Font("Arial", 9F);
            this.methodGridView.Appearance.Preview.Options.UseFont = true;
            this.methodGridView.Appearance.Row.Font = new System.Drawing.Font("Arial", 9F);
            this.methodGridView.Appearance.Row.Options.UseFont = true;
            this.methodGridView.Appearance.SelectedRow.Font = new System.Drawing.Font("Arial", 9F);
            this.methodGridView.Appearance.SelectedRow.Options.UseFont = true;
            this.methodGridView.Appearance.ViewCaption.Font = new System.Drawing.Font("Arial", 9F);
            this.methodGridView.Appearance.ViewCaption.Options.UseFont = true;
            this.methodGridView.Columns.AddRange(new DevExpress.XtraGrid.Columns.GridColumn[] {
            this.mgNameColumn,
            this.meValueColumn});
            this.methodGridView.CustomizationFormBounds = new System.Drawing.Rectangle(2884, 580, 210, 186);
            this.methodGridView.GridControl = this.methodGrid;
            this.methodGridView.Name = "methodGridView";
            this.methodGridView.OptionsBehavior.Editable = false;
            this.methodGridView.OptionsBehavior.ReadOnly = true;
            this.methodGridView.OptionsClipboard.AllowCopy = DevExpress.Utils.DefaultBoolean.True;
            this.methodGridView.OptionsClipboard.AllowExcelFormat = DevExpress.Utils.DefaultBoolean.True;
            this.methodGridView.OptionsSelection.MultiSelect = true;
            this.methodGridView.OptionsSelection.MultiSelectMode = DevExpress.XtraGrid.Views.Grid.GridMultiSelectMode.CellSelect;
            this.methodGridView.OptionsView.ColumnAutoWidth = false;
            this.methodGridView.OptionsView.ShowColumnHeaders = false;
            this.methodGridView.OptionsView.ShowGroupPanel = false;
            this.methodGridView.OptionsView.ShowIndicator = false;
            this.methodGridView.Tag = 0;
            // 
            // mgNameColumn
            // 
            this.mgNameColumn.AppearanceCell.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.mgNameColumn.AppearanceCell.Options.UseFont = true;
            this.mgNameColumn.AppearanceCell.Options.UseTextOptions = true;
            this.mgNameColumn.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Near;
            this.mgNameColumn.AppearanceHeader.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.mgNameColumn.AppearanceHeader.Options.UseFont = true;
            this.mgNameColumn.AppearanceHeader.Options.UseTextOptions = true;
            this.mgNameColumn.AppearanceHeader.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Near;
            this.mgNameColumn.Caption = "Name";
            this.mgNameColumn.FieldName = "Name";
            this.mgNameColumn.Name = "mgNameColumn";
            this.mgNameColumn.OptionsColumn.AllowEdit = false;
            this.mgNameColumn.OptionsColumn.AllowFocus = false;
            this.mgNameColumn.OptionsColumn.AllowGroup = DevExpress.Utils.DefaultBoolean.False;
            this.mgNameColumn.OptionsColumn.AllowIncrementalSearch = false;
            this.mgNameColumn.OptionsColumn.AllowMerge = DevExpress.Utils.DefaultBoolean.False;
            this.mgNameColumn.OptionsColumn.AllowMove = false;
            this.mgNameColumn.OptionsColumn.AllowShowHide = false;
            this.mgNameColumn.OptionsColumn.AllowSize = false;
            this.mgNameColumn.OptionsColumn.AllowSort = DevExpress.Utils.DefaultBoolean.False;
            this.mgNameColumn.OptionsColumn.FixedWidth = true;
            this.mgNameColumn.OptionsColumn.ImmediateUpdateRowPosition = DevExpress.Utils.DefaultBoolean.False;
            this.mgNameColumn.OptionsColumn.Printable = DevExpress.Utils.DefaultBoolean.False;
            this.mgNameColumn.OptionsColumn.ReadOnly = true;
            this.mgNameColumn.OptionsColumn.TabStop = false;
            this.mgNameColumn.OptionsFilter.AllowAutoFilter = false;
            this.mgNameColumn.OptionsFilter.AllowFilter = false;
            this.mgNameColumn.Visible = true;
            this.mgNameColumn.VisibleIndex = 0;
            this.mgNameColumn.Width = 156;
            // 
            // meValueColumn
            // 
            this.meValueColumn.AppearanceCell.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.meValueColumn.AppearanceCell.Options.UseFont = true;
            this.meValueColumn.AppearanceCell.Options.UseTextOptions = true;
            this.meValueColumn.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Near;
            this.meValueColumn.AppearanceHeader.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.meValueColumn.AppearanceHeader.Options.UseFont = true;
            this.meValueColumn.AppearanceHeader.Options.UseTextOptions = true;
            this.meValueColumn.AppearanceHeader.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Near;
            this.meValueColumn.Caption = "Value";
            this.meValueColumn.FieldName = "Value";
            this.meValueColumn.Name = "meValueColumn";
            this.meValueColumn.OptionsColumn.AllowEdit = false;
            this.meValueColumn.OptionsColumn.AllowFocus = false;
            this.meValueColumn.OptionsColumn.AllowGroup = DevExpress.Utils.DefaultBoolean.False;
            this.meValueColumn.OptionsColumn.AllowIncrementalSearch = false;
            this.meValueColumn.OptionsColumn.AllowMerge = DevExpress.Utils.DefaultBoolean.False;
            this.meValueColumn.OptionsColumn.AllowMove = false;
            this.meValueColumn.OptionsColumn.AllowShowHide = false;
            this.meValueColumn.OptionsColumn.AllowSize = false;
            this.meValueColumn.OptionsColumn.AllowSort = DevExpress.Utils.DefaultBoolean.False;
            this.meValueColumn.OptionsColumn.FixedWidth = true;
            this.meValueColumn.OptionsColumn.ReadOnly = true;
            this.meValueColumn.Visible = true;
            this.meValueColumn.VisibleIndex = 1;
            this.meValueColumn.Width = 143;
            // 
            // ulPanel7
            // 
            this.ulPanel7.BackColor = System.Drawing.Color.DeepSkyBlue;
            this.ulPanel7.BevelInner = Ulee.Controls.EUlBevelStyle.None;
            this.ulPanel7.BevelOuter = Ulee.Controls.EUlBevelStyle.Lowered;
            this.ulPanel7.Font = new System.Drawing.Font("Arial Rounded MT Bold", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.ulPanel7.ForeColor = System.Drawing.Color.White;
            this.ulPanel7.InnerColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.ulPanel7.InnerColor2 = System.Drawing.Color.White;
            this.ulPanel7.Location = new System.Drawing.Point(6, 6);
            this.ulPanel7.Name = "ulPanel7";
            this.ulPanel7.OuterColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.ulPanel7.OuterColor2 = System.Drawing.Color.White;
            this.ulPanel7.Size = new System.Drawing.Size(302, 28);
            this.ulPanel7.Spacing = 0;
            this.ulPanel7.TabIndex = 5;
            this.ulPanel7.Text = "METHOD";
            this.ulPanel7.TextHAlign = Ulee.Controls.EUlHoriAlign.Center;
            this.ulPanel7.TextVAlign = Ulee.Controls.EUlVertAlign.Middle;
            // 
            // ulPanel3
            // 
            this.ulPanel3.BackColor = System.Drawing.SystemColors.Control;
            this.ulPanel3.BevelInner = Ulee.Controls.EUlBevelStyle.Raised;
            this.ulPanel3.BevelOuter = Ulee.Controls.EUlBevelStyle.Lowered;
            this.ulPanel3.Controls.Add(this.indoor11Grid);
            this.ulPanel3.Controls.Add(this.ulPanel17);
            this.ulPanel3.InnerColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.ulPanel3.InnerColor2 = System.Drawing.Color.White;
            this.ulPanel3.Location = new System.Drawing.Point(1070, 120);
            this.ulPanel3.Name = "ulPanel3";
            this.ulPanel3.OuterColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.ulPanel3.OuterColor2 = System.Drawing.Color.White;
            this.ulPanel3.Size = new System.Drawing.Size(314, 143);
            this.ulPanel3.Spacing = 0;
            this.ulPanel3.TabIndex = 16;
            this.ulPanel3.TextHAlign = Ulee.Controls.EUlHoriAlign.Center;
            this.ulPanel3.TextVAlign = Ulee.Controls.EUlVertAlign.Middle;
            // 
            // indoor11Grid
            // 
            this.indoor11Grid.Cursor = System.Windows.Forms.Cursors.Default;
            this.indoor11Grid.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.indoor11Grid.Location = new System.Drawing.Point(6, 40);
            this.indoor11Grid.MainView = this.indoor11GridView;
            this.indoor11Grid.Name = "indoor11Grid";
            this.indoor11Grid.Size = new System.Drawing.Size(302, 97);
            this.indoor11Grid.TabIndex = 280;
            this.indoor11Grid.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] {
            this.indoor11GridView});
            // 
            // indoor11GridView
            // 
            this.indoor11GridView.Appearance.FixedLine.Font = new System.Drawing.Font("Arial", 9F);
            this.indoor11GridView.Appearance.FixedLine.Options.UseFont = true;
            this.indoor11GridView.Appearance.FocusedRow.Font = new System.Drawing.Font("Arial", 9F);
            this.indoor11GridView.Appearance.FocusedRow.Options.UseFont = true;
            this.indoor11GridView.Appearance.HeaderPanel.Font = new System.Drawing.Font("Arial", 9F);
            this.indoor11GridView.Appearance.HeaderPanel.Options.UseFont = true;
            this.indoor11GridView.Appearance.HideSelectionRow.Font = new System.Drawing.Font("Arial", 9F);
            this.indoor11GridView.Appearance.HideSelectionRow.Options.UseFont = true;
            this.indoor11GridView.Appearance.OddRow.Font = new System.Drawing.Font("Arial", 9F);
            this.indoor11GridView.Appearance.OddRow.Options.UseFont = true;
            this.indoor11GridView.Appearance.Preview.Font = new System.Drawing.Font("Arial", 9F);
            this.indoor11GridView.Appearance.Preview.Options.UseFont = true;
            this.indoor11GridView.Appearance.Row.Font = new System.Drawing.Font("Arial", 9F);
            this.indoor11GridView.Appearance.Row.Options.UseFont = true;
            this.indoor11GridView.Appearance.SelectedRow.Font = new System.Drawing.Font("Arial", 9F);
            this.indoor11GridView.Appearance.SelectedRow.Options.UseFont = true;
            this.indoor11GridView.Appearance.ViewCaption.Font = new System.Drawing.Font("Arial", 9F);
            this.indoor11GridView.Appearance.ViewCaption.Options.UseFont = true;
            this.indoor11GridView.Columns.AddRange(new DevExpress.XtraGrid.Columns.GridColumn[] {
            this.ID11NameColumn,
            this.ID11ValueColumn,
            this.ID11UnitColumn});
            this.indoor11GridView.CustomizationFormBounds = new System.Drawing.Rectangle(2884, 580, 210, 186);
            this.indoor11GridView.GridControl = this.indoor11Grid;
            this.indoor11GridView.Name = "indoor11GridView";
            this.indoor11GridView.OptionsBehavior.Editable = false;
            this.indoor11GridView.OptionsBehavior.ReadOnly = true;
            this.indoor11GridView.OptionsClipboard.AllowCopy = DevExpress.Utils.DefaultBoolean.True;
            this.indoor11GridView.OptionsClipboard.AllowExcelFormat = DevExpress.Utils.DefaultBoolean.True;
            this.indoor11GridView.OptionsSelection.MultiSelect = true;
            this.indoor11GridView.OptionsSelection.MultiSelectMode = DevExpress.XtraGrid.Views.Grid.GridMultiSelectMode.CellSelect;
            this.indoor11GridView.OptionsView.ColumnAutoWidth = false;
            this.indoor11GridView.OptionsView.ShowColumnHeaders = false;
            this.indoor11GridView.OptionsView.ShowGroupPanel = false;
            this.indoor11GridView.OptionsView.ShowIndicator = false;
            this.indoor11GridView.Tag = 0;
            // 
            // ID11NameColumn
            // 
            this.ID11NameColumn.AppearanceCell.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.ID11NameColumn.AppearanceCell.Options.UseFont = true;
            this.ID11NameColumn.AppearanceCell.Options.UseTextOptions = true;
            this.ID11NameColumn.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Near;
            this.ID11NameColumn.AppearanceHeader.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.ID11NameColumn.AppearanceHeader.Options.UseFont = true;
            this.ID11NameColumn.AppearanceHeader.Options.UseTextOptions = true;
            this.ID11NameColumn.AppearanceHeader.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Near;
            this.ID11NameColumn.Caption = "Name";
            this.ID11NameColumn.FieldName = "Name";
            this.ID11NameColumn.Name = "ID11NameColumn";
            this.ID11NameColumn.OptionsColumn.AllowEdit = false;
            this.ID11NameColumn.OptionsColumn.AllowFocus = false;
            this.ID11NameColumn.OptionsColumn.AllowGroup = DevExpress.Utils.DefaultBoolean.False;
            this.ID11NameColumn.OptionsColumn.AllowIncrementalSearch = false;
            this.ID11NameColumn.OptionsColumn.AllowMerge = DevExpress.Utils.DefaultBoolean.False;
            this.ID11NameColumn.OptionsColumn.AllowMove = false;
            this.ID11NameColumn.OptionsColumn.AllowShowHide = false;
            this.ID11NameColumn.OptionsColumn.AllowSize = false;
            this.ID11NameColumn.OptionsColumn.AllowSort = DevExpress.Utils.DefaultBoolean.False;
            this.ID11NameColumn.OptionsColumn.FixedWidth = true;
            this.ID11NameColumn.OptionsColumn.ImmediateUpdateRowPosition = DevExpress.Utils.DefaultBoolean.False;
            this.ID11NameColumn.OptionsColumn.Printable = DevExpress.Utils.DefaultBoolean.False;
            this.ID11NameColumn.OptionsColumn.ReadOnly = true;
            this.ID11NameColumn.OptionsColumn.TabStop = false;
            this.ID11NameColumn.OptionsFilter.AllowAutoFilter = false;
            this.ID11NameColumn.OptionsFilter.AllowFilter = false;
            this.ID11NameColumn.Visible = true;
            this.ID11NameColumn.VisibleIndex = 0;
            this.ID11NameColumn.Width = 157;
            // 
            // ID11ValueColumn
            // 
            this.ID11ValueColumn.AppearanceCell.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.ID11ValueColumn.AppearanceCell.Options.UseFont = true;
            this.ID11ValueColumn.AppearanceCell.Options.UseTextOptions = true;
            this.ID11ValueColumn.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
            this.ID11ValueColumn.AppearanceHeader.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.ID11ValueColumn.AppearanceHeader.Options.UseFont = true;
            this.ID11ValueColumn.AppearanceHeader.Options.UseTextOptions = true;
            this.ID11ValueColumn.AppearanceHeader.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Near;
            this.ID11ValueColumn.Caption = "Value";
            this.ID11ValueColumn.FieldName = "Value";
            this.ID11ValueColumn.Name = "ID11ValueColumn";
            this.ID11ValueColumn.OptionsColumn.AllowEdit = false;
            this.ID11ValueColumn.OptionsColumn.AllowFocus = false;
            this.ID11ValueColumn.OptionsColumn.AllowGroup = DevExpress.Utils.DefaultBoolean.False;
            this.ID11ValueColumn.OptionsColumn.AllowIncrementalSearch = false;
            this.ID11ValueColumn.OptionsColumn.AllowMerge = DevExpress.Utils.DefaultBoolean.False;
            this.ID11ValueColumn.OptionsColumn.AllowMove = false;
            this.ID11ValueColumn.OptionsColumn.AllowShowHide = false;
            this.ID11ValueColumn.OptionsColumn.AllowSize = false;
            this.ID11ValueColumn.OptionsColumn.AllowSort = DevExpress.Utils.DefaultBoolean.False;
            this.ID11ValueColumn.OptionsColumn.FixedWidth = true;
            this.ID11ValueColumn.OptionsColumn.ReadOnly = true;
            this.ID11ValueColumn.Visible = true;
            this.ID11ValueColumn.VisibleIndex = 1;
            this.ID11ValueColumn.Width = 98;
            // 
            // ID11UnitColumn
            // 
            this.ID11UnitColumn.AppearanceCell.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.ID11UnitColumn.AppearanceCell.Options.UseFont = true;
            this.ID11UnitColumn.AppearanceCell.Options.UseTextOptions = true;
            this.ID11UnitColumn.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Near;
            this.ID11UnitColumn.AppearanceHeader.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.ID11UnitColumn.AppearanceHeader.Options.UseFont = true;
            this.ID11UnitColumn.AppearanceHeader.Options.UseTextOptions = true;
            this.ID11UnitColumn.AppearanceHeader.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Near;
            this.ID11UnitColumn.Caption = "Unit";
            this.ID11UnitColumn.FieldName = "Unit";
            this.ID11UnitColumn.Name = "ID11UnitColumn";
            this.ID11UnitColumn.OptionsColumn.AllowEdit = false;
            this.ID11UnitColumn.OptionsColumn.AllowFocus = false;
            this.ID11UnitColumn.OptionsColumn.AllowGroup = DevExpress.Utils.DefaultBoolean.False;
            this.ID11UnitColumn.OptionsColumn.AllowIncrementalSearch = false;
            this.ID11UnitColumn.OptionsColumn.AllowMerge = DevExpress.Utils.DefaultBoolean.False;
            this.ID11UnitColumn.OptionsColumn.AllowMove = false;
            this.ID11UnitColumn.OptionsColumn.AllowShowHide = false;
            this.ID11UnitColumn.OptionsColumn.AllowSize = false;
            this.ID11UnitColumn.OptionsColumn.AllowSort = DevExpress.Utils.DefaultBoolean.False;
            this.ID11UnitColumn.OptionsColumn.FixedWidth = true;
            this.ID11UnitColumn.OptionsColumn.ImmediateUpdateRowPosition = DevExpress.Utils.DefaultBoolean.False;
            this.ID11UnitColumn.OptionsColumn.Printable = DevExpress.Utils.DefaultBoolean.False;
            this.ID11UnitColumn.OptionsColumn.ReadOnly = true;
            this.ID11UnitColumn.OptionsFilter.AllowAutoFilter = false;
            this.ID11UnitColumn.OptionsFilter.AllowFilter = false;
            this.ID11UnitColumn.Visible = true;
            this.ID11UnitColumn.VisibleIndex = 2;
            this.ID11UnitColumn.Width = 44;
            // 
            // ulPanel17
            // 
            this.ulPanel17.BackColor = System.Drawing.Color.DeepSkyBlue;
            this.ulPanel17.BevelInner = Ulee.Controls.EUlBevelStyle.None;
            this.ulPanel17.BevelOuter = Ulee.Controls.EUlBevelStyle.Lowered;
            this.ulPanel17.Font = new System.Drawing.Font("Arial Rounded MT Bold", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.ulPanel17.ForeColor = System.Drawing.Color.White;
            this.ulPanel17.InnerColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.ulPanel17.InnerColor2 = System.Drawing.Color.White;
            this.ulPanel17.Location = new System.Drawing.Point(6, 6);
            this.ulPanel17.Name = "ulPanel17";
            this.ulPanel17.OuterColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.ulPanel17.OuterColor2 = System.Drawing.Color.White;
            this.ulPanel17.Size = new System.Drawing.Size(302, 28);
            this.ulPanel17.Spacing = 0;
            this.ulPanel17.TabIndex = 5;
            this.ulPanel17.Text = "INDOOR1 #1";
            this.ulPanel17.TextHAlign = Ulee.Controls.EUlHoriAlign.Center;
            this.ulPanel17.TextVAlign = Ulee.Controls.EUlVertAlign.Middle;
            // 
            // ulPanel79
            // 
            this.ulPanel79.BackColor = System.Drawing.SystemColors.Control;
            this.ulPanel79.BevelInner = Ulee.Controls.EUlBevelStyle.Raised;
            this.ulPanel79.BevelOuter = Ulee.Controls.EUlBevelStyle.Lowered;
            this.ulPanel79.Controls.Add(this.outdoorGrid);
            this.ulPanel79.Controls.Add(this.ulPanel83);
            this.ulPanel79.InnerColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.ulPanel79.InnerColor2 = System.Drawing.Color.White;
            this.ulPanel79.Location = new System.Drawing.Point(1070, 716);
            this.ulPanel79.Name = "ulPanel79";
            this.ulPanel79.OuterColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.ulPanel79.OuterColor2 = System.Drawing.Color.White;
            this.ulPanel79.Size = new System.Drawing.Size(314, 143);
            this.ulPanel79.Spacing = 0;
            this.ulPanel79.TabIndex = 15;
            this.ulPanel79.TextHAlign = Ulee.Controls.EUlHoriAlign.Center;
            this.ulPanel79.TextVAlign = Ulee.Controls.EUlVertAlign.Middle;
            // 
            // outdoorGrid
            // 
            this.outdoorGrid.Cursor = System.Windows.Forms.Cursors.Default;
            this.outdoorGrid.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.outdoorGrid.Location = new System.Drawing.Point(6, 40);
            this.outdoorGrid.MainView = this.outdoorGridView;
            this.outdoorGrid.Name = "outdoorGrid";
            this.outdoorGrid.Size = new System.Drawing.Size(302, 97);
            this.outdoorGrid.TabIndex = 281;
            this.outdoorGrid.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] {
            this.outdoorGridView});
            // 
            // outdoorGridView
            // 
            this.outdoorGridView.Appearance.FixedLine.Font = new System.Drawing.Font("Arial", 9F);
            this.outdoorGridView.Appearance.FixedLine.Options.UseFont = true;
            this.outdoorGridView.Appearance.FocusedRow.Font = new System.Drawing.Font("Arial", 9F);
            this.outdoorGridView.Appearance.FocusedRow.Options.UseFont = true;
            this.outdoorGridView.Appearance.HeaderPanel.Font = new System.Drawing.Font("Arial", 9F);
            this.outdoorGridView.Appearance.HeaderPanel.Options.UseFont = true;
            this.outdoorGridView.Appearance.HideSelectionRow.Font = new System.Drawing.Font("Arial", 9F);
            this.outdoorGridView.Appearance.HideSelectionRow.Options.UseFont = true;
            this.outdoorGridView.Appearance.OddRow.Font = new System.Drawing.Font("Arial", 9F);
            this.outdoorGridView.Appearance.OddRow.Options.UseFont = true;
            this.outdoorGridView.Appearance.Preview.Font = new System.Drawing.Font("Arial", 9F);
            this.outdoorGridView.Appearance.Preview.Options.UseFont = true;
            this.outdoorGridView.Appearance.Row.Font = new System.Drawing.Font("Arial", 9F);
            this.outdoorGridView.Appearance.Row.Options.UseFont = true;
            this.outdoorGridView.Appearance.SelectedRow.Font = new System.Drawing.Font("Arial", 9F);
            this.outdoorGridView.Appearance.SelectedRow.Options.UseFont = true;
            this.outdoorGridView.Appearance.ViewCaption.Font = new System.Drawing.Font("Arial", 9F);
            this.outdoorGridView.Appearance.ViewCaption.Options.UseFont = true;
            this.outdoorGridView.Columns.AddRange(new DevExpress.XtraGrid.Columns.GridColumn[] {
            this.ODNameColumn,
            this.ODValueColumn,
            this.ODUnitColumn});
            this.outdoorGridView.CustomizationFormBounds = new System.Drawing.Rectangle(2884, 580, 210, 186);
            this.outdoorGridView.GridControl = this.outdoorGrid;
            this.outdoorGridView.Name = "outdoorGridView";
            this.outdoorGridView.OptionsBehavior.Editable = false;
            this.outdoorGridView.OptionsBehavior.ReadOnly = true;
            this.outdoorGridView.OptionsClipboard.AllowCopy = DevExpress.Utils.DefaultBoolean.True;
            this.outdoorGridView.OptionsClipboard.AllowExcelFormat = DevExpress.Utils.DefaultBoolean.True;
            this.outdoorGridView.OptionsSelection.MultiSelect = true;
            this.outdoorGridView.OptionsSelection.MultiSelectMode = DevExpress.XtraGrid.Views.Grid.GridMultiSelectMode.CellSelect;
            this.outdoorGridView.OptionsView.ColumnAutoWidth = false;
            this.outdoorGridView.OptionsView.ShowColumnHeaders = false;
            this.outdoorGridView.OptionsView.ShowGroupPanel = false;
            this.outdoorGridView.OptionsView.ShowIndicator = false;
            this.outdoorGridView.Tag = 0;
            // 
            // ODNameColumn
            // 
            this.ODNameColumn.AppearanceCell.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.ODNameColumn.AppearanceCell.Options.UseFont = true;
            this.ODNameColumn.AppearanceCell.Options.UseTextOptions = true;
            this.ODNameColumn.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Near;
            this.ODNameColumn.AppearanceHeader.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.ODNameColumn.AppearanceHeader.Options.UseFont = true;
            this.ODNameColumn.AppearanceHeader.Options.UseTextOptions = true;
            this.ODNameColumn.AppearanceHeader.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Near;
            this.ODNameColumn.Caption = "Name";
            this.ODNameColumn.FieldName = "Name";
            this.ODNameColumn.Name = "ODNameColumn";
            this.ODNameColumn.OptionsColumn.AllowEdit = false;
            this.ODNameColumn.OptionsColumn.AllowFocus = false;
            this.ODNameColumn.OptionsColumn.AllowGroup = DevExpress.Utils.DefaultBoolean.False;
            this.ODNameColumn.OptionsColumn.AllowIncrementalSearch = false;
            this.ODNameColumn.OptionsColumn.AllowMerge = DevExpress.Utils.DefaultBoolean.False;
            this.ODNameColumn.OptionsColumn.AllowMove = false;
            this.ODNameColumn.OptionsColumn.AllowShowHide = false;
            this.ODNameColumn.OptionsColumn.AllowSize = false;
            this.ODNameColumn.OptionsColumn.AllowSort = DevExpress.Utils.DefaultBoolean.False;
            this.ODNameColumn.OptionsColumn.FixedWidth = true;
            this.ODNameColumn.OptionsColumn.ImmediateUpdateRowPosition = DevExpress.Utils.DefaultBoolean.False;
            this.ODNameColumn.OptionsColumn.Printable = DevExpress.Utils.DefaultBoolean.False;
            this.ODNameColumn.OptionsColumn.ReadOnly = true;
            this.ODNameColumn.OptionsColumn.TabStop = false;
            this.ODNameColumn.OptionsFilter.AllowAutoFilter = false;
            this.ODNameColumn.OptionsFilter.AllowFilter = false;
            this.ODNameColumn.Visible = true;
            this.ODNameColumn.VisibleIndex = 0;
            this.ODNameColumn.Width = 157;
            // 
            // ODValueColumn
            // 
            this.ODValueColumn.AppearanceCell.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.ODValueColumn.AppearanceCell.Options.UseFont = true;
            this.ODValueColumn.AppearanceCell.Options.UseTextOptions = true;
            this.ODValueColumn.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
            this.ODValueColumn.AppearanceHeader.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.ODValueColumn.AppearanceHeader.Options.UseFont = true;
            this.ODValueColumn.AppearanceHeader.Options.UseTextOptions = true;
            this.ODValueColumn.AppearanceHeader.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Near;
            this.ODValueColumn.Caption = "Value";
            this.ODValueColumn.FieldName = "Value";
            this.ODValueColumn.Name = "ODValueColumn";
            this.ODValueColumn.OptionsColumn.AllowEdit = false;
            this.ODValueColumn.OptionsColumn.AllowFocus = false;
            this.ODValueColumn.OptionsColumn.AllowGroup = DevExpress.Utils.DefaultBoolean.False;
            this.ODValueColumn.OptionsColumn.AllowIncrementalSearch = false;
            this.ODValueColumn.OptionsColumn.AllowMerge = DevExpress.Utils.DefaultBoolean.False;
            this.ODValueColumn.OptionsColumn.AllowMove = false;
            this.ODValueColumn.OptionsColumn.AllowShowHide = false;
            this.ODValueColumn.OptionsColumn.AllowSize = false;
            this.ODValueColumn.OptionsColumn.AllowSort = DevExpress.Utils.DefaultBoolean.False;
            this.ODValueColumn.OptionsColumn.FixedWidth = true;
            this.ODValueColumn.OptionsColumn.ReadOnly = true;
            this.ODValueColumn.Visible = true;
            this.ODValueColumn.VisibleIndex = 1;
            this.ODValueColumn.Width = 98;
            // 
            // ODUnitColumn
            // 
            this.ODUnitColumn.AppearanceCell.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.ODUnitColumn.AppearanceCell.Options.UseFont = true;
            this.ODUnitColumn.AppearanceCell.Options.UseTextOptions = true;
            this.ODUnitColumn.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Near;
            this.ODUnitColumn.AppearanceHeader.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.ODUnitColumn.AppearanceHeader.Options.UseFont = true;
            this.ODUnitColumn.AppearanceHeader.Options.UseTextOptions = true;
            this.ODUnitColumn.AppearanceHeader.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Near;
            this.ODUnitColumn.Caption = "Unit";
            this.ODUnitColumn.FieldName = "Unit";
            this.ODUnitColumn.Name = "ODUnitColumn";
            this.ODUnitColumn.OptionsColumn.AllowEdit = false;
            this.ODUnitColumn.OptionsColumn.AllowFocus = false;
            this.ODUnitColumn.OptionsColumn.AllowGroup = DevExpress.Utils.DefaultBoolean.False;
            this.ODUnitColumn.OptionsColumn.AllowIncrementalSearch = false;
            this.ODUnitColumn.OptionsColumn.AllowMerge = DevExpress.Utils.DefaultBoolean.False;
            this.ODUnitColumn.OptionsColumn.AllowMove = false;
            this.ODUnitColumn.OptionsColumn.AllowShowHide = false;
            this.ODUnitColumn.OptionsColumn.AllowSize = false;
            this.ODUnitColumn.OptionsColumn.AllowSort = DevExpress.Utils.DefaultBoolean.False;
            this.ODUnitColumn.OptionsColumn.FixedWidth = true;
            this.ODUnitColumn.OptionsColumn.ImmediateUpdateRowPosition = DevExpress.Utils.DefaultBoolean.False;
            this.ODUnitColumn.OptionsColumn.Printable = DevExpress.Utils.DefaultBoolean.False;
            this.ODUnitColumn.OptionsColumn.ReadOnly = true;
            this.ODUnitColumn.OptionsFilter.AllowAutoFilter = false;
            this.ODUnitColumn.OptionsFilter.AllowFilter = false;
            this.ODUnitColumn.Visible = true;
            this.ODUnitColumn.VisibleIndex = 2;
            this.ODUnitColumn.Width = 44;
            // 
            // ulPanel83
            // 
            this.ulPanel83.BackColor = System.Drawing.Color.DeepSkyBlue;
            this.ulPanel83.BevelInner = Ulee.Controls.EUlBevelStyle.None;
            this.ulPanel83.BevelOuter = Ulee.Controls.EUlBevelStyle.Lowered;
            this.ulPanel83.Font = new System.Drawing.Font("Arial Rounded MT Bold", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.ulPanel83.ForeColor = System.Drawing.Color.White;
            this.ulPanel83.InnerColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.ulPanel83.InnerColor2 = System.Drawing.Color.White;
            this.ulPanel83.Location = new System.Drawing.Point(6, 6);
            this.ulPanel83.Name = "ulPanel83";
            this.ulPanel83.OuterColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.ulPanel83.OuterColor2 = System.Drawing.Color.White;
            this.ulPanel83.Size = new System.Drawing.Size(302, 28);
            this.ulPanel83.Spacing = 0;
            this.ulPanel83.TabIndex = 5;
            this.ulPanel83.Text = "OUTDOOR";
            this.ulPanel83.TextHAlign = Ulee.Controls.EUlHoriAlign.Center;
            this.ulPanel83.TextVAlign = Ulee.Controls.EUlVertAlign.Middle;
            // 
            // ulPanel59
            // 
            this.ulPanel59.BackColor = System.Drawing.SystemColors.Control;
            this.ulPanel59.BevelInner = Ulee.Controls.EUlBevelStyle.Raised;
            this.ulPanel59.BevelOuter = Ulee.Controls.EUlBevelStyle.Lowered;
            this.ulPanel59.Controls.Add(this.ratedGrid);
            this.ulPanel59.Controls.Add(this.ulPanel60);
            this.ulPanel59.InnerColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.ulPanel59.InnerColor2 = System.Drawing.Color.White;
            this.ulPanel59.Location = new System.Drawing.Point(692, 621);
            this.ulPanel59.Name = "ulPanel59";
            this.ulPanel59.OuterColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.ulPanel59.OuterColor2 = System.Drawing.Color.White;
            this.ulPanel59.Size = new System.Drawing.Size(372, 238);
            this.ulPanel59.Spacing = 0;
            this.ulPanel59.TabIndex = 11;
            this.ulPanel59.TextHAlign = Ulee.Controls.EUlHoriAlign.Center;
            this.ulPanel59.TextVAlign = Ulee.Controls.EUlVertAlign.Middle;
            // 
            // ratedGrid
            // 
            this.ratedGrid.Cursor = System.Windows.Forms.Cursors.Default;
            this.ratedGrid.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.ratedGrid.Location = new System.Drawing.Point(6, 40);
            this.ratedGrid.MainView = this.ratedGridView;
            this.ratedGrid.Name = "ratedGrid";
            this.ratedGrid.Size = new System.Drawing.Size(360, 192);
            this.ratedGrid.TabIndex = 279;
            this.ratedGrid.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] {
            this.ratedGridView});
            // 
            // ratedGridView
            // 
            this.ratedGridView.Appearance.FixedLine.Font = new System.Drawing.Font("Arial", 9F);
            this.ratedGridView.Appearance.FixedLine.Options.UseFont = true;
            this.ratedGridView.Appearance.FocusedRow.Font = new System.Drawing.Font("Arial", 9F);
            this.ratedGridView.Appearance.FocusedRow.Options.UseFont = true;
            this.ratedGridView.Appearance.HeaderPanel.Font = new System.Drawing.Font("Arial", 9F);
            this.ratedGridView.Appearance.HeaderPanel.Options.UseFont = true;
            this.ratedGridView.Appearance.HideSelectionRow.Font = new System.Drawing.Font("Arial", 9F);
            this.ratedGridView.Appearance.HideSelectionRow.Options.UseFont = true;
            this.ratedGridView.Appearance.OddRow.Font = new System.Drawing.Font("Arial", 9F);
            this.ratedGridView.Appearance.OddRow.Options.UseFont = true;
            this.ratedGridView.Appearance.Preview.Font = new System.Drawing.Font("Arial", 9F);
            this.ratedGridView.Appearance.Preview.Options.UseFont = true;
            this.ratedGridView.Appearance.Row.Font = new System.Drawing.Font("Arial", 9F);
            this.ratedGridView.Appearance.Row.Options.UseFont = true;
            this.ratedGridView.Appearance.SelectedRow.Font = new System.Drawing.Font("Arial", 9F);
            this.ratedGridView.Appearance.SelectedRow.Options.UseFont = true;
            this.ratedGridView.Appearance.ViewCaption.Font = new System.Drawing.Font("Arial", 9F);
            this.ratedGridView.Appearance.ViewCaption.Options.UseFont = true;
            this.ratedGridView.Columns.AddRange(new DevExpress.XtraGrid.Columns.GridColumn[] {
            this.rgNameColumn,
            this.rgValueColumn,
            this.rgUnitColumn});
            this.ratedGridView.CustomizationFormBounds = new System.Drawing.Rectangle(2884, 580, 210, 186);
            this.ratedGridView.GridControl = this.ratedGrid;
            this.ratedGridView.Name = "ratedGridView";
            this.ratedGridView.OptionsBehavior.Editable = false;
            this.ratedGridView.OptionsBehavior.ReadOnly = true;
            this.ratedGridView.OptionsClipboard.AllowCopy = DevExpress.Utils.DefaultBoolean.True;
            this.ratedGridView.OptionsClipboard.AllowExcelFormat = DevExpress.Utils.DefaultBoolean.True;
            this.ratedGridView.OptionsSelection.MultiSelect = true;
            this.ratedGridView.OptionsSelection.MultiSelectMode = DevExpress.XtraGrid.Views.Grid.GridMultiSelectMode.CellSelect;
            this.ratedGridView.OptionsView.ColumnAutoWidth = false;
            this.ratedGridView.OptionsView.ShowColumnHeaders = false;
            this.ratedGridView.OptionsView.ShowGroupPanel = false;
            this.ratedGridView.OptionsView.ShowIndicator = false;
            this.ratedGridView.Tag = 0;
            // 
            // rgNameColumn
            // 
            this.rgNameColumn.AppearanceCell.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.rgNameColumn.AppearanceCell.Options.UseFont = true;
            this.rgNameColumn.AppearanceCell.Options.UseTextOptions = true;
            this.rgNameColumn.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Near;
            this.rgNameColumn.AppearanceHeader.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.rgNameColumn.AppearanceHeader.Options.UseFont = true;
            this.rgNameColumn.AppearanceHeader.Options.UseTextOptions = true;
            this.rgNameColumn.AppearanceHeader.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Near;
            this.rgNameColumn.Caption = "Name";
            this.rgNameColumn.FieldName = "Name";
            this.rgNameColumn.Name = "rgNameColumn";
            this.rgNameColumn.OptionsColumn.AllowEdit = false;
            this.rgNameColumn.OptionsColumn.AllowFocus = false;
            this.rgNameColumn.OptionsColumn.AllowGroup = DevExpress.Utils.DefaultBoolean.False;
            this.rgNameColumn.OptionsColumn.AllowIncrementalSearch = false;
            this.rgNameColumn.OptionsColumn.AllowMerge = DevExpress.Utils.DefaultBoolean.False;
            this.rgNameColumn.OptionsColumn.AllowMove = false;
            this.rgNameColumn.OptionsColumn.AllowShowHide = false;
            this.rgNameColumn.OptionsColumn.AllowSize = false;
            this.rgNameColumn.OptionsColumn.AllowSort = DevExpress.Utils.DefaultBoolean.False;
            this.rgNameColumn.OptionsColumn.FixedWidth = true;
            this.rgNameColumn.OptionsColumn.ImmediateUpdateRowPosition = DevExpress.Utils.DefaultBoolean.False;
            this.rgNameColumn.OptionsColumn.Printable = DevExpress.Utils.DefaultBoolean.False;
            this.rgNameColumn.OptionsColumn.ReadOnly = true;
            this.rgNameColumn.OptionsColumn.TabStop = false;
            this.rgNameColumn.OptionsFilter.AllowAutoFilter = false;
            this.rgNameColumn.OptionsFilter.AllowFilter = false;
            this.rgNameColumn.Visible = true;
            this.rgNameColumn.VisibleIndex = 0;
            this.rgNameColumn.Width = 156;
            // 
            // rgValueColumn
            // 
            this.rgValueColumn.AppearanceCell.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.rgValueColumn.AppearanceCell.Options.UseFont = true;
            this.rgValueColumn.AppearanceCell.Options.UseTextOptions = true;
            this.rgValueColumn.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
            this.rgValueColumn.AppearanceHeader.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.rgValueColumn.AppearanceHeader.Options.UseFont = true;
            this.rgValueColumn.AppearanceHeader.Options.UseTextOptions = true;
            this.rgValueColumn.AppearanceHeader.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Near;
            this.rgValueColumn.Caption = "Value";
            this.rgValueColumn.FieldName = "Value";
            this.rgValueColumn.Name = "rgValueColumn";
            this.rgValueColumn.OptionsColumn.AllowEdit = false;
            this.rgValueColumn.OptionsColumn.AllowFocus = false;
            this.rgValueColumn.OptionsColumn.AllowGroup = DevExpress.Utils.DefaultBoolean.False;
            this.rgValueColumn.OptionsColumn.AllowIncrementalSearch = false;
            this.rgValueColumn.OptionsColumn.AllowMerge = DevExpress.Utils.DefaultBoolean.False;
            this.rgValueColumn.OptionsColumn.AllowMove = false;
            this.rgValueColumn.OptionsColumn.AllowShowHide = false;
            this.rgValueColumn.OptionsColumn.AllowSize = false;
            this.rgValueColumn.OptionsColumn.AllowSort = DevExpress.Utils.DefaultBoolean.False;
            this.rgValueColumn.OptionsColumn.FixedWidth = true;
            this.rgValueColumn.OptionsColumn.ReadOnly = true;
            this.rgValueColumn.Visible = true;
            this.rgValueColumn.VisibleIndex = 1;
            this.rgValueColumn.Width = 129;
            // 
            // rgUnitColumn
            // 
            this.rgUnitColumn.AppearanceCell.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.rgUnitColumn.AppearanceCell.Options.UseFont = true;
            this.rgUnitColumn.AppearanceCell.Options.UseTextOptions = true;
            this.rgUnitColumn.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Near;
            this.rgUnitColumn.AppearanceHeader.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.rgUnitColumn.AppearanceHeader.Options.UseFont = true;
            this.rgUnitColumn.AppearanceHeader.Options.UseTextOptions = true;
            this.rgUnitColumn.AppearanceHeader.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Near;
            this.rgUnitColumn.Caption = "Unit";
            this.rgUnitColumn.FieldName = "Unit";
            this.rgUnitColumn.Name = "rgUnitColumn";
            this.rgUnitColumn.OptionsColumn.AllowEdit = false;
            this.rgUnitColumn.OptionsColumn.AllowFocus = false;
            this.rgUnitColumn.OptionsColumn.AllowGroup = DevExpress.Utils.DefaultBoolean.False;
            this.rgUnitColumn.OptionsColumn.AllowIncrementalSearch = false;
            this.rgUnitColumn.OptionsColumn.AllowMerge = DevExpress.Utils.DefaultBoolean.False;
            this.rgUnitColumn.OptionsColumn.AllowMove = false;
            this.rgUnitColumn.OptionsColumn.AllowShowHide = false;
            this.rgUnitColumn.OptionsColumn.AllowSize = false;
            this.rgUnitColumn.OptionsColumn.AllowSort = DevExpress.Utils.DefaultBoolean.False;
            this.rgUnitColumn.OptionsColumn.FixedWidth = true;
            this.rgUnitColumn.OptionsColumn.ImmediateUpdateRowPosition = DevExpress.Utils.DefaultBoolean.False;
            this.rgUnitColumn.OptionsColumn.Printable = DevExpress.Utils.DefaultBoolean.False;
            this.rgUnitColumn.OptionsColumn.ReadOnly = true;
            this.rgUnitColumn.OptionsFilter.AllowAutoFilter = false;
            this.rgUnitColumn.OptionsFilter.AllowFilter = false;
            this.rgUnitColumn.Visible = true;
            this.rgUnitColumn.VisibleIndex = 2;
            this.rgUnitColumn.Width = 72;
            // 
            // ulPanel60
            // 
            this.ulPanel60.BackColor = System.Drawing.Color.DeepSkyBlue;
            this.ulPanel60.BevelInner = Ulee.Controls.EUlBevelStyle.None;
            this.ulPanel60.BevelOuter = Ulee.Controls.EUlBevelStyle.Lowered;
            this.ulPanel60.Font = new System.Drawing.Font("Arial Rounded MT Bold", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.ulPanel60.ForeColor = System.Drawing.Color.White;
            this.ulPanel60.InnerColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.ulPanel60.InnerColor2 = System.Drawing.Color.White;
            this.ulPanel60.Location = new System.Drawing.Point(6, 6);
            this.ulPanel60.Name = "ulPanel60";
            this.ulPanel60.OuterColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.ulPanel60.OuterColor2 = System.Drawing.Color.White;
            this.ulPanel60.Size = new System.Drawing.Size(360, 28);
            this.ulPanel60.Spacing = 0;
            this.ulPanel60.TabIndex = 5;
            this.ulPanel60.Text = "RATED POWER";
            this.ulPanel60.TextHAlign = Ulee.Controls.EUlHoriAlign.Center;
            this.ulPanel60.TextVAlign = Ulee.Controls.EUlVertAlign.Middle;
            // 
            // ulPanel69
            // 
            this.ulPanel69.BackColor = System.Drawing.SystemColors.Control;
            this.ulPanel69.BevelInner = Ulee.Controls.EUlBevelStyle.Raised;
            this.ulPanel69.BevelOuter = Ulee.Controls.EUlBevelStyle.Lowered;
            this.ulPanel69.Controls.Add(this.indoor22Grid);
            this.ulPanel69.Controls.Add(this.ulPanel73);
            this.ulPanel69.InnerColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.ulPanel69.InnerColor2 = System.Drawing.Color.White;
            this.ulPanel69.Location = new System.Drawing.Point(1070, 567);
            this.ulPanel69.Name = "ulPanel69";
            this.ulPanel69.OuterColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.ulPanel69.OuterColor2 = System.Drawing.Color.White;
            this.ulPanel69.Size = new System.Drawing.Size(314, 143);
            this.ulPanel69.Spacing = 0;
            this.ulPanel69.TabIndex = 14;
            this.ulPanel69.TextHAlign = Ulee.Controls.EUlHoriAlign.Center;
            this.ulPanel69.TextVAlign = Ulee.Controls.EUlVertAlign.Middle;
            // 
            // indoor22Grid
            // 
            this.indoor22Grid.Cursor = System.Windows.Forms.Cursors.Default;
            this.indoor22Grid.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.indoor22Grid.Location = new System.Drawing.Point(6, 40);
            this.indoor22Grid.MainView = this.indoor22GridView;
            this.indoor22Grid.Name = "indoor22Grid";
            this.indoor22Grid.Size = new System.Drawing.Size(302, 97);
            this.indoor22Grid.TabIndex = 281;
            this.indoor22Grid.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] {
            this.indoor22GridView});
            // 
            // indoor22GridView
            // 
            this.indoor22GridView.Appearance.FixedLine.Font = new System.Drawing.Font("Arial", 9F);
            this.indoor22GridView.Appearance.FixedLine.Options.UseFont = true;
            this.indoor22GridView.Appearance.FocusedRow.Font = new System.Drawing.Font("Arial", 9F);
            this.indoor22GridView.Appearance.FocusedRow.Options.UseFont = true;
            this.indoor22GridView.Appearance.HeaderPanel.Font = new System.Drawing.Font("Arial", 9F);
            this.indoor22GridView.Appearance.HeaderPanel.Options.UseFont = true;
            this.indoor22GridView.Appearance.HideSelectionRow.Font = new System.Drawing.Font("Arial", 9F);
            this.indoor22GridView.Appearance.HideSelectionRow.Options.UseFont = true;
            this.indoor22GridView.Appearance.OddRow.Font = new System.Drawing.Font("Arial", 9F);
            this.indoor22GridView.Appearance.OddRow.Options.UseFont = true;
            this.indoor22GridView.Appearance.Preview.Font = new System.Drawing.Font("Arial", 9F);
            this.indoor22GridView.Appearance.Preview.Options.UseFont = true;
            this.indoor22GridView.Appearance.Row.Font = new System.Drawing.Font("Arial", 9F);
            this.indoor22GridView.Appearance.Row.Options.UseFont = true;
            this.indoor22GridView.Appearance.SelectedRow.Font = new System.Drawing.Font("Arial", 9F);
            this.indoor22GridView.Appearance.SelectedRow.Options.UseFont = true;
            this.indoor22GridView.Appearance.ViewCaption.Font = new System.Drawing.Font("Arial", 9F);
            this.indoor22GridView.Appearance.ViewCaption.Options.UseFont = true;
            this.indoor22GridView.Columns.AddRange(new DevExpress.XtraGrid.Columns.GridColumn[] {
            this.ID22NameColumn,
            this.ID22ValueColumn,
            this.ID22UnitColumn});
            this.indoor22GridView.CustomizationFormBounds = new System.Drawing.Rectangle(2884, 580, 210, 186);
            this.indoor22GridView.GridControl = this.indoor22Grid;
            this.indoor22GridView.Name = "indoor22GridView";
            this.indoor22GridView.OptionsBehavior.Editable = false;
            this.indoor22GridView.OptionsBehavior.ReadOnly = true;
            this.indoor22GridView.OptionsClipboard.AllowCopy = DevExpress.Utils.DefaultBoolean.True;
            this.indoor22GridView.OptionsClipboard.AllowExcelFormat = DevExpress.Utils.DefaultBoolean.True;
            this.indoor22GridView.OptionsSelection.MultiSelect = true;
            this.indoor22GridView.OptionsSelection.MultiSelectMode = DevExpress.XtraGrid.Views.Grid.GridMultiSelectMode.CellSelect;
            this.indoor22GridView.OptionsView.ColumnAutoWidth = false;
            this.indoor22GridView.OptionsView.ShowColumnHeaders = false;
            this.indoor22GridView.OptionsView.ShowGroupPanel = false;
            this.indoor22GridView.OptionsView.ShowIndicator = false;
            this.indoor22GridView.Tag = 0;
            // 
            // ID22NameColumn
            // 
            this.ID22NameColumn.AppearanceCell.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.ID22NameColumn.AppearanceCell.Options.UseFont = true;
            this.ID22NameColumn.AppearanceCell.Options.UseTextOptions = true;
            this.ID22NameColumn.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Near;
            this.ID22NameColumn.AppearanceHeader.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.ID22NameColumn.AppearanceHeader.Options.UseFont = true;
            this.ID22NameColumn.AppearanceHeader.Options.UseTextOptions = true;
            this.ID22NameColumn.AppearanceHeader.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Near;
            this.ID22NameColumn.Caption = "Name";
            this.ID22NameColumn.FieldName = "Name";
            this.ID22NameColumn.Name = "ID22NameColumn";
            this.ID22NameColumn.OptionsColumn.AllowEdit = false;
            this.ID22NameColumn.OptionsColumn.AllowFocus = false;
            this.ID22NameColumn.OptionsColumn.AllowGroup = DevExpress.Utils.DefaultBoolean.False;
            this.ID22NameColumn.OptionsColumn.AllowIncrementalSearch = false;
            this.ID22NameColumn.OptionsColumn.AllowMerge = DevExpress.Utils.DefaultBoolean.False;
            this.ID22NameColumn.OptionsColumn.AllowMove = false;
            this.ID22NameColumn.OptionsColumn.AllowShowHide = false;
            this.ID22NameColumn.OptionsColumn.AllowSize = false;
            this.ID22NameColumn.OptionsColumn.AllowSort = DevExpress.Utils.DefaultBoolean.False;
            this.ID22NameColumn.OptionsColumn.FixedWidth = true;
            this.ID22NameColumn.OptionsColumn.ImmediateUpdateRowPosition = DevExpress.Utils.DefaultBoolean.False;
            this.ID22NameColumn.OptionsColumn.Printable = DevExpress.Utils.DefaultBoolean.False;
            this.ID22NameColumn.OptionsColumn.ReadOnly = true;
            this.ID22NameColumn.OptionsColumn.TabStop = false;
            this.ID22NameColumn.OptionsFilter.AllowAutoFilter = false;
            this.ID22NameColumn.OptionsFilter.AllowFilter = false;
            this.ID22NameColumn.Visible = true;
            this.ID22NameColumn.VisibleIndex = 0;
            this.ID22NameColumn.Width = 157;
            // 
            // ID22ValueColumn
            // 
            this.ID22ValueColumn.AppearanceCell.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.ID22ValueColumn.AppearanceCell.Options.UseFont = true;
            this.ID22ValueColumn.AppearanceCell.Options.UseTextOptions = true;
            this.ID22ValueColumn.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
            this.ID22ValueColumn.AppearanceHeader.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.ID22ValueColumn.AppearanceHeader.Options.UseFont = true;
            this.ID22ValueColumn.AppearanceHeader.Options.UseTextOptions = true;
            this.ID22ValueColumn.AppearanceHeader.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Near;
            this.ID22ValueColumn.Caption = "Value";
            this.ID22ValueColumn.FieldName = "Value";
            this.ID22ValueColumn.Name = "ID22ValueColumn";
            this.ID22ValueColumn.OptionsColumn.AllowEdit = false;
            this.ID22ValueColumn.OptionsColumn.AllowFocus = false;
            this.ID22ValueColumn.OptionsColumn.AllowGroup = DevExpress.Utils.DefaultBoolean.False;
            this.ID22ValueColumn.OptionsColumn.AllowIncrementalSearch = false;
            this.ID22ValueColumn.OptionsColumn.AllowMerge = DevExpress.Utils.DefaultBoolean.False;
            this.ID22ValueColumn.OptionsColumn.AllowMove = false;
            this.ID22ValueColumn.OptionsColumn.AllowShowHide = false;
            this.ID22ValueColumn.OptionsColumn.AllowSize = false;
            this.ID22ValueColumn.OptionsColumn.AllowSort = DevExpress.Utils.DefaultBoolean.False;
            this.ID22ValueColumn.OptionsColumn.FixedWidth = true;
            this.ID22ValueColumn.OptionsColumn.ReadOnly = true;
            this.ID22ValueColumn.Visible = true;
            this.ID22ValueColumn.VisibleIndex = 1;
            this.ID22ValueColumn.Width = 98;
            // 
            // ID22UnitColumn
            // 
            this.ID22UnitColumn.AppearanceCell.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.ID22UnitColumn.AppearanceCell.Options.UseFont = true;
            this.ID22UnitColumn.AppearanceCell.Options.UseTextOptions = true;
            this.ID22UnitColumn.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Near;
            this.ID22UnitColumn.AppearanceHeader.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.ID22UnitColumn.AppearanceHeader.Options.UseFont = true;
            this.ID22UnitColumn.AppearanceHeader.Options.UseTextOptions = true;
            this.ID22UnitColumn.AppearanceHeader.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Near;
            this.ID22UnitColumn.Caption = "Unit";
            this.ID22UnitColumn.FieldName = "Unit";
            this.ID22UnitColumn.Name = "ID22UnitColumn";
            this.ID22UnitColumn.OptionsColumn.AllowEdit = false;
            this.ID22UnitColumn.OptionsColumn.AllowFocus = false;
            this.ID22UnitColumn.OptionsColumn.AllowGroup = DevExpress.Utils.DefaultBoolean.False;
            this.ID22UnitColumn.OptionsColumn.AllowIncrementalSearch = false;
            this.ID22UnitColumn.OptionsColumn.AllowMerge = DevExpress.Utils.DefaultBoolean.False;
            this.ID22UnitColumn.OptionsColumn.AllowMove = false;
            this.ID22UnitColumn.OptionsColumn.AllowShowHide = false;
            this.ID22UnitColumn.OptionsColumn.AllowSize = false;
            this.ID22UnitColumn.OptionsColumn.AllowSort = DevExpress.Utils.DefaultBoolean.False;
            this.ID22UnitColumn.OptionsColumn.FixedWidth = true;
            this.ID22UnitColumn.OptionsColumn.ImmediateUpdateRowPosition = DevExpress.Utils.DefaultBoolean.False;
            this.ID22UnitColumn.OptionsColumn.Printable = DevExpress.Utils.DefaultBoolean.False;
            this.ID22UnitColumn.OptionsColumn.ReadOnly = true;
            this.ID22UnitColumn.OptionsFilter.AllowAutoFilter = false;
            this.ID22UnitColumn.OptionsFilter.AllowFilter = false;
            this.ID22UnitColumn.Visible = true;
            this.ID22UnitColumn.VisibleIndex = 2;
            this.ID22UnitColumn.Width = 44;
            // 
            // ulPanel73
            // 
            this.ulPanel73.BackColor = System.Drawing.Color.DeepSkyBlue;
            this.ulPanel73.BevelInner = Ulee.Controls.EUlBevelStyle.None;
            this.ulPanel73.BevelOuter = Ulee.Controls.EUlBevelStyle.Lowered;
            this.ulPanel73.Font = new System.Drawing.Font("Arial Rounded MT Bold", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.ulPanel73.ForeColor = System.Drawing.Color.White;
            this.ulPanel73.InnerColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.ulPanel73.InnerColor2 = System.Drawing.Color.White;
            this.ulPanel73.Location = new System.Drawing.Point(6, 6);
            this.ulPanel73.Name = "ulPanel73";
            this.ulPanel73.OuterColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.ulPanel73.OuterColor2 = System.Drawing.Color.White;
            this.ulPanel73.Size = new System.Drawing.Size(302, 28);
            this.ulPanel73.Spacing = 0;
            this.ulPanel73.TabIndex = 5;
            this.ulPanel73.Text = "INDOOR2 #2";
            this.ulPanel73.TextHAlign = Ulee.Controls.EUlHoriAlign.Center;
            this.ulPanel73.TextVAlign = Ulee.Controls.EUlVertAlign.Middle;
            // 
            // ulPanel74
            // 
            this.ulPanel74.BackColor = System.Drawing.SystemColors.Control;
            this.ulPanel74.BevelInner = Ulee.Controls.EUlBevelStyle.Raised;
            this.ulPanel74.BevelOuter = Ulee.Controls.EUlBevelStyle.Lowered;
            this.ulPanel74.Controls.Add(this.indoor21Grid);
            this.ulPanel74.Controls.Add(this.ulPanel78);
            this.ulPanel74.InnerColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.ulPanel74.InnerColor2 = System.Drawing.Color.White;
            this.ulPanel74.Location = new System.Drawing.Point(1070, 418);
            this.ulPanel74.Name = "ulPanel74";
            this.ulPanel74.OuterColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.ulPanel74.OuterColor2 = System.Drawing.Color.White;
            this.ulPanel74.Size = new System.Drawing.Size(314, 143);
            this.ulPanel74.Spacing = 0;
            this.ulPanel74.TabIndex = 13;
            this.ulPanel74.TextHAlign = Ulee.Controls.EUlHoriAlign.Center;
            this.ulPanel74.TextVAlign = Ulee.Controls.EUlVertAlign.Middle;
            // 
            // indoor21Grid
            // 
            this.indoor21Grid.Cursor = System.Windows.Forms.Cursors.Default;
            this.indoor21Grid.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.indoor21Grid.Location = new System.Drawing.Point(6, 40);
            this.indoor21Grid.MainView = this.indoor21GridView;
            this.indoor21Grid.Name = "indoor21Grid";
            this.indoor21Grid.Size = new System.Drawing.Size(302, 97);
            this.indoor21Grid.TabIndex = 281;
            this.indoor21Grid.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] {
            this.indoor21GridView});
            // 
            // indoor21GridView
            // 
            this.indoor21GridView.Appearance.FixedLine.Font = new System.Drawing.Font("Arial", 9F);
            this.indoor21GridView.Appearance.FixedLine.Options.UseFont = true;
            this.indoor21GridView.Appearance.FocusedRow.Font = new System.Drawing.Font("Arial", 9F);
            this.indoor21GridView.Appearance.FocusedRow.Options.UseFont = true;
            this.indoor21GridView.Appearance.HeaderPanel.Font = new System.Drawing.Font("Arial", 9F);
            this.indoor21GridView.Appearance.HeaderPanel.Options.UseFont = true;
            this.indoor21GridView.Appearance.HideSelectionRow.Font = new System.Drawing.Font("Arial", 9F);
            this.indoor21GridView.Appearance.HideSelectionRow.Options.UseFont = true;
            this.indoor21GridView.Appearance.OddRow.Font = new System.Drawing.Font("Arial", 9F);
            this.indoor21GridView.Appearance.OddRow.Options.UseFont = true;
            this.indoor21GridView.Appearance.Preview.Font = new System.Drawing.Font("Arial", 9F);
            this.indoor21GridView.Appearance.Preview.Options.UseFont = true;
            this.indoor21GridView.Appearance.Row.Font = new System.Drawing.Font("Arial", 9F);
            this.indoor21GridView.Appearance.Row.Options.UseFont = true;
            this.indoor21GridView.Appearance.SelectedRow.Font = new System.Drawing.Font("Arial", 9F);
            this.indoor21GridView.Appearance.SelectedRow.Options.UseFont = true;
            this.indoor21GridView.Appearance.ViewCaption.Font = new System.Drawing.Font("Arial", 9F);
            this.indoor21GridView.Appearance.ViewCaption.Options.UseFont = true;
            this.indoor21GridView.Columns.AddRange(new DevExpress.XtraGrid.Columns.GridColumn[] {
            this.ID21NameColumn,
            this.ID21ValueColumn,
            this.ID21UnitColumn});
            this.indoor21GridView.CustomizationFormBounds = new System.Drawing.Rectangle(2884, 580, 210, 186);
            this.indoor21GridView.GridControl = this.indoor21Grid;
            this.indoor21GridView.Name = "indoor21GridView";
            this.indoor21GridView.OptionsBehavior.Editable = false;
            this.indoor21GridView.OptionsBehavior.ReadOnly = true;
            this.indoor21GridView.OptionsClipboard.AllowCopy = DevExpress.Utils.DefaultBoolean.True;
            this.indoor21GridView.OptionsClipboard.AllowExcelFormat = DevExpress.Utils.DefaultBoolean.True;
            this.indoor21GridView.OptionsSelection.MultiSelect = true;
            this.indoor21GridView.OptionsSelection.MultiSelectMode = DevExpress.XtraGrid.Views.Grid.GridMultiSelectMode.CellSelect;
            this.indoor21GridView.OptionsView.ColumnAutoWidth = false;
            this.indoor21GridView.OptionsView.ShowColumnHeaders = false;
            this.indoor21GridView.OptionsView.ShowGroupPanel = false;
            this.indoor21GridView.OptionsView.ShowIndicator = false;
            this.indoor21GridView.Tag = 0;
            // 
            // ID21NameColumn
            // 
            this.ID21NameColumn.AppearanceCell.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.ID21NameColumn.AppearanceCell.Options.UseFont = true;
            this.ID21NameColumn.AppearanceCell.Options.UseTextOptions = true;
            this.ID21NameColumn.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Near;
            this.ID21NameColumn.AppearanceHeader.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.ID21NameColumn.AppearanceHeader.Options.UseFont = true;
            this.ID21NameColumn.AppearanceHeader.Options.UseTextOptions = true;
            this.ID21NameColumn.AppearanceHeader.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Near;
            this.ID21NameColumn.Caption = "Name";
            this.ID21NameColumn.FieldName = "Name";
            this.ID21NameColumn.Name = "ID21NameColumn";
            this.ID21NameColumn.OptionsColumn.AllowEdit = false;
            this.ID21NameColumn.OptionsColumn.AllowFocus = false;
            this.ID21NameColumn.OptionsColumn.AllowGroup = DevExpress.Utils.DefaultBoolean.False;
            this.ID21NameColumn.OptionsColumn.AllowIncrementalSearch = false;
            this.ID21NameColumn.OptionsColumn.AllowMerge = DevExpress.Utils.DefaultBoolean.False;
            this.ID21NameColumn.OptionsColumn.AllowMove = false;
            this.ID21NameColumn.OptionsColumn.AllowShowHide = false;
            this.ID21NameColumn.OptionsColumn.AllowSize = false;
            this.ID21NameColumn.OptionsColumn.AllowSort = DevExpress.Utils.DefaultBoolean.False;
            this.ID21NameColumn.OptionsColumn.FixedWidth = true;
            this.ID21NameColumn.OptionsColumn.ImmediateUpdateRowPosition = DevExpress.Utils.DefaultBoolean.False;
            this.ID21NameColumn.OptionsColumn.Printable = DevExpress.Utils.DefaultBoolean.False;
            this.ID21NameColumn.OptionsColumn.ReadOnly = true;
            this.ID21NameColumn.OptionsColumn.TabStop = false;
            this.ID21NameColumn.OptionsFilter.AllowAutoFilter = false;
            this.ID21NameColumn.OptionsFilter.AllowFilter = false;
            this.ID21NameColumn.Visible = true;
            this.ID21NameColumn.VisibleIndex = 0;
            this.ID21NameColumn.Width = 157;
            // 
            // ID21ValueColumn
            // 
            this.ID21ValueColumn.AppearanceCell.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.ID21ValueColumn.AppearanceCell.Options.UseFont = true;
            this.ID21ValueColumn.AppearanceCell.Options.UseTextOptions = true;
            this.ID21ValueColumn.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
            this.ID21ValueColumn.AppearanceHeader.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.ID21ValueColumn.AppearanceHeader.Options.UseFont = true;
            this.ID21ValueColumn.AppearanceHeader.Options.UseTextOptions = true;
            this.ID21ValueColumn.AppearanceHeader.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Near;
            this.ID21ValueColumn.Caption = "Value";
            this.ID21ValueColumn.FieldName = "Value";
            this.ID21ValueColumn.Name = "ID21ValueColumn";
            this.ID21ValueColumn.OptionsColumn.AllowEdit = false;
            this.ID21ValueColumn.OptionsColumn.AllowFocus = false;
            this.ID21ValueColumn.OptionsColumn.AllowGroup = DevExpress.Utils.DefaultBoolean.False;
            this.ID21ValueColumn.OptionsColumn.AllowIncrementalSearch = false;
            this.ID21ValueColumn.OptionsColumn.AllowMerge = DevExpress.Utils.DefaultBoolean.False;
            this.ID21ValueColumn.OptionsColumn.AllowMove = false;
            this.ID21ValueColumn.OptionsColumn.AllowShowHide = false;
            this.ID21ValueColumn.OptionsColumn.AllowSize = false;
            this.ID21ValueColumn.OptionsColumn.AllowSort = DevExpress.Utils.DefaultBoolean.False;
            this.ID21ValueColumn.OptionsColumn.FixedWidth = true;
            this.ID21ValueColumn.OptionsColumn.ReadOnly = true;
            this.ID21ValueColumn.Visible = true;
            this.ID21ValueColumn.VisibleIndex = 1;
            this.ID21ValueColumn.Width = 98;
            // 
            // ID21UnitColumn
            // 
            this.ID21UnitColumn.AppearanceCell.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.ID21UnitColumn.AppearanceCell.Options.UseFont = true;
            this.ID21UnitColumn.AppearanceCell.Options.UseTextOptions = true;
            this.ID21UnitColumn.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Near;
            this.ID21UnitColumn.AppearanceHeader.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.ID21UnitColumn.AppearanceHeader.Options.UseFont = true;
            this.ID21UnitColumn.AppearanceHeader.Options.UseTextOptions = true;
            this.ID21UnitColumn.AppearanceHeader.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Near;
            this.ID21UnitColumn.Caption = "Unit";
            this.ID21UnitColumn.FieldName = "Unit";
            this.ID21UnitColumn.Name = "ID21UnitColumn";
            this.ID21UnitColumn.OptionsColumn.AllowEdit = false;
            this.ID21UnitColumn.OptionsColumn.AllowFocus = false;
            this.ID21UnitColumn.OptionsColumn.AllowGroup = DevExpress.Utils.DefaultBoolean.False;
            this.ID21UnitColumn.OptionsColumn.AllowIncrementalSearch = false;
            this.ID21UnitColumn.OptionsColumn.AllowMerge = DevExpress.Utils.DefaultBoolean.False;
            this.ID21UnitColumn.OptionsColumn.AllowMove = false;
            this.ID21UnitColumn.OptionsColumn.AllowShowHide = false;
            this.ID21UnitColumn.OptionsColumn.AllowSize = false;
            this.ID21UnitColumn.OptionsColumn.AllowSort = DevExpress.Utils.DefaultBoolean.False;
            this.ID21UnitColumn.OptionsColumn.FixedWidth = true;
            this.ID21UnitColumn.OptionsColumn.ImmediateUpdateRowPosition = DevExpress.Utils.DefaultBoolean.False;
            this.ID21UnitColumn.OptionsColumn.Printable = DevExpress.Utils.DefaultBoolean.False;
            this.ID21UnitColumn.OptionsColumn.ReadOnly = true;
            this.ID21UnitColumn.OptionsFilter.AllowAutoFilter = false;
            this.ID21UnitColumn.OptionsFilter.AllowFilter = false;
            this.ID21UnitColumn.Visible = true;
            this.ID21UnitColumn.VisibleIndex = 2;
            this.ID21UnitColumn.Width = 44;
            // 
            // ulPanel78
            // 
            this.ulPanel78.BackColor = System.Drawing.Color.DeepSkyBlue;
            this.ulPanel78.BevelInner = Ulee.Controls.EUlBevelStyle.None;
            this.ulPanel78.BevelOuter = Ulee.Controls.EUlBevelStyle.Lowered;
            this.ulPanel78.Font = new System.Drawing.Font("Arial Rounded MT Bold", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.ulPanel78.ForeColor = System.Drawing.Color.White;
            this.ulPanel78.InnerColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.ulPanel78.InnerColor2 = System.Drawing.Color.White;
            this.ulPanel78.Location = new System.Drawing.Point(6, 6);
            this.ulPanel78.Name = "ulPanel78";
            this.ulPanel78.OuterColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.ulPanel78.OuterColor2 = System.Drawing.Color.White;
            this.ulPanel78.Size = new System.Drawing.Size(302, 28);
            this.ulPanel78.Spacing = 0;
            this.ulPanel78.TabIndex = 5;
            this.ulPanel78.Text = "INDOOR2 #1";
            this.ulPanel78.TextHAlign = Ulee.Controls.EUlHoriAlign.Center;
            this.ulPanel78.TextVAlign = Ulee.Controls.EUlVertAlign.Middle;
            // 
            // ulPanel64
            // 
            this.ulPanel64.BackColor = System.Drawing.SystemColors.Control;
            this.ulPanel64.BevelInner = Ulee.Controls.EUlBevelStyle.Raised;
            this.ulPanel64.BevelOuter = Ulee.Controls.EUlBevelStyle.Lowered;
            this.ulPanel64.Controls.Add(this.indoor12Grid);
            this.ulPanel64.Controls.Add(this.ulPanel68);
            this.ulPanel64.InnerColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.ulPanel64.InnerColor2 = System.Drawing.Color.White;
            this.ulPanel64.Location = new System.Drawing.Point(1070, 269);
            this.ulPanel64.Name = "ulPanel64";
            this.ulPanel64.OuterColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.ulPanel64.OuterColor2 = System.Drawing.Color.White;
            this.ulPanel64.Size = new System.Drawing.Size(314, 143);
            this.ulPanel64.Spacing = 0;
            this.ulPanel64.TabIndex = 12;
            this.ulPanel64.TextHAlign = Ulee.Controls.EUlHoriAlign.Center;
            this.ulPanel64.TextVAlign = Ulee.Controls.EUlVertAlign.Middle;
            // 
            // indoor12Grid
            // 
            this.indoor12Grid.Cursor = System.Windows.Forms.Cursors.Default;
            this.indoor12Grid.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.indoor12Grid.Location = new System.Drawing.Point(6, 40);
            this.indoor12Grid.MainView = this.indoor12GridView;
            this.indoor12Grid.Name = "indoor12Grid";
            this.indoor12Grid.Size = new System.Drawing.Size(302, 97);
            this.indoor12Grid.TabIndex = 281;
            this.indoor12Grid.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] {
            this.indoor12GridView});
            // 
            // indoor12GridView
            // 
            this.indoor12GridView.Appearance.FixedLine.Font = new System.Drawing.Font("Arial", 9F);
            this.indoor12GridView.Appearance.FixedLine.Options.UseFont = true;
            this.indoor12GridView.Appearance.FocusedRow.Font = new System.Drawing.Font("Arial", 9F);
            this.indoor12GridView.Appearance.FocusedRow.Options.UseFont = true;
            this.indoor12GridView.Appearance.HeaderPanel.Font = new System.Drawing.Font("Arial", 9F);
            this.indoor12GridView.Appearance.HeaderPanel.Options.UseFont = true;
            this.indoor12GridView.Appearance.HideSelectionRow.Font = new System.Drawing.Font("Arial", 9F);
            this.indoor12GridView.Appearance.HideSelectionRow.Options.UseFont = true;
            this.indoor12GridView.Appearance.OddRow.Font = new System.Drawing.Font("Arial", 9F);
            this.indoor12GridView.Appearance.OddRow.Options.UseFont = true;
            this.indoor12GridView.Appearance.Preview.Font = new System.Drawing.Font("Arial", 9F);
            this.indoor12GridView.Appearance.Preview.Options.UseFont = true;
            this.indoor12GridView.Appearance.Row.Font = new System.Drawing.Font("Arial", 9F);
            this.indoor12GridView.Appearance.Row.Options.UseFont = true;
            this.indoor12GridView.Appearance.SelectedRow.Font = new System.Drawing.Font("Arial", 9F);
            this.indoor12GridView.Appearance.SelectedRow.Options.UseFont = true;
            this.indoor12GridView.Appearance.ViewCaption.Font = new System.Drawing.Font("Arial", 9F);
            this.indoor12GridView.Appearance.ViewCaption.Options.UseFont = true;
            this.indoor12GridView.Columns.AddRange(new DevExpress.XtraGrid.Columns.GridColumn[] {
            this.ID12NameColumn,
            this.ID12ValueColumn,
            this.ID12UnitColumn});
            this.indoor12GridView.CustomizationFormBounds = new System.Drawing.Rectangle(2884, 580, 210, 186);
            this.indoor12GridView.GridControl = this.indoor12Grid;
            this.indoor12GridView.Name = "indoor12GridView";
            this.indoor12GridView.OptionsBehavior.Editable = false;
            this.indoor12GridView.OptionsBehavior.ReadOnly = true;
            this.indoor12GridView.OptionsClipboard.AllowCopy = DevExpress.Utils.DefaultBoolean.True;
            this.indoor12GridView.OptionsClipboard.AllowExcelFormat = DevExpress.Utils.DefaultBoolean.True;
            this.indoor12GridView.OptionsSelection.MultiSelect = true;
            this.indoor12GridView.OptionsSelection.MultiSelectMode = DevExpress.XtraGrid.Views.Grid.GridMultiSelectMode.CellSelect;
            this.indoor12GridView.OptionsView.ColumnAutoWidth = false;
            this.indoor12GridView.OptionsView.ShowColumnHeaders = false;
            this.indoor12GridView.OptionsView.ShowGroupPanel = false;
            this.indoor12GridView.OptionsView.ShowIndicator = false;
            this.indoor12GridView.Tag = 0;
            // 
            // ID12NameColumn
            // 
            this.ID12NameColumn.AppearanceCell.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.ID12NameColumn.AppearanceCell.Options.UseFont = true;
            this.ID12NameColumn.AppearanceCell.Options.UseTextOptions = true;
            this.ID12NameColumn.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Near;
            this.ID12NameColumn.AppearanceHeader.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.ID12NameColumn.AppearanceHeader.Options.UseFont = true;
            this.ID12NameColumn.AppearanceHeader.Options.UseTextOptions = true;
            this.ID12NameColumn.AppearanceHeader.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Near;
            this.ID12NameColumn.Caption = "Name";
            this.ID12NameColumn.FieldName = "Name";
            this.ID12NameColumn.Name = "ID12NameColumn";
            this.ID12NameColumn.OptionsColumn.AllowEdit = false;
            this.ID12NameColumn.OptionsColumn.AllowFocus = false;
            this.ID12NameColumn.OptionsColumn.AllowGroup = DevExpress.Utils.DefaultBoolean.False;
            this.ID12NameColumn.OptionsColumn.AllowIncrementalSearch = false;
            this.ID12NameColumn.OptionsColumn.AllowMerge = DevExpress.Utils.DefaultBoolean.False;
            this.ID12NameColumn.OptionsColumn.AllowMove = false;
            this.ID12NameColumn.OptionsColumn.AllowShowHide = false;
            this.ID12NameColumn.OptionsColumn.AllowSize = false;
            this.ID12NameColumn.OptionsColumn.AllowSort = DevExpress.Utils.DefaultBoolean.False;
            this.ID12NameColumn.OptionsColumn.FixedWidth = true;
            this.ID12NameColumn.OptionsColumn.ImmediateUpdateRowPosition = DevExpress.Utils.DefaultBoolean.False;
            this.ID12NameColumn.OptionsColumn.Printable = DevExpress.Utils.DefaultBoolean.False;
            this.ID12NameColumn.OptionsColumn.ReadOnly = true;
            this.ID12NameColumn.OptionsColumn.TabStop = false;
            this.ID12NameColumn.OptionsFilter.AllowAutoFilter = false;
            this.ID12NameColumn.OptionsFilter.AllowFilter = false;
            this.ID12NameColumn.Visible = true;
            this.ID12NameColumn.VisibleIndex = 0;
            this.ID12NameColumn.Width = 157;
            // 
            // ID12ValueColumn
            // 
            this.ID12ValueColumn.AppearanceCell.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.ID12ValueColumn.AppearanceCell.Options.UseFont = true;
            this.ID12ValueColumn.AppearanceCell.Options.UseTextOptions = true;
            this.ID12ValueColumn.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
            this.ID12ValueColumn.AppearanceHeader.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.ID12ValueColumn.AppearanceHeader.Options.UseFont = true;
            this.ID12ValueColumn.AppearanceHeader.Options.UseTextOptions = true;
            this.ID12ValueColumn.AppearanceHeader.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Near;
            this.ID12ValueColumn.Caption = "Value";
            this.ID12ValueColumn.FieldName = "Value";
            this.ID12ValueColumn.Name = "ID12ValueColumn";
            this.ID12ValueColumn.OptionsColumn.AllowEdit = false;
            this.ID12ValueColumn.OptionsColumn.AllowFocus = false;
            this.ID12ValueColumn.OptionsColumn.AllowGroup = DevExpress.Utils.DefaultBoolean.False;
            this.ID12ValueColumn.OptionsColumn.AllowIncrementalSearch = false;
            this.ID12ValueColumn.OptionsColumn.AllowMerge = DevExpress.Utils.DefaultBoolean.False;
            this.ID12ValueColumn.OptionsColumn.AllowMove = false;
            this.ID12ValueColumn.OptionsColumn.AllowShowHide = false;
            this.ID12ValueColumn.OptionsColumn.AllowSize = false;
            this.ID12ValueColumn.OptionsColumn.AllowSort = DevExpress.Utils.DefaultBoolean.False;
            this.ID12ValueColumn.OptionsColumn.FixedWidth = true;
            this.ID12ValueColumn.OptionsColumn.ReadOnly = true;
            this.ID12ValueColumn.Visible = true;
            this.ID12ValueColumn.VisibleIndex = 1;
            this.ID12ValueColumn.Width = 98;
            // 
            // ID12UnitColumn
            // 
            this.ID12UnitColumn.AppearanceCell.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.ID12UnitColumn.AppearanceCell.Options.UseFont = true;
            this.ID12UnitColumn.AppearanceCell.Options.UseTextOptions = true;
            this.ID12UnitColumn.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Near;
            this.ID12UnitColumn.AppearanceHeader.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.ID12UnitColumn.AppearanceHeader.Options.UseFont = true;
            this.ID12UnitColumn.AppearanceHeader.Options.UseTextOptions = true;
            this.ID12UnitColumn.AppearanceHeader.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Near;
            this.ID12UnitColumn.Caption = "Unit";
            this.ID12UnitColumn.FieldName = "Unit";
            this.ID12UnitColumn.Name = "ID12UnitColumn";
            this.ID12UnitColumn.OptionsColumn.AllowEdit = false;
            this.ID12UnitColumn.OptionsColumn.AllowFocus = false;
            this.ID12UnitColumn.OptionsColumn.AllowGroup = DevExpress.Utils.DefaultBoolean.False;
            this.ID12UnitColumn.OptionsColumn.AllowIncrementalSearch = false;
            this.ID12UnitColumn.OptionsColumn.AllowMerge = DevExpress.Utils.DefaultBoolean.False;
            this.ID12UnitColumn.OptionsColumn.AllowMove = false;
            this.ID12UnitColumn.OptionsColumn.AllowShowHide = false;
            this.ID12UnitColumn.OptionsColumn.AllowSize = false;
            this.ID12UnitColumn.OptionsColumn.AllowSort = DevExpress.Utils.DefaultBoolean.False;
            this.ID12UnitColumn.OptionsColumn.FixedWidth = true;
            this.ID12UnitColumn.OptionsColumn.ImmediateUpdateRowPosition = DevExpress.Utils.DefaultBoolean.False;
            this.ID12UnitColumn.OptionsColumn.Printable = DevExpress.Utils.DefaultBoolean.False;
            this.ID12UnitColumn.OptionsColumn.ReadOnly = true;
            this.ID12UnitColumn.OptionsFilter.AllowAutoFilter = false;
            this.ID12UnitColumn.OptionsFilter.AllowFilter = false;
            this.ID12UnitColumn.Visible = true;
            this.ID12UnitColumn.VisibleIndex = 2;
            this.ID12UnitColumn.Width = 44;
            // 
            // ulPanel68
            // 
            this.ulPanel68.BackColor = System.Drawing.Color.DeepSkyBlue;
            this.ulPanel68.BevelInner = Ulee.Controls.EUlBevelStyle.None;
            this.ulPanel68.BevelOuter = Ulee.Controls.EUlBevelStyle.Lowered;
            this.ulPanel68.Font = new System.Drawing.Font("Arial Rounded MT Bold", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.ulPanel68.ForeColor = System.Drawing.Color.White;
            this.ulPanel68.InnerColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.ulPanel68.InnerColor2 = System.Drawing.Color.White;
            this.ulPanel68.Location = new System.Drawing.Point(6, 6);
            this.ulPanel68.Name = "ulPanel68";
            this.ulPanel68.OuterColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.ulPanel68.OuterColor2 = System.Drawing.Color.White;
            this.ulPanel68.Size = new System.Drawing.Size(302, 28);
            this.ulPanel68.Spacing = 0;
            this.ulPanel68.TabIndex = 5;
            this.ulPanel68.Text = "INDOOR1 #2";
            this.ulPanel68.TextHAlign = Ulee.Controls.EUlHoriAlign.Center;
            this.ulPanel68.TextVAlign = Ulee.Controls.EUlVertAlign.Middle;
            // 
            // ulPanel39
            // 
            this.ulPanel39.BackColor = System.Drawing.SystemColors.Control;
            this.ulPanel39.BevelInner = Ulee.Controls.EUlBevelStyle.Raised;
            this.ulPanel39.BevelOuter = Ulee.Controls.EUlBevelStyle.Lowered;
            this.ulPanel39.Controls.Add(this.noteGrid);
            this.ulPanel39.Controls.Add(this.ulPanel40);
            this.ulPanel39.InnerColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.ulPanel39.InnerColor2 = System.Drawing.Color.White;
            this.ulPanel39.Location = new System.Drawing.Point(692, 263);
            this.ulPanel39.Name = "ulPanel39";
            this.ulPanel39.OuterColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.ulPanel39.OuterColor2 = System.Drawing.Color.White;
            this.ulPanel39.Size = new System.Drawing.Size(372, 352);
            this.ulPanel39.Spacing = 0;
            this.ulPanel39.TabIndex = 8;
            this.ulPanel39.TextHAlign = Ulee.Controls.EUlHoriAlign.Center;
            this.ulPanel39.TextVAlign = Ulee.Controls.EUlVertAlign.Middle;
            // 
            // noteGrid
            // 
            this.noteGrid.Cursor = System.Windows.Forms.Cursors.Default;
            this.noteGrid.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.noteGrid.Location = new System.Drawing.Point(6, 40);
            this.noteGrid.MainView = this.noteGridView;
            this.noteGrid.Name = "noteGrid";
            this.noteGrid.Size = new System.Drawing.Size(360, 306);
            this.noteGrid.TabIndex = 279;
            this.noteGrid.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] {
            this.noteGridView});
            // 
            // noteGridView
            // 
            this.noteGridView.Appearance.FixedLine.Font = new System.Drawing.Font("Arial", 9F);
            this.noteGridView.Appearance.FixedLine.Options.UseFont = true;
            this.noteGridView.Appearance.FocusedRow.Font = new System.Drawing.Font("Arial", 9F);
            this.noteGridView.Appearance.FocusedRow.Options.UseFont = true;
            this.noteGridView.Appearance.HeaderPanel.Font = new System.Drawing.Font("Arial", 9F);
            this.noteGridView.Appearance.HeaderPanel.Options.UseFont = true;
            this.noteGridView.Appearance.HideSelectionRow.Font = new System.Drawing.Font("Arial", 9F);
            this.noteGridView.Appearance.HideSelectionRow.Options.UseFont = true;
            this.noteGridView.Appearance.OddRow.Font = new System.Drawing.Font("Arial", 9F);
            this.noteGridView.Appearance.OddRow.Options.UseFont = true;
            this.noteGridView.Appearance.Preview.Font = new System.Drawing.Font("Arial", 9F);
            this.noteGridView.Appearance.Preview.Options.UseFont = true;
            this.noteGridView.Appearance.Row.Font = new System.Drawing.Font("Arial", 9F);
            this.noteGridView.Appearance.Row.Options.UseFont = true;
            this.noteGridView.Appearance.SelectedRow.Font = new System.Drawing.Font("Arial", 9F);
            this.noteGridView.Appearance.SelectedRow.Options.UseFont = true;
            this.noteGridView.Appearance.ViewCaption.Font = new System.Drawing.Font("Arial", 9F);
            this.noteGridView.Appearance.ViewCaption.Options.UseFont = true;
            this.noteGridView.Columns.AddRange(new DevExpress.XtraGrid.Columns.GridColumn[] {
            this.noteNameColumn,
            this.noteValueColumn});
            this.noteGridView.CustomizationFormBounds = new System.Drawing.Rectangle(2884, 580, 210, 186);
            this.noteGridView.GridControl = this.noteGrid;
            this.noteGridView.Name = "noteGridView";
            this.noteGridView.OptionsBehavior.Editable = false;
            this.noteGridView.OptionsBehavior.ReadOnly = true;
            this.noteGridView.OptionsClipboard.AllowCopy = DevExpress.Utils.DefaultBoolean.True;
            this.noteGridView.OptionsClipboard.AllowExcelFormat = DevExpress.Utils.DefaultBoolean.True;
            this.noteGridView.OptionsSelection.MultiSelect = true;
            this.noteGridView.OptionsSelection.MultiSelectMode = DevExpress.XtraGrid.Views.Grid.GridMultiSelectMode.CellSelect;
            this.noteGridView.OptionsView.ColumnAutoWidth = false;
            this.noteGridView.OptionsView.ShowColumnHeaders = false;
            this.noteGridView.OptionsView.ShowGroupPanel = false;
            this.noteGridView.OptionsView.ShowIndicator = false;
            this.noteGridView.Tag = 0;
            // 
            // noteNameColumn
            // 
            this.noteNameColumn.AppearanceCell.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.noteNameColumn.AppearanceCell.Options.UseFont = true;
            this.noteNameColumn.AppearanceCell.Options.UseTextOptions = true;
            this.noteNameColumn.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Near;
            this.noteNameColumn.AppearanceHeader.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.noteNameColumn.AppearanceHeader.Options.UseFont = true;
            this.noteNameColumn.AppearanceHeader.Options.UseTextOptions = true;
            this.noteNameColumn.AppearanceHeader.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Near;
            this.noteNameColumn.Caption = "Name";
            this.noteNameColumn.FieldName = "Name";
            this.noteNameColumn.Name = "noteNameColumn";
            this.noteNameColumn.OptionsColumn.AllowEdit = false;
            this.noteNameColumn.OptionsColumn.AllowFocus = false;
            this.noteNameColumn.OptionsColumn.AllowGroup = DevExpress.Utils.DefaultBoolean.False;
            this.noteNameColumn.OptionsColumn.AllowIncrementalSearch = false;
            this.noteNameColumn.OptionsColumn.AllowMerge = DevExpress.Utils.DefaultBoolean.False;
            this.noteNameColumn.OptionsColumn.AllowMove = false;
            this.noteNameColumn.OptionsColumn.AllowShowHide = false;
            this.noteNameColumn.OptionsColumn.AllowSize = false;
            this.noteNameColumn.OptionsColumn.AllowSort = DevExpress.Utils.DefaultBoolean.False;
            this.noteNameColumn.OptionsColumn.FixedWidth = true;
            this.noteNameColumn.OptionsColumn.ImmediateUpdateRowPosition = DevExpress.Utils.DefaultBoolean.False;
            this.noteNameColumn.OptionsColumn.Printable = DevExpress.Utils.DefaultBoolean.False;
            this.noteNameColumn.OptionsColumn.ReadOnly = true;
            this.noteNameColumn.OptionsColumn.TabStop = false;
            this.noteNameColumn.OptionsFilter.AllowAutoFilter = false;
            this.noteNameColumn.OptionsFilter.AllowFilter = false;
            this.noteNameColumn.Visible = true;
            this.noteNameColumn.VisibleIndex = 0;
            this.noteNameColumn.Width = 156;
            // 
            // noteValueColumn
            // 
            this.noteValueColumn.AppearanceCell.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.noteValueColumn.AppearanceCell.Options.UseFont = true;
            this.noteValueColumn.AppearanceCell.Options.UseTextOptions = true;
            this.noteValueColumn.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Near;
            this.noteValueColumn.AppearanceHeader.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.noteValueColumn.AppearanceHeader.Options.UseFont = true;
            this.noteValueColumn.AppearanceHeader.Options.UseTextOptions = true;
            this.noteValueColumn.AppearanceHeader.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Near;
            this.noteValueColumn.Caption = "Value";
            this.noteValueColumn.FieldName = "Value";
            this.noteValueColumn.Name = "noteValueColumn";
            this.noteValueColumn.OptionsColumn.AllowEdit = false;
            this.noteValueColumn.OptionsColumn.AllowFocus = false;
            this.noteValueColumn.OptionsColumn.AllowGroup = DevExpress.Utils.DefaultBoolean.False;
            this.noteValueColumn.OptionsColumn.AllowIncrementalSearch = false;
            this.noteValueColumn.OptionsColumn.AllowMerge = DevExpress.Utils.DefaultBoolean.False;
            this.noteValueColumn.OptionsColumn.AllowMove = false;
            this.noteValueColumn.OptionsColumn.AllowShowHide = false;
            this.noteValueColumn.OptionsColumn.AllowSize = false;
            this.noteValueColumn.OptionsColumn.AllowSort = DevExpress.Utils.DefaultBoolean.False;
            this.noteValueColumn.OptionsColumn.FixedWidth = true;
            this.noteValueColumn.OptionsColumn.ReadOnly = true;
            this.noteValueColumn.Visible = true;
            this.noteValueColumn.VisibleIndex = 1;
            this.noteValueColumn.Width = 201;
            // 
            // ulPanel40
            // 
            this.ulPanel40.BackColor = System.Drawing.Color.DeepSkyBlue;
            this.ulPanel40.BevelInner = Ulee.Controls.EUlBevelStyle.None;
            this.ulPanel40.BevelOuter = Ulee.Controls.EUlBevelStyle.Lowered;
            this.ulPanel40.Font = new System.Drawing.Font("Arial Rounded MT Bold", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.ulPanel40.ForeColor = System.Drawing.Color.White;
            this.ulPanel40.InnerColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.ulPanel40.InnerColor2 = System.Drawing.Color.White;
            this.ulPanel40.Location = new System.Drawing.Point(6, 6);
            this.ulPanel40.Name = "ulPanel40";
            this.ulPanel40.OuterColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.ulPanel40.OuterColor2 = System.Drawing.Color.White;
            this.ulPanel40.Size = new System.Drawing.Size(360, 28);
            this.ulPanel40.Spacing = 0;
            this.ulPanel40.TabIndex = 5;
            this.ulPanel40.Text = "NOTE";
            this.ulPanel40.TextHAlign = Ulee.Controls.EUlHoriAlign.Center;
            this.ulPanel40.TextVAlign = Ulee.Controls.EUlVertAlign.Middle;
            // 
            // ulPanel37
            // 
            this.ulPanel37.BackColor = System.Drawing.SystemColors.Control;
            this.ulPanel37.BevelInner = Ulee.Controls.EUlBevelStyle.Raised;
            this.ulPanel37.BevelOuter = Ulee.Controls.EUlBevelStyle.Lowered;
            this.ulPanel37.Controls.Add(this.outsideGrid);
            this.ulPanel37.Controls.Add(this.ulPanel38);
            this.ulPanel37.InnerColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.ulPanel37.InnerColor2 = System.Drawing.Color.White;
            this.ulPanel37.Location = new System.Drawing.Point(692, 0);
            this.ulPanel37.Name = "ulPanel37";
            this.ulPanel37.OuterColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.ulPanel37.OuterColor2 = System.Drawing.Color.White;
            this.ulPanel37.Size = new System.Drawing.Size(372, 257);
            this.ulPanel37.Spacing = 0;
            this.ulPanel37.TabIndex = 7;
            this.ulPanel37.TextHAlign = Ulee.Controls.EUlHoriAlign.Center;
            this.ulPanel37.TextVAlign = Ulee.Controls.EUlVertAlign.Middle;
            // 
            // outsideGrid
            // 
            this.outsideGrid.Cursor = System.Windows.Forms.Cursors.Default;
            this.outsideGrid.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.outsideGrid.Location = new System.Drawing.Point(6, 40);
            this.outsideGrid.MainView = this.outsideGridView;
            this.outsideGrid.Name = "outsideGrid";
            this.outsideGrid.Size = new System.Drawing.Size(360, 211);
            this.outsideGrid.TabIndex = 278;
            this.outsideGrid.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] {
            this.outsideGridView});
            // 
            // outsideGridView
            // 
            this.outsideGridView.Appearance.FixedLine.Font = new System.Drawing.Font("Arial", 9F);
            this.outsideGridView.Appearance.FixedLine.Options.UseFont = true;
            this.outsideGridView.Appearance.FocusedRow.Font = new System.Drawing.Font("Arial", 9F);
            this.outsideGridView.Appearance.FocusedRow.Options.UseFont = true;
            this.outsideGridView.Appearance.HeaderPanel.Font = new System.Drawing.Font("Arial", 9F);
            this.outsideGridView.Appearance.HeaderPanel.Options.UseFont = true;
            this.outsideGridView.Appearance.HideSelectionRow.Font = new System.Drawing.Font("Arial", 9F);
            this.outsideGridView.Appearance.HideSelectionRow.Options.UseFont = true;
            this.outsideGridView.Appearance.OddRow.Font = new System.Drawing.Font("Arial", 9F);
            this.outsideGridView.Appearance.OddRow.Options.UseFont = true;
            this.outsideGridView.Appearance.Preview.Font = new System.Drawing.Font("Arial", 9F);
            this.outsideGridView.Appearance.Preview.Options.UseFont = true;
            this.outsideGridView.Appearance.Row.Font = new System.Drawing.Font("Arial", 9F);
            this.outsideGridView.Appearance.Row.Options.UseFont = true;
            this.outsideGridView.Appearance.SelectedRow.Font = new System.Drawing.Font("Arial", 9F);
            this.outsideGridView.Appearance.SelectedRow.Options.UseFont = true;
            this.outsideGridView.Appearance.ViewCaption.Font = new System.Drawing.Font("Arial", 9F);
            this.outsideGridView.Appearance.ViewCaption.Options.UseFont = true;
            this.outsideGridView.Columns.AddRange(new DevExpress.XtraGrid.Columns.GridColumn[] {
            this.osNameColumn,
            this.osValueColumn,
            this.osUnitColumn});
            this.outsideGridView.CustomizationFormBounds = new System.Drawing.Rectangle(2884, 580, 210, 186);
            this.outsideGridView.GridControl = this.outsideGrid;
            this.outsideGridView.Name = "outsideGridView";
            this.outsideGridView.OptionsBehavior.Editable = false;
            this.outsideGridView.OptionsBehavior.ReadOnly = true;
            this.outsideGridView.OptionsClipboard.AllowCopy = DevExpress.Utils.DefaultBoolean.True;
            this.outsideGridView.OptionsClipboard.AllowExcelFormat = DevExpress.Utils.DefaultBoolean.True;
            this.outsideGridView.OptionsSelection.MultiSelect = true;
            this.outsideGridView.OptionsSelection.MultiSelectMode = DevExpress.XtraGrid.Views.Grid.GridMultiSelectMode.CellSelect;
            this.outsideGridView.OptionsView.ColumnAutoWidth = false;
            this.outsideGridView.OptionsView.ShowColumnHeaders = false;
            this.outsideGridView.OptionsView.ShowGroupPanel = false;
            this.outsideGridView.OptionsView.ShowIndicator = false;
            this.outsideGridView.Tag = 0;
            this.outsideGridView.CustomDrawCell += new DevExpress.XtraGrid.Views.Base.RowCellCustomDrawEventHandler(this.outsideGridView_CustomDrawCell);
            // 
            // osNameColumn
            // 
            this.osNameColumn.AppearanceCell.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.osNameColumn.AppearanceCell.Options.UseFont = true;
            this.osNameColumn.AppearanceCell.Options.UseTextOptions = true;
            this.osNameColumn.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Near;
            this.osNameColumn.AppearanceHeader.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.osNameColumn.AppearanceHeader.Options.UseFont = true;
            this.osNameColumn.AppearanceHeader.Options.UseTextOptions = true;
            this.osNameColumn.AppearanceHeader.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Near;
            this.osNameColumn.Caption = "Name";
            this.osNameColumn.FieldName = "Name";
            this.osNameColumn.Name = "osNameColumn";
            this.osNameColumn.OptionsColumn.AllowEdit = false;
            this.osNameColumn.OptionsColumn.AllowFocus = false;
            this.osNameColumn.OptionsColumn.AllowGroup = DevExpress.Utils.DefaultBoolean.False;
            this.osNameColumn.OptionsColumn.AllowIncrementalSearch = false;
            this.osNameColumn.OptionsColumn.AllowMerge = DevExpress.Utils.DefaultBoolean.False;
            this.osNameColumn.OptionsColumn.AllowMove = false;
            this.osNameColumn.OptionsColumn.AllowShowHide = false;
            this.osNameColumn.OptionsColumn.AllowSize = false;
            this.osNameColumn.OptionsColumn.AllowSort = DevExpress.Utils.DefaultBoolean.False;
            this.osNameColumn.OptionsColumn.FixedWidth = true;
            this.osNameColumn.OptionsColumn.ImmediateUpdateRowPosition = DevExpress.Utils.DefaultBoolean.False;
            this.osNameColumn.OptionsColumn.Printable = DevExpress.Utils.DefaultBoolean.False;
            this.osNameColumn.OptionsColumn.ReadOnly = true;
            this.osNameColumn.OptionsColumn.TabStop = false;
            this.osNameColumn.OptionsFilter.AllowAutoFilter = false;
            this.osNameColumn.OptionsFilter.AllowFilter = false;
            this.osNameColumn.Visible = true;
            this.osNameColumn.VisibleIndex = 0;
            this.osNameColumn.Width = 156;
            // 
            // osValueColumn
            // 
            this.osValueColumn.AppearanceCell.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.osValueColumn.AppearanceCell.Options.UseFont = true;
            this.osValueColumn.AppearanceCell.Options.UseTextOptions = true;
            this.osValueColumn.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Far;
            this.osValueColumn.AppearanceHeader.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.osValueColumn.AppearanceHeader.Options.UseFont = true;
            this.osValueColumn.AppearanceHeader.Options.UseTextOptions = true;
            this.osValueColumn.AppearanceHeader.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Near;
            this.osValueColumn.Caption = "Value";
            this.osValueColumn.FieldName = "Value";
            this.osValueColumn.Name = "osValueColumn";
            this.osValueColumn.OptionsColumn.AllowEdit = false;
            this.osValueColumn.OptionsColumn.AllowFocus = false;
            this.osValueColumn.OptionsColumn.AllowGroup = DevExpress.Utils.DefaultBoolean.False;
            this.osValueColumn.OptionsColumn.AllowIncrementalSearch = false;
            this.osValueColumn.OptionsColumn.AllowMerge = DevExpress.Utils.DefaultBoolean.False;
            this.osValueColumn.OptionsColumn.AllowMove = false;
            this.osValueColumn.OptionsColumn.AllowShowHide = false;
            this.osValueColumn.OptionsColumn.AllowSize = false;
            this.osValueColumn.OptionsColumn.AllowSort = DevExpress.Utils.DefaultBoolean.False;
            this.osValueColumn.OptionsColumn.FixedWidth = true;
            this.osValueColumn.OptionsColumn.ReadOnly = true;
            this.osValueColumn.Visible = true;
            this.osValueColumn.VisibleIndex = 1;
            this.osValueColumn.Width = 97;
            // 
            // osUnitColumn
            // 
            this.osUnitColumn.AppearanceCell.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.osUnitColumn.AppearanceCell.Options.UseFont = true;
            this.osUnitColumn.AppearanceCell.Options.UseTextOptions = true;
            this.osUnitColumn.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Near;
            this.osUnitColumn.AppearanceHeader.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.osUnitColumn.AppearanceHeader.Options.UseFont = true;
            this.osUnitColumn.AppearanceHeader.Options.UseTextOptions = true;
            this.osUnitColumn.AppearanceHeader.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Near;
            this.osUnitColumn.Caption = "Unit";
            this.osUnitColumn.FieldName = "Unit";
            this.osUnitColumn.Name = "osUnitColumn";
            this.osUnitColumn.OptionsColumn.AllowEdit = false;
            this.osUnitColumn.OptionsColumn.AllowFocus = false;
            this.osUnitColumn.OptionsColumn.AllowGroup = DevExpress.Utils.DefaultBoolean.False;
            this.osUnitColumn.OptionsColumn.AllowIncrementalSearch = false;
            this.osUnitColumn.OptionsColumn.AllowMerge = DevExpress.Utils.DefaultBoolean.False;
            this.osUnitColumn.OptionsColumn.AllowMove = false;
            this.osUnitColumn.OptionsColumn.AllowShowHide = false;
            this.osUnitColumn.OptionsColumn.AllowSize = false;
            this.osUnitColumn.OptionsColumn.AllowSort = DevExpress.Utils.DefaultBoolean.False;
            this.osUnitColumn.OptionsColumn.FixedWidth = true;
            this.osUnitColumn.OptionsColumn.ImmediateUpdateRowPosition = DevExpress.Utils.DefaultBoolean.False;
            this.osUnitColumn.OptionsColumn.Printable = DevExpress.Utils.DefaultBoolean.False;
            this.osUnitColumn.OptionsColumn.ReadOnly = true;
            this.osUnitColumn.OptionsFilter.AllowAutoFilter = false;
            this.osUnitColumn.OptionsFilter.AllowFilter = false;
            this.osUnitColumn.Visible = true;
            this.osUnitColumn.VisibleIndex = 2;
            this.osUnitColumn.Width = 86;
            // 
            // ulPanel38
            // 
            this.ulPanel38.BackColor = System.Drawing.Color.DeepSkyBlue;
            this.ulPanel38.BevelInner = Ulee.Controls.EUlBevelStyle.None;
            this.ulPanel38.BevelOuter = Ulee.Controls.EUlBevelStyle.Lowered;
            this.ulPanel38.Font = new System.Drawing.Font("Arial Rounded MT Bold", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.ulPanel38.ForeColor = System.Drawing.Color.White;
            this.ulPanel38.InnerColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.ulPanel38.InnerColor2 = System.Drawing.Color.White;
            this.ulPanel38.Location = new System.Drawing.Point(6, 6);
            this.ulPanel38.Name = "ulPanel38";
            this.ulPanel38.OuterColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.ulPanel38.OuterColor2 = System.Drawing.Color.White;
            this.ulPanel38.Size = new System.Drawing.Size(360, 28);
            this.ulPanel38.Spacing = 0;
            this.ulPanel38.TabIndex = 5;
            this.ulPanel38.Text = "OUTDOOR SIDE";
            this.ulPanel38.TextHAlign = Ulee.Controls.EUlHoriAlign.Center;
            this.ulPanel38.TextVAlign = Ulee.Controls.EUlVertAlign.Middle;
            // 
            // ulPanel15
            // 
            this.ulPanel15.BackColor = System.Drawing.SystemColors.Control;
            this.ulPanel15.BevelInner = Ulee.Controls.EUlBevelStyle.Raised;
            this.ulPanel15.BevelOuter = Ulee.Controls.EUlBevelStyle.Lowered;
            this.ulPanel15.Controls.Add(this.asNozzleGrid);
            this.ulPanel15.Controls.Add(this.airSideGrid);
            this.ulPanel15.Controls.Add(this.ulPanel16);
            this.ulPanel15.InnerColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.ulPanel15.InnerColor2 = System.Drawing.Color.White;
            this.ulPanel15.Location = new System.Drawing.Point(0, 0);
            this.ulPanel15.Name = "ulPanel15";
            this.ulPanel15.OuterColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.ulPanel15.OuterColor2 = System.Drawing.Color.White;
            this.ulPanel15.Size = new System.Drawing.Size(686, 859);
            this.ulPanel15.Spacing = 0;
            this.ulPanel15.TabIndex = 6;
            this.ulPanel15.TextHAlign = Ulee.Controls.EUlHoriAlign.Center;
            this.ulPanel15.TextVAlign = Ulee.Controls.EUlVertAlign.Middle;
            // 
            // asNozzleGrid
            // 
            this.asNozzleGrid.Cursor = System.Windows.Forms.Cursors.Default;
            this.asNozzleGrid.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.asNozzleGrid.Location = new System.Drawing.Point(6, 646);
            this.asNozzleGrid.MainView = this.asNozzleGridView;
            this.asNozzleGrid.Name = "asNozzleGrid";
            this.asNozzleGrid.RepositoryItems.AddRange(new DevExpress.XtraEditors.Repository.RepositoryItem[] {
            this.asNozzleCheckEdit});
            this.asNozzleGrid.Size = new System.Drawing.Size(674, 207);
            this.asNozzleGrid.TabIndex = 278;
            this.asNozzleGrid.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] {
            this.asNozzleGridView});
            // 
            // asNozzleGridView
            // 
            this.asNozzleGridView.Appearance.FixedLine.Font = new System.Drawing.Font("Arial", 9F);
            this.asNozzleGridView.Appearance.FixedLine.Options.UseFont = true;
            this.asNozzleGridView.Appearance.FocusedRow.Font = new System.Drawing.Font("Arial", 9F);
            this.asNozzleGridView.Appearance.FocusedRow.Options.UseFont = true;
            this.asNozzleGridView.Appearance.HeaderPanel.Font = new System.Drawing.Font("Arial", 9F);
            this.asNozzleGridView.Appearance.HeaderPanel.Options.UseFont = true;
            this.asNozzleGridView.Appearance.HideSelectionRow.Font = new System.Drawing.Font("Arial", 9F);
            this.asNozzleGridView.Appearance.HideSelectionRow.Options.UseFont = true;
            this.asNozzleGridView.Appearance.OddRow.Font = new System.Drawing.Font("Arial", 9F);
            this.asNozzleGridView.Appearance.OddRow.Options.UseFont = true;
            this.asNozzleGridView.Appearance.Preview.Font = new System.Drawing.Font("Arial", 9F);
            this.asNozzleGridView.Appearance.Preview.Options.UseFont = true;
            this.asNozzleGridView.Appearance.Row.Font = new System.Drawing.Font("Arial", 9F);
            this.asNozzleGridView.Appearance.Row.Options.UseFont = true;
            this.asNozzleGridView.Appearance.SelectedRow.Font = new System.Drawing.Font("Arial", 9F);
            this.asNozzleGridView.Appearance.SelectedRow.Options.UseFont = true;
            this.asNozzleGridView.Appearance.ViewCaption.Font = new System.Drawing.Font("Arial", 9F);
            this.asNozzleGridView.Appearance.ViewCaption.Options.UseFont = true;
            this.asNozzleGridView.Bands.AddRange(new DevExpress.XtraGrid.Views.BandedGrid.GridBand[] {
            this.asNozzleGenaralBand,
            this.asNozzleID11Band,
            this.asNozzleID12Band,
            this.asNozzleID21Band,
            this.asNozzleID22Band});
            this.asNozzleGridView.Columns.AddRange(new DevExpress.XtraGrid.Views.BandedGrid.BandedGridColumn[] {
            this.asNozzleNameColumn,
            this.asNozzleID11DiameterColumn,
            this.asNozzleID11CheckColumn,
            this.asNozzleID12DiameterColumn,
            this.asNozzleID12CheckColumn,
            this.asNozzleID21DiameterColumn,
            this.asNozzleID21CheckColumn,
            this.asNozzleID22DiameterColumn,
            this.asNozzleID22CheckColumn});
            this.asNozzleGridView.GridControl = this.asNozzleGrid;
            this.asNozzleGridView.Name = "asNozzleGridView";
            this.asNozzleGridView.OptionsBehavior.AlignGroupSummaryInGroupRow = DevExpress.Utils.DefaultBoolean.False;
            this.asNozzleGridView.OptionsBehavior.AllowAddRows = DevExpress.Utils.DefaultBoolean.False;
            this.asNozzleGridView.OptionsBehavior.AllowDeleteRows = DevExpress.Utils.DefaultBoolean.False;
            this.asNozzleGridView.OptionsBehavior.AllowFixedGroups = DevExpress.Utils.DefaultBoolean.False;
            this.asNozzleGridView.OptionsBehavior.AllowGroupExpandAnimation = DevExpress.Utils.DefaultBoolean.False;
            this.asNozzleGridView.OptionsBehavior.AllowPartialGroups = DevExpress.Utils.DefaultBoolean.False;
            this.asNozzleGridView.OptionsBehavior.AllowPartialRedrawOnScrolling = false;
            this.asNozzleGridView.OptionsBehavior.AllowValidationErrors = false;
            this.asNozzleGridView.OptionsBehavior.AutoPopulateColumns = false;
            this.asNozzleGridView.OptionsBehavior.AutoUpdateTotalSummary = false;
            this.asNozzleGridView.OptionsBehavior.Editable = false;
            this.asNozzleGridView.OptionsBehavior.ReadOnly = true;
            this.asNozzleGridView.OptionsClipboard.AllowCopy = DevExpress.Utils.DefaultBoolean.True;
            this.asNozzleGridView.OptionsClipboard.AllowExcelFormat = DevExpress.Utils.DefaultBoolean.True;
            this.asNozzleGridView.OptionsClipboard.CopyColumnHeaders = DevExpress.Utils.DefaultBoolean.False;
            this.asNozzleGridView.OptionsCustomization.AllowBandMoving = false;
            this.asNozzleGridView.OptionsCustomization.AllowBandResizing = false;
            this.asNozzleGridView.OptionsCustomization.AllowColumnMoving = false;
            this.asNozzleGridView.OptionsCustomization.AllowColumnResizing = false;
            this.asNozzleGridView.OptionsCustomization.AllowFilter = false;
            this.asNozzleGridView.OptionsCustomization.AllowGroup = false;
            this.asNozzleGridView.OptionsCustomization.AllowQuickHideColumns = false;
            this.asNozzleGridView.OptionsCustomization.AllowSort = false;
            this.asNozzleGridView.OptionsSelection.UseIndicatorForSelection = false;
            this.asNozzleGridView.OptionsView.ShowGroupPanel = false;
            this.asNozzleGridView.OptionsView.ShowIndicator = false;
            this.asNozzleGridView.Tag = 0;
            // 
            // asNozzleGenaralBand
            // 
            this.asNozzleGenaralBand.AppearanceHeader.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.asNozzleGenaralBand.AppearanceHeader.Options.UseFont = true;
            this.asNozzleGenaralBand.Caption = "General";
            this.asNozzleGenaralBand.Columns.Add(this.asNozzleNameColumn);
            this.asNozzleGenaralBand.MinWidth = 19;
            this.asNozzleGenaralBand.Name = "asNozzleGenaralBand";
            this.asNozzleGenaralBand.VisibleIndex = 0;
            this.asNozzleGenaralBand.Width = 128;
            // 
            // asNozzleNameColumn
            // 
            this.asNozzleNameColumn.AppearanceCell.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.asNozzleNameColumn.AppearanceCell.Options.UseFont = true;
            this.asNozzleNameColumn.AppearanceHeader.Font = new System.Drawing.Font("Arial", 9F);
            this.asNozzleNameColumn.AppearanceHeader.Options.UseFont = true;
            this.asNozzleNameColumn.AppearanceHeader.Options.UseTextOptions = true;
            this.asNozzleNameColumn.AppearanceHeader.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Near;
            this.asNozzleNameColumn.Caption = "Name";
            this.asNozzleNameColumn.FieldName = "Name";
            this.asNozzleNameColumn.MinWidth = 36;
            this.asNozzleNameColumn.Name = "asNozzleNameColumn";
            this.asNozzleNameColumn.OptionsColumn.AllowEdit = false;
            this.asNozzleNameColumn.OptionsColumn.AllowFocus = false;
            this.asNozzleNameColumn.OptionsColumn.AllowGroup = DevExpress.Utils.DefaultBoolean.False;
            this.asNozzleNameColumn.OptionsColumn.AllowIncrementalSearch = false;
            this.asNozzleNameColumn.OptionsColumn.AllowMerge = DevExpress.Utils.DefaultBoolean.False;
            this.asNozzleNameColumn.OptionsColumn.AllowMove = false;
            this.asNozzleNameColumn.OptionsColumn.AllowShowHide = false;
            this.asNozzleNameColumn.OptionsColumn.AllowSize = false;
            this.asNozzleNameColumn.OptionsColumn.AllowSort = DevExpress.Utils.DefaultBoolean.False;
            this.asNozzleNameColumn.OptionsColumn.FixedWidth = true;
            this.asNozzleNameColumn.OptionsColumn.ImmediateUpdateRowPosition = DevExpress.Utils.DefaultBoolean.False;
            this.asNozzleNameColumn.OptionsColumn.Printable = DevExpress.Utils.DefaultBoolean.False;
            this.asNozzleNameColumn.OptionsColumn.ReadOnly = true;
            this.asNozzleNameColumn.OptionsColumn.TabStop = false;
            this.asNozzleNameColumn.OptionsFilter.AllowAutoFilter = false;
            this.asNozzleNameColumn.OptionsFilter.AllowFilter = false;
            this.asNozzleNameColumn.OptionsFilter.AllowFilterModeChanging = DevExpress.Utils.DefaultBoolean.False;
            this.asNozzleNameColumn.OptionsFilter.FilterBySortField = DevExpress.Utils.DefaultBoolean.False;
            this.asNozzleNameColumn.OptionsFilter.ImmediateUpdateAutoFilter = false;
            this.asNozzleNameColumn.OptionsFilter.ImmediateUpdatePopupDateFilterOnCheck = DevExpress.Utils.DefaultBoolean.False;
            this.asNozzleNameColumn.OptionsFilter.ImmediateUpdatePopupDateFilterOnDateChange = DevExpress.Utils.DefaultBoolean.False;
            this.asNozzleNameColumn.OptionsFilter.ImmediateUpdatePopupExcelFilter = DevExpress.Utils.DefaultBoolean.False;
            this.asNozzleNameColumn.OptionsFilter.ShowEmptyDateFilter = false;
            this.asNozzleNameColumn.Visible = true;
            this.asNozzleNameColumn.Width = 128;
            // 
            // asNozzleID11Band
            // 
            this.asNozzleID11Band.AppearanceHeader.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.asNozzleID11Band.AppearanceHeader.Options.UseFont = true;
            this.asNozzleID11Band.AppearanceHeader.Options.UseTextOptions = true;
            this.asNozzleID11Band.AppearanceHeader.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
            this.asNozzleID11Band.Caption = "Indoor No.1 #1";
            this.asNozzleID11Band.Columns.Add(this.asNozzleID11DiameterColumn);
            this.asNozzleID11Band.Columns.Add(this.asNozzleID11CheckColumn);
            this.asNozzleID11Band.MinWidth = 16;
            this.asNozzleID11Band.Name = "asNozzleID11Band";
            this.asNozzleID11Band.VisibleIndex = 1;
            this.asNozzleID11Band.Width = 136;
            // 
            // asNozzleID11DiameterColumn
            // 
            this.asNozzleID11DiameterColumn.AppearanceCell.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.asNozzleID11DiameterColumn.AppearanceCell.Options.UseFont = true;
            this.asNozzleID11DiameterColumn.AppearanceCell.Options.UseTextOptions = true;
            this.asNozzleID11DiameterColumn.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Far;
            this.asNozzleID11DiameterColumn.AppearanceHeader.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.asNozzleID11DiameterColumn.AppearanceHeader.Options.UseFont = true;
            this.asNozzleID11DiameterColumn.AppearanceHeader.Options.UseTextOptions = true;
            this.asNozzleID11DiameterColumn.AppearanceHeader.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
            this.asNozzleID11DiameterColumn.Caption = "Diameter";
            this.asNozzleID11DiameterColumn.FieldName = "ID11Diameter";
            this.asNozzleID11DiameterColumn.MinWidth = 36;
            this.asNozzleID11DiameterColumn.Name = "asNozzleID11DiameterColumn";
            this.asNozzleID11DiameterColumn.OptionsColumn.AllowEdit = false;
            this.asNozzleID11DiameterColumn.OptionsColumn.AllowFocus = false;
            this.asNozzleID11DiameterColumn.OptionsColumn.AllowGroup = DevExpress.Utils.DefaultBoolean.False;
            this.asNozzleID11DiameterColumn.OptionsColumn.AllowIncrementalSearch = false;
            this.asNozzleID11DiameterColumn.OptionsColumn.AllowMerge = DevExpress.Utils.DefaultBoolean.False;
            this.asNozzleID11DiameterColumn.OptionsColumn.AllowMove = false;
            this.asNozzleID11DiameterColumn.OptionsColumn.AllowShowHide = false;
            this.asNozzleID11DiameterColumn.OptionsColumn.AllowSize = false;
            this.asNozzleID11DiameterColumn.OptionsColumn.AllowSort = DevExpress.Utils.DefaultBoolean.False;
            this.asNozzleID11DiameterColumn.OptionsColumn.FixedWidth = true;
            this.asNozzleID11DiameterColumn.OptionsColumn.ImmediateUpdateRowPosition = DevExpress.Utils.DefaultBoolean.False;
            this.asNozzleID11DiameterColumn.OptionsColumn.Printable = DevExpress.Utils.DefaultBoolean.False;
            this.asNozzleID11DiameterColumn.OptionsColumn.ReadOnly = true;
            this.asNozzleID11DiameterColumn.OptionsFilter.AllowAutoFilter = false;
            this.asNozzleID11DiameterColumn.OptionsFilter.AllowFilter = false;
            this.asNozzleID11DiameterColumn.OptionsFilter.AllowFilterModeChanging = DevExpress.Utils.DefaultBoolean.False;
            this.asNozzleID11DiameterColumn.OptionsFilter.FilterBySortField = DevExpress.Utils.DefaultBoolean.False;
            this.asNozzleID11DiameterColumn.OptionsFilter.ImmediateUpdateAutoFilter = false;
            this.asNozzleID11DiameterColumn.OptionsFilter.ImmediateUpdatePopupDateFilterOnCheck = DevExpress.Utils.DefaultBoolean.False;
            this.asNozzleID11DiameterColumn.OptionsFilter.ImmediateUpdatePopupDateFilterOnDateChange = DevExpress.Utils.DefaultBoolean.False;
            this.asNozzleID11DiameterColumn.OptionsFilter.ImmediateUpdatePopupExcelFilter = DevExpress.Utils.DefaultBoolean.False;
            this.asNozzleID11DiameterColumn.OptionsFilter.ShowBlanksFilterItems = DevExpress.Utils.DefaultBoolean.False;
            this.asNozzleID11DiameterColumn.Visible = true;
            this.asNozzleID11DiameterColumn.Width = 68;
            // 
            // asNozzleID11CheckColumn
            // 
            this.asNozzleID11CheckColumn.AppearanceCell.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.asNozzleID11CheckColumn.AppearanceCell.Options.UseFont = true;
            this.asNozzleID11CheckColumn.AppearanceCell.Options.UseTextOptions = true;
            this.asNozzleID11CheckColumn.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
            this.asNozzleID11CheckColumn.AppearanceHeader.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.asNozzleID11CheckColumn.AppearanceHeader.Options.UseFont = true;
            this.asNozzleID11CheckColumn.AppearanceHeader.Options.UseTextOptions = true;
            this.asNozzleID11CheckColumn.AppearanceHeader.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
            this.asNozzleID11CheckColumn.Caption = "State";
            this.asNozzleID11CheckColumn.ColumnEdit = this.asNozzleCheckEdit;
            this.asNozzleID11CheckColumn.FieldName = "ID11State";
            this.asNozzleID11CheckColumn.MinWidth = 27;
            this.asNozzleID11CheckColumn.Name = "asNozzleID11CheckColumn";
            this.asNozzleID11CheckColumn.OptionsColumn.AllowEdit = false;
            this.asNozzleID11CheckColumn.OptionsColumn.AllowFocus = false;
            this.asNozzleID11CheckColumn.OptionsColumn.AllowGroup = DevExpress.Utils.DefaultBoolean.False;
            this.asNozzleID11CheckColumn.OptionsColumn.AllowIncrementalSearch = false;
            this.asNozzleID11CheckColumn.OptionsColumn.AllowMerge = DevExpress.Utils.DefaultBoolean.False;
            this.asNozzleID11CheckColumn.OptionsColumn.AllowMove = false;
            this.asNozzleID11CheckColumn.OptionsColumn.AllowShowHide = false;
            this.asNozzleID11CheckColumn.OptionsColumn.AllowSize = false;
            this.asNozzleID11CheckColumn.OptionsColumn.AllowSort = DevExpress.Utils.DefaultBoolean.False;
            this.asNozzleID11CheckColumn.OptionsColumn.FixedWidth = true;
            this.asNozzleID11CheckColumn.OptionsColumn.ImmediateUpdateRowPosition = DevExpress.Utils.DefaultBoolean.False;
            this.asNozzleID11CheckColumn.OptionsColumn.Printable = DevExpress.Utils.DefaultBoolean.False;
            this.asNozzleID11CheckColumn.OptionsColumn.ReadOnly = true;
            this.asNozzleID11CheckColumn.OptionsFilter.AllowAutoFilter = false;
            this.asNozzleID11CheckColumn.OptionsFilter.AllowFilter = false;
            this.asNozzleID11CheckColumn.OptionsFilter.AllowFilterModeChanging = DevExpress.Utils.DefaultBoolean.False;
            this.asNozzleID11CheckColumn.OptionsFilter.FilterBySortField = DevExpress.Utils.DefaultBoolean.False;
            this.asNozzleID11CheckColumn.OptionsFilter.ImmediateUpdateAutoFilter = false;
            this.asNozzleID11CheckColumn.OptionsFilter.ImmediateUpdatePopupDateFilterOnCheck = DevExpress.Utils.DefaultBoolean.False;
            this.asNozzleID11CheckColumn.OptionsFilter.ImmediateUpdatePopupDateFilterOnDateChange = DevExpress.Utils.DefaultBoolean.False;
            this.asNozzleID11CheckColumn.OptionsFilter.ImmediateUpdatePopupExcelFilter = DevExpress.Utils.DefaultBoolean.False;
            this.asNozzleID11CheckColumn.OptionsFilter.ShowEmptyDateFilter = false;
            this.asNozzleID11CheckColumn.Visible = true;
            this.asNozzleID11CheckColumn.Width = 68;
            // 
            // asNozzleCheckEdit
            // 
            this.asNozzleCheckEdit.AllowGrayed = true;
            this.asNozzleCheckEdit.AutoHeight = false;
            this.asNozzleCheckEdit.CheckStyle = DevExpress.XtraEditors.Controls.CheckStyles.Radio;
            this.asNozzleCheckEdit.Name = "asNozzleCheckEdit";
            this.asNozzleCheckEdit.NullStyle = DevExpress.XtraEditors.Controls.StyleIndeterminate.Inactive;
            this.asNozzleCheckEdit.ReadOnly = true;
            this.asNozzleCheckEdit.ValueChecked = 1;
            this.asNozzleCheckEdit.ValueGrayed = -1;
            this.asNozzleCheckEdit.ValueUnchecked = 0;
            // 
            // asNozzleID12Band
            // 
            this.asNozzleID12Band.AppearanceHeader.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.asNozzleID12Band.AppearanceHeader.Options.UseFont = true;
            this.asNozzleID12Band.AppearanceHeader.Options.UseTextOptions = true;
            this.asNozzleID12Band.AppearanceHeader.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
            this.asNozzleID12Band.Caption = "Indoor No.1 #2";
            this.asNozzleID12Band.Columns.Add(this.asNozzleID12DiameterColumn);
            this.asNozzleID12Band.Columns.Add(this.asNozzleID12CheckColumn);
            this.asNozzleID12Band.MinWidth = 16;
            this.asNozzleID12Band.Name = "asNozzleID12Band";
            this.asNozzleID12Band.VisibleIndex = 2;
            this.asNozzleID12Band.Width = 136;
            // 
            // asNozzleID12DiameterColumn
            // 
            this.asNozzleID12DiameterColumn.AppearanceCell.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.asNozzleID12DiameterColumn.AppearanceCell.Options.UseFont = true;
            this.asNozzleID12DiameterColumn.AppearanceCell.Options.UseTextOptions = true;
            this.asNozzleID12DiameterColumn.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Far;
            this.asNozzleID12DiameterColumn.AppearanceHeader.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.asNozzleID12DiameterColumn.AppearanceHeader.Options.UseFont = true;
            this.asNozzleID12DiameterColumn.AppearanceHeader.Options.UseTextOptions = true;
            this.asNozzleID12DiameterColumn.AppearanceHeader.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
            this.asNozzleID12DiameterColumn.Caption = "Diameter";
            this.asNozzleID12DiameterColumn.FieldName = "ID12Diameter";
            this.asNozzleID12DiameterColumn.MinWidth = 36;
            this.asNozzleID12DiameterColumn.Name = "asNozzleID12DiameterColumn";
            this.asNozzleID12DiameterColumn.OptionsColumn.AllowEdit = false;
            this.asNozzleID12DiameterColumn.OptionsColumn.AllowFocus = false;
            this.asNozzleID12DiameterColumn.OptionsColumn.AllowGroup = DevExpress.Utils.DefaultBoolean.False;
            this.asNozzleID12DiameterColumn.OptionsColumn.AllowIncrementalSearch = false;
            this.asNozzleID12DiameterColumn.OptionsColumn.AllowMerge = DevExpress.Utils.DefaultBoolean.False;
            this.asNozzleID12DiameterColumn.OptionsColumn.AllowMove = false;
            this.asNozzleID12DiameterColumn.OptionsColumn.AllowShowHide = false;
            this.asNozzleID12DiameterColumn.OptionsColumn.AllowSize = false;
            this.asNozzleID12DiameterColumn.OptionsColumn.AllowSort = DevExpress.Utils.DefaultBoolean.False;
            this.asNozzleID12DiameterColumn.OptionsColumn.FixedWidth = true;
            this.asNozzleID12DiameterColumn.OptionsColumn.ImmediateUpdateRowPosition = DevExpress.Utils.DefaultBoolean.False;
            this.asNozzleID12DiameterColumn.OptionsColumn.Printable = DevExpress.Utils.DefaultBoolean.False;
            this.asNozzleID12DiameterColumn.OptionsColumn.ReadOnly = true;
            this.asNozzleID12DiameterColumn.OptionsFilter.AllowAutoFilter = false;
            this.asNozzleID12DiameterColumn.OptionsFilter.AllowFilter = false;
            this.asNozzleID12DiameterColumn.OptionsFilter.AllowFilterModeChanging = DevExpress.Utils.DefaultBoolean.False;
            this.asNozzleID12DiameterColumn.OptionsFilter.FilterBySortField = DevExpress.Utils.DefaultBoolean.False;
            this.asNozzleID12DiameterColumn.OptionsFilter.ImmediateUpdateAutoFilter = false;
            this.asNozzleID12DiameterColumn.OptionsFilter.ImmediateUpdatePopupDateFilterOnCheck = DevExpress.Utils.DefaultBoolean.False;
            this.asNozzleID12DiameterColumn.OptionsFilter.ImmediateUpdatePopupDateFilterOnDateChange = DevExpress.Utils.DefaultBoolean.False;
            this.asNozzleID12DiameterColumn.OptionsFilter.ImmediateUpdatePopupExcelFilter = DevExpress.Utils.DefaultBoolean.False;
            this.asNozzleID12DiameterColumn.OptionsFilter.ShowBlanksFilterItems = DevExpress.Utils.DefaultBoolean.False;
            this.asNozzleID12DiameterColumn.Visible = true;
            this.asNozzleID12DiameterColumn.Width = 68;
            // 
            // asNozzleID12CheckColumn
            // 
            this.asNozzleID12CheckColumn.AppearanceCell.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.asNozzleID12CheckColumn.AppearanceCell.Options.UseFont = true;
            this.asNozzleID12CheckColumn.AppearanceCell.Options.UseTextOptions = true;
            this.asNozzleID12CheckColumn.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
            this.asNozzleID12CheckColumn.AppearanceHeader.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.asNozzleID12CheckColumn.AppearanceHeader.Options.UseFont = true;
            this.asNozzleID12CheckColumn.AppearanceHeader.Options.UseTextOptions = true;
            this.asNozzleID12CheckColumn.AppearanceHeader.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
            this.asNozzleID12CheckColumn.Caption = "State";
            this.asNozzleID12CheckColumn.ColumnEdit = this.asNozzleCheckEdit;
            this.asNozzleID12CheckColumn.FieldName = "ID12State";
            this.asNozzleID12CheckColumn.MinWidth = 27;
            this.asNozzleID12CheckColumn.Name = "asNozzleID12CheckColumn";
            this.asNozzleID12CheckColumn.OptionsColumn.AllowEdit = false;
            this.asNozzleID12CheckColumn.OptionsColumn.AllowFocus = false;
            this.asNozzleID12CheckColumn.OptionsColumn.AllowGroup = DevExpress.Utils.DefaultBoolean.False;
            this.asNozzleID12CheckColumn.OptionsColumn.AllowIncrementalSearch = false;
            this.asNozzleID12CheckColumn.OptionsColumn.AllowMerge = DevExpress.Utils.DefaultBoolean.False;
            this.asNozzleID12CheckColumn.OptionsColumn.AllowMove = false;
            this.asNozzleID12CheckColumn.OptionsColumn.AllowShowHide = false;
            this.asNozzleID12CheckColumn.OptionsColumn.AllowSize = false;
            this.asNozzleID12CheckColumn.OptionsColumn.AllowSort = DevExpress.Utils.DefaultBoolean.False;
            this.asNozzleID12CheckColumn.OptionsColumn.FixedWidth = true;
            this.asNozzleID12CheckColumn.OptionsColumn.ImmediateUpdateRowPosition = DevExpress.Utils.DefaultBoolean.False;
            this.asNozzleID12CheckColumn.OptionsColumn.Printable = DevExpress.Utils.DefaultBoolean.False;
            this.asNozzleID12CheckColumn.OptionsColumn.ReadOnly = true;
            this.asNozzleID12CheckColumn.OptionsFilter.AllowAutoFilter = false;
            this.asNozzleID12CheckColumn.OptionsFilter.AllowFilter = false;
            this.asNozzleID12CheckColumn.OptionsFilter.AllowFilterModeChanging = DevExpress.Utils.DefaultBoolean.False;
            this.asNozzleID12CheckColumn.OptionsFilter.FilterBySortField = DevExpress.Utils.DefaultBoolean.False;
            this.asNozzleID12CheckColumn.OptionsFilter.ImmediateUpdateAutoFilter = false;
            this.asNozzleID12CheckColumn.OptionsFilter.ImmediateUpdatePopupDateFilterOnCheck = DevExpress.Utils.DefaultBoolean.False;
            this.asNozzleID12CheckColumn.OptionsFilter.ImmediateUpdatePopupDateFilterOnDateChange = DevExpress.Utils.DefaultBoolean.False;
            this.asNozzleID12CheckColumn.OptionsFilter.ImmediateUpdatePopupExcelFilter = DevExpress.Utils.DefaultBoolean.False;
            this.asNozzleID12CheckColumn.OptionsFilter.ShowEmptyDateFilter = false;
            this.asNozzleID12CheckColumn.Visible = true;
            this.asNozzleID12CheckColumn.Width = 68;
            // 
            // asNozzleID21Band
            // 
            this.asNozzleID21Band.AppearanceHeader.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.asNozzleID21Band.AppearanceHeader.Options.UseFont = true;
            this.asNozzleID21Band.AppearanceHeader.Options.UseTextOptions = true;
            this.asNozzleID21Band.AppearanceHeader.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
            this.asNozzleID21Band.Caption = "Indoor No.2 #1";
            this.asNozzleID21Band.Columns.Add(this.asNozzleID21DiameterColumn);
            this.asNozzleID21Band.Columns.Add(this.asNozzleID21CheckColumn);
            this.asNozzleID21Band.MinWidth = 16;
            this.asNozzleID21Band.Name = "asNozzleID21Band";
            this.asNozzleID21Band.VisibleIndex = 3;
            this.asNozzleID21Band.Width = 136;
            // 
            // asNozzleID21DiameterColumn
            // 
            this.asNozzleID21DiameterColumn.AppearanceCell.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.asNozzleID21DiameterColumn.AppearanceCell.Options.UseFont = true;
            this.asNozzleID21DiameterColumn.AppearanceCell.Options.UseTextOptions = true;
            this.asNozzleID21DiameterColumn.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Far;
            this.asNozzleID21DiameterColumn.AppearanceHeader.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.asNozzleID21DiameterColumn.AppearanceHeader.Options.UseFont = true;
            this.asNozzleID21DiameterColumn.AppearanceHeader.Options.UseTextOptions = true;
            this.asNozzleID21DiameterColumn.AppearanceHeader.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
            this.asNozzleID21DiameterColumn.Caption = "Diameter";
            this.asNozzleID21DiameterColumn.FieldName = "ID21Diameter";
            this.asNozzleID21DiameterColumn.MinWidth = 36;
            this.asNozzleID21DiameterColumn.Name = "asNozzleID21DiameterColumn";
            this.asNozzleID21DiameterColumn.OptionsColumn.AllowEdit = false;
            this.asNozzleID21DiameterColumn.OptionsColumn.AllowFocus = false;
            this.asNozzleID21DiameterColumn.OptionsColumn.AllowGroup = DevExpress.Utils.DefaultBoolean.False;
            this.asNozzleID21DiameterColumn.OptionsColumn.AllowIncrementalSearch = false;
            this.asNozzleID21DiameterColumn.OptionsColumn.AllowMerge = DevExpress.Utils.DefaultBoolean.False;
            this.asNozzleID21DiameterColumn.OptionsColumn.AllowMove = false;
            this.asNozzleID21DiameterColumn.OptionsColumn.AllowShowHide = false;
            this.asNozzleID21DiameterColumn.OptionsColumn.AllowSize = false;
            this.asNozzleID21DiameterColumn.OptionsColumn.AllowSort = DevExpress.Utils.DefaultBoolean.False;
            this.asNozzleID21DiameterColumn.OptionsColumn.FixedWidth = true;
            this.asNozzleID21DiameterColumn.OptionsColumn.ImmediateUpdateRowPosition = DevExpress.Utils.DefaultBoolean.False;
            this.asNozzleID21DiameterColumn.OptionsColumn.Printable = DevExpress.Utils.DefaultBoolean.False;
            this.asNozzleID21DiameterColumn.OptionsColumn.ReadOnly = true;
            this.asNozzleID21DiameterColumn.OptionsFilter.AllowAutoFilter = false;
            this.asNozzleID21DiameterColumn.OptionsFilter.AllowFilter = false;
            this.asNozzleID21DiameterColumn.OptionsFilter.AllowFilterModeChanging = DevExpress.Utils.DefaultBoolean.False;
            this.asNozzleID21DiameterColumn.OptionsFilter.FilterBySortField = DevExpress.Utils.DefaultBoolean.False;
            this.asNozzleID21DiameterColumn.OptionsFilter.ImmediateUpdateAutoFilter = false;
            this.asNozzleID21DiameterColumn.OptionsFilter.ImmediateUpdatePopupDateFilterOnCheck = DevExpress.Utils.DefaultBoolean.False;
            this.asNozzleID21DiameterColumn.OptionsFilter.ImmediateUpdatePopupDateFilterOnDateChange = DevExpress.Utils.DefaultBoolean.False;
            this.asNozzleID21DiameterColumn.OptionsFilter.ImmediateUpdatePopupExcelFilter = DevExpress.Utils.DefaultBoolean.False;
            this.asNozzleID21DiameterColumn.OptionsFilter.ShowBlanksFilterItems = DevExpress.Utils.DefaultBoolean.False;
            this.asNozzleID21DiameterColumn.Visible = true;
            this.asNozzleID21DiameterColumn.Width = 68;
            // 
            // asNozzleID21CheckColumn
            // 
            this.asNozzleID21CheckColumn.AppearanceCell.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.asNozzleID21CheckColumn.AppearanceCell.Options.UseFont = true;
            this.asNozzleID21CheckColumn.AppearanceCell.Options.UseTextOptions = true;
            this.asNozzleID21CheckColumn.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
            this.asNozzleID21CheckColumn.AppearanceHeader.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.asNozzleID21CheckColumn.AppearanceHeader.Options.UseFont = true;
            this.asNozzleID21CheckColumn.AppearanceHeader.Options.UseTextOptions = true;
            this.asNozzleID21CheckColumn.AppearanceHeader.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
            this.asNozzleID21CheckColumn.Caption = "State";
            this.asNozzleID21CheckColumn.ColumnEdit = this.asNozzleCheckEdit;
            this.asNozzleID21CheckColumn.FieldName = "ID21State";
            this.asNozzleID21CheckColumn.MinWidth = 27;
            this.asNozzleID21CheckColumn.Name = "asNozzleID21CheckColumn";
            this.asNozzleID21CheckColumn.OptionsColumn.AllowEdit = false;
            this.asNozzleID21CheckColumn.OptionsColumn.AllowFocus = false;
            this.asNozzleID21CheckColumn.OptionsColumn.AllowGroup = DevExpress.Utils.DefaultBoolean.False;
            this.asNozzleID21CheckColumn.OptionsColumn.AllowIncrementalSearch = false;
            this.asNozzleID21CheckColumn.OptionsColumn.AllowMerge = DevExpress.Utils.DefaultBoolean.False;
            this.asNozzleID21CheckColumn.OptionsColumn.AllowMove = false;
            this.asNozzleID21CheckColumn.OptionsColumn.AllowShowHide = false;
            this.asNozzleID21CheckColumn.OptionsColumn.AllowSize = false;
            this.asNozzleID21CheckColumn.OptionsColumn.AllowSort = DevExpress.Utils.DefaultBoolean.False;
            this.asNozzleID21CheckColumn.OptionsColumn.FixedWidth = true;
            this.asNozzleID21CheckColumn.OptionsColumn.ImmediateUpdateRowPosition = DevExpress.Utils.DefaultBoolean.False;
            this.asNozzleID21CheckColumn.OptionsColumn.Printable = DevExpress.Utils.DefaultBoolean.False;
            this.asNozzleID21CheckColumn.OptionsColumn.ReadOnly = true;
            this.asNozzleID21CheckColumn.OptionsFilter.AllowAutoFilter = false;
            this.asNozzleID21CheckColumn.OptionsFilter.AllowFilter = false;
            this.asNozzleID21CheckColumn.OptionsFilter.AllowFilterModeChanging = DevExpress.Utils.DefaultBoolean.False;
            this.asNozzleID21CheckColumn.OptionsFilter.FilterBySortField = DevExpress.Utils.DefaultBoolean.False;
            this.asNozzleID21CheckColumn.OptionsFilter.ImmediateUpdateAutoFilter = false;
            this.asNozzleID21CheckColumn.OptionsFilter.ImmediateUpdatePopupDateFilterOnCheck = DevExpress.Utils.DefaultBoolean.False;
            this.asNozzleID21CheckColumn.OptionsFilter.ImmediateUpdatePopupDateFilterOnDateChange = DevExpress.Utils.DefaultBoolean.False;
            this.asNozzleID21CheckColumn.OptionsFilter.ImmediateUpdatePopupExcelFilter = DevExpress.Utils.DefaultBoolean.False;
            this.asNozzleID21CheckColumn.OptionsFilter.ShowEmptyDateFilter = false;
            this.asNozzleID21CheckColumn.Visible = true;
            this.asNozzleID21CheckColumn.Width = 68;
            // 
            // asNozzleID22Band
            // 
            this.asNozzleID22Band.AppearanceHeader.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.asNozzleID22Band.AppearanceHeader.Options.UseFont = true;
            this.asNozzleID22Band.AppearanceHeader.Options.UseTextOptions = true;
            this.asNozzleID22Band.AppearanceHeader.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
            this.asNozzleID22Band.Caption = "Indoor No.2 #2";
            this.asNozzleID22Band.Columns.Add(this.asNozzleID22DiameterColumn);
            this.asNozzleID22Band.Columns.Add(this.asNozzleID22CheckColumn);
            this.asNozzleID22Band.MinWidth = 16;
            this.asNozzleID22Band.Name = "asNozzleID22Band";
            this.asNozzleID22Band.VisibleIndex = 4;
            this.asNozzleID22Band.Width = 136;
            // 
            // asNozzleID22DiameterColumn
            // 
            this.asNozzleID22DiameterColumn.AppearanceCell.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.asNozzleID22DiameterColumn.AppearanceCell.Options.UseFont = true;
            this.asNozzleID22DiameterColumn.AppearanceCell.Options.UseTextOptions = true;
            this.asNozzleID22DiameterColumn.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Far;
            this.asNozzleID22DiameterColumn.AppearanceHeader.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.asNozzleID22DiameterColumn.AppearanceHeader.Options.UseFont = true;
            this.asNozzleID22DiameterColumn.AppearanceHeader.Options.UseTextOptions = true;
            this.asNozzleID22DiameterColumn.AppearanceHeader.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
            this.asNozzleID22DiameterColumn.Caption = "Diameter";
            this.asNozzleID22DiameterColumn.FieldName = "ID22Diameter";
            this.asNozzleID22DiameterColumn.MinWidth = 36;
            this.asNozzleID22DiameterColumn.Name = "asNozzleID22DiameterColumn";
            this.asNozzleID22DiameterColumn.OptionsColumn.AllowEdit = false;
            this.asNozzleID22DiameterColumn.OptionsColumn.AllowFocus = false;
            this.asNozzleID22DiameterColumn.OptionsColumn.AllowGroup = DevExpress.Utils.DefaultBoolean.False;
            this.asNozzleID22DiameterColumn.OptionsColumn.AllowIncrementalSearch = false;
            this.asNozzleID22DiameterColumn.OptionsColumn.AllowMerge = DevExpress.Utils.DefaultBoolean.False;
            this.asNozzleID22DiameterColumn.OptionsColumn.AllowMove = false;
            this.asNozzleID22DiameterColumn.OptionsColumn.AllowShowHide = false;
            this.asNozzleID22DiameterColumn.OptionsColumn.AllowSize = false;
            this.asNozzleID22DiameterColumn.OptionsColumn.AllowSort = DevExpress.Utils.DefaultBoolean.False;
            this.asNozzleID22DiameterColumn.OptionsColumn.FixedWidth = true;
            this.asNozzleID22DiameterColumn.OptionsColumn.ImmediateUpdateRowPosition = DevExpress.Utils.DefaultBoolean.False;
            this.asNozzleID22DiameterColumn.OptionsColumn.Printable = DevExpress.Utils.DefaultBoolean.False;
            this.asNozzleID22DiameterColumn.OptionsColumn.ReadOnly = true;
            this.asNozzleID22DiameterColumn.OptionsColumn.TabStop = false;
            this.asNozzleID22DiameterColumn.OptionsFilter.AllowAutoFilter = false;
            this.asNozzleID22DiameterColumn.OptionsFilter.AllowFilter = false;
            this.asNozzleID22DiameterColumn.OptionsFilter.AllowFilterModeChanging = DevExpress.Utils.DefaultBoolean.False;
            this.asNozzleID22DiameterColumn.OptionsFilter.FilterBySortField = DevExpress.Utils.DefaultBoolean.False;
            this.asNozzleID22DiameterColumn.OptionsFilter.ImmediateUpdateAutoFilter = false;
            this.asNozzleID22DiameterColumn.OptionsFilter.ImmediateUpdatePopupDateFilterOnCheck = DevExpress.Utils.DefaultBoolean.False;
            this.asNozzleID22DiameterColumn.OptionsFilter.ImmediateUpdatePopupDateFilterOnDateChange = DevExpress.Utils.DefaultBoolean.False;
            this.asNozzleID22DiameterColumn.OptionsFilter.ImmediateUpdatePopupExcelFilter = DevExpress.Utils.DefaultBoolean.False;
            this.asNozzleID22DiameterColumn.OptionsFilter.ShowBlanksFilterItems = DevExpress.Utils.DefaultBoolean.False;
            this.asNozzleID22DiameterColumn.Visible = true;
            this.asNozzleID22DiameterColumn.Width = 68;
            // 
            // asNozzleID22CheckColumn
            // 
            this.asNozzleID22CheckColumn.AppearanceCell.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.asNozzleID22CheckColumn.AppearanceCell.Options.UseFont = true;
            this.asNozzleID22CheckColumn.AppearanceCell.Options.UseTextOptions = true;
            this.asNozzleID22CheckColumn.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
            this.asNozzleID22CheckColumn.AppearanceHeader.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.asNozzleID22CheckColumn.AppearanceHeader.Options.UseFont = true;
            this.asNozzleID22CheckColumn.AppearanceHeader.Options.UseTextOptions = true;
            this.asNozzleID22CheckColumn.AppearanceHeader.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
            this.asNozzleID22CheckColumn.Caption = "State";
            this.asNozzleID22CheckColumn.ColumnEdit = this.asNozzleCheckEdit;
            this.asNozzleID22CheckColumn.FieldName = "ID22State";
            this.asNozzleID22CheckColumn.MinWidth = 27;
            this.asNozzleID22CheckColumn.Name = "asNozzleID22CheckColumn";
            this.asNozzleID22CheckColumn.OptionsColumn.AllowEdit = false;
            this.asNozzleID22CheckColumn.OptionsColumn.AllowFocus = false;
            this.asNozzleID22CheckColumn.OptionsColumn.AllowGroup = DevExpress.Utils.DefaultBoolean.False;
            this.asNozzleID22CheckColumn.OptionsColumn.AllowIncrementalSearch = false;
            this.asNozzleID22CheckColumn.OptionsColumn.AllowMerge = DevExpress.Utils.DefaultBoolean.False;
            this.asNozzleID22CheckColumn.OptionsColumn.AllowMove = false;
            this.asNozzleID22CheckColumn.OptionsColumn.AllowShowHide = false;
            this.asNozzleID22CheckColumn.OptionsColumn.AllowSize = false;
            this.asNozzleID22CheckColumn.OptionsColumn.AllowSort = DevExpress.Utils.DefaultBoolean.False;
            this.asNozzleID22CheckColumn.OptionsColumn.FixedWidth = true;
            this.asNozzleID22CheckColumn.OptionsColumn.ImmediateUpdateRowPosition = DevExpress.Utils.DefaultBoolean.False;
            this.asNozzleID22CheckColumn.OptionsColumn.Printable = DevExpress.Utils.DefaultBoolean.False;
            this.asNozzleID22CheckColumn.OptionsColumn.ReadOnly = true;
            this.asNozzleID22CheckColumn.OptionsFilter.AllowAutoFilter = false;
            this.asNozzleID22CheckColumn.OptionsFilter.AllowFilter = false;
            this.asNozzleID22CheckColumn.OptionsFilter.AllowFilterModeChanging = DevExpress.Utils.DefaultBoolean.False;
            this.asNozzleID22CheckColumn.OptionsFilter.FilterBySortField = DevExpress.Utils.DefaultBoolean.False;
            this.asNozzleID22CheckColumn.OptionsFilter.ImmediateUpdateAutoFilter = false;
            this.asNozzleID22CheckColumn.OptionsFilter.ImmediateUpdatePopupDateFilterOnCheck = DevExpress.Utils.DefaultBoolean.False;
            this.asNozzleID22CheckColumn.OptionsFilter.ImmediateUpdatePopupDateFilterOnDateChange = DevExpress.Utils.DefaultBoolean.False;
            this.asNozzleID22CheckColumn.OptionsFilter.ImmediateUpdatePopupExcelFilter = DevExpress.Utils.DefaultBoolean.False;
            this.asNozzleID22CheckColumn.OptionsFilter.ShowEmptyDateFilter = false;
            this.asNozzleID22CheckColumn.Visible = true;
            this.asNozzleID22CheckColumn.Width = 68;
            // 
            // airSideGrid
            // 
            this.airSideGrid.Cursor = System.Windows.Forms.Cursors.Default;
            this.airSideGrid.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.airSideGrid.Location = new System.Drawing.Point(6, 40);
            this.airSideGrid.MainView = this.airSideGridView;
            this.airSideGrid.Name = "airSideGrid";
            this.airSideGrid.Size = new System.Drawing.Size(674, 600);
            this.airSideGrid.TabIndex = 277;
            this.airSideGrid.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] {
            this.airSideGridView});
            // 
            // airSideGridView
            // 
            this.airSideGridView.Appearance.FixedLine.Font = new System.Drawing.Font("Arial", 9F);
            this.airSideGridView.Appearance.FixedLine.Options.UseFont = true;
            this.airSideGridView.Appearance.FocusedRow.Font = new System.Drawing.Font("Arial", 9F);
            this.airSideGridView.Appearance.FocusedRow.Options.UseFont = true;
            this.airSideGridView.Appearance.HeaderPanel.Font = new System.Drawing.Font("Arial", 9F);
            this.airSideGridView.Appearance.HeaderPanel.Options.UseFont = true;
            this.airSideGridView.Appearance.HideSelectionRow.Font = new System.Drawing.Font("Arial", 9F);
            this.airSideGridView.Appearance.HideSelectionRow.Options.UseFont = true;
            this.airSideGridView.Appearance.OddRow.Font = new System.Drawing.Font("Arial", 9F);
            this.airSideGridView.Appearance.OddRow.Options.UseFont = true;
            this.airSideGridView.Appearance.Preview.Font = new System.Drawing.Font("Arial", 9F);
            this.airSideGridView.Appearance.Preview.Options.UseFont = true;
            this.airSideGridView.Appearance.Row.Font = new System.Drawing.Font("Arial", 9F);
            this.airSideGridView.Appearance.Row.Options.UseFont = true;
            this.airSideGridView.Appearance.SelectedRow.Font = new System.Drawing.Font("Arial", 9F);
            this.airSideGridView.Appearance.SelectedRow.Options.UseFont = true;
            this.airSideGridView.Appearance.ViewCaption.Font = new System.Drawing.Font("Arial", 9F);
            this.airSideGridView.Appearance.ViewCaption.Options.UseFont = true;
            this.airSideGridView.Columns.AddRange(new DevExpress.XtraGrid.Columns.GridColumn[] {
            this.agNameColumn,
            this.agID11Column,
            this.agID12Column,
            this.agID21Column,
            this.sgID22Column,
            this.sgUnitColumn});
            this.airSideGridView.CustomizationFormBounds = new System.Drawing.Rectangle(2884, 580, 210, 186);
            this.airSideGridView.GridControl = this.airSideGrid;
            this.airSideGridView.Name = "airSideGridView";
            this.airSideGridView.OptionsBehavior.Editable = false;
            this.airSideGridView.OptionsBehavior.ReadOnly = true;
            this.airSideGridView.OptionsClipboard.AllowCopy = DevExpress.Utils.DefaultBoolean.True;
            this.airSideGridView.OptionsClipboard.AllowExcelFormat = DevExpress.Utils.DefaultBoolean.True;
            this.airSideGridView.OptionsCustomization.AllowColumnMoving = false;
            this.airSideGridView.OptionsCustomization.AllowColumnResizing = false;
            this.airSideGridView.OptionsCustomization.AllowFilter = false;
            this.airSideGridView.OptionsCustomization.AllowGroup = false;
            this.airSideGridView.OptionsCustomization.AllowSort = false;
            this.airSideGridView.OptionsSelection.MultiSelect = true;
            this.airSideGridView.OptionsSelection.MultiSelectMode = DevExpress.XtraGrid.Views.Grid.GridMultiSelectMode.CellSelect;
            this.airSideGridView.OptionsView.ColumnAutoWidth = false;
            this.airSideGridView.OptionsView.ShowGroupPanel = false;
            this.airSideGridView.OptionsView.ShowIndicator = false;
            this.airSideGridView.Tag = 0;
            this.airSideGridView.CustomDrawCell += new DevExpress.XtraGrid.Views.Base.RowCellCustomDrawEventHandler(this.airSideGridView_CustomDrawCell);
            // 
            // agNameColumn
            // 
            this.agNameColumn.AppearanceCell.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.agNameColumn.AppearanceCell.Options.UseFont = true;
            this.agNameColumn.AppearanceHeader.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.agNameColumn.AppearanceHeader.Options.UseFont = true;
            this.agNameColumn.AppearanceHeader.Options.UseTextOptions = true;
            this.agNameColumn.AppearanceHeader.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Near;
            this.agNameColumn.Caption = "Name";
            this.agNameColumn.FieldName = "Name";
            this.agNameColumn.Name = "agNameColumn";
            this.agNameColumn.OptionsColumn.AllowEdit = false;
            this.agNameColumn.OptionsColumn.AllowFocus = false;
            this.agNameColumn.OptionsColumn.AllowGroup = DevExpress.Utils.DefaultBoolean.False;
            this.agNameColumn.OptionsColumn.AllowIncrementalSearch = false;
            this.agNameColumn.OptionsColumn.AllowMerge = DevExpress.Utils.DefaultBoolean.False;
            this.agNameColumn.OptionsColumn.AllowMove = false;
            this.agNameColumn.OptionsColumn.AllowShowHide = false;
            this.agNameColumn.OptionsColumn.AllowSize = false;
            this.agNameColumn.OptionsColumn.AllowSort = DevExpress.Utils.DefaultBoolean.False;
            this.agNameColumn.OptionsColumn.FixedWidth = true;
            this.agNameColumn.OptionsColumn.ImmediateUpdateRowPosition = DevExpress.Utils.DefaultBoolean.False;
            this.agNameColumn.OptionsColumn.Printable = DevExpress.Utils.DefaultBoolean.False;
            this.agNameColumn.OptionsColumn.ReadOnly = true;
            this.agNameColumn.OptionsColumn.TabStop = false;
            this.agNameColumn.OptionsFilter.AllowAutoFilter = false;
            this.agNameColumn.OptionsFilter.AllowFilter = false;
            this.agNameColumn.Visible = true;
            this.agNameColumn.VisibleIndex = 0;
            this.agNameColumn.Width = 177;
            // 
            // agID11Column
            // 
            this.agID11Column.AppearanceCell.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.agID11Column.AppearanceCell.Options.UseFont = true;
            this.agID11Column.AppearanceCell.Options.UseTextOptions = true;
            this.agID11Column.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Far;
            this.agID11Column.AppearanceHeader.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.agID11Column.AppearanceHeader.Options.UseFont = true;
            this.agID11Column.Caption = "Indoor No.1 #1";
            this.agID11Column.FieldName = "Indoor11";
            this.agID11Column.Name = "agID11Column";
            this.agID11Column.OptionsColumn.AllowEdit = false;
            this.agID11Column.OptionsColumn.AllowFocus = false;
            this.agID11Column.OptionsColumn.AllowGroup = DevExpress.Utils.DefaultBoolean.False;
            this.agID11Column.OptionsColumn.AllowIncrementalSearch = false;
            this.agID11Column.OptionsColumn.AllowMerge = DevExpress.Utils.DefaultBoolean.False;
            this.agID11Column.OptionsColumn.AllowMove = false;
            this.agID11Column.OptionsColumn.AllowShowHide = false;
            this.agID11Column.OptionsColumn.AllowSize = false;
            this.agID11Column.OptionsColumn.AllowSort = DevExpress.Utils.DefaultBoolean.False;
            this.agID11Column.OptionsColumn.FixedWidth = true;
            this.agID11Column.OptionsColumn.ReadOnly = true;
            this.agID11Column.OptionsColumn.TabStop = false;
            this.agID11Column.Visible = true;
            this.agID11Column.VisibleIndex = 1;
            this.agID11Column.Width = 98;
            // 
            // agID12Column
            // 
            this.agID12Column.AppearanceCell.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.agID12Column.AppearanceCell.Options.UseFont = true;
            this.agID12Column.AppearanceCell.Options.UseTextOptions = true;
            this.agID12Column.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Far;
            this.agID12Column.AppearanceHeader.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.agID12Column.AppearanceHeader.Options.UseFont = true;
            this.agID12Column.Caption = "Indoor No.1 #2";
            this.agID12Column.FieldName = "Indoor12";
            this.agID12Column.Name = "agID12Column";
            this.agID12Column.OptionsColumn.AllowEdit = false;
            this.agID12Column.OptionsColumn.AllowFocus = false;
            this.agID12Column.OptionsColumn.AllowGroup = DevExpress.Utils.DefaultBoolean.False;
            this.agID12Column.OptionsColumn.AllowIncrementalSearch = false;
            this.agID12Column.OptionsColumn.AllowMerge = DevExpress.Utils.DefaultBoolean.False;
            this.agID12Column.OptionsColumn.AllowMove = false;
            this.agID12Column.OptionsColumn.AllowShowHide = false;
            this.agID12Column.OptionsColumn.AllowSize = false;
            this.agID12Column.OptionsColumn.AllowSort = DevExpress.Utils.DefaultBoolean.False;
            this.agID12Column.OptionsColumn.FixedWidth = true;
            this.agID12Column.OptionsColumn.ReadOnly = true;
            this.agID12Column.OptionsColumn.TabStop = false;
            this.agID12Column.Visible = true;
            this.agID12Column.VisibleIndex = 2;
            this.agID12Column.Width = 98;
            // 
            // agID21Column
            // 
            this.agID21Column.AppearanceCell.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.agID21Column.AppearanceCell.Options.UseFont = true;
            this.agID21Column.AppearanceCell.Options.UseTextOptions = true;
            this.agID21Column.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Far;
            this.agID21Column.AppearanceHeader.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.agID21Column.AppearanceHeader.Options.UseFont = true;
            this.agID21Column.Caption = "Indoor No.2 #1";
            this.agID21Column.FieldName = "Indoor21";
            this.agID21Column.Name = "agID21Column";
            this.agID21Column.OptionsColumn.AllowEdit = false;
            this.agID21Column.OptionsColumn.AllowFocus = false;
            this.agID21Column.OptionsColumn.AllowGroup = DevExpress.Utils.DefaultBoolean.False;
            this.agID21Column.OptionsColumn.AllowIncrementalSearch = false;
            this.agID21Column.OptionsColumn.AllowMerge = DevExpress.Utils.DefaultBoolean.False;
            this.agID21Column.OptionsColumn.AllowMove = false;
            this.agID21Column.OptionsColumn.AllowShowHide = false;
            this.agID21Column.OptionsColumn.AllowSize = false;
            this.agID21Column.OptionsColumn.AllowSort = DevExpress.Utils.DefaultBoolean.False;
            this.agID21Column.OptionsColumn.FixedWidth = true;
            this.agID21Column.OptionsColumn.ReadOnly = true;
            this.agID21Column.OptionsColumn.TabStop = false;
            this.agID21Column.Visible = true;
            this.agID21Column.VisibleIndex = 3;
            this.agID21Column.Width = 98;
            // 
            // sgID22Column
            // 
            this.sgID22Column.AppearanceCell.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.sgID22Column.AppearanceCell.Options.UseFont = true;
            this.sgID22Column.AppearanceCell.Options.UseTextOptions = true;
            this.sgID22Column.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Far;
            this.sgID22Column.AppearanceHeader.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.sgID22Column.AppearanceHeader.Options.UseFont = true;
            this.sgID22Column.Caption = "Indoor No.2 #2";
            this.sgID22Column.FieldName = "Indoor22";
            this.sgID22Column.Name = "sgID22Column";
            this.sgID22Column.OptionsColumn.AllowEdit = false;
            this.sgID22Column.OptionsColumn.AllowFocus = false;
            this.sgID22Column.OptionsColumn.AllowGroup = DevExpress.Utils.DefaultBoolean.False;
            this.sgID22Column.OptionsColumn.AllowIncrementalSearch = false;
            this.sgID22Column.OptionsColumn.AllowMerge = DevExpress.Utils.DefaultBoolean.False;
            this.sgID22Column.OptionsColumn.AllowMove = false;
            this.sgID22Column.OptionsColumn.AllowShowHide = false;
            this.sgID22Column.OptionsColumn.AllowSize = false;
            this.sgID22Column.OptionsColumn.AllowSort = DevExpress.Utils.DefaultBoolean.False;
            this.sgID22Column.OptionsColumn.FixedWidth = true;
            this.sgID22Column.OptionsColumn.ImmediateUpdateRowPosition = DevExpress.Utils.DefaultBoolean.False;
            this.sgID22Column.OptionsColumn.Printable = DevExpress.Utils.DefaultBoolean.False;
            this.sgID22Column.OptionsColumn.ReadOnly = true;
            this.sgID22Column.OptionsColumn.TabStop = false;
            this.sgID22Column.OptionsFilter.AllowAutoFilter = false;
            this.sgID22Column.OptionsFilter.AllowFilter = false;
            this.sgID22Column.Visible = true;
            this.sgID22Column.VisibleIndex = 4;
            this.sgID22Column.Width = 98;
            // 
            // sgUnitColumn
            // 
            this.sgUnitColumn.AppearanceCell.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.sgUnitColumn.AppearanceCell.Options.UseFont = true;
            this.sgUnitColumn.AppearanceCell.Options.UseTextOptions = true;
            this.sgUnitColumn.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Near;
            this.sgUnitColumn.AppearanceHeader.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.sgUnitColumn.AppearanceHeader.Options.UseFont = true;
            this.sgUnitColumn.AppearanceHeader.Options.UseTextOptions = true;
            this.sgUnitColumn.AppearanceHeader.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Near;
            this.sgUnitColumn.Caption = "Unit";
            this.sgUnitColumn.FieldName = "Unit";
            this.sgUnitColumn.Name = "sgUnitColumn";
            this.sgUnitColumn.OptionsColumn.AllowEdit = false;
            this.sgUnitColumn.OptionsColumn.AllowFocus = false;
            this.sgUnitColumn.OptionsColumn.AllowGroup = DevExpress.Utils.DefaultBoolean.False;
            this.sgUnitColumn.OptionsColumn.AllowIncrementalSearch = false;
            this.sgUnitColumn.OptionsColumn.AllowMerge = DevExpress.Utils.DefaultBoolean.False;
            this.sgUnitColumn.OptionsColumn.AllowMove = false;
            this.sgUnitColumn.OptionsColumn.AllowShowHide = false;
            this.sgUnitColumn.OptionsColumn.AllowSize = false;
            this.sgUnitColumn.OptionsColumn.AllowSort = DevExpress.Utils.DefaultBoolean.False;
            this.sgUnitColumn.OptionsColumn.FixedWidth = true;
            this.sgUnitColumn.OptionsColumn.ImmediateUpdateRowPosition = DevExpress.Utils.DefaultBoolean.False;
            this.sgUnitColumn.OptionsColumn.Printable = DevExpress.Utils.DefaultBoolean.False;
            this.sgUnitColumn.OptionsColumn.ReadOnly = true;
            this.sgUnitColumn.OptionsColumn.TabStop = false;
            this.sgUnitColumn.OptionsFilter.AllowAutoFilter = false;
            this.sgUnitColumn.OptionsFilter.AllowFilter = false;
            this.sgUnitColumn.Visible = true;
            this.sgUnitColumn.VisibleIndex = 5;
            this.sgUnitColumn.Width = 102;
            // 
            // ulPanel16
            // 
            this.ulPanel16.BackColor = System.Drawing.Color.DeepSkyBlue;
            this.ulPanel16.BevelInner = Ulee.Controls.EUlBevelStyle.None;
            this.ulPanel16.BevelOuter = Ulee.Controls.EUlBevelStyle.Lowered;
            this.ulPanel16.Font = new System.Drawing.Font("Arial Rounded MT Bold", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.ulPanel16.ForeColor = System.Drawing.Color.White;
            this.ulPanel16.InnerColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.ulPanel16.InnerColor2 = System.Drawing.Color.White;
            this.ulPanel16.Location = new System.Drawing.Point(6, 6);
            this.ulPanel16.Name = "ulPanel16";
            this.ulPanel16.OuterColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.ulPanel16.OuterColor2 = System.Drawing.Color.White;
            this.ulPanel16.Size = new System.Drawing.Size(674, 28);
            this.ulPanel16.Spacing = 0;
            this.ulPanel16.TabIndex = 5;
            this.ulPanel16.Text = "AIR SIDE";
            this.ulPanel16.TextHAlign = Ulee.Controls.EUlHoriAlign.Center;
            this.ulPanel16.TextVAlign = Ulee.Controls.EUlVertAlign.Middle;
            // 
            // meas2Page
            // 
            this.meas2Page.Controls.Add(this.ulPanel85);
            this.meas2Page.Controls.Add(this.ulPanel84);
            this.meas2Page.Location = new System.Drawing.Point(4, 4);
            this.meas2Page.Margin = new System.Windows.Forms.Padding(0);
            this.meas2Page.Name = "meas2Page";
            this.meas2Page.Size = new System.Drawing.Size(1384, 859);
            this.meas2Page.TabIndex = 1;
            this.meas2Page.Text = "Thermocouple ";
            this.meas2Page.UseVisualStyleBackColor = true;
            // 
            // ulPanel85
            // 
            this.ulPanel85.BackColor = System.Drawing.SystemColors.Control;
            this.ulPanel85.BevelInner = Ulee.Controls.EUlBevelStyle.Raised;
            this.ulPanel85.BevelOuter = Ulee.Controls.EUlBevelStyle.Lowered;
            this.ulPanel85.Controls.Add(this.pressureGrid);
            this.ulPanel85.Controls.Add(this.ulPanel86);
            this.ulPanel85.InnerColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.ulPanel85.InnerColor2 = System.Drawing.Color.White;
            this.ulPanel85.Location = new System.Drawing.Point(1035, 0);
            this.ulPanel85.Name = "ulPanel85";
            this.ulPanel85.OuterColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.ulPanel85.OuterColor2 = System.Drawing.Color.White;
            this.ulPanel85.Size = new System.Drawing.Size(349, 859);
            this.ulPanel85.Spacing = 0;
            this.ulPanel85.TabIndex = 8;
            this.ulPanel85.TextHAlign = Ulee.Controls.EUlHoriAlign.Center;
            this.ulPanel85.TextVAlign = Ulee.Controls.EUlVertAlign.Middle;
            // 
            // pressureGrid
            // 
            this.pressureGrid.Cursor = System.Windows.Forms.Cursors.Default;
            this.pressureGrid.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.pressureGrid.Location = new System.Drawing.Point(6, 40);
            this.pressureGrid.MainView = this.pressureGridView;
            this.pressureGrid.Name = "pressureGrid";
            this.pressureGrid.Size = new System.Drawing.Size(337, 813);
            this.pressureGrid.TabIndex = 11;
            this.pressureGrid.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] {
            this.pressureGridView});
            // 
            // pressureGridView
            // 
            this.pressureGridView.Appearance.FixedLine.Font = new System.Drawing.Font("Arial", 9F);
            this.pressureGridView.Appearance.FixedLine.Options.UseFont = true;
            this.pressureGridView.Appearance.FocusedRow.Font = new System.Drawing.Font("Arial", 9F);
            this.pressureGridView.Appearance.FocusedRow.Options.UseFont = true;
            this.pressureGridView.Appearance.HeaderPanel.Font = new System.Drawing.Font("Arial", 9F);
            this.pressureGridView.Appearance.HeaderPanel.Options.UseFont = true;
            this.pressureGridView.Appearance.HideSelectionRow.Font = new System.Drawing.Font("Arial", 9F);
            this.pressureGridView.Appearance.HideSelectionRow.Options.UseFont = true;
            this.pressureGridView.Appearance.OddRow.Font = new System.Drawing.Font("Arial", 9F);
            this.pressureGridView.Appearance.OddRow.Options.UseFont = true;
            this.pressureGridView.Appearance.Preview.Font = new System.Drawing.Font("Arial", 9F);
            this.pressureGridView.Appearance.Preview.Options.UseFont = true;
            this.pressureGridView.Appearance.Row.Font = new System.Drawing.Font("Arial", 9F);
            this.pressureGridView.Appearance.Row.Options.UseFont = true;
            this.pressureGridView.Appearance.SelectedRow.Font = new System.Drawing.Font("Arial", 9F);
            this.pressureGridView.Appearance.SelectedRow.Options.UseFont = true;
            this.pressureGridView.Appearance.ViewCaption.Font = new System.Drawing.Font("Arial", 9F);
            this.pressureGridView.Appearance.ViewCaption.Options.UseFont = true;
            this.pressureGridView.Columns.AddRange(new DevExpress.XtraGrid.Columns.GridColumn[] {
            this.pressureNoColumn,
            this.pressureNameColumn,
            this.pressureValueColumn,
            this.pressureUnitColumn});
            this.pressureGridView.CustomizationFormBounds = new System.Drawing.Rectangle(2884, 580, 210, 186);
            this.pressureGridView.GridControl = this.pressureGrid;
            this.pressureGridView.Name = "pressureGridView";
            this.pressureGridView.OptionsView.ColumnAutoWidth = false;
            this.pressureGridView.OptionsView.ShowGroupPanel = false;
            this.pressureGridView.OptionsView.ShowIndicator = false;
            this.pressureGridView.Tag = 0;
            // 
            // pressureNoColumn
            // 
            this.pressureNoColumn.AppearanceCell.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.pressureNoColumn.AppearanceCell.Options.UseFont = true;
            this.pressureNoColumn.AppearanceCell.Options.UseTextOptions = true;
            this.pressureNoColumn.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
            this.pressureNoColumn.AppearanceHeader.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.pressureNoColumn.AppearanceHeader.Options.UseFont = true;
            this.pressureNoColumn.AppearanceHeader.Options.UseTextOptions = true;
            this.pressureNoColumn.AppearanceHeader.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
            this.pressureNoColumn.Caption = "No";
            this.pressureNoColumn.DisplayFormat.FormatString = "{0:d2}";
            this.pressureNoColumn.DisplayFormat.FormatType = DevExpress.Utils.FormatType.Numeric;
            this.pressureNoColumn.FieldName = "No";
            this.pressureNoColumn.Name = "pressureNoColumn";
            this.pressureNoColumn.OptionsColumn.AllowEdit = false;
            this.pressureNoColumn.OptionsColumn.AllowFocus = false;
            this.pressureNoColumn.OptionsColumn.AllowGroup = DevExpress.Utils.DefaultBoolean.False;
            this.pressureNoColumn.OptionsColumn.AllowIncrementalSearch = false;
            this.pressureNoColumn.OptionsColumn.AllowMerge = DevExpress.Utils.DefaultBoolean.False;
            this.pressureNoColumn.OptionsColumn.AllowMove = false;
            this.pressureNoColumn.OptionsColumn.AllowShowHide = false;
            this.pressureNoColumn.OptionsColumn.AllowSize = false;
            this.pressureNoColumn.OptionsColumn.AllowSort = DevExpress.Utils.DefaultBoolean.False;
            this.pressureNoColumn.OptionsColumn.FixedWidth = true;
            this.pressureNoColumn.OptionsColumn.ImmediateUpdateRowPosition = DevExpress.Utils.DefaultBoolean.False;
            this.pressureNoColumn.OptionsColumn.Printable = DevExpress.Utils.DefaultBoolean.False;
            this.pressureNoColumn.OptionsColumn.ReadOnly = true;
            this.pressureNoColumn.OptionsFilter.AllowAutoFilter = false;
            this.pressureNoColumn.OptionsFilter.AllowFilter = false;
            this.pressureNoColumn.OptionsFilter.AllowFilterModeChanging = DevExpress.Utils.DefaultBoolean.False;
            this.pressureNoColumn.OptionsFilter.FilterBySortField = DevExpress.Utils.DefaultBoolean.False;
            this.pressureNoColumn.OptionsFilter.ImmediateUpdateAutoFilter = false;
            this.pressureNoColumn.Visible = true;
            this.pressureNoColumn.VisibleIndex = 0;
            this.pressureNoColumn.Width = 32;
            // 
            // pressureNameColumn
            // 
            this.pressureNameColumn.AppearanceCell.Font = new System.Drawing.Font("Arial", 9F);
            this.pressureNameColumn.AppearanceCell.Options.UseFont = true;
            this.pressureNameColumn.AppearanceHeader.Font = new System.Drawing.Font("Arial", 9F);
            this.pressureNameColumn.AppearanceHeader.Options.UseFont = true;
            this.pressureNameColumn.AppearanceHeader.Options.UseTextOptions = true;
            this.pressureNameColumn.AppearanceHeader.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
            this.pressureNameColumn.Caption = "Pressure";
            this.pressureNameColumn.FieldName = "Name";
            this.pressureNameColumn.Name = "pressureNameColumn";
            this.pressureNameColumn.OptionsColumn.AllowEdit = false;
            this.pressureNameColumn.OptionsColumn.AllowFocus = false;
            this.pressureNameColumn.OptionsColumn.AllowGroup = DevExpress.Utils.DefaultBoolean.False;
            this.pressureNameColumn.OptionsColumn.AllowIncrementalSearch = false;
            this.pressureNameColumn.OptionsColumn.AllowMerge = DevExpress.Utils.DefaultBoolean.False;
            this.pressureNameColumn.OptionsColumn.AllowMove = false;
            this.pressureNameColumn.OptionsColumn.AllowShowHide = false;
            this.pressureNameColumn.OptionsColumn.AllowSize = false;
            this.pressureNameColumn.OptionsColumn.AllowSort = DevExpress.Utils.DefaultBoolean.False;
            this.pressureNameColumn.OptionsColumn.FixedWidth = true;
            this.pressureNameColumn.OptionsColumn.ImmediateUpdateRowPosition = DevExpress.Utils.DefaultBoolean.False;
            this.pressureNameColumn.OptionsColumn.Printable = DevExpress.Utils.DefaultBoolean.False;
            this.pressureNameColumn.OptionsColumn.ReadOnly = true;
            this.pressureNameColumn.OptionsColumn.TabStop = false;
            this.pressureNameColumn.OptionsFilter.AllowAutoFilter = false;
            this.pressureNameColumn.OptionsFilter.AllowFilter = false;
            this.pressureNameColumn.Visible = true;
            this.pressureNameColumn.VisibleIndex = 1;
            this.pressureNameColumn.Width = 165;
            // 
            // pressureValueColumn
            // 
            this.pressureValueColumn.AppearanceCell.Font = new System.Drawing.Font("Arial", 9F);
            this.pressureValueColumn.AppearanceCell.Options.UseFont = true;
            this.pressureValueColumn.AppearanceCell.Options.UseTextOptions = true;
            this.pressureValueColumn.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Far;
            this.pressureValueColumn.AppearanceHeader.Font = new System.Drawing.Font("Arial", 9F);
            this.pressureValueColumn.AppearanceHeader.Options.UseFont = true;
            this.pressureValueColumn.Caption = "Value";
            this.pressureValueColumn.DisplayFormat.FormatString = "{0:F2}";
            this.pressureValueColumn.DisplayFormat.FormatType = DevExpress.Utils.FormatType.Numeric;
            this.pressureValueColumn.FieldName = "Value";
            this.pressureValueColumn.Name = "pressureValueColumn";
            this.pressureValueColumn.OptionsColumn.AllowEdit = false;
            this.pressureValueColumn.OptionsColumn.AllowFocus = false;
            this.pressureValueColumn.OptionsColumn.AllowGroup = DevExpress.Utils.DefaultBoolean.False;
            this.pressureValueColumn.OptionsColumn.AllowIncrementalSearch = false;
            this.pressureValueColumn.OptionsColumn.AllowMerge = DevExpress.Utils.DefaultBoolean.False;
            this.pressureValueColumn.OptionsColumn.AllowMove = false;
            this.pressureValueColumn.OptionsColumn.AllowShowHide = false;
            this.pressureValueColumn.OptionsColumn.AllowSize = false;
            this.pressureValueColumn.OptionsColumn.AllowSort = DevExpress.Utils.DefaultBoolean.False;
            this.pressureValueColumn.OptionsColumn.FixedWidth = true;
            this.pressureValueColumn.OptionsColumn.ImmediateUpdateRowPosition = DevExpress.Utils.DefaultBoolean.False;
            this.pressureValueColumn.OptionsColumn.Printable = DevExpress.Utils.DefaultBoolean.False;
            this.pressureValueColumn.OptionsColumn.ReadOnly = true;
            this.pressureValueColumn.OptionsColumn.TabStop = false;
            this.pressureValueColumn.OptionsFilter.AllowAutoFilter = false;
            this.pressureValueColumn.OptionsFilter.AllowFilter = false;
            this.pressureValueColumn.Visible = true;
            this.pressureValueColumn.VisibleIndex = 2;
            this.pressureValueColumn.Width = 60;
            // 
            // pressureUnitColumn
            // 
            this.pressureUnitColumn.Caption = "Unit";
            this.pressureUnitColumn.FieldName = "Unit";
            this.pressureUnitColumn.Name = "pressureUnitColumn";
            this.pressureUnitColumn.OptionsColumn.AllowEdit = false;
            this.pressureUnitColumn.OptionsColumn.AllowFocus = false;
            this.pressureUnitColumn.OptionsColumn.AllowGroup = DevExpress.Utils.DefaultBoolean.False;
            this.pressureUnitColumn.OptionsColumn.AllowIncrementalSearch = false;
            this.pressureUnitColumn.OptionsColumn.AllowMerge = DevExpress.Utils.DefaultBoolean.False;
            this.pressureUnitColumn.OptionsColumn.AllowMove = false;
            this.pressureUnitColumn.OptionsColumn.AllowShowHide = false;
            this.pressureUnitColumn.OptionsColumn.AllowSize = false;
            this.pressureUnitColumn.OptionsColumn.AllowSort = DevExpress.Utils.DefaultBoolean.False;
            this.pressureUnitColumn.OptionsColumn.FixedWidth = true;
            this.pressureUnitColumn.OptionsColumn.ImmediateUpdateRowPosition = DevExpress.Utils.DefaultBoolean.False;
            this.pressureUnitColumn.OptionsColumn.Printable = DevExpress.Utils.DefaultBoolean.False;
            this.pressureUnitColumn.OptionsColumn.ReadOnly = true;
            this.pressureUnitColumn.OptionsFilter.AllowAutoFilter = false;
            this.pressureUnitColumn.OptionsFilter.AllowFilter = false;
            this.pressureUnitColumn.Visible = true;
            this.pressureUnitColumn.VisibleIndex = 3;
            this.pressureUnitColumn.Width = 60;
            // 
            // ulPanel86
            // 
            this.ulPanel86.BackColor = System.Drawing.Color.DeepSkyBlue;
            this.ulPanel86.BevelInner = Ulee.Controls.EUlBevelStyle.None;
            this.ulPanel86.BevelOuter = Ulee.Controls.EUlBevelStyle.Lowered;
            this.ulPanel86.Font = new System.Drawing.Font("Arial Rounded MT Bold", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.ulPanel86.ForeColor = System.Drawing.Color.White;
            this.ulPanel86.InnerColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.ulPanel86.InnerColor2 = System.Drawing.Color.White;
            this.ulPanel86.Location = new System.Drawing.Point(6, 6);
            this.ulPanel86.Name = "ulPanel86";
            this.ulPanel86.OuterColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.ulPanel86.OuterColor2 = System.Drawing.Color.White;
            this.ulPanel86.Size = new System.Drawing.Size(337, 28);
            this.ulPanel86.Spacing = 0;
            this.ulPanel86.TabIndex = 5;
            this.ulPanel86.Text = "PRESSURE SENSOR";
            this.ulPanel86.TextHAlign = Ulee.Controls.EUlHoriAlign.Center;
            this.ulPanel86.TextVAlign = Ulee.Controls.EUlVertAlign.Middle;
            // 
            // ulPanel84
            // 
            this.ulPanel84.BackColor = System.Drawing.SystemColors.Control;
            this.ulPanel84.BevelInner = Ulee.Controls.EUlBevelStyle.Raised;
            this.ulPanel84.BevelOuter = Ulee.Controls.EUlBevelStyle.Lowered;
            this.ulPanel84.Controls.Add(this.tc3Grid);
            this.ulPanel84.Controls.Add(this.tc2Grid);
            this.ulPanel84.Controls.Add(this.tc1Grid);
            this.ulPanel84.Controls.Add(this.ulPanel95);
            this.ulPanel84.InnerColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.ulPanel84.InnerColor2 = System.Drawing.Color.White;
            this.ulPanel84.Location = new System.Drawing.Point(0, 0);
            this.ulPanel84.Name = "ulPanel84";
            this.ulPanel84.OuterColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.ulPanel84.OuterColor2 = System.Drawing.Color.White;
            this.ulPanel84.Size = new System.Drawing.Size(1029, 859);
            this.ulPanel84.Spacing = 0;
            this.ulPanel84.TabIndex = 7;
            this.ulPanel84.TextHAlign = Ulee.Controls.EUlHoriAlign.Center;
            this.ulPanel84.TextVAlign = Ulee.Controls.EUlVertAlign.Middle;
            // 
            // tc3Grid
            // 
            this.tc3Grid.Cursor = System.Windows.Forms.Cursors.Default;
            this.tc3Grid.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.tc3Grid.Location = new System.Drawing.Point(688, 40);
            this.tc3Grid.MainView = this.tc3GridView;
            this.tc3Grid.Name = "tc3Grid";
            this.tc3Grid.Size = new System.Drawing.Size(335, 813);
            this.tc3Grid.TabIndex = 12;
            this.tc3Grid.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] {
            this.tc3GridView});
            // 
            // tc3GridView
            // 
            this.tc3GridView.Appearance.FixedLine.Font = new System.Drawing.Font("Arial", 9F);
            this.tc3GridView.Appearance.FixedLine.Options.UseFont = true;
            this.tc3GridView.Appearance.FocusedRow.Font = new System.Drawing.Font("Arial", 9F);
            this.tc3GridView.Appearance.FocusedRow.Options.UseFont = true;
            this.tc3GridView.Appearance.HeaderPanel.Font = new System.Drawing.Font("Arial", 9F);
            this.tc3GridView.Appearance.HeaderPanel.Options.UseFont = true;
            this.tc3GridView.Appearance.HideSelectionRow.Font = new System.Drawing.Font("Arial", 9F);
            this.tc3GridView.Appearance.HideSelectionRow.Options.UseFont = true;
            this.tc3GridView.Appearance.OddRow.Font = new System.Drawing.Font("Arial", 9F);
            this.tc3GridView.Appearance.OddRow.Options.UseFont = true;
            this.tc3GridView.Appearance.Preview.Font = new System.Drawing.Font("Arial", 9F);
            this.tc3GridView.Appearance.Preview.Options.UseFont = true;
            this.tc3GridView.Appearance.Row.Font = new System.Drawing.Font("Arial", 9F);
            this.tc3GridView.Appearance.Row.Options.UseFont = true;
            this.tc3GridView.Appearance.SelectedRow.Font = new System.Drawing.Font("Arial", 9F);
            this.tc3GridView.Appearance.SelectedRow.Options.UseFont = true;
            this.tc3GridView.Appearance.ViewCaption.Font = new System.Drawing.Font("Arial", 9F);
            this.tc3GridView.Appearance.ViewCaption.Options.UseFont = true;
            this.tc3GridView.Columns.AddRange(new DevExpress.XtraGrid.Columns.GridColumn[] {
            this.tc3NoColumn,
            this.tc3NameColumn,
            this.tc3ValueColumn,
            this.tc3UnitColumn});
            this.tc3GridView.CustomizationFormBounds = new System.Drawing.Rectangle(2884, 580, 210, 186);
            this.tc3GridView.GridControl = this.tc3Grid;
            this.tc3GridView.Name = "tc3GridView";
            this.tc3GridView.OptionsView.ColumnAutoWidth = false;
            this.tc3GridView.OptionsView.ShowGroupPanel = false;
            this.tc3GridView.OptionsView.ShowIndicator = false;
            this.tc3GridView.Tag = 0;
            // 
            // tc3NoColumn
            // 
            this.tc3NoColumn.AppearanceCell.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.tc3NoColumn.AppearanceCell.Options.UseFont = true;
            this.tc3NoColumn.AppearanceCell.Options.UseTextOptions = true;
            this.tc3NoColumn.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
            this.tc3NoColumn.AppearanceHeader.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.tc3NoColumn.AppearanceHeader.Options.UseFont = true;
            this.tc3NoColumn.AppearanceHeader.Options.UseTextOptions = true;
            this.tc3NoColumn.AppearanceHeader.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
            this.tc3NoColumn.Caption = "No";
            this.tc3NoColumn.DisplayFormat.FormatString = "{0:d2}";
            this.tc3NoColumn.DisplayFormat.FormatType = DevExpress.Utils.FormatType.Numeric;
            this.tc3NoColumn.FieldName = "No";
            this.tc3NoColumn.Name = "tc3NoColumn";
            this.tc3NoColumn.OptionsColumn.AllowEdit = false;
            this.tc3NoColumn.OptionsColumn.AllowFocus = false;
            this.tc3NoColumn.OptionsColumn.AllowGroup = DevExpress.Utils.DefaultBoolean.False;
            this.tc3NoColumn.OptionsColumn.AllowIncrementalSearch = false;
            this.tc3NoColumn.OptionsColumn.AllowMerge = DevExpress.Utils.DefaultBoolean.False;
            this.tc3NoColumn.OptionsColumn.AllowMove = false;
            this.tc3NoColumn.OptionsColumn.AllowShowHide = false;
            this.tc3NoColumn.OptionsColumn.AllowSize = false;
            this.tc3NoColumn.OptionsColumn.AllowSort = DevExpress.Utils.DefaultBoolean.False;
            this.tc3NoColumn.OptionsColumn.FixedWidth = true;
            this.tc3NoColumn.OptionsColumn.ImmediateUpdateRowPosition = DevExpress.Utils.DefaultBoolean.False;
            this.tc3NoColumn.OptionsColumn.Printable = DevExpress.Utils.DefaultBoolean.False;
            this.tc3NoColumn.OptionsColumn.ReadOnly = true;
            this.tc3NoColumn.OptionsFilter.AllowAutoFilter = false;
            this.tc3NoColumn.OptionsFilter.AllowFilter = false;
            this.tc3NoColumn.OptionsFilter.AllowFilterModeChanging = DevExpress.Utils.DefaultBoolean.False;
            this.tc3NoColumn.OptionsFilter.FilterBySortField = DevExpress.Utils.DefaultBoolean.False;
            this.tc3NoColumn.OptionsFilter.ImmediateUpdateAutoFilter = false;
            this.tc3NoColumn.Visible = true;
            this.tc3NoColumn.VisibleIndex = 0;
            this.tc3NoColumn.Width = 32;
            // 
            // tc3NameColumn
            // 
            this.tc3NameColumn.AppearanceCell.Font = new System.Drawing.Font("Arial", 9F);
            this.tc3NameColumn.AppearanceCell.Options.UseFont = true;
            this.tc3NameColumn.AppearanceHeader.Font = new System.Drawing.Font("Arial", 9F);
            this.tc3NameColumn.AppearanceHeader.Options.UseFont = true;
            this.tc3NameColumn.AppearanceHeader.Options.UseTextOptions = true;
            this.tc3NameColumn.AppearanceHeader.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
            this.tc3NameColumn.Caption = "Outdoor";
            this.tc3NameColumn.FieldName = "Name";
            this.tc3NameColumn.Name = "tc3NameColumn";
            this.tc3NameColumn.OptionsColumn.AllowEdit = false;
            this.tc3NameColumn.OptionsColumn.AllowFocus = false;
            this.tc3NameColumn.OptionsColumn.AllowGroup = DevExpress.Utils.DefaultBoolean.False;
            this.tc3NameColumn.OptionsColumn.AllowIncrementalSearch = false;
            this.tc3NameColumn.OptionsColumn.AllowMerge = DevExpress.Utils.DefaultBoolean.False;
            this.tc3NameColumn.OptionsColumn.AllowMove = false;
            this.tc3NameColumn.OptionsColumn.AllowShowHide = false;
            this.tc3NameColumn.OptionsColumn.AllowSize = false;
            this.tc3NameColumn.OptionsColumn.AllowSort = DevExpress.Utils.DefaultBoolean.False;
            this.tc3NameColumn.OptionsColumn.FixedWidth = true;
            this.tc3NameColumn.OptionsColumn.ImmediateUpdateRowPosition = DevExpress.Utils.DefaultBoolean.False;
            this.tc3NameColumn.OptionsColumn.Printable = DevExpress.Utils.DefaultBoolean.False;
            this.tc3NameColumn.OptionsColumn.ReadOnly = true;
            this.tc3NameColumn.OptionsColumn.TabStop = false;
            this.tc3NameColumn.OptionsFilter.AllowAutoFilter = false;
            this.tc3NameColumn.OptionsFilter.AllowFilter = false;
            this.tc3NameColumn.Visible = true;
            this.tc3NameColumn.VisibleIndex = 1;
            this.tc3NameColumn.Width = 165;
            // 
            // tc3ValueColumn
            // 
            this.tc3ValueColumn.AppearanceCell.Font = new System.Drawing.Font("Arial", 9F);
            this.tc3ValueColumn.AppearanceCell.Options.UseFont = true;
            this.tc3ValueColumn.AppearanceCell.Options.UseTextOptions = true;
            this.tc3ValueColumn.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Far;
            this.tc3ValueColumn.AppearanceHeader.Font = new System.Drawing.Font("Arial", 9F);
            this.tc3ValueColumn.AppearanceHeader.Options.UseFont = true;
            this.tc3ValueColumn.Caption = "Value";
            this.tc3ValueColumn.DisplayFormat.FormatString = "{0:F2}";
            this.tc3ValueColumn.DisplayFormat.FormatType = DevExpress.Utils.FormatType.Numeric;
            this.tc3ValueColumn.FieldName = "Value";
            this.tc3ValueColumn.Name = "tc3ValueColumn";
            this.tc3ValueColumn.OptionsColumn.AllowEdit = false;
            this.tc3ValueColumn.OptionsColumn.AllowFocus = false;
            this.tc3ValueColumn.OptionsColumn.AllowGroup = DevExpress.Utils.DefaultBoolean.False;
            this.tc3ValueColumn.OptionsColumn.AllowIncrementalSearch = false;
            this.tc3ValueColumn.OptionsColumn.AllowMerge = DevExpress.Utils.DefaultBoolean.False;
            this.tc3ValueColumn.OptionsColumn.AllowMove = false;
            this.tc3ValueColumn.OptionsColumn.AllowShowHide = false;
            this.tc3ValueColumn.OptionsColumn.AllowSize = false;
            this.tc3ValueColumn.OptionsColumn.AllowSort = DevExpress.Utils.DefaultBoolean.False;
            this.tc3ValueColumn.OptionsColumn.FixedWidth = true;
            this.tc3ValueColumn.OptionsColumn.ImmediateUpdateRowPosition = DevExpress.Utils.DefaultBoolean.False;
            this.tc3ValueColumn.OptionsColumn.Printable = DevExpress.Utils.DefaultBoolean.False;
            this.tc3ValueColumn.OptionsColumn.ReadOnly = true;
            this.tc3ValueColumn.OptionsColumn.TabStop = false;
            this.tc3ValueColumn.OptionsFilter.AllowAutoFilter = false;
            this.tc3ValueColumn.OptionsFilter.AllowFilter = false;
            this.tc3ValueColumn.Visible = true;
            this.tc3ValueColumn.VisibleIndex = 2;
            this.tc3ValueColumn.Width = 60;
            // 
            // tc3UnitColumn
            // 
            this.tc3UnitColumn.Caption = "Unit";
            this.tc3UnitColumn.FieldName = "Unit";
            this.tc3UnitColumn.Name = "tc3UnitColumn";
            this.tc3UnitColumn.OptionsColumn.AllowEdit = false;
            this.tc3UnitColumn.OptionsColumn.AllowFocus = false;
            this.tc3UnitColumn.OptionsColumn.AllowGroup = DevExpress.Utils.DefaultBoolean.False;
            this.tc3UnitColumn.OptionsColumn.AllowIncrementalSearch = false;
            this.tc3UnitColumn.OptionsColumn.AllowMerge = DevExpress.Utils.DefaultBoolean.False;
            this.tc3UnitColumn.OptionsColumn.AllowMove = false;
            this.tc3UnitColumn.OptionsColumn.AllowShowHide = false;
            this.tc3UnitColumn.OptionsColumn.AllowSize = false;
            this.tc3UnitColumn.OptionsColumn.AllowSort = DevExpress.Utils.DefaultBoolean.False;
            this.tc3UnitColumn.OptionsColumn.FixedWidth = true;
            this.tc3UnitColumn.OptionsColumn.ImmediateUpdateRowPosition = DevExpress.Utils.DefaultBoolean.False;
            this.tc3UnitColumn.OptionsColumn.Printable = DevExpress.Utils.DefaultBoolean.False;
            this.tc3UnitColumn.OptionsColumn.ReadOnly = true;
            this.tc3UnitColumn.OptionsFilter.AllowAutoFilter = false;
            this.tc3UnitColumn.OptionsFilter.AllowFilter = false;
            this.tc3UnitColumn.Visible = true;
            this.tc3UnitColumn.VisibleIndex = 3;
            this.tc3UnitColumn.Width = 58;
            // 
            // tc2Grid
            // 
            this.tc2Grid.Cursor = System.Windows.Forms.Cursors.Default;
            this.tc2Grid.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.tc2Grid.Location = new System.Drawing.Point(347, 40);
            this.tc2Grid.MainView = this.tc2GridView;
            this.tc2Grid.Name = "tc2Grid";
            this.tc2Grid.Size = new System.Drawing.Size(335, 813);
            this.tc2Grid.TabIndex = 11;
            this.tc2Grid.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] {
            this.tc2GridView});
            // 
            // tc2GridView
            // 
            this.tc2GridView.Appearance.FixedLine.Font = new System.Drawing.Font("Arial", 9F);
            this.tc2GridView.Appearance.FixedLine.Options.UseFont = true;
            this.tc2GridView.Appearance.FocusedRow.Font = new System.Drawing.Font("Arial", 9F);
            this.tc2GridView.Appearance.FocusedRow.Options.UseFont = true;
            this.tc2GridView.Appearance.HeaderPanel.Font = new System.Drawing.Font("Arial", 9F);
            this.tc2GridView.Appearance.HeaderPanel.Options.UseFont = true;
            this.tc2GridView.Appearance.HideSelectionRow.Font = new System.Drawing.Font("Arial", 9F);
            this.tc2GridView.Appearance.HideSelectionRow.Options.UseFont = true;
            this.tc2GridView.Appearance.OddRow.Font = new System.Drawing.Font("Arial", 9F);
            this.tc2GridView.Appearance.OddRow.Options.UseFont = true;
            this.tc2GridView.Appearance.Preview.Font = new System.Drawing.Font("Arial", 9F);
            this.tc2GridView.Appearance.Preview.Options.UseFont = true;
            this.tc2GridView.Appearance.Row.Font = new System.Drawing.Font("Arial", 9F);
            this.tc2GridView.Appearance.Row.Options.UseFont = true;
            this.tc2GridView.Appearance.SelectedRow.Font = new System.Drawing.Font("Arial", 9F);
            this.tc2GridView.Appearance.SelectedRow.Options.UseFont = true;
            this.tc2GridView.Appearance.ViewCaption.Font = new System.Drawing.Font("Arial", 9F);
            this.tc2GridView.Appearance.ViewCaption.Options.UseFont = true;
            this.tc2GridView.Columns.AddRange(new DevExpress.XtraGrid.Columns.GridColumn[] {
            this.tc2NoColumn,
            this.tc2NameColumn,
            this.tc2ValueColumn,
            this.tc2UnitColumn});
            this.tc2GridView.CustomizationFormBounds = new System.Drawing.Rectangle(2884, 580, 210, 186);
            this.tc2GridView.GridControl = this.tc2Grid;
            this.tc2GridView.Name = "tc2GridView";
            this.tc2GridView.OptionsView.ColumnAutoWidth = false;
            this.tc2GridView.OptionsView.ShowGroupPanel = false;
            this.tc2GridView.OptionsView.ShowIndicator = false;
            this.tc2GridView.Tag = 0;
            // 
            // tc2NoColumn
            // 
            this.tc2NoColumn.AppearanceCell.Font = new System.Drawing.Font("Arial", 9F);
            this.tc2NoColumn.AppearanceCell.Options.UseFont = true;
            this.tc2NoColumn.AppearanceCell.Options.UseTextOptions = true;
            this.tc2NoColumn.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
            this.tc2NoColumn.AppearanceHeader.Font = new System.Drawing.Font("Arial", 9F);
            this.tc2NoColumn.AppearanceHeader.Options.UseFont = true;
            this.tc2NoColumn.AppearanceHeader.Options.UseTextOptions = true;
            this.tc2NoColumn.AppearanceHeader.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
            this.tc2NoColumn.Caption = "No";
            this.tc2NoColumn.DisplayFormat.FormatString = "{0:d2}";
            this.tc2NoColumn.DisplayFormat.FormatType = DevExpress.Utils.FormatType.Numeric;
            this.tc2NoColumn.FieldName = "No";
            this.tc2NoColumn.Name = "tc2NoColumn";
            this.tc2NoColumn.OptionsColumn.AllowEdit = false;
            this.tc2NoColumn.OptionsColumn.AllowFocus = false;
            this.tc2NoColumn.OptionsColumn.AllowGroup = DevExpress.Utils.DefaultBoolean.False;
            this.tc2NoColumn.OptionsColumn.AllowIncrementalSearch = false;
            this.tc2NoColumn.OptionsColumn.AllowMerge = DevExpress.Utils.DefaultBoolean.False;
            this.tc2NoColumn.OptionsColumn.AllowMove = false;
            this.tc2NoColumn.OptionsColumn.AllowShowHide = false;
            this.tc2NoColumn.OptionsColumn.AllowSize = false;
            this.tc2NoColumn.OptionsColumn.AllowSort = DevExpress.Utils.DefaultBoolean.False;
            this.tc2NoColumn.OptionsColumn.FixedWidth = true;
            this.tc2NoColumn.OptionsColumn.ImmediateUpdateRowPosition = DevExpress.Utils.DefaultBoolean.False;
            this.tc2NoColumn.OptionsColumn.Printable = DevExpress.Utils.DefaultBoolean.False;
            this.tc2NoColumn.OptionsColumn.ReadOnly = true;
            this.tc2NoColumn.OptionsFilter.AllowAutoFilter = false;
            this.tc2NoColumn.OptionsFilter.AllowFilter = false;
            this.tc2NoColumn.OptionsFilter.AllowFilterModeChanging = DevExpress.Utils.DefaultBoolean.False;
            this.tc2NoColumn.OptionsFilter.FilterBySortField = DevExpress.Utils.DefaultBoolean.False;
            this.tc2NoColumn.OptionsFilter.ImmediateUpdateAutoFilter = false;
            this.tc2NoColumn.OptionsFilter.ImmediateUpdatePopupDateFilterOnCheck = DevExpress.Utils.DefaultBoolean.False;
            this.tc2NoColumn.OptionsFilter.ImmediateUpdatePopupDateFilterOnDateChange = DevExpress.Utils.DefaultBoolean.False;
            this.tc2NoColumn.OptionsFilter.ImmediateUpdatePopupExcelFilter = DevExpress.Utils.DefaultBoolean.False;
            this.tc2NoColumn.Visible = true;
            this.tc2NoColumn.VisibleIndex = 0;
            this.tc2NoColumn.Width = 32;
            // 
            // tc2NameColumn
            // 
            this.tc2NameColumn.AppearanceCell.Font = new System.Drawing.Font("Arial", 9F);
            this.tc2NameColumn.AppearanceCell.Options.UseFont = true;
            this.tc2NameColumn.AppearanceHeader.Font = new System.Drawing.Font("Arial", 9F);
            this.tc2NameColumn.AppearanceHeader.Options.UseFont = true;
            this.tc2NameColumn.AppearanceHeader.Options.UseTextOptions = true;
            this.tc2NameColumn.AppearanceHeader.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
            this.tc2NameColumn.Caption = "Indoor No.2";
            this.tc2NameColumn.FieldName = "Name";
            this.tc2NameColumn.Name = "tc2NameColumn";
            this.tc2NameColumn.OptionsColumn.AllowEdit = false;
            this.tc2NameColumn.OptionsColumn.AllowFocus = false;
            this.tc2NameColumn.OptionsColumn.AllowGroup = DevExpress.Utils.DefaultBoolean.False;
            this.tc2NameColumn.OptionsColumn.AllowIncrementalSearch = false;
            this.tc2NameColumn.OptionsColumn.AllowMerge = DevExpress.Utils.DefaultBoolean.False;
            this.tc2NameColumn.OptionsColumn.AllowMove = false;
            this.tc2NameColumn.OptionsColumn.AllowShowHide = false;
            this.tc2NameColumn.OptionsColumn.AllowSize = false;
            this.tc2NameColumn.OptionsColumn.AllowSort = DevExpress.Utils.DefaultBoolean.False;
            this.tc2NameColumn.OptionsColumn.FixedWidth = true;
            this.tc2NameColumn.OptionsColumn.ImmediateUpdateRowPosition = DevExpress.Utils.DefaultBoolean.False;
            this.tc2NameColumn.OptionsColumn.Printable = DevExpress.Utils.DefaultBoolean.False;
            this.tc2NameColumn.OptionsColumn.ReadOnly = true;
            this.tc2NameColumn.OptionsColumn.TabStop = false;
            this.tc2NameColumn.OptionsFilter.AllowAutoFilter = false;
            this.tc2NameColumn.OptionsFilter.AllowFilter = false;
            this.tc2NameColumn.Visible = true;
            this.tc2NameColumn.VisibleIndex = 1;
            this.tc2NameColumn.Width = 165;
            // 
            // tc2ValueColumn
            // 
            this.tc2ValueColumn.AppearanceCell.Font = new System.Drawing.Font("Arial", 9F);
            this.tc2ValueColumn.AppearanceCell.Options.UseFont = true;
            this.tc2ValueColumn.AppearanceCell.Options.UseTextOptions = true;
            this.tc2ValueColumn.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Far;
            this.tc2ValueColumn.AppearanceHeader.Font = new System.Drawing.Font("Arial", 9F);
            this.tc2ValueColumn.AppearanceHeader.Options.UseFont = true;
            this.tc2ValueColumn.Caption = "Value";
            this.tc2ValueColumn.DisplayFormat.FormatString = "{0:F2}";
            this.tc2ValueColumn.DisplayFormat.FormatType = DevExpress.Utils.FormatType.Numeric;
            this.tc2ValueColumn.FieldName = "Value";
            this.tc2ValueColumn.Name = "tc2ValueColumn";
            this.tc2ValueColumn.OptionsColumn.AllowEdit = false;
            this.tc2ValueColumn.OptionsColumn.AllowFocus = false;
            this.tc2ValueColumn.OptionsColumn.AllowGroup = DevExpress.Utils.DefaultBoolean.False;
            this.tc2ValueColumn.OptionsColumn.AllowIncrementalSearch = false;
            this.tc2ValueColumn.OptionsColumn.AllowMerge = DevExpress.Utils.DefaultBoolean.False;
            this.tc2ValueColumn.OptionsColumn.AllowMove = false;
            this.tc2ValueColumn.OptionsColumn.AllowShowHide = false;
            this.tc2ValueColumn.OptionsColumn.AllowSize = false;
            this.tc2ValueColumn.OptionsColumn.AllowSort = DevExpress.Utils.DefaultBoolean.False;
            this.tc2ValueColumn.OptionsColumn.FixedWidth = true;
            this.tc2ValueColumn.OptionsColumn.ImmediateUpdateRowPosition = DevExpress.Utils.DefaultBoolean.False;
            this.tc2ValueColumn.OptionsColumn.Printable = DevExpress.Utils.DefaultBoolean.False;
            this.tc2ValueColumn.OptionsColumn.ReadOnly = true;
            this.tc2ValueColumn.OptionsColumn.TabStop = false;
            this.tc2ValueColumn.OptionsFilter.AllowAutoFilter = false;
            this.tc2ValueColumn.OptionsFilter.AllowFilter = false;
            this.tc2ValueColumn.Visible = true;
            this.tc2ValueColumn.VisibleIndex = 2;
            this.tc2ValueColumn.Width = 60;
            // 
            // tc2UnitColumn
            // 
            this.tc2UnitColumn.Caption = "Unit";
            this.tc2UnitColumn.FieldName = "Unit";
            this.tc2UnitColumn.Name = "tc2UnitColumn";
            this.tc2UnitColumn.OptionsColumn.AllowEdit = false;
            this.tc2UnitColumn.OptionsColumn.AllowFocus = false;
            this.tc2UnitColumn.OptionsColumn.AllowGroup = DevExpress.Utils.DefaultBoolean.False;
            this.tc2UnitColumn.OptionsColumn.AllowIncrementalSearch = false;
            this.tc2UnitColumn.OptionsColumn.AllowMerge = DevExpress.Utils.DefaultBoolean.False;
            this.tc2UnitColumn.OptionsColumn.AllowMove = false;
            this.tc2UnitColumn.OptionsColumn.AllowShowHide = false;
            this.tc2UnitColumn.OptionsColumn.AllowSize = false;
            this.tc2UnitColumn.OptionsColumn.AllowSort = DevExpress.Utils.DefaultBoolean.False;
            this.tc2UnitColumn.OptionsColumn.FixedWidth = true;
            this.tc2UnitColumn.OptionsColumn.ImmediateUpdateRowPosition = DevExpress.Utils.DefaultBoolean.False;
            this.tc2UnitColumn.OptionsColumn.Printable = DevExpress.Utils.DefaultBoolean.False;
            this.tc2UnitColumn.OptionsColumn.ReadOnly = true;
            this.tc2UnitColumn.OptionsFilter.AllowAutoFilter = false;
            this.tc2UnitColumn.OptionsFilter.AllowFilter = false;
            this.tc2UnitColumn.Visible = true;
            this.tc2UnitColumn.VisibleIndex = 3;
            this.tc2UnitColumn.Width = 58;
            // 
            // tc1Grid
            // 
            this.tc1Grid.Cursor = System.Windows.Forms.Cursors.Default;
            this.tc1Grid.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.tc1Grid.Location = new System.Drawing.Point(6, 40);
            this.tc1Grid.MainView = this.tc1GridView;
            this.tc1Grid.Name = "tc1Grid";
            this.tc1Grid.Size = new System.Drawing.Size(335, 813);
            this.tc1Grid.TabIndex = 10;
            this.tc1Grid.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] {
            this.tc1GridView});
            // 
            // tc1GridView
            // 
            this.tc1GridView.Appearance.FixedLine.Font = new System.Drawing.Font("Arial", 9F);
            this.tc1GridView.Appearance.FixedLine.Options.UseFont = true;
            this.tc1GridView.Appearance.FocusedRow.Font = new System.Drawing.Font("Arial", 9F);
            this.tc1GridView.Appearance.FocusedRow.Options.UseFont = true;
            this.tc1GridView.Appearance.HeaderPanel.Font = new System.Drawing.Font("Arial", 9F);
            this.tc1GridView.Appearance.HeaderPanel.Options.UseFont = true;
            this.tc1GridView.Appearance.HideSelectionRow.Font = new System.Drawing.Font("Arial", 9F);
            this.tc1GridView.Appearance.HideSelectionRow.Options.UseFont = true;
            this.tc1GridView.Appearance.OddRow.Font = new System.Drawing.Font("Arial", 9F);
            this.tc1GridView.Appearance.OddRow.Options.UseFont = true;
            this.tc1GridView.Appearance.Preview.Font = new System.Drawing.Font("Arial", 9F);
            this.tc1GridView.Appearance.Preview.Options.UseFont = true;
            this.tc1GridView.Appearance.Row.Font = new System.Drawing.Font("Arial", 9F);
            this.tc1GridView.Appearance.Row.Options.UseFont = true;
            this.tc1GridView.Appearance.SelectedRow.Font = new System.Drawing.Font("Arial", 9F);
            this.tc1GridView.Appearance.SelectedRow.Options.UseFont = true;
            this.tc1GridView.Appearance.ViewCaption.Font = new System.Drawing.Font("Arial", 9F);
            this.tc1GridView.Appearance.ViewCaption.Options.UseFont = true;
            this.tc1GridView.Columns.AddRange(new DevExpress.XtraGrid.Columns.GridColumn[] {
            this.tc1NoColumn,
            this.tc1NameColumn,
            this.tc1ValueColumn,
            this.tc1UnitColumn});
            this.tc1GridView.CustomizationFormBounds = new System.Drawing.Rectangle(2884, 580, 210, 186);
            this.tc1GridView.GridControl = this.tc1Grid;
            this.tc1GridView.Name = "tc1GridView";
            this.tc1GridView.OptionsView.ColumnAutoWidth = false;
            this.tc1GridView.OptionsView.ShowGroupPanel = false;
            this.tc1GridView.OptionsView.ShowIndicator = false;
            this.tc1GridView.Tag = 0;
            // 
            // tc1NoColumn
            // 
            this.tc1NoColumn.AppearanceCell.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.tc1NoColumn.AppearanceCell.Options.UseFont = true;
            this.tc1NoColumn.AppearanceCell.Options.UseTextOptions = true;
            this.tc1NoColumn.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
            this.tc1NoColumn.AppearanceHeader.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.tc1NoColumn.AppearanceHeader.Options.UseFont = true;
            this.tc1NoColumn.AppearanceHeader.Options.UseTextOptions = true;
            this.tc1NoColumn.AppearanceHeader.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
            this.tc1NoColumn.Caption = "No";
            this.tc1NoColumn.DisplayFormat.FormatString = "{0:d2}";
            this.tc1NoColumn.DisplayFormat.FormatType = DevExpress.Utils.FormatType.Numeric;
            this.tc1NoColumn.FieldName = "No";
            this.tc1NoColumn.Name = "tc1NoColumn";
            this.tc1NoColumn.OptionsColumn.AllowEdit = false;
            this.tc1NoColumn.OptionsColumn.AllowFocus = false;
            this.tc1NoColumn.OptionsColumn.AllowGroup = DevExpress.Utils.DefaultBoolean.False;
            this.tc1NoColumn.OptionsColumn.AllowIncrementalSearch = false;
            this.tc1NoColumn.OptionsColumn.AllowMerge = DevExpress.Utils.DefaultBoolean.False;
            this.tc1NoColumn.OptionsColumn.AllowMove = false;
            this.tc1NoColumn.OptionsColumn.AllowShowHide = false;
            this.tc1NoColumn.OptionsColumn.AllowSize = false;
            this.tc1NoColumn.OptionsColumn.AllowSort = DevExpress.Utils.DefaultBoolean.False;
            this.tc1NoColumn.OptionsColumn.FixedWidth = true;
            this.tc1NoColumn.OptionsColumn.ImmediateUpdateRowPosition = DevExpress.Utils.DefaultBoolean.False;
            this.tc1NoColumn.OptionsColumn.Printable = DevExpress.Utils.DefaultBoolean.False;
            this.tc1NoColumn.OptionsColumn.ReadOnly = true;
            this.tc1NoColumn.OptionsFilter.AllowAutoFilter = false;
            this.tc1NoColumn.OptionsFilter.AllowFilter = false;
            this.tc1NoColumn.OptionsFilter.AllowFilterModeChanging = DevExpress.Utils.DefaultBoolean.False;
            this.tc1NoColumn.OptionsFilter.FilterBySortField = DevExpress.Utils.DefaultBoolean.False;
            this.tc1NoColumn.OptionsFilter.ImmediateUpdateAutoFilter = false;
            this.tc1NoColumn.Visible = true;
            this.tc1NoColumn.VisibleIndex = 0;
            this.tc1NoColumn.Width = 32;
            // 
            // tc1NameColumn
            // 
            this.tc1NameColumn.AppearanceCell.Font = new System.Drawing.Font("Arial", 9F);
            this.tc1NameColumn.AppearanceCell.Options.UseFont = true;
            this.tc1NameColumn.AppearanceHeader.Font = new System.Drawing.Font("Arial", 9F);
            this.tc1NameColumn.AppearanceHeader.Options.UseFont = true;
            this.tc1NameColumn.AppearanceHeader.Options.UseTextOptions = true;
            this.tc1NameColumn.AppearanceHeader.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
            this.tc1NameColumn.Caption = "Indoor No.1";
            this.tc1NameColumn.FieldName = "Name";
            this.tc1NameColumn.Name = "tc1NameColumn";
            this.tc1NameColumn.OptionsColumn.AllowEdit = false;
            this.tc1NameColumn.OptionsColumn.AllowFocus = false;
            this.tc1NameColumn.OptionsColumn.AllowGroup = DevExpress.Utils.DefaultBoolean.False;
            this.tc1NameColumn.OptionsColumn.AllowIncrementalSearch = false;
            this.tc1NameColumn.OptionsColumn.AllowMerge = DevExpress.Utils.DefaultBoolean.False;
            this.tc1NameColumn.OptionsColumn.AllowMove = false;
            this.tc1NameColumn.OptionsColumn.AllowShowHide = false;
            this.tc1NameColumn.OptionsColumn.AllowSize = false;
            this.tc1NameColumn.OptionsColumn.AllowSort = DevExpress.Utils.DefaultBoolean.False;
            this.tc1NameColumn.OptionsColumn.FixedWidth = true;
            this.tc1NameColumn.OptionsColumn.ImmediateUpdateRowPosition = DevExpress.Utils.DefaultBoolean.False;
            this.tc1NameColumn.OptionsColumn.Printable = DevExpress.Utils.DefaultBoolean.False;
            this.tc1NameColumn.OptionsColumn.ReadOnly = true;
            this.tc1NameColumn.OptionsColumn.TabStop = false;
            this.tc1NameColumn.OptionsFilter.AllowAutoFilter = false;
            this.tc1NameColumn.OptionsFilter.AllowFilter = false;
            this.tc1NameColumn.Visible = true;
            this.tc1NameColumn.VisibleIndex = 1;
            this.tc1NameColumn.Width = 165;
            // 
            // tc1ValueColumn
            // 
            this.tc1ValueColumn.AppearanceCell.Font = new System.Drawing.Font("Arial", 9F);
            this.tc1ValueColumn.AppearanceCell.Options.UseFont = true;
            this.tc1ValueColumn.AppearanceCell.Options.UseTextOptions = true;
            this.tc1ValueColumn.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Far;
            this.tc1ValueColumn.AppearanceHeader.Font = new System.Drawing.Font("Arial", 9F);
            this.tc1ValueColumn.AppearanceHeader.Options.UseFont = true;
            this.tc1ValueColumn.Caption = "Value";
            this.tc1ValueColumn.DisplayFormat.FormatString = "{0:F2}";
            this.tc1ValueColumn.DisplayFormat.FormatType = DevExpress.Utils.FormatType.Numeric;
            this.tc1ValueColumn.FieldName = "Value";
            this.tc1ValueColumn.Name = "tc1ValueColumn";
            this.tc1ValueColumn.OptionsColumn.AllowEdit = false;
            this.tc1ValueColumn.OptionsColumn.AllowFocus = false;
            this.tc1ValueColumn.OptionsColumn.AllowGroup = DevExpress.Utils.DefaultBoolean.False;
            this.tc1ValueColumn.OptionsColumn.AllowIncrementalSearch = false;
            this.tc1ValueColumn.OptionsColumn.AllowMerge = DevExpress.Utils.DefaultBoolean.False;
            this.tc1ValueColumn.OptionsColumn.AllowMove = false;
            this.tc1ValueColumn.OptionsColumn.AllowShowHide = false;
            this.tc1ValueColumn.OptionsColumn.AllowSize = false;
            this.tc1ValueColumn.OptionsColumn.AllowSort = DevExpress.Utils.DefaultBoolean.False;
            this.tc1ValueColumn.OptionsColumn.FixedWidth = true;
            this.tc1ValueColumn.OptionsColumn.ImmediateUpdateRowPosition = DevExpress.Utils.DefaultBoolean.False;
            this.tc1ValueColumn.OptionsColumn.Printable = DevExpress.Utils.DefaultBoolean.False;
            this.tc1ValueColumn.OptionsColumn.ReadOnly = true;
            this.tc1ValueColumn.OptionsColumn.TabStop = false;
            this.tc1ValueColumn.OptionsFilter.AllowAutoFilter = false;
            this.tc1ValueColumn.OptionsFilter.AllowFilter = false;
            this.tc1ValueColumn.Visible = true;
            this.tc1ValueColumn.VisibleIndex = 2;
            this.tc1ValueColumn.Width = 60;
            // 
            // tc1UnitColumn
            // 
            this.tc1UnitColumn.Caption = "Unit";
            this.tc1UnitColumn.FieldName = "Unit";
            this.tc1UnitColumn.Name = "tc1UnitColumn";
            this.tc1UnitColumn.OptionsColumn.AllowEdit = false;
            this.tc1UnitColumn.OptionsColumn.AllowFocus = false;
            this.tc1UnitColumn.OptionsColumn.AllowGroup = DevExpress.Utils.DefaultBoolean.False;
            this.tc1UnitColumn.OptionsColumn.AllowIncrementalSearch = false;
            this.tc1UnitColumn.OptionsColumn.AllowMerge = DevExpress.Utils.DefaultBoolean.False;
            this.tc1UnitColumn.OptionsColumn.AllowMove = false;
            this.tc1UnitColumn.OptionsColumn.AllowShowHide = false;
            this.tc1UnitColumn.OptionsColumn.AllowSize = false;
            this.tc1UnitColumn.OptionsColumn.AllowSort = DevExpress.Utils.DefaultBoolean.False;
            this.tc1UnitColumn.OptionsColumn.FixedWidth = true;
            this.tc1UnitColumn.OptionsColumn.ImmediateUpdateRowPosition = DevExpress.Utils.DefaultBoolean.False;
            this.tc1UnitColumn.OptionsColumn.Printable = DevExpress.Utils.DefaultBoolean.False;
            this.tc1UnitColumn.OptionsColumn.ReadOnly = true;
            this.tc1UnitColumn.OptionsFilter.AllowAutoFilter = false;
            this.tc1UnitColumn.OptionsFilter.AllowFilter = false;
            this.tc1UnitColumn.Visible = true;
            this.tc1UnitColumn.VisibleIndex = 3;
            this.tc1UnitColumn.Width = 58;
            // 
            // ulPanel95
            // 
            this.ulPanel95.BackColor = System.Drawing.Color.DeepSkyBlue;
            this.ulPanel95.BevelInner = Ulee.Controls.EUlBevelStyle.None;
            this.ulPanel95.BevelOuter = Ulee.Controls.EUlBevelStyle.Lowered;
            this.ulPanel95.Font = new System.Drawing.Font("Arial Rounded MT Bold", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.ulPanel95.ForeColor = System.Drawing.Color.White;
            this.ulPanel95.InnerColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.ulPanel95.InnerColor2 = System.Drawing.Color.White;
            this.ulPanel95.Location = new System.Drawing.Point(6, 6);
            this.ulPanel95.Name = "ulPanel95";
            this.ulPanel95.OuterColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.ulPanel95.OuterColor2 = System.Drawing.Color.White;
            this.ulPanel95.Size = new System.Drawing.Size(1017, 28);
            this.ulPanel95.Spacing = 0;
            this.ulPanel95.TabIndex = 5;
            this.ulPanel95.Text = "THEMOCOUPLE";
            this.ulPanel95.TextHAlign = Ulee.Controls.EUlHoriAlign.Center;
            this.ulPanel95.TextVAlign = Ulee.Controls.EUlVertAlign.Middle;
            // 
            // reportPage
            // 
            this.reportPage.Controls.Add(this.reportSheet);
            this.reportPage.Location = new System.Drawing.Point(4, 24);
            this.reportPage.Margin = new System.Windows.Forms.Padding(0);
            this.reportPage.Name = "reportPage";
            this.reportPage.Size = new System.Drawing.Size(1392, 887);
            this.reportPage.TabIndex = 1;
            this.reportPage.Text = " Report ";
            this.reportPage.UseVisualStyleBackColor = true;
            // 
            // reportSheet
            // 
            this.reportSheet.Dock = System.Windows.Forms.DockStyle.Fill;
            this.reportSheet.Location = new System.Drawing.Point(0, 0);
            this.reportSheet.Margin = new System.Windows.Forms.Padding(0);
            this.reportSheet.Name = "reportSheet";
            this.reportSheet.Options.Import.Csv.Encoding = ((System.Text.Encoding)(resources.GetObject("reportSheet.Options.Import.Csv.Encoding")));
            this.reportSheet.Options.Import.Txt.Encoding = ((System.Text.Encoding)(resources.GetObject("reportSheet.Options.Import.Txt.Encoding")));
            this.reportSheet.Options.View.ShowColumnHeaders = false;
            this.reportSheet.Options.View.ShowRowHeaders = false;
            this.reportSheet.ReadOnly = true;
            this.reportSheet.Size = new System.Drawing.Size(1392, 887);
            this.reportSheet.TabIndex = 1;
            // 
            // graphPage
            // 
            this.graphPage.BackColor = System.Drawing.Color.White;
            this.graphPage.Controls.Add(this.graphTab);
            this.graphPage.Location = new System.Drawing.Point(4, 24);
            this.graphPage.Margin = new System.Windows.Forms.Padding(0);
            this.graphPage.Name = "graphPage";
            this.graphPage.Size = new System.Drawing.Size(1392, 887);
            this.graphPage.TabIndex = 2;
            this.graphPage.Text = " Graph ";
            // 
            // graphTab
            // 
            this.graphTab.Alignment = System.Windows.Forms.TabAlignment.Bottom;
            this.graphTab.Controls.Add(this.graph1Page);
            this.graphTab.Controls.Add(this.graph2Page);
            this.graphTab.Controls.Add(this.graph3Page);
            this.graphTab.Controls.Add(this.graph4Page);
            this.graphTab.Controls.Add(this.graph5Page);
            this.graphTab.Controls.Add(this.graph6Page);
            this.graphTab.Dock = System.Windows.Forms.DockStyle.Fill;
            this.graphTab.Location = new System.Drawing.Point(0, 0);
            this.graphTab.Margin = new System.Windows.Forms.Padding(0);
            this.graphTab.Name = "graphTab";
            this.graphTab.Padding = new System.Drawing.Point(0, 0);
            this.graphTab.SelectedIndex = 0;
            this.graphTab.Size = new System.Drawing.Size(1392, 887);
            this.graphTab.TabIndex = 0;
            this.graphTab.SelectedIndexChanged += new System.EventHandler(this.graphTab_SelectedIndexChanged);
            // 
            // graph1Page
            // 
            this.graph1Page.Location = new System.Drawing.Point(4, 4);
            this.graph1Page.Margin = new System.Windows.Forms.Padding(0);
            this.graph1Page.Name = "graph1Page";
            this.graph1Page.Size = new System.Drawing.Size(1384, 859);
            this.graph1Page.TabIndex = 0;
            this.graph1Page.Tag = "0";
            this.graph1Page.Text = " Graph #1 ";
            this.graph1Page.UseVisualStyleBackColor = true;
            // 
            // graph2Page
            // 
            this.graph2Page.Location = new System.Drawing.Point(4, 4);
            this.graph2Page.Margin = new System.Windows.Forms.Padding(0);
            this.graph2Page.Name = "graph2Page";
            this.graph2Page.Size = new System.Drawing.Size(304, 828);
            this.graph2Page.TabIndex = 1;
            this.graph2Page.Tag = "1";
            this.graph2Page.Text = " Graph #2 ";
            this.graph2Page.UseVisualStyleBackColor = true;
            // 
            // graph3Page
            // 
            this.graph3Page.Location = new System.Drawing.Point(4, 4);
            this.graph3Page.Margin = new System.Windows.Forms.Padding(0);
            this.graph3Page.Name = "graph3Page";
            this.graph3Page.Size = new System.Drawing.Size(304, 828);
            this.graph3Page.TabIndex = 2;
            this.graph3Page.Tag = "2";
            this.graph3Page.Text = " Graph #3 ";
            this.graph3Page.UseVisualStyleBackColor = true;
            // 
            // graph4Page
            // 
            this.graph4Page.Location = new System.Drawing.Point(4, 4);
            this.graph4Page.Name = "graph4Page";
            this.graph4Page.Padding = new System.Windows.Forms.Padding(3);
            this.graph4Page.Size = new System.Drawing.Size(304, 828);
            this.graph4Page.TabIndex = 3;
            this.graph4Page.Tag = "3";
            this.graph4Page.Text = " Graph #4 ";
            this.graph4Page.UseVisualStyleBackColor = true;
            // 
            // graph5Page
            // 
            this.graph5Page.Location = new System.Drawing.Point(4, 4);
            this.graph5Page.Name = "graph5Page";
            this.graph5Page.Padding = new System.Windows.Forms.Padding(3);
            this.graph5Page.Size = new System.Drawing.Size(304, 828);
            this.graph5Page.TabIndex = 4;
            this.graph5Page.Tag = "4";
            this.graph5Page.Text = " Graph #5 ";
            this.graph5Page.UseVisualStyleBackColor = true;
            // 
            // graph6Page
            // 
            this.graph6Page.Location = new System.Drawing.Point(4, 4);
            this.graph6Page.Name = "graph6Page";
            this.graph6Page.Padding = new System.Windows.Forms.Padding(3);
            this.graph6Page.Size = new System.Drawing.Size(304, 828);
            this.graph6Page.TabIndex = 5;
            this.graph6Page.Tag = "5";
            this.graph6Page.Text = " Graph #6 ";
            this.graph6Page.UseVisualStyleBackColor = true;
            // 
            // CtrlTestMeas
            // 
            this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            this.Name = "CtrlTestMeas";
            this.Size = new System.Drawing.Size(1728, 915);
            this.Load += new System.EventHandler(this.CtrlTestMeas_Load);
            this.Enter += new System.EventHandler(this.CtrlTestMeas_Enter);
            this.bgPanel.ResumeLayout(false);
            this.ulPanel4.ResumeLayout(false);
            ((System.ComponentModel.ISupportInitialize)(this.totalRatedGrid)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.totalRatedGridView)).EndInit();
            this.ulPanel1.ResumeLayout(false);
            ((System.ComponentModel.ISupportInitialize)(this.runStateGrid)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.runStateGridView)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.scheduleProgress.Properties)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.repeatProgress.Properties)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.noOfSteadyProgress.Properties)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.integrationProgress.Properties)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.judgementProgress.Properties)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.preparationProgress.Properties)).EndInit();
            this.testMeasTab.ResumeLayout(false);
            this.measPage.ResumeLayout(false);
            this.measTab.ResumeLayout(false);
            this.meas1Page.ResumeLayout(false);
            this.ulPanel5.ResumeLayout(false);
            ((System.ComponentModel.ISupportInitialize)(this.methodGrid)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.methodGridView)).EndInit();
            this.ulPanel3.ResumeLayout(false);
            ((System.ComponentModel.ISupportInitialize)(this.indoor11Grid)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.indoor11GridView)).EndInit();
            this.ulPanel79.ResumeLayout(false);
            ((System.ComponentModel.ISupportInitialize)(this.outdoorGrid)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.outdoorGridView)).EndInit();
            this.ulPanel59.ResumeLayout(false);
            ((System.ComponentModel.ISupportInitialize)(this.ratedGrid)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.ratedGridView)).EndInit();
            this.ulPanel69.ResumeLayout(false);
            ((System.ComponentModel.ISupportInitialize)(this.indoor22Grid)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.indoor22GridView)).EndInit();
            this.ulPanel74.ResumeLayout(false);
            ((System.ComponentModel.ISupportInitialize)(this.indoor21Grid)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.indoor21GridView)).EndInit();
            this.ulPanel64.ResumeLayout(false);
            ((System.ComponentModel.ISupportInitialize)(this.indoor12Grid)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.indoor12GridView)).EndInit();
            this.ulPanel39.ResumeLayout(false);
            ((System.ComponentModel.ISupportInitialize)(this.noteGrid)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.noteGridView)).EndInit();
            this.ulPanel37.ResumeLayout(false);
            ((System.ComponentModel.ISupportInitialize)(this.outsideGrid)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.outsideGridView)).EndInit();
            this.ulPanel15.ResumeLayout(false);
            ((System.ComponentModel.ISupportInitialize)(this.asNozzleGrid)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.asNozzleGridView)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.asNozzleCheckEdit)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.airSideGrid)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.airSideGridView)).EndInit();
            this.meas2Page.ResumeLayout(false);
            this.ulPanel85.ResumeLayout(false);
            ((System.ComponentModel.ISupportInitialize)(this.pressureGrid)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.pressureGridView)).EndInit();
            this.ulPanel84.ResumeLayout(false);
            ((System.ComponentModel.ISupportInitialize)(this.tc3Grid)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.tc3GridView)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.tc2Grid)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.tc2GridView)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.tc1Grid)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.tc1GridView)).EndInit();
            this.reportPage.ResumeLayout(false);
            this.graphPage.ResumeLayout(false);
            this.graphTab.ResumeLayout(false);
            this.ResumeLayout(false);
            this.PerformLayout();

        }

        #endregion

        private System.Windows.Forms.TabControl testMeasTab;
        private System.Windows.Forms.TabPage measPage;
        private System.Windows.Forms.TabControl measTab;
        private System.Windows.Forms.TabPage meas1Page;
        private System.Windows.Forms.TabPage meas2Page;
        private System.Windows.Forms.TabPage reportPage;
        private System.Windows.Forms.TabPage graphPage;
        private System.Windows.Forms.TabControl graphTab;
        private System.Windows.Forms.TabPage graph1Page;
        private System.Windows.Forms.TabPage graph2Page;
        private Ulee.Controls.UlPanel ulPanel1;
        private Ulee.Controls.UlPanel ulPanel2;
        private Ulee.Controls.UlPanel ulPanel4;
        private Ulee.Controls.UlPanel ulPanel6;
        private DevExpress.XtraSpreadsheet.SpreadsheetControl reportSheet;
        private System.Windows.Forms.TabPage graph3Page;
        private System.Windows.Forms.TabPage graph4Page;
        private System.Windows.Forms.TabPage graph5Page;
        private System.Windows.Forms.TabPage graph6Page;
        private DevExpress.XtraEditors.ProgressBarControl judgementProgress;
        private DevExpress.XtraEditors.ProgressBarControl preparationProgress;
        private System.Windows.Forms.Label label38;
        private System.Windows.Forms.Label label37;
        private System.Windows.Forms.Label label36;
        private System.Windows.Forms.Label label35;
        private System.Windows.Forms.Label label32;
        private System.Windows.Forms.Label label31;
        private DevExpress.XtraEditors.ProgressBarControl scheduleProgress;
        private DevExpress.XtraEditors.ProgressBarControl repeatProgress;
        private DevExpress.XtraEditors.ProgressBarControl noOfSteadyProgress;
        private DevExpress.XtraEditors.ProgressBarControl integrationProgress;
        private Ulee.Controls.UlPanel ulPanel15;
        private Ulee.Controls.UlPanel ulPanel16;
        private Ulee.Controls.UlPanel ulPanel37;
        private Ulee.Controls.UlPanel ulPanel38;
        private Ulee.Controls.UlPanel ulPanel39;
        private Ulee.Controls.UlPanel ulPanel40;
        private Ulee.Controls.UlPanel ulPanel79;
        private Ulee.Controls.UlPanel ulPanel83;
        private Ulee.Controls.UlPanel ulPanel69;
        private Ulee.Controls.UlPanel ulPanel73;
        private Ulee.Controls.UlPanel ulPanel74;
        private Ulee.Controls.UlPanel ulPanel78;
        private Ulee.Controls.UlPanel ulPanel64;
        private Ulee.Controls.UlPanel ulPanel68;
        private Ulee.Controls.UlPanel ulPanel59;
        private Ulee.Controls.UlPanel ulPanel60;
        private Ulee.Controls.UlPanel ulPanel84;
        private Ulee.Controls.UlPanel ulPanel95;
        private Ulee.Controls.UlPanel ulPanel85;
        private DevExpress.XtraGrid.GridControl pressureGrid;
        private DevExpress.XtraGrid.Views.Grid.GridView pressureGridView;
        private DevExpress.XtraGrid.Columns.GridColumn pressureNameColumn;
        private DevExpress.XtraGrid.Columns.GridColumn pressureValueColumn;
        private DevExpress.XtraGrid.Columns.GridColumn pressureUnitColumn;
        private Ulee.Controls.UlPanel ulPanel86;
        private DevExpress.XtraGrid.GridControl tc3Grid;
        private DevExpress.XtraGrid.Views.Grid.GridView tc3GridView;
        private DevExpress.XtraGrid.Columns.GridColumn tc3NameColumn;
        private DevExpress.XtraGrid.Columns.GridColumn tc3ValueColumn;
        private DevExpress.XtraGrid.Columns.GridColumn tc3UnitColumn;
        private DevExpress.XtraGrid.GridControl tc2Grid;
        private DevExpress.XtraGrid.Views.Grid.GridView tc2GridView;
        private DevExpress.XtraGrid.Columns.GridColumn tc2NameColumn;
        private DevExpress.XtraGrid.Columns.GridColumn tc2ValueColumn;
        private DevExpress.XtraGrid.Columns.GridColumn tc2UnitColumn;
        private DevExpress.XtraGrid.GridControl tc1Grid;
        private DevExpress.XtraGrid.Views.Grid.GridView tc1GridView;
        private DevExpress.XtraGrid.Columns.GridColumn tc1NameColumn;
        private DevExpress.XtraGrid.Columns.GridColumn tc1ValueColumn;
        private DevExpress.XtraGrid.Columns.GridColumn tc1UnitColumn;
        private DevExpress.XtraGrid.GridControl noteGrid;
        private DevExpress.XtraGrid.Views.Grid.GridView noteGridView;
        private DevExpress.XtraGrid.Columns.GridColumn noteNameColumn;
        private DevExpress.XtraGrid.Columns.GridColumn noteValueColumn;
        private DevExpress.XtraGrid.GridControl outsideGrid;
        private DevExpress.XtraGrid.Views.Grid.GridView outsideGridView;
        private DevExpress.XtraGrid.Columns.GridColumn osNameColumn;
        private DevExpress.XtraGrid.Columns.GridColumn osValueColumn;
        private DevExpress.XtraGrid.Columns.GridColumn osUnitColumn;
        private DevExpress.XtraGrid.GridControl asNozzleGrid;
        private DevExpress.XtraGrid.GridControl airSideGrid;
        private DevExpress.XtraGrid.Views.Grid.GridView airSideGridView;
        private DevExpress.XtraGrid.Columns.GridColumn agNameColumn;
        private DevExpress.XtraGrid.Columns.GridColumn agID11Column;
        private DevExpress.XtraGrid.Columns.GridColumn agID12Column;
        private DevExpress.XtraGrid.Columns.GridColumn agID21Column;
        private DevExpress.XtraGrid.Columns.GridColumn sgID22Column;
        private DevExpress.XtraGrid.Columns.GridColumn sgUnitColumn;
        private DevExpress.XtraGrid.GridControl ratedGrid;
        private DevExpress.XtraGrid.Views.Grid.GridView ratedGridView;
        private DevExpress.XtraGrid.Columns.GridColumn rgNameColumn;
        private DevExpress.XtraGrid.Columns.GridColumn rgValueColumn;
        private DevExpress.XtraGrid.Columns.GridColumn rgUnitColumn;
        private DevExpress.XtraGrid.GridControl totalRatedGrid;
        private DevExpress.XtraGrid.Views.Grid.GridView totalRatedGridView;
        private DevExpress.XtraGrid.Columns.GridColumn trgNameColumn;
        private DevExpress.XtraGrid.Columns.GridColumn trgValueColumn;
        private DevExpress.XtraGrid.Columns.GridColumn trgUnitColumn;
        private Ulee.Controls.UlPanel ulPanel3;
        private DevExpress.XtraGrid.GridControl indoor11Grid;
        private DevExpress.XtraGrid.Views.Grid.GridView indoor11GridView;
        private DevExpress.XtraGrid.Columns.GridColumn ID11NameColumn;
        private DevExpress.XtraGrid.Columns.GridColumn ID11ValueColumn;
        private DevExpress.XtraGrid.Columns.GridColumn ID11UnitColumn;
        private Ulee.Controls.UlPanel ulPanel17;
        private DevExpress.XtraGrid.GridControl outdoorGrid;
        private DevExpress.XtraGrid.Views.Grid.GridView outdoorGridView;
        private DevExpress.XtraGrid.Columns.GridColumn ODNameColumn;
        private DevExpress.XtraGrid.Columns.GridColumn ODValueColumn;
        private DevExpress.XtraGrid.Columns.GridColumn ODUnitColumn;
        private DevExpress.XtraGrid.GridControl indoor22Grid;
        private DevExpress.XtraGrid.Views.Grid.GridView indoor22GridView;
        private DevExpress.XtraGrid.Columns.GridColumn ID22NameColumn;
        private DevExpress.XtraGrid.Columns.GridColumn ID22ValueColumn;
        private DevExpress.XtraGrid.Columns.GridColumn ID22UnitColumn;
        private DevExpress.XtraGrid.GridControl indoor21Grid;
        private DevExpress.XtraGrid.Views.Grid.GridView indoor21GridView;
        private DevExpress.XtraGrid.Columns.GridColumn ID21NameColumn;
        private DevExpress.XtraGrid.Columns.GridColumn ID21ValueColumn;
        private DevExpress.XtraGrid.Columns.GridColumn ID21UnitColumn;
        private DevExpress.XtraGrid.GridControl indoor12Grid;
        private DevExpress.XtraGrid.Views.Grid.GridView indoor12GridView;
        private DevExpress.XtraGrid.Columns.GridColumn ID12NameColumn;
        private DevExpress.XtraGrid.Columns.GridColumn ID12ValueColumn;
        private DevExpress.XtraGrid.Columns.GridColumn ID12UnitColumn;
        private DevExpress.XtraGrid.GridControl runStateGrid;
        private DevExpress.XtraGrid.Views.Grid.GridView runStateGridView;
        private DevExpress.XtraGrid.Columns.GridColumn rsgNameColumn;
        private DevExpress.XtraGrid.Columns.GridColumn rsgValueColumn;
        private Ulee.Controls.UlPanel ulPanel5;
        private DevExpress.XtraGrid.GridControl methodGrid;
        private DevExpress.XtraGrid.Views.Grid.GridView methodGridView;
        private DevExpress.XtraGrid.Columns.GridColumn mgNameColumn;
        private DevExpress.XtraGrid.Columns.GridColumn meValueColumn;
        private Ulee.Controls.UlPanel ulPanel7;
        private DevExpress.XtraGrid.Columns.GridColumn tc1NoColumn;
        private DevExpress.XtraGrid.Columns.GridColumn pressureNoColumn;
        private DevExpress.XtraGrid.Columns.GridColumn tc3NoColumn;
        private DevExpress.XtraGrid.Columns.GridColumn tc2NoColumn;
        private DevExpress.XtraGrid.Views.BandedGrid.AdvBandedGridView asNozzleGridView;
        private DevExpress.XtraGrid.Views.BandedGrid.BandedGridColumn asNozzleNameColumn;
        private DevExpress.XtraGrid.Views.BandedGrid.BandedGridColumn asNozzleID11DiameterColumn;
        private DevExpress.XtraGrid.Views.BandedGrid.BandedGridColumn asNozzleID12DiameterColumn;
        private DevExpress.XtraGrid.Views.BandedGrid.BandedGridColumn asNozzleID21DiameterColumn;
        private DevExpress.XtraGrid.Views.BandedGrid.BandedGridColumn asNozzleID22DiameterColumn;
        private DevExpress.XtraGrid.Views.BandedGrid.BandedGridColumn asNozzleID11CheckColumn;
        private DevExpress.XtraGrid.Views.BandedGrid.BandedGridColumn asNozzleID12CheckColumn;
        private DevExpress.XtraGrid.Views.BandedGrid.BandedGridColumn asNozzleID21CheckColumn;
        private DevExpress.XtraGrid.Views.BandedGrid.BandedGridColumn asNozzleID22CheckColumn;
        private DevExpress.XtraGrid.Views.BandedGrid.GridBand asNozzleGenaralBand;
        private DevExpress.XtraGrid.Views.BandedGrid.GridBand asNozzleID11Band;
        private DevExpress.XtraGrid.Views.BandedGrid.GridBand asNozzleID12Band;
        private DevExpress.XtraGrid.Views.BandedGrid.GridBand asNozzleID21Band;
        private DevExpress.XtraGrid.Views.BandedGrid.GridBand asNozzleID22Band;
        private DevExpress.XtraEditors.Repository.RepositoryItemCheckEdit asNozzleCheckEdit;
    }
}
<file_sep>﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

using Ulee.Controls;
using Ulee.Utils;

namespace Hnc.Calorimeter.Client
{
    public partial class CtrlConfigCoefficient : UlUserControlEng
    {
        public CtrlConfigCoefficient()
        {
            InitializeComponent();
            Initialize();
        }

        private List<CoefficientViewRow> coefficients;

        private void Initialize()
        {
            coefficients = new List<CoefficientViewRow>();
        }

        private void CtrlConfigCoefficient_Enter(object sender, EventArgs e)
        {
            LoadCoefficient();
        }

        private void CtrlConfigCoefficient_Load(object sender, EventArgs e)
        {
            coeffGrid.DataSource = coefficients;
            coeffGridView.Appearance.EvenRow.BackColor = Color.FromArgb(244, 244, 236);
            coeffGridView.OptionsView.EnableAppearanceEvenRow = true;
        }

        private void LoadCoefficient()
        {
            string key;
            UlIniFile ini = Resource.Ini;

            coefficients.Clear();
            foreach (ECoefficient coeff in Enum.GetValues(typeof(ECoefficient)))
            {
                key = coeff.ToString();

                coefficients.Add(new CoefficientViewRow(
                    coeff.ToDescription(),
                    (float)ini.GetDouble("Coefficient.ID11", key),
                    (float)ini.GetDouble("Coefficient.ID12", key),
                    (float)ini.GetDouble("Coefficient.ID21", key),
                    (float)ini.GetDouble("Coefficient.ID22", key)));
            }

            coeffGridView.RefreshData();
        }

        private void saveButton_Click(object sender, EventArgs e)
        {
            if (MessageBox.Show("Would you like to save current coefficient values?",
                Resource.Caption, MessageBoxButtons.YesNo, MessageBoxIcon.Question)
                == DialogResult.No)
            {
                return;
            }

            UlIniFile ini = Resource.Ini;
            saveButton.Focus();

            foreach (ECoefficient coeff in Enum.GetValues(typeof(ECoefficient)))
            {
                ini.SetDouble("Coefficient.ID11", coeff.ToString(), coefficients[(int)coeff].ID11);
                ini.SetDouble("Coefficient.ID12", coeff.ToString(), coefficients[(int)coeff].ID12);
                ini.SetDouble("Coefficient.ID21", coeff.ToString(), coefficients[(int)coeff].ID21);
                ini.SetDouble("Coefficient.ID22", coeff.ToString(), coefficients[(int)coeff].ID22);
            }

            Resource.Settings.Load();
            coeffGridView.Focus();
        }
    }
}
<file_sep>﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

using Ulee.Controls;
using Ulee.Device.Connection.Yokogawa;

namespace Hnc.Calorimeter.Client
{
    public partial class CtrlPowerMeterView : UlUserControlEng
    {
        public CtrlPowerMeterView(string name)
        {
            InitializeComponent();

            titleEdit.Text = name;
            Initialize();
        }

        private List<UlPanel> meters;

        private void Initialize()
        {
            meters = new List<UlPanel>();

            meters.Add(powerREdit);
            meters.Add(voltREdit);
            meters.Add(currentREdit);
            meters.Add(hzREdit);
            meters.Add(pfREdit);
            meters.Add(whREdit);

            meters.Add(powerSEdit);
            meters.Add(voltSEdit);
            meters.Add(currentSEdit);
            meters.Add(hzSEdit);
            meters.Add(pfSEdit);
            meters.Add(whSEdit);

            meters.Add(powerTEdit);
            meters.Add(voltTEdit);
            meters.Add(currentTEdit);
            meters.Add(hzTEdit);
            meters.Add(pfTEdit);
            meters.Add(whTEdit);

            meters.Add(powerSigmaEdit);
            meters.Add(voltSigmaEdit);
            meters.Add(currentSigmaEdit);
            meters.Add(hzSigmaEdit);
            meters.Add(pfSigmaEdit);
            meters.Add(whSigmaEdit);

            meters.Add(integTimeEdit);
        }

        public void RefreshMeter(EWT330Phase phase, List<DeviceValueRow<float>> rows)
        {
            for (int i = 0; i < 24; i++)
            {
                meters[i].Text = $"{rows[i].Value:f1}";
            }
            meters[24].Text = $"{rows[24].Value:f0}";

            //if (phase == EWT330Phase.P1)
            //{
            //    for (int i = 0; i < 6; i++)
            //    {
            //        meters[i].Text = $"{rows[i].Value:f1}";
            //    }
            //    meters[24].Text = $"{rows[6].Value:f0}";

            //    for (int i = 0; i < 19; i++)
            //    {
            //        meters[i+6].Text = "0.0";
            //    }
            //}
            //else
            //{
            //    for (int i = 0; i < 24; i++)
            //    {
            //        meters[i].Text = $"{rows[i].Value:f1}";
            //    }
            //    meters[24].Text = $"{rows[24].Value:f0}";
            //}
        }
    }
}
<file_sep>﻿namespace Hnc.Calorimeter.Server
{
    partial class CtrlCalibGrid
    {
        /// <summary> 
        /// Required designer variable.
        /// </summary>
        private System.ComponentModel.IContainer components = null;

        /// <summary> 
        /// Clean up any resources being used.
        /// </summary>
        /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
        protected override void Dispose(bool disposing)
        {
            if (disposing && (components != null))
            {
                components.Dispose();
            }
            base.Dispose(disposing);
        }

        #region Component Designer generated code

        /// <summary> 
        /// Required method for Designer support - do not modify 
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(CtrlCalibGrid));
            this.channelGrid = new DevExpress.XtraGrid.GridControl();
            this.channelGridView = new DevExpress.XtraGrid.Views.BandedGrid.AdvBandedGridView();
            this.cgGeneralBand = new DevExpress.XtraGrid.Views.BandedGrid.GridBand();
            this.cgCheckedColumn = new DevExpress.XtraGrid.Views.BandedGrid.BandedGridColumn();
            this.cgNoColumn = new DevExpress.XtraGrid.Views.BandedGrid.BandedGridColumn();
            this.cdNameColumn = new DevExpress.XtraGrid.Views.BandedGrid.BandedGridColumn();
            this.cgMeasValueBand = new DevExpress.XtraGrid.Views.BandedGrid.GridBand();
            this.cgRawValueColumn = new DevExpress.XtraGrid.Views.BandedGrid.BandedGridColumn();
            this.cdRealValueColumn = new DevExpress.XtraGrid.Views.BandedGrid.BandedGridColumn();
            this.cgPoint1Band = new DevExpress.XtraGrid.Views.BandedGrid.GridBand();
            this.cgPoint1PvColumn = new DevExpress.XtraGrid.Views.BandedGrid.BandedGridColumn();
            this.cgPoint1SvColumn = new DevExpress.XtraGrid.Views.BandedGrid.BandedGridColumn();
            this.cgPoint2Band = new DevExpress.XtraGrid.Views.BandedGrid.GridBand();
            this.cgPoint2PvColumn = new DevExpress.XtraGrid.Views.BandedGrid.BandedGridColumn();
            this.cgPoint2SvColumn = new DevExpress.XtraGrid.Views.BandedGrid.BandedGridColumn();
            this.cgPoint3Band = new DevExpress.XtraGrid.Views.BandedGrid.GridBand();
            this.cgPoint3PvColumn = new DevExpress.XtraGrid.Views.BandedGrid.BandedGridColumn();
            this.cgPoint3SvColumn = new DevExpress.XtraGrid.Views.BandedGrid.BandedGridColumn();
            this.cgPoint4Band = new DevExpress.XtraGrid.Views.BandedGrid.GridBand();
            this.cgPoint4PvColumn = new DevExpress.XtraGrid.Views.BandedGrid.BandedGridColumn();
            this.cgPoint4SvColumn = new DevExpress.XtraGrid.Views.BandedGrid.BandedGridColumn();
            this.cgPoint5Band = new DevExpress.XtraGrid.Views.BandedGrid.GridBand();
            this.cgPoint5PvColumn = new DevExpress.XtraGrid.Views.BandedGrid.BandedGridColumn();
            this.cgPoint5SvColumn = new DevExpress.XtraGrid.Views.BandedGrid.BandedGridColumn();
            this.cgPoint6Band = new DevExpress.XtraGrid.Views.BandedGrid.GridBand();
            this.cgPoint6PvColumn = new DevExpress.XtraGrid.Views.BandedGrid.BandedGridColumn();
            this.cgPoint6SvColumn = new DevExpress.XtraGrid.Views.BandedGrid.BandedGridColumn();
            this.cgPoint7Band = new DevExpress.XtraGrid.Views.BandedGrid.GridBand();
            this.cgPoint7PvColumn = new DevExpress.XtraGrid.Views.BandedGrid.BandedGridColumn();
            this.cgPoint7SvColumn = new DevExpress.XtraGrid.Views.BandedGrid.BandedGridColumn();
            this.cgPoint8Band = new DevExpress.XtraGrid.Views.BandedGrid.GridBand();
            this.cgPoint8PvColumn = new DevExpress.XtraGrid.Views.BandedGrid.BandedGridColumn();
            this.cgPoint8SvColumn = new DevExpress.XtraGrid.Views.BandedGrid.BandedGridColumn();
            this.cgPoint9Band = new DevExpress.XtraGrid.Views.BandedGrid.GridBand();
            this.cgPoint9PvColumn = new DevExpress.XtraGrid.Views.BandedGrid.BandedGridColumn();
            this.cgPoint9SvColumn = new DevExpress.XtraGrid.Views.BandedGrid.BandedGridColumn();
            this.cgPoint10Band = new DevExpress.XtraGrid.Views.BandedGrid.GridBand();
            this.cgPoint10PvColumn = new DevExpress.XtraGrid.Views.BandedGrid.BandedGridColumn();
            this.cgPoint10SvColumn = new DevExpress.XtraGrid.Views.BandedGrid.BandedGridColumn();
            this.cgPoint11Band = new DevExpress.XtraGrid.Views.BandedGrid.GridBand();
            this.cgPoint11PvColumn = new DevExpress.XtraGrid.Views.BandedGrid.BandedGridColumn();
            this.cgPoint11SvColumn = new DevExpress.XtraGrid.Views.BandedGrid.BandedGridColumn();
            this.cgPoint12Band = new DevExpress.XtraGrid.Views.BandedGrid.GridBand();
            this.cgPoint12PvColumn = new DevExpress.XtraGrid.Views.BandedGrid.BandedGridColumn();
            this.cgPoint12SvColumn = new DevExpress.XtraGrid.Views.BandedGrid.BandedGridColumn();
            this.cgPoint13Band = new DevExpress.XtraGrid.Views.BandedGrid.GridBand();
            this.cgPoint13PvColumn = new DevExpress.XtraGrid.Views.BandedGrid.BandedGridColumn();
            this.cgPoint13SvColumn = new DevExpress.XtraGrid.Views.BandedGrid.BandedGridColumn();
            this.cgPoint14Band = new DevExpress.XtraGrid.Views.BandedGrid.GridBand();
            this.cgPoint14PvColumn = new DevExpress.XtraGrid.Views.BandedGrid.BandedGridColumn();
            this.cgPoint14SvColumn = new DevExpress.XtraGrid.Views.BandedGrid.BandedGridColumn();
            this.cgPoint15Band = new DevExpress.XtraGrid.Views.BandedGrid.GridBand();
            this.cgPoint15PvColumn = new DevExpress.XtraGrid.Views.BandedGrid.BandedGridColumn();
            this.cgPoint15SvColumn = new DevExpress.XtraGrid.Views.BandedGrid.BandedGridColumn();
            this.cgPoint16Band = new DevExpress.XtraGrid.Views.BandedGrid.GridBand();
            this.cgPoint16PvColumn = new DevExpress.XtraGrid.Views.BandedGrid.BandedGridColumn();
            this.cgPoint16SvColumn = new DevExpress.XtraGrid.Views.BandedGrid.BandedGridColumn();
            this.imageList = new System.Windows.Forms.ImageList();
            this.behaviorManager1 = new DevExpress.Utils.Behaviors.BehaviorManager();
            this.bgPanel.SuspendLayout();
            ((System.ComponentModel.ISupportInitialize)(this.channelGrid)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.channelGridView)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.behaviorManager1)).BeginInit();
            this.SuspendLayout();
            // 
            // bgPanel
            // 
            this.bgPanel.AutoSize = false;
            this.bgPanel.BevelOuter = Ulee.Controls.EUlBevelStyle.None;
            this.bgPanel.Controls.Add(this.channelGrid);
            this.bgPanel.Size = new System.Drawing.Size(984, 588);
            // 
            // channelGrid
            // 
            this.channelGrid.Dock = System.Windows.Forms.DockStyle.Fill;
            this.channelGrid.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.channelGrid.Location = new System.Drawing.Point(0, 0);
            this.channelGrid.MainView = this.channelGridView;
            this.channelGrid.Name = "channelGrid";
            this.channelGrid.Size = new System.Drawing.Size(984, 588);
            this.channelGrid.TabIndex = 3;
            this.channelGrid.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] {
            this.channelGridView});
            // 
            // channelGridView
            // 
            this.channelGridView.Appearance.BandPanel.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.channelGridView.Appearance.BandPanel.Options.UseFont = true;
            this.channelGridView.Appearance.EvenRow.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.channelGridView.Appearance.EvenRow.Options.UseFont = true;
            this.channelGridView.Appearance.FixedLine.Font = new System.Drawing.Font("Arial", 9F);
            this.channelGridView.Appearance.FixedLine.Options.UseFont = true;
            this.channelGridView.Appearance.FocusedCell.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.channelGridView.Appearance.FocusedCell.Options.UseFont = true;
            this.channelGridView.Appearance.FocusedRow.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.channelGridView.Appearance.FocusedRow.Options.UseFont = true;
            this.channelGridView.Appearance.HeaderPanel.Font = new System.Drawing.Font("Arial", 9F);
            this.channelGridView.Appearance.HeaderPanel.Options.UseFont = true;
            this.channelGridView.Appearance.HideSelectionRow.Font = new System.Drawing.Font("Arial", 9F);
            this.channelGridView.Appearance.HideSelectionRow.Options.UseFont = true;
            this.channelGridView.Appearance.OddRow.Font = new System.Drawing.Font("Arial", 9F);
            this.channelGridView.Appearance.OddRow.Options.UseFont = true;
            this.channelGridView.Appearance.Preview.Font = new System.Drawing.Font("Arial", 9F);
            this.channelGridView.Appearance.Preview.Options.UseFont = true;
            this.channelGridView.Appearance.Row.Font = new System.Drawing.Font("Arial", 9F);
            this.channelGridView.Appearance.Row.Options.UseFont = true;
            this.channelGridView.Appearance.SelectedRow.Font = new System.Drawing.Font("Arial", 9F);
            this.channelGridView.Appearance.SelectedRow.Options.UseFont = true;
            this.channelGridView.Appearance.ViewCaption.Font = new System.Drawing.Font("Arial", 9F);
            this.channelGridView.Appearance.ViewCaption.Options.UseFont = true;
            this.channelGridView.Bands.AddRange(new DevExpress.XtraGrid.Views.BandedGrid.GridBand[] {
            this.cgGeneralBand,
            this.cgMeasValueBand,
            this.cgPoint1Band,
            this.cgPoint2Band,
            this.cgPoint3Band,
            this.cgPoint4Band,
            this.cgPoint5Band,
            this.cgPoint6Band,
            this.cgPoint7Band,
            this.cgPoint8Band,
            this.cgPoint9Band,
            this.cgPoint10Band,
            this.cgPoint11Band,
            this.cgPoint12Band,
            this.cgPoint13Band,
            this.cgPoint14Band,
            this.cgPoint15Band,
            this.cgPoint16Band});
            this.channelGridView.Columns.AddRange(new DevExpress.XtraGrid.Views.BandedGrid.BandedGridColumn[] {
            this.cgCheckedColumn,
            this.cgNoColumn,
            this.cdNameColumn,
            this.cgRawValueColumn,
            this.cdRealValueColumn,
            this.cgPoint1PvColumn,
            this.cgPoint1SvColumn,
            this.cgPoint2PvColumn,
            this.cgPoint2SvColumn,
            this.cgPoint3PvColumn,
            this.cgPoint3SvColumn,
            this.cgPoint4PvColumn,
            this.cgPoint4SvColumn,
            this.cgPoint5PvColumn,
            this.cgPoint5SvColumn,
            this.cgPoint6PvColumn,
            this.cgPoint6SvColumn,
            this.cgPoint7PvColumn,
            this.cgPoint7SvColumn,
            this.cgPoint8PvColumn,
            this.cgPoint8SvColumn,
            this.cgPoint9PvColumn,
            this.cgPoint9SvColumn,
            this.cgPoint10PvColumn,
            this.cgPoint10SvColumn,
            this.cgPoint11PvColumn,
            this.cgPoint11SvColumn,
            this.cgPoint12PvColumn,
            this.cgPoint12SvColumn,
            this.cgPoint13PvColumn,
            this.cgPoint13SvColumn,
            this.cgPoint14PvColumn,
            this.cgPoint14SvColumn,
            this.cgPoint15PvColumn,
            this.cgPoint15SvColumn,
            this.cgPoint16PvColumn,
            this.cgPoint16SvColumn});
            this.channelGridView.GridControl = this.channelGrid;
            this.channelGridView.Images = this.imageList;
            this.channelGridView.IndicatorWidth = 40;
            this.channelGridView.Name = "channelGridView";
            this.channelGridView.OptionsSelection.EnableAppearanceFocusedRow = false;
            this.channelGridView.OptionsView.ShowGroupPanel = false;
            this.channelGridView.OptionsView.ShowIndicator = false;
            this.channelGridView.CustomDrawColumnHeader += new DevExpress.XtraGrid.Views.Grid.ColumnHeaderCustomDrawEventHandler(this.channelGridView_CustomDrawColumnHeader);
            this.channelGridView.CellValueChanged += new DevExpress.XtraGrid.Views.Base.CellValueChangedEventHandler(this.channelGridView_CellValueChanged);
            this.channelGridView.MouseDown += new System.Windows.Forms.MouseEventHandler(this.channelGridView_MouseDown);
            // 
            // cgGeneralBand
            // 
            this.cgGeneralBand.AppearanceHeader.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.cgGeneralBand.AppearanceHeader.Options.UseFont = true;
            this.cgGeneralBand.AppearanceHeader.Options.UseTextOptions = true;
            this.cgGeneralBand.AppearanceHeader.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Near;
            this.cgGeneralBand.Caption = "General";
            this.cgGeneralBand.Columns.Add(this.cgCheckedColumn);
            this.cgGeneralBand.Columns.Add(this.cgNoColumn);
            this.cgGeneralBand.Columns.Add(this.cdNameColumn);
            this.cgGeneralBand.Name = "cgGeneralBand";
            this.cgGeneralBand.OptionsBand.AllowHotTrack = false;
            this.cgGeneralBand.OptionsBand.AllowMove = false;
            this.cgGeneralBand.OptionsBand.AllowPress = false;
            this.cgGeneralBand.VisibleIndex = 0;
            this.cgGeneralBand.Width = 335;
            // 
            // cgCheckedColumn
            // 
            this.cgCheckedColumn.AppearanceCell.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.cgCheckedColumn.AppearanceCell.Options.UseFont = true;
            this.cgCheckedColumn.AppearanceCell.Options.UseTextOptions = true;
            this.cgCheckedColumn.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
            this.cgCheckedColumn.AppearanceHeader.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.cgCheckedColumn.AppearanceHeader.Options.UseImage = true;
            this.cgCheckedColumn.FieldName = "Checked";
            this.cgCheckedColumn.ImageOptions.Alignment = System.Drawing.StringAlignment.Center;
            this.cgCheckedColumn.ImageOptions.ImageIndex = 0;
            this.cgCheckedColumn.Name = "cgCheckedColumn";
            this.cgCheckedColumn.OptionsColumn.AllowGroup = DevExpress.Utils.DefaultBoolean.False;
            this.cgCheckedColumn.OptionsColumn.AllowIncrementalSearch = false;
            this.cgCheckedColumn.OptionsColumn.AllowMerge = DevExpress.Utils.DefaultBoolean.False;
            this.cgCheckedColumn.OptionsColumn.AllowMove = false;
            this.cgCheckedColumn.OptionsColumn.AllowShowHide = false;
            this.cgCheckedColumn.OptionsColumn.AllowSize = false;
            this.cgCheckedColumn.OptionsColumn.AllowSort = DevExpress.Utils.DefaultBoolean.False;
            this.cgCheckedColumn.OptionsColumn.FixedWidth = true;
            this.cgCheckedColumn.OptionsColumn.ImmediateUpdateRowPosition = DevExpress.Utils.DefaultBoolean.False;
            this.cgCheckedColumn.OptionsColumn.Printable = DevExpress.Utils.DefaultBoolean.False;
            this.cgCheckedColumn.OptionsColumn.TabStop = false;
            this.cgCheckedColumn.OptionsFilter.AllowAutoFilter = false;
            this.cgCheckedColumn.OptionsFilter.AllowFilter = false;
            this.cgCheckedColumn.Visible = true;
            this.cgCheckedColumn.Width = 30;
            // 
            // cgNoColumn
            // 
            this.cgNoColumn.AppearanceCell.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.cgNoColumn.AppearanceCell.Options.UseFont = true;
            this.cgNoColumn.AppearanceCell.Options.UseTextOptions = true;
            this.cgNoColumn.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
            this.cgNoColumn.AppearanceHeader.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.cgNoColumn.AppearanceHeader.Options.UseFont = true;
            this.cgNoColumn.AppearanceHeader.Options.UseTextOptions = true;
            this.cgNoColumn.AppearanceHeader.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
            this.cgNoColumn.Caption = "No";
            this.cgNoColumn.DisplayFormat.FormatString = "d3";
            this.cgNoColumn.DisplayFormat.FormatType = DevExpress.Utils.FormatType.Numeric;
            this.cgNoColumn.FieldName = "No";
            this.cgNoColumn.Name = "cgNoColumn";
            this.cgNoColumn.OptionsColumn.AllowEdit = false;
            this.cgNoColumn.OptionsColumn.AllowFocus = false;
            this.cgNoColumn.OptionsColumn.AllowGroup = DevExpress.Utils.DefaultBoolean.False;
            this.cgNoColumn.OptionsColumn.AllowIncrementalSearch = false;
            this.cgNoColumn.OptionsColumn.AllowMerge = DevExpress.Utils.DefaultBoolean.False;
            this.cgNoColumn.OptionsColumn.AllowMove = false;
            this.cgNoColumn.OptionsColumn.AllowShowHide = false;
            this.cgNoColumn.OptionsColumn.AllowSize = false;
            this.cgNoColumn.OptionsColumn.AllowSort = DevExpress.Utils.DefaultBoolean.False;
            this.cgNoColumn.OptionsColumn.FixedWidth = true;
            this.cgNoColumn.OptionsColumn.ImmediateUpdateRowPosition = DevExpress.Utils.DefaultBoolean.False;
            this.cgNoColumn.OptionsColumn.Printable = DevExpress.Utils.DefaultBoolean.False;
            this.cgNoColumn.OptionsColumn.ReadOnly = true;
            this.cgNoColumn.OptionsFilter.AllowAutoFilter = false;
            this.cgNoColumn.OptionsFilter.AllowFilter = false;
            this.cgNoColumn.Visible = true;
            this.cgNoColumn.Width = 38;
            // 
            // cdNameColumn
            // 
            this.cdNameColumn.Caption = "Name";
            this.cdNameColumn.FieldName = "Name";
            this.cdNameColumn.MinWidth = 100;
            this.cdNameColumn.Name = "cdNameColumn";
            this.cdNameColumn.OptionsColumn.AllowEdit = false;
            this.cdNameColumn.OptionsColumn.AllowFocus = false;
            this.cdNameColumn.OptionsColumn.AllowGroup = DevExpress.Utils.DefaultBoolean.False;
            this.cdNameColumn.OptionsColumn.AllowIncrementalSearch = false;
            this.cdNameColumn.OptionsColumn.AllowMerge = DevExpress.Utils.DefaultBoolean.False;
            this.cdNameColumn.OptionsColumn.AllowMove = false;
            this.cdNameColumn.OptionsColumn.AllowShowHide = false;
            this.cdNameColumn.OptionsColumn.AllowSort = DevExpress.Utils.DefaultBoolean.False;
            this.cdNameColumn.OptionsColumn.ImmediateUpdateRowPosition = DevExpress.Utils.DefaultBoolean.False;
            this.cdNameColumn.OptionsColumn.Printable = DevExpress.Utils.DefaultBoolean.False;
            this.cdNameColumn.OptionsColumn.ReadOnly = true;
            this.cdNameColumn.OptionsFilter.AllowAutoFilter = false;
            this.cdNameColumn.OptionsFilter.AllowFilter = false;
            this.cdNameColumn.Visible = true;
            this.cdNameColumn.Width = 267;
            // 
            // cgMeasValueBand
            // 
            this.cgMeasValueBand.Caption = "Measured Value";
            this.cgMeasValueBand.Columns.Add(this.cgRawValueColumn);
            this.cgMeasValueBand.Columns.Add(this.cdRealValueColumn);
            this.cgMeasValueBand.Name = "cgMeasValueBand";
            this.cgMeasValueBand.OptionsBand.AllowHotTrack = false;
            this.cgMeasValueBand.OptionsBand.AllowMove = false;
            this.cgMeasValueBand.OptionsBand.AllowPress = false;
            this.cgMeasValueBand.VisibleIndex = 1;
            this.cgMeasValueBand.Width = 136;
            // 
            // cgRawValueColumn
            // 
            this.cgRawValueColumn.AppearanceCell.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.cgRawValueColumn.AppearanceCell.Options.UseFont = true;
            this.cgRawValueColumn.AppearanceHeader.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.cgRawValueColumn.AppearanceHeader.Options.UseFont = true;
            this.cgRawValueColumn.Caption = "Raw";
            this.cgRawValueColumn.DisplayFormat.FormatString = "f3";
            this.cgRawValueColumn.DisplayFormat.FormatType = DevExpress.Utils.FormatType.Numeric;
            this.cgRawValueColumn.FieldName = "Raw";
            this.cgRawValueColumn.Name = "cgRawValueColumn";
            this.cgRawValueColumn.OptionsColumn.AllowEdit = false;
            this.cgRawValueColumn.OptionsColumn.AllowFocus = false;
            this.cgRawValueColumn.OptionsColumn.AllowGroup = DevExpress.Utils.DefaultBoolean.False;
            this.cgRawValueColumn.OptionsColumn.AllowIncrementalSearch = false;
            this.cgRawValueColumn.OptionsColumn.AllowMerge = DevExpress.Utils.DefaultBoolean.False;
            this.cgRawValueColumn.OptionsColumn.AllowMove = false;
            this.cgRawValueColumn.OptionsColumn.AllowShowHide = false;
            this.cgRawValueColumn.OptionsColumn.AllowSize = false;
            this.cgRawValueColumn.OptionsColumn.AllowSort = DevExpress.Utils.DefaultBoolean.False;
            this.cgRawValueColumn.OptionsColumn.FixedWidth = true;
            this.cgRawValueColumn.OptionsColumn.ImmediateUpdateRowPosition = DevExpress.Utils.DefaultBoolean.False;
            this.cgRawValueColumn.OptionsColumn.Printable = DevExpress.Utils.DefaultBoolean.False;
            this.cgRawValueColumn.OptionsColumn.ReadOnly = true;
            this.cgRawValueColumn.OptionsFilter.AllowAutoFilter = false;
            this.cgRawValueColumn.OptionsFilter.AllowFilter = false;
            this.cgRawValueColumn.Visible = true;
            this.cgRawValueColumn.Width = 68;
            // 
            // cdRealValueColumn
            // 
            this.cdRealValueColumn.Caption = "Real";
            this.cdRealValueColumn.DisplayFormat.FormatString = "f3";
            this.cdRealValueColumn.DisplayFormat.FormatType = DevExpress.Utils.FormatType.Numeric;
            this.cdRealValueColumn.FieldName = "Real";
            this.cdRealValueColumn.Name = "cdRealValueColumn";
            this.cdRealValueColumn.OptionsColumn.AllowEdit = false;
            this.cdRealValueColumn.OptionsColumn.AllowFocus = false;
            this.cdRealValueColumn.OptionsColumn.AllowGroup = DevExpress.Utils.DefaultBoolean.False;
            this.cdRealValueColumn.OptionsColumn.AllowIncrementalSearch = false;
            this.cdRealValueColumn.OptionsColumn.AllowMerge = DevExpress.Utils.DefaultBoolean.False;
            this.cdRealValueColumn.OptionsColumn.AllowMove = false;
            this.cdRealValueColumn.OptionsColumn.AllowShowHide = false;
            this.cdRealValueColumn.OptionsColumn.AllowSize = false;
            this.cdRealValueColumn.OptionsColumn.AllowSort = DevExpress.Utils.DefaultBoolean.False;
            this.cdRealValueColumn.OptionsColumn.FixedWidth = true;
            this.cdRealValueColumn.OptionsColumn.ImmediateUpdateRowPosition = DevExpress.Utils.DefaultBoolean.False;
            this.cdRealValueColumn.OptionsColumn.Printable = DevExpress.Utils.DefaultBoolean.False;
            this.cdRealValueColumn.OptionsColumn.ReadOnly = true;
            this.cdRealValueColumn.OptionsFilter.AllowAutoFilter = false;
            this.cdRealValueColumn.OptionsFilter.AllowFilter = false;
            this.cdRealValueColumn.Visible = true;
            this.cdRealValueColumn.Width = 68;
            // 
            // cgPoint1Band
            // 
            this.cgPoint1Band.Caption = "#1";
            this.cgPoint1Band.Columns.Add(this.cgPoint1PvColumn);
            this.cgPoint1Band.Columns.Add(this.cgPoint1SvColumn);
            this.cgPoint1Band.Name = "cgPoint1Band";
            this.cgPoint1Band.OptionsBand.AllowHotTrack = false;
            this.cgPoint1Band.OptionsBand.AllowMove = false;
            this.cgPoint1Band.VisibleIndex = 2;
            this.cgPoint1Band.Width = 136;
            // 
            // cgPoint1PvColumn
            // 
            this.cgPoint1PvColumn.AppearanceCell.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.cgPoint1PvColumn.AppearanceCell.Options.UseFont = true;
            this.cgPoint1PvColumn.AppearanceHeader.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.cgPoint1PvColumn.AppearanceHeader.Options.UseFont = true;
            this.cgPoint1PvColumn.Caption = "PV";
            this.cgPoint1PvColumn.DisplayFormat.FormatString = "f3";
            this.cgPoint1PvColumn.DisplayFormat.FormatType = DevExpress.Utils.FormatType.Numeric;
            this.cgPoint1PvColumn.FieldName = "PV1";
            this.cgPoint1PvColumn.Name = "cgPoint1PvColumn";
            this.cgPoint1PvColumn.OptionsColumn.AllowIncrementalSearch = false;
            this.cgPoint1PvColumn.OptionsColumn.AllowMerge = DevExpress.Utils.DefaultBoolean.False;
            this.cgPoint1PvColumn.OptionsColumn.AllowMove = false;
            this.cgPoint1PvColumn.OptionsColumn.AllowShowHide = false;
            this.cgPoint1PvColumn.OptionsColumn.AllowSize = false;
            this.cgPoint1PvColumn.OptionsColumn.AllowSort = DevExpress.Utils.DefaultBoolean.False;
            this.cgPoint1PvColumn.OptionsColumn.FixedWidth = true;
            this.cgPoint1PvColumn.OptionsColumn.ImmediateUpdateRowPosition = DevExpress.Utils.DefaultBoolean.False;
            this.cgPoint1PvColumn.OptionsColumn.Printable = DevExpress.Utils.DefaultBoolean.False;
            this.cgPoint1PvColumn.OptionsFilter.AllowAutoFilter = false;
            this.cgPoint1PvColumn.OptionsFilter.AllowFilter = false;
            this.cgPoint1PvColumn.Visible = true;
            this.cgPoint1PvColumn.Width = 68;
            // 
            // cgPoint1SvColumn
            // 
            this.cgPoint1SvColumn.AppearanceCell.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.cgPoint1SvColumn.AppearanceCell.Options.UseFont = true;
            this.cgPoint1SvColumn.AppearanceHeader.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.cgPoint1SvColumn.AppearanceHeader.Options.UseFont = true;
            this.cgPoint1SvColumn.Caption = "SV";
            this.cgPoint1SvColumn.DisplayFormat.FormatString = "f3";
            this.cgPoint1SvColumn.DisplayFormat.FormatType = DevExpress.Utils.FormatType.Numeric;
            this.cgPoint1SvColumn.FieldName = "SV1";
            this.cgPoint1SvColumn.Name = "cgPoint1SvColumn";
            this.cgPoint1SvColumn.OptionsColumn.AllowIncrementalSearch = false;
            this.cgPoint1SvColumn.OptionsColumn.AllowMerge = DevExpress.Utils.DefaultBoolean.False;
            this.cgPoint1SvColumn.OptionsColumn.AllowMove = false;
            this.cgPoint1SvColumn.OptionsColumn.AllowShowHide = false;
            this.cgPoint1SvColumn.OptionsColumn.AllowSize = false;
            this.cgPoint1SvColumn.OptionsColumn.AllowSort = DevExpress.Utils.DefaultBoolean.False;
            this.cgPoint1SvColumn.OptionsColumn.FixedWidth = true;
            this.cgPoint1SvColumn.OptionsColumn.ImmediateUpdateRowPosition = DevExpress.Utils.DefaultBoolean.False;
            this.cgPoint1SvColumn.OptionsColumn.Printable = DevExpress.Utils.DefaultBoolean.False;
            this.cgPoint1SvColumn.OptionsFilter.AllowAutoFilter = false;
            this.cgPoint1SvColumn.OptionsFilter.AllowFilter = false;
            this.cgPoint1SvColumn.Visible = true;
            this.cgPoint1SvColumn.Width = 68;
            // 
            // cgPoint2Band
            // 
            this.cgPoint2Band.Caption = "#2";
            this.cgPoint2Band.Columns.Add(this.cgPoint2PvColumn);
            this.cgPoint2Band.Columns.Add(this.cgPoint2SvColumn);
            this.cgPoint2Band.Name = "cgPoint2Band";
            this.cgPoint2Band.OptionsBand.AllowHotTrack = false;
            this.cgPoint2Band.OptionsBand.AllowMove = false;
            this.cgPoint2Band.VisibleIndex = 3;
            this.cgPoint2Band.Width = 136;
            // 
            // cgPoint2PvColumn
            // 
            this.cgPoint2PvColumn.AppearanceCell.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.cgPoint2PvColumn.AppearanceCell.Options.UseFont = true;
            this.cgPoint2PvColumn.AppearanceHeader.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.cgPoint2PvColumn.AppearanceHeader.Options.UseFont = true;
            this.cgPoint2PvColumn.Caption = "PV";
            this.cgPoint2PvColumn.DisplayFormat.FormatString = "f3";
            this.cgPoint2PvColumn.DisplayFormat.FormatType = DevExpress.Utils.FormatType.Numeric;
            this.cgPoint2PvColumn.FieldName = "PV2";
            this.cgPoint2PvColumn.Name = "cgPoint2PvColumn";
            this.cgPoint2PvColumn.OptionsColumn.AllowIncrementalSearch = false;
            this.cgPoint2PvColumn.OptionsColumn.AllowMerge = DevExpress.Utils.DefaultBoolean.False;
            this.cgPoint2PvColumn.OptionsColumn.AllowMove = false;
            this.cgPoint2PvColumn.OptionsColumn.AllowShowHide = false;
            this.cgPoint2PvColumn.OptionsColumn.AllowSize = false;
            this.cgPoint2PvColumn.OptionsColumn.AllowSort = DevExpress.Utils.DefaultBoolean.False;
            this.cgPoint2PvColumn.OptionsColumn.FixedWidth = true;
            this.cgPoint2PvColumn.OptionsColumn.ImmediateUpdateRowPosition = DevExpress.Utils.DefaultBoolean.False;
            this.cgPoint2PvColumn.OptionsColumn.Printable = DevExpress.Utils.DefaultBoolean.False;
            this.cgPoint2PvColumn.OptionsFilter.AllowAutoFilter = false;
            this.cgPoint2PvColumn.OptionsFilter.AllowFilter = false;
            this.cgPoint2PvColumn.Visible = true;
            this.cgPoint2PvColumn.Width = 68;
            // 
            // cgPoint2SvColumn
            // 
            this.cgPoint2SvColumn.AppearanceCell.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.cgPoint2SvColumn.AppearanceCell.Options.UseFont = true;
            this.cgPoint2SvColumn.AppearanceHeader.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.cgPoint2SvColumn.AppearanceHeader.Options.UseFont = true;
            this.cgPoint2SvColumn.Caption = "SV";
            this.cgPoint2SvColumn.DisplayFormat.FormatString = "f3";
            this.cgPoint2SvColumn.DisplayFormat.FormatType = DevExpress.Utils.FormatType.Numeric;
            this.cgPoint2SvColumn.FieldName = "SV2";
            this.cgPoint2SvColumn.Name = "cgPoint2SvColumn";
            this.cgPoint2SvColumn.OptionsColumn.AllowIncrementalSearch = false;
            this.cgPoint2SvColumn.OptionsColumn.AllowMerge = DevExpress.Utils.DefaultBoolean.False;
            this.cgPoint2SvColumn.OptionsColumn.AllowMove = false;
            this.cgPoint2SvColumn.OptionsColumn.AllowShowHide = false;
            this.cgPoint2SvColumn.OptionsColumn.AllowSize = false;
            this.cgPoint2SvColumn.OptionsColumn.AllowSort = DevExpress.Utils.DefaultBoolean.False;
            this.cgPoint2SvColumn.OptionsColumn.FixedWidth = true;
            this.cgPoint2SvColumn.OptionsColumn.ImmediateUpdateRowPosition = DevExpress.Utils.DefaultBoolean.False;
            this.cgPoint2SvColumn.OptionsColumn.Printable = DevExpress.Utils.DefaultBoolean.False;
            this.cgPoint2SvColumn.OptionsFilter.AllowAutoFilter = false;
            this.cgPoint2SvColumn.OptionsFilter.AllowFilter = false;
            this.cgPoint2SvColumn.Visible = true;
            this.cgPoint2SvColumn.Width = 68;
            // 
            // cgPoint3Band
            // 
            this.cgPoint3Band.Caption = "#3";
            this.cgPoint3Band.Columns.Add(this.cgPoint3PvColumn);
            this.cgPoint3Band.Columns.Add(this.cgPoint3SvColumn);
            this.cgPoint3Band.Name = "cgPoint3Band";
            this.cgPoint3Band.OptionsBand.AllowHotTrack = false;
            this.cgPoint3Band.OptionsBand.AllowMove = false;
            this.cgPoint3Band.VisibleIndex = 4;
            this.cgPoint3Band.Width = 136;
            // 
            // cgPoint3PvColumn
            // 
            this.cgPoint3PvColumn.AppearanceCell.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.cgPoint3PvColumn.AppearanceCell.Options.UseFont = true;
            this.cgPoint3PvColumn.AppearanceHeader.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.cgPoint3PvColumn.AppearanceHeader.Options.UseFont = true;
            this.cgPoint3PvColumn.Caption = "PV";
            this.cgPoint3PvColumn.DisplayFormat.FormatString = "f3";
            this.cgPoint3PvColumn.DisplayFormat.FormatType = DevExpress.Utils.FormatType.Numeric;
            this.cgPoint3PvColumn.FieldName = "PV3";
            this.cgPoint3PvColumn.Name = "cgPoint3PvColumn";
            this.cgPoint3PvColumn.OptionsColumn.AllowIncrementalSearch = false;
            this.cgPoint3PvColumn.OptionsColumn.AllowMerge = DevExpress.Utils.DefaultBoolean.False;
            this.cgPoint3PvColumn.OptionsColumn.AllowMove = false;
            this.cgPoint3PvColumn.OptionsColumn.AllowShowHide = false;
            this.cgPoint3PvColumn.OptionsColumn.AllowSize = false;
            this.cgPoint3PvColumn.OptionsColumn.AllowSort = DevExpress.Utils.DefaultBoolean.False;
            this.cgPoint3PvColumn.OptionsColumn.FixedWidth = true;
            this.cgPoint3PvColumn.OptionsColumn.ImmediateUpdateRowPosition = DevExpress.Utils.DefaultBoolean.False;
            this.cgPoint3PvColumn.OptionsColumn.Printable = DevExpress.Utils.DefaultBoolean.False;
            this.cgPoint3PvColumn.OptionsFilter.AllowAutoFilter = false;
            this.cgPoint3PvColumn.OptionsFilter.AllowFilter = false;
            this.cgPoint3PvColumn.Visible = true;
            this.cgPoint3PvColumn.Width = 68;
            // 
            // cgPoint3SvColumn
            // 
            this.cgPoint3SvColumn.AppearanceCell.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.cgPoint3SvColumn.AppearanceCell.Options.UseFont = true;
            this.cgPoint3SvColumn.AppearanceHeader.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.cgPoint3SvColumn.AppearanceHeader.Options.UseFont = true;
            this.cgPoint3SvColumn.Caption = "SV";
            this.cgPoint3SvColumn.DisplayFormat.FormatString = "f3";
            this.cgPoint3SvColumn.DisplayFormat.FormatType = DevExpress.Utils.FormatType.Numeric;
            this.cgPoint3SvColumn.FieldName = "SV3";
            this.cgPoint3SvColumn.Name = "cgPoint3SvColumn";
            this.cgPoint3SvColumn.OptionsColumn.AllowIncrementalSearch = false;
            this.cgPoint3SvColumn.OptionsColumn.AllowMerge = DevExpress.Utils.DefaultBoolean.False;
            this.cgPoint3SvColumn.OptionsColumn.AllowMove = false;
            this.cgPoint3SvColumn.OptionsColumn.AllowShowHide = false;
            this.cgPoint3SvColumn.OptionsColumn.AllowSize = false;
            this.cgPoint3SvColumn.OptionsColumn.AllowSort = DevExpress.Utils.DefaultBoolean.False;
            this.cgPoint3SvColumn.OptionsColumn.FixedWidth = true;
            this.cgPoint3SvColumn.OptionsColumn.ImmediateUpdateRowPosition = DevExpress.Utils.DefaultBoolean.False;
            this.cgPoint3SvColumn.OptionsColumn.Printable = DevExpress.Utils.DefaultBoolean.False;
            this.cgPoint3SvColumn.OptionsFilter.AllowAutoFilter = false;
            this.cgPoint3SvColumn.OptionsFilter.AllowFilter = false;
            this.cgPoint3SvColumn.Visible = true;
            this.cgPoint3SvColumn.Width = 68;
            // 
            // cgPoint4Band
            // 
            this.cgPoint4Band.Caption = "#4";
            this.cgPoint4Band.Columns.Add(this.cgPoint4PvColumn);
            this.cgPoint4Band.Columns.Add(this.cgPoint4SvColumn);
            this.cgPoint4Band.Name = "cgPoint4Band";
            this.cgPoint4Band.OptionsBand.AllowHotTrack = false;
            this.cgPoint4Band.OptionsBand.AllowMove = false;
            this.cgPoint4Band.VisibleIndex = 5;
            this.cgPoint4Band.Width = 136;
            // 
            // cgPoint4PvColumn
            // 
            this.cgPoint4PvColumn.AppearanceCell.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.cgPoint4PvColumn.AppearanceCell.Options.UseFont = true;
            this.cgPoint4PvColumn.AppearanceHeader.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.cgPoint4PvColumn.AppearanceHeader.Options.UseFont = true;
            this.cgPoint4PvColumn.Caption = "PV";
            this.cgPoint4PvColumn.DisplayFormat.FormatString = "f3";
            this.cgPoint4PvColumn.DisplayFormat.FormatType = DevExpress.Utils.FormatType.Numeric;
            this.cgPoint4PvColumn.FieldName = "PV4";
            this.cgPoint4PvColumn.Name = "cgPoint4PvColumn";
            this.cgPoint4PvColumn.OptionsColumn.AllowIncrementalSearch = false;
            this.cgPoint4PvColumn.OptionsColumn.AllowMerge = DevExpress.Utils.DefaultBoolean.False;
            this.cgPoint4PvColumn.OptionsColumn.AllowMove = false;
            this.cgPoint4PvColumn.OptionsColumn.AllowShowHide = false;
            this.cgPoint4PvColumn.OptionsColumn.AllowSize = false;
            this.cgPoint4PvColumn.OptionsColumn.AllowSort = DevExpress.Utils.DefaultBoolean.False;
            this.cgPoint4PvColumn.OptionsColumn.FixedWidth = true;
            this.cgPoint4PvColumn.OptionsColumn.ImmediateUpdateRowPosition = DevExpress.Utils.DefaultBoolean.False;
            this.cgPoint4PvColumn.OptionsColumn.Printable = DevExpress.Utils.DefaultBoolean.False;
            this.cgPoint4PvColumn.OptionsFilter.AllowAutoFilter = false;
            this.cgPoint4PvColumn.OptionsFilter.AllowFilter = false;
            this.cgPoint4PvColumn.Visible = true;
            this.cgPoint4PvColumn.Width = 68;
            // 
            // cgPoint4SvColumn
            // 
            this.cgPoint4SvColumn.AppearanceCell.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.cgPoint4SvColumn.AppearanceCell.Options.UseFont = true;
            this.cgPoint4SvColumn.AppearanceHeader.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.cgPoint4SvColumn.AppearanceHeader.Options.UseFont = true;
            this.cgPoint4SvColumn.Caption = "SV";
            this.cgPoint4SvColumn.DisplayFormat.FormatString = "f3";
            this.cgPoint4SvColumn.DisplayFormat.FormatType = DevExpress.Utils.FormatType.Numeric;
            this.cgPoint4SvColumn.FieldName = "SV4";
            this.cgPoint4SvColumn.Name = "cgPoint4SvColumn";
            this.cgPoint4SvColumn.OptionsColumn.AllowIncrementalSearch = false;
            this.cgPoint4SvColumn.OptionsColumn.AllowMerge = DevExpress.Utils.DefaultBoolean.False;
            this.cgPoint4SvColumn.OptionsColumn.AllowMove = false;
            this.cgPoint4SvColumn.OptionsColumn.AllowShowHide = false;
            this.cgPoint4SvColumn.OptionsColumn.AllowSize = false;
            this.cgPoint4SvColumn.OptionsColumn.AllowSort = DevExpress.Utils.DefaultBoolean.False;
            this.cgPoint4SvColumn.OptionsColumn.FixedWidth = true;
            this.cgPoint4SvColumn.OptionsColumn.ImmediateUpdateRowPosition = DevExpress.Utils.DefaultBoolean.False;
            this.cgPoint4SvColumn.OptionsColumn.Printable = DevExpress.Utils.DefaultBoolean.False;
            this.cgPoint4SvColumn.OptionsFilter.AllowAutoFilter = false;
            this.cgPoint4SvColumn.OptionsFilter.AllowFilter = false;
            this.cgPoint4SvColumn.Visible = true;
            this.cgPoint4SvColumn.Width = 68;
            // 
            // cgPoint5Band
            // 
            this.cgPoint5Band.Caption = "#5";
            this.cgPoint5Band.Columns.Add(this.cgPoint5PvColumn);
            this.cgPoint5Band.Columns.Add(this.cgPoint5SvColumn);
            this.cgPoint5Band.Name = "cgPoint5Band";
            this.cgPoint5Band.OptionsBand.AllowHotTrack = false;
            this.cgPoint5Band.OptionsBand.AllowMove = false;
            this.cgPoint5Band.VisibleIndex = 6;
            this.cgPoint5Band.Width = 136;
            // 
            // cgPoint5PvColumn
            // 
            this.cgPoint5PvColumn.AppearanceCell.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.cgPoint5PvColumn.AppearanceCell.Options.UseFont = true;
            this.cgPoint5PvColumn.AppearanceHeader.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.cgPoint5PvColumn.AppearanceHeader.Options.UseFont = true;
            this.cgPoint5PvColumn.Caption = "PV";
            this.cgPoint5PvColumn.DisplayFormat.FormatString = "f3";
            this.cgPoint5PvColumn.DisplayFormat.FormatType = DevExpress.Utils.FormatType.Numeric;
            this.cgPoint5PvColumn.FieldName = "PV5";
            this.cgPoint5PvColumn.Name = "cgPoint5PvColumn";
            this.cgPoint5PvColumn.OptionsColumn.AllowIncrementalSearch = false;
            this.cgPoint5PvColumn.OptionsColumn.AllowMerge = DevExpress.Utils.DefaultBoolean.False;
            this.cgPoint5PvColumn.OptionsColumn.AllowMove = false;
            this.cgPoint5PvColumn.OptionsColumn.AllowShowHide = false;
            this.cgPoint5PvColumn.OptionsColumn.AllowSize = false;
            this.cgPoint5PvColumn.OptionsColumn.AllowSort = DevExpress.Utils.DefaultBoolean.False;
            this.cgPoint5PvColumn.OptionsColumn.FixedWidth = true;
            this.cgPoint5PvColumn.OptionsColumn.ImmediateUpdateRowPosition = DevExpress.Utils.DefaultBoolean.False;
            this.cgPoint5PvColumn.OptionsColumn.Printable = DevExpress.Utils.DefaultBoolean.False;
            this.cgPoint5PvColumn.OptionsFilter.AllowAutoFilter = false;
            this.cgPoint5PvColumn.OptionsFilter.AllowFilter = false;
            this.cgPoint5PvColumn.Visible = true;
            this.cgPoint5PvColumn.Width = 68;
            // 
            // cgPoint5SvColumn
            // 
            this.cgPoint5SvColumn.AppearanceCell.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.cgPoint5SvColumn.AppearanceCell.Options.UseFont = true;
            this.cgPoint5SvColumn.AppearanceHeader.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.cgPoint5SvColumn.AppearanceHeader.Options.UseFont = true;
            this.cgPoint5SvColumn.Caption = "SV";
            this.cgPoint5SvColumn.DisplayFormat.FormatString = "f3";
            this.cgPoint5SvColumn.DisplayFormat.FormatType = DevExpress.Utils.FormatType.Numeric;
            this.cgPoint5SvColumn.FieldName = "SV5";
            this.cgPoint5SvColumn.Name = "cgPoint5SvColumn";
            this.cgPoint5SvColumn.OptionsColumn.AllowIncrementalSearch = false;
            this.cgPoint5SvColumn.OptionsColumn.AllowMerge = DevExpress.Utils.DefaultBoolean.False;
            this.cgPoint5SvColumn.OptionsColumn.AllowMove = false;
            this.cgPoint5SvColumn.OptionsColumn.AllowShowHide = false;
            this.cgPoint5SvColumn.OptionsColumn.AllowSize = false;
            this.cgPoint5SvColumn.OptionsColumn.AllowSort = DevExpress.Utils.DefaultBoolean.False;
            this.cgPoint5SvColumn.OptionsColumn.FixedWidth = true;
            this.cgPoint5SvColumn.OptionsColumn.ImmediateUpdateRowPosition = DevExpress.Utils.DefaultBoolean.False;
            this.cgPoint5SvColumn.OptionsColumn.Printable = DevExpress.Utils.DefaultBoolean.False;
            this.cgPoint5SvColumn.OptionsFilter.AllowAutoFilter = false;
            this.cgPoint5SvColumn.OptionsFilter.AllowFilter = false;
            this.cgPoint5SvColumn.Visible = true;
            this.cgPoint5SvColumn.Width = 68;
            // 
            // cgPoint6Band
            // 
            this.cgPoint6Band.Caption = "#6";
            this.cgPoint6Band.Columns.Add(this.cgPoint6PvColumn);
            this.cgPoint6Band.Columns.Add(this.cgPoint6SvColumn);
            this.cgPoint6Band.Name = "cgPoint6Band";
            this.cgPoint6Band.OptionsBand.AllowHotTrack = false;
            this.cgPoint6Band.OptionsBand.AllowMove = false;
            this.cgPoint6Band.VisibleIndex = 7;
            this.cgPoint6Band.Width = 136;
            // 
            // cgPoint6PvColumn
            // 
            this.cgPoint6PvColumn.AppearanceCell.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.cgPoint6PvColumn.AppearanceCell.Options.UseFont = true;
            this.cgPoint6PvColumn.AppearanceHeader.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.cgPoint6PvColumn.AppearanceHeader.Options.UseFont = true;
            this.cgPoint6PvColumn.Caption = "PV";
            this.cgPoint6PvColumn.DisplayFormat.FormatString = "f3";
            this.cgPoint6PvColumn.DisplayFormat.FormatType = DevExpress.Utils.FormatType.Numeric;
            this.cgPoint6PvColumn.FieldName = "PV6";
            this.cgPoint6PvColumn.Name = "cgPoint6PvColumn";
            this.cgPoint6PvColumn.OptionsColumn.AllowIncrementalSearch = false;
            this.cgPoint6PvColumn.OptionsColumn.AllowMerge = DevExpress.Utils.DefaultBoolean.False;
            this.cgPoint6PvColumn.OptionsColumn.AllowMove = false;
            this.cgPoint6PvColumn.OptionsColumn.AllowShowHide = false;
            this.cgPoint6PvColumn.OptionsColumn.AllowSize = false;
            this.cgPoint6PvColumn.OptionsColumn.AllowSort = DevExpress.Utils.DefaultBoolean.False;
            this.cgPoint6PvColumn.OptionsColumn.FixedWidth = true;
            this.cgPoint6PvColumn.OptionsColumn.ImmediateUpdateRowPosition = DevExpress.Utils.DefaultBoolean.False;
            this.cgPoint6PvColumn.OptionsColumn.Printable = DevExpress.Utils.DefaultBoolean.False;
            this.cgPoint6PvColumn.OptionsFilter.AllowAutoFilter = false;
            this.cgPoint6PvColumn.OptionsFilter.AllowFilter = false;
            this.cgPoint6PvColumn.Visible = true;
            this.cgPoint6PvColumn.Width = 68;
            // 
            // cgPoint6SvColumn
            // 
            this.cgPoint6SvColumn.AppearanceCell.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.cgPoint6SvColumn.AppearanceCell.Options.UseFont = true;
            this.cgPoint6SvColumn.AppearanceHeader.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.cgPoint6SvColumn.AppearanceHeader.Options.UseFont = true;
            this.cgPoint6SvColumn.Caption = "SV";
            this.cgPoint6SvColumn.DisplayFormat.FormatString = "f3";
            this.cgPoint6SvColumn.DisplayFormat.FormatType = DevExpress.Utils.FormatType.Numeric;
            this.cgPoint6SvColumn.FieldName = "SV6";
            this.cgPoint6SvColumn.Name = "cgPoint6SvColumn";
            this.cgPoint6SvColumn.OptionsColumn.AllowIncrementalSearch = false;
            this.cgPoint6SvColumn.OptionsColumn.AllowMerge = DevExpress.Utils.DefaultBoolean.False;
            this.cgPoint6SvColumn.OptionsColumn.AllowMove = false;
            this.cgPoint6SvColumn.OptionsColumn.AllowShowHide = false;
            this.cgPoint6SvColumn.OptionsColumn.AllowSize = false;
            this.cgPoint6SvColumn.OptionsColumn.AllowSort = DevExpress.Utils.DefaultBoolean.False;
            this.cgPoint6SvColumn.OptionsColumn.FixedWidth = true;
            this.cgPoint6SvColumn.OptionsColumn.ImmediateUpdateRowPosition = DevExpress.Utils.DefaultBoolean.False;
            this.cgPoint6SvColumn.OptionsColumn.Printable = DevExpress.Utils.DefaultBoolean.False;
            this.cgPoint6SvColumn.OptionsFilter.AllowAutoFilter = false;
            this.cgPoint6SvColumn.OptionsFilter.AllowFilter = false;
            this.cgPoint6SvColumn.Visible = true;
            this.cgPoint6SvColumn.Width = 68;
            // 
            // cgPoint7Band
            // 
            this.cgPoint7Band.Caption = "#7";
            this.cgPoint7Band.Columns.Add(this.cgPoint7PvColumn);
            this.cgPoint7Band.Columns.Add(this.cgPoint7SvColumn);
            this.cgPoint7Band.Name = "cgPoint7Band";
            this.cgPoint7Band.OptionsBand.AllowHotTrack = false;
            this.cgPoint7Band.OptionsBand.AllowMove = false;
            this.cgPoint7Band.VisibleIndex = 8;
            this.cgPoint7Band.Width = 136;
            // 
            // cgPoint7PvColumn
            // 
            this.cgPoint7PvColumn.AppearanceCell.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.cgPoint7PvColumn.AppearanceCell.Options.UseFont = true;
            this.cgPoint7PvColumn.AppearanceHeader.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.cgPoint7PvColumn.AppearanceHeader.Options.UseFont = true;
            this.cgPoint7PvColumn.Caption = "PV";
            this.cgPoint7PvColumn.DisplayFormat.FormatString = "f3";
            this.cgPoint7PvColumn.DisplayFormat.FormatType = DevExpress.Utils.FormatType.Numeric;
            this.cgPoint7PvColumn.FieldName = "PV7";
            this.cgPoint7PvColumn.Name = "cgPoint7PvColumn";
            this.cgPoint7PvColumn.OptionsColumn.AllowIncrementalSearch = false;
            this.cgPoint7PvColumn.OptionsColumn.AllowMerge = DevExpress.Utils.DefaultBoolean.False;
            this.cgPoint7PvColumn.OptionsColumn.AllowMove = false;
            this.cgPoint7PvColumn.OptionsColumn.AllowShowHide = false;
            this.cgPoint7PvColumn.OptionsColumn.AllowSize = false;
            this.cgPoint7PvColumn.OptionsColumn.AllowSort = DevExpress.Utils.DefaultBoolean.False;
            this.cgPoint7PvColumn.OptionsColumn.FixedWidth = true;
            this.cgPoint7PvColumn.OptionsColumn.ImmediateUpdateRowPosition = DevExpress.Utils.DefaultBoolean.False;
            this.cgPoint7PvColumn.OptionsColumn.Printable = DevExpress.Utils.DefaultBoolean.False;
            this.cgPoint7PvColumn.OptionsFilter.AllowAutoFilter = false;
            this.cgPoint7PvColumn.OptionsFilter.AllowFilter = false;
            this.cgPoint7PvColumn.Visible = true;
            this.cgPoint7PvColumn.Width = 68;
            // 
            // cgPoint7SvColumn
            // 
            this.cgPoint7SvColumn.AppearanceCell.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.cgPoint7SvColumn.AppearanceCell.Options.UseFont = true;
            this.cgPoint7SvColumn.AppearanceHeader.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.cgPoint7SvColumn.AppearanceHeader.Options.UseFont = true;
            this.cgPoint7SvColumn.Caption = "SV";
            this.cgPoint7SvColumn.DisplayFormat.FormatType = DevExpress.Utils.FormatType.Numeric;
            this.cgPoint7SvColumn.FieldName = "SV7";
            this.cgPoint7SvColumn.Name = "cgPoint7SvColumn";
            this.cgPoint7SvColumn.OptionsColumn.AllowIncrementalSearch = false;
            this.cgPoint7SvColumn.OptionsColumn.AllowMerge = DevExpress.Utils.DefaultBoolean.False;
            this.cgPoint7SvColumn.OptionsColumn.AllowMove = false;
            this.cgPoint7SvColumn.OptionsColumn.AllowShowHide = false;
            this.cgPoint7SvColumn.OptionsColumn.AllowSize = false;
            this.cgPoint7SvColumn.OptionsColumn.AllowSort = DevExpress.Utils.DefaultBoolean.False;
            this.cgPoint7SvColumn.OptionsColumn.FixedWidth = true;
            this.cgPoint7SvColumn.OptionsColumn.ImmediateUpdateRowPosition = DevExpress.Utils.DefaultBoolean.False;
            this.cgPoint7SvColumn.OptionsColumn.Printable = DevExpress.Utils.DefaultBoolean.False;
            this.cgPoint7SvColumn.OptionsFilter.AllowAutoFilter = false;
            this.cgPoint7SvColumn.OptionsFilter.AllowFilter = false;
            this.cgPoint7SvColumn.Visible = true;
            this.cgPoint7SvColumn.Width = 68;
            // 
            // cgPoint8Band
            // 
            this.cgPoint8Band.Caption = "#8";
            this.cgPoint8Band.Columns.Add(this.cgPoint8PvColumn);
            this.cgPoint8Band.Columns.Add(this.cgPoint8SvColumn);
            this.cgPoint8Band.Name = "cgPoint8Band";
            this.cgPoint8Band.OptionsBand.AllowHotTrack = false;
            this.cgPoint8Band.OptionsBand.AllowMove = false;
            this.cgPoint8Band.VisibleIndex = 9;
            this.cgPoint8Band.Width = 136;
            // 
            // cgPoint8PvColumn
            // 
            this.cgPoint8PvColumn.AppearanceCell.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.cgPoint8PvColumn.AppearanceCell.Options.UseFont = true;
            this.cgPoint8PvColumn.AppearanceHeader.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.cgPoint8PvColumn.AppearanceHeader.Options.UseFont = true;
            this.cgPoint8PvColumn.Caption = "PV";
            this.cgPoint8PvColumn.DisplayFormat.FormatString = "f3";
            this.cgPoint8PvColumn.DisplayFormat.FormatType = DevExpress.Utils.FormatType.Numeric;
            this.cgPoint8PvColumn.FieldName = "PV8";
            this.cgPoint8PvColumn.Name = "cgPoint8PvColumn";
            this.cgPoint8PvColumn.OptionsColumn.AllowIncrementalSearch = false;
            this.cgPoint8PvColumn.OptionsColumn.AllowMerge = DevExpress.Utils.DefaultBoolean.False;
            this.cgPoint8PvColumn.OptionsColumn.AllowMove = false;
            this.cgPoint8PvColumn.OptionsColumn.AllowShowHide = false;
            this.cgPoint8PvColumn.OptionsColumn.AllowSize = false;
            this.cgPoint8PvColumn.OptionsColumn.AllowSort = DevExpress.Utils.DefaultBoolean.False;
            this.cgPoint8PvColumn.OptionsColumn.FixedWidth = true;
            this.cgPoint8PvColumn.OptionsColumn.ImmediateUpdateRowPosition = DevExpress.Utils.DefaultBoolean.False;
            this.cgPoint8PvColumn.OptionsColumn.Printable = DevExpress.Utils.DefaultBoolean.False;
            this.cgPoint8PvColumn.OptionsFilter.AllowAutoFilter = false;
            this.cgPoint8PvColumn.OptionsFilter.AllowFilter = false;
            this.cgPoint8PvColumn.Visible = true;
            this.cgPoint8PvColumn.Width = 68;
            // 
            // cgPoint8SvColumn
            // 
            this.cgPoint8SvColumn.AppearanceCell.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.cgPoint8SvColumn.AppearanceCell.Options.UseFont = true;
            this.cgPoint8SvColumn.AppearanceHeader.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.cgPoint8SvColumn.AppearanceHeader.Options.UseFont = true;
            this.cgPoint8SvColumn.Caption = "SV";
            this.cgPoint8SvColumn.DisplayFormat.FormatString = "f3";
            this.cgPoint8SvColumn.DisplayFormat.FormatType = DevExpress.Utils.FormatType.Numeric;
            this.cgPoint8SvColumn.FieldName = "SV8";
            this.cgPoint8SvColumn.Name = "cgPoint8SvColumn";
            this.cgPoint8SvColumn.OptionsColumn.AllowIncrementalSearch = false;
            this.cgPoint8SvColumn.OptionsColumn.AllowMerge = DevExpress.Utils.DefaultBoolean.False;
            this.cgPoint8SvColumn.OptionsColumn.AllowMove = false;
            this.cgPoint8SvColumn.OptionsColumn.AllowShowHide = false;
            this.cgPoint8SvColumn.OptionsColumn.AllowSize = false;
            this.cgPoint8SvColumn.OptionsColumn.AllowSort = DevExpress.Utils.DefaultBoolean.False;
            this.cgPoint8SvColumn.OptionsColumn.FixedWidth = true;
            this.cgPoint8SvColumn.OptionsColumn.ImmediateUpdateRowPosition = DevExpress.Utils.DefaultBoolean.False;
            this.cgPoint8SvColumn.OptionsColumn.Printable = DevExpress.Utils.DefaultBoolean.False;
            this.cgPoint8SvColumn.OptionsFilter.AllowAutoFilter = false;
            this.cgPoint8SvColumn.OptionsFilter.AllowFilter = false;
            this.cgPoint8SvColumn.Visible = true;
            this.cgPoint8SvColumn.Width = 68;
            // 
            // cgPoint9Band
            // 
            this.cgPoint9Band.Caption = "#9";
            this.cgPoint9Band.Columns.Add(this.cgPoint9PvColumn);
            this.cgPoint9Band.Columns.Add(this.cgPoint9SvColumn);
            this.cgPoint9Band.Name = "cgPoint9Band";
            this.cgPoint9Band.OptionsBand.AllowHotTrack = false;
            this.cgPoint9Band.OptionsBand.AllowMove = false;
            this.cgPoint9Band.VisibleIndex = 10;
            this.cgPoint9Band.Width = 136;
            // 
            // cgPoint9PvColumn
            // 
            this.cgPoint9PvColumn.AppearanceCell.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.cgPoint9PvColumn.AppearanceCell.Options.UseFont = true;
            this.cgPoint9PvColumn.AppearanceHeader.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.cgPoint9PvColumn.AppearanceHeader.Options.UseFont = true;
            this.cgPoint9PvColumn.Caption = "PV";
            this.cgPoint9PvColumn.DisplayFormat.FormatString = "f3";
            this.cgPoint9PvColumn.DisplayFormat.FormatType = DevExpress.Utils.FormatType.Numeric;
            this.cgPoint9PvColumn.FieldName = "PV9";
            this.cgPoint9PvColumn.Name = "cgPoint9PvColumn";
            this.cgPoint9PvColumn.OptionsColumn.AllowIncrementalSearch = false;
            this.cgPoint9PvColumn.OptionsColumn.AllowMerge = DevExpress.Utils.DefaultBoolean.False;
            this.cgPoint9PvColumn.OptionsColumn.AllowMove = false;
            this.cgPoint9PvColumn.OptionsColumn.AllowShowHide = false;
            this.cgPoint9PvColumn.OptionsColumn.AllowSize = false;
            this.cgPoint9PvColumn.OptionsColumn.AllowSort = DevExpress.Utils.DefaultBoolean.False;
            this.cgPoint9PvColumn.OptionsColumn.FixedWidth = true;
            this.cgPoint9PvColumn.OptionsColumn.ImmediateUpdateRowPosition = DevExpress.Utils.DefaultBoolean.False;
            this.cgPoint9PvColumn.OptionsColumn.Printable = DevExpress.Utils.DefaultBoolean.False;
            this.cgPoint9PvColumn.OptionsFilter.AllowAutoFilter = false;
            this.cgPoint9PvColumn.OptionsFilter.AllowFilter = false;
            this.cgPoint9PvColumn.Visible = true;
            this.cgPoint9PvColumn.Width = 68;
            // 
            // cgPoint9SvColumn
            // 
            this.cgPoint9SvColumn.AppearanceCell.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.cgPoint9SvColumn.AppearanceCell.Options.UseFont = true;
            this.cgPoint9SvColumn.AppearanceHeader.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.cgPoint9SvColumn.AppearanceHeader.Options.UseFont = true;
            this.cgPoint9SvColumn.Caption = "SV";
            this.cgPoint9SvColumn.DisplayFormat.FormatString = "f3";
            this.cgPoint9SvColumn.DisplayFormat.FormatType = DevExpress.Utils.FormatType.Numeric;
            this.cgPoint9SvColumn.FieldName = "SV9";
            this.cgPoint9SvColumn.Name = "cgPoint9SvColumn";
            this.cgPoint9SvColumn.OptionsColumn.AllowIncrementalSearch = false;
            this.cgPoint9SvColumn.OptionsColumn.AllowMerge = DevExpress.Utils.DefaultBoolean.False;
            this.cgPoint9SvColumn.OptionsColumn.AllowMove = false;
            this.cgPoint9SvColumn.OptionsColumn.AllowShowHide = false;
            this.cgPoint9SvColumn.OptionsColumn.AllowSize = false;
            this.cgPoint9SvColumn.OptionsColumn.AllowSort = DevExpress.Utils.DefaultBoolean.False;
            this.cgPoint9SvColumn.OptionsColumn.FixedWidth = true;
            this.cgPoint9SvColumn.OptionsColumn.ImmediateUpdateRowPosition = DevExpress.Utils.DefaultBoolean.False;
            this.cgPoint9SvColumn.OptionsColumn.Printable = DevExpress.Utils.DefaultBoolean.False;
            this.cgPoint9SvColumn.OptionsFilter.AllowAutoFilter = false;
            this.cgPoint9SvColumn.OptionsFilter.AllowFilter = false;
            this.cgPoint9SvColumn.Visible = true;
            this.cgPoint9SvColumn.Width = 68;
            // 
            // cgPoint10Band
            // 
            this.cgPoint10Band.Caption = "#10";
            this.cgPoint10Band.Columns.Add(this.cgPoint10PvColumn);
            this.cgPoint10Band.Columns.Add(this.cgPoint10SvColumn);
            this.cgPoint10Band.Name = "cgPoint10Band";
            this.cgPoint10Band.OptionsBand.AllowHotTrack = false;
            this.cgPoint10Band.OptionsBand.AllowMove = false;
            this.cgPoint10Band.VisibleIndex = 11;
            this.cgPoint10Band.Width = 136;
            // 
            // cgPoint10PvColumn
            // 
            this.cgPoint10PvColumn.AppearanceCell.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.cgPoint10PvColumn.AppearanceCell.Options.UseFont = true;
            this.cgPoint10PvColumn.AppearanceHeader.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.cgPoint10PvColumn.AppearanceHeader.Options.UseFont = true;
            this.cgPoint10PvColumn.Caption = "PV";
            this.cgPoint10PvColumn.DisplayFormat.FormatString = "f3";
            this.cgPoint10PvColumn.DisplayFormat.FormatType = DevExpress.Utils.FormatType.Numeric;
            this.cgPoint10PvColumn.FieldName = "PV10";
            this.cgPoint10PvColumn.Name = "cgPoint10PvColumn";
            this.cgPoint10PvColumn.OptionsColumn.AllowIncrementalSearch = false;
            this.cgPoint10PvColumn.OptionsColumn.AllowMerge = DevExpress.Utils.DefaultBoolean.False;
            this.cgPoint10PvColumn.OptionsColumn.AllowMove = false;
            this.cgPoint10PvColumn.OptionsColumn.AllowShowHide = false;
            this.cgPoint10PvColumn.OptionsColumn.AllowSize = false;
            this.cgPoint10PvColumn.OptionsColumn.AllowSort = DevExpress.Utils.DefaultBoolean.False;
            this.cgPoint10PvColumn.OptionsColumn.FixedWidth = true;
            this.cgPoint10PvColumn.OptionsColumn.ImmediateUpdateRowPosition = DevExpress.Utils.DefaultBoolean.False;
            this.cgPoint10PvColumn.OptionsColumn.Printable = DevExpress.Utils.DefaultBoolean.False;
            this.cgPoint10PvColumn.OptionsFilter.AllowAutoFilter = false;
            this.cgPoint10PvColumn.OptionsFilter.AllowFilter = false;
            this.cgPoint10PvColumn.Visible = true;
            this.cgPoint10PvColumn.Width = 68;
            // 
            // cgPoint10SvColumn
            // 
            this.cgPoint10SvColumn.AppearanceCell.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.cgPoint10SvColumn.AppearanceCell.Options.UseFont = true;
            this.cgPoint10SvColumn.AppearanceHeader.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.cgPoint10SvColumn.AppearanceHeader.Options.UseFont = true;
            this.cgPoint10SvColumn.Caption = "SV";
            this.cgPoint10SvColumn.DisplayFormat.FormatString = "f3";
            this.cgPoint10SvColumn.DisplayFormat.FormatType = DevExpress.Utils.FormatType.Numeric;
            this.cgPoint10SvColumn.FieldName = "SV10";
            this.cgPoint10SvColumn.Name = "cgPoint10SvColumn";
            this.cgPoint10SvColumn.OptionsColumn.AllowIncrementalSearch = false;
            this.cgPoint10SvColumn.OptionsColumn.AllowMerge = DevExpress.Utils.DefaultBoolean.False;
            this.cgPoint10SvColumn.OptionsColumn.AllowMove = false;
            this.cgPoint10SvColumn.OptionsColumn.AllowShowHide = false;
            this.cgPoint10SvColumn.OptionsColumn.AllowSize = false;
            this.cgPoint10SvColumn.OptionsColumn.AllowSort = DevExpress.Utils.DefaultBoolean.False;
            this.cgPoint10SvColumn.OptionsColumn.FixedWidth = true;
            this.cgPoint10SvColumn.OptionsColumn.ImmediateUpdateRowPosition = DevExpress.Utils.DefaultBoolean.False;
            this.cgPoint10SvColumn.OptionsColumn.Printable = DevExpress.Utils.DefaultBoolean.False;
            this.cgPoint10SvColumn.OptionsFilter.AllowAutoFilter = false;
            this.cgPoint10SvColumn.OptionsFilter.AllowFilter = false;
            this.cgPoint10SvColumn.Visible = true;
            this.cgPoint10SvColumn.Width = 68;
            // 
            // cgPoint11Band
            // 
            this.cgPoint11Band.Caption = "#11";
            this.cgPoint11Band.Columns.Add(this.cgPoint11PvColumn);
            this.cgPoint11Band.Columns.Add(this.cgPoint11SvColumn);
            this.cgPoint11Band.Name = "cgPoint11Band";
            this.cgPoint11Band.OptionsBand.AllowHotTrack = false;
            this.cgPoint11Band.OptionsBand.AllowMove = false;
            this.cgPoint11Band.VisibleIndex = 12;
            this.cgPoint11Band.Width = 136;
            // 
            // cgPoint11PvColumn
            // 
            this.cgPoint11PvColumn.AppearanceCell.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.cgPoint11PvColumn.AppearanceCell.Options.UseFont = true;
            this.cgPoint11PvColumn.AppearanceHeader.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.cgPoint11PvColumn.AppearanceHeader.Options.UseFont = true;
            this.cgPoint11PvColumn.Caption = "PV";
            this.cgPoint11PvColumn.DisplayFormat.FormatString = "f3";
            this.cgPoint11PvColumn.DisplayFormat.FormatType = DevExpress.Utils.FormatType.Numeric;
            this.cgPoint11PvColumn.FieldName = "PV11";
            this.cgPoint11PvColumn.Name = "cgPoint11PvColumn";
            this.cgPoint11PvColumn.OptionsColumn.AllowIncrementalSearch = false;
            this.cgPoint11PvColumn.OptionsColumn.AllowMerge = DevExpress.Utils.DefaultBoolean.False;
            this.cgPoint11PvColumn.OptionsColumn.AllowMove = false;
            this.cgPoint11PvColumn.OptionsColumn.AllowShowHide = false;
            this.cgPoint11PvColumn.OptionsColumn.AllowSize = false;
            this.cgPoint11PvColumn.OptionsColumn.AllowSort = DevExpress.Utils.DefaultBoolean.False;
            this.cgPoint11PvColumn.OptionsColumn.FixedWidth = true;
            this.cgPoint11PvColumn.OptionsColumn.ImmediateUpdateRowPosition = DevExpress.Utils.DefaultBoolean.False;
            this.cgPoint11PvColumn.OptionsColumn.Printable = DevExpress.Utils.DefaultBoolean.False;
            this.cgPoint11PvColumn.OptionsFilter.AllowAutoFilter = false;
            this.cgPoint11PvColumn.OptionsFilter.AllowFilter = false;
            this.cgPoint11PvColumn.Visible = true;
            this.cgPoint11PvColumn.Width = 68;
            // 
            // cgPoint11SvColumn
            // 
            this.cgPoint11SvColumn.AppearanceCell.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.cgPoint11SvColumn.AppearanceCell.Options.UseFont = true;
            this.cgPoint11SvColumn.AppearanceHeader.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.cgPoint11SvColumn.AppearanceHeader.Options.UseFont = true;
            this.cgPoint11SvColumn.Caption = "SV";
            this.cgPoint11SvColumn.DisplayFormat.FormatString = "f3";
            this.cgPoint11SvColumn.DisplayFormat.FormatType = DevExpress.Utils.FormatType.Numeric;
            this.cgPoint11SvColumn.FieldName = "SV11";
            this.cgPoint11SvColumn.Name = "cgPoint11SvColumn";
            this.cgPoint11SvColumn.OptionsColumn.AllowIncrementalSearch = false;
            this.cgPoint11SvColumn.OptionsColumn.AllowMerge = DevExpress.Utils.DefaultBoolean.False;
            this.cgPoint11SvColumn.OptionsColumn.AllowMove = false;
            this.cgPoint11SvColumn.OptionsColumn.AllowShowHide = false;
            this.cgPoint11SvColumn.OptionsColumn.AllowSize = false;
            this.cgPoint11SvColumn.OptionsColumn.AllowSort = DevExpress.Utils.DefaultBoolean.False;
            this.cgPoint11SvColumn.OptionsColumn.FixedWidth = true;
            this.cgPoint11SvColumn.OptionsColumn.ImmediateUpdateRowPosition = DevExpress.Utils.DefaultBoolean.False;
            this.cgPoint11SvColumn.OptionsColumn.Printable = DevExpress.Utils.DefaultBoolean.False;
            this.cgPoint11SvColumn.OptionsFilter.AllowAutoFilter = false;
            this.cgPoint11SvColumn.OptionsFilter.AllowFilter = false;
            this.cgPoint11SvColumn.Visible = true;
            this.cgPoint11SvColumn.Width = 68;
            // 
            // cgPoint12Band
            // 
            this.cgPoint12Band.Caption = "#12";
            this.cgPoint12Band.Columns.Add(this.cgPoint12PvColumn);
            this.cgPoint12Band.Columns.Add(this.cgPoint12SvColumn);
            this.cgPoint12Band.Name = "cgPoint12Band";
            this.cgPoint12Band.OptionsBand.AllowHotTrack = false;
            this.cgPoint12Band.OptionsBand.AllowMove = false;
            this.cgPoint12Band.VisibleIndex = 13;
            this.cgPoint12Band.Width = 136;
            // 
            // cgPoint12PvColumn
            // 
            this.cgPoint12PvColumn.AppearanceCell.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.cgPoint12PvColumn.AppearanceCell.Options.UseFont = true;
            this.cgPoint12PvColumn.AppearanceHeader.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.cgPoint12PvColumn.AppearanceHeader.Options.UseFont = true;
            this.cgPoint12PvColumn.Caption = "PV";
            this.cgPoint12PvColumn.DisplayFormat.FormatString = "f3";
            this.cgPoint12PvColumn.DisplayFormat.FormatType = DevExpress.Utils.FormatType.Numeric;
            this.cgPoint12PvColumn.FieldName = "PV12";
            this.cgPoint12PvColumn.Name = "cgPoint12PvColumn";
            this.cgPoint12PvColumn.OptionsColumn.AllowIncrementalSearch = false;
            this.cgPoint12PvColumn.OptionsColumn.AllowMerge = DevExpress.Utils.DefaultBoolean.False;
            this.cgPoint12PvColumn.OptionsColumn.AllowMove = false;
            this.cgPoint12PvColumn.OptionsColumn.AllowShowHide = false;
            this.cgPoint12PvColumn.OptionsColumn.AllowSize = false;
            this.cgPoint12PvColumn.OptionsColumn.AllowSort = DevExpress.Utils.DefaultBoolean.False;
            this.cgPoint12PvColumn.OptionsColumn.FixedWidth = true;
            this.cgPoint12PvColumn.OptionsColumn.ImmediateUpdateRowPosition = DevExpress.Utils.DefaultBoolean.False;
            this.cgPoint12PvColumn.OptionsColumn.Printable = DevExpress.Utils.DefaultBoolean.False;
            this.cgPoint12PvColumn.OptionsFilter.AllowAutoFilter = false;
            this.cgPoint12PvColumn.OptionsFilter.AllowFilter = false;
            this.cgPoint12PvColumn.Visible = true;
            this.cgPoint12PvColumn.Width = 68;
            // 
            // cgPoint12SvColumn
            // 
            this.cgPoint12SvColumn.AppearanceCell.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.cgPoint12SvColumn.AppearanceCell.Options.UseFont = true;
            this.cgPoint12SvColumn.AppearanceHeader.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.cgPoint12SvColumn.AppearanceHeader.Options.UseFont = true;
            this.cgPoint12SvColumn.Caption = "SV";
            this.cgPoint12SvColumn.DisplayFormat.FormatString = "f3";
            this.cgPoint12SvColumn.DisplayFormat.FormatType = DevExpress.Utils.FormatType.Numeric;
            this.cgPoint12SvColumn.FieldName = "SV12";
            this.cgPoint12SvColumn.Name = "cgPoint12SvColumn";
            this.cgPoint12SvColumn.OptionsColumn.AllowIncrementalSearch = false;
            this.cgPoint12SvColumn.OptionsColumn.AllowMerge = DevExpress.Utils.DefaultBoolean.False;
            this.cgPoint12SvColumn.OptionsColumn.AllowMove = false;
            this.cgPoint12SvColumn.OptionsColumn.AllowShowHide = false;
            this.cgPoint12SvColumn.OptionsColumn.AllowSize = false;
            this.cgPoint12SvColumn.OptionsColumn.AllowSort = DevExpress.Utils.DefaultBoolean.False;
            this.cgPoint12SvColumn.OptionsColumn.FixedWidth = true;
            this.cgPoint12SvColumn.OptionsColumn.ImmediateUpdateRowPosition = DevExpress.Utils.DefaultBoolean.False;
            this.cgPoint12SvColumn.OptionsColumn.Printable = DevExpress.Utils.DefaultBoolean.False;
            this.cgPoint12SvColumn.OptionsFilter.AllowAutoFilter = false;
            this.cgPoint12SvColumn.OptionsFilter.AllowFilter = false;
            this.cgPoint12SvColumn.Visible = true;
            this.cgPoint12SvColumn.Width = 68;
            // 
            // cgPoint13Band
            // 
            this.cgPoint13Band.Caption = "#13";
            this.cgPoint13Band.Columns.Add(this.cgPoint13PvColumn);
            this.cgPoint13Band.Columns.Add(this.cgPoint13SvColumn);
            this.cgPoint13Band.Name = "cgPoint13Band";
            this.cgPoint13Band.OptionsBand.AllowHotTrack = false;
            this.cgPoint13Band.OptionsBand.AllowMove = false;
            this.cgPoint13Band.VisibleIndex = 14;
            this.cgPoint13Band.Width = 136;
            // 
            // cgPoint13PvColumn
            // 
            this.cgPoint13PvColumn.AppearanceCell.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.cgPoint13PvColumn.AppearanceCell.Options.UseFont = true;
            this.cgPoint13PvColumn.AppearanceHeader.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.cgPoint13PvColumn.AppearanceHeader.Options.UseFont = true;
            this.cgPoint13PvColumn.Caption = "PV";
            this.cgPoint13PvColumn.DisplayFormat.FormatString = "f3";
            this.cgPoint13PvColumn.DisplayFormat.FormatType = DevExpress.Utils.FormatType.Numeric;
            this.cgPoint13PvColumn.FieldName = "PV13";
            this.cgPoint13PvColumn.Name = "cgPoint13PvColumn";
            this.cgPoint13PvColumn.OptionsColumn.AllowIncrementalSearch = false;
            this.cgPoint13PvColumn.OptionsColumn.AllowMerge = DevExpress.Utils.DefaultBoolean.False;
            this.cgPoint13PvColumn.OptionsColumn.AllowMove = false;
            this.cgPoint13PvColumn.OptionsColumn.AllowShowHide = false;
            this.cgPoint13PvColumn.OptionsColumn.AllowSize = false;
            this.cgPoint13PvColumn.OptionsColumn.AllowSort = DevExpress.Utils.DefaultBoolean.False;
            this.cgPoint13PvColumn.OptionsColumn.FixedWidth = true;
            this.cgPoint13PvColumn.OptionsColumn.ImmediateUpdateRowPosition = DevExpress.Utils.DefaultBoolean.False;
            this.cgPoint13PvColumn.OptionsColumn.Printable = DevExpress.Utils.DefaultBoolean.False;
            this.cgPoint13PvColumn.OptionsFilter.AllowAutoFilter = false;
            this.cgPoint13PvColumn.OptionsFilter.AllowFilter = false;
            this.cgPoint13PvColumn.Visible = true;
            this.cgPoint13PvColumn.Width = 68;
            // 
            // cgPoint13SvColumn
            // 
            this.cgPoint13SvColumn.AppearanceCell.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.cgPoint13SvColumn.AppearanceCell.Options.UseFont = true;
            this.cgPoint13SvColumn.AppearanceHeader.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.cgPoint13SvColumn.AppearanceHeader.Options.UseFont = true;
            this.cgPoint13SvColumn.Caption = "SV";
            this.cgPoint13SvColumn.DisplayFormat.FormatString = "f3";
            this.cgPoint13SvColumn.DisplayFormat.FormatType = DevExpress.Utils.FormatType.Numeric;
            this.cgPoint13SvColumn.FieldName = "SV13";
            this.cgPoint13SvColumn.Name = "cgPoint13SvColumn";
            this.cgPoint13SvColumn.OptionsColumn.AllowIncrementalSearch = false;
            this.cgPoint13SvColumn.OptionsColumn.AllowMerge = DevExpress.Utils.DefaultBoolean.False;
            this.cgPoint13SvColumn.OptionsColumn.AllowMove = false;
            this.cgPoint13SvColumn.OptionsColumn.AllowShowHide = false;
            this.cgPoint13SvColumn.OptionsColumn.AllowSize = false;
            this.cgPoint13SvColumn.OptionsColumn.AllowSort = DevExpress.Utils.DefaultBoolean.False;
            this.cgPoint13SvColumn.OptionsColumn.FixedWidth = true;
            this.cgPoint13SvColumn.OptionsColumn.ImmediateUpdateRowPosition = DevExpress.Utils.DefaultBoolean.False;
            this.cgPoint13SvColumn.OptionsColumn.Printable = DevExpress.Utils.DefaultBoolean.False;
            this.cgPoint13SvColumn.OptionsFilter.AllowAutoFilter = false;
            this.cgPoint13SvColumn.OptionsFilter.AllowFilter = false;
            this.cgPoint13SvColumn.Visible = true;
            this.cgPoint13SvColumn.Width = 68;
            // 
            // cgPoint14Band
            // 
            this.cgPoint14Band.Caption = "#14";
            this.cgPoint14Band.Columns.Add(this.cgPoint14PvColumn);
            this.cgPoint14Band.Columns.Add(this.cgPoint14SvColumn);
            this.cgPoint14Band.Name = "cgPoint14Band";
            this.cgPoint14Band.OptionsBand.AllowHotTrack = false;
            this.cgPoint14Band.OptionsBand.AllowMove = false;
            this.cgPoint14Band.VisibleIndex = 15;
            this.cgPoint14Band.Width = 136;
            // 
            // cgPoint14PvColumn
            // 
            this.cgPoint14PvColumn.AppearanceCell.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.cgPoint14PvColumn.AppearanceCell.Options.UseFont = true;
            this.cgPoint14PvColumn.AppearanceHeader.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.cgPoint14PvColumn.AppearanceHeader.Options.UseFont = true;
            this.cgPoint14PvColumn.Caption = "PV";
            this.cgPoint14PvColumn.DisplayFormat.FormatString = "f3";
            this.cgPoint14PvColumn.DisplayFormat.FormatType = DevExpress.Utils.FormatType.Numeric;
            this.cgPoint14PvColumn.FieldName = "PV14";
            this.cgPoint14PvColumn.Name = "cgPoint14PvColumn";
            this.cgPoint14PvColumn.OptionsColumn.AllowIncrementalSearch = false;
            this.cgPoint14PvColumn.OptionsColumn.AllowMerge = DevExpress.Utils.DefaultBoolean.False;
            this.cgPoint14PvColumn.OptionsColumn.AllowMove = false;
            this.cgPoint14PvColumn.OptionsColumn.AllowShowHide = false;
            this.cgPoint14PvColumn.OptionsColumn.AllowSize = false;
            this.cgPoint14PvColumn.OptionsColumn.AllowSort = DevExpress.Utils.DefaultBoolean.False;
            this.cgPoint14PvColumn.OptionsColumn.FixedWidth = true;
            this.cgPoint14PvColumn.OptionsColumn.ImmediateUpdateRowPosition = DevExpress.Utils.DefaultBoolean.False;
            this.cgPoint14PvColumn.OptionsColumn.Printable = DevExpress.Utils.DefaultBoolean.False;
            this.cgPoint14PvColumn.OptionsFilter.AllowAutoFilter = false;
            this.cgPoint14PvColumn.OptionsFilter.AllowFilter = false;
            this.cgPoint14PvColumn.Visible = true;
            this.cgPoint14PvColumn.Width = 68;
            // 
            // cgPoint14SvColumn
            // 
            this.cgPoint14SvColumn.AppearanceCell.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.cgPoint14SvColumn.AppearanceCell.Options.UseFont = true;
            this.cgPoint14SvColumn.AppearanceHeader.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.cgPoint14SvColumn.AppearanceHeader.Options.UseFont = true;
            this.cgPoint14SvColumn.Caption = "SV";
            this.cgPoint14SvColumn.DisplayFormat.FormatString = "f3";
            this.cgPoint14SvColumn.DisplayFormat.FormatType = DevExpress.Utils.FormatType.Numeric;
            this.cgPoint14SvColumn.FieldName = "SV14";
            this.cgPoint14SvColumn.Name = "cgPoint14SvColumn";
            this.cgPoint14SvColumn.OptionsColumn.AllowIncrementalSearch = false;
            this.cgPoint14SvColumn.OptionsColumn.AllowMerge = DevExpress.Utils.DefaultBoolean.False;
            this.cgPoint14SvColumn.OptionsColumn.AllowMove = false;
            this.cgPoint14SvColumn.OptionsColumn.AllowShowHide = false;
            this.cgPoint14SvColumn.OptionsColumn.AllowSize = false;
            this.cgPoint14SvColumn.OptionsColumn.AllowSort = DevExpress.Utils.DefaultBoolean.False;
            this.cgPoint14SvColumn.OptionsColumn.FixedWidth = true;
            this.cgPoint14SvColumn.OptionsColumn.ImmediateUpdateRowPosition = DevExpress.Utils.DefaultBoolean.False;
            this.cgPoint14SvColumn.OptionsColumn.Printable = DevExpress.Utils.DefaultBoolean.False;
            this.cgPoint14SvColumn.OptionsFilter.AllowAutoFilter = false;
            this.cgPoint14SvColumn.OptionsFilter.AllowFilter = false;
            this.cgPoint14SvColumn.Visible = true;
            this.cgPoint14SvColumn.Width = 68;
            // 
            // cgPoint15Band
            // 
            this.cgPoint15Band.Caption = "#15";
            this.cgPoint15Band.Columns.Add(this.cgPoint15PvColumn);
            this.cgPoint15Band.Columns.Add(this.cgPoint15SvColumn);
            this.cgPoint15Band.Name = "cgPoint15Band";
            this.cgPoint15Band.OptionsBand.AllowHotTrack = false;
            this.cgPoint15Band.OptionsBand.AllowMove = false;
            this.cgPoint15Band.VisibleIndex = 16;
            this.cgPoint15Band.Width = 136;
            // 
            // cgPoint15PvColumn
            // 
            this.cgPoint15PvColumn.AppearanceCell.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.cgPoint15PvColumn.AppearanceCell.Options.UseFont = true;
            this.cgPoint15PvColumn.AppearanceHeader.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.cgPoint15PvColumn.AppearanceHeader.Options.UseFont = true;
            this.cgPoint15PvColumn.Caption = "PV";
            this.cgPoint15PvColumn.DisplayFormat.FormatString = "f3";
            this.cgPoint15PvColumn.DisplayFormat.FormatType = DevExpress.Utils.FormatType.Numeric;
            this.cgPoint15PvColumn.FieldName = "PV15";
            this.cgPoint15PvColumn.Name = "cgPoint15PvColumn";
            this.cgPoint15PvColumn.OptionsColumn.AllowIncrementalSearch = false;
            this.cgPoint15PvColumn.OptionsColumn.AllowMerge = DevExpress.Utils.DefaultBoolean.False;
            this.cgPoint15PvColumn.OptionsColumn.AllowMove = false;
            this.cgPoint15PvColumn.OptionsColumn.AllowShowHide = false;
            this.cgPoint15PvColumn.OptionsColumn.AllowSize = false;
            this.cgPoint15PvColumn.OptionsColumn.AllowSort = DevExpress.Utils.DefaultBoolean.False;
            this.cgPoint15PvColumn.OptionsColumn.FixedWidth = true;
            this.cgPoint15PvColumn.OptionsColumn.ImmediateUpdateRowPosition = DevExpress.Utils.DefaultBoolean.False;
            this.cgPoint15PvColumn.OptionsColumn.Printable = DevExpress.Utils.DefaultBoolean.False;
            this.cgPoint15PvColumn.OptionsFilter.AllowAutoFilter = false;
            this.cgPoint15PvColumn.OptionsFilter.AllowFilter = false;
            this.cgPoint15PvColumn.Visible = true;
            this.cgPoint15PvColumn.Width = 68;
            // 
            // cgPoint15SvColumn
            // 
            this.cgPoint15SvColumn.AppearanceCell.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.cgPoint15SvColumn.AppearanceCell.Options.UseFont = true;
            this.cgPoint15SvColumn.AppearanceHeader.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.cgPoint15SvColumn.AppearanceHeader.Options.UseFont = true;
            this.cgPoint15SvColumn.Caption = "SV";
            this.cgPoint15SvColumn.DisplayFormat.FormatString = "f3";
            this.cgPoint15SvColumn.DisplayFormat.FormatType = DevExpress.Utils.FormatType.Numeric;
            this.cgPoint15SvColumn.FieldName = "SV15";
            this.cgPoint15SvColumn.Name = "cgPoint15SvColumn";
            this.cgPoint15SvColumn.OptionsColumn.AllowIncrementalSearch = false;
            this.cgPoint15SvColumn.OptionsColumn.AllowMerge = DevExpress.Utils.DefaultBoolean.False;
            this.cgPoint15SvColumn.OptionsColumn.AllowMove = false;
            this.cgPoint15SvColumn.OptionsColumn.AllowShowHide = false;
            this.cgPoint15SvColumn.OptionsColumn.AllowSize = false;
            this.cgPoint15SvColumn.OptionsColumn.AllowSort = DevExpress.Utils.DefaultBoolean.False;
            this.cgPoint15SvColumn.OptionsColumn.FixedWidth = true;
            this.cgPoint15SvColumn.OptionsColumn.ImmediateUpdateRowPosition = DevExpress.Utils.DefaultBoolean.False;
            this.cgPoint15SvColumn.OptionsColumn.Printable = DevExpress.Utils.DefaultBoolean.False;
            this.cgPoint15SvColumn.OptionsFilter.AllowAutoFilter = false;
            this.cgPoint15SvColumn.OptionsFilter.AllowFilter = false;
            this.cgPoint15SvColumn.Visible = true;
            this.cgPoint15SvColumn.Width = 68;
            // 
            // cgPoint16Band
            // 
            this.cgPoint16Band.Caption = "#16";
            this.cgPoint16Band.Columns.Add(this.cgPoint16PvColumn);
            this.cgPoint16Band.Columns.Add(this.cgPoint16SvColumn);
            this.cgPoint16Band.Name = "cgPoint16Band";
            this.cgPoint16Band.OptionsBand.AllowHotTrack = false;
            this.cgPoint16Band.OptionsBand.AllowMove = false;
            this.cgPoint16Band.VisibleIndex = 17;
            this.cgPoint16Band.Width = 136;
            // 
            // cgPoint16PvColumn
            // 
            this.cgPoint16PvColumn.AppearanceCell.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.cgPoint16PvColumn.AppearanceCell.Options.UseFont = true;
            this.cgPoint16PvColumn.AppearanceHeader.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.cgPoint16PvColumn.AppearanceHeader.Options.UseFont = true;
            this.cgPoint16PvColumn.Caption = "PV";
            this.cgPoint16PvColumn.DisplayFormat.FormatString = "f3";
            this.cgPoint16PvColumn.DisplayFormat.FormatType = DevExpress.Utils.FormatType.Numeric;
            this.cgPoint16PvColumn.FieldName = "PV16";
            this.cgPoint16PvColumn.Name = "cgPoint16PvColumn";
            this.cgPoint16PvColumn.OptionsColumn.AllowIncrementalSearch = false;
            this.cgPoint16PvColumn.OptionsColumn.AllowMerge = DevExpress.Utils.DefaultBoolean.False;
            this.cgPoint16PvColumn.OptionsColumn.AllowMove = false;
            this.cgPoint16PvColumn.OptionsColumn.AllowShowHide = false;
            this.cgPoint16PvColumn.OptionsColumn.AllowSize = false;
            this.cgPoint16PvColumn.OptionsColumn.AllowSort = DevExpress.Utils.DefaultBoolean.False;
            this.cgPoint16PvColumn.OptionsColumn.FixedWidth = true;
            this.cgPoint16PvColumn.OptionsColumn.ImmediateUpdateRowPosition = DevExpress.Utils.DefaultBoolean.False;
            this.cgPoint16PvColumn.OptionsColumn.Printable = DevExpress.Utils.DefaultBoolean.False;
            this.cgPoint16PvColumn.OptionsFilter.AllowAutoFilter = false;
            this.cgPoint16PvColumn.OptionsFilter.AllowFilter = false;
            this.cgPoint16PvColumn.Visible = true;
            this.cgPoint16PvColumn.Width = 68;
            // 
            // cgPoint16SvColumn
            // 
            this.cgPoint16SvColumn.AppearanceCell.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.cgPoint16SvColumn.AppearanceCell.Options.UseFont = true;
            this.cgPoint16SvColumn.AppearanceHeader.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.cgPoint16SvColumn.AppearanceHeader.Options.UseFont = true;
            this.cgPoint16SvColumn.Caption = "SV";
            this.cgPoint16SvColumn.DisplayFormat.FormatString = "f3";
            this.cgPoint16SvColumn.DisplayFormat.FormatType = DevExpress.Utils.FormatType.Numeric;
            this.cgPoint16SvColumn.FieldName = "SV16";
            this.cgPoint16SvColumn.Name = "cgPoint16SvColumn";
            this.cgPoint16SvColumn.OptionsColumn.AllowIncrementalSearch = false;
            this.cgPoint16SvColumn.OptionsColumn.AllowMerge = DevExpress.Utils.DefaultBoolean.False;
            this.cgPoint16SvColumn.OptionsColumn.AllowMove = false;
            this.cgPoint16SvColumn.OptionsColumn.AllowShowHide = false;
            this.cgPoint16SvColumn.OptionsColumn.AllowSize = false;
            this.cgPoint16SvColumn.OptionsColumn.AllowSort = DevExpress.Utils.DefaultBoolean.False;
            this.cgPoint16SvColumn.OptionsColumn.FixedWidth = true;
            this.cgPoint16SvColumn.OptionsColumn.ImmediateUpdateRowPosition = DevExpress.Utils.DefaultBoolean.False;
            this.cgPoint16SvColumn.OptionsColumn.Printable = DevExpress.Utils.DefaultBoolean.False;
            this.cgPoint16SvColumn.OptionsFilter.AllowAutoFilter = false;
            this.cgPoint16SvColumn.OptionsFilter.AllowFilter = false;
            this.cgPoint16SvColumn.Visible = true;
            this.cgPoint16SvColumn.Width = 68;
            // 
            // imageList
            // 
            this.imageList.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imageList.ImageStream")));
            this.imageList.TransparentColor = System.Drawing.Color.Transparent;
            this.imageList.Images.SetKeyName(0, "Unchecked.png");
            this.imageList.Images.SetKeyName(1, "Checked.png");
            // 
            // CtrlCalibGrid
            // 
            this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            this.Name = "CtrlCalibGrid";
            this.Size = new System.Drawing.Size(984, 588);
            this.bgPanel.ResumeLayout(false);
            ((System.ComponentModel.ISupportInitialize)(this.channelGrid)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.channelGridView)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.behaviorManager1)).EndInit();
            this.ResumeLayout(false);

        }

        #endregion

        public DevExpress.XtraGrid.GridControl channelGrid;
        public DevExpress.XtraGrid.Views.BandedGrid.AdvBandedGridView channelGridView;
        private DevExpress.XtraGrid.Views.BandedGrid.BandedGridColumn cgNoColumn;
        private DevExpress.XtraGrid.Views.BandedGrid.BandedGridColumn cdNameColumn;
        private DevExpress.XtraGrid.Views.BandedGrid.BandedGridColumn cgRawValueColumn;
        private DevExpress.XtraGrid.Views.BandedGrid.BandedGridColumn cdRealValueColumn;
        private DevExpress.XtraGrid.Views.BandedGrid.BandedGridColumn cgPoint1PvColumn;
        private DevExpress.XtraGrid.Views.BandedGrid.BandedGridColumn cgPoint1SvColumn;
        private DevExpress.XtraGrid.Views.BandedGrid.BandedGridColumn cgPoint2PvColumn;
        private DevExpress.XtraGrid.Views.BandedGrid.BandedGridColumn cgPoint2SvColumn;
        private DevExpress.XtraGrid.Views.BandedGrid.BandedGridColumn cgPoint3PvColumn;
        private DevExpress.XtraGrid.Views.BandedGrid.BandedGridColumn cgPoint3SvColumn;
        private DevExpress.XtraGrid.Views.BandedGrid.BandedGridColumn cgPoint4PvColumn;
        private DevExpress.XtraGrid.Views.BandedGrid.BandedGridColumn cgPoint4SvColumn;
        private DevExpress.XtraGrid.Views.BandedGrid.BandedGridColumn cgPoint5PvColumn;
        private DevExpress.XtraGrid.Views.BandedGrid.BandedGridColumn cgPoint5SvColumn;
        private DevExpress.XtraGrid.Views.BandedGrid.BandedGridColumn cgPoint6PvColumn;
        private DevExpress.XtraGrid.Views.BandedGrid.BandedGridColumn cgPoint6SvColumn;
        private DevExpress.XtraGrid.Views.BandedGrid.BandedGridColumn cgPoint7PvColumn;
        private DevExpress.XtraGrid.Views.BandedGrid.BandedGridColumn cgPoint7SvColumn;
        private DevExpress.XtraGrid.Views.BandedGrid.BandedGridColumn cgPoint8PvColumn;
        private DevExpress.XtraGrid.Views.BandedGrid.BandedGridColumn cgPoint8SvColumn;
        private DevExpress.XtraGrid.Views.BandedGrid.BandedGridColumn cgPoint9PvColumn;
        private DevExpress.XtraGrid.Views.BandedGrid.BandedGridColumn cgPoint9SvColumn;
        private DevExpress.XtraGrid.Views.BandedGrid.BandedGridColumn cgPoint10PvColumn;
        private DevExpress.XtraGrid.Views.BandedGrid.BandedGridColumn cgPoint10SvColumn;
        private DevExpress.XtraGrid.Views.BandedGrid.BandedGridColumn cgPoint11PvColumn;
        private DevExpress.XtraGrid.Views.BandedGrid.BandedGridColumn cgPoint11SvColumn;
        private DevExpress.XtraGrid.Views.BandedGrid.BandedGridColumn cgPoint12PvColumn;
        private DevExpress.XtraGrid.Views.BandedGrid.BandedGridColumn cgPoint12SvColumn;
        private DevExpress.XtraGrid.Views.BandedGrid.BandedGridColumn cgPoint13PvColumn;
        private DevExpress.XtraGrid.Views.BandedGrid.BandedGridColumn cgPoint13SvColumn;
        private DevExpress.XtraGrid.Views.BandedGrid.BandedGridColumn cgPoint14PvColumn;
        private DevExpress.XtraGrid.Views.BandedGrid.BandedGridColumn cgPoint14SvColumn;
        private DevExpress.XtraGrid.Views.BandedGrid.BandedGridColumn cgPoint15PvColumn;
        private DevExpress.XtraGrid.Views.BandedGrid.BandedGridColumn cgPoint15SvColumn;
        private DevExpress.XtraGrid.Views.BandedGrid.BandedGridColumn cgPoint16PvColumn;
        private DevExpress.XtraGrid.Views.BandedGrid.BandedGridColumn cgPoint16SvColumn;
        private DevExpress.Utils.Behaviors.BehaviorManager behaviorManager1;
        private System.Windows.Forms.ImageList imageList;
        private DevExpress.XtraGrid.Views.BandedGrid.BandedGridColumn cgCheckedColumn;
        private DevExpress.XtraGrid.Views.BandedGrid.GridBand cgGeneralBand;
        private DevExpress.XtraGrid.Views.BandedGrid.GridBand cgMeasValueBand;
        private DevExpress.XtraGrid.Views.BandedGrid.GridBand cgPoint1Band;
        private DevExpress.XtraGrid.Views.BandedGrid.GridBand cgPoint2Band;
        private DevExpress.XtraGrid.Views.BandedGrid.GridBand cgPoint3Band;
        private DevExpress.XtraGrid.Views.BandedGrid.GridBand cgPoint4Band;
        private DevExpress.XtraGrid.Views.BandedGrid.GridBand cgPoint5Band;
        private DevExpress.XtraGrid.Views.BandedGrid.GridBand cgPoint6Band;
        private DevExpress.XtraGrid.Views.BandedGrid.GridBand cgPoint7Band;
        private DevExpress.XtraGrid.Views.BandedGrid.GridBand cgPoint8Band;
        private DevExpress.XtraGrid.Views.BandedGrid.GridBand cgPoint9Band;
        private DevExpress.XtraGrid.Views.BandedGrid.GridBand cgPoint10Band;
        private DevExpress.XtraGrid.Views.BandedGrid.GridBand cgPoint11Band;
        private DevExpress.XtraGrid.Views.BandedGrid.GridBand cgPoint12Band;
        private DevExpress.XtraGrid.Views.BandedGrid.GridBand cgPoint13Band;
        private DevExpress.XtraGrid.Views.BandedGrid.GridBand cgPoint14Band;
        private DevExpress.XtraGrid.Views.BandedGrid.GridBand cgPoint15Band;
        private DevExpress.XtraGrid.Views.BandedGrid.GridBand cgPoint16Band;
    }
}
<file_sep>﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

using DevExpress.Utils;
using DevExpress.Utils.DragDrop;
using DevExpress.XtraEditors;
using DevExpress.XtraGrid.Views.Base;
using DevExpress.XtraGrid.Views.Grid;
using DevExpress.XtraGrid.Views.Grid.ViewInfo;

using FirebirdSql.Data.FirebirdClient;

using Ulee.Controls;
using Ulee.Device.Connection.Yokogawa;
using Ulee.Utils;

namespace Hnc.Calorimeter.Client
{
    public partial class CtrlConfigCondition : UlUserControlEng
    {
        public CtrlConfigCondition()
        {
            Initialized = false;

            InitializeComponent();
            Initialize();

            Initialized = true;
        }

        private bool Initialized;

        private EDataSetMode mode;
        private GridBookmark bookmark;
        private CalorimeterConfigDatabase db;

        private List<MeasureRow> id1TCs;
        private List<MeasureRow> id2TCs;
        private List<MeasureRow> odTCs;
        private List<MeasureRow> presses;

        private List<TextEdit> noteEdits;
        private List<GridView> gridViews;

        private void Initialize()
        {
            Color evenColor = Color.FromArgb(244, 244, 236);

            db = Resource.ConfigDB;
            mode = EDataSetMode.View;
            bookmark = new GridBookmark(conditionGridView);

            int length = Resource.Tag.ThermoLength / 3;

            id1TCs = new List<MeasureRow>();
            id2TCs = new List<MeasureRow>();
            odTCs = new List<MeasureRow>();

            for (int i = 0; i < length; i++)
            {
                id1TCs.Add(new MeasureRow(null, "", "", i + 1));
                id2TCs.Add(new MeasureRow(null, "", "", i + length + 1));
                odTCs.Add(new MeasureRow(null, "", "", i + length * 2 + 1));
            }

            presses = new List<MeasureRow>();

            for (int i = 0; i < Resource.Tag.PressLength; i++)
            {
                presses.Add(new MeasureRow(null, "", "", i + 1));
            }

            thermo1Grid.DataSource = id1TCs;
            thermo1GridView.Appearance.EvenRow.BackColor = evenColor;
            thermo1GridView.OptionsView.EnableAppearanceEvenRow = true;

            thermo2Grid.DataSource = id2TCs;
            thermo2GridView.Appearance.EvenRow.BackColor = evenColor;
            thermo2GridView.OptionsView.EnableAppearanceEvenRow = true;

            thermo3Grid.DataSource = odTCs;
            thermo3GridView.Appearance.EvenRow.BackColor = evenColor;
            thermo3GridView.OptionsView.EnableAppearanceEvenRow = true;

            thermoTagGrid.DataSource = Resource.Tag.Thermos;
            thermoTagGridView.Appearance.EvenRow.BackColor = evenColor;
            thermoTagGridView.OptionsView.EnableAppearanceEvenRow = true;

            pressureGrid.DataSource = presses;
            pressureGridView.Appearance.EvenRow.BackColor = evenColor;
            pressureGridView.OptionsView.EnableAppearanceEvenRow = true;

            pressureTagGrid.DataSource = Resource.Tag.Presses;
            pressureTagGridView.Appearance.EvenRow.BackColor = evenColor;
            pressureTagGridView.OptionsView.EnableAppearanceEvenRow = true;

            methodCapaCoolingUnitCombo.DisplayMember = "Name";
            methodCapaCoolingUnitCombo.ValueMember = "Value";
            methodCapaCoolingUnitCombo.DataSource = EnumHelper.GetNameValues<EUnitCapacity>();

            methodCapaHeatingUnitCombo.DisplayMember = "Name";
            methodCapaHeatingUnitCombo.ValueMember = "Value";
            methodCapaHeatingUnitCombo.DataSource = EnumHelper.GetNameValues<EUnitCapacity>();

            foreach (TabPage page in ratedTab.TabPages)
            {
                EConditionRated index = (EConditionRated)int.Parse(page.Tag.ToString());
                CtrlTestRated ctrl = new CtrlTestRated(index, Resource.Variables.Graph);
                ctrl.CalcCapacity += DoCalcCapacity;
                ctrl.ChangedPowerMeter += DoChangedPowerMeter;
                page.Controls.Add(ctrl);
            }

            noteEdits = new List<TextEdit>();
            noteEdits.Add(noteCompanyEdit);
            noteEdits.Add(noteTestNameEdit);
            noteEdits.Add(noteTestNoEdit);
            noteEdits.Add(noteObserverEdit);
            noteEdits.Add(noteMakerEdit);
            noteEdits.Add(noteModel1Edit);
            noteEdits.Add(noteSerial1Edit);
            noteEdits.Add(noteModel2Edit);
            noteEdits.Add(noteSerial2Edit);
            noteEdits.Add(noteModel3Edit);
            noteEdits.Add(noteSerial3Edit);
            noteEdits.Add(noteExpDeviceEdit);
            noteEdits.Add(noteRefChargeEdit);
            noteEdits.Add(noteMemoEdit);

            gridViews = new List<GridView>();
            gridViews.Add(thermo1GridView);
            gridViews.Add(thermo2GridView);
            gridViews.Add(thermo3GridView);
            gridViews.Add(thermoTagGridView);
            gridViews.Add(pressureGridView);
            gridViews.Add(pressureTagGridView);

            SetPanelActive(true);
        }

        private void CtrlConfigCondition_Load(object sender, EventArgs e)
        {
            db.Lock();

            try
            {
                NoteParamDataSet set = db.NoteParamSet;

                set.Select();
                conditionGrid.DataSource = set.DataSet.Tables[0];
                conditionGridView.Appearance.EvenRow.BackColor = Color.FromArgb(244, 244, 236);
                conditionGridView.OptionsView.EnableAppearanceEvenRow = true;
            }
            finally
            {
                db.Unlock();
            }

            SetDataSetMode(EDataSetMode.View);
        }

        private void CtrlConfigCondition_Enter(object sender, EventArgs e)
        {
            db.Lock();

            try
            {
                NoteParamDataSet set = db.NoteParamSet;
                set.Select();
            }
            finally
            {
                db.Unlock();
            }
        }

        public void CtrlConfigCondition_KeyPress(object sender, KeyPressEventArgs e)
        {
            if (e.KeyChar == (char)Keys.Escape)
            {
                if (cancelButton.Enabled == true)
                {
                    cancelButton_Click(null, null);
                }
            }
        }

        private void searchButton_Click(object sender, EventArgs e)
        {
            if (mode != EDataSetMode.View) return;

            db.Lock();

            try
            {
                NoteParamDataSet set = db.NoteParamSet;
                bookmark.Get();

                if (string.IsNullOrWhiteSpace(makerEdit.Text) == true)
                    set.Select();
                else
                    set.Select(makerEdit.Text.Trim());
            }
            finally
            {
                db.Unlock();
            }

            bookmark.Goto();
            conditionGrid.Focus();
        }

        private void newButton_Click(object sender, EventArgs e)
        {
            if (mode != EDataSetMode.View) return;

            SetDataSetMode(EDataSetMode.New);
            ResetEdit();
            noteCompanyEdit.Focus();
        }

        private void modifyButton_Click(object sender, EventArgs e)
        {
            if (mode != EDataSetMode.View) return;
            if (conditionGridView.FocusedRowHandle < 0) return;

            SetDataSetMode(EDataSetMode.Modify);

            db.Lock();

            try
            {
                SetEditFromDataSet();
            }
            finally
            {
                db.Unlock();
            }

            noteCompanyEdit.Focus();
        }

        private void copyButton_Click(object sender, EventArgs e)
        {
            if (mode != EDataSetMode.View) return;
            if (conditionGridView.FocusedRowHandle < 0) return;

            if (MessageBox.Show("Would you like to copy a record focused?",
                Resource.Caption, MessageBoxButtons.YesNo, MessageBoxIcon.Question)
                == DialogResult.No)
            {
                return;
            }

            noteCompanyEdit.Focus();

            db.Lock();

            try
            {
                InsertNote();
            }
            finally
            {
                db.Unlock();
            }

            searchButton.PerformClick();
        }

        private void deleteButton_Click(object sender, EventArgs e)
        {
            if (mode != EDataSetMode.View) return;
            if (conditionGridView.FocusedRowHandle < 0) return;

            if (MessageBox.Show("Would you like to delete a record focused?",
                Resource.Caption, MessageBoxButtons.YesNo, MessageBoxIcon.Question)
                == DialogResult.No)
            {
                return;
            }

            db.Lock();

            try
            {
                db.DeleteNoteParam();
            }
            finally
            {
                db.Unlock();
            }

            searchButton.PerformClick();
        }

        private void saveButton_Click(object sender, EventArgs e)
        {
            string maker = noteMakerEdit.Text.Trim();
            string model = noteModel1Edit.Text.Trim();
            string serial = noteSerial1Edit.Text.Trim();

            if ((maker == "") || (model == "") || (serial == ""))
            {
                MessageBox.Show("You must fill Maker, Model(1) and Serial(1) fields!",
                    Resource.Caption, MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
                noteMakerEdit.Focus();
                return;
            }

            noteCompanyEdit.Focus();

            db.Lock();

            try
            {
                if (mode == EDataSetMode.New)
                    InsertNote();
                else
                    UpdateNote();
            }
            finally
            {
                db.Unlock();
            }

            SetDataSetMode(EDataSetMode.View);
            searchButton.PerformClick();
        }

        private void cancelButton_Click(object sender, EventArgs e)
        {
            SetDataSetMode(EDataSetMode.View);
            searchButton.PerformClick();
        }

        private void conditionGrid_DoubleClick(object sender, EventArgs e)
        {
            if (mode != EDataSetMode.View) return;

            modifyButton.PerformClick();
        }

        private void conditionGridView_FocusedRowChanged(object sender, FocusedRowChangedEventArgs e)
        {
            if (e.FocusedRowHandle < 0) return;
            if (mode != EDataSetMode.View) return;

            db.Lock();

            try
            {
                NoteParamDataSet set = db.NoteParamSet;
                DataRow row = conditionGridView.GetDataRow(e.FocusedRowHandle);

                set.Fetch(row);
                SetEditFromDataSet();
            }
            finally
            {
                db.Unlock();
            }
        }

        private void methodCapaCoolingUnitCombo_SelectedValueChanged(object sender, EventArgs e)
        {
            if (Initialized == false) return;

            int nUnit = (int)methodCapaCoolingUnitCombo.SelectedValue;
            string sUnit = methodCapaCoolingUnitCombo.Text;

            SetRatedConditionCoolingUnit(ETestRatedField.Capacity, sUnit);
            SetRatedConditionCoolingUnit(ETestRatedField.EER_COP, EnumHelper.GetNames<EUnitEER_COP>()[nUnit]);
        }

        private void methodCapaHeatingUnitCombo_SelectedValueChanged(object sender, EventArgs e)
        {
            if (Initialized == false) return;

            int nUnit = (int)methodCapaHeatingUnitCombo.SelectedValue;
            string sUnit = methodCapaHeatingUnitCombo.Text;

            SetRatedConditionHeatingUnit(ETestRatedField.Capacity, sUnit);
            SetRatedConditionHeatingUnit(ETestRatedField.EER_COP, EnumHelper.GetNames<EUnitEER_COP>()[nUnit]);
        }

        private void thermoTagGridView_CustomDrawColumnHeader(object sender, ColumnHeaderCustomDrawEventArgs e)
        {
            if (e.Column == null) return;

            if (e.Column.AppearanceHeader.BackColor != Color.Empty)
            {
                e.Info.AllowColoring = true;
            }
        }

        #region Grid drag and drop events
        private void thermo1GriddragDropEvents_DragDrop(object sender, DragDropEventArgs e)
        {
            if (mode == EDataSetMode.View) return;

            int sourceRow = ((int[])e.Data)[0];

            GridView sourceView = e.Source as GridView;
            GridView targetView = e.Target as GridView;

            GridHitInfo hit = targetView.CalcHitInfo(
                targetView.GridControl.PointToClient(new Point(e.Location.X, e.Location.Y)));

            if (hit.InRowCell == true)
            {
                if (sourceView.Name == thermoTagGridView.Name)
                {
                    targetView.SetRowCellValue(hit.RowHandle, targetView.Columns["Value"],
                        sourceView.GetRowCellValue(sourceRow, sourceView.Columns["Value"]).ToString());
                }
            }

            e.Handled = true;
        }

        private void thermo1GriddragDropEvents_DragOver(object sender, DragOverEventArgs e)
        {
            if (mode == EDataSetMode.View) return;

            GridView sourceView = e.Source as GridView;

            if (sourceView.Name == thermoTagGridView.Name)
            {
                DragOverGridEventArgs args = DragOverGridEventArgs.GetDragOverGridEventArgs(e);
                e.Cursor = DragAndDropCursors.CopyEffectCursor;
                args.Handled = true;
            }
        }

        private void thermo2GridDragDropEvents_DragDrop(object sender, DragDropEventArgs e)
        {
            thermo1GriddragDropEvents_DragDrop(sender, e);
        }

        private void thermo2GridDragDropEvents_DragOver(object sender, DragOverEventArgs e)
        {
            thermo1GriddragDropEvents_DragOver(sender, e);
        }

        private void thermo3GridDragDropEvents_DragDrop(object sender, DragDropEventArgs e)
        {
            thermo1GriddragDropEvents_DragDrop(sender, e);
        }

        private void thermo3GridDragDropEvents_DragOver(object sender, DragOverEventArgs e)
        {
            thermo1GriddragDropEvents_DragOver(sender, e);
        }

        private void pressureGridDragDropEvents_DragDrop(object sender, DragDropEventArgs e)
        {
            if (mode == EDataSetMode.View) return;

            int sourceRow = ((int[])e.Data)[0];

            GridView sourceView = e.Source as GridView;
            GridView targetView = e.Target as GridView;

            GridHitInfo hit = targetView.CalcHitInfo(
                targetView.GridControl.PointToClient(new Point(e.Location.X, e.Location.Y)));

            if (hit.InRowCell == true)
            {
                if (sourceView.Name == pressureTagGridView.Name)
                {
                    targetView.SetRowCellValue(hit.RowHandle, targetView.Columns["Value"],
                        sourceView.GetRowCellValue(sourceRow, sourceView.Columns["Value"]).ToString());
                }
            }

            e.Handled = true;
        }

        private void pressureGridDragDropEvents_DragOver(object sender, DragOverEventArgs e)
        {
            if (mode == EDataSetMode.View) return;

            GridView sourceView = e.Source as GridView;

            if (sourceView.Name == pressureTagGridView.Name)
            {
                DragOverGridEventArgs args = DragOverGridEventArgs.GetDragOverGridEventArgs(e);
                e.Cursor = DragAndDropCursors.CopyEffectCursor;
                args.Handled = true;
            }
        }
        #endregion


        private void DoCalcCapacity(object sender, EventArgs e)
        {
            if (((CtrlTestRated)sender).Index == EConditionRated.Total) return;

            RecalcTotalRatedCondition();
        }

        private void DoChangedPowerMeter(object sender, EventArgs e)
        {
            CtrlTestRated ctrl = null;
            RatedPowerMeterArgs args = e as RatedPowerMeterArgs;

            switch (args.Index)
            {
                case EConditionRated.ID11:
                    ctrl = ratedTab.TabPages[(int)EConditionRated.ID12].Controls[0] as CtrlTestRated;
                    break;

                case EConditionRated.ID12:
                    ctrl = ratedTab.TabPages[(int)EConditionRated.ID11].Controls[0] as CtrlTestRated;
                    break;

                case EConditionRated.ID21:
                    ctrl = ratedTab.TabPages[(int)EConditionRated.ID22].Controls[0] as CtrlTestRated;
                    break;

                case EConditionRated.ID22:
                    ctrl = ratedTab.TabPages[(int)EConditionRated.ID21].Controls[0] as CtrlTestRated;
                    break;
            }

            if (ctrl == null) return;

            if (args.Field == ETestRatedField.PM_IDU)
            {
                ctrl.SetIduComboSelectedIndexWithoutEvent(0, args.PowerMeterNo);
                ctrl.SetIduComboSelectedIndexWithoutEvent(1, args.PowerMeterNo);
            }
            else
            {
                ctrl.SetOduComboSelectedIndexWithoutEvent(0, args.PowerMeterNo);
                ctrl.SetOduComboSelectedIndexWithoutEvent(1, args.PowerMeterNo);
            }
        }

        private void RecalcTotalRatedCondition()
        {
            CtrlTestRated totalCtrl = (CtrlTestRated)ratedTab.TabPages[(int)EConditionRated.Total].Controls[0];

            double coolingCapacity = 0;
            double coolingPower = 0;
            double heatingCapacity = 0;
            double heatingPower = 0;

            foreach (TabPage page in ratedTab.TabPages)
            {
                EConditionRated index = (EConditionRated)int.Parse(page.Tag.ToString());

                if (index != EConditionRated.Total)
                {
                    CtrlTestRated ctrl = (CtrlTestRated)page.Controls[0];

                    coolingCapacity += double.Parse(ctrl.coolingCapacityEdit.Text);
                    coolingPower += double.Parse(ctrl.coolingPowerInEdit.Text);

                    heatingCapacity += double.Parse(ctrl.heatingCapacityEdit.Text);
                    heatingPower += double.Parse(ctrl.heatingPowerInEdit.Text);
                }
            }

            totalCtrl.coolingCapacityEdit.EditValue = coolingCapacity;
            totalCtrl.coolingPowerInEdit.EditValue = coolingPower;

            totalCtrl.heatingCapacityEdit.EditValue = heatingCapacity;
            totalCtrl.heatingPowerInEdit.EditValue = heatingPower;

            if (coolingPower == 0.0)
                totalCtrl.coolingEepEdit.EditValue = 0.0;
            else
                totalCtrl.coolingEepEdit.EditValue = coolingCapacity / coolingPower;

            if (heatingPower == 0.0)
                totalCtrl.heatingEepEdit.EditValue = 0.0;
            else
                totalCtrl.heatingEepEdit.EditValue = heatingCapacity / heatingPower;
        }


        private void SetRatedConditionCoolingUnit(ETestRatedField index, string unit)
        {
            foreach (TabPage page in ratedTab.TabPages)
            {
                CtrlTestRated ctrl = (CtrlTestRated)page.Controls[0];
                ctrl.SetCoolingUnit(index, unit);
            }
        }

        private void SetRatedConditionHeatingUnit(ETestRatedField index, string unit)
        {
            foreach (TabPage page in ratedTab.TabPages)
            {
                CtrlTestRated ctrl = (CtrlTestRated)page.Controls[0];
                ctrl.SetHeatingUnit(index, unit);
            }
        }

        private void SetDataSetMode(EDataSetMode mode)
        {
            this.mode = mode;
            string strMode = mode.ToString().ToUpper();

            noteTitlePanel.Text = $"NOTE({strMode})";
            thermoTitlePanel.Text = $"THERMOCOUPLE({strMode})";
            pressureTitlePanel.Text = $"PRESSURE({strMode})";
            ratedTitlePanel.Text = $"RATED CONDITION({strMode})";

            switch (mode)
            {
                case EDataSetMode.View:
                    saveButton.Enabled = false;
                    cancelButton.Enabled = false;
                    noteTitlePanel.BackColor = Color.Gray;
                    thermoTitlePanel.BackColor = Color.Gray;
                    pressureTitlePanel.BackColor = Color.Gray;
                    ratedTitlePanel.BackColor = Color.Gray;
                    SetEditReadOnly(true);
                    break;

                case EDataSetMode.New:
                    saveButton.Enabled = true;
                    cancelButton.Enabled = true;
                    noteTitlePanel.BackColor = Color.DeepSkyBlue;
                    thermoTitlePanel.BackColor = Color.DeepSkyBlue;
                    pressureTitlePanel.BackColor = Color.DeepSkyBlue;
                    ratedTitlePanel.BackColor = Color.DeepSkyBlue;
                    SetEditReadOnly(false);
                    break;

                case EDataSetMode.Modify:
                    saveButton.Enabled = true;
                    cancelButton.Enabled = true;
                    noteTitlePanel.BackColor = Color.DeepSkyBlue;
                    thermoTitlePanel.BackColor = Color.DeepSkyBlue;
                    pressureTitlePanel.BackColor = Color.DeepSkyBlue;
                    ratedTitlePanel.BackColor = Color.DeepSkyBlue;
                    SetEditReadOnly(false);
                    break;
            }
        }

        private void SetPanelActive(bool active)
        {
            Color bkColor = (active == true) ? Color.DeepSkyBlue : Color.Gray;

            noteTitlePanel.BackColor = bkColor;
            thermoTitlePanel.BackColor = bkColor;
            pressureTitlePanel.BackColor = bkColor;
            ratedTitlePanel.BackColor = bkColor;
        }

        private void SetEditReadOnly(bool active)
        {
            searchPanel.Enabled = active;
            methodCapaCoolingUnitCombo.Enabled = !active;
            methodCapaHeatingUnitCombo.Enabled = !active;

            noteRefrigerantCombo.Properties.ReadOnly = active;

            foreach (TextEdit edit in noteEdits)
            {
                edit.Properties.ReadOnly = active;
                edit.EnterMoveNextControl = true;
            }

            foreach (GridView gridView in gridViews)
            {
                gridView.OptionsBehavior.ReadOnly = active;
            }

            foreach (TabPage page in ratedTab.TabPages)
            {
                (page.Controls[0] as CtrlTestRated).ReadOnly = active;
            }
        }

        private void SetEditData(EDataSetMode mode)
        {
            switch (mode)
            {
                case EDataSetMode.View:
                case EDataSetMode.Modify:
                    SetEditFromDataSet();
                    break;

                case EDataSetMode.New:
                    ResetEdit();
                    break;
            }
        }

        private void SetEditFromDataSet()
        {
            NoteParamDataSet set = db.NoteParamSet;

            noteCompanyEdit.Text = set.Company;
            noteTestNameEdit.Text = set.TestName;
            noteTestNoEdit.Text = set.TestNo;
            noteObserverEdit.Text = set.Observer;
            noteMakerEdit.Text = set.Maker;
            noteModel1Edit.Text = set.Model1;
            noteSerial1Edit.Text = set.Serial1;
            noteModel2Edit.Text = set.Model2;
            noteSerial2Edit.Text = set.Serial2;
            noteModel3Edit.Text = set.Model3;
            noteSerial3Edit.Text = set.Serial3;
            noteExpDeviceEdit.Text = set.ExpDevice;
            noteRefrigerantCombo.Text = set.Refrig;
            noteRefChargeEdit.Text = set.RefCharge;
            noteMemoEdit.Text = set.Memo;

            foreach (TabPage page in ratedTab.TabPages)
            {
                CtrlTestRated ctrl = page.Controls[0] as CtrlTestRated;

                RatedParamDataSet ratedSet = db.RatedParamSet;
                ratedSet.Select(set.RecNo, ctrl.Index);

                if (ratedSet.GetRowCount() == 2)
                {
                    ratedSet.Fetch(0);
                    ctrl.CoolingRecNo = ratedSet.RecNo;
                    ctrl.coolingCapacityEdit.EditValue = ratedSet.Capacity;
                    ctrl.coolingPowerInEdit.EditValue = ratedSet.Power;
                    ctrl.coolingEepEdit.EditValue = ratedSet.EER_COP;
                    ctrl.coolingVoltEdit.EditValue = ratedSet.Volt;
                    ctrl.coolingCurrentEdit.EditValue = ratedSet.Amp;
                    ctrl.coolingFreqCombo.Text = ratedSet.Freq;
                    ctrl.coolingPowerMeter1Combo.SelectedIndex = ratedSet.PM_IDU;
                    ctrl.coolingPowerMeter2Combo.SelectedIndex = ratedSet.PM_ODU;
                    ctrl.coolingPhaseCombo.SelectedValue = ratedSet.Phase;

                    ratedSet.Fetch(1);
                    ctrl.HeatingRecNo = ratedSet.RecNo;
                    ctrl.heatingCapacityEdit.EditValue = ratedSet.Capacity;
                    ctrl.heatingPowerInEdit.EditValue = ratedSet.Power;
                    ctrl.heatingEepEdit.EditValue = ratedSet.EER_COP;
                    ctrl.heatingVoltEdit.EditValue = ratedSet.Volt;
                    ctrl.heatingCurrentEdit.EditValue = ratedSet.Amp;
                    ctrl.heatingFreqCombo.Text = ratedSet.Freq;
                    ctrl.heatingPowerMeter1Combo.SelectedIndex = ratedSet.PM_IDU;
                    ctrl.heatingPowerMeter2Combo.SelectedIndex = ratedSet.PM_ODU;
                    ctrl.heatingPhaseCombo.SelectedValue = ratedSet.Phase;
                }
            }

            methodCapaCoolingUnitCombo.SelectedValue = set.CoolUnit;
            methodCapaHeatingUnitCombo.SelectedValue = set.HeatUnit;

            ThermoPressParamDataSet thermoPressSet = db.ThermoPressParamSet;

            thermoPressSet.Select(set.RecNo, 0);
            if (id1TCs.Count == thermoPressSet.GetRowCount())
            {
                for (int i = 0; i < thermoPressSet.GetRowCount(); i++)
                {
                    thermoPressSet.Fetch(i);
                    id1TCs[i].RecNo = thermoPressSet.RecNo;
                    id1TCs[i].Value = thermoPressSet.Name;
                }
            }

            thermoPressSet.Select(set.RecNo, 1);
            if (id2TCs.Count == thermoPressSet.GetRowCount())
            {
                for (int i = 0; i < thermoPressSet.GetRowCount(); i++)
                {
                    thermoPressSet.Fetch(i);
                    id2TCs[i].RecNo = thermoPressSet.RecNo;
                    id2TCs[i].Value = thermoPressSet.Name;
                }
            }

            thermoPressSet.Select(set.RecNo, 2);
            if (odTCs.Count == thermoPressSet.GetRowCount())
            {
                for (int i = 0; i < thermoPressSet.GetRowCount(); i++)
                {
                    thermoPressSet.Fetch(i);
                    odTCs[i].RecNo = thermoPressSet.RecNo;
                    odTCs[i].Value = thermoPressSet.Name;
                }
            }

            thermoPressSet.Select(set.RecNo, 3);
            if (presses.Count == thermoPressSet.GetRowCount())
            {
                for (int i = 0; i < thermoPressSet.GetRowCount(); i++)
                {
                    thermoPressSet.Fetch(i);
                    presses[i].RecNo = thermoPressSet.RecNo;
                    presses[i].Value = thermoPressSet.Name;
                }
            }

            foreach (GridView gridView in gridViews)
            {
                gridView.RefreshData();
            }
        }

        private void InsertNote()
        {
            FbTransaction trans = db.BeginTrans();

            try
            {
                NoteParamDataSet noteSet = db.NoteParamSet;
                noteSet.RecNo = (int)db.GetGenNo("GN_CONDITION_NOTEPARAM");
                noteSet.ParamNo = -1;
                noteSet.Company = noteCompanyEdit.Text;
                noteSet.TestName = noteTestNameEdit.Text;
                noteSet.TestNo = noteTestNoEdit.Text;
                noteSet.Observer = noteObserverEdit.Text;
                noteSet.Maker = noteMakerEdit.Text;
                noteSet.Model1 = noteModel1Edit.Text;
                noteSet.Serial1 = noteSerial1Edit.Text;
                noteSet.Model2 = noteModel2Edit.Text;
                noteSet.Serial2 = noteSerial2Edit.Text;
                noteSet.Model3 = noteModel3Edit.Text;
                noteSet.Serial3 = noteSerial3Edit.Text;
                noteSet.ExpDevice = noteExpDeviceEdit.Text;
                noteSet.Refrig = noteRefrigerantCombo.Text;
                noteSet.RefCharge = noteRefChargeEdit.Text;
                noteSet.Memo = noteMemoEdit.Text;
                noteSet.CoolUnit = (EUnitCapacity)methodCapaCoolingUnitCombo.SelectedValue;
                noteSet.HeatUnit = (EUnitCapacity)methodCapaHeatingUnitCombo.SelectedValue;
                noteSet.Insert(trans);

                RatedParamDataSet ratedSet = db.RatedParamSet;
                foreach (TabPage page in ratedTab.TabPages)
                {
                    CtrlTestRated ctrl = page.Controls[0] as CtrlTestRated;

                    ratedSet.RecNo = (int)db.GetGenNo("GN_CONDITION_RATEDPARAM");
                    ratedSet.NoteNo = noteSet.RecNo;
                    ratedSet.PageNo = ctrl.Index;
                    ratedSet.Mode = ETestMode.Cooling;
                    ratedSet.Capacity = float.Parse(ctrl.coolingCapacityEdit.Text);
                    ratedSet.Power = float.Parse(ctrl.coolingPowerInEdit.Text);
                    ratedSet.EER_COP = float.Parse(ctrl.coolingEepEdit.Text);
                    ratedSet.Volt = float.Parse(ctrl.coolingVoltEdit.Text);
                    ratedSet.Amp = float.Parse(ctrl.coolingCurrentEdit.Text);
                    ratedSet.Freq = ctrl.coolingFreqCombo.Text;
                    ratedSet.PM_IDU = ctrl.coolingPowerMeter1Combo.SelectedIndex;
                    ratedSet.PM_ODU = ctrl.coolingPowerMeter2Combo.SelectedIndex;
                    ratedSet.Phase = (EWT330Wiring)ctrl.coolingPhaseCombo.SelectedValue;
                    ratedSet.Insert(trans);

                    ratedSet.RecNo = (int)db.GetGenNo("GN_CONDITION_RATEDPARAM");
                    ratedSet.NoteNo = noteSet.RecNo;
                    ratedSet.PageNo = ctrl.Index;
                    ratedSet.Mode = ETestMode.Heating;
                    ratedSet.Capacity = float.Parse(ctrl.heatingCapacityEdit.Text);
                    ratedSet.Power = float.Parse(ctrl.heatingPowerInEdit.Text);
                    ratedSet.EER_COP = float.Parse(ctrl.heatingEepEdit.Text);
                    ratedSet.Volt = float.Parse(ctrl.heatingVoltEdit.Text);
                    ratedSet.Amp = float.Parse(ctrl.heatingCurrentEdit.Text);
                    ratedSet.Freq = ctrl.heatingFreqCombo.Text;
                    ratedSet.PM_IDU = ctrl.heatingPowerMeter1Combo.SelectedIndex;
                    ratedSet.PM_ODU = ctrl.heatingPowerMeter2Combo.SelectedIndex;
                    ratedSet.Phase = (EWT330Wiring)ctrl.heatingPhaseCombo.SelectedValue;
                    ratedSet.Insert(trans);
                }

                ThermoPressParamDataSet tcSet = db.ThermoPressParamSet;
                foreach (MeasureRow row in id1TCs)
                {
                    tcSet.RecNo = (int)db.GetGenNo("GN_CONDITION_THERMOPRESSPARAM");
                    tcSet.NoteNo = noteSet.RecNo;
                    tcSet.ChType = 0;
                    tcSet.ChNo = row.No;
                    tcSet.Name = row.Value;
                    tcSet.Insert(trans);
                }

                foreach (MeasureRow row in id2TCs)
                {
                    tcSet.RecNo = (int)db.GetGenNo("GN_CONDITION_THERMOPRESSPARAM");
                    tcSet.NoteNo = noteSet.RecNo;
                    tcSet.ChType = 1;
                    tcSet.ChNo = row.No;
                    tcSet.Name = row.Value;
                    tcSet.Insert(trans);
                }

                foreach (MeasureRow row in odTCs)
                {
                    tcSet.RecNo = (int)db.GetGenNo("GN_CONDITION_THERMOPRESSPARAM");
                    tcSet.NoteNo = noteSet.RecNo;
                    tcSet.ChType = 2;
                    tcSet.ChNo = row.No;
                    tcSet.Name = row.Value;
                    tcSet.Insert(trans);
                }

                foreach (MeasureRow row in presses)
                {
                    tcSet.RecNo = (int)db.GetGenNo("GN_CONDITION_THERMOPRESSPARAM");
                    tcSet.NoteNo = noteSet.RecNo;
                    tcSet.ChType = 3;
                    tcSet.ChNo = row.No;
                    tcSet.Name = row.Value;
                    tcSet.Insert(trans);
                }

                db.CommitTrans();
            }
            catch (Exception e)
            {
                Resource.TLog.Log((int)ELogItem.Exception, e.ToString());
                db.RollbackTrans();
            }
        }

        private void UpdateNote()
        {
            FbTransaction trans = db.BeginTrans();

            try
            {
                NoteParamDataSet noteSet = db.NoteParamSet;
                noteSet.Company = noteCompanyEdit.Text;
                noteSet.TestName = noteTestNameEdit.Text;
                noteSet.TestNo = noteTestNoEdit.Text;
                noteSet.Observer = noteObserverEdit.Text;
                noteSet.Maker = noteMakerEdit.Text;
                noteSet.Model1 = noteModel1Edit.Text;
                noteSet.Serial1 = noteSerial1Edit.Text;
                noteSet.Model2 = noteModel2Edit.Text;
                noteSet.Serial2 = noteSerial2Edit.Text;
                noteSet.Model3 = noteModel3Edit.Text;
                noteSet.Serial3 = noteSerial3Edit.Text;
                noteSet.ExpDevice = noteExpDeviceEdit.Text;
                noteSet.Refrig = noteRefrigerantCombo.Text;
                noteSet.RefCharge = noteRefChargeEdit.Text;
                noteSet.Memo = noteMemoEdit.Text;
                noteSet.CoolUnit = (EUnitCapacity)methodCapaCoolingUnitCombo.SelectedValue;
                noteSet.HeatUnit = (EUnitCapacity)methodCapaHeatingUnitCombo.SelectedValue;
                noteSet.Update(trans);

                RatedParamDataSet ratedSet = db.RatedParamSet;
                foreach (TabPage page in ratedTab.TabPages)
                {
                    CtrlTestRated ctrl = page.Controls[0] as CtrlTestRated;

                    ratedSet.RecNo = ctrl.CoolingRecNo;
                    ratedSet.Capacity = float.Parse(ctrl.coolingCapacityEdit.Text);
                    ratedSet.Power = float.Parse(ctrl.coolingPowerInEdit.Text);
                    ratedSet.EER_COP = float.Parse(ctrl.coolingEepEdit.Text);
                    ratedSet.Volt = float.Parse(ctrl.coolingVoltEdit.Text);
                    ratedSet.Amp = float.Parse(ctrl.coolingCurrentEdit.Text);
                    ratedSet.Freq = ctrl.coolingFreqCombo.Text;
                    ratedSet.PM_IDU = ctrl.coolingPowerMeter1Combo.SelectedIndex;
                    ratedSet.PM_ODU = ctrl.coolingPowerMeter2Combo.SelectedIndex;
                    ratedSet.Phase = (EWT330Wiring)ctrl.coolingPhaseCombo.SelectedValue;
                    ratedSet.Update(trans);

                    ratedSet.RecNo = ctrl.HeatingRecNo;
                    ratedSet.Capacity = float.Parse(ctrl.heatingCapacityEdit.Text);
                    ratedSet.Power = float.Parse(ctrl.heatingPowerInEdit.Text);
                    ratedSet.EER_COP = float.Parse(ctrl.heatingEepEdit.Text);
                    ratedSet.Volt = float.Parse(ctrl.heatingVoltEdit.Text);
                    ratedSet.Amp = float.Parse(ctrl.heatingCurrentEdit.Text);
                    ratedSet.Freq = ctrl.heatingFreqCombo.Text;
                    ratedSet.PM_IDU = ctrl.heatingPowerMeter1Combo.SelectedIndex;
                    ratedSet.PM_ODU = ctrl.heatingPowerMeter2Combo.SelectedIndex;
                    ratedSet.Phase = (EWT330Wiring)ctrl.heatingPhaseCombo.SelectedValue;
                    ratedSet.Update(trans);
                }

                ThermoPressParamDataSet tcSet = db.ThermoPressParamSet;
                foreach (MeasureRow row in id1TCs)
                {
                    tcSet.RecNo = row.RecNo;
                    tcSet.Name = row.Value;
                    tcSet.Update(trans);
                }

                foreach (MeasureRow row in id2TCs)
                {
                    tcSet.RecNo = row.RecNo;
                    tcSet.Name = row.Value;
                    tcSet.Update(trans);
                }

                foreach (MeasureRow row in odTCs)
                {
                    tcSet.RecNo = row.RecNo;
                    tcSet.Name = row.Value;
                    tcSet.Update(trans);
                }

                foreach (MeasureRow row in presses)
                {
                    tcSet.RecNo = row.RecNo;
                    tcSet.Name = row.Value;
                    tcSet.Update(trans);
                }

                db.CommitTrans();
            }
            catch (Exception e)
            {
                Resource.TLog.Log((int)ELogItem.Exception, e.ToString());
                db.RollbackTrans();
            }
        }

        private void ResetEdit()
        {
            noteCompanyEdit.Text = "";
            noteTestNameEdit.Text = "";
            noteTestNoEdit.Text = "";
            noteObserverEdit.Text = "";
            noteMakerEdit.Text = "";
            noteModel1Edit.Text = "";
            noteSerial1Edit.Text = "";
            noteModel2Edit.Text = "";
            noteSerial2Edit.Text = "";
            noteModel3Edit.Text = "";
            noteSerial3Edit.Text = "";
            noteExpDeviceEdit.Text = "";
            noteRefrigerantCombo.SelectedIndex = 0;
            noteRefChargeEdit.Text = "";
            noteMemoEdit.Text = "";

            methodCapaCoolingUnitCombo.SelectedValue = EUnitCapacity.kcal;
            methodCapaHeatingUnitCombo.SelectedValue = EUnitCapacity.Btu;

            foreach (TabPage page in ratedTab.TabPages)
            {
                CtrlTestRated ctrl = page.Controls[0] as CtrlTestRated;

                ctrl.coolingCapacityEdit.EditValue = 0;
                ctrl.coolingPowerInEdit.EditValue = 0;
                ctrl.coolingEepEdit.EditValue = 0;
                ctrl.coolingVoltEdit.EditValue = 0;
                ctrl.coolingCurrentEdit.EditValue = 0;
                ctrl.coolingFreqCombo.Text = "";
                ctrl.coolingPowerMeter1Combo.SelectedIndex = 0;
                ctrl.coolingPowerMeter2Combo.SelectedIndex = 0;
                ctrl.coolingPhaseCombo.SelectedValue = EWT330Wiring.P3W4;

                ctrl.heatingCapacityEdit.EditValue = 0;
                ctrl.heatingPowerInEdit.EditValue = 0;
                ctrl.heatingEepEdit.EditValue = 0;
                ctrl.heatingVoltEdit.EditValue = 0;
                ctrl.heatingCurrentEdit.EditValue = 0;
                ctrl.heatingFreqCombo.Text = "";
                ctrl.heatingPowerMeter1Combo.SelectedIndex = 0;
                ctrl.heatingPowerMeter2Combo.SelectedIndex = 0;
                ctrl.heatingPhaseCombo.SelectedValue = EWT330Wiring.P3W4;
            }

            foreach (MeasureRow row in id1TCs)
            {
                row.Value = "";
            }

            foreach (MeasureRow row in id2TCs)
            {
                row.Value = "";
            }

            foreach (MeasureRow row in odTCs)
            {
                row.Value = "";
            }

            foreach (MeasureRow row in presses)
            {
                row.Value = "";
            }

            foreach (GridView gridView in gridViews)
            {
                gridView.RefreshData();
            }
        }
    }
}
<file_sep>﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

using Ulee.Controls;

namespace Hnc.Calorimeter.Client
{
    public partial class CtrlPlcView : UlUserControlEng
    {
        public CtrlPlcView()
        {
            InitializeComponent();
        }
    }
}
<file_sep>﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

using Ulee.Controls;

namespace Hnc.Calorimeter.Server
{
    public partial class FormServerMain : UlFormEng
    {
        public FormServerMain()
        {
            InitializeComponent();
            Initialize();
        }

        private const int csInvalidTime = 500;

        private InvalidThread invalidThread;

        private bool isExit;

        private bool isFirst;

        private void FormServerMain_Load(object sender, EventArgs e)
        {
            Resource.TLog.Log((int)ELogItem.Note, "Start Calorimeter Server Program.");

            DispCaption();
            DefMenu.Index = 0;

            Resource.TLog.Log((int)ELogItem.Note, "Connect TCP socket of devices.");
            Resource.Server.Connect();

            Resource.TLog.Log((int)ELogItem.Note, "Resume all threads of devices, listener and sender.");
            Resource.Server.Resume();

            Resource.TLog.Log((int)ELogItem.Note, "Resume invalidation thread of screen.");
            invalidThread = new InvalidThread(csInvalidTime);
            invalidThread.InvalidControls += InvalidForm;
            invalidThread.Resume();

            isExit = false;
            isFirst = false;

            logoffTimer.Interval = Resource.Ini.GetInteger("System", "LogoffTime") * 1000;
            logoffTimer.Enabled = true;

            Resource.UserNo = -1;
            Resource.Authority = EUserAuthority.Viewer;
            SetAuthority();
        }

        private void FormServerMain_Shown(object sender, EventArgs e)
        {
            //if (isFirst == true)
            //{
            //    if (IsLogin() == false)
            //    {
            //        Resource.UserNo = -1;
            //        Resource.Authority = EUserAuthority.Viewer;
            //        SetAuthority();
            //        return;
            //    }

            //    isFirst = false;
            //}
        }

        private void FormServerMain_FormClosing(object sender, FormClosingEventArgs e)
        {
            if (isFirst == true) return;

            if (isExit == true)
            {
                if (MessageBox.Show("Would you like to exit this program?",
                    Resource.Caption, MessageBoxButtons.YesNo, MessageBoxIcon.Question)
                    == DialogResult.No)
                {
                    isExit = false;
                    e.Cancel = true;
                }
            }
            else
            {
                Resource.TLog.Log((int)ELogItem.Note, "Drop down this program to system tray.");
                notifyIcon.Visible = true;
                ShowInTaskbar = true;
                Hide();
                e.Cancel = true;
            }
        }

        private void FormServerMain_FormClosed(object sender, FormClosedEventArgs e)
        {
            invalidThread.Terminate();

            Resource.Server.NotifyTermination();
            Resource.Server.Terminate();
            Resource.Server.Close();

            Resource.TLog.Log((int)ELogItem.Note, "Exit Calorimeter Server Program.");
        }

        private void loginButton_Click(object sender, EventArgs e)
        {
            if (IsLogin() == false)
            {
                logoffButton.PerformClick();
            }
        }

        private void logoffButton_Click(object sender, EventArgs e)
        {
            Resource.UserNo = -1;
            Resource.Authority = EUserAuthority.Viewer;
            SetAuthority();
        }

        private void exitButton_Click(object sender, EventArgs e)
        {
            if (Resource.Authority > EUserAuthority.Admin) return;

            isExit = true;
            Close();
        }

        private void Initialize()
        {
            DefMenu = new UlMenu(viewPanel);
            DefMenu.Add(new CtrlViewTop(), viewButton);
            DefMenu.Add(new CtrlLogTop(), logButton);
            DefMenu.Add(new CtrlCalibTop(), calibButton);
            DefMenu.Add(new CtrlConfigTop(), configButton);
        }

        private void DispCaption()
        {
            Text = "H&C System Calorimeter Server Program Ver " + 
                Assembly.GetExecutingAssembly().GetName().Version.ToString();
        }

        private void InvalidUserControls(UlMenu menu)
        {
            if (menu == null) return;

            UlUserControlEng userControl = menu.Controls(menu.Index) as UlUserControlEng;

            userControl.InvalidControl(this, null);
            InvalidUserControls(userControl.DefMenu);
        }

        private void InvalidDateTime()
        {
            string dateTime = DateTime.Now.ToString(Resource.csDateTimeFormat);

            if (dateTimeLabel.Text != dateTime)
            {
                dateTimeLabel.Text = dateTime;
            }
        }

        private void InvalidDeviceLed()
        {
            bool activeLed, activeDevice;

            activeLed = (powerMeterLedLabel.BackColor == SystemColors.Control) ? false : true;
            activeDevice = Resource.Server.Devices.PowerMeterConnected;
            if (activeLed != activeDevice)
            {
                powerMeterLedLabel.BackColor = (activeDevice == true) ? Color.Khaki : SystemColors.Control;
            }

            activeLed = (recorderLedLabel.BackColor == SystemColors.Control) ? false : true;
            activeDevice = Resource.Server.Devices.RecorderConnected;
            if (activeLed != activeDevice)
            {
                recorderLedLabel.BackColor = (activeDevice== true) ? Color.Khaki : SystemColors.Control;
            }

            activeLed = (controllerLedLabel.BackColor == SystemColors.Control) ? false : true;
            activeDevice = Resource.Server.Devices.ControllerConnected;
            if (activeLed != activeDevice)
            {
                controllerLedLabel.BackColor = (activeDevice == true) ? Color.Khaki : SystemColors.Control;
            }

            activeLed = (plcLedLabel.BackColor == SystemColors.Control) ? false : true;
            activeDevice = Resource.Server.Devices.PlcConnected;
            if (activeLed != activeDevice)
            {
                plcLedLabel.BackColor = (activeDevice == true) ? Color.Khaki : SystemColors.Control;
            }
        }

        public override void InvalidForm(object sender, EventArgs e)
        {
            if (this.InvokeRequired == true)
            {
                EventHandler func = new EventHandler(InvalidForm);
                this.BeginInvoke(func, new object[] { sender, e });
            }
            else
            {
                InvalidDateTime();
                InvalidDeviceLed();
                InvalidUserControls(DefMenu);
            }
        }

        private bool IsLogin()
        {
            for (int i = 0; i < 3; i++)
            {
                FormUserLogin loginForm = new FormUserLogin();

                loginForm.ShowDialog();
                if (loginForm.DialogResult == DialogResult.OK)
                {
                    Resource.Db.UserSet.Select(loginForm.userCombo.Text.Trim());
                    Resource.Db.UserSet.Fetch();
                    string passwd = Resource.Db.UserSet.Passwd;
                    //string passwd = Encoding.ASCII.GetString(Convert.FromBase64String(Resource.Db.UserSet.Passwd));

                    if (loginForm.passwdEdit.Text == passwd)
                    {
                        Resource.UserNo = Resource.Db.UserSet.RecNo;
                        Resource.Authority = (EUserAuthority)Resource.Db.UserSet.Authority;
                        SetAuthority();
                        return true;
                    }
                    else
                    {
                        MessageBox.Show("Invalid password!\r\nPlease keyin password again!",
                            Resource.Caption, MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
                    }
                }
                else break;
            }

            return false;
        }

        private void SetAuthority()
        {
            UserLabel.Text = Resource.Db.UserSet.GetName(Resource.UserNo);

            if (Resource.Authority < EUserAuthority.Operator)
            {
                loginButton.Left = 746;
                logoffButton.Left = 828;
                logoffButton.Visible = true;
                exitButton.Visible = true;
                calibButton.Visible = true;
                configButton.Visible = true;
                exitToolStripMenuItem.Visible = true;
            }
            else
            {
                loginButton.Left = 910;
                logoffButton.Visible = false;
                exitButton.Visible = false;
                calibButton.Visible = false;
                configButton.Visible = false;
                exitToolStripMenuItem.Visible = false;

                if (DefMenu.Index > 1) DefMenu.Index = 0;
            }
        }

        private void showUpMenuItem_Click(object sender, EventArgs e)
        {
            Resource.TLog.Log((int)ELogItem.Note, "Show up this program on screen.");
            notifyIcon.Visible = false;
            ShowInTaskbar = false;
            Show();
        }

        private void exitToolStripMenuItem_Click(object sender, EventArgs e)
        {
            isExit = true;
            Close();
        }

        private void logoffTimer_Tick(object sender, EventArgs e)
        {
        }
    }
}
<file_sep>﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

using Ulee.Controls;
using Ulee.Device.Connection.Yokogawa;

namespace Hnc.Calorimeter.Client
{
    public class ClientDevice
    {
        public ClientDevice(CalorimeterClient client)
        {
            this.client = client;

            PowerMeter = new DeviceFrame<PowerMeterRow<float>, float>();
            Recorder = new RecorderFrame<RecorderRow<float>, float>();
            Controller = new DeviceFrame<ControllerRow<float>, float>();
            Plc = new DeviceFrame<PlcRow<UInt16>, UInt16>();

            Initialize();
        }

        private CalorimeterClient client;

        public DeviceFrame<PowerMeterRow<float>, float> PowerMeter { get; private set; }

        public RecorderFrame<RecorderRow<float>, float> Recorder { get; private set; }

        public DeviceFrame<ControllerRow<float>, float> Controller { get; private set; }

        public DeviceFrame<PlcRow<UInt16>, UInt16> Plc { get; private set; }

        private void Initialize()
        {
            // Load powermeter parameters
            int i = 1;
            int index = 0;
            string section;
            string key = $"PM{i}";
            string param = client.Ini.GetString("PowerMeter", key);
            PowerMeter.Rows.Clear();

            while (string.IsNullOrWhiteSpace(param) == false)
            {
                string[] @params = param.Split(new[] { ',' }, StringSplitOptions.None);
                EWT330Phase phase = (@params[1] == "P1") ? EWT330Phase.P1 : EWT330Phase.P3;

                PowerMeterRow<float> row = new PowerMeterRow<float>(@params[0], phase);
                PowerMeter.Rows.Add(row);

                int j = 1;
                section = $"{key}.Channel";
                key = $"CH{j}";
                param = client.Ini.GetString(section, key);

                while (string.IsNullOrWhiteSpace(param) == false)
                {
                    //@params = param.Split(new[] { ',' }, StringSplitOptions.None);
                    //index = int.Parse(@params[1]);

                    DeviceValueRow<float> valueRow = 
                        new DeviceValueRow<float>(param, index++, 0);
                    row.Values.Add(valueRow);
                    PowerMeter.Values.Add(valueRow);

                    j++;
                    key = $"CH{j}";
                    param = client.Ini.GetString(section, key);
                }

                i++;
                key = $"PM{i}";
                param = client.Ini.GetString("PowerMeter", key);
            }

            // Load recorder parameters
            i = 1;
            key = $"Rec{i}";
            param = client.Ini.GetString("Recorder", key);
            Recorder.Rows.Clear();

            while (string.IsNullOrWhiteSpace(param) == false)
            {
                RecorderRow<float> row = new RecorderRow<float>(param);
                Recorder.Rows.Add(row);

                int j = 1;
                section = $"{key}.Channel";
                key = $"CH{j}";
                param = client.Ini.GetString(section, key);

                while (string.IsNullOrWhiteSpace(param) == false)
                {
                    DeviceValueRow<float> valueRow =
                        new DeviceValueRow<float>(param, index++, 0);
                    row.Values.Add(valueRow);
                    Recorder.Values.Add(valueRow);

                    j++;
                    key = $"CH{j}";
                    param = client.Ini.GetString(section, key);
                }

                i++;
                key = $"Rec{i}";
                param = client.Ini.GetString("Recorder", key);
            }

            int count = Recorder.Values.Count / 4;
            for (int k = 0; k < count; k++)
            {
                Recorder.ValueList[0].Add(Recorder.Values[k]);
                Recorder.ValueList[1].Add(Recorder.Values[k + count]);
                Recorder.ValueList[2].Add(Recorder.Values[k + count * 2]);

                if ((k + count * 3) < Recorder.Values.Count)
                {
                    Recorder.ValueList[3].Add(Recorder.Values[k + count * 3]);
                }
            }

            string[] recParams = client.Ini.GetString("Recorder", "Pressure").Split(new[] { ',' }, StringSplitOptions.None);
            Recorder.PressureIndex = int.Parse(recParams[0]);
            Recorder.PressureLength = int.Parse(recParams[1]);

            recParams = client.Ini.GetString("Recorder", "Thermocouple").Split(new[] { ',' }, StringSplitOptions.None);
            Recorder.ThermocoupleIndex = int.Parse(recParams[0]);
            Recorder.ThermocoupleLength = int.Parse(recParams[1]);

            // Load controller parameters
            i = 1;
            key = $"Ctrl{i}";
            param = client.Ini.GetString("Controller", key);
            Controller.Rows.Clear();

            while (string.IsNullOrWhiteSpace(param) == false)
            {
                string[] @params = param.Split(new[] { ',' }, StringSplitOptions.None);
                int networkNo = int.Parse(@params[1]);
                int addr = int.Parse(@params[2]);

                ControllerRow<float> row = new ControllerRow<float>(@params[0], networkNo, addr);
                Controller.Rows.Add(row);

                int j = 1;
                section = $"{key}.Channel";
                key = $"CH{j}";
                param = client.Ini.GetString(section, key);

                while (string.IsNullOrWhiteSpace(param) == false)
                {
                    //@params = param.Split(new[] { ',' }, StringSplitOptions.None);
                    //index = int.Parse(@params[1]);

                    DeviceValueRow<float> valueRow = 
                        new DeviceValueRow<float>(param, index++, 0);
                    row.Values.Add(valueRow);
                    Controller.Values.Add(valueRow);

                    j++;
                    key = $"CH{j}";
                    param = client.Ini.GetString(section, key);
                }

                i++;
                key = $"Ctrl{i}";
                param = client.Ini.GetString("Controller", key);
            }

            // Load PLC parameters
            i = 1;
            index = 0;
            key = $"Plc{i}";
            param = client.Ini.GetString("Plc", key);
            Plc.Rows.Clear();

            while (string.IsNullOrWhiteSpace(param) == false)
            {
                PlcRow<UInt16> row = new PlcRow<UInt16>(param);
                Plc.Rows.Add(row);

                int j = 1;
                section = $"{key}.Channel";
                key = $"CH{j}";
                param = client.Ini.GetString(section, key);

                while (string.IsNullOrWhiteSpace(param) == false)
                {
                    DeviceValueRow<UInt16> valueRow = 
                        new DeviceValueRow<UInt16>(param, index++, 0);
                    row.Values.Add(valueRow);
                    Plc.Values.Add(valueRow);

                    j++;
                    key = $"CH{j}";
                    param = client.Ini.GetString(section, key);
                }

                i++;
                key = $"Plc{i}";
                param = client.Ini.GetString("Plc", key);
            }
        }

        public void RefreshValues()
        {
            int i = 0;
            foreach (PowerMeterRow<float> rows in PowerMeter.Rows)
            {
                foreach (DeviceValueRow<float> valueRows in rows.Values)
                {
                    valueRows.Value = client.Listener.FValues[valueRows.Index];
                    PowerMeter.Values[i++].Value = valueRows.Value;
                }
            }

            i = 0;
            foreach (RecorderRow<float> rows in Recorder.Rows)
            {
                foreach (DeviceValueRow<float> valueRows in rows.Values)
                {
                    valueRows.Value = client.Listener.FValues[valueRows.Index];
                    Recorder.Values[i++].Value = valueRows.Value;
                }
            }

            i = 0;
            foreach (ControllerRow<float> rows in Controller.Rows)
            {
                foreach (DeviceValueRow<float> valueRows in rows.Values)
                {
                    valueRows.Value = client.Listener.FValues[valueRows.Index];
                    Controller.Values[i++].Value = valueRows.Value;
                }
            }

            int count = Recorder.Values.Count / 4;
            for (int k = 0; k < count; k++)
            {
                Recorder.ValueList[0][k].Value = Recorder.Values[k].Value;
                Recorder.ValueList[1][k].Value = Recorder.Values[k + count].Value;
                Recorder.ValueList[2][k].Value = Recorder.Values[k + count * 2].Value;

                if ((k + count * 3) < Recorder.Values.Count)
                {
                    Recorder.ValueList[3][k].Value = Recorder.Values[k + count * 3].Value;
                }
            }

            i = 0;
            foreach (PlcRow<UInt16> rows in Plc.Rows)
            {
                foreach (DeviceValueRow<UInt16> valueRows in rows.Values)
                {
                    valueRows.Value = client.Listener.NValues[valueRows.Index];
                    Plc.Values[i++].Value = valueRows.Value;
                }
            }
        }
    }

    public class DeviceFrame<T1, T2>
    {
        public DeviceFrame()
        {
            Rows = new List<T1>();
            Values = new List<DeviceValueRow<T2>>();
        }

        public List<T1> Rows { get; private set; }

        public List<DeviceValueRow<T2>> Values { get; private set; }
    }

    public abstract class DeviceFrameRow<T>
    {
        public DeviceFrameRow(string name)
        {
            Name = name;
            Values = new List<DeviceValueRow<T>>();
        }

        public string Name { get; private set; }

        public List<DeviceValueRow<T>> Values { get; private set; }

        public int Length { get { return Values.Count; } }
    }

    public class PowerMeterRow<T> : DeviceFrameRow<T>
    {
        public PowerMeterRow(string name, EWT330Phase phase) : base(name)
        {
            Phase = phase;
        }

        public EWT330Phase Phase { get; private set; }
    }

    public class RecorderFrame<T1, T2> : DeviceFrame<T1, T2>
    {
        public RecorderFrame()
        {
            ValueList = new List<List<DeviceValueRow<T2>>>();
            ValueList.Add(new List<DeviceValueRow<T2>>());
            ValueList.Add(new List<DeviceValueRow<T2>>());
            ValueList.Add(new List<DeviceValueRow<T2>>());
            ValueList.Add(new List<DeviceValueRow<T2>>());
        }

        public List<List<DeviceValueRow<T2>>> ValueList;

        public int ThermocoupleIndex { get; set; }
        public int ThermocoupleLength { get; set; }

        public int PressureIndex { get; set; }
        public int PressureLength { get; set; }
    }

    public class RecorderRow<T> : DeviceFrameRow<T>
    {
        public RecorderRow(string name) : base(name)
        {
        }
    }

    public class ControllerRow<T> : DeviceFrameRow<T>
    {
        public ControllerRow(string name, int networkNo, int addr) : base(name)
        {
            NetworkNo = networkNo;
            Address = addr;
        }

        public int NetworkNo { get; private set; }

        public int Address { get; private set; }
    }

    public class PlcRow<T> : DeviceFrameRow<T>
    {
        public PlcRow(string name) : base(name)
        {
        }
    }

    public class DeviceValueRow<T>
    {
        public DeviceValueRow(string name, int index, T value)
        {
            Name = name;
            Index = index;
            Value = value;
        }

        public string Name { get; private set; }

        public int Index { get; private set; }

        public T Value { get; set; }

        public string Format { get; set; }

        public UnitConvert Convert { get; set; }
    }
}
<file_sep>﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

using Ulee.Controls;
using Ulee.Device.Connection;

namespace Hnc.Calorimeter.Server
{
    public partial class FormDeviceEdit : UlFormEng
    {
        public FormDeviceEdit()
        {
            InitializeComponent();

            linkCombo.Items.Clear();
            linkCombo.Items.Add(EEthernetLink.Disconnect.ToString());
            linkCombo.Items.Add(EEthernetLink.Connect.ToString());

            modeCombo.Items.Clear();
            modeCombo.Items.Add(EEthernetMode.Real.ToString());
            modeCombo.Items.Add(EEthernetMode.Virtual.ToString());
        }

        private void FormDeviceEdit_Load(object sender, EventArgs e)
        {
            ActiveControl = linkCombo;
        }

        private void linkCombo_SelectedIndexChanged(object sender, EventArgs e)
        {
            if ((EEthernetLink)linkCombo.SelectedIndex == EEthernetLink.Disconnect)
            {
                modeCombo.SelectedIndex = (int)EEthernetMode.Virtual;
            }
        }

        private void modeCombo_SelectedIndexChanged(object sender, EventArgs e)
        {
            if ((EEthernetMode)modeCombo.SelectedIndex == EEthernetMode.Real)
            {
                linkCombo.SelectedIndex = (int)EEthernetLink.Connect;
            }
        }

        private void okButton_Click(object sender, EventArgs e)
        {
            Close();
        }

        private void cancelButton_Click(object sender, EventArgs e)
        {
            Close();
        }
    }
}
<file_sep>﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

using Ulee.Controls;

namespace Hnc.Calorimeter.Client
{
    public partial class CtrlDevicePowerMeter : UlUserControlEng
    {
        public List<UlPanel> Views { get; private set; }

        public CtrlDevicePowerMeter()
        {
            InitializeComponent();
            Initialize();
        }

        private void Initialize()
        {
            Views = new List<UlPanel>();
            Views.Add(view1Panel);
            Views.Add(view2Panel);
            Views.Add(view3Panel);
            Views.Add(view4Panel);
            Views.Add(view5Panel);
            Views.Add(view6Panel);
            Views.Add(view7Panel);
            Views.Add(view8Panel);

            for (int i=0; i<Resource.Client.Devices.PowerMeter.Rows.Count; i++)
            {
                Views[i].Controls.Add(new CtrlPowerMeterView(
                    Resource.Client.Devices.PowerMeter.Rows[i].Name));
            }
        }

        public override void InvalidControl(object sender, EventArgs e)
        {
            if (this.InvokeRequired == true)
            {
                EventHandler func = new EventHandler(InvalidControl);
                this.BeginInvoke(func, new object[] { sender, e });
            }
            else
            {
                for (int i = 0; i < Resource.Client.Devices.PowerMeter.Rows.Count; i++)
                {
                    (Views[i].Controls[0] as CtrlPowerMeterView).RefreshMeter(
                        Resource.Client.Devices.PowerMeter.Rows[i].Phase, 
                        Resource.Client.Devices.PowerMeter.Rows[i].Values);
                }
            }
        }
    }
}
<file_sep>﻿using System;
using System.Net;

namespace Hnc.Calorimeter.Server
{
    public class ClientRow : IEquatable<string>
    {
        public ClientRow(IPEndPoint ipPoint, long time, EClientState state = EClientState.Idle)
        {
            Index = 0;
            IpPoint = ipPoint;
            ScanTime = time;
            State = state;
            ConnectedTime = DateTime.Now;
            BeginTime = 0;
        }

        public int Index { get; set; }

        public IPEndPoint IpPoint { get; private set; }

        public string Ip { get { return IpPoint.Address.ToString(); } }

        public int Port { get { return IpPoint.Port; } }

        public string IpPort { get { return IpPoint.ToString(); } }

        public EClientState State { get; set; }

        public long ScanTime { get; set; }

        public long BeginTime { get; set; }

        public DateTime ConnectedTime { get; private set; }

        public bool Equals(string ipPort)
        {
            return (IpPort == ipPort) ? true : false;
        }

        public override bool Equals(object obj)
        {
            if (obj == null) return false;

            ClientRow client = obj as ClientRow;

            if (client == null) return false;

            return Equals(client.IpPort);
        }

        public override int GetHashCode()
        {
            return Ip.GetHashCode();
        }
    }
}
<file_sep>﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading;

using DevExpress.Spreadsheet;

using Ulee.Controls;
using Ulee.Utils;

namespace Hnc.Calorimeter.Client
{ 
    public partial class CtrlViewReport : UlUserControlEng
    {
        public CtrlViewReport(int handle)
        {
            InitializeComponent();

            this.handle = handle;
            Initialize();
        }

        private int handle;
        private string fName;
        private CalorimeterViewDatabase db;
        private List<string> calorieTags;
        private List<string> thermoTags;
        private WorksheetTagCollection sheetTags;

        private void Initialize()
        {
            reportSheet.LoadDocument(Resource.csExcelOriginReport);

            db = Resource.ViewDB;
            calorieTags = null;
            thermoTags = null;
            sheetTags = null;
        }

        private void CtrlViewReport_Load(object sender, EventArgs e)
        {
            sheetTags = new WorksheetTagCollection(reportSheet.Document);
            sheetTags.SetWorkSheetVisible("Raw Data", false);
            sheetTags.Clear();

            calorieTags = new List<string>();
            calorieTags.Add("324");
            calorieTags.Add("325");
            calorieTags.Add("326");
            calorieTags.Add("327");
            calorieTags.Add("328");
            calorieTags.Add("329");
            calorieTags.Add("330");
            calorieTags.Add("331");
            calorieTags.Add("332");
            calorieTags.Add("333");
            calorieTags.Add("334");
            calorieTags.Add("335");
            calorieTags.Add("336");
            calorieTags.Add("337");
            calorieTags.Add("338");
            calorieTags.Add("339");
            calorieTags.Add("341");
            calorieTags.Add("394");
            calorieTags.Add("342");
            calorieTags.Add("343");
            calorieTags.Add("344");
            calorieTags.Add("345");
            calorieTags.Add("346");
            calorieTags.Add("347");
            calorieTags.Add("348");
            calorieTags.Add("349");
            calorieTags.Add("350");
            calorieTags.Add("351");
            calorieTags.Add("352");
            calorieTags.Add("353");
            calorieTags.Add("354");
            calorieTags.Add("355");
            calorieTags.Add("356");
            calorieTags.Add("357");
            calorieTags.Add("358");
            calorieTags.Add("359");
            calorieTags.Add("360");
            calorieTags.Add("361");
            calorieTags.Add("362");
            calorieTags.Add("363");
            calorieTags.Add("365");
            calorieTags.Add("366");
            calorieTags.Add("367");
            calorieTags.Add("368");
            calorieTags.Add("369");

            thermoTags = new List<string>();
            for (int i = 0; i < 60; i++) thermoTags.Add($"{525 + i}");
        }

        public void Open(Int64 recNo)
        {
            sheetTags.Clear();
            db.Lock();

            try
            {
                Dictionary<string, Cell> sheet;
                DataBookDataSet bookSet = db.DataBookSet;
                DataSheetDataSet sheetSet = db.DataSheetSet;
                DataValueUnitDataSet valueUnitSet = db.DataValueUnitSet;
                DataValueDataSet valueSet = db.DataValueSet;

                bookSet.Select(recNo);

                if (bookSet.IsEmpty() == false)
                {
                    bookSet.Fetch();
                    if (string.IsNullOrWhiteSpace(bookSet.TestName) == true)
                        fName = $"None_Line{bookSet.TestLine + 1}";
                    else
                        fName = $"{bookSet.TestName}_Line{bookSet.TestLine + 1}";

                    sheetSet.Select(bookSet.RecNo);

                    for (int i=0; i<sheetSet.GetRowCount(); i++)
                    {
                        sheetSet.Fetch(i);

                        bool isNozzle = false;
                        if ((sheetSet.IDState.EndsWith("Cooling") == true) ||
                            (sheetSet.IDState.EndsWith("Heating") == true)) isNozzle = true;

                        sheet = sheetTags.Sheets[sheetSet.SheetName];

                        reportSheet.BeginUpdate();

                        try
                        {
                            SetSheetTitle(sheet, bookSet, sheetSet);

                            if (sheetSet.Use == true)
                            {
                                valueUnitSet.Select(sheetSet.RecNo);

                                if (i < 4)
                                {
                                    SetSheetValues(sheet, calorieTags,
                                        bookSet.IntegCount, bookSet.IntegTime, valueUnitSet, valueSet, false, isNozzle);
                                }
                                else
                                {
                                    SetSheetValues(sheet, thermoTags, 
                                        bookSet.IntegCount, bookSet.IntegTime, valueUnitSet, valueSet, true, false);
                                }
                            }
                        }
                        finally
                        {
                            reportSheet.EndUpdate();
                        }

                        Thread.Sleep(1);
                    }
                }
            }
            finally
            {
                db.Unlock();
            }
        }

        public void SaveExcel()
        {
            string excelName = Resource.Settings.Options.ExcelPath + "\\" + fName + "_"
                + DateTime.Now.ToString("yyyyMMddHHmmss") + ".xlsx";

            try
            {
                reportSheet.SaveDocument(excelName);
            }
            catch (Exception e)
            {
                Resource.TLog.Log((int)ELogItem.Exception, e.ToString());
            }
        }

        private void SetSheetTitle(Dictionary<string, Cell> sheet, DataBookDataSet bookSet, DataSheetDataSet sheetSet)
        {
            sheetTags.SetWorkSheetVisible(sheetSet.SheetName, sheetSet.Use);

            if (sheetSet.Use == true)
            {
                sheet["{300}"].Value = bookSet.Company;
                sheet["{302}"].Value = bookSet.TestName;
                sheet["{304}"].Value = bookSet.TestNo;
                sheet["{306}"].Value = bookSet.Observer;
                sheet["{308}"].Value = bookSet.Maker;
                sheet["{310}"].Value = bookSet.Model1;
                sheet["{312}"].Value = bookSet.Serial1;
                sheet["{314}"].Value = bookSet.Model2;
                sheet["{316}"].Value = bookSet.Serial2;

                string str = bookSet.Model3 + " / " + bookSet.Serial3;
                if (str.Trim() == "/")
                    sheet["{318}"].Value = "";
                else
                    sheet["{318}"].Value = str;

                sheet["{320}"].Value = sheetSet.IDTemp;
                sheet["{322}"].Value = sheetSet.IDState;

                sheet["{301}"].Value = bookSet.Capacity;
                sheet["{303}"].Value = bookSet.PowerInput;
                sheet["{305}"].Value = bookSet.EER_COP;
                sheet["{307}"].Value = bookSet.PowerSource;
                sheet["{309}"].Value = bookSet.ExpDevice;
                sheet["{311}"].Value = bookSet.Refrige;
                sheet["{313}"].Value = bookSet.RefCharge;
                sheet["{315}"].Value = bookSet.BeginTime;
                sheet["{321}"].Value = sheetSet.ODTemp;
                sheet["{323}"].Value = sheetSet.ODState;
                sheet["{299}"].Value = "";

                if (sheetSet.SheetName.EndsWith("TC") == false)
                {
                    sheet["{365}"].Value = sheetSet.NozzleName;
                }
            }
        }

        private void SetSheetValues(Dictionary<string, Cell> sheet, List<string> cellTags, int integCount,
            int integTime, DataValueUnitDataSet valueUnitSet, DataValueDataSet valueSet, bool isThermo, bool isNozzle=false)
        {
            string tag, state = "";
            float average = 0;
            int valueCount = 0;
            int valueUnitCount = valueUnitSet.GetRowCount();
            UnitConvert unit = new UnitConvert(EUnitType.None, 0, 0);

            for (int i = 0; i < valueUnitCount; i++)
            {
                valueUnitSet.Fetch(i);

                unit.Type = (EUnitType)valueUnitSet.UnitType;
                unit.From = valueUnitSet.UnitFrom;
                unit.To = valueUnitSet.UnitTo;

                if (isThermo == true)
                {
                    tag = $"{{{cellTags[i]}-N}}";
                    sheet[tag].Value = valueUnitSet.ValueName;
                }

                tag = $"{{{cellTags[i]}}}";

                if (cellTags[i] != "365")
                {
                    if (valueUnitSet.UnitType == 0)
                        sheet[tag].Value = "";
                    else
                        sheet[tag].Value = unit.ToDescription;
                }

                average = 0;
                valueSet.Select(valueUnitSet.RecNo);
                valueCount = valueSet.GetRowCount();

                for (int j = 0; j < valueCount; j++)
                {
                    valueSet.Fetch(j);

                    tag = $"{{{cellTags[i]}-{valueSet.DataNo+1}}}";

                    if (valueUnitSet.UnitType == 0)
                    {
                        if ((cellTags[i] == "365") && (isNozzle == true))
                        {
                            state = GetNozzleState((byte)valueSet.DataValue);
                            sheet[tag].Value = state;
                        }
                        else
                        {
                            sheet[tag].Value = "";
                            average = float.NaN;
                            break;
                        }
                    }
                    else
                    {
                        if (float.IsNaN(valueSet.DataValue) == true)
                        {
                            sheet[tag].Value = "";
                            average = float.NaN;
                            break;
                        }
                        else
                        {
                            if (string.IsNullOrWhiteSpace(valueUnitSet.Format) == false)
                            {
                                sheet[tag].NumberFormat = valueUnitSet.Format;
                            }

                            sheet[tag].Value = unit.Convert(valueSet.DataValue);
                            average += valueSet.DataValue;
                        }
                    }
                }

                tag = $"{{{cellTags[i]}-0}}";

                if (cellTags[i] == "365")
                {
                    if (isNozzle == true)
                        sheet[tag].Value = state;
                    else
                        sheet[tag].Value = "";
                }
                else
                { 
                    if ((valueUnitSet.UnitType == 0) || (valueCount == 0))
                    {
                        sheet[tag].Value = "";
                    }
                    else
                    {
                        if (float.IsNaN(average) == true)
                        {
                            sheet[tag].Value = "";
                        }
                        else
                        {
                            average = average / valueCount;
                            sheet[tag].Value = unit.Convert(average);
                        }
                    }
                }
            }

            sheet["{min-0}"].Value = "Average";
            for (int i=0; i<integCount; i++)
            {
                tag = $"{{min-{i+1}}}";
                sheet[tag].Value = $"{(i+1)*integTime} min";
            }
        }

        private string GetNozzleState(byte nozzleValue)
        {
            string state = "";

            for (int i = 0; i < 4; i++)
            {
                state += (UlBits.Get(nozzleValue, i) == true) ? "O," : "X,";
            }

            return state.Substring(0, 7);
        }
    }
}
<file_sep>﻿namespace Hnc.Calorimeter.Server
{
    partial class CtrlConfigTop
    {
        /// <summary> 
        /// Required designer variable.
        /// </summary>
        private System.ComponentModel.IContainer components = null;

        /// <summary> 
        /// Clean up any resources being used.
        /// </summary>
        /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
        protected override void Dispose(bool disposing)
        {
            if (disposing && (components != null))
            {
                components.Dispose();
            }
            base.Dispose(disposing);
        }

        #region Component Designer generated code

        /// <summary> 
        /// Required method for Designer support - do not modify 
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            DevExpress.XtraGrid.GridFormatRule gridFormatRule1 = new DevExpress.XtraGrid.GridFormatRule();
            DevExpress.XtraEditors.FormatConditionRuleValue formatConditionRuleValue1 = new DevExpress.XtraEditors.FormatConditionRuleValue();
            System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(CtrlConfigTop));
            this.userGridNameColumn = new DevExpress.XtraGrid.Columns.GridColumn();
            this.userGrid = new DevExpress.XtraGrid.GridControl();
            this.userGridView = new DevExpress.XtraGrid.Views.Grid.GridView();
            this.userGridGradeColumn = new DevExpress.XtraGrid.Columns.GridColumn();
            this.userGridPasswdColumn = new DevExpress.XtraGrid.Columns.GridColumn();
            this.userGridMemoColumn = new DevExpress.XtraGrid.Columns.GridColumn();
            this.userDeleteButton = new System.Windows.Forms.Button();
            this.userUpdateButton = new System.Windows.Forms.Button();
            this.userAddButton = new System.Windows.Forms.Button();
            this.bgPanel.SuspendLayout();
            ((System.ComponentModel.ISupportInitialize)(this.userGrid)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.userGridView)).BeginInit();
            this.SuspendLayout();
            // 
            // bgPanel
            // 
            this.bgPanel.BevelOuter = Ulee.Controls.EUlBevelStyle.None;
            this.bgPanel.Controls.Add(this.userGrid);
            this.bgPanel.Controls.Add(this.userDeleteButton);
            this.bgPanel.Controls.Add(this.userUpdateButton);
            this.bgPanel.Controls.Add(this.userAddButton);
            this.bgPanel.Size = new System.Drawing.Size(992, 645);
            // 
            // userGridNameColumn
            // 
            this.userGridNameColumn.AppearanceCell.BorderColor = System.Drawing.Color.Transparent;
            this.userGridNameColumn.AppearanceCell.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.userGridNameColumn.AppearanceCell.ForeColor = System.Drawing.Color.Black;
            this.userGridNameColumn.AppearanceCell.Options.UseBorderColor = true;
            this.userGridNameColumn.AppearanceCell.Options.UseFont = true;
            this.userGridNameColumn.AppearanceCell.Options.UseForeColor = true;
            this.userGridNameColumn.AppearanceHeader.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.userGridNameColumn.AppearanceHeader.Options.UseFont = true;
            this.userGridNameColumn.Caption = "User ID";
            this.userGridNameColumn.FieldName = "NAME";
            this.userGridNameColumn.Name = "userGridNameColumn";
            this.userGridNameColumn.OptionsColumn.AllowEdit = false;
            this.userGridNameColumn.OptionsColumn.AllowFocus = false;
            this.userGridNameColumn.OptionsColumn.AllowGroup = DevExpress.Utils.DefaultBoolean.False;
            this.userGridNameColumn.OptionsColumn.AllowIncrementalSearch = false;
            this.userGridNameColumn.OptionsColumn.AllowMerge = DevExpress.Utils.DefaultBoolean.False;
            this.userGridNameColumn.OptionsColumn.AllowMove = false;
            this.userGridNameColumn.OptionsColumn.AllowShowHide = false;
            this.userGridNameColumn.OptionsColumn.AllowSize = false;
            this.userGridNameColumn.OptionsColumn.AllowSort = DevExpress.Utils.DefaultBoolean.False;
            this.userGridNameColumn.OptionsColumn.FixedWidth = true;
            this.userGridNameColumn.OptionsColumn.ImmediateUpdateRowPosition = DevExpress.Utils.DefaultBoolean.False;
            this.userGridNameColumn.OptionsColumn.Printable = DevExpress.Utils.DefaultBoolean.False;
            this.userGridNameColumn.OptionsColumn.ReadOnly = true;
            this.userGridNameColumn.OptionsColumn.TabStop = false;
            this.userGridNameColumn.Visible = true;
            this.userGridNameColumn.VisibleIndex = 0;
            // 
            // userGrid
            // 
            this.userGrid.Location = new System.Drawing.Point(0, 0);
            this.userGrid.MainView = this.userGridView;
            this.userGrid.Margin = new System.Windows.Forms.Padding(2);
            this.userGrid.Name = "userGrid";
            this.userGrid.Size = new System.Drawing.Size(867, 645);
            this.userGrid.TabIndex = 8;
            this.userGrid.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] {
            this.userGridView});
            this.userGrid.DoubleClick += new System.EventHandler(this.userGrid_DoubleClick);
            // 
            // userGridView
            // 
            this.userGridView.Appearance.EvenRow.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.userGridView.Appearance.EvenRow.Options.UseFont = true;
            this.userGridView.Appearance.FocusedCell.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.userGridView.Appearance.FocusedCell.Options.UseFont = true;
            this.userGridView.Appearance.FocusedRow.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.userGridView.Appearance.FocusedRow.Options.UseFont = true;
            this.userGridView.Appearance.HeaderPanel.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.userGridView.Appearance.HeaderPanel.Options.UseFont = true;
            this.userGridView.Appearance.HideSelectionRow.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.userGridView.Appearance.HideSelectionRow.Options.UseFont = true;
            this.userGridView.Appearance.OddRow.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.userGridView.Appearance.OddRow.Options.UseFont = true;
            this.userGridView.Appearance.Row.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.userGridView.Appearance.Row.Options.UseFont = true;
            this.userGridView.Appearance.SelectedRow.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.userGridView.Appearance.SelectedRow.Options.UseFont = true;
            this.userGridView.Appearance.ViewCaption.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.userGridView.Appearance.ViewCaption.Options.UseFont = true;
            this.userGridView.Columns.AddRange(new DevExpress.XtraGrid.Columns.GridColumn[] {
            this.userGridNameColumn,
            this.userGridGradeColumn,
            this.userGridPasswdColumn,
            this.userGridMemoColumn});
            gridFormatRule1.Column = this.userGridNameColumn;
            gridFormatRule1.Name = "Format0";
            formatConditionRuleValue1.Appearance.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(192)))), ((int)(((byte)(128)))));
            formatConditionRuleValue1.Appearance.Options.UseBackColor = true;
            formatConditionRuleValue1.Condition = DevExpress.XtraEditors.FormatCondition.Equal;
            formatConditionRuleValue1.Value1 = "ghdkd";
            gridFormatRule1.Rule = formatConditionRuleValue1;
            this.userGridView.FormatRules.Add(gridFormatRule1);
            this.userGridView.GridControl = this.userGrid;
            this.userGridView.Name = "userGridView";
            this.userGridView.OptionsBehavior.Editable = false;
            this.userGridView.OptionsBehavior.ReadOnly = true;
            this.userGridView.OptionsCustomization.AllowGroup = false;
            this.userGridView.OptionsSelection.EnableAppearanceFocusedCell = false;
            this.userGridView.OptionsView.ShowGroupPanel = false;
            this.userGridView.ScrollStyle = DevExpress.XtraGrid.Views.Grid.ScrollStyleFlags.LiveVertScroll;
            this.userGridView.FocusedRowChanged += new DevExpress.XtraGrid.Views.Base.FocusedRowChangedEventHandler(this.userGridView_FocusedRowChanged);
            // 
            // userGridGradeColumn
            // 
            this.userGridGradeColumn.AppearanceCell.BorderColor = System.Drawing.Color.Transparent;
            this.userGridGradeColumn.AppearanceCell.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.userGridGradeColumn.AppearanceCell.ForeColor = System.Drawing.Color.Black;
            this.userGridGradeColumn.AppearanceCell.Options.UseBorderColor = true;
            this.userGridGradeColumn.AppearanceCell.Options.UseFont = true;
            this.userGridGradeColumn.AppearanceCell.Options.UseForeColor = true;
            this.userGridGradeColumn.AppearanceCell.Options.UseTextOptions = true;
            this.userGridGradeColumn.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Near;
            this.userGridGradeColumn.AppearanceHeader.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.userGridGradeColumn.AppearanceHeader.Options.UseFont = true;
            this.userGridGradeColumn.Caption = "Authority";
            this.userGridGradeColumn.FieldName = "AUTHORITY";
            this.userGridGradeColumn.Name = "userGridGradeColumn";
            this.userGridGradeColumn.OptionsColumn.AllowEdit = false;
            this.userGridGradeColumn.OptionsColumn.AllowFocus = false;
            this.userGridGradeColumn.OptionsColumn.AllowGroup = DevExpress.Utils.DefaultBoolean.False;
            this.userGridGradeColumn.OptionsColumn.AllowIncrementalSearch = false;
            this.userGridGradeColumn.OptionsColumn.AllowMerge = DevExpress.Utils.DefaultBoolean.False;
            this.userGridGradeColumn.OptionsColumn.AllowMove = false;
            this.userGridGradeColumn.OptionsColumn.AllowShowHide = false;
            this.userGridGradeColumn.OptionsColumn.AllowSize = false;
            this.userGridGradeColumn.OptionsColumn.AllowSort = DevExpress.Utils.DefaultBoolean.False;
            this.userGridGradeColumn.OptionsColumn.FixedWidth = true;
            this.userGridGradeColumn.OptionsColumn.ImmediateUpdateRowPosition = DevExpress.Utils.DefaultBoolean.False;
            this.userGridGradeColumn.OptionsColumn.Printable = DevExpress.Utils.DefaultBoolean.False;
            this.userGridGradeColumn.OptionsColumn.ReadOnly = true;
            this.userGridGradeColumn.OptionsColumn.TabStop = false;
            this.userGridGradeColumn.Visible = true;
            this.userGridGradeColumn.VisibleIndex = 1;
            // 
            // userGridPasswdColumn
            // 
            this.userGridPasswdColumn.AppearanceCell.BorderColor = System.Drawing.Color.Transparent;
            this.userGridPasswdColumn.AppearanceCell.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.userGridPasswdColumn.AppearanceCell.ForeColor = System.Drawing.Color.Black;
            this.userGridPasswdColumn.AppearanceCell.Options.UseBorderColor = true;
            this.userGridPasswdColumn.AppearanceCell.Options.UseFont = true;
            this.userGridPasswdColumn.AppearanceCell.Options.UseForeColor = true;
            this.userGridPasswdColumn.AppearanceHeader.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.userGridPasswdColumn.AppearanceHeader.Options.UseFont = true;
            this.userGridPasswdColumn.Caption = "Password";
            this.userGridPasswdColumn.DisplayFormat.FormatString = "*";
            this.userGridPasswdColumn.DisplayFormat.FormatType = DevExpress.Utils.FormatType.Custom;
            this.userGridPasswdColumn.FieldName = "PASSWD";
            this.userGridPasswdColumn.Name = "userGridPasswdColumn";
            this.userGridPasswdColumn.OptionsColumn.AllowEdit = false;
            this.userGridPasswdColumn.OptionsColumn.AllowFocus = false;
            this.userGridPasswdColumn.OptionsColumn.AllowGroup = DevExpress.Utils.DefaultBoolean.False;
            this.userGridPasswdColumn.OptionsColumn.AllowIncrementalSearch = false;
            this.userGridPasswdColumn.OptionsColumn.AllowMerge = DevExpress.Utils.DefaultBoolean.False;
            this.userGridPasswdColumn.OptionsColumn.AllowMove = false;
            this.userGridPasswdColumn.OptionsColumn.AllowShowHide = false;
            this.userGridPasswdColumn.OptionsColumn.AllowSize = false;
            this.userGridPasswdColumn.OptionsColumn.AllowSort = DevExpress.Utils.DefaultBoolean.False;
            this.userGridPasswdColumn.OptionsColumn.FixedWidth = true;
            this.userGridPasswdColumn.OptionsColumn.ImmediateUpdateRowPosition = DevExpress.Utils.DefaultBoolean.False;
            this.userGridPasswdColumn.OptionsColumn.Printable = DevExpress.Utils.DefaultBoolean.False;
            this.userGridPasswdColumn.OptionsColumn.ReadOnly = true;
            this.userGridPasswdColumn.OptionsColumn.TabStop = false;
            this.userGridPasswdColumn.Visible = true;
            this.userGridPasswdColumn.VisibleIndex = 2;
            // 
            // userGridMemoColumn
            // 
            this.userGridMemoColumn.AppearanceCell.BorderColor = System.Drawing.Color.Transparent;
            this.userGridMemoColumn.AppearanceCell.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.userGridMemoColumn.AppearanceCell.ForeColor = System.Drawing.Color.Black;
            this.userGridMemoColumn.AppearanceCell.Options.UseBorderColor = true;
            this.userGridMemoColumn.AppearanceCell.Options.UseFont = true;
            this.userGridMemoColumn.AppearanceCell.Options.UseForeColor = true;
            this.userGridMemoColumn.AppearanceHeader.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.userGridMemoColumn.AppearanceHeader.Options.UseFont = true;
            this.userGridMemoColumn.Caption = "Memo";
            this.userGridMemoColumn.FieldName = "MEMO";
            this.userGridMemoColumn.Name = "userGridMemoColumn";
            this.userGridMemoColumn.OptionsColumn.AllowEdit = false;
            this.userGridMemoColumn.OptionsColumn.AllowFocus = false;
            this.userGridMemoColumn.OptionsColumn.AllowGroup = DevExpress.Utils.DefaultBoolean.False;
            this.userGridMemoColumn.OptionsColumn.AllowIncrementalSearch = false;
            this.userGridMemoColumn.OptionsColumn.AllowMerge = DevExpress.Utils.DefaultBoolean.False;
            this.userGridMemoColumn.OptionsColumn.AllowMove = false;
            this.userGridMemoColumn.OptionsColumn.AllowShowHide = false;
            this.userGridMemoColumn.OptionsColumn.AllowSize = false;
            this.userGridMemoColumn.OptionsColumn.AllowSort = DevExpress.Utils.DefaultBoolean.False;
            this.userGridMemoColumn.OptionsColumn.FixedWidth = true;
            this.userGridMemoColumn.OptionsColumn.ImmediateUpdateRowPosition = DevExpress.Utils.DefaultBoolean.False;
            this.userGridMemoColumn.OptionsColumn.Printable = DevExpress.Utils.DefaultBoolean.False;
            this.userGridMemoColumn.OptionsColumn.ReadOnly = true;
            this.userGridMemoColumn.OptionsColumn.TabStop = false;
            this.userGridMemoColumn.Visible = true;
            this.userGridMemoColumn.VisibleIndex = 3;
            // 
            // userDeleteButton
            // 
            this.userDeleteButton.Image = ((System.Drawing.Image)(resources.GetObject("userDeleteButton.Image")));
            this.userDeleteButton.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
            this.userDeleteButton.Location = new System.Drawing.Point(872, 76);
            this.userDeleteButton.Name = "userDeleteButton";
            this.userDeleteButton.Padding = new System.Windows.Forms.Padding(4, 0, 0, 0);
            this.userDeleteButton.Size = new System.Drawing.Size(120, 36);
            this.userDeleteButton.TabIndex = 7;
            this.userDeleteButton.TabStop = false;
            this.userDeleteButton.Text = "Delete";
            this.userDeleteButton.UseVisualStyleBackColor = true;
            this.userDeleteButton.Click += new System.EventHandler(this.userDeleteButton_Click);
            // 
            // userUpdateButton
            // 
            this.userUpdateButton.Image = ((System.Drawing.Image)(resources.GetObject("userUpdateButton.Image")));
            this.userUpdateButton.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
            this.userUpdateButton.Location = new System.Drawing.Point(872, 38);
            this.userUpdateButton.Name = "userUpdateButton";
            this.userUpdateButton.Padding = new System.Windows.Forms.Padding(4, 0, 0, 0);
            this.userUpdateButton.Size = new System.Drawing.Size(120, 36);
            this.userUpdateButton.TabIndex = 6;
            this.userUpdateButton.TabStop = false;
            this.userUpdateButton.Text = "Modify";
            this.userUpdateButton.UseVisualStyleBackColor = true;
            this.userUpdateButton.Click += new System.EventHandler(this.userUpdateButton_Click);
            // 
            // userAddButton
            // 
            this.userAddButton.Image = ((System.Drawing.Image)(resources.GetObject("userAddButton.Image")));
            this.userAddButton.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
            this.userAddButton.Location = new System.Drawing.Point(872, 0);
            this.userAddButton.Name = "userAddButton";
            this.userAddButton.Padding = new System.Windows.Forms.Padding(4, 0, 0, 0);
            this.userAddButton.Size = new System.Drawing.Size(120, 36);
            this.userAddButton.TabIndex = 5;
            this.userAddButton.TabStop = false;
            this.userAddButton.Text = "New";
            this.userAddButton.UseVisualStyleBackColor = true;
            this.userAddButton.Click += new System.EventHandler(this.userAddButton_Click);
            // 
            // CtrlConfigTop
            // 
            this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F);
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            this.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.Name = "CtrlConfigTop";
            this.Size = new System.Drawing.Size(992, 645);
            this.Load += new System.EventHandler(this.CtrlConfigTop_Load);
            this.Enter += new System.EventHandler(this.CtrlConfigTop_Enter);
            this.bgPanel.ResumeLayout(false);
            ((System.ComponentModel.ISupportInitialize)(this.userGrid)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.userGridView)).EndInit();
            this.ResumeLayout(false);
            this.PerformLayout();

        }

        #endregion

        private DevExpress.XtraGrid.GridControl userGrid;
        private DevExpress.XtraGrid.Views.Grid.GridView userGridView;
        private DevExpress.XtraGrid.Columns.GridColumn userGridNameColumn;
        private DevExpress.XtraGrid.Columns.GridColumn userGridGradeColumn;
        private DevExpress.XtraGrid.Columns.GridColumn userGridPasswdColumn;
        private DevExpress.XtraGrid.Columns.GridColumn userGridMemoColumn;
        private System.Windows.Forms.Button userDeleteButton;
        private System.Windows.Forms.Button userUpdateButton;
        private System.Windows.Forms.Button userAddButton;
    }
}
<file_sep>﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

using DevExpress.XtraEditors;
using DevExpress.XtraEditors.Controls;
using DevExpress.XtraGrid.Columns;
using DevExpress.XtraGrid.Views.BandedGrid;
using DevExpress.XtraGrid.Views.Base;
using DevExpress.XtraGrid.Views.Grid;

using Ulee.Controls;
using Ulee.Utils;

namespace Hnc.Calorimeter.Client
{
    public partial class FormOpenSchedule : UlFormEng
    {
        public FormOpenSchedule(ConditionSchedule sch)
        {
            InitializeComponent();

            defSch = sch;
            Initialize();
        }

        private GridBookmark bookmark;

        private List<TextEdit> viewEdits;
        private List<TextEdit> id1Edits;
        private List<TextEdit> id2Edits;
        private List<TextEdit> odEdits;
        private List<AdvBandedGridView> viewGrids;
        private List<ChamberParams> chamberParams;

        private ConditionSchedule defSch;

        public GridView ScheduleGridView { get { return scheduleGridView; } }
        public List<ChamberParams> Chambers { get { return chamberParams; } }

        private void Initialize()
        {
            bookmark = new GridBookmark(scheduleGridView);

            viewEdits = new List<TextEdit>();
            viewEdits.Add(standardEdit);
            viewEdits.Add(nameEdit);
            viewEdits.Add(noSteadyEdit);
            viewEdits.Add(preparationEdit);
            viewEdits.Add(judgementEdit);
            viewEdits.Add(repeatEdit);

            id1Edits = new List<TextEdit>();
            id1Edits.Add(id1EdbSetupEdit);
            id1Edits.Add(id1EdbAvgEdit);
            id1Edits.Add(id1EdbDevEdit);
            id1Edits.Add(id1EwbSetupEdit);
            id1Edits.Add(id1EwbAvgEdit);
            id1Edits.Add(id1EwbDevEdit);
            id1Edits.Add(id1Ldb1DevEdit);
            id1Edits.Add(id1Lwb1DevEdit);
            id1Edits.Add(id1Airflow1DevEdit);
            id1Edits.Add(id1Ldb2DevEdit);
            id1Edits.Add(id1Lwb2DevEdit);
            id1Edits.Add(id1Airflow2DevEdit);
            id1Edits.Add(id1Cdp1SetupEdit);
            id1Edits.Add(id1Cdp1AvgEdit);
            id1Edits.Add(id1Cdp1DevEdit);
            id1Edits.Add(id1Cdp2SetupEdit);
            id1Edits.Add(id1Cdp2AvgEdit);
            id1Edits.Add(id1Cdp2DevEdit);

            id2Edits = new List<TextEdit>();
            id2Edits.Add(id2EdbSetupEdit);
            id2Edits.Add(id2EdbAvgEdit);
            id2Edits.Add(id2EdbDevEdit);
            id2Edits.Add(id2EwbSetupEdit);
            id2Edits.Add(id2EwbAvgEdit);
            id2Edits.Add(id2EwbDevEdit);
            id2Edits.Add(id2Ldb1DevEdit);
            id2Edits.Add(id2Lwb1DevEdit);
            id2Edits.Add(id2Airflow1DevEdit);
            id2Edits.Add(id2Ldb2DevEdit);
            id2Edits.Add(id2Lwb2DevEdit);
            id2Edits.Add(id2Airflow2DevEdit);
            id2Edits.Add(id2Cdp1SetupEdit);
            id2Edits.Add(id2Cdp1AvgEdit);
            id2Edits.Add(id2Cdp1DevEdit);
            id2Edits.Add(id2Cdp2SetupEdit);
            id2Edits.Add(id2Cdp2AvgEdit);
            id2Edits.Add(id2Cdp2DevEdit);

            odEdits = new List<TextEdit>();
            odEdits.Add(odEdbSetupEdit);
            odEdits.Add(odEdbAvgEdit);
            odEdits.Add(odEdbDevEdit);
            odEdits.Add(odEwbSetupEdit);
            odEdits.Add(odEwbAvgEdit);
            odEdits.Add(odEwbDevEdit);
            odEdits.Add(odEdpSetupEdit);
            odEdits.Add(odEdpAvgEdit);
            odEdits.Add(odEdpDevEdit);
            odEdits.Add(odVolt1SetupEdit);
            odEdits.Add(odVolt1AvgEdit);
            odEdits.Add(odVolt1DevEdit);
            odEdits.Add(odVolt2SetupEdit);
            odEdits.Add(odVolt2AvgEdit);
            odEdits.Add(odVolt2DevEdit);

            viewGrids = new List<AdvBandedGridView>();
            viewGrids.Add(indoor1GridView);
            viewGrids.Add(indoor2GridView);
            viewGrids.Add(outdoorGridView);

            chamberParams = new List<ChamberParams>();
            chamberParams.Add(new ChamberParams());

            indoor1Grid.DataSource = chamberParams;
            indoor2Grid.DataSource = chamberParams;
            outdoorGrid.DataSource = chamberParams;

            NameValue<EIndoorUse>[] inUseItems = EnumHelper.GetNameValues<EIndoorUse>();
            indoor1UseLookUp.DataSource = inUseItems;
            indoor1UseLookUp.DisplayMember = "Name";
            indoor1UseLookUp.ValueMember = "Value";
            indoor1UseLookUp.KeyMember = "Value";
            indoor2UseLookUp.DataSource = inUseItems;
            indoor2UseLookUp.DisplayMember = "Name";
            indoor2UseLookUp.ValueMember = "Value";
            indoor2UseLookUp.KeyMember = "Value";

            NameValue<EIndoorMode>[] modeItems = EnumHelper.GetNameValues<EIndoorMode>();
            indoor1ModeLookUp.DataSource = modeItems;
            indoor1ModeLookUp.DisplayMember = "Name";
            indoor1ModeLookUp.ValueMember = "Value";
            indoor1ModeLookUp.KeyMember = "Value";
            indoor2ModeLookUp.DataSource = modeItems;
            indoor2ModeLookUp.DisplayMember = "Name";
            indoor2ModeLookUp.ValueMember = "Value";
            indoor2ModeLookUp.KeyMember = "Value";

            NameValue<EIndoorDuct>[] ductItems = EnumHelper.GetNameValues<EIndoorDuct>();
            indoor1DuctLookUp.DataSource = ductItems;
            indoor1DuctLookUp.DisplayMember = "Name";
            indoor1DuctLookUp.ValueMember = "Value";
            indoor1DuctLookUp.KeyMember = "Value";
            indoor2DuctLookUp.DataSource = ductItems;
            indoor2DuctLookUp.DisplayMember = "Name";
            indoor2DuctLookUp.ValueMember = "Value";
            indoor2DuctLookUp.KeyMember = "Value";

            NameValue<EOutdoorUse>[] outUseItems = EnumHelper.GetNameValues<EOutdoorUse>();
            outdoorUseLookUp.DataSource = outUseItems;
            outdoorUseLookUp.DisplayMember = "Name";
            outdoorUseLookUp.ValueMember = "Value";
            outdoorUseLookUp.KeyMember = "Value";

            NameValue<EEtcUse>[] etcUseItems = EnumHelper.GetNameValues<EEtcUse>();
            outdoorEtcUseLookUp.DataSource = etcUseItems;
            outdoorEtcUseLookUp.DisplayMember = "Name";
            outdoorEtcUseLookUp.ValueMember = "Value";
            outdoorEtcUseLookUp.KeyMember = "Value";

            string format;
            string devFormat;

            foreach (TextEdit edit in id1Edits)
            {
                switch (int.Parse(((string)edit.Tag).ToString()))
                {
                    // Temperature Edit
                    case 0:
                        format = Resource.Variables.Measured["ID11.Entering.DB"].Format;
                        devFormat = ToDevFormat(format);
                        break;

                    // Air Flow Edit
                    case 1:
                        format = Resource.Variables.Calcurated["ID11.Air.Flow.Lev"].Format;
                        devFormat = ToDevFormat(format);
                        break;

                    // Diff. Pressure Edit
                    case 2:
                        format = Resource.Variables.Measured["ID11.Nozzle.Diff.Pressure"].Format;
                        devFormat = ToDevFormat(format);
                        break;

                    default:
                        format = "0.0";
                        devFormat = "f1";
                        break;
                }

                edit.Text = format;
                edit.Properties.Mask.EditMask = devFormat;
                edit.Properties.DisplayFormat.FormatString = devFormat;
                edit.Properties.EditFormat.FormatString = devFormat;
            }

            foreach (TextEdit edit in id2Edits)
            {
                switch (int.Parse(((string)edit.Tag).ToString()))
                {
                    // Temperature Edit
                    case 0:
                        format = Resource.Variables.Measured["ID21.Entering.DB"].Format;
                        devFormat = ToDevFormat(format);
                        break;

                    // Air Flow Edit
                    case 1:
                        format = Resource.Variables.Calcurated["ID21.Air.Flow.Lev"].Format;
                        devFormat = ToDevFormat(format);
                        break;

                    // Diff. Pressure Edit
                    case 2:
                        format = Resource.Variables.Measured["ID21.Nozzle.Diff.Pressure"].Format;
                        devFormat = ToDevFormat(format);
                        break;

                    default:
                        format = "0.0";
                        devFormat = "f1";
                        break;
                }

                edit.Text = format;
                edit.Properties.Mask.EditMask = devFormat;
                edit.Properties.DisplayFormat.FormatString = devFormat;
                edit.Properties.EditFormat.FormatString = devFormat;
            }

            foreach (TextEdit edit in odEdits)
            {
                switch (int.Parse(((string)edit.Tag).ToString()))
                {
                    // Temperature Edit
                    case 0:
                        format = Resource.Variables.Measured["OD.Entering.DB"].Format;
                        devFormat = ToDevFormat(format);
                        break;

                    // Air Flow Edit
                    case 1:
                        format = Resource.Variables.Measured["PM1.R.V"].Format;
                        devFormat = ToDevFormat(format);
                        break;

                    default:
                        format = "0.0";
                        devFormat = "f1";
                        break;
                }

                edit.Text = format;
                edit.Properties.Mask.EditMask = devFormat;
                edit.Properties.DisplayFormat.FormatString = devFormat;
                edit.Properties.EditFormat.FormatString = devFormat;
            }

            scheduleGridView.Appearance.EvenRow.BackColor = Color.FromArgb(244, 244, 236);
            scheduleGridView.OptionsView.EnableAppearanceEvenRow = true;

            SetEditReadOnly(false);
        }

        private void FormOpenSchedule_Load(object sender, EventArgs e)
        {
            Resource.ConfigDB.Lock();
            try
            {
                Resource.ConfigDB.ScheduleParamSet.Select();
                scheduleGrid.DataSource = Resource.ConfigDB.ScheduleParamSet.DataSet.Tables[0];
            }
            finally
            {
                Resource.ConfigDB.Unlock();
            }

            defStandardEdit.Text = defSch.Standard;
            defNameEdit.Text = defSch.Name;
            ActiveControl = defStandardEdit;
        }

        private void searchButton_Click(object sender, EventArgs e)
        {
            bookmark.Get();

            Resource.ConfigDB.Lock();
            try
            {
                if (string.IsNullOrWhiteSpace(searchStandardEdit.Text) == true)
                    Resource.ConfigDB.ScheduleParamSet.Select();
                else
                    Resource.ConfigDB.ScheduleParamSet.Select(searchStandardEdit.Text.Trim());
            }
            finally
            {
                Resource.ConfigDB.Unlock();
            }

            bookmark.Goto();
            scheduleGrid.Focus();
        }

        private void scheduleGrid_Enter(object sender, EventArgs e)
        {
            if (ScheduleGridView.FocusedRowHandle < 0) return;

            DispFocusedRow(ScheduleGridView.FocusedRowHandle);
        }

        private void scheduleGrid_DoubleClick(object sender, EventArgs e)
        {
            okButton.PerformClick();
        }

        private void scheduleGridView_FocusedRowChanged(object sender, FocusedRowChangedEventArgs e)
        {
            if (e.FocusedRowHandle < 0) return;

            DispFocusedRow(e.FocusedRowHandle);
        }

        private void DispFocusedRow(int rowHandle)
        {
            Resource.ConfigDB.Lock();

            try
            {
                DataRow row = scheduleGridView.GetDataRow(rowHandle);
                Resource.ConfigDB.ScheduleParamSet.Fetch(row);
                SetEditFromDataSet();
            }
            finally
            {
                Resource.ConfigDB.Unlock();
            }
        }

        private void SetEditReadOnly(bool active)
        {
            foreach (TextEdit edit in id1Edits)
            {
                edit.Properties.ReadOnly = active;
                edit.EnterMoveNextControl = true;
            }

            foreach (TextEdit edit in id2Edits)
            {
                edit.Properties.ReadOnly = active;
                edit.EnterMoveNextControl = true;
            }

            foreach (TextEdit edit in odEdits)
            {
                edit.Properties.ReadOnly = active;
                edit.EnterMoveNextControl = true;
            }

            foreach (TextEdit edit in viewEdits)
            {
                edit.Properties.ReadOnly = active;
                edit.EnterMoveNextControl = true;
            }

            foreach (AdvBandedGridView gridView in viewGrids)
            {
                gridView.OptionsBehavior.ReadOnly = active;
            }
        }

        private void SetEditFromDataSet()
        {
            ScheduleParamDataSet set = Resource.ConfigDB.ScheduleParamSet;

            standardEdit.Text = set.Standard;
            nameEdit.Text = set.Name;
            noSteadyEdit.EditValue = set.NoOfSteady;
            preparationEdit.EditValue = set.Preparation;
            judgementEdit.EditValue = set.Judgement;
            repeatEdit.EditValue = set.Repeat;

            chamberParams[0].Indoor1Use = set.ID1Use;
            chamberParams[0].Indoor1Mode1 = set.ID1Mode1;
            chamberParams[0].Indoor1Duct1 = set.ID1Duct1;
            chamberParams[0].Indoor1Mode2 = set.ID1Mode2;
            chamberParams[0].Indoor1Duct2 = set.ID1Duct2;

            id1EdbSetupEdit.EditValue = set.ID1EdbSetup;
            id1EdbAvgEdit.EditValue = set.ID1EdbAvg;
            id1EdbDevEdit.EditValue = set.ID1EdbDev;
            id1EwbSetupEdit.EditValue = set.ID1EwbSetup;
            id1EwbAvgEdit.EditValue = set.ID1EwbAvg;
            id1EwbDevEdit.EditValue = set.ID1EwbDev;
            id1Ldb1DevEdit.EditValue = set.ID1Ldb1Dev;
            id1Lwb1DevEdit.EditValue = set.ID1Lwb1Dev;
            id1Airflow1DevEdit.EditValue = set.ID1Af1Dev;
            id1Ldb2DevEdit.EditValue = set.ID1Ldb2Dev;
            id1Lwb2DevEdit.EditValue = set.ID1Lwb2Dev;
            id1Airflow2DevEdit.EditValue = set.ID1Af2Dev;
            id1Cdp1SetupEdit.EditValue = set.ID1Cdp1Setup;
            id1Cdp1AvgEdit.EditValue = set.ID1Cdp1Avg;
            id1Cdp1DevEdit.EditValue = set.ID1Cdp1Dev;
            id1Cdp2SetupEdit.EditValue = set.ID1Cdp2Setup;
            id1Cdp2AvgEdit.EditValue = set.ID1Cdp2Avg;
            id1Cdp2DevEdit.EditValue = set.ID1Cdp2Dev;

            chamberParams[0].Indoor2Use = set.ID2Use;
            chamberParams[0].Indoor2Mode1 = set.ID2Mode1;
            chamberParams[0].Indoor2Duct1 = set.ID2Duct1;
            chamberParams[0].Indoor2Mode2 = set.ID2Mode2;
            chamberParams[0].Indoor2Duct2 = set.ID2Duct2;

            id2EdbSetupEdit.EditValue = set.ID2EdbSetup;
            id2EdbAvgEdit.EditValue = set.ID2EdbAvg;
            id2EdbDevEdit.EditValue = set.ID2EdbDev;
            id2EwbSetupEdit.EditValue = set.ID2EwbSetup;
            id2EwbAvgEdit.EditValue = set.ID2EwbAvg;
            id2EwbDevEdit.EditValue = set.ID2EwbDev;
            id2Ldb1DevEdit.EditValue = set.ID2Ldb1Dev;
            id2Lwb1DevEdit.EditValue = set.ID2Lwb1Dev;
            id2Airflow1DevEdit.EditValue = set.ID2Af1Dev;
            id2Ldb2DevEdit.EditValue = set.ID2Ldb2Dev;
            id2Lwb2DevEdit.EditValue = set.ID2Lwb2Dev;
            id2Airflow2DevEdit.EditValue = set.ID2Af2Dev;
            id2Cdp1SetupEdit.EditValue = set.ID2Cdp1Setup;
            id2Cdp1AvgEdit.EditValue = set.ID2Cdp1Avg;
            id2Cdp1DevEdit.EditValue = set.ID2Cdp1Dev;
            id2Cdp2SetupEdit.EditValue = set.ID2Cdp2Setup;
            id2Cdp2AvgEdit.EditValue = set.ID2Cdp2Avg;
            id2Cdp2DevEdit.EditValue = set.ID2Cdp2Dev;

            chamberParams[0].OutdoorUse = set.ODUse;
            chamberParams[0].OutdoorDpSensor = set.ODDp;
            chamberParams[0].OutdoorAutoVolt = set.ODAutoVolt;

            odEdbSetupEdit.EditValue = set.ODEdbSetup;
            odEdbAvgEdit.EditValue = set.ODEdbAvg;
            odEdbDevEdit.EditValue = set.ODEdbDev;
            odEwbSetupEdit.EditValue = set.ODEwbSetup;
            odEwbAvgEdit.EditValue = set.ODEwbAvg;
            odEwbDevEdit.EditValue = set.ODEwbDev;
            odEdpSetupEdit.EditValue = set.ODEdpSetup;
            odEdpAvgEdit.EditValue = set.ODEdpAvg;
            odEdpDevEdit.EditValue = set.ODEdpDev;
            odVolt1SetupEdit.EditValue = set.ODVolt1Setup;
            odVolt1AvgEdit.EditValue = set.ODVolt1Avg;
            odVolt1DevEdit.EditValue = set.ODVolt1Dev;
            odVolt2SetupEdit.EditValue = set.ODVolt2Setup;
            odVolt2AvgEdit.EditValue = set.ODVolt2Avg;
            odVolt2DevEdit.EditValue = set.ODVolt2Dev;

            indoor1GridView.RefreshData();
            indoor2GridView.RefreshData();
            outdoorGridView.RefreshData();
        }

        private string ToDevFormat(string format)
        {
            string[] strings = format.Split(new[] { '.' }, StringSplitOptions.None);

            if ((strings == null) || (strings.Length != 2)) return "f0";

            return $"f{strings[1].Length}";
        }

        private void indoor1GridView_CustomDrawBandHeader(object sender, BandHeaderCustomDrawEventArgs e)
        {
            if (e.Band == null) return;

            if (e.Band.AppearanceHeader.BackColor != Color.Empty)
            {
                e.Info.AllowColoring = true;
            }
        }

        private void indoor1GridView_CustomDrawColumnHeader(object sender, ColumnHeaderCustomDrawEventArgs e)
        {
            if (e.Column == null) return;

            if (e.Column.AppearanceHeader.BackColor != Color.Empty)
            {
                e.Info.AllowColoring = true;
            }
        }

        private void indoor1GridView_CellValueChanging(object sender, CellValueChangedEventArgs e)
        {
            AdvBandedGridView view = sender as AdvBandedGridView;

            switch (e.Column.FieldName)
            {
                case "Indoor1Use":
                    if ((EIndoorUse)e.Value == EIndoorUse.NotUsed)
                    {
                        view.SetRowCellValue(e.RowHandle, view.Columns["Indoor1Mode1"], EIndoorMode.NotUsed);
                        view.SetRowCellValue(e.RowHandle, view.Columns["Indoor1Duct1"], EIndoorDuct.NotUsed);
                        view.SetRowCellValue(e.RowHandle, view.Columns["Indoor1Mode2"], EIndoorMode.NotUsed);
                        view.SetRowCellValue(e.RowHandle, view.Columns["Indoor1Duct2"], EIndoorDuct.NotUsed);
                    }
                    break;

                case "Indoor2Use":
                    if ((EIndoorUse)e.Value == EIndoorUse.NotUsed)
                    {
                        view.SetRowCellValue(e.RowHandle, view.Columns["Indoor2Mode1"], EIndoorMode.NotUsed);
                        view.SetRowCellValue(e.RowHandle, view.Columns["Indoor2Duct1"], EIndoorDuct.NotUsed);
                        view.SetRowCellValue(e.RowHandle, view.Columns["Indoor2Mode2"], EIndoorMode.NotUsed);
                        view.SetRowCellValue(e.RowHandle, view.Columns["Indoor2Duct2"], EIndoorDuct.NotUsed);
                    }
                    break;
            }
        }

        private void indoor1UseLookUp_EditValueChanging(object sender, ChangingEventArgs e)
        {
            GridColumn column = indoor1GridView.FocusedColumn;

            switch (column.FieldName)
            {
                case "Indoor1Mode1":
                case "Indoor1Duct1":
                case "Indoor1Mode2":
                case "Indoor1Duct2":
                    if ((EIndoorUse)indoor1GridView.GetRowCellValue(
                        indoor1GridView.FocusedRowHandle,
                        indoor1GridView.Columns["Indoor1Use"])
                        == EIndoorUse.NotUsed)
                    {
                        e.Cancel = true;
                    }
                    else
                    {
                        e.Cancel = false;
                    }
                    break;

                case "Indoor2Mode1":
                case "Indoor2Duct1":
                case "Indoor2Mode2":
                case "Indoor2Duct2":
                    if ((EIndoorUse)scheduleGridView.GetRowCellValue(
                        scheduleGridView.FocusedRowHandle,
                        scheduleGridView.Columns["Indoor2Use"])
                        == EIndoorUse.NotUsed)
                    {
                        e.Cancel = true;
                    }
                    else
                    {
                        e.Cancel = false;
                    }
                    break;
            }
        }

        private void indoor2UseLookUp_EditValueChanging(object sender, ChangingEventArgs e)
        {
            GridColumn column = indoor2GridView.FocusedColumn;

            switch (column.FieldName)
            {
                case "Indoor2Mode1":
                case "Indoor2Duct1":
                case "Indoor2Mode2":
                case "Indoor2Duct2":
                    if ((EIndoorUse)indoor2GridView.GetRowCellValue(
                        indoor2GridView.FocusedRowHandle,
                        indoor2GridView.Columns["Indoor2Use"])
                        == EIndoorUse.NotUsed)
                    {
                        e.Cancel = true;
                    }
                    else
                    {
                        e.Cancel = false;
                    }
                    break;
            }
        }

        private void FormOpenSchedule_KeyPress(object sender, KeyPressEventArgs e)
        {
            if (e.KeyChar == (char)Keys.Escape)
            {
                cancelButton.PerformClick();
            }
        }

        private void defStandardEdit_Enter(object sender, EventArgs e)
        {
            standardEdit.Text = defSch.Standard;
            nameEdit.Text = defSch.Name;
            noSteadyEdit.EditValue = defSch.NoOfSteady;
            preparationEdit.EditValue = defSch.PreRun;
            judgementEdit.EditValue = defSch.Judge;
            repeatEdit.EditValue = defSch.Repeat;

            chamberParams[0].Indoor1Use = defSch.Indoor1Use;
            chamberParams[0].Indoor1Mode1 = defSch.Indoor1Mode1;
            chamberParams[0].Indoor1Duct1 = defSch.Indoor1Duct1;
            chamberParams[0].Indoor1Mode2 = defSch.Indoor1Mode2;
            chamberParams[0].Indoor1Duct2 = defSch.Indoor1Duct2;

            id1EdbSetupEdit.EditValue = defSch.Indoor1DB;
            id1EdbAvgEdit.EditValue = defSch.Indoor1DBAvg;
            id1EdbDevEdit.EditValue = defSch.Indoor1DBDev;
            id1EwbSetupEdit.EditValue = defSch.Indoor1WB;
            id1EwbAvgEdit.EditValue = defSch.Indoor1WBAvg;
            id1EwbDevEdit.EditValue = defSch.Indoor1WBDev;
            id1Ldb1DevEdit.EditValue = defSch.Indoor1LDB1Dev;
            id1Lwb1DevEdit.EditValue = defSch.Indoor1LWB1Dev;
            id1Airflow1DevEdit.EditValue = defSch.Indoor1AirFlow1Dev;
            id1Ldb2DevEdit.EditValue = defSch.Indoor1LDB2Dev;
            id1Lwb2DevEdit.EditValue = defSch.Indoor1LWB2Dev;
            id1Airflow2DevEdit.EditValue = defSch.Indoor1AirFlow2Dev;
            id1Cdp1SetupEdit.EditValue = defSch.Indoor1CP1;
            id1Cdp1AvgEdit.EditValue = defSch.Indoor1CP1Avg;
            id1Cdp1DevEdit.EditValue = defSch.Indoor1CP1Dev;
            id1Cdp2SetupEdit.EditValue = defSch.Indoor1CP2;
            id1Cdp2AvgEdit.EditValue = defSch.Indoor1CP2Avg;
            id1Cdp2DevEdit.EditValue = defSch.Indoor1CP2Dev;

            chamberParams[0].Indoor2Use = defSch.Indoor2Use;
            chamberParams[0].Indoor2Mode1 = defSch.Indoor2Mode1;
            chamberParams[0].Indoor2Duct1 = defSch.Indoor2Duct1;
            chamberParams[0].Indoor2Mode2 = defSch.Indoor2Mode2;
            chamberParams[0].Indoor2Duct2 = defSch.Indoor2Duct2;

            id2EdbSetupEdit.EditValue = defSch.Indoor2DB;
            id2EdbAvgEdit.EditValue = defSch.Indoor2DBAvg;
            id2EdbDevEdit.EditValue = defSch.Indoor2DBDev;
            id2EwbSetupEdit.EditValue = defSch.Indoor2WB;
            id2EwbAvgEdit.EditValue = defSch.Indoor2WBAvg;
            id2EwbDevEdit.EditValue = defSch.Indoor2WBDev;
            id2Ldb1DevEdit.EditValue = defSch.Indoor2LDB1Dev;
            id2Lwb1DevEdit.EditValue = defSch.Indoor2LWB1Dev;
            id2Airflow1DevEdit.EditValue = defSch.Indoor2AirFlow1Dev;
            id2Ldb2DevEdit.EditValue = defSch.Indoor2LDB2Dev;
            id2Lwb2DevEdit.EditValue = defSch.Indoor2LWB2Dev;
            id2Airflow2DevEdit.EditValue = defSch.Indoor2AirFlow2Dev;
            id2Cdp1SetupEdit.EditValue = defSch.Indoor2CP1;
            id2Cdp1AvgEdit.EditValue = defSch.Indoor2CP1Avg;
            id2Cdp1DevEdit.EditValue = defSch.Indoor2CP1Dev;
            id2Cdp2SetupEdit.EditValue = defSch.Indoor2CP2;
            id2Cdp2AvgEdit.EditValue = defSch.Indoor2CP2Avg;
            id2Cdp2DevEdit.EditValue = defSch.Indoor2CP2Dev;

            chamberParams[0].OutdoorUse = defSch.OutdoorUse;
            chamberParams[0].OutdoorDpSensor = defSch.OutdoorDpSensor;
            chamberParams[0].OutdoorAutoVolt = defSch.OutdoorAutoVolt;

            odEdbSetupEdit.EditValue = defSch.OutdoorDB;
            odEdbAvgEdit.EditValue = defSch.OutdoorDBAvg;
            odEdbDevEdit.EditValue = defSch.OutdoorDBDev;
            odEwbSetupEdit.EditValue = defSch.OutdoorWB;
            odEwbAvgEdit.EditValue = defSch.OutdoorWBAvg;
            odEwbDevEdit.EditValue = defSch.OutdoorWBDev;
            odEdpSetupEdit.EditValue = defSch.OutdoorDP;
            odEdpAvgEdit.EditValue = defSch.OutdoorDPAvg;
            odEdpDevEdit.EditValue = defSch.OutdoorDPDev;
            odVolt1SetupEdit.EditValue = defSch.OutdoorVolt1;
            odVolt1AvgEdit.EditValue = defSch.OutdoorVolt1Avg;
            odVolt1DevEdit.EditValue = defSch.OutdoorVolt1Dev;
            odVolt2SetupEdit.EditValue = defSch.OutdoorVolt2;
            odVolt2AvgEdit.EditValue = defSch.OutdoorVolt2Avg;
            odVolt2DevEdit.EditValue = defSch.OutdoorVolt2Dev;

            indoor1GridView.RefreshData();
            indoor2GridView.RefreshData();
            outdoorGridView.RefreshData();
        }
    }
}
<file_sep>﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

using Ulee.Utils;

namespace Hnc.Calorimeter.Client
{
    #region Enum
    //public enum EClientState
    //{ Observation, Idle, Preparation, Stabilization, Integration }

    public enum EUserAuthority
    { Maker, Admin, Operator, Viewer }

    public enum EValueType
    { Raw, Real }

    public enum ELogItem
    { Note, Error, Exception }

    public enum ETerminateCode
    { None, ReceivedTerminateCommand, NonAcknowledgement }

    public enum EDataSetMode
    { View, New, Modify }

    public enum ETestState
    {
        Stopped = -1,
        Testing = 0,
        Done = 1
    }
    #endregion

    #region EventHandler
    public delegate void EventVoidHandler(object sender);

    public delegate void EventBoolHandler(object sender, bool arg);

    public delegate void EventByteHandler(object sender, byte arg);

    public delegate void EventInt16Handler(object sender, Int16 arg);

    public delegate void EventInt32Handler(object sender, Int32 arg);

    public delegate void EventInt64Handler(object sender, Int64 arg);

    public delegate void EventFloatHandler(object sender, float arg);

    public delegate void EventDoubleHandler(object sender, double arg);
    #endregion

    class DataBookStateTypeFmt : IFormatProvider, ICustomFormatter
    {
        public DataBookStateTypeFmt()
        {
        }

        public object GetFormat(Type type)
        {
            return this;
        }

        public string Format(string formatString, object arg, IFormatProvider formatProvider)
        {
            int value = Convert.ToInt16(arg);
            string typeString = value.ToString();

            switch (value)
            {
                case -1:
                    typeString = "NG";
                    break;

                case 0:
                    typeString = "Testing";
                    break;

                case 1:
                    typeString = "OK";
                    break;
            }

            return typeString;
        }
    }

    class DataBookLineTypeFmt : IFormatProvider, ICustomFormatter
    {
        public DataBookLineTypeFmt()
        {
        }

        public object GetFormat(Type type)
        {
            return this;
        }

        public string Format(string formatString, object arg, IFormatProvider formatProvider)
        {
            int value = Convert.ToInt16(arg);

            return $"L{value+1}";
        }
    }

    public enum ECoefficient
    {
        [Description("Airflow")]
        Airflow,
        [Description("Cooling Capacity")]
        CoolingCapacity,
        [Description("Heating Capacity")]
        HeatingCapacity,
        [Description("Cooling H.L.K")]
        Cooling_HLK,
        [Description("Heating H.L.K")]
        Heating_HLK,
        [Description("Cooling H.L.K (Duct 1)")]
        Cooling_HLK_Duct1,
        [Description("Heating H.L.K (Duct 1)")]
        Heating_HLK_Duct1,
        [Description("Cooling H.L.K (Duct 2)")]
        Cooling_HLK_Duct2,
        [Description("Heating H.L.K (Duct 2)")]
        Heating_HLK_Duct2,
        [Description("Cooling H.L.K (Duct 3)")]
        Cooling_HLK_Duct3,
        [Description("Heating H.L.K (Duct 3)")]
        Heating_HLK_Duct3,
        [Description("Cooling H.L.K (Duct 4)")]
        Cooling_HLK_Duct4,
        [Description("Heating H.L.K (Duct 4)")]
        Heating_HLK_Duct4,
        [Description("Cooling H.L.K (Duct 5)")]
        Cooling_HLK_Duct5,
        [Description("Heating H.L.K (Duct 5)")]
        Heating_HLK_Duct5,
        [Description("Nozzle Diameter (1)")]
        Nozzle1,
        [Description("Nozzle Diameter (2)")]
        Nozzle2,
        [Description("Nozzle Diameter (3)")]
        Nozzle3,
        [Description("Nozzle Diameter (4)")]
        Nozzle4
    }

    public class CoefficientDataRow
    {
        public CoefficientDataRow()
        {
            Airflow = 0;
            CoolingCapacity = 0;
            HeatingCapacity = 0;
            Cooling_HLK = 0;
            Heating_HLK = 0;
            Cooling_HLK_Duct1 = 0;
            Heating_HLK_Duct1 = 0;
            Cooling_HLK_Duct2 = 0;
            Heating_HLK_Duct2 = 0;
            Cooling_HLK_Duct3 = 0;
            Heating_HLK_Duct3 = 0;
            Cooling_HLK_Duct4 = 0;
            Heating_HLK_Duct4 = 0;
            Cooling_HLK_Duct5 = 0;
            Heating_HLK_Duct5 = 0;
            Nozzle1 = 0;
            Nozzle2 = 0;
            Nozzle3 = 0;
            Nozzle4 = 0;
        }

        public float Airflow { get; set; }
        public float CoolingCapacity { get; set; }
        public float HeatingCapacity { get; set; }
        public float Cooling_HLK { get; set; }
        public float Heating_HLK { get; set; }
        public float Cooling_HLK_Duct1 { get; set; }
        public float Heating_HLK_Duct1 { get; set; }
        public float Cooling_HLK_Duct2 { get; set; }
        public float Heating_HLK_Duct2 { get; set; }
        public float Cooling_HLK_Duct3 { get; set; }
        public float Heating_HLK_Duct3 { get; set; }
        public float Cooling_HLK_Duct4 { get; set; }
        public float Heating_HLK_Duct4 { get; set; }
        public float Cooling_HLK_Duct5 { get; set; }
        public float Heating_HLK_Duct5 { get; set; }
        public float Nozzle1 { get; set; }
        public float Nozzle2 { get; set; }
        public float Nozzle3 { get; set; }
        public float Nozzle4 { get; set; }
    }

    public class CoefficientViewRow
    {
        public CoefficientViewRow(string name="", float id11=0, float id12=0, float id21=0, float id22=0)
        {
            Name = name;
            ID11 = id11;
            ID12 = id12;
            ID21 = id21;
            ID22 = id22;
        }

        public string Name { get; set; }
        public float ID11 { get; set; }
        public float ID12 { get; set; }
        public float ID21 { get; set; }
        public float ID22 { get; set; }
    }

    public class TestOptions
    {
        public TestOptions()
        {
            FixedAtmPressure = false;
            ForcedInteg = false;
            ExcelPath = @"..\..\Excel";
            AutoExcel = false;
            StoppedTestExcel = false;
            Indoor11 = false;
            Indoor12 = false;
            Indoor21 = false;
            Indoor22 = false;
            Indoor1TC = false;
            Indoor2TC = false;
            OutdoorTC = false;
        }

        public bool FixedAtmPressure { get; set; }
        public bool ForcedInteg { get; set; }
        public string ExcelPath { get; set; }
        public bool AutoExcel { get; set; }
        public bool StoppedTestExcel { get; set; }
        public bool Indoor11 { get; set; }
        public bool Indoor12 { get; set; }
        public bool Indoor21 { get; set; }
        public bool Indoor22 { get; set; }
        public bool Indoor1TC { get; set; }
        public bool Indoor2TC { get; set; }
        public bool OutdoorTC { get; set; }
    }

    public class TestSettings
    {
        public TestSettings(UlIniFile ini)
        {
            this.ini = ini;

            Options = new TestOptions();

            Coefficients = new List<CoefficientDataRow>();
            Coefficients.Add(new CoefficientDataRow());
            Coefficients.Add(new CoefficientDataRow());
            Coefficients.Add(new CoefficientDataRow());
            Coefficients.Add(new CoefficientDataRow());
        }

        private UlIniFile ini;

        public TestOptions Options { get; set; }
        public List<CoefficientDataRow> Coefficients { get; set; }

        public void Load()
        {
            string section = "Options";

            Options.FixedAtmPressure = ini.GetBoolean(section, "FixedAtmPressure");
            Options.ForcedInteg = ini.GetBoolean(section, "ForcedInteg");
            Options.ExcelPath = ini.GetString(section, "ExcelPath");
            Options.AutoExcel = ini.GetBoolean(section, "AutoExcel");
            Options.StoppedTestExcel = ini.GetBoolean(section, "StoppedTestExcel");
            Options.Indoor11 = ini.GetBoolean(section, "Indoor11");
            Options.Indoor12 = ini.GetBoolean(section, "Indoor12");
            Options.Indoor21 = ini.GetBoolean(section, "Indoor21");
            Options.Indoor22 = ini.GetBoolean(section, "Indoor22");
            Options.Indoor1TC = ini.GetBoolean(section, "Indoor1TC");
            Options.Indoor2TC = ini.GetBoolean(section, "Indoor2TC");
            Options.OutdoorTC = ini.GetBoolean(section, "OutdoorTC");

            string[] coeffSection = 
            { "Coefficient.ID11", "Coefficient.ID12", "Coefficient.ID21", "Coefficient.ID22" };

            for (int i=0; i<4; i++)
            {
                Coefficients[i].Airflow = (float)ini.GetDouble(coeffSection[i], "Airflow");
                Coefficients[i].CoolingCapacity = (float)ini.GetDouble(coeffSection[i], "CoolingCapacity");
                Coefficients[i].HeatingCapacity = (float)ini.GetDouble(coeffSection[i], "HeatingCapacity");
                Coefficients[i].Cooling_HLK = (float)ini.GetDouble(coeffSection[i], "Cooling_HLK");
                Coefficients[i].Heating_HLK = (float)ini.GetDouble(coeffSection[i], "Heating_HLK");
                Coefficients[i].Cooling_HLK_Duct1 = (float)ini.GetDouble(coeffSection[i], "Cooling_HLK_Duct1");
                Coefficients[i].Heating_HLK_Duct1 = (float)ini.GetDouble(coeffSection[i], "Heating_HLK_Duct1");
                Coefficients[i].Cooling_HLK_Duct2 = (float)ini.GetDouble(coeffSection[i], "Cooling_HLK_Duct2");
                Coefficients[i].Heating_HLK_Duct2 = (float)ini.GetDouble(coeffSection[i], "Heating_HLK_Duct2");
                Coefficients[i].Cooling_HLK_Duct3 = (float)ini.GetDouble(coeffSection[i], "Cooling_HLK_Duct3");
                Coefficients[i].Heating_HLK_Duct3 = (float)ini.GetDouble(coeffSection[i], "Heating_HLK_Duct3");
                Coefficients[i].Cooling_HLK_Duct4 = (float)ini.GetDouble(coeffSection[i], "Cooling_HLK_Duct4");
                Coefficients[i].Heating_HLK_Duct4 = (float)ini.GetDouble(coeffSection[i], "Heating_HLK_Duct4");
                Coefficients[i].Cooling_HLK_Duct5 = (float)ini.GetDouble(coeffSection[i], "Cooling_HLK_Duct5");
                Coefficients[i].Heating_HLK_Duct5 = (float)ini.GetDouble(coeffSection[i], "Heating_HLK_Duct5");
                Coefficients[i].Nozzle1 = (float)ini.GetDouble(coeffSection[i], "Nozzle1");
                Coefficients[i].Nozzle2 = (float)ini.GetDouble(coeffSection[i], "Nozzle2");
                Coefficients[i].Nozzle3 = (float)ini.GetDouble(coeffSection[i], "Nozzle3");
                Coefficients[i].Nozzle4 = (float)ini.GetDouble(coeffSection[i], "Nozzle4");
            }
        }
    }

    public class ChamberParams
    {
        public ChamberParams()
        {
            Indoor1Use = EIndoorUse.Indoor;
            Indoor1Mode1 = EIndoorMode.Cooling;
            Indoor1Duct1 = EIndoorDuct.N1;
            Indoor1Mode2 = EIndoorMode.Cooling;
            Indoor1Duct2 = EIndoorDuct.N1;

            Indoor2Use = EIndoorUse.Indoor;
            Indoor2Mode1 = EIndoorMode.Cooling;
            Indoor2Duct1 = EIndoorDuct.N1;
            Indoor2Mode2 = EIndoorMode.Cooling;
            Indoor2Duct2 = EIndoorDuct.N1;

            OutdoorUse = EOutdoorUse.Outdoor;
            OutdoorDpSensor = EEtcUse.Use;
            OutdoorAutoVolt = EEtcUse.Use;
        }

        public EIndoorUse Indoor1Use { get; set; }
        public EIndoorMode Indoor1Mode1 { get; set; }
        public EIndoorDuct Indoor1Duct1 { get; set; }
        public EIndoorMode Indoor1Mode2 { get; set; }
        public EIndoorDuct Indoor1Duct2 { get; set; }
        public EIndoorUse Indoor2Use { get; set; }
        public EIndoorMode Indoor2Mode1 { get; set; }
        public EIndoorDuct Indoor2Duct1 { get; set; }
        public EIndoorMode Indoor2Mode2 { get; set; }
        public EIndoorDuct Indoor2Duct2 { get; set; }
        public EOutdoorUse OutdoorUse { get; set; }
        public EEtcUse OutdoorDpSensor { get; set; }
        public EEtcUse OutdoorAutoVolt { get; set; }
    }

    public class YAxisRow
    {
        public YAxisRow(int recNo, int axisNo, bool active, EAxisAlign align, string name, 
            string desc, string unit, float visualMin, float visualMax, float wholeMin, float wholeMax)
        {
            RecNo = recNo;
            AxisNo = axisNo;
            Checked = active;
            Align = align;
            Name = name;
            Description = desc;
            Unit = unit;
            DescriptionUnit = $"{Description}({Unit})";
            VisualMin = visualMin;
            VisualMax = visualMax;
            WholeMin = wholeMin;
            WholeMax = wholeMax;
        }

        public int RecNo { get; set; }
        public int AxisNo { get; set; }
        public bool Checked { get; set; }
        public EAxisAlign Align { get; set; }
        public string Name { get; set; }

        private string description;
        public string Description
        {
            get { return description; }
            set
            {
                description = value;
                DescriptionUnit = $"{description}({unit})";
            }
        }

        private string unit;
        public string Unit
        {
            get { return unit; }
            set
            {
                unit = value;
                DescriptionUnit = $"{description}({unit})";
            }
        }

        public string DescriptionUnit { get; set; }
        public float VisualMin { get; set; }
        public float VisualMax { get; set; }
        public float WholeMin { get; set; }
        public float WholeMax { get; set; }
    }

    public class SeriesRow
    {
        public SeriesRow(int recNo, bool active, string name,
            string value, string unitType, string unitFrom, Color color)
        {
            RecNo = recNo;
            Checked = active;
            Name = name;
            Value = value;
            CursorA = "0";
            CursorB = "0";
            Diff = "0";
            Min = "0";
            Max = "0";
            Avg = "0";
            UnitType = unitType;
            UnitFrom = unitFrom;
            Color = color;
        }

        public int RecNo { get; set; }
        public bool Checked { get; set; }
        public string Name { get; set; }
        public string Value { get; set; }
        public string CursorA { get; set; }
        public string CursorB { get; set; }
        public string Diff { get; set; }
        public string Min { get; set; }
        public string Max { get; set; }
        public string Avg { get; set; }
        public string UnitType { get; set; }
        public string UnitFrom { get; set; }
        public Color Color { get; set; }
    }
}
<file_sep>﻿using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;

namespace Hnc.Calorimeter.Client
{
    #region enum
    public enum EMeasTotalRated
    {
        TotalCapacity,
        TotalPowerInput,
        TotalEER_COP,
        None1,
        TotalRatedCapacity,
        TotalCapacityRatio,
        TotalRatedPowerInput,
        TotalPowerInputRatio,
        TotalRatedEER_COP,
        TotalEER_COPRatio,
        TotalRatedCurrent,
        TotalCurrentRatio,
        None2,
        IDU_PowerInput,
        IDU_Voltage,
        IDU_Current,
        IDU_Frequency,
        IDU_PowerFactor,
        IDU_IntegPowerInput,
        IDU_IntegTime,
        None3,
        ODU_PowerInput,
        ODU_Voltage,
        ODU_Current,
        ODU_Frequency,
        ODU_PowerFactor,
        ODU_IntegPowerInput,
        ODU_IntegTime
    }

    public enum EMeasRunState
    {
        Condition,
        RunningStep,
        ElapsedTime,
        TotalElapsed,
        None1,
        Preparation,
        Judgement,
        Integration,
        None2,
        NoOfSteady,
        Repeat,
        Schedule
    }

    public enum EMeasAirSide
    {
        Capacity,
        CapacityRatio,
        SensibleHeat,
        LatentHeat,
        SensibleHeatRatio,
        HeatLeakage,
        DrainWeight,
        None1,
        EnteringDB,
        EnteringWB,
        EnteringRH,
        LeavingDB,
        LeavingWB,
        LeavingRH,
        None2,
        EnteringEnthalpy,
        LeavingEnthalpy,
        EnteringHumidityRatio,
        LeavingHumidityRatio,
        LeavingSpecificHeat,
        LeavingSpecificVolume,
        None3,
        AirFlowLev,
        AirVelocityLev,
        StaticPressure,
        NozzleDiffPressure,
        AtmosphericPressure,
        NozzleInletTemp,
    }

    public enum EMeasNozzle
    {
        Nozzle1,
        Nozzle2,
        Nozzle3,
        Nozzle4
    }

    public enum EMeasOutside
    {
        EnteringDB,
        EnteringWB,
        EnteringRH,
        EnteringDP,
        None1,
        SatDisTemp1,
        SatSucTemp1,
        SatSubCooling1,
        SuperHeat1,
        SatDisTemp2,
        SatSucTemp2,
        SatSubCooling2,
        SuperHeat2
    }

    public enum EMeasMethod
    {
        Method,
        ScanTime
    }

    public enum EMeasNote
    {
        Company,
        TestName,
        TestNo,
        Observer,
        None1,
        Maker,
        Model1,
        SerialNo1,
        Model2,
        SerialNo2,
        Model3,
        SerialNo3,
        ExpDevice,
        Refrigerant,
        RefCharge,
        Memo
    }

    public enum EMeasRated
    {
        Capacity,
        PowerInput,
        EER_COP,
        None1,
        IDU_Voltage,
        IDU_Current,
        IDU_Frequency,
        IDU_SelectedPM,
        ODU_SelectedPM,
        ODU_Phase
    }

    public enum EMeasIndoor
    {
        Use,
        Mode,
        Duct,
        DB,
        WB
    }

    public enum EMeasOutdoor
    {
        Use,
        DPSensor,
        AutoVoltage,
        DB,
        WB
    }
    #endregion

    #region TestMeasure
    public class TestMeasure
    {
        public TestMeasure(TestValue value)
        {
            Control = null;

            TotalRateds = new List<MeasureRow>();
            TotalRateds.Add(new MeasureRow(value.Calcurated["Total.Capacity"], "Total Capacity"));
            TotalRateds.Add(new MeasureRow(value.Calcurated["Total.Power"], "Total Power Input"));
            TotalRateds.Add(new MeasureRow(value.Calcurated["Total.EER_COP"], "EER/COP"));
            TotalRateds.Add(new MeasureRow(null));
            TotalRateds.Add(new MeasureRow(null, "Rated Capacity"));
            TotalRateds.Add(new MeasureRow(null, "Capacity Ratio"));
            TotalRateds.Add(new MeasureRow(null, "Rated Power Input"));
            TotalRateds.Add(new MeasureRow(null, "Power Input Ratio"));
            TotalRateds.Add(new MeasureRow(null, "Rated EER/COP"));
            TotalRateds.Add(new MeasureRow(null, "EER/COP Ratio"));
            TotalRateds.Add(new MeasureRow(null, "Rated Current"));
            TotalRateds.Add(new MeasureRow(null, "Current Ratio"));
            TotalRateds.Add(new MeasureRow(null));
            TotalRateds.Add(new MeasureRow(null, "Power Input(IDU)"));
            TotalRateds.Add(new MeasureRow(null, "Voltage(IDU)"));
            TotalRateds.Add(new MeasureRow(null, "Current(IDU)"));
            TotalRateds.Add(new MeasureRow(null, "Frequency(IDU)"));
            TotalRateds.Add(new MeasureRow(null, "Power Factor(IDU)"));
            TotalRateds.Add(new MeasureRow(null, "Integ Power(IDU)"));
            TotalRateds.Add(new MeasureRow(null, "Integ Time(IDU)"));
            TotalRateds.Add(new MeasureRow(null));
            TotalRateds.Add(new MeasureRow(null, "Power Input(ODU)"));
            TotalRateds.Add(new MeasureRow(null, "Voltage(ODU)"));
            TotalRateds.Add(new MeasureRow(null, "Current(ODU)"));
            TotalRateds.Add(new MeasureRow(null, "Frequency(ODU)"));
            TotalRateds.Add(new MeasureRow(null, "Power Factor(ODU)"));
            TotalRateds.Add(new MeasureRow(null, "Integ Power(ODU)"));
            TotalRateds.Add(new MeasureRow(null, "Integ Time(ODU)"));

            RunStates = new List<MeasureRow>();
            RunStates.Add(new MeasureRow(null, "Condition"));
            RunStates.Add(new MeasureRow(null, "Running Step"));
            RunStates.Add(new MeasureRow(null, "Elapsed Time"));
            RunStates.Add(new MeasureRow(null, "Total Elapsed"));
            RunStates.Add(new MeasureRow(null));
            RunStates.Add(new MeasureRow(null, "Preparation", "00:00:00:00 / 00:00:00:00"));
            RunStates.Add(new MeasureRow(null, "Judgement", "00:00:00:00 / 00:00:00:00"));
            RunStates.Add(new MeasureRow(null, "Integration", "00:00:00:00 / 00:00:00:00"));
            RunStates.Add(new MeasureRow(null));
            RunStates.Add(new MeasureRow(null, "No of Steady"));
            RunStates.Add(new MeasureRow(null, "Repeat"));
            RunStates.Add(new MeasureRow(null, "Schedule"));

            AirSides = new List<MeasureAirSideRow>();
            AirSides.Add(new MeasureAirSideRow("Capacity", value.Calcurated["ID11.Capacity"], value.Calcurated["ID12.Capacity"], value.Calcurated["ID21.Capacity"], value.Calcurated["ID22.Capacity"]));
            AirSides.Add(new MeasureAirSideRow("Capacity Ratio", value.Calcurated["ID11.Capacity.Ratio"], value.Calcurated["ID12.Capacity.Ratio"], value.Calcurated["ID21.Capacity.Ratio"], value.Calcurated["ID22.Capacity.Ratio"]));
            AirSides.Add(new MeasureAirSideRow("Sensible Heat", value.Calcurated["ID11.Sensible.Heat"], value.Calcurated["ID12.Sensible.Heat"], value.Calcurated["ID21.Sensible.Heat"], value.Calcurated["ID22.Sensible.Heat"]));
            AirSides.Add(new MeasureAirSideRow("Latent Heat", value.Calcurated["ID11.Latent.Heat"], value.Calcurated["ID12.Latent.Heat"], value.Calcurated["ID21.Latent.Heat"], value.Calcurated["ID22.Latent.Heat"]));
            AirSides.Add(new MeasureAirSideRow("Sensible Heat Ratio", value.Calcurated["ID11.Sensible.Heat.Ratio"], value.Calcurated["ID12.Sensible.Heat.Ratio"], value.Calcurated["ID21.Sensible.Heat.Ratio"], value.Calcurated["ID22.Sensible.Heat.Ratio"]));
            AirSides.Add(new MeasureAirSideRow("Heat Leakage", value.Calcurated["ID11.Heat.Leakage"], value.Calcurated["ID12.Heat.Leakage"], value.Calcurated["ID21.Heat.Leakage"], value.Calcurated["ID22.Heat.Leakage"]));
            AirSides.Add(new MeasureAirSideRow("Drain Weight", value.Calcurated["ID11.Drain.Weight"], value.Calcurated["ID12.Drain.Weight"], value.Calcurated["ID21.Drain.Weight"], value.Calcurated["ID22.Drain.Weight"]));
            AirSides.Add(new MeasureAirSideRow("", null, null, null, null, true));
            AirSides.Add(new MeasureAirSideRow("Entering DB", value.Measured["ID11.Entering.DB"], value.Measured["ID12.Entering.DB"], value.Measured["ID21.Entering.DB"], value.Measured["ID22.Entering.DB"]));
            AirSides.Add(new MeasureAirSideRow("Entering WB", value.Measured["ID11.Entering.WB"], value.Measured["ID12.Entering.WB"], value.Measured["ID21.Entering.WB"], value.Measured["ID22.Entering.WB"]));
            AirSides.Add(new MeasureAirSideRow("Entering RH", value.Calcurated["ID11.Entering.RH"], value.Calcurated["ID12.Entering.RH"], value.Calcurated["ID21.Entering.RH"], value.Calcurated["ID22.Entering.RH"]));
            AirSides.Add(new MeasureAirSideRow("Leaving DB", value.Measured["ID11.Leaving.DB"], value.Measured["ID12.Leaving.DB"], value.Measured["ID21.Leaving.DB"], value.Measured["ID22.Leaving.DB"]));
            AirSides.Add(new MeasureAirSideRow("Leaving WB", value.Measured["ID11.Leaving.WB"], value.Measured["ID12.Leaving.WB"], value.Measured["ID21.Leaving.WB"], value.Measured["ID22.Leaving.WB"]));
            AirSides.Add(new MeasureAirSideRow("Leaving RH", value.Calcurated["ID11.Leaving.RH"], value.Calcurated["ID12.Leaving.RH"], value.Calcurated["ID21.Leaving.RH"], value.Calcurated["ID22.Leaving.RH"]));
            AirSides.Add(new MeasureAirSideRow("", null, null, null, null, true));
            AirSides.Add(new MeasureAirSideRow("Entering Enthalpy", value.Calcurated["ID11.Entering.Enthalpy"], value.Calcurated["ID12.Entering.Enthalpy"], value.Calcurated["ID21.Entering.Enthalpy"], value.Calcurated["ID22.Entering.Enthalpy"]));
            AirSides.Add(new MeasureAirSideRow("Leaving Enthalpy", value.Calcurated["ID11.Leaving.Enthalpy"], value.Calcurated["ID12.Leaving.Enthalpy"], value.Calcurated["ID21.Leaving.Enthalpy"], value.Calcurated["ID22.Leaving.Enthalpy"]));
            AirSides.Add(new MeasureAirSideRow("Entering Humidity Ratio", value.Calcurated["ID11.Entering.Humidity.Ratio"], value.Calcurated["ID12.Entering.Humidity.Ratio"], value.Calcurated["ID21.Entering.Humidity.Ratio"], value.Calcurated["ID22.Entering.Humidity.Ratio"]));
            AirSides.Add(new MeasureAirSideRow("Leaving Humidity Ratio", value.Calcurated["ID11.Leaving.Humidity.Ratio"], value.Calcurated["ID12.Leaving.Humidity.Ratio"], value.Calcurated["ID21.Leaving.Humidity.Ratio"], value.Calcurated["ID22.Leaving.Humidity.Ratio"]));
            AirSides.Add(new MeasureAirSideRow("Leaving Specific Heat", value.Calcurated["ID11.Leaving.Specific.Heat"], value.Calcurated["ID12.Leaving.Specific.Heat"], value.Calcurated["ID21.Leaving.Specific.Heat"], value.Calcurated["ID22.Leaving.Specific.Heat"]));
            AirSides.Add(new MeasureAirSideRow("Leaving Specific Volume", value.Calcurated["ID11.Leaving.Specific.Volume"], value.Calcurated["ID12.Leaving.Specific.Volume"], value.Calcurated["ID21.Leaving.Specific.Volume"], value.Calcurated["ID22.Leaving.Specific.Volume"]));
            AirSides.Add(new MeasureAirSideRow("", null, null, null, null, true));
            AirSides.Add(new MeasureAirSideRow("Air Flow [Lev]", value.Calcurated["ID11.Air.Flow.Lev"], value.Calcurated["ID12.Air.Flow.Lev"], value.Calcurated["ID21.Air.Flow.Lev"], value.Calcurated["ID22.Air.Flow.Lev"]));
            AirSides.Add(new MeasureAirSideRow("Air Velocity [Lev]", value.Calcurated["ID11.Air.Velocity.Lev"], value.Calcurated["ID12.Air.Velocity.Lev"], value.Calcurated["ID21.Air.Velocity.Lev"], value.Calcurated["ID22.Air.Velocity.Lev"]));
            AirSides.Add(new MeasureAirSideRow("Static Pressure", value.Measured["ID11.Static.Pressure"], value.Measured["ID12.Static.Pressure"], value.Measured["ID21.Static.Pressure"], value.Measured["ID22.Static.Pressure"]));
            AirSides.Add(new MeasureAirSideRow("Nozzle Diff. Pressure", value.Measured["ID11.Nozzle.Diff.Pressure"], value.Measured["ID12.Nozzle.Diff.Pressure"], value.Measured["ID21.Nozzle.Diff.Pressure"], value.Measured["ID22.Nozzle.Diff.Pressure"]));
            AirSides.Add(new MeasureAirSideRow("Atmospheric Pressure", value.Measured["ID1.Atm.Pressure"], value.Measured["ID1.Atm.Pressure"], value.Measured["ID2.Atm.Pressure"], value.Measured["ID2.Atm.Pressure"]));
            AirSides.Add(new MeasureAirSideRow("Nozzle Inlet Temp.", value.Measured["ID11.Nozzle.Inlet.Temp"], value.Measured["ID12.Nozzle.Inlet.Temp"], value.Measured["ID21.Nozzle.Inlet.Temp"], value.Measured["ID22.Nozzle.Inlet.Temp"]));

            List<CoefficientDataRow> coeffs = Resource.Settings.Coefficients;
            Nozzles = new List<MeasureNozzleRow>();
            Nozzles.Add(new MeasureNozzleRow("Nozzle 1", coeffs[0].Nozzle1, value.Calcurated["ID11.Nozzle.1"], coeffs[0].Nozzle2, value.Calcurated["ID12.Nozzle.1"], coeffs[0].Nozzle3, value.Calcurated["ID21.Nozzle.1"], coeffs[0].Nozzle4, value.Calcurated["ID22.Nozzle.1"]));
            Nozzles.Add(new MeasureNozzleRow("Nozzle 2", coeffs[1].Nozzle1, value.Calcurated["ID11.Nozzle.2"], coeffs[1].Nozzle2, value.Calcurated["ID12.Nozzle.2"], coeffs[1].Nozzle3, value.Calcurated["ID21.Nozzle.2"], coeffs[1].Nozzle4, value.Calcurated["ID22.Nozzle.2"]));
            Nozzles.Add(new MeasureNozzleRow("Nozzle 3", coeffs[2].Nozzle1, value.Calcurated["ID11.Nozzle.3"], coeffs[2].Nozzle2, value.Calcurated["ID12.Nozzle.3"], coeffs[2].Nozzle3, value.Calcurated["ID21.Nozzle.3"], coeffs[2].Nozzle4, value.Calcurated["ID22.Nozzle.3"]));
            Nozzles.Add(new MeasureNozzleRow("Nozzle 4", coeffs[3].Nozzle1, value.Calcurated["ID11.Nozzle.4"], coeffs[3].Nozzle2, value.Calcurated["ID12.Nozzle.4"], coeffs[3].Nozzle3, value.Calcurated["ID21.Nozzle.4"], coeffs[3].Nozzle4, value.Calcurated["ID22.Nozzle.4"]));

            Outsides = new List<MeasureRow>();
            Outsides.Add(new MeasureRow(value.Measured["OD.Entering.DB"], "Entering DB"));
            Outsides.Add(new MeasureRow(value.Measured["OD.Entering.WB"], "Entering WB"));
            Outsides.Add(new MeasureRow(value.Calcurated["OD.Entering.RH"], "Entering RH"));
            Outsides.Add(new MeasureRow(value.Measured["OD.Entering.DP"], "Entering DP"));
            Outsides.Add(new MeasureRow(null));
            Outsides.Add(new MeasureRow(value.Calcurated["OD.Sat.Dis.Temp1"], "Sat. Dis. Temp(1)"));
            Outsides.Add(new MeasureRow(value.Calcurated["OD.Sat.Suc.Temp1"], "Sat. Suc. Temp(1)"));
            Outsides.Add(new MeasureRow(value.Calcurated["OD.Sub.Cooling1"], "Sub-Cooling(1)"));
            Outsides.Add(new MeasureRow(value.Calcurated["OD.Super.Heat1"], "Superheat(1)"));
            Outsides.Add(new MeasureRow(value.Calcurated["OD.Sat.Dis.Temp2"], "Sat. Dis. Temp(2)"));
            Outsides.Add(new MeasureRow(value.Calcurated["OD.Sat.Suc.Temp2"], "Sat. Suc. Temp(2)"));
            Outsides.Add(new MeasureRow(value.Calcurated["OD.Sub.Cooling2"], "Sub-Cooling(2)"));
            Outsides.Add(new MeasureRow(value.Calcurated["OD.Super.Heat2"], "Superheat(2)"));

            Methods = new List<MeasureRow>();
            Methods.Add(new MeasureRow(null, "Method", "3min * 3times"));
            Methods.Add(new MeasureRow(null, "Scan Time", "3 sec"));

            Notes = new List<MeasureRow>();
            Notes.Add(new MeasureRow(null, "Company"));
            Notes.Add(new MeasureRow(null, "Test Name"));
            Notes.Add(new MeasureRow(null, "Test No"));
            Notes.Add(new MeasureRow(null, "Observer"));
            Notes.Add(new MeasureRow(null));
            Notes.Add(new MeasureRow(null, "Maker"));
            Notes.Add(new MeasureRow(null, "Model(1)"));
            Notes.Add(new MeasureRow(null, "Serial No(1)"));
            Notes.Add(new MeasureRow(null, "Model(2)"));
            Notes.Add(new MeasureRow(null, "Serial No(2)"));
            Notes.Add(new MeasureRow(null, "Model(3)"));
            Notes.Add(new MeasureRow(null, "Serial No(3)"));
            Notes.Add(new MeasureRow(null, "Exp. Device"));
            Notes.Add(new MeasureRow(null, "Refrigerant"));
            Notes.Add(new MeasureRow(null, "Ref. Charge"));
            Notes.Add(new MeasureRow(null, "Memo"));

            Rateds = new List<MeasureRow>();
            Rateds.Add(new MeasureRow(null, "Rated Capacity"));
            Rateds.Add(new MeasureRow(null, "Rated Power Input"));
            Rateds.Add(new MeasureRow(null, "Rated EER/COP"));
            Rateds.Add(new MeasureRow(null));
            Rateds.Add(new MeasureRow(null, "Voltage"));
            Rateds.Add(new MeasureRow(null, "Current"));
            Rateds.Add(new MeasureRow(null, "Frequency"));
            Rateds.Add(new MeasureRow(null, "Selected PM(IDU)"));
            Rateds.Add(new MeasureRow(null, "Selected PM(ODU)"));
            Rateds.Add(new MeasureRow(null, "Phase(ODU)"));

            Indoors11 = new List<MeasureRow>();
            Indoors11.Add(new MeasureRow(null, "Use", "Indoor"));
            Indoors11.Add(new MeasureRow(null, "Mode", "Use"));
            Indoors11.Add(new MeasureRow(null, "Duct", "Use"));
            Indoors11.Add(new MeasureRow(null, "DB", "0.0"));
            Indoors11.Add(new MeasureRow(null, "WB", "0.0"));

            Indoors12 = new List<MeasureRow>();
            Indoors12.Add(new MeasureRow(null, "Use", "Indoor"));
            Indoors12.Add(new MeasureRow(null, "Mode", "Use"));
            Indoors12.Add(new MeasureRow(null, "Duct", "Use"));
            Indoors12.Add(new MeasureRow(null, "DB", "0.0"));
            Indoors12.Add(new MeasureRow(null, "WB", "0.0"));

            Indoors21 = new List<MeasureRow>();
            Indoors21.Add(new MeasureRow(null, "Use", "Indoor"));
            Indoors21.Add(new MeasureRow(null, "Mode", "Use"));
            Indoors21.Add(new MeasureRow(null, "Duct", "Use"));
            Indoors21.Add(new MeasureRow(null, "DB", "0.0"));
            Indoors21.Add(new MeasureRow(null, "WB", "0.0"));

            Indoors22 = new List<MeasureRow>();
            Indoors22.Add(new MeasureRow(null, "Use", "Indoor"));
            Indoors22.Add(new MeasureRow(null, "Mode", "Use"));
            Indoors22.Add(new MeasureRow(null, "Duct", "Use"));
            Indoors22.Add(new MeasureRow(null, "DB", "0.0"));
            Indoors22.Add(new MeasureRow(null, "WB", "0.0"));

            Outdoors = new List<MeasureRow>();
            Outdoors.Add(new MeasureRow(null, "Use", "Outdoor"));
            Outdoors.Add(new MeasureRow(null, "DP Sensor", "Use"));
            Outdoors.Add(new MeasureRow(null, "Auto Voltage", "Use"));
            Outdoors.Add(new MeasureRow(null, "DB", "0.0"));
            Outdoors.Add(new MeasureRow(null, "WB", "0.0"));

            Pressures = new List<MeasureRow>();
            for (int i = 0; i < Resource.Client.Devices.Recorder.PressureLength; i++)
            {
                Pressures.Add(new MeasureRow(value.Measured[$"Pressure.{i + 1}"], "", "", i + 1));
            }

            int count = Resource.Client.Devices.Recorder.ThermocoupleLength / 3;

            IndoorTC1 = new List<MeasureRow>();
            for (int i = 0; i < count; i++)
            {
                IndoorTC1.Add(new MeasureRow(value.Measured[$"ID1.TC.{i + 1:d3}"], "", "", i + 1));
            }

            IndoorTC2 = new List<MeasureRow>();
            for (int i = 0; i < count; i++)
            {
                IndoorTC2.Add(new MeasureRow(value.Measured[$"ID2.TC.{i + 1:d3}"], "", "", i + 1));
            }

            OutdoorTC = new List<MeasureRow>();
            for (int i = 0; i < count; i++)
            {
                OutdoorTC.Add(new MeasureRow(value.Measured[$"OD.TC.{i + 1:d3}"], "", "", i + 1));
            }
        }

        public CtrlTestMeas Control { get; set; }
        public List<MeasureRow> TotalRateds { get; set; }
        public List<MeasureRow> RunStates { get; set; }
        public List<MeasureAirSideRow> AirSides { get; set; }
        public List<MeasureNozzleRow> Nozzles { get; set; }
        public List<MeasureRow> Outsides { get; set; }
        public List<MeasureRow> Methods { get; set; }
        public List<MeasureRow> Notes { get; set; }
        public List<MeasureRow> Rateds { get; set; }
        public List<MeasureRow> Indoors11 { get; set; }
        public List<MeasureRow> Indoors12 { get; set; }
        public List<MeasureRow> Indoors21 { get; set; }
        public List<MeasureRow> Indoors22 { get; set; }
        public List<MeasureRow> Outdoors { get; set; }
        public List<MeasureRow> IndoorTC1 { get; set; }
        public List<MeasureRow> IndoorTC2 { get; set; }
        public List<MeasureRow> OutdoorTC { get; set; }
        public List<MeasureRow> Pressures { get; set; }
        public Dictionary<string, ValueRow> GraphRows { get; set; }
    }
    #endregion

    #region MeasureRow
    public class MeasureRow
    {
        public MeasureRow(ValueRow row, string head = "", string strValue = "", int no = 0, int recNo = 0)
        {
            this.Row = row;
            this.head = head;
            this.strValue = strValue;
            this.No = no;
            this.RecNo = recNo;
            this.state = EValueState.None;
        }

        private string head;

        public int RecNo { get; set; }

        public int No { get; }

        public ValueRow Row { get; set; }

        public string Name
        {
            get
            {
                if (head.ToLower() != "none") return head;
                if (Row == null) return string.Empty;

                return Row?.Name;
            }
            set
            {
                head = value;
            }
        }

        private string strValue;
        public string Value
        {
            get
            {
                if (string.IsNullOrWhiteSpace(strValue) == false) return strValue;
                if (Row == null) return string.Empty;

                return Row.StringValue;
            }
            set
            {
                strValue = value;
            }
        }

        public string Format
        {
            get
            {
                return Row?.Format;
            }
        }

        private string unit;
        public string Unit
        {
            get
            {
                if (string.IsNullOrWhiteSpace(unit) == false) return unit;
                if (Row == null) return string.Empty;

                return Row.Unit.ToDescription;
            }
            set
            {
                unit = value;
            }
        }

        private EValueState state;
        public EValueState State
        {
            get
            {
                if (Value == "-") return EValueState.None;
                if (Row != null) return Row.State;

                return state;
            }
            set
            {
                state = value;
            }
        }
    }
    #endregion

    #region MeasureAirSideRow
    public class MeasureAirSideRow
    {
        public MeasureAirSideRow(string name, ValueRow id11Row,
            ValueRow id12Row, ValueRow id21Row, ValueRow id22Row, bool empty = false)
        {
            this.Name = name;
            this.ID11Row = id11Row;
            this.ID12Row = id12Row;
            this.ID21Row = id21Row;
            this.ID22Row = id22Row;
            this.empty = empty;

            this.Indoor11Enabled = true;
            this.Indoor12Enabled = true;
            this.Indoor21Enabled = true;
            this.Indoor22Enabled = true;
        }

        private bool empty;

        private string name;
        public string Name
        {
            get
            {
                if (empty == true) return "";
                return name;
            }
            private set
            {
                name = value;
            }
        }

        public ValueRow ID11Row;
        public string Indoor11
        {
            get
            {
                if (empty == true) return "";
                if (ID11Row == null) return "-";
                if (Indoor11Enabled == false) return "-";

                return ID11Row.StringValue;
            }
        }

        public EValueState Indoor11State
        {
            get
            {
                if (Indoor11Enabled == false) return EValueState.None;

                return (ID11Row == null) ? EValueState.None : ID11Row.State;
            }
        }

        public bool Indoor11Enabled { get; set; }

        public ValueRow ID12Row;
        public string Indoor12
        {
            get
            {
                if (empty == true) return "";
                if (ID12Row == null) return "-";
                if (Indoor12Enabled == false) return "-";

                return ID12Row.StringValue;
            }
        }

        public EValueState Indoor12State
        {
            get
            {
                if (Indoor12Enabled == false) return EValueState.None;

                return (ID12Row == null) ? EValueState.None : ID12Row.State;
            }
        }

        public bool Indoor12Enabled { get; set; }

        public ValueRow ID21Row;
        public string Indoor21
        {
            get
            {
                if (empty == true) return "";
                if (ID21Row == null) return "-";
                if (Indoor21Enabled == false) return "-";

                return ID21Row.StringValue;
            }
        }

        public EValueState Indoor21State
        {
            get
            {
                if (Indoor21Enabled == false) return EValueState.None;

                return (ID21Row == null) ? EValueState.None : ID21Row.State;
            }
        }

        public bool Indoor21Enabled { get; set; }

        public ValueRow ID22Row;
        public string Indoor22
        {
            get
            {
                if (empty == true) return "";
                if (ID22Row == null) return "-";
                if (Indoor22Enabled == false) return "-";

                return ID22Row.StringValue;
            }
        }

        public EValueState Indoor22State
        {
            get
            {
                if (Indoor22Enabled == false) return EValueState.None;

                return (ID22Row == null) ? EValueState.None : ID22Row.State;
            }
        }

        public bool Indoor22Enabled { get; set; }

        public string Format
        {
            get
            {
                if (empty == true) return "";
                return ID11Row.Format;
            }
        }

        public string Unit
        {
            get
            {
                if (empty == true) return "";

                string unit = "-";
                if (ID11Row != null) unit = ID11Row.Unit.ToDescription;
                else if (ID12Row != null) unit = ID12Row.Unit.ToDescription;
                else if (ID21Row != null) unit = ID21Row.Unit.ToDescription;
                else if (ID22Row != null) unit = ID22Row.Unit.ToDescription;

                return unit;
            }
        }
    }
    #endregion

    #region MeasureNozzleRow
    public class MeasureNozzleRow
    {
        public MeasureNozzleRow(string name,
            float id11Diameter, ValueRow id11Row,
            float id12Diameter, ValueRow id12Row,
            float id21Diameter, ValueRow id21Row,
            float id22Diameter, ValueRow id22Row)
        {
            Name = name;

            this.id11Diameter = id11Diameter;
            this.id12Diameter = id12Diameter;
            this.id21Diameter = id21Diameter;
            this.id22Diameter = id22Diameter;

            this.ID11Row = id11Row;
            this.ID12Row = id12Row;
            this.ID21Row = id21Row;
            this.ID22Row = id22Row;

            this.ID11Enabled = true;
            this.ID12Enabled = true;
            this.ID21Enabled = true;
            this.ID22Enabled = true;
        }

        public string Name { get; set; }

        public void SetDiameter(float id11, float id12, float id21, float id22)
        {
            this.id11Diameter = id11;
            this.id12Diameter = id12;
            this.id21Diameter = id21;
            this.id22Diameter = id22;
        }

        private float id11Diameter;
        public string ID11Diameter
        {
            get
            {
                if (ID11Enabled == false) return "-";

                return $"{id11Diameter}mm";
            }
        }
        public ValueRow ID11Row { get; set; }
        public int ID11State
        {
            get
            {
                if (ID11Enabled == false) return -1;

                return (ID11Row.Raw < 0.1) ? 0 : 1;
            }
        }
        public bool ID11Enabled { get; set; }

        private float id12Diameter;
        public string ID12Diameter
        {
            get
            {
                if (ID12Enabled == false) return "-";

                return $"{id12Diameter}mm";
            }
        }
        public ValueRow ID12Row { get; set; }
        public int ID12State
        {
            get
            {
                if (ID12Enabled == false) return -1;

                return (ID12Row.Raw < 0.1) ? 0 : 1;
            }
        }
        public bool ID12Enabled { get; set; }

        private float id21Diameter;
        public string ID21Diameter
        {
            get
            {
                if (ID21Enabled == false) return "-";

                return $"{id21Diameter}mm";
            }
        }
        public ValueRow ID21Row { get; set; }
        public int ID21State
        {
            get
            {
                if (ID21Enabled == false) return -1;

                return (ID21Row.Raw < 0.1) ? 0 : 1;
            }
        }
        public bool ID21Enabled { get; set; }

        private float id22Diameter;
        public string ID22Diameter
        {
            get
            {
                if (ID22Enabled == false) return "-";

                return $"{id22Diameter}mm";
            }
        }
        public ValueRow ID22Row { get; set; }
        public int ID22State
        {
            get
            {
                if (ID22Enabled == false) return -1;

                return (ID22Row.Raw < 0.1) ? 0 : 1;
            }
        }
        public bool ID22Enabled { get; set; }
    }
    #endregion

    #region GraphSeriesRow
    public class GraphSeriesRow
    {
        public GraphSeriesRow(bool active, Color color, string name, string value, string unit)
        {
            Checked = active;
            Color = color;
            Name = name;
            Value = value;
            Unit = unit;
        }

        public bool Checked { get; set; }
        public Color Color { get; set; }
        public string Name { get; set; }
        public string Value { get; set; }
        public string Unit { get; set; }
    }
    #endregion
}
<file_sep>﻿namespace Hnc.Calorimeter.Client
{
    partial class CtrlConfigCoefficient
    {
        /// <summary> 
        /// Required designer variable.
        /// </summary>
        private System.ComponentModel.IContainer components = null;

        /// <summary> 
        /// Clean up any resources being used.
        /// </summary>
        /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
        protected override void Dispose(bool disposing)
        {
            if (disposing && (components != null))
            {
                components.Dispose();
            }
            base.Dispose(disposing);
        }

        #region Component Designer generated code

        /// <summary> 
        /// Required method for Designer support - do not modify 
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(CtrlConfigCoefficient));
            this.menuPanel = new Ulee.Controls.UlPanel();
            this.saveButton = new DevExpress.XtraEditors.SimpleButton();
            this.thermoPanel = new Ulee.Controls.UlPanel();
            this.coeffGrid = new DevExpress.XtraGrid.GridControl();
            this.coeffGridView = new DevExpress.XtraGrid.Views.Grid.GridView();
            this.coeffNameColumn = new DevExpress.XtraGrid.Columns.GridColumn();
            this.coeffID11Column = new DevExpress.XtraGrid.Columns.GridColumn();
            this.coeffID12Column = new DevExpress.XtraGrid.Columns.GridColumn();
            this.coeffID21Column = new DevExpress.XtraGrid.Columns.GridColumn();
            this.coeffID22Column = new DevExpress.XtraGrid.Columns.GridColumn();
            this.coeffTitlePanel = new Ulee.Controls.UlPanel();
            this.menuPanel.SuspendLayout();
            this.thermoPanel.SuspendLayout();
            ((System.ComponentModel.ISupportInitialize)(this.coeffGrid)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.coeffGridView)).BeginInit();
            this.SuspendLayout();
            // 
            // bgPanel
            // 
            this.bgPanel.BevelOuter = Ulee.Controls.EUlBevelStyle.None;
            this.bgPanel.Size = new System.Drawing.Size(1816, 915);
            // 
            // menuPanel
            // 
            this.menuPanel.BackColor = System.Drawing.Color.Silver;
            this.menuPanel.BevelInner = Ulee.Controls.EUlBevelStyle.None;
            this.menuPanel.BevelOuter = Ulee.Controls.EUlBevelStyle.Lowered;
            this.menuPanel.Controls.Add(this.saveButton);
            this.menuPanel.InnerColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.menuPanel.InnerColor2 = System.Drawing.Color.White;
            this.menuPanel.Location = new System.Drawing.Point(1732, 0);
            this.menuPanel.Name = "menuPanel";
            this.menuPanel.OuterColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.menuPanel.OuterColor2 = System.Drawing.Color.White;
            this.menuPanel.Size = new System.Drawing.Size(84, 915);
            this.menuPanel.Spacing = 0;
            this.menuPanel.TabIndex = 11;
            this.menuPanel.TextHAlign = Ulee.Controls.EUlHoriAlign.Center;
            this.menuPanel.TextVAlign = Ulee.Controls.EUlVertAlign.Middle;
            // 
            // saveButton
            // 
            this.saveButton.AllowFocus = false;
            this.saveButton.Appearance.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.saveButton.Appearance.Options.UseBorderColor = true;
            this.saveButton.Appearance.Options.UseFont = true;
            this.saveButton.Appearance.Options.UseTextOptions = true;
            this.saveButton.Appearance.TextOptions.VAlignment = DevExpress.Utils.VertAlignment.Bottom;
            this.saveButton.ImageOptions.Image = ((System.Drawing.Image)(resources.GetObject("saveButton.ImageOptions.Image")));
            this.saveButton.ImageOptions.ImageToTextAlignment = DevExpress.XtraEditors.ImageAlignToText.TopCenter;
            this.saveButton.ImageOptions.ImageToTextIndent = 12;
            this.saveButton.Location = new System.Drawing.Point(2, 854);
            this.saveButton.Name = "saveButton";
            this.saveButton.Size = new System.Drawing.Size(80, 58);
            this.saveButton.TabIndex = 21;
            this.saveButton.TabStop = false;
            this.saveButton.Text = "Save";
            this.saveButton.Click += new System.EventHandler(this.saveButton_Click);
            // 
            // thermoPanel
            // 
            this.thermoPanel.BevelInner = Ulee.Controls.EUlBevelStyle.Raised;
            this.thermoPanel.BevelOuter = Ulee.Controls.EUlBevelStyle.Lowered;
            this.thermoPanel.Controls.Add(this.coeffGrid);
            this.thermoPanel.Controls.Add(this.coeffTitlePanel);
            this.thermoPanel.InnerColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.thermoPanel.InnerColor2 = System.Drawing.Color.White;
            this.thermoPanel.Location = new System.Drawing.Point(0, 0);
            this.thermoPanel.Name = "thermoPanel";
            this.thermoPanel.OuterColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.thermoPanel.OuterColor2 = System.Drawing.Color.White;
            this.thermoPanel.Size = new System.Drawing.Size(850, 915);
            this.thermoPanel.Spacing = 0;
            this.thermoPanel.TabIndex = 0;
            this.thermoPanel.TextHAlign = Ulee.Controls.EUlHoriAlign.Center;
            this.thermoPanel.TextVAlign = Ulee.Controls.EUlVertAlign.Middle;
            // 
            // coeffGrid
            // 
            this.coeffGrid.Location = new System.Drawing.Point(6, 40);
            this.coeffGrid.MainView = this.coeffGridView;
            this.coeffGrid.Name = "coeffGrid";
            this.coeffGrid.Size = new System.Drawing.Size(838, 869);
            this.coeffGrid.TabIndex = 0;
            this.coeffGrid.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] {
            this.coeffGridView});
            // 
            // coeffGridView
            // 
            this.coeffGridView.Appearance.FixedLine.Font = new System.Drawing.Font("Arial", 9F);
            this.coeffGridView.Appearance.FixedLine.Options.UseFont = true;
            this.coeffGridView.Appearance.FocusedCell.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.coeffGridView.Appearance.FocusedCell.Options.UseFont = true;
            this.coeffGridView.Appearance.FocusedRow.Font = new System.Drawing.Font("Arial", 9F);
            this.coeffGridView.Appearance.FocusedRow.Options.UseFont = true;
            this.coeffGridView.Appearance.HeaderPanel.Font = new System.Drawing.Font("Arial", 9F);
            this.coeffGridView.Appearance.HeaderPanel.Options.UseFont = true;
            this.coeffGridView.Appearance.HideSelectionRow.Font = new System.Drawing.Font("Arial", 9F);
            this.coeffGridView.Appearance.HideSelectionRow.Options.UseFont = true;
            this.coeffGridView.Appearance.OddRow.Font = new System.Drawing.Font("Arial", 9F);
            this.coeffGridView.Appearance.OddRow.Options.UseFont = true;
            this.coeffGridView.Appearance.Preview.Font = new System.Drawing.Font("Arial", 9F);
            this.coeffGridView.Appearance.Preview.Options.UseFont = true;
            this.coeffGridView.Appearance.Row.Font = new System.Drawing.Font("Arial", 9F);
            this.coeffGridView.Appearance.Row.Options.UseFont = true;
            this.coeffGridView.Appearance.SelectedRow.Font = new System.Drawing.Font("Arial", 9F);
            this.coeffGridView.Appearance.SelectedRow.Options.UseFont = true;
            this.coeffGridView.Appearance.ViewCaption.Font = new System.Drawing.Font("Arial", 9F);
            this.coeffGridView.Appearance.ViewCaption.Options.UseFont = true;
            this.coeffGridView.Columns.AddRange(new DevExpress.XtraGrid.Columns.GridColumn[] {
            this.coeffNameColumn,
            this.coeffID11Column,
            this.coeffID12Column,
            this.coeffID21Column,
            this.coeffID22Column});
            this.coeffGridView.CustomizationFormBounds = new System.Drawing.Rectangle(2884, 580, 210, 186);
            this.coeffGridView.GridControl = this.coeffGrid;
            this.coeffGridView.HorzScrollVisibility = DevExpress.XtraGrid.Views.Base.ScrollVisibility.Never;
            this.coeffGridView.Name = "coeffGridView";
            this.coeffGridView.OptionsClipboard.AllowCopy = DevExpress.Utils.DefaultBoolean.True;
            this.coeffGridView.OptionsClipboard.AllowExcelFormat = DevExpress.Utils.DefaultBoolean.True;
            this.coeffGridView.OptionsClipboard.CopyColumnHeaders = DevExpress.Utils.DefaultBoolean.False;
            this.coeffGridView.OptionsNavigation.EnterMoveNextColumn = true;
            this.coeffGridView.OptionsSelection.MultiSelect = true;
            this.coeffGridView.OptionsView.ColumnAutoWidth = false;
            this.coeffGridView.OptionsView.ShowGroupPanel = false;
            this.coeffGridView.OptionsView.ShowIndicator = false;
            this.coeffGridView.Tag = 1;
            // 
            // coeffNameColumn
            // 
            this.coeffNameColumn.AppearanceCell.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.coeffNameColumn.AppearanceCell.Options.UseFont = true;
            this.coeffNameColumn.AppearanceHeader.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.coeffNameColumn.AppearanceHeader.Options.UseFont = true;
            this.coeffNameColumn.Caption = "Name";
            this.coeffNameColumn.FieldName = "Name";
            this.coeffNameColumn.Name = "coeffNameColumn";
            this.coeffNameColumn.OptionsColumn.AllowEdit = false;
            this.coeffNameColumn.OptionsColumn.AllowFocus = false;
            this.coeffNameColumn.OptionsColumn.AllowGroup = DevExpress.Utils.DefaultBoolean.False;
            this.coeffNameColumn.OptionsColumn.AllowIncrementalSearch = false;
            this.coeffNameColumn.OptionsColumn.AllowMerge = DevExpress.Utils.DefaultBoolean.False;
            this.coeffNameColumn.OptionsColumn.AllowMove = false;
            this.coeffNameColumn.OptionsColumn.AllowShowHide = false;
            this.coeffNameColumn.OptionsColumn.AllowSize = false;
            this.coeffNameColumn.OptionsColumn.AllowSort = DevExpress.Utils.DefaultBoolean.False;
            this.coeffNameColumn.OptionsColumn.FixedWidth = true;
            this.coeffNameColumn.OptionsColumn.ImmediateUpdateRowPosition = DevExpress.Utils.DefaultBoolean.False;
            this.coeffNameColumn.OptionsColumn.Printable = DevExpress.Utils.DefaultBoolean.False;
            this.coeffNameColumn.OptionsColumn.ReadOnly = true;
            this.coeffNameColumn.OptionsFilter.AllowAutoFilter = false;
            this.coeffNameColumn.OptionsFilter.AllowFilter = false;
            this.coeffNameColumn.Visible = true;
            this.coeffNameColumn.VisibleIndex = 0;
            this.coeffNameColumn.Width = 182;
            // 
            // coeffID11Column
            // 
            this.coeffID11Column.AppearanceCell.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.coeffID11Column.AppearanceCell.Options.UseFont = true;
            this.coeffID11Column.AppearanceCell.Options.UseTextOptions = true;
            this.coeffID11Column.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Far;
            this.coeffID11Column.AppearanceHeader.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.coeffID11Column.AppearanceHeader.Options.UseFont = true;
            this.coeffID11Column.AppearanceHeader.Options.UseTextOptions = true;
            this.coeffID11Column.AppearanceHeader.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
            this.coeffID11Column.Caption = "Indoor No.1 #1";
            this.coeffID11Column.DisplayFormat.FormatString = "{0:f3}";
            this.coeffID11Column.DisplayFormat.FormatType = DevExpress.Utils.FormatType.Numeric;
            this.coeffID11Column.FieldName = "ID11";
            this.coeffID11Column.Name = "coeffID11Column";
            this.coeffID11Column.OptionsColumn.AllowGroup = DevExpress.Utils.DefaultBoolean.False;
            this.coeffID11Column.OptionsColumn.AllowIncrementalSearch = false;
            this.coeffID11Column.OptionsColumn.AllowMerge = DevExpress.Utils.DefaultBoolean.False;
            this.coeffID11Column.OptionsColumn.AllowMove = false;
            this.coeffID11Column.OptionsColumn.AllowShowHide = false;
            this.coeffID11Column.OptionsColumn.AllowSize = false;
            this.coeffID11Column.OptionsColumn.AllowSort = DevExpress.Utils.DefaultBoolean.False;
            this.coeffID11Column.OptionsColumn.FixedWidth = true;
            this.coeffID11Column.OptionsColumn.ImmediateUpdateRowPosition = DevExpress.Utils.DefaultBoolean.False;
            this.coeffID11Column.OptionsColumn.Printable = DevExpress.Utils.DefaultBoolean.False;
            this.coeffID11Column.OptionsColumn.TabStop = false;
            this.coeffID11Column.OptionsFilter.AllowAutoFilter = false;
            this.coeffID11Column.OptionsFilter.AllowFilter = false;
            this.coeffID11Column.Visible = true;
            this.coeffID11Column.VisibleIndex = 1;
            this.coeffID11Column.Width = 158;
            // 
            // coeffID12Column
            // 
            this.coeffID12Column.AppearanceCell.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.coeffID12Column.AppearanceCell.Options.UseFont = true;
            this.coeffID12Column.AppearanceCell.Options.UseTextOptions = true;
            this.coeffID12Column.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Far;
            this.coeffID12Column.AppearanceHeader.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.coeffID12Column.AppearanceHeader.Options.UseFont = true;
            this.coeffID12Column.AppearanceHeader.Options.UseTextOptions = true;
            this.coeffID12Column.AppearanceHeader.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
            this.coeffID12Column.Caption = "Indoor No.1 #2";
            this.coeffID12Column.DisplayFormat.FormatString = "{0:f3}";
            this.coeffID12Column.DisplayFormat.FormatType = DevExpress.Utils.FormatType.Numeric;
            this.coeffID12Column.FieldName = "ID12";
            this.coeffID12Column.Name = "coeffID12Column";
            this.coeffID12Column.OptionsColumn.AllowGroup = DevExpress.Utils.DefaultBoolean.False;
            this.coeffID12Column.OptionsColumn.AllowIncrementalSearch = false;
            this.coeffID12Column.OptionsColumn.AllowMerge = DevExpress.Utils.DefaultBoolean.False;
            this.coeffID12Column.OptionsColumn.AllowMove = false;
            this.coeffID12Column.OptionsColumn.AllowShowHide = false;
            this.coeffID12Column.OptionsColumn.AllowSize = false;
            this.coeffID12Column.OptionsColumn.AllowSort = DevExpress.Utils.DefaultBoolean.False;
            this.coeffID12Column.OptionsColumn.FixedWidth = true;
            this.coeffID12Column.OptionsColumn.ImmediateUpdateRowPosition = DevExpress.Utils.DefaultBoolean.False;
            this.coeffID12Column.OptionsColumn.Printable = DevExpress.Utils.DefaultBoolean.False;
            this.coeffID12Column.OptionsFilter.AllowAutoFilter = false;
            this.coeffID12Column.OptionsFilter.AllowFilter = false;
            this.coeffID12Column.OptionsFilter.AllowFilterModeChanging = DevExpress.Utils.DefaultBoolean.False;
            this.coeffID12Column.OptionsFilter.FilterBySortField = DevExpress.Utils.DefaultBoolean.False;
            this.coeffID12Column.OptionsFilter.ImmediateUpdateAutoFilter = false;
            this.coeffID12Column.Visible = true;
            this.coeffID12Column.VisibleIndex = 2;
            this.coeffID12Column.Width = 158;
            // 
            // coeffID21Column
            // 
            this.coeffID21Column.AppearanceCell.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.coeffID21Column.AppearanceCell.Options.UseFont = true;
            this.coeffID21Column.AppearanceCell.Options.UseTextOptions = true;
            this.coeffID21Column.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Far;
            this.coeffID21Column.AppearanceHeader.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.coeffID21Column.AppearanceHeader.Options.UseFont = true;
            this.coeffID21Column.AppearanceHeader.Options.UseTextOptions = true;
            this.coeffID21Column.AppearanceHeader.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
            this.coeffID21Column.Caption = "Indoor No.2 #1";
            this.coeffID21Column.DisplayFormat.FormatString = "{0:f3}";
            this.coeffID21Column.DisplayFormat.FormatType = DevExpress.Utils.FormatType.Numeric;
            this.coeffID21Column.FieldName = "ID21";
            this.coeffID21Column.Name = "coeffID21Column";
            this.coeffID21Column.OptionsColumn.AllowGroup = DevExpress.Utils.DefaultBoolean.False;
            this.coeffID21Column.OptionsColumn.AllowIncrementalSearch = false;
            this.coeffID21Column.OptionsColumn.AllowMerge = DevExpress.Utils.DefaultBoolean.False;
            this.coeffID21Column.OptionsColumn.AllowMove = false;
            this.coeffID21Column.OptionsColumn.AllowShowHide = false;
            this.coeffID21Column.OptionsColumn.AllowSize = false;
            this.coeffID21Column.OptionsColumn.AllowSort = DevExpress.Utils.DefaultBoolean.False;
            this.coeffID21Column.OptionsColumn.FixedWidth = true;
            this.coeffID21Column.OptionsColumn.ImmediateUpdateRowPosition = DevExpress.Utils.DefaultBoolean.False;
            this.coeffID21Column.OptionsColumn.Printable = DevExpress.Utils.DefaultBoolean.False;
            this.coeffID21Column.OptionsFilter.AllowAutoFilter = false;
            this.coeffID21Column.OptionsFilter.AllowFilter = false;
            this.coeffID21Column.OptionsFilter.AllowFilterModeChanging = DevExpress.Utils.DefaultBoolean.False;
            this.coeffID21Column.OptionsFilter.FilterBySortField = DevExpress.Utils.DefaultBoolean.False;
            this.coeffID21Column.OptionsFilter.ImmediateUpdateAutoFilter = false;
            this.coeffID21Column.Visible = true;
            this.coeffID21Column.VisibleIndex = 3;
            this.coeffID21Column.Width = 158;
            // 
            // coeffID22Column
            // 
            this.coeffID22Column.AppearanceCell.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.coeffID22Column.AppearanceCell.Options.UseFont = true;
            this.coeffID22Column.AppearanceCell.Options.UseTextOptions = true;
            this.coeffID22Column.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Far;
            this.coeffID22Column.AppearanceHeader.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.coeffID22Column.AppearanceHeader.Options.UseFont = true;
            this.coeffID22Column.AppearanceHeader.Options.UseTextOptions = true;
            this.coeffID22Column.AppearanceHeader.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
            this.coeffID22Column.Caption = "Indoor No.2 #2";
            this.coeffID22Column.DisplayFormat.FormatString = "{0:f3}";
            this.coeffID22Column.DisplayFormat.FormatType = DevExpress.Utils.FormatType.Numeric;
            this.coeffID22Column.FieldName = "ID22";
            this.coeffID22Column.Name = "coeffID22Column";
            this.coeffID22Column.OptionsColumn.AllowGroup = DevExpress.Utils.DefaultBoolean.False;
            this.coeffID22Column.OptionsColumn.AllowIncrementalSearch = false;
            this.coeffID22Column.OptionsColumn.AllowMerge = DevExpress.Utils.DefaultBoolean.False;
            this.coeffID22Column.OptionsColumn.AllowMove = false;
            this.coeffID22Column.OptionsColumn.AllowShowHide = false;
            this.coeffID22Column.OptionsColumn.AllowSize = false;
            this.coeffID22Column.OptionsColumn.AllowSort = DevExpress.Utils.DefaultBoolean.False;
            this.coeffID22Column.OptionsColumn.FixedWidth = true;
            this.coeffID22Column.OptionsColumn.ImmediateUpdateRowPosition = DevExpress.Utils.DefaultBoolean.False;
            this.coeffID22Column.OptionsColumn.Printable = DevExpress.Utils.DefaultBoolean.False;
            this.coeffID22Column.OptionsFilter.AllowAutoFilter = false;
            this.coeffID22Column.OptionsFilter.AllowFilter = false;
            this.coeffID22Column.OptionsFilter.AllowFilterModeChanging = DevExpress.Utils.DefaultBoolean.False;
            this.coeffID22Column.OptionsFilter.FilterBySortField = DevExpress.Utils.DefaultBoolean.False;
            this.coeffID22Column.OptionsFilter.ImmediateUpdateAutoFilter = false;
            this.coeffID22Column.Visible = true;
            this.coeffID22Column.VisibleIndex = 4;
            this.coeffID22Column.Width = 158;
            // 
            // coeffTitlePanel
            // 
            this.coeffTitlePanel.BackColor = System.Drawing.Color.DeepSkyBlue;
            this.coeffTitlePanel.BevelInner = Ulee.Controls.EUlBevelStyle.None;
            this.coeffTitlePanel.BevelOuter = Ulee.Controls.EUlBevelStyle.Lowered;
            this.coeffTitlePanel.Font = new System.Drawing.Font("Arial Rounded MT Bold", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.coeffTitlePanel.ForeColor = System.Drawing.Color.White;
            this.coeffTitlePanel.InnerColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.coeffTitlePanel.InnerColor2 = System.Drawing.Color.White;
            this.coeffTitlePanel.Location = new System.Drawing.Point(6, 6);
            this.coeffTitlePanel.Name = "coeffTitlePanel";
            this.coeffTitlePanel.OuterColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.coeffTitlePanel.OuterColor2 = System.Drawing.Color.White;
            this.coeffTitlePanel.Size = new System.Drawing.Size(838, 28);
            this.coeffTitlePanel.Spacing = 0;
            this.coeffTitlePanel.TabIndex = 5;
            this.coeffTitlePanel.Text = "COEFFICIENT";
            this.coeffTitlePanel.TextHAlign = Ulee.Controls.EUlHoriAlign.Center;
            this.coeffTitlePanel.TextVAlign = Ulee.Controls.EUlVertAlign.Middle;
            // 
            // CtrlConfigCoefficient
            // 
            this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            this.Controls.Add(this.thermoPanel);
            this.Controls.Add(this.menuPanel);
            this.Name = "CtrlConfigCoefficient";
            this.Size = new System.Drawing.Size(1816, 915);
            this.Load += new System.EventHandler(this.CtrlConfigCoefficient_Load);
            this.Enter += new System.EventHandler(this.CtrlConfigCoefficient_Enter);
            this.Controls.SetChildIndex(this.bgPanel, 0);
            this.Controls.SetChildIndex(this.menuPanel, 0);
            this.Controls.SetChildIndex(this.thermoPanel, 0);
            this.menuPanel.ResumeLayout(false);
            this.thermoPanel.ResumeLayout(false);
            ((System.ComponentModel.ISupportInitialize)(this.coeffGrid)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.coeffGridView)).EndInit();
            this.ResumeLayout(false);
            this.PerformLayout();

        }

        #endregion

        private Ulee.Controls.UlPanel menuPanel;
        private DevExpress.XtraEditors.SimpleButton saveButton;
        private Ulee.Controls.UlPanel thermoPanel;
        private DevExpress.XtraGrid.GridControl coeffGrid;
        private DevExpress.XtraGrid.Views.Grid.GridView coeffGridView;
        private DevExpress.XtraGrid.Columns.GridColumn coeffNameColumn;
        private DevExpress.XtraGrid.Columns.GridColumn coeffID11Column;
        private Ulee.Controls.UlPanel coeffTitlePanel;
        private DevExpress.XtraGrid.Columns.GridColumn coeffID12Column;
        private DevExpress.XtraGrid.Columns.GridColumn coeffID21Column;
        private DevExpress.XtraGrid.Columns.GridColumn coeffID22Column;
    }
}
<file_sep>﻿using HNCSystem.Calorimeter.Shared.Utils;
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace HNCSystem.Calorimeter.Shared.Manager
{
    public class DeviceSettings : Settings<DeviceSettings>  // 물리 장비의 설정
    {
        private IDictionary<DeviceKind, IList<string>> deviceNames;

        public SortedDictionary<string, DeviceSetting> Settings { get; private set; } = new SortedDictionary<string, DeviceSetting>();

        protected override void SetDefault()
        {
#if KDNP21
            Settings = new SortedDictionary<string, DeviceSetting>
            {
                ["Controller"] = new DeviceSetting
                {
                    DeviceKind = DeviceKind.Controller,
                    DeviceClass = "HNCSystem.Calorimeter.Shared.Device.UT55AController",
                    ConnectionString = "Ip=192.168.1.101; Port=4001",
                    ConnectionTimeout = 2000,
                    ReceivedTimeout = 2000,
                    Addresses = new[] { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18 },

                    Properties = new Dictionary<string, object>
                    {
                        ["DefaultFixedDecimal"] = 100d,
                        ["FixedDecimal#13"] = 10d,
                        //["FixedDecimal#11"] = 10d,
                        ["Name#1"] = "INDOOR NO.1 DB (℃)",
                        ["Name#2"] = "INDOOR NO.1 WB (℃)",
                        ["Name#3"] = "ID.1 CHAMBER ΔP (mmAq)",
                        ["Name#4"] = "ID.1 NOZZLE ΔP (mmAq)",
                        ["Name#5"] = "INDOOR NO.2 DB (℃)",
                        ["Name#6"] = "INDOOR NO.2 WB (℃)",
                        ["Name#7"] = "ID.2 CHAMBER ΔP (mmAq)",
                        ["Name#8"] = "ID.2 NOZZLE ΔP (mmAq)",
                        ["Name#9"] = "OUTDOOR SIDE DB (℃)",
                        ["Name#10"] = "OUTDOOR SIDE WB (℃)",
                        ["Name#11"] = "OD CHAMBER ΔP (mmAq)",
                        ["Name#12"] = "OD NOZZLE ΔP (mmAq)",
                        ["Name#13"] = "TEST UNIT VOLTAGE (V)",
                        ["Name#14"] = "열원 WATER TEMP. (℃)",
                        ["Name#15"] = "열원 WATER FLOW (LPM)",
                        ["Name#16"] = "부하 WATER TEMP. (℃)",
                        ["Name#17"] = "부하 WATER FLOW (LPM)",
                        ["Name#18"] = "RETURN TEMP. (℃)",

                        ["Id"] = 1
                    }
                },                

                ["PLC"] = new DeviceSetting
                {
                    DeviceKind = DeviceKind.PLC,
                    DeviceClass = "HNCSystem.Calorimeter.Shared.Device.MasterK200sPLC",
                    ConnectionString = "Ip=192.168.1.101; Port=4002",
                    ConnectionTimeout = 2000,
                    ReceivedTimeout = 2000,
                    Properties = new Dictionary<string, object>
                    {
                        ["Id"] = 1
                    }
                },                

                ["PowerMeter#1"] = new DeviceSetting
                {
                    DisplayName = "WT333",
                    DeviceKind = DeviceKind.PowerMeter,
                    DeviceClass = "HNCSystem.Calorimeter.Shared.Device.WT333PowerMeter2",
                    //DeviceClass = "HNCSystem.Calorimeter.Shared.Device.VirtualPowerMeter",
                    ConnectionString = "Ip=192.168.1.101; Port=4003",
                    ConnectionTimeout = 2000,
                    ReceivedTimeout = 2000,
                    Properties = new Dictionary<string, object>
                    {
                        ["Id"] = 1
                    }
                },                

                ["Recorder#1"] = new DeviceSetting
                {
                    DeviceKind = DeviceKind.Recorder,
                    DeviceClass = "HNCSystem.Calorimeter.Shared.Device.GM10Recorder",
                    //DeviceClass = "HNCSystem.Calorimeter.Shared.Device.VirtualRecorder",
                    ConnectionString = "Ip=192.168.1.102; Port=34434",
                    Channels = 120,
                    ConnectionTimeout = 2000,
                    ReceivedTimeout = 2000,
                    Properties = new Dictionary<string, object>
                    {
                        ["Id"] = 1
                    }
                },                
            };
#endif

#if KDNP22
            Settings = new SortedDictionary<string, DeviceSetting>
            {                
                ["Controller"] = new DeviceSetting
                {
                    DeviceKind = DeviceKind.Controller,
                    DeviceClass = "HNCSystem.Calorimeter.Shared.Device.UT55AController",
                    ConnectionString = "Ip=192.168.1.111; Port=4001",
                    ConnectionTimeout = 2000,
                    ReceivedTimeout = 2000,
                    Addresses = new[] { 19, 20, 21, 22, 23, 24, 25, 26, 27, 28 },

                    Properties = new Dictionary<string, object>
                    {                        
                        ["DefaultFixedDecimal"] = 100d,
                        ["FixedDecimal#27"] = 10d,
                        ["FixedDecimal#28"] = 1d,
                        ["Name#19"] = "INDOOR NO.3 DB (℃)",
                        ["Name#20"] = "INDOOR NO.3 WB (℃)",
                        ["Name#21"] = "SA CHAMBER ΔP (mmAq)",
                        ["Name#22"] = "SA NOZZLE ΔP (mmAq)",
                        ["Name#23"] = "IN && OUTDOOR NO.4 DB (℃)",
                        ["Name#24"] = "IN && OUTDOOR NO.4 WB (℃)",
                        ["Name#25"] = "EA CHAMBER ΔP (mmAq)",
                        ["Name#26"] = "EA NOZZLE ΔP (mmAq)",
                        ["Name#27"] = "TEST UNIT VOLTAGE (V)",
                        ["Name#28"] = "CO2 CONCENTRATION (PPM)",

                        ["Id"] = 1
                    }
                },                

                ["PLC"] = new DeviceSetting
                {
                    DeviceKind = DeviceKind.PLC,
                    DeviceClass = "HNCSystem.Calorimeter.Shared.Device.MasterK200sPLC",
                    ConnectionString = "Ip=192.168.1.111; Port=4002",
                    ConnectionTimeout = 2000,
                    ReceivedTimeout = 2000,
                    Properties = new Dictionary<string, object>
                    {
                        ["Id"] = 2
                    }
                },                

                ["PowerMeter#1"] = new DeviceSetting
                {
                    DisplayName = "WT310",
                    DeviceKind = DeviceKind.PowerMeter,
                    DeviceClass = "HNCSystem.Calorimeter.Shared.Device.WT310PowerMeter2",
                    //DeviceClass = "HNCSystem.Calorimeter.Shared.Device.VirtualPowerMeter",
                    ConnectionString = "Ip=192.168.1.111; Port=4003",
                    ConnectionTimeout = 2000,
                    ReceivedTimeout = 2000,
                    Properties = new Dictionary<string, object>
                    {
                        ["Id"] = 1
                    }
                },                

                ["Recorder#1"] = new DeviceSetting
                {
                    DeviceKind = DeviceKind.Recorder,
                    DeviceClass = "HNCSystem.Calorimeter.Shared.Device.GM10Recorder",
                    //DeviceClass = "HNCSystem.Calorimeter.Shared.Device.VirtualRecorder",
                    ConnectionString = "Ip=192.168.1.112; Port=34434",
                    Channels = 80,
                    ConnectionTimeout = 2000,
                    ReceivedTimeout = 2000,
                    Properties = new Dictionary<string, object>
                    {
                        ["Id"] = 1
                    }
                },
            };
#endif

#if KDNP23
            Settings = new SortedDictionary<string, DeviceSetting>
            {
                ["Controller#1"] = new DeviceSetting
                {
                    DeviceKind = DeviceKind.Controller,
                    DeviceClass = "HNCSystem.Calorimeter.Shared.Device.UT55AController",
                    ConnectionString = "Ip=192.168.1.101; Port=4001",
                    ConnectionTimeout = 2000,
                    ReceivedTimeout = 2000,
                    Addresses = new[] { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18 },

                    Properties = new Dictionary<string, object>
                    {
                        ["DefaultFixedDecimal"] = 100d,
                        ["FixedDecimal#13"] = 10d,
                        //["FixedDecimal#11"] = 10d,
                        ["Name#1"] = "INDOOR NO.1 DB (℃)",
                        ["Name#2"] = "INDOOR NO.1 WB (℃)",
                        ["Name#3"] = "ID.1 CHAMBER ΔP (mmAq)",
                        ["Name#4"] = "ID.1 NOZZLE ΔP (mmAq)",
                        ["Name#5"] = "INDOOR NO.2 DB (℃)",
                        ["Name#6"] = "INDOOR NO.2 WB (℃)",
                        ["Name#7"] = "ID.2 CHAMBER ΔP (mmAq)",
                        ["Name#8"] = "ID.2 NOZZLE ΔP (mmAq)",
                        ["Name#9"] = "OUTDOOR SIDE DB (℃)",
                        ["Name#10"] = "OUTDOOR SIDE WB (℃)",
                        ["Name#11"] = "OD CHAMBER ΔP (mmAq)",
                        ["Name#12"] = "OD NOZZLE ΔP (mmAq)",
                        ["Name#13"] = "TEST UNIT VOLTAGE (V)",
                        ["Name#14"] = "열원 WATER TEMP. (℃)",
                        ["Name#15"] = "열원 WATER FLOW (LPM)",
                        ["Name#16"] = "부하 WATER TEMP. (℃)",
                        ["Name#17"] = "부하 WATER FLOW (LPM)",
                        ["Name#18"] = "RETURN TEMP. (℃)",

                        ["Id"] = 1
                    }
                },

                ["Controller#2"] = new DeviceSetting
                {
                    DeviceKind = DeviceKind.Controller,
                    DeviceClass = "HNCSystem.Calorimeter.Shared.Device.UT55AController",
                    ConnectionString = "Ip=192.168.1.111; Port=4001",
                    ConnectionTimeout = 2000,
                    ReceivedTimeout = 2000,
                    Addresses = new[] { 19, 20, 21, 22, 23, 24, 25, 26 },

                    Properties = new Dictionary<string, object>
                    {
                        ["DefaultFixedDecimal"] = 100d,
                        //["FixedDecimal#27"] = 10d,
                        //["FixedDecimal#28"] = 10d,
                        ["Name#19"] = "INDOOR NO.3 DB (℃)",
                        ["Name#20"] = "INDOOR NO.3 WB (℃)",
                        ["Name#21"] = "SA CHAMBER ΔP (mmAq)",
                        ["Name#22"] = "SA NOZZLE ΔP (mmAq)",
                        ["Name#23"] = "IN && OUTDOOR NO.4 DB (℃)",
                        ["Name#24"] = "IN && OUTDOOR NO.4 WB (℃)",
                        ["Name#25"] = "EA CHAMBER ΔP (mmAq)",
                        ["Name#26"] = "EA NOZZLE ΔP (mmAq)",
                        //["Name#27"] = "TEST UNIT VOLTAGE (V)",
                        //["Name#28"] = "CO2 CONCENTRATION (PPM)",

                        ["Id"] = 2
                    }
                },

                ["PLC#1"] = new DeviceSetting
                {
                    DeviceKind = DeviceKind.PLC,
                    DeviceClass = "HNCSystem.Calorimeter.Shared.Device.MasterK200sPLC",
                    ConnectionString = "Ip=192.168.1.101; Port=4002",
                    ConnectionTimeout = 2000,
                    ReceivedTimeout = 2000,
                    Properties = new Dictionary<string, object>
                    {
                        ["Id"] = 1
                    }
                },

                ["PLC#2"] = new DeviceSetting
                {
                    DeviceKind = DeviceKind.PLC,
                    DeviceClass = "HNCSystem.Calorimeter.Shared.Device.MasterK200sPLC",
                    ConnectionString = "Ip=192.168.1.111; Port=4002",
                    ConnectionTimeout = 2000,
                    ReceivedTimeout = 2000,
                    Properties = new Dictionary<string, object>
                    {
                        ["Id"] = 2
                    }
                },

                ["PowerMeter#1"] = new DeviceSetting
                {
                    DisplayName = "WT333",
                    DeviceKind = DeviceKind.PowerMeter,
                    DeviceClass = "HNCSystem.Calorimeter.Shared.Device.WT333PowerMeter2",
                    //DeviceClass = "HNCSystem.Calorimeter.Shared.Device.VirtualPowerMeter",
                    ConnectionString = "Ip=192.168.1.101; Port=4003",
                    ConnectionTimeout = 2000,
                    ReceivedTimeout = 2000,
                    Properties = new Dictionary<string, object>
                    {
                        ["Id"] = 1
                    }
                },

                //["PowerMeter#2"] = new DeviceSetting
                //{
                //    DisplayName = "WT310",
                //    DeviceKind = DeviceKind.PowerMeter,
                //    DeviceClass = "HNCSystem.Calorimeter.Shared.Device.WT310PowerMeter",
                //    //DeviceClass = "HNCSystem.Calorimeter.Shared.Device.VirtualPowerMeter",
                //    ConnectionString = "Ip=192.168.1.111; Port=4003",
                //    ConnectionTimeout = 2000,
                //    ReceivedTimeout = 2000,
                //    Properties = new Dictionary<string, object>
                //    {
                //        ["Id"] = 2
                //    }
                //},

                ["Recorder#1"] = new DeviceSetting
                {
                    DeviceKind = DeviceKind.Recorder,
                    DeviceClass = "HNCSystem.Calorimeter.Shared.Device.GM10Recorder",
                    //DeviceClass = "HNCSystem.Calorimeter.Shared.Device.VirtualRecorder",
                    ConnectionString = "Ip=192.168.1.102; Port=34434",
                    Channels = 120,
                    ConnectionTimeout = 2000,
                    ReceivedTimeout = 2000,
                    Properties = new Dictionary<string, object>
                    {
                        ["Id"] = 1
                    }
                },

                ["Recorder#2"] = new DeviceSetting
                {
                    DeviceKind = DeviceKind.Recorder,
                    DeviceClass = "HNCSystem.Calorimeter.Shared.Device.GM10Recorder",
                    //DeviceClass = "HNCSystem.Calorimeter.Shared.Device.VirtualRecorder",
                    ConnectionString = "Ip=192.168.1.112; Port=34434",
                    Channels = 80,
                    ConnectionTimeout = 2000,
                    ReceivedTimeout = 2000,
                    Properties = new Dictionary<string, object>
                    {
                        ["Id"] = 2
                    }
                },                
            };
#endif

#if LGP14
            Settings = new SortedDictionary<string, DeviceSetting>
            {
                //["Controller"] = new DeviceSetting  //* 컨트롤러 수정 {{{
                //{
                //    DeviceKind = DeviceKind.Controller,
                //    DeviceClass = "HNCSystem.Calorimeter.Shared.Device.UT55AController",
                //    ConnectionString = "Ip=192.168.1.101; Port=4001",
                //    ConnectionTimeout = 2000,
                //    ReceivedTimeout = 2000,
                //    Addresses = new[] { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13 },

                //    Properties = new Dictionary<string, object>
                //    {
                //        ["DefaultFixedDecimal"] = 100d,
                //        ["FixedDecimal#13"] = 10d,
                //        ["FixedDecimal#14"] = 10d,
                //        ["Name#1"] = "INDOOR SIDE A DB (℃)",
                //        ["Name#2"] = "INDOOR SIDE A WB (℃)",
                //        ["Name#3"] = "ID A CHAMBER ΔP #1 (mmAq)",
                //        ["Name#4"] = "ID A CHAMBER ΔP #2 (mmAq)",
                //        ["Name#5"] = "INDOOR SIDE B DB (℃)",
                //        ["Name#6"] = "INDOOR SIDE B WB (℃)",
                //        ["Name#7"] = "ID B CHAMBER ΔP #1 (mmAq)",
                //        ["Name#8"] = "ID B CHAMBER ΔP #2 (mmAq)",                        
                //        ["Name#9"] = "OUTDOOR SIDE DB (℃)",
                //        ["Name#10"] = "OUTDOOR SIDE WB (℃)",
                //        ["Name#11"] = "OUTDOOR SIDE DP (℃)",
                //        ["Name#12"] = "TEST UNIT VOLTAGE #1 (V)",
                //        ["Name#13"] = "TEST UNIT VOLTAGE #2 (V)",                        

                //        ["Id"] = 1
                //    }
                //},  //* 컨트롤러 수정 }}}

                ["PLC#1"] = new DeviceSetting
                {
                    DeviceKind = DeviceKind.PLC,
                    DeviceClass = "HNCSystem.Calorimeter.Shared.Device.XGTsPLC",
                    ConnectionString = "Ip=192.168.1.101; Port=4002",
                    ConnectionTimeout = 2000,
                    ReceivedTimeout = 2000,
                    Properties = new Dictionary<string, object>
                    {
                        ["Id"] = 1
                    }
                },                

                ["PowerMeter#1"] = new DeviceSetting
                {
                    DisplayName = "WT310 (A)",
                    DeviceKind = DeviceKind.PowerMeter,
                    DeviceClass = "HNCSystem.Calorimeter.Shared.Device.WT333PowerMeter2",
                    //DeviceClass = "HNCSystem.Calorimeter.Shared.Device.VirtualPowerMeter",
                    ConnectionString = "Ip=192.168.1.101; Port=4003",
                    ConnectionTimeout = 2000,
                    ReceivedTimeout = 2000,
                    Properties = new Dictionary<string, object>
                    {
                        ["Id"] = 1
                    }
                },

                ["PowerMeter#2"] = new DeviceSetting
                {
                    DisplayName = "WT310 (B)",
                    DeviceKind = DeviceKind.PowerMeter,
                    DeviceClass = "HNCSystem.Calorimeter.Shared.Device.WT333PowerMeter2",
                    //DeviceClass = "HNCSystem.Calorimeter.Shared.Device.VirtualPowerMeter",
                    ConnectionString = "Ip=192.168.1.101; Port=4005",
                    ConnectionTimeout = 2000,
                    ReceivedTimeout = 2000,
                    Properties = new Dictionary<string, object>
                    {
                        ["Id"] = 2
                    }
                },

                ["PowerMeter#3"] = new DeviceSetting
                {
                    DisplayName = "WT333 (150K)",
                    DeviceKind = DeviceKind.PowerMeter,
                    DeviceClass = "HNCSystem.Calorimeter.Shared.Device.WT333PowerMeter2",
                    //DeviceClass = "HNCSystem.Calorimeter.Shared.Device.VirtualPowerMeter",
                    ConnectionString = "Ip=192.168.1.101; Port=4006",
                    ConnectionTimeout = 2000,
                    ReceivedTimeout = 2000,
                    Properties = new Dictionary<string, object>
                    {
                        ["Id"] = 3
                    }
                },

                ["PowerMeter#4"] = new DeviceSetting
                {
                    DisplayName = "WT333 (300K)",
                    DeviceKind = DeviceKind.PowerMeter,
                    DeviceClass = "HNCSystem.Calorimeter.Shared.Device.WT333PowerMeter2",
                    //DeviceClass = "HNCSystem.Calorimeter.Shared.Device.VirtualPowerMeter",
                    ConnectionString = "Ip=192.168.1.101; Port=4007",
                    ConnectionTimeout = 2000,
                    ReceivedTimeout = 2000,
                    Properties = new Dictionary<string, object>
                    {
                        ["Id"] = 4
                    }
                },

                ["Recorder#1"] = new DeviceSetting
                {
                    DeviceKind = DeviceKind.Recorder,
                    DeviceClass = "HNCSystem.Calorimeter.Shared.Device.GM10Recorder",
                    //DeviceClass = "HNCSystem.Calorimeter.Shared.Device.VirtualRecorder",
                    ConnectionString = "Ip=192.168.1.102; Port=34434",
                    Channels = 240,
                    ConnectionTimeout = 2000,
                    ReceivedTimeout = 2000,
                    Properties = new Dictionary<string, object>
                    {
                        ["Id"] = 1
                    }
                },                
            };
#endif
        }

        [JsonIgnore]
        public IDictionary<DeviceKind, IList<string>> DeviceNames => deviceNames;       

        public DeviceSetting[] GetDevices(DeviceKind kind)
        {
            var result = new List<DeviceSetting>();
            foreach (var kv in Settings)
            {
                if (kv.Value.DeviceKind != kind)
                    continue;

                result.Add(kv.Value);
            }

            return result.ToArray();
        }

        protected override void OnLoaded()
        {
            foreach (var kv in Settings)
            {
                kv.Value.Name = kv.Key;  // kv.Value.Name => kv.Key : Controller, PLC, PowerMeter#1, Recorder#1
            }

            deviceNames = new Dictionary<DeviceKind, IList<string>>();
            foreach (var kv in Settings)
            {
                var dk = kv.Value.DeviceKind;  // dk => Controller, PLC, PowerMeter, Recorder
                if (deviceNames.ContainsKey(dk) == false)
                    deviceNames[dk] = new List<string>();  // Controller, PLC, PowerMeter, Recorder 순차 생성

                if (kv.Value.Addresses == null)  // 어드레스가 null일 경우 실행
                {
                    deviceNames[dk].Add(kv.Key);
                    continue;  // 루프의 조건식으로 되돌아감
                }

                foreach (var address in kv.Value.Addresses)  // 어드레스가 있을 경우 실행
                {
                    var dn = $"{kv.Key}#{address}";
                    deviceNames[dk].Add(dn);  // Controller => Controller#1, Controller#2, ... 추가
                }
            }
        }
    }

    public class DeviceSetting
    {
        [JsonIgnore]
        public string Name { get; set; }

        /// <summary>
        /// 화면에 표시될 이름
        /// </summary>
        public string DisplayName { get; set; }

        /// <summary>
        /// 디바이스 종류
        /// </summary>
        [JsonConverter(typeof(StringEnumConverter))]
        public DeviceKind DeviceKind { get; set; }

        /// <summary>
        /// 디바이스 클래스
        /// </summary>
        public string DeviceClass { get; set; }

        /// <summary>
        /// 디바이스 연결문자
        /// </summary>
        public string ConnectionString { get; set; }

        /// <summary>
        /// 연결 대기 시간(ms)
        /// </summary>
        public int ConnectionTimeout { get; set; }

        /// <summary>
        /// 수신 대기 시간(ms)
        /// </summary>
        public int ReceivedTimeout { get; set; }

        public int[] Addresses { get; set; }

        public int? Channels { get; set; }

        public Dictionary<string, object> Properties { get; set; } = new Dictionary<string, object>();
    }

    /// <summary>
    /// 디바이스 종류
    /// </summary>
    public enum DeviceKind
    {
        None,
        All,
        //Controller,  //* 컨트롤러 수정
        PLC,
        PowerMeter,
        Recorder
    }
}
<file_sep>﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

using DevExpress.Utils;
using DevExpress.XtraCharts;
using DevExpress.XtraGrid.Views.Base;
using DevExpress.XtraGrid.Views.Grid;
using DevExpress.XtraGrid.Views.Grid.ViewInfo;

using FirebirdSql.Data.FirebirdClient;

using Ulee.Chart;
using Ulee.Controls;
using Ulee.Utils;

namespace Hnc.Calorimeter.Client
{
    public partial class CtrlViewGraphPanel : UlUserControlEng
    {
        public CtrlViewGraphPanel(int index, ConditionMethod method, UlDoubleBufferedSeriesCollection series)
        {
            InitializeComponent();

            Index = index;
            Method = method;
            Initialize(series);
        }

        public int Index { get; set; }
        public UlDoubleBufferedLineChart ViewGraph { get { return viewGraph; } }
        public ConditionMethod Method { get; set; }
        public List<YAxisRow> YAxisRows { get; private set; }
        public List<SeriesRow> PlotSeriesRows { get; private set; }
        public double MaxRangeAxisX { get; set; }
        public bool InvisibleUnchecked { get; set; }

        private bool seriesChecked { get; set; }

        private void Initialize(UlDoubleBufferedSeriesCollection series)
        {
            zoomAxisCombo.SelectedIndex = 0;

            viewGraph.Series.Clear();
            viewGraph.BackColor = Color.White;
            viewGraph.LegendFont = new Font("Arial", 7, FontStyle.Regular);

            viewGraph.SetBufferedSeries(series);
            viewGraph.SetPrimaryAxisX(AxisAlignment.Near, "Time", StringAlignment.Center, 0, 60000);

            InitializeYAxes();
            LoadYAxes();

            foreach (YAxisRow row in YAxisRows)
            {
                AxisAlignment align = (row.Align == EAxisAlign.Left) ? AxisAlignment.Near : AxisAlignment.Far;

                if (row.AxisNo == 0)
                    viewGraph.SetPrimaryAxisY(align, row.DescriptionUnit, StringAlignment.Far, row.WholeMin, row.WholeMax);
                else
                    viewGraph.AddSecondaryAxisY(align, row.DescriptionUnit, StringAlignment.Far, row.WholeMin, row.WholeMax);
            }

            InitializePlotSeries();
            LoadPlotSeries();

            viewGraph.Prepare();
            viewGraph.SetGridLinesAxisX(true);
            viewGraph.SetGridLinesAxisY(true);

            foreach (SeriesRow row in PlotSeriesRows)
            {
                viewGraph.Series[row.Name].View.Color = row.Color;
                viewGraph.Series[row.Name].Visible = row.Checked;
                viewGraph.SetSeriesAxisY(row.Name, GetIndexAxisY(row.UnitType));
            }

            foreach (YAxisRow row in YAxisRows)
            {
                viewGraph.AxesY[row.AxisNo].Visibility =
                    (row.Checked == true) ? DefaultBoolean.True : DefaultBoolean.False;
            }

            viewGraph.MarkLine.ShowValueMarkPoint += DoShowValueMarkPoint;
            viewGraph.MarkLine.Visible = false;

            viewGraph.Zooming.ZoomStackChanged += DoZoomStackChanged;
            viewGraph.Zooming.Clear();

            plotSeriesGrid.DataSource = PlotSeriesRows;
            plotSeriesGrid.UseDirectXPaint = DefaultBoolean.False;
            plotSeriesGridView.Columns["Checked"].ImageOptions.ImageIndex = 1;
            plotSeriesGridView.Appearance.EvenRow.BackColor = Color.FromArgb(244, 244, 236);
            plotSeriesGridView.OptionsView.EnableAppearanceEvenRow = true;

            SetCursorAColumnVisible(false);
            SetCursorBColumnVisible(false);

            plotSeriesGridView.RefreshData();
        }

        private void CtrlViewGraphPanel_Enter(object sender, EventArgs e)
        {
        }

        private void CtrlViewGraphPanel_Leave(object sender, EventArgs e)
        {
        }

        private void DoShowValueMarkPoint(object sender, ShowValueMarkPointEventArgs e)
        {
            int i = 0;
            Axis2D axis = viewGraph.AxesX[0];

            if ((e.Visible == false) || ((e.ValueA < 0) && (e.ValueB < 0)))
            {
                SetCursorAColumnVisible(false);
                SetCursorBColumnVisible(false);
                RefreshGrid();
                return;
            }

            int indexA = (int)(e.ValueA / viewGraph.BaseTime);
            int indexB = (int)(e.ValueB / viewGraph.BaseTime);

            if ((viewGraph.BufferedSeries.PointsCount < indexA + 1) &&
                (viewGraph.BufferedSeries.PointsCount < indexB + 1))
            {
                SetCursorAColumnVisible(false);
                SetCursorBColumnVisible(false);
                RefreshGrid();
                return;
            }

            if (viewGraph.BufferedSeries.PointsCount < indexB + 1)
            {
                viewGraph.BufferedSeries.Lock();

                try
                {
                    foreach (KeyValuePair<string, ValueRow> row in Resource.Variables.Graph)
                    {
                        string format = row.Value.Format;
                        float cursorA = viewGraph.BufferedSeries[row.Key].Points[indexA];

                        SetCursorValue(i++, cursorA.ToString(format), "0", "0", "0", "0", "0");
                    }
                }
                finally
                {
                    viewGraph.BufferedSeries.Unlock();
                }

                SetCursorAColumnVisible(true);
                SetCursorBColumnVisible(false);
                SetCursorColumnVisibleIndex();
                RefreshGrid();
                return;
            }


            if (viewGraph.BufferedSeries.PointsCount < indexA + 1)
            {
                viewGraph.BufferedSeries.Lock();

                try
                {
                    foreach (KeyValuePair<string, ValueRow> row in Resource.Variables.Graph)
                    {
                        string format = row.Value.Format;
                        float cursorB = viewGraph.BufferedSeries[row.Key].Points[indexB];

                        SetCursorValue(i++, "0", cursorB.ToString(format), "0", "0", "0", "0");
                    }
                }
                finally
                {
                    viewGraph.BufferedSeries.Unlock();
                }

                SetCursorAColumnVisible(false);
                SetCursorBColumnVisible(true);
                SetCursorColumnVisibleIndex();
                RefreshGrid();
                return;
            }

            viewGraph.BufferedSeries.Lock();

            try
            {
                foreach (KeyValuePair<string, ValueRow> row in Resource.Variables.Graph)
                {
                    string format = row.Value.Format;
                    float cursorA, cursorB, diff, min, max, avg;

                    cursorA = viewGraph.BufferedSeries[row.Key].Points[indexA];
                    cursorB = viewGraph.BufferedSeries[row.Key].Points[indexB];
                    diff = Math.Abs(cursorA - cursorB);

                    CalcMinMaxAvg(viewGraph.BufferedSeries[row.Key].Points, indexA, indexB, out min, out max, out avg);

                    SetCursorValue(i++, cursorA.ToString(format), cursorB.ToString(format),
                        diff.ToString(format), min.ToString(format), max.ToString(format), avg.ToString(format));
                }

                SetCursorAColumnVisible(true);
                SetCursorBColumnVisible(true);
                SetCursorColumnVisibleIndex();
                RefreshGrid();
            }
            finally
            {
                viewGraph.BufferedSeries.Unlock();
            }
        }

        private void DoZoomStackChanged(object sender, ZoomStackChangedEventArgs e)
        {
            if (this.InvokeRequired == true)
            {
                ZoomStackChangedEventHandler func = new ZoomStackChangedEventHandler(DoZoomStackChanged);
                this.BeginInvoke(func, new object[] { sender, e });
            }
            else
            {
                undoButton.Enabled = (e.Value > 0) ? true : false;
                resetButton.Enabled = (e.Value > 0) ? true : false;
            }
        }

        private void yAxesSettingButton_Click(object sender, EventArgs e)
        {
            if (viewGraph.BufferedSeries.PointsCount == 0) return;

            for (int i = 0; i < viewGraph.AxesY.Count; i++)
            {
                YAxisRows[i].WholeMin = 0;
                YAxisRows[i].WholeMax = 0;
            }

            FormYAxesSetting form = new FormYAxesSetting(YAxisRows);

            if (form.ShowDialog() == DialogResult.OK)
            {
                if (form.GetYAxesCheckedCount() == 0)
                {
                    MessageBox.Show("You must check Y-Axis over one!",
                        Resource.Caption, MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
                    return;
                }
                if (form.GetYAxesCheckedCount() > 12)
                {
                    MessageBox.Show("You must check Y-Axis under 12!",
                        Resource.Caption, MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
                    return;
                }

                bool resetZoom = false;
                Cursor = Cursors.WaitCursor;

                try
                {
                    foreach (YAxisRow row in form.Axes)
                    {
                        YAxisRows[row.AxisNo].Checked = row.Checked;
                        YAxisRows[row.AxisNo].Align = row.Align;

                        Axis2D axis = viewGraph.AxesY[row.AxisNo];
                        axis.Alignment = (row.Align == EAxisAlign.Left) ? AxisAlignment.Near : AxisAlignment.Far;
                        axis.Visibility = (row.Checked == true) ? DefaultBoolean.True : DefaultBoolean.False;

                        YAxisRows[row.AxisNo].VisualMin = (float)((double)axis.WholeRange.MinValue);
                        YAxisRows[row.AxisNo].VisualMax = (float)((double)axis.WholeRange.MaxValue);
                        YAxisRows[row.AxisNo].WholeMin = (float)((double)axis.WholeRange.MinValue);
                        YAxisRows[row.AxisNo].WholeMax = (float)((double)axis.WholeRange.MaxValue);

                        if ((row.WholeMin != 0) || (row.WholeMax != 0))
                        {
                            if (row.WholeMin < row.WholeMax)
                            {
                                resetZoom = true;

                                YAxisRows[row.AxisNo].VisualMin = row.WholeMin;
                                YAxisRows[row.AxisNo].VisualMax = row.WholeMax;
                                YAxisRows[row.AxisNo].WholeMin = row.WholeMin;
                                YAxisRows[row.AxisNo].WholeMax = row.WholeMax;

                                axis.WholeRange.MinValue = row.WholeMin;
                                axis.WholeRange.MaxValue = row.WholeMax;
                                axis.VisualRange.MinValue = row.WholeMin;
                                axis.VisualRange.MaxValue = row.WholeMax;
                            }
                        }
                    }

                    if (resetZoom == true)
                    {
                        ViewGraph.Zooming.Clear();

                        Axis2D axis = viewGraph.AxesX[0];
                        double wholeMin = (double)axis.WholeRange.MinValue;
                        double wholeMax = (double)axis.WholeRange.MaxValue;
                        double visualMin = (double)axis.VisualRange.MinValue;
                        double visualMax = (double)axis.VisualRange.MaxValue;

                        if ((wholeMin != visualMin) || (wholeMax != visualMax))
                        {
                            EZoomAxis zoomAxis = viewGraph.Zooming.ZoomAxis;
                            SetMaxRangeAxisX(MaxRangeAxisX);

                            viewGraph.Zooming.ZoomAxis = EZoomAxis.Both;
                            viewGraph.Zooming.Push();
                            viewGraph.Zooming.ZoomAxis = zoomAxis;

                            viewGraph.VisualRangeChanging = true;
                            axis.WholeRange.MinValue = wholeMin;
                            axis.WholeRange.MaxValue = wholeMax;
                            axis.VisualRange.MinValue = visualMin;
                            axis.VisualRange.MaxValue = visualMax;
                            viewGraph.VisualRangeChanging = false;
                        }
                    }

                    viewGraph.InvalidateSeries();
                    InsertYAxes();
                }
                finally
                {
                    Cursor = Cursors.Default;
                }
            }
        }

        private void applyButton_Click(object sender, EventArgs e)
        {
            if (viewGraph.BufferedSeries.PointsCount == 0) return;
            if (IsAllSeriesInvisibled() == true)
            {
                MessageBox.Show("You must check plot series over one!",
                    Resource.Caption, MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
                return;
            }

            Cursor = Cursors.WaitCursor;

            try
            {
                foreach (SeriesRow row in PlotSeriesRows)
                {
                    viewGraph.Series[row.Name].View.Color = row.Color;
                    viewGraph.Series[row.Name].Visible = row.Checked;
                }

                viewGraph.InvalidateSeries();
                InsertSeries();
            }
            finally
            {
                Cursor = Cursors.Default;
            }
        }

        private bool IsAllSeriesInvisibled()
        {
            foreach (SeriesRow row in PlotSeriesRows)
            {
                if (row.Checked == true) return false;
            }

            return true;
        }

        private void zoomAxisCombo_SelectedIndexChanged(object sender, EventArgs e)
        {
            if (viewGraph.Zooming == null) return;

            viewGraph.Zooming.ZoomAxis = (EZoomAxis)zoomAxisCombo.SelectedIndex;
        }

        private void cursorButton_Click(object sender, EventArgs e)
        {
            viewGraph.MarkLine.Visible = !viewGraph.MarkLine.Visible;
        }

        private void autosetButton_Click(object sender, EventArgs e)
        {
            if (viewGraph.BufferedSeries.PointsCount == 0) return;

            Cursor = Cursors.WaitCursor;

            try
            {
                viewGraph.Description.Reset();
                viewGraph.VertCursor.Reset();

                viewGraph.Zooming.ZoomAxis = EZoomAxis.AxisY;
                viewGraph.Zooming.AutoSet(0, 2);
                viewGraph.Zooming.ZoomAxis = (EZoomAxis)zoomAxisCombo.SelectedIndex;
            }
            finally
            {
                Cursor = Cursors.Default;
            }
        }

        private void stackButton_Click(object sender, EventArgs e)
        {
            if (viewGraph.BufferedSeries.PointsCount == 0) return;

            Cursor = Cursors.WaitCursor;

            try
            {
                viewGraph.Description.Reset();
                viewGraph.VertCursor.Reset();

                viewGraph.Zooming.ZoomAxis = EZoomAxis.AxisY;
                viewGraph.Zooming.Stack();
                viewGraph.Zooming.ZoomAxis = (EZoomAxis)zoomAxisCombo.SelectedIndex;
            }
            finally
            {
                Cursor = Cursors.Default;
            }
        }

        private void undoButton_Click(object sender, EventArgs e)
        {
            if (viewGraph.BufferedSeries.PointsCount == 0) return;

            Cursor = Cursors.WaitCursor;

            try
            {
                viewGraph.Description.Reset();
                viewGraph.VertCursor.Reset();

                viewGraph.Zooming.Out();
            }
            finally
            {
                Cursor = Cursors.Default;
            }
        }

        private void resetButton_Click(object sender, EventArgs e)
        {
            if (viewGraph.BufferedSeries.PointsCount == 0) return;

            Cursor = Cursors.WaitCursor;

            try
            {
                viewGraph.Description.Reset();
                viewGraph.VertCursor.Reset();
                viewGraph.Zooming.Reset();
                SetMaxRangeAxisX(MaxRangeAxisX);
            }
            finally
            {
                Cursor = Cursors.Default;
            }
        }

        private void hideUncheckedCheck_CheckedChanged(object sender, EventArgs e)
        {
            plotSeriesGridView.RefreshData();
            plotSeriesGridView.FocusedRowHandle = 0;
        }

        private void plotSeriesGridView_MouseDown(object sender, MouseEventArgs e)
        {
            GridView view = sender as GridView;
            GridHitInfo hit = view.CalcHitInfo(e.Location);

            if (hit == null) return;

            switch (hit.HitTest)
            {
                case GridHitTest.Column:
                    if (hit.Column.FieldName == "Checked")
                    {
                        seriesChecked = !seriesChecked;
                        SetSeriesCheckColumn(view);
                    }
                    break;
            }
        }

        private void plotSeriesGridView_CustomDrawColumnHeader(object sender, ColumnHeaderCustomDrawEventArgs e)
        {
            if (e.Column == null) return;

            if (e.Column.FieldName == "Checked")
            {
                Image image = (seriesChecked == true) ? imageList.Images[1] : imageList.Images[0];

                e.DefaultDraw();
                e.Cache.DrawImage(image,
                    new Rectangle(e.Bounds.X + (e.Bounds.Width - image.Size.Width) / 2,
                    e.Bounds.Y + (e.Bounds.Height - image.Size.Height) / 2 - 1,
                    image.Size.Width, image.Size.Height));

                e.Handled = true;
            }
        }

        private void plotSeriesGridView_CustomRowFilter(object sender, RowFilterEventArgs e)
        {
            ColumnView view = sender as ColumnView;

            if (hideUncheckedCheck.Checked == true)
            {
                e.Visible = (bool)view.GetListSourceRowCellValue(e.ListSourceRow, "Checked");
                e.Handled = true;
            }
        }

        private void InitializeYAxes()
        {
            int i = 0;
            string unit = "None";
            string airFlowUnit = UnitQuery.GetUnitDescription(EUnitType.AirFlow, (int)Method.AirFlow);
            string capacityUnit = UnitQuery.GetUnitDescription(EUnitType.Capacity, (int)Method.CoolingCapacity);
            string enthalpyUnit = UnitQuery.GetUnitDescription(EUnitType.Enthalpy, (int)Method.Enthalpy);
            string temperatureUnit = UnitQuery.GetUnitDescription(EUnitType.Temperature, (int)Method.Temperature);
            string pressureUnit = UnitQuery.GetUnitDescription(EUnitType.Pressure, (int)Method.Pressure);
            string diffPressureUnit = UnitQuery.GetUnitDescription(EUnitType.DiffPressure, (int)Method.DiffPressure);
            string atmPressureUnit = UnitQuery.GetUnitDescription(EUnitType.AtmPressure, (int)Method.AtmPressure);
            YAxisRows = new List<YAxisRow>();

            foreach (EUnitType unitType in Enum.GetValues(typeof(EUnitType)))
            {
                if (unitType == EUnitType.None) continue;
                if (unitType == EUnitType.Time) continue;

                switch (unitType)
                {
                    case EUnitType.Current:
                    case EUnitType.Voltage:
                    case EUnitType.Frequency:
                    case EUnitType.Flux:
                    case EUnitType.Ratio:
                    case EUnitType.HumidityRatio:
                    case EUnitType.Power:
                    case EUnitType.PowerComsumption:
                    case EUnitType.Velocity:
                    case EUnitType.Volume:
                        unit = UnitQuery.GetUnitDescription(unitType);
                        break;

                    case EUnitType.AirFlow:
                        unit = airFlowUnit;
                        break;

                    case EUnitType.Capacity:
                    case EUnitType.EER_COP:
                        unit = capacityUnit;
                        break;

                    case EUnitType.Enthalpy:
                    case EUnitType.Heat:
                        unit = enthalpyUnit;
                        break;

                    case EUnitType.Temperature:
                        unit = temperatureUnit;
                        break;

                    case EUnitType.Pressure:
                        unit = pressureUnit;
                        break;

                    case EUnitType.DiffPressure:
                        unit = diffPressureUnit;
                        break;

                    case EUnitType.AtmPressure:
                        unit = atmPressureUnit;
                        break;
                }

                YAxisRows.Add(new YAxisRow(-1, i++, false, EAxisAlign.Left,
                    unitType.ToString(), unitType.ToDescription(), unit, -100, 100, -100, 100));
            }

            YAxisRows[0].Checked = true;
            YAxisRows[1].Checked = true;
            YAxisRows[2].Checked = true;
        }

        private void LoadYAxes()
        {
            Resource.ViewDB.Lock();

            try
            {
                YAxisSettingDataSet set = Resource.ViewDB.YAxisSettingSet;

                set.Ip = Resource.Ip;
                set.Mode = 1;
                set.GraphNo = Index;
                set.Select();

                if (set.GetRowCount() > 0)
                {
                    if (YAxisRows.Count != set.GetRowCount())
                    {
                        Resource.TLog.Log((int)ELogItem.Error, "Y-Axes count is mismatched in CtrlViewGraphPanel.LoadYAxes");
                    }
                    else
                    {
                        for (int i = 0; i < set.GetRowCount(); i++)
                        {
                            set.Fetch(i);

                            YAxisRows[i].RecNo = set.RecNo;
                            YAxisRows[i].Align = set.Align;
                            YAxisRows[i].Checked = set.Checked;
                            YAxisRows[i].VisualMin = set.VisualMin;
                            YAxisRows[i].VisualMax = set.VisualMax;
                            YAxisRows[i].WholeMin = set.WholeMin;
                            YAxisRows[i].WholeMax = set.WholeMax;
                        }
                    }
                }
            }
            finally
            {
                Resource.ViewDB.Unlock();
            }
        }

        private void InitializePlotSeries()
        {
            int color = (int)KnownColor.AliceBlue;
            PlotSeriesRows = new List<SeriesRow>();

            foreach (KeyValuePair<string, ValueRow> row in Resource.Variables.Graph)
            {
                if (row.Value.Unit.Type == EUnitType.Time) continue;

                PlotSeriesRows.Add(new SeriesRow(-1, false, row.Key, row.Value.Format, row.Value.Unit.Type.ToString(),
                    row.Value.Unit.ToDescription, Color.FromKnownColor((KnownColor)color)));

                if ((KnownColor)color == KnownColor.YellowGreen) color = (int)KnownColor.AliceBlue;
                else color++;
            }

            PlotSeriesRows[0].Checked = true;
            PlotSeriesRows[1].Checked = true;
            PlotSeriesRows[2].Checked = true;
        }

        private void LoadPlotSeries()
        {
            Resource.ViewDB.Lock();

            try
            {
                SeriesSettingDataSet set = Resource.ViewDB.SeriesSettingSet;

                set.Ip = Resource.Ip;
                set.Mode = 1;
                set.GraphNo = Index;
                set.Select();

                if (set.GetRowCount() > 0)
                {
                    if (PlotSeriesRows.Count != set.GetRowCount())
                    {
                        Resource.TLog.Log((int)ELogItem.Error, "Plot series count is mismatched in CtrlViewGraphPanel.LoadPlotSeries");
                    }
                    else
                    {
                        for (int i = 0; i < set.GetRowCount(); i++)
                        {
                            set.Fetch(i);

                            PlotSeriesRows[i].RecNo = set.RecNo;
                            PlotSeriesRows[i].Checked = set.Checked;
                            PlotSeriesRows[i].Color = set.Color;
                        }

                        plotSeriesGridView.RefreshData();
                    }
                }
            }
            finally
            {
                Resource.ViewDB.Unlock();
            }
        }

        private void SetSeriesCheckColumn(GridView view)
        {
            if (view.RowCount < 1) return;

            view.BeginUpdate();

            try
            {
                view.Columns["Checked"].ImageOptions.ImageIndex = (seriesChecked == false) ? 0 : 1;

                for (int i = 0; i < view.RowCount; i++)
                {
                    (view.GetRow(i) as SeriesRow).Checked = seriesChecked;
                }
            }
            finally
            {
                view.EndUpdate();
            }
        }

        public void SetMaxRangeAxisX(double max)
        {
            MaxRangeAxisX = max;
            Axis2D axis = viewGraph.AxesX[0];

            viewGraph.VisualRangeChanging = true;
            axis.WholeRange.SetMinMaxValues(0, max);
            axis.VisualRange.SetMinMaxValues(0, max);
            viewGraph.VisualRangeChanging = false;
        }

        public void RefreshYAxesUnit()
        {
            string unit;
            string airFlowUnit = UnitQuery.GetUnitDescription(EUnitType.AirFlow, (int)Method.AirFlow);
            string capacityUnit = UnitQuery.GetUnitDescription(EUnitType.Capacity, (int)Method.CoolingCapacity);
            string enthalpyUnit = UnitQuery.GetUnitDescription(EUnitType.Enthalpy, (int)Method.Enthalpy);
            string temperatureUnit = UnitQuery.GetUnitDescription(EUnitType.Temperature, (int)Method.Temperature);
            string pressureUnit = UnitQuery.GetUnitDescription(EUnitType.Pressure, (int)Method.Pressure);
            string diffPressureUnit = UnitQuery.GetUnitDescription(EUnitType.DiffPressure, (int)Method.DiffPressure);
            string atmPressureUnit = UnitQuery.GetUnitDescription(EUnitType.AtmPressure, (int)Method.AtmPressure);

            foreach (YAxisRow row in YAxisRows)
            {
                unit = "";

                switch (row.Name)
                {
                    case "AirFlow":
                        unit = airFlowUnit;
                        break;

                    case "Capacity":
                    case "EER_COP":
                        unit = capacityUnit;
                        break;

                    case "Enthalpy":
                    case "Heat":
                        unit = enthalpyUnit;
                        break;

                    case "Temperature":
                        unit = temperatureUnit;
                        break;

                    case "Pressure":
                        unit = pressureUnit;
                        break;

                    case "DiffPressure":
                        unit = diffPressureUnit;
                        break;

                    case "AtmPressure":
                        unit = atmPressureUnit;
                        break;
                }

                row.Unit = (unit == "") ? row.Unit : unit;
            }

            foreach (YAxisRow row in YAxisRows)
            {
                viewGraph.AxesY[row.AxisNo].Title.Text = row.DescriptionUnit;
            }
        }

        public void SetPlotSeriesUnit(int index, EUnitType type, int unit)
        {
            PlotSeriesRows[index].UnitFrom = 
                UnitQuery.GetUnitDescription(type, unit);
        }

        public void InsertYAxes()
        {
            Resource.ViewDB.Lock();
            FbTransaction trans = Resource.ViewDB.BeginTrans();

            try
            {
                YAxisSettingDataSet yAxisSet = Resource.ViewDB.YAxisSettingSet;

                for (int i = 0; i < YAxisRows.Count; i++)
                {
                    YAxisRow row = YAxisRows[i];

                    yAxisSet.Ip = Resource.Ip;
                    yAxisSet.Mode = 1;
                    yAxisSet.GraphNo = Index;
                    yAxisSet.Checked = row.Checked;
                    yAxisSet.Align = row.Align;
                    yAxisSet.Name = row.Name;
                    yAxisSet.Desc = row.Description;
                    yAxisSet.Unit = row.Unit;
                    yAxisSet.VisualMin = row.VisualMin;
                    yAxisSet.VisualMax = row.VisualMax;
                    yAxisSet.WholeMin = row.WholeMin;
                    yAxisSet.WholeMax = row.WholeMax;

                    if (row.RecNo == -1)
                    {
                        row.RecNo = (int)Resource.ViewDB.GetGenNo("GN_YAXISSETTING");
                        yAxisSet.RecNo = row.RecNo;
                        yAxisSet.Insert(trans);
                    }
                    else
                    {
                        yAxisSet.RecNo = row.RecNo;
                        yAxisSet.Update(trans);
                    }
                }

                Resource.ViewDB.CommitTrans();
            }
            catch (Exception e)
            {
                Resource.TLog.Log((int)ELogItem.Exception, e.ToString());
                Resource.ViewDB.RollbackTrans();
            }
            finally
            {
                Resource.ViewDB.Unlock();
            }
        }

        private void InsertSeries()
        {
            Resource.ViewDB.Lock();
            FbTransaction trans = Resource.ViewDB.BeginTrans();

            try
            {
                SeriesSettingDataSet seriesSet = Resource.ViewDB.SeriesSettingSet;

                for (int i = 0; i < PlotSeriesRows.Count; i++)
                {
                    SeriesRow row = PlotSeriesRows[i];

                    seriesSet.Ip = Resource.Ip;
                    seriesSet.Mode = 1;
                    seriesSet.GraphNo = Index;
                    seriesSet.Checked = row.Checked;
                    seriesSet.Color = row.Color;
                    seriesSet.Name = row.Name;
                    seriesSet.UnitType = row.UnitType;

                    if (row.RecNo == -1)
                    {
                        row.RecNo = (int)Resource.ViewDB.GetGenNo("GN_SERIESSETTING");
                        seriesSet.RecNo = row.RecNo;
                        seriesSet.Insert(trans);
                    }
                    else
                    {
                        seriesSet.RecNo = row.RecNo;
                        seriesSet.Update(trans);
                    }
                }

                Resource.ViewDB.CommitTrans();
            }
            catch (Exception e)
            {
                Resource.TLog.Log((int)ELogItem.Exception, e.ToString());
                Resource.ViewDB.RollbackTrans();
            }
            finally
            {
                Resource.ViewDB.Unlock();
            }
        }

        private void CalcMinMaxAvg(UlBlockList<float> blockList, int from, int to, out float min, out float max, out float avg)
        {
            float value, total = 0;

            min = float.MaxValue;
            max = float.MinValue;

            if (from > to)
            {
                int nTemp = to;
                to = from;
                from = nTemp;
            }

            for (int i = from; i <= to; i++)
            {
                value = blockList[i];
                total += value;

                if (value < min) min = value;
                if (value > max) max = value;
            }

            avg = total / (to - from + 1);
        }


        public void SetSeriesValue(int index, string value)
        {
            PlotSeriesRows[index].Value = value;
        }

        private void SetCursorValue(int index, string valueA, string valueB, string diff, string min, string max, string avg)
        {
            PlotSeriesRows[index].CursorA = valueA;
            PlotSeriesRows[index].CursorB = valueB;
            PlotSeriesRows[index].Diff = diff;
            PlotSeriesRows[index].Min = min;
            PlotSeriesRows[index].Max = max;
            PlotSeriesRows[index].Avg = avg;
        }

        private void SetCursorAColumnVisible(bool visible)
        {
            psCursorAColumn.Visible = visible;

            if ((psCursorAColumn.Visible == true) && (psCursorBColumn.Visible == true))
                visible = true;
            else
                visible = false;

            psDiffColumn.Visible = visible;
            psMinColumn.Visible = visible;
            psMaxColumn.Visible = visible;
            psAvgColumn.Visible = visible;
        }

        private void SetCursorBColumnVisible(bool visible)
        {
            psCursorBColumn.Visible = visible;

            if ((psCursorAColumn.Visible == true) && (psCursorBColumn.Visible == true))
                visible = true;
            else
                visible = false;

            psDiffColumn.Visible = visible;
            psMinColumn.Visible = visible;
            psMaxColumn.Visible = visible;
            psAvgColumn.Visible = visible;
        }

        private void SetCursorColumnVisibleIndex()
        {
            if ((psCursorAColumn.Visible == true) && (psCursorBColumn.Visible == true))
            {
                psCursorAColumn.VisibleIndex = 4;
                psCursorBColumn.VisibleIndex = 5;
                psDiffColumn.VisibleIndex = 6;
                psMinColumn.VisibleIndex = 7;
                psMaxColumn.VisibleIndex = 8;
                psAvgColumn.VisibleIndex = 9;
                psUnitColumn.VisibleIndex = 10;
                return;
            }

            if (psCursorAColumn.Visible == true)
            {
                psCursorAColumn.VisibleIndex = 4;
                return;
            }

            if (psCursorBColumn.Visible == true)
            {
                psCursorBColumn.VisibleIndex = 4;
                return;
            }
        }

        public int GetIndexAxisY(string name)
        {
            int axisNo = -1;

            foreach (YAxisRow row in YAxisRows)
            {
                if (row.Name == name)
                {
                    axisNo = row.AxisNo;
                    break;
                }
            }

            return axisNo;
        }

        public void RefreshGrid()
        {
            plotSeriesGridView.RefreshData();
        }
    }
}
<file_sep>﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Hnc.Calorimeter.Server
{
    public enum EClientState
    { Observation, Idle, Preparation, Stabilization, Integration }

    public enum EUserAuthority
    { Maker, Admin, Operator, Viewer }

    public enum EValueType
    { Raw, Real }

    public enum ELogItem
    { Note, Error, Exception }

    public delegate void DefaultHandler();

    class AuthorityTypeFmt : IFormatProvider, ICustomFormatter
    {
        public AuthorityTypeFmt()
        {
        }

        public object GetFormat(Type type)
        {
            return this;
        }

        public string Format(string formatString, object arg, IFormatProvider formatProvider)
        {
            int value = Convert.ToInt16(arg);
            string typeString = value.ToString();

            switch (value)
            {
                case 0:
                    typeString = "Maker";
                    break;

                case 1:
                    typeString = "Admin";
                    break;

                case 2:
                    typeString = "Operator";
                    break;

                case 3:
                    typeString = "Viewer";
                    break;
            }

            return typeString;
        }
    }
}
<file_sep>﻿namespace Hnc.Calorimeter.Client
{
    partial class CtrlDevicePlc
    {
        /// <summary> 
        /// Required designer variable.
        /// </summary>
        private System.ComponentModel.IContainer components = null;

        /// <summary> 
        /// Clean up any resources being used.
        /// </summary>
        /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
        protected override void Dispose(bool disposing)
        {
            if (disposing && (components != null))
            {
                components.Dispose();
            }
            base.Dispose(disposing);
        }

        #region Component Designer generated code

        /// <summary> 
        /// Required method for Designer support - do not modify 
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            this.view1Panel = new Ulee.Controls.UlPanel();
            this.view2Panel = new Ulee.Controls.UlPanel();
            this.view4Panel = new Ulee.Controls.UlPanel();
            this.view3Panel = new Ulee.Controls.UlPanel();
            this.bgPanel.SuspendLayout();
            this.SuspendLayout();
            // 
            // bgPanel
            // 
            this.bgPanel.BevelOuter = Ulee.Controls.EUlBevelStyle.None;
            this.bgPanel.Controls.Add(this.view4Panel);
            this.bgPanel.Controls.Add(this.view3Panel);
            this.bgPanel.Controls.Add(this.view2Panel);
            this.bgPanel.Controls.Add(this.view1Panel);
            this.bgPanel.Size = new System.Drawing.Size(1816, 915);
            // 
            // view1Panel
            // 
            this.view1Panel.BevelInner = Ulee.Controls.EUlBevelStyle.None;
            this.view1Panel.BevelOuter = Ulee.Controls.EUlBevelStyle.None;
            this.view1Panel.InnerColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.view1Panel.InnerColor2 = System.Drawing.Color.White;
            this.view1Panel.Location = new System.Drawing.Point(0, 0);
            this.view1Panel.Name = "view1Panel";
            this.view1Panel.OuterColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.view1Panel.OuterColor2 = System.Drawing.Color.White;
            this.view1Panel.Size = new System.Drawing.Size(450, 915);
            this.view1Panel.Spacing = 0;
            this.view1Panel.TabIndex = 0;
            this.view1Panel.TextHAlign = Ulee.Controls.EUlHoriAlign.Center;
            this.view1Panel.TextVAlign = Ulee.Controls.EUlVertAlign.Middle;
            // 
            // view2Panel
            // 
            this.view2Panel.BevelInner = Ulee.Controls.EUlBevelStyle.None;
            this.view2Panel.BevelOuter = Ulee.Controls.EUlBevelStyle.None;
            this.view2Panel.InnerColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.view2Panel.InnerColor2 = System.Drawing.Color.White;
            this.view2Panel.Location = new System.Drawing.Point(455, 0);
            this.view2Panel.Name = "view2Panel";
            this.view2Panel.OuterColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.view2Panel.OuterColor2 = System.Drawing.Color.White;
            this.view2Panel.Size = new System.Drawing.Size(450, 915);
            this.view2Panel.Spacing = 0;
            this.view2Panel.TabIndex = 1;
            this.view2Panel.TextHAlign = Ulee.Controls.EUlHoriAlign.Center;
            this.view2Panel.TextVAlign = Ulee.Controls.EUlVertAlign.Middle;
            // 
            // view4Panel
            // 
            this.view4Panel.BevelInner = Ulee.Controls.EUlBevelStyle.None;
            this.view4Panel.BevelOuter = Ulee.Controls.EUlBevelStyle.None;
            this.view4Panel.InnerColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.view4Panel.InnerColor2 = System.Drawing.Color.White;
            this.view4Panel.Location = new System.Drawing.Point(1365, 0);
            this.view4Panel.Name = "view4Panel";
            this.view4Panel.OuterColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.view4Panel.OuterColor2 = System.Drawing.Color.White;
            this.view4Panel.Size = new System.Drawing.Size(451, 915);
            this.view4Panel.Spacing = 0;
            this.view4Panel.TabIndex = 3;
            this.view4Panel.TextHAlign = Ulee.Controls.EUlHoriAlign.Center;
            this.view4Panel.TextVAlign = Ulee.Controls.EUlVertAlign.Middle;
            // 
            // view3Panel
            // 
            this.view3Panel.BevelInner = Ulee.Controls.EUlBevelStyle.None;
            this.view3Panel.BevelOuter = Ulee.Controls.EUlBevelStyle.None;
            this.view3Panel.InnerColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.view3Panel.InnerColor2 = System.Drawing.Color.White;
            this.view3Panel.Location = new System.Drawing.Point(910, 0);
            this.view3Panel.Name = "view3Panel";
            this.view3Panel.OuterColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.view3Panel.OuterColor2 = System.Drawing.Color.White;
            this.view3Panel.Size = new System.Drawing.Size(450, 915);
            this.view3Panel.Spacing = 0;
            this.view3Panel.TabIndex = 2;
            this.view3Panel.TextHAlign = Ulee.Controls.EUlHoriAlign.Center;
            this.view3Panel.TextVAlign = Ulee.Controls.EUlVertAlign.Middle;
            // 
            // CtrlDevicePlc
            // 
            this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            this.Name = "CtrlDevicePlc";
            this.Size = new System.Drawing.Size(1816, 915);
            this.bgPanel.ResumeLayout(false);
            this.ResumeLayout(false);
            this.PerformLayout();

        }

        #endregion

        private Ulee.Controls.UlPanel view4Panel;
        private Ulee.Controls.UlPanel view3Panel;
        private Ulee.Controls.UlPanel view2Panel;
        private Ulee.Controls.UlPanel view1Panel;
    }
}
<file_sep>﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

using FirebirdSql.Data.FirebirdClient;

using Ulee.Intel;
using Ulee.Utils;

namespace Hnc.Calorimeter.Server
{
    public class CalibratorCollection
    {
        public CalibratorCollection()
        {
            Ini = new UlIniFile(csCalibIniFName);
            Category = new Dictionary<string, Dictionary<int, CalibratorRow>>();

            Initialize();
        }

        private const string csCalibIniFName = @"..\..\Config\Hnc.Calorimeter.3R.Calibrator.Ini";

        public UlIniFile Ini { get; private set; }

        public Dictionary<string, Dictionary<int, CalibratorRow>> Category { get; private set; }

        public Dictionary<int, CalibratorRow> this[string key]
        { get { return Category[key]; } }

        private void Initialize()
        {
            Category.Add("All", new Dictionary<int, CalibratorRow>());

            int i = 1;
            string key = $"Item{i}";
            string value = Ini.GetString("All", key);

            while (value != "")
            {
                Category.Add(value, new Dictionary<int, CalibratorRow>());

                i++;
                key = $"Item{i}";
                value = Ini.GetString("All", key);
            }

            Dictionary<int, CalibratorRow> rows = null;
            Dictionary<int, CalibratorRow> allRows = null;

            foreach (KeyValuePair<string, Dictionary<int, CalibratorRow>> calRow in Category)
            {
                if (calRow.Key == "All")
                {
                    allRows = calRow.Value;
                    allRows.Clear();
                }
                else
                {
                    rows = calRow.Value;
                    rows.Clear();

                    i = 1;
                    key = $"Item{i}";
                    value = Ini.GetString(calRow.Key, key);

                    while (value != "")
                    {
                        string[] keys = value.Split(new[] { ',' }, StringSplitOptions.None);
                        CalibratorRow row = new CalibratorRow(int.Parse(keys[1]), keys[0]);

                        rows.Add(row.No, row);
                        allRows.Add(row.No, row);

                        i++;
                        key = $"Item{i}";
                        value = Ini.GetString(calRow.Key, key);
                    }
                }
            }
        }
    }

    public class CalibratorRow
    {
        public CalibratorRow(int no, string name)
        {
            Checked = false;
            No = no;
            Name = name;
            Raw = 0;

            Calibrator = new Calibrator();
        }

        public Calibrator Calibrator { get; private set; }

        public bool Checked { get; set; }

        public int No { get; set; }

        public string Name { get; set; }

        public float Raw { get; set; }

        public float Real { get; set; }

        public float PV1
        {
            get { return Calibrator.Points[0].PV; }
            set { Calibrator.Points[0].PV = value; }
        }
        public float SV1
        {
            get { return Calibrator.Points[0].SV; }
            set { Calibrator.Points[0].SV = value; }
        }

        public float PV2
        {
            get { return Calibrator.Points[1].PV; }
            set { Calibrator.Points[1].PV = value; }
        }
        public float SV2
        {
            get { return Calibrator.Points[1].SV; }
            set { Calibrator.Points[1].SV = value; }
        }

        public float PV3
        {
            get { return Calibrator.Points[2].PV; }
            set { Calibrator.Points[2].PV = value; }
        }
        public float SV3
        {
            get { return Calibrator.Points[2].SV; }
            set { Calibrator.Points[2].SV = value; }
        }

        public float PV4
        {
            get { return Calibrator.Points[3].PV; }
            set { Calibrator.Points[3].PV = value; }
        }
        public float SV4
        {
            get { return Calibrator.Points[3].SV; }
            set { Calibrator.Points[3].SV = value; }
        }

        public float PV5
        {
            get { return Calibrator.Points[4].PV; }
            set { Calibrator.Points[4].PV = value; }
        }
        public float SV5
        {
            get { return Calibrator.Points[4].SV; }
            set { Calibrator.Points[4].SV = value; }
        }

        public float PV6
        {
            get { return Calibrator.Points[5].PV; }
            set { Calibrator.Points[5].PV = value; }
        }
        public float SV6
        {
            get { return Calibrator.Points[5].SV; }
            set { Calibrator.Points[5].SV = value; }
        }

        public float PV7
        {
            get { return Calibrator.Points[6].PV; }
            set { Calibrator.Points[6].PV = value; }
        }
        public float SV7
        {
            get { return Calibrator.Points[6].SV; }
            set { Calibrator.Points[6].SV = value; }
        }

        public float PV8
        {
            get { return Calibrator.Points[7].PV; }
            set { Calibrator.Points[7].PV = value; }
        }
        public float SV8
        {
            get { return Calibrator.Points[7].SV; }
            set { Calibrator.Points[7].SV = value; }
        }

        public float PV9
        {
            get { return Calibrator.Points[8].PV; }
            set { Calibrator.Points[8].PV = value; }
        }
        public float SV9
        {
            get { return Calibrator.Points[8].SV; }
            set { Calibrator.Points[8].SV = value; }
        }

        public float PV10
        {
            get { return Calibrator.Points[9].PV; }
            set { Calibrator.Points[9].PV = value; }
        }
        public float SV10
        {
            get { return Calibrator.Points[9].SV; }
            set { Calibrator.Points[9].SV = value; }
        }

        public float PV11
        {
            get { return Calibrator.Points[10].PV; }
            set { Calibrator.Points[10].PV = value; }
        }
        public float SV11
        {
            get { return Calibrator.Points[10].SV; }
            set { Calibrator.Points[10].SV = value; }
        }

        public float PV12
        {
            get { return Calibrator.Points[11].PV; }
            set { Calibrator.Points[11].PV = value; }
        }
        public float SV12
        {
            get { return Calibrator.Points[11].SV; }
            set { Calibrator.Points[11].SV = value; }
        }

        public float PV13
        {
            get { return Calibrator.Points[12].PV; }
            set { Calibrator.Points[12].PV = value; }
        }
        public float SV13
        {
            get { return Calibrator.Points[12].SV; }
            set { Calibrator.Points[12].SV = value; }
        }

        public float PV14
        {
            get { return Calibrator.Points[13].PV; }
            set { Calibrator.Points[13].PV = value; }
        }
        public float SV14
        {
            get { return Calibrator.Points[13].SV; }
            set { Calibrator.Points[13].SV = value; }
        }

        public float PV15
        {
            get { return Calibrator.Points[14].PV; }
            set { Calibrator.Points[14].PV = value; }
        }
        public float SV15
        {
            get { return Calibrator.Points[14].SV; }
            set { Calibrator.Points[14].SV = value; }
        }

        public float PV16
        {
            get { return Calibrator.Points[15].PV; }
            set { Calibrator.Points[15].PV = value; }
        }
        public float SV16
        {
            get { return Calibrator.Points[15].SV; }
            set { Calibrator.Points[15].SV = value; }
        }
    }

    public class CalibrationPoint
    {
        public CalibrationPoint(float pv, float sv)
        {
            PV = pv;
            SV = sv;
        }

        public float PV { get; set; }
        public float SV { get; set; }
    }

    public class Calibrator
    {
        public Calibrator()
        {
            Clear();

            Points = new List<CalibrationPoint>();

            for (int i = 0; i < 16; i++)
            {
                Points.Add(new CalibrationPoint(0, 0));
            }
        }

        public bool Active { get; set; }

        public List<CalibrationPoint> Points { get; }

        public double RawA { get; set; }
        public double RawB { get; set; }
        public double RawC { get; set; }
        public double DiffA { get; set; }
        public double DiffB { get; set; }
        public double DiffC { get; set; }

        public void Clear()
        {
            Active = false;
            
            RawA = 0;
            RawB = 1;
            RawC = 0;

            DiffA = 0;
            DiffB = 0;
            DiffC = 0;
        }

        public void CurveFit(int length)
        {
            if (length < 2)
            {
                throw new Exception("Occured curvefit's data length low error in Calibrator.CurveFit");
            }

            double[] rawX = new double[length];
            double[] rawY = new double[length];

            for (int i=0; i<length; i++)
            {
                rawX[i] = Points[i].PV;
                rawY[i] = Points[i].SV;
            }

            DiffA = 0;
            DiffB = 0;
            DiffC = 0;

            try
            {
                switch (length)
                {
                    case 2:
                        RawA = rawY[0] - rawX[0];
                        RawB = (rawY[1] - rawY[0]) / (rawX[1] - rawX[0]);
                        RawC = 0;
                        break;

                    default:
                        if ((IsDoubleArrayAllZero(rawX) == false) &&
                            (IsDoubleArrayAllZero(rawY) == false))
                        {
                            double[] raw = Fitting.LsFit(rawX, rawY, 2);
                            RawA = raw[0];
                            RawB = raw[1];
                            RawC = raw[2];
                        }
                        else
                        {
                            RawA = 0;
                            RawB = 1;
                            RawC = 0;
                        }
                        break;
                }

                Active = true;
            }
            catch (Exception e)
            {
                Clear();
                Resource.TLog.Log((int)ELogItem.Exception, e.ToString());
                throw new Exception("Occured calculation error in Calibrator.CurveFit");
            }
        }

        public float Execute(float value)
        {
            if (Active == false) return value;

            double raw = RawA + RawB * value + RawC * Math.Pow(value, 2);

            if ((double.IsInfinity(raw) == true) || (double.IsNaN(raw) == true)) raw = 0.0;

            return (float)raw;
        }

        private bool IsDoubleArrayAllZero(double[] array)
        {
            bool ret = true;

            foreach (double value in array)
            {
                if (value != 0.0)
                {
                    ret = false;
                    break;
                }
            }

            return ret;
        }
    }
}
<file_sep>﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

using Ulee.Controls;

namespace Hnc.Calorimeter.Client
{
    public partial class FormControllerEdit : UlFormEng
    {
        public FormControllerEdit()
        {
            InitializeComponent();
            Initialize();
        }

        public List<CheckBox> Checks;

        private void Initialize()
        {
            Checks = new List<CheckBox>();
            Checks.Add(svCheck);
            Checks.Add(outCheck);
            Checks.Add(modeCheck);
            Checks.Add(pCheck);
            Checks.Add(iCheck);
            Checks.Add(dCheck);
            Checks.Add(flCheck);
        }

        private void FormControllerEdit_Load(object sender, EventArgs e)
        {
            foreach (CheckBox chk in Checks)
            {
                chk.Checked = false;
            }

            modeCombo.SelectedIndex = 0;
        }

        private void FormControllerEdit_KeyPress(object sender, KeyPressEventArgs e)
        {
            if (e.KeyChar == (char)Keys.Escape)
            {
                cancelButton.PerformClick();
            }
        }
    }
}
<file_sep>﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

using Ulee.Utils;

namespace Hnc.Calorimeter.Client
{
    #region enum Unit
    public enum EUnitType
    {
        [Description("None")]
        None,
        [Description("Current")]
        Current,
        [Description("Voltage")]
        Voltage,
        [Description("Frequency")]
        Frequency,
        [Description("Flux")]
        Flux,
        [Description("Ratio")]
        Ratio,
        [Description("Humidity Ratio")]
        HumidityRatio,
        [Description("Power")]
        Power,
        [Description("Power Comsumption")]
        PowerComsumption,
        [Description("Velocity")]
        Velocity,
        [Description("Volume")]
        Volume,
        [Description("Time")]
        Time,
        [Description("Capacity")]
        Capacity,
        [Description("Enthalpy")]
        Enthalpy,
        [Description("Heat")]
        Heat,
        [Description("EER/COP")]
        EER_COP,
        [Description("Pressure")]
        Pressure,
        [Description("Diff. Pressure")]
        DiffPressure,
        [Description("Atm. Pressure")]
        AtmPressure,
        [Description("Air Flow")]
        AirFlow,
        [Description("Temperature")]
        Temperature
    }

    public enum EUnitSingle
    {
        [Description("None")]
        None,
        [Description("A")]
        A,
        [Description("V")]
        V,
        [Description("Hz")]
        Hz,
        [Description("kg/h")]
        kg_h,
        [Description("%")]
        Percent,
        [Description("kg/kg'")]
        kg_kg,
        [Description("W")]
        W,
        [Description("Wh")]
        Wh,
        [Description("m/s")]
        m_s,
        [Description("㎥/kg")]
        m3_kg
    }

    public enum EUnitAirFlow
    {
        [Description("CMM")]
        CMM,
        [Description("CFM")]
        CFM,
        [Description("CMH")]
        CMH
    }

    public enum EUnitCapacity
    {
        [Description("W")]
        W,
        [Description("kcal/h")]
        kcal,
        [Description("Btu/h")]
        Btu,
        [Description("kJ/h")]
        kJ
    }

    public enum EUnitEnthalpy
    {
        [Description("W/kg'")]
        W,
        [Description("kcal/kg'")]
        kcal,
        [Description("Btu/kg'")]
        Btu,
        [Description("kJ/kg'")]
        kJ
    }

    public enum EUnitHeat
    {
        [Description("W/kg℃")]
        W,
        [Description("kcal/kg℃")]
        kcal,
        [Description("Btu/kg℃")]
        Btu,
        [Description("kJ/kg℃")]
        kJ
    }

    public enum EUnitEER_COP
    {
        [Description("W/W")]
        W,
        [Description("kcal/hW")]
        kcal,
        [Description("Btu/hW")]
        Btu,
        [Description("kJ/hW")]
        kj
    }

    public enum EUnitTemperature
    {
        [Description("℃")]
        Celsius,
        [Description("ºF")]
        Fahrenheit
    }

    public enum EUnitPressure
    {
        [Description("Bar")]
        Bar,
        [Description("kPa")]
        kPa,
        [Description("MPa")]
        MPa,
        [Description("kg/㎠")]
        kg_cm2
    }

    public enum EUnitDiffPressure
    {
        [Description("mmAq")]
        mmAq,
        [Description("Pa")]
        Pa,
        [Description("kPa")]
        kPa,
        [Description("kg/㎠")]
        kg_cm2
    }

    public enum EUnitAtmPressure
    {
        [Description("mmAq")]
        mmAq,
        [Description("Pa")]
        Pa,
        [Description("kPa")]
        kPa,
        [Description("mmHg")]
        mmHg
    }

    public enum EUnitTime
    {
        [Description("sec")]
        sec,
        [Description("min")]
        min
    }
    #endregion

    static public class UnitQuery
    {
        static public string GetName(EUnitType type)
        {
            return type.ToString();
        }

        static public string GetUnitDescription(EUnitType type, int unit=0)
        {
            string desc = "None";

            switch (type)
            {
                case EUnitType.None:
                case EUnitType.Current:
                case EUnitType.Voltage:
                case EUnitType.Frequency:
                case EUnitType.Flux:
                case EUnitType.Ratio:
                case EUnitType.HumidityRatio:
                case EUnitType.Power:
                case EUnitType.PowerComsumption:
                case EUnitType.Velocity:
                case EUnitType.Volume:
                    desc = EnumHelper.GetNames<EUnitSingle>()[(int)type];
                    break;

                case EUnitType.Time:
                    desc = EnumHelper.GetNames<EUnitTime>()[unit];
                    break;

                case EUnitType.Capacity:
                    desc = EnumHelper.GetNames<EUnitCapacity>()[unit];
                    break;

                case EUnitType.Enthalpy:
                    desc = EnumHelper.GetNames<EUnitEnthalpy>()[unit];
                    break;

                case EUnitType.Heat:
                    desc = EnumHelper.GetNames<EUnitHeat>()[unit];
                    break;

                case EUnitType.EER_COP:
                    desc = EnumHelper.GetNames<EUnitEER_COP>()[unit];
                    break;

                case EUnitType.Pressure:
                    desc = EnumHelper.GetNames<EUnitPressure>()[unit];
                    break;

                case EUnitType.DiffPressure:
                    desc = EnumHelper.GetNames<EUnitDiffPressure>()[unit];
                    break;

                case EUnitType.AtmPressure:
                    desc = EnumHelper.GetNames<EUnitAtmPressure>()[unit];
                    break;

                case EUnitType.AirFlow:
                    desc = EnumHelper.GetNames<EUnitAirFlow>()[unit];
                    break;

                case EUnitType.Temperature:
                    desc = EnumHelper.GetNames<EUnitTemperature>()[unit];
                    break;
            }

            return desc;
        }
    }

    public class UnitConvert
    {
        public UnitConvert(EUnitType type, int from, int to, bool enabled=true)
        {
            Type = type;
            From = from;
            To = to;
            Enabled = enabled;
        }

        #region Properties
        public EUnitType Type { get; set; }

        public int From { get; set; }

        public string FromDescription { get { return GetDescription(Type, From); } }

        public int To { get; set; }

        public bool Enabled { get; set; }

        public string ToDescription { get { return GetDescription(Type, To); } }
        #endregion

        #region Methods

        #region Convert
        private string GetDescription(EUnitType type, int unit)
        {
            string desc;

            switch (type)
            {
                case EUnitType.Current:
                case EUnitType.Voltage:
                case EUnitType.Frequency:
                case EUnitType.Flux:
                case EUnitType.Ratio:
                case EUnitType.HumidityRatio:
                case EUnitType.Power:
                case EUnitType.PowerComsumption:
                case EUnitType.Velocity:
                case EUnitType.Volume:
                    desc = EnumHelper.GetNames<EUnitSingle>()[(int)type];
                    break;

                case EUnitType.AirFlow:
                    desc = EnumHelper.GetNames<EUnitAirFlow>()[unit];
                    break;

                case EUnitType.Capacity:
                    desc = EnumHelper.GetNames<EUnitCapacity>()[unit];
                    break;

                case EUnitType.Enthalpy:
                    desc = EnumHelper.GetNames<EUnitEnthalpy>()[unit];
                    break;

                case EUnitType.Heat:
                    desc = EnumHelper.GetNames<EUnitHeat>()[unit];
                    break;

                case EUnitType.EER_COP:
                    desc = EnumHelper.GetNames<EUnitEER_COP>()[unit];
                    break;

                case EUnitType.Temperature:
                    desc = EnumHelper.GetNames<EUnitTemperature>()[unit];
                    break;

                case EUnitType.Pressure:
                    desc = EnumHelper.GetNames<EUnitPressure>()[unit];
                    break;

                case EUnitType.DiffPressure:
                    desc = EnumHelper.GetNames<EUnitDiffPressure>()[unit];
                    break;

                case EUnitType.AtmPressure:
                    desc = EnumHelper.GetNames<EUnitAtmPressure>()[unit];
                    break;

                case EUnitType.Time:
                    desc = EnumHelper.GetNames<EUnitTime>()[unit];
                    break;

                default:
                    desc = EUnitType.None.ToString();
                    break;
            }

            return desc;
        }

        public double Convert(double value)
        {
            return Convert(value, Type, From, To);
        }

        public double Convert(double value, int to)
        {
            return Convert(value, Type, From, to);
        }

        public double Convert(double value, EUnitType type, int from, int to)
        {
            if (Enabled == false) return value;

            double ret = 0;

            switch (type)
            {
                case EUnitType.None:
                case EUnitType.Current:
                case EUnitType.Voltage:
                case EUnitType.Frequency:
                case EUnitType.Flux:
                case EUnitType.Ratio:
                case EUnitType.HumidityRatio:
                case EUnitType.Power:
                case EUnitType.PowerComsumption:
                case EUnitType.Velocity:
                case EUnitType.Volume:
                    ret = value;
                    break;

                case EUnitType.Temperature:
                    ret = ConvertTemperature(value, from, to);
                    break;

                case EUnitType.Time:
                    ret = ConvertTime(value, from, to);
                    break;

                default:
                    ret = value * GetRatio(type, from, to);
                    break;
            }

            return ret;
        }

        private double ConvertTemperature(double value, int from, int to)
        {
            if (from == to) return value;

            switch ((EUnitTemperature)from)
            {
                case EUnitTemperature.Celsius:
                    value = value * 1.8 + 32.0;
                    break;

                case EUnitTemperature.Fahrenheit:
                    value = (value - 32.0) / 1.8;
                    break;
            }
            
            return value;
        }

        private double ConvertTime(double value, int from, int to)
        {
            if (from == to) return value;

            double min = 0;
            double sec = 0;

            switch ((EUnitTime)from)
            {
                case EUnitTime.sec:
                    min = (value - (value % 60)) / 60.0;
                    sec = (value % 60) / 100.0;
                    break;

                case EUnitTime.min:
                    min = Math.Round(value) * 60.0;
                    sec = (value - Math.Round(value)) * 100.0;
                    break;
            }

            return (min + sec);
        }
        #endregion

        private double GetRatio(EUnitType type, int from, int to)
        {
            double ratio = 0;

            switch (type)
            {
                case EUnitType.AirFlow:
                    ratio = GetAirFlowRatio((EUnitAirFlow)from, (EUnitAirFlow)to);
                    break;

                case EUnitType.Capacity:
                case EUnitType.Enthalpy:
                case EUnitType.Heat:
                case EUnitType.EER_COP:
                    ratio = GetCapacityRatio((EUnitCapacity)from, (EUnitCapacity)to);
                    break;

                case EUnitType.Pressure:
                    ratio = GetPressureRatio((EUnitPressure)from, (EUnitPressure)to);
                    break;

                case EUnitType.AtmPressure:
                    ratio = GetAtmPressureRatio((EUnitAtmPressure)from, (EUnitAtmPressure)to);
                    break;

                case EUnitType.DiffPressure:
                    ratio = GetDiffPressureRatio((EUnitDiffPressure)from, (EUnitDiffPressure)to);
                    break;
            }

            return ratio;
        }

        #region AirFlow
        private double GetAirFlowRatio(EUnitAirFlow from, EUnitAirFlow to)
        {
            double ratio = 0;

            switch (from)
            {
                case EUnitAirFlow.CMM:
                    ratio = GetAirFlowRatioCMM(to);
                    break;

                case EUnitAirFlow.CFM:
                    ratio = GetAirFlowRatioCFM(to);
                    break;

                case EUnitAirFlow.CMH:
                    ratio = GetAirFlowRatioCMH(to);
                    break;
            }

            return ratio;
        }

        private double GetAirFlowRatioCMM(EUnitAirFlow to)
        {
            double ratio = 0;

            switch (to)
            {
                case EUnitAirFlow.CMM:
                    ratio = 1.0;
                    break;

                case EUnitAirFlow.CFM:
                    ratio = 35.3147;
                    break;

                case EUnitAirFlow.CMH:
                    ratio = 60.0;
                    break;
            }

            return ratio;
        }

        private double GetAirFlowRatioCFM(EUnitAirFlow to)
        {
            double ratio = 0;

            switch (to)
            {
                case EUnitAirFlow.CMM:
                    ratio = 1.0 / 35.3147;
                    break;

                case EUnitAirFlow.CFM:
                    ratio = 1.0;
                    break;

                case EUnitAirFlow.CMH:
                    ratio = 1.0 / 35.3147 * 60.0;
                    break;
            }

            return ratio;
        }

        private double GetAirFlowRatioCMH(EUnitAirFlow to)
        {
            double ratio = 0;

            switch (to)
            {
                case EUnitAirFlow.CMM:
                    ratio = 1.0 / 60.0;
                    break;

                case EUnitAirFlow.CFM:
                    ratio = 1.0 / 60.0 * 35.3147;
                    break;

                case EUnitAirFlow.CMH:
                    ratio = 1.0;
                    break;
            }

            return ratio;
        }
        #endregion

        #region Capacity and Enthalpy
        private double GetCapacityRatio(EUnitCapacity from, EUnitCapacity to)
        {
            double ratio = 0;

            switch (from)
            {
                case EUnitCapacity.W:
                    ratio = GetCapacityRatioWatt(to);
                    break;

                case EUnitCapacity.kcal:
                    ratio = GetCapacityRatiokcal(to);
                    break;

                case EUnitCapacity.Btu:
                    ratio = GetCapacityRatioBtu(to);
                    break;

                case EUnitCapacity.kJ:
                    ratio = GetCapacityRatiokj(to);
                    break;
            }

            return ratio;
        }

        private double GetCapacityRatioWatt(EUnitCapacity to)
        {
            double ratio = 0;

            switch (to)
            {
                case EUnitCapacity.W:
                    ratio = 1.0;
                    break;

                case EUnitCapacity.kcal:
                    ratio = 1.0 / 1.1628;
                    break;

                case EUnitCapacity.Btu:
                    ratio = 1.0 / 1.1628 * 3.968;
                    break;

                case EUnitCapacity.kJ:
                    ratio = 1.0 / 1.1628 * 4.1868;
                    break;
            }

            return ratio;
        }

        private double GetCapacityRatiokcal(EUnitCapacity to)
        {
            double ratio = 0;

            switch (to)
            {
                case EUnitCapacity.W:
                    ratio = 1.1628;
                    break;

                case EUnitCapacity.kcal:
                    ratio = 1.0;
                    break;

                case EUnitCapacity.Btu:
                    ratio = 3.968;
                    break;

                case EUnitCapacity.kJ:
                    ratio = 4.1868;
                    break;
            }

            return ratio;
        }

        private double GetCapacityRatioBtu(EUnitCapacity to)
        {
            double ratio = 0;

            switch (to)
            {
                case EUnitCapacity.W:
                    ratio = 1.0 / 3.968 * 1.1628;
                    break;

                case EUnitCapacity.kcal:
                    ratio = 1.0 / 3.968;
                    break;

                case EUnitCapacity.Btu:
                    ratio = 1.0;
                    break;

                case EUnitCapacity.kJ:
                    ratio = 1.0 / 3.968 * 4.1868;
                    break;
            }

            return ratio;
        }

        private double GetCapacityRatiokj(EUnitCapacity to)
        {
            double ratio = 0;

            switch (to)
            {
                case EUnitCapacity.W:
                    ratio = 1.0 / 4.1868 * 1.1628;
                    break;

                case EUnitCapacity.kcal:
                    ratio = 1.0 / 4.1868;
                    break;

                case EUnitCapacity.Btu:
                    ratio = 1.0 / 4.1868 * 3.968;
                    break;

                case EUnitCapacity.kJ:
                    ratio = 1.0;
                    break;
            }

            return ratio;
        }
        #endregion

        #region Pressure
        private double GetPressureRatio(EUnitPressure from, EUnitPressure to)
        {
            double ratio = 0;

            switch (from)
            {
                case EUnitPressure.Bar:
                    ratio = GetBarPressureRatioBar(to);
                    break;

                case EUnitPressure.kPa:
                    ratio = GetBarPressureRatiokPa(to);
                    break;

                case EUnitPressure.MPa:
                    ratio = GetBarPressureRatioMPa(to);
                    break;

                case EUnitPressure.kg_cm2:
                    ratio = GetBarPressureRatiokg_cm2(to);
                    break;
            }

            return ratio;
        }

        private double GetBarPressureRatioBar(EUnitPressure to)
        {
            double ratio = 0;

            switch (to)
            {
                case EUnitPressure.Bar:
                    ratio = 1.0;
                    break;

                case EUnitPressure.kPa:
                    ratio = 100.0;
                    break;

                case EUnitPressure.MPa:
                    ratio = 0.1;
                    break;

                case EUnitPressure.kg_cm2:
                    ratio = 1.019716;
                    break;
            }

            return ratio;
        }

        private double GetBarPressureRatiokPa(EUnitPressure to)
        {
            double ratio = 0;

            switch (to)
            {
                case EUnitPressure.Bar:
                    ratio = 1.0 / 100.0;
                    break;

                case EUnitPressure.kPa:
                    ratio = 1.0;
                    break;

                case EUnitPressure.MPa:
                    ratio = 1.0 / 100.0 * 0.1;
                    break;

                case EUnitPressure.kg_cm2:
                    ratio = 1.0 / 100.0 * 1.019716;
                    break;
            }

            return ratio;
        }

        private double GetBarPressureRatioMPa(EUnitPressure to)
        {
            double ratio = 0;

            switch (to)
            {
                case EUnitPressure.Bar:
                    ratio = 1.0 / 0.1;
                    break;

                case EUnitPressure.kPa:
                    ratio = 1.0 / 0.1 * 100.0;
                    break;

                case EUnitPressure.MPa:
                    ratio = 1.0;
                    break;

                case EUnitPressure.kg_cm2:
                    ratio = 1.0 / 0.1 * 1.019716;
                    break;
            }

            return ratio;
        }

        private double GetBarPressureRatiokg_cm2(EUnitPressure to)
        {
            double ratio = 0;

            switch (to)
            {
                case EUnitPressure.Bar:
                    ratio = 1.0 / 1.019716;
                    break;

                case EUnitPressure.kPa:
                    ratio = 1.0 / 1.019716 * 100.0;
                    break;

                case EUnitPressure.MPa:
                    ratio = 1.0 / 1.019716 * 0.1;
                    break;

                case EUnitPressure.kg_cm2:
                    ratio = 1.0;
                    break;
            }

            return ratio;
        }
        #endregion

        #region Atm Pressure
        private double GetAtmPressureRatio(EUnitAtmPressure from, EUnitAtmPressure to)
        {
            double ratio = 0;

            switch (from)
            {
                case EUnitAtmPressure.mmAq:
                    ratio = GetAtmPressureRatiommAq(to);
                    break;

                case EUnitAtmPressure.Pa:
                    ratio = GetAtmPressureRatioPa(to);
                    break;

                case EUnitAtmPressure.kPa:
                    ratio = GetAtmPressureRatiokPa(to);
                    break;

                case EUnitAtmPressure.mmHg:  //* Default
                    ratio = GetAtmPressureRatiommHg(to);
                    break;
            }

            return ratio;
        }

        private double GetAtmPressureRatiommAq(EUnitAtmPressure to)
        {
            double ratio = 0;

            switch (to)
            {
                case EUnitAtmPressure.mmAq:
                    ratio = 1.0;
                    break;

                case EUnitAtmPressure.Pa:
                    ratio = 1.0 / 13.5951 * 133.3224;
                    break;

                case EUnitAtmPressure.kPa:
                    ratio = 1.0 / 13.5951 * 0.1333224;
                    break;

                case EUnitAtmPressure.mmHg:
                    ratio = 1.0 / 13.5951;
                    break;
            }

            return ratio;
        }

        private double GetAtmPressureRatioPa(EUnitAtmPressure to)
        {
            double ratio = 0;

            switch (to)
            {
                case EUnitAtmPressure.mmAq:
                    ratio = 1.0 / 133.3224 * 13.5951;
                    break;

                case EUnitAtmPressure.Pa:
                    ratio = 1.0;
                    break;

                case EUnitAtmPressure.kPa:
                    ratio = 1.0 / 133.3224 * 0.1333224;
                    break;

                case EUnitAtmPressure.mmHg:
                    ratio = 1.0 / 133.3224;
                    break;
            }

            return ratio;
        }

        private double GetAtmPressureRatiokPa(EUnitAtmPressure to)
        {
            double ratio = 0;

            switch (to)
            {
                case EUnitAtmPressure.mmAq:
                    ratio = 1.0 / 0.1333224 * 13.5951;
                    break;

                case EUnitAtmPressure.Pa:
                    ratio = 1.0 / 0.1333224 * 133.3224;
                    break;

                case EUnitAtmPressure.kPa:
                    ratio = 1.0;
                    break;

                case EUnitAtmPressure.mmHg:
                    ratio = 1.0 / 0.1333224;
                    break;
            }

            return ratio;
        }

        private double GetAtmPressureRatiommHg(EUnitAtmPressure to)
        {
            double ratio = 0;

            switch (to)
            {
                case EUnitAtmPressure.mmAq:
                    ratio = 13.5951;
                    break;

                case EUnitAtmPressure.Pa:
                    ratio = 133.3224;
                    break;

                case EUnitAtmPressure.kPa:
                    ratio = 0.1333224;
                    break;

                case EUnitAtmPressure.mmHg:
                    ratio = 1.0;
                    break;
            }

            return ratio;
        }
        #endregion

        #region Diff Pressure
        private double GetDiffPressureRatio(EUnitDiffPressure from, EUnitDiffPressure to)
        {
            double ratio = 0;

            switch (from)
            {
                case EUnitDiffPressure.mmAq:  //* Default
                    ratio = GetDiffPressureRatiommAq(to);
                    break;

                case EUnitDiffPressure.Pa:
                    ratio = GetDiffPressureRatioPa(to);
                    break;

                case EUnitDiffPressure.kPa:
                    ratio = GetDiffPressureRatiokPa(to);
                    break;

                case EUnitDiffPressure.kg_cm2:
                    ratio = GetDiffPressureRatiokg_cm2(to);
                    break;
            }

            return ratio;
        }

        private double GetDiffPressureRatiommAq(EUnitDiffPressure to)
        {
            double ratio = 0;

            switch (to)
            {
                case EUnitDiffPressure.mmAq:
                    ratio = 1.0;
                    break;

                case EUnitDiffPressure.Pa:
                    ratio = 9.80665;
                    break;

                case EUnitDiffPressure.kPa:
                    ratio = 0.00980665;
                    break;

                case EUnitDiffPressure.kg_cm2:
                    ratio = 0.0001;
                    break;
            }

            return ratio;
        }

        private double GetDiffPressureRatioPa(EUnitDiffPressure to)
        {
            double ratio = 0;

            switch (to)
            {
                case EUnitDiffPressure.mmAq:
                    ratio = 1.0 / 9.80665;
                    break;

                case EUnitDiffPressure.Pa:
                    ratio = 1.0;
                    break;

                case EUnitDiffPressure.kPa:
                    ratio = 1.0 / 9.80665 * 0.00980665;
                    break;

                case EUnitDiffPressure.kg_cm2:
                    ratio = 1.0 / 9.80665 * 0.0001;
                    break;
            }

            return ratio;
        }

        private double GetDiffPressureRatiokPa(EUnitDiffPressure to)
        {
            double ratio = 0;

            switch (to)
            {
                case EUnitDiffPressure.mmAq:
                    ratio = 1.0 / 0.00980665;
                    break;

                case EUnitDiffPressure.Pa:
                    ratio = 1.0 / 0.00980665 * 9.80665;
                    break;

                case EUnitDiffPressure.kPa:
                    ratio = 1.0;
                    break;

                case EUnitDiffPressure.kg_cm2:
                    ratio = 1.0 / 0.00980665 * 0.0001;
                    break;
            }

            return ratio;
        }

        private double GetDiffPressureRatiokg_cm2(EUnitDiffPressure to)
        {
            double ratio = 0;

            switch (to)
            {
                case EUnitDiffPressure.mmAq:
                    ratio = 1.0 / 0.0001;
                    break;

                case EUnitDiffPressure.Pa:
                    ratio = 1.0 / 0.0001 * 9.80665;
                    break;

                case EUnitDiffPressure.kPa:
                    ratio = 1.0 / 0.0001 * 0.00980665;
                    break;

                case EUnitDiffPressure.kg_cm2:
                    ratio = 1.0;
                    break;
            }

            return ratio;
        }
        #endregion

        #endregion
    }
}
<file_sep>﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

using Ulee.Controls;

namespace Hnc.Calorimeter.Server
{
    public partial class FormUserEdit : UlFormEng
    {
        public string UserName
        {
            get { return userNameEdit.Text; }
            set { userNameEdit.Text = value; }
        }

        public int Authority
        {
            get { return userGradeCombo.SelectedIndex + 1; }
            set { userGradeCombo.SelectedIndex = value - 1; }
        }

        public string Password
        {
            get { return userPasswdEdit.Text; }
            set { userPasswdEdit.Text = value; }
        }

        public string Memo
        {
            get { return userMemoEdit.Text; }
            set { userMemoEdit.Text = value; }
        }

        public FormUserEdit()
        {
            InitializeComponent();
        }

        private void okButton_Click(object sender, EventArgs e)
        {
            if (userNameEdit.Text.Trim() == "")
            {
                ActiveControl = userNameEdit;
                return;
            }

            Close();
        }
    }
}
<file_sep>﻿using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Windows.Forms;

using Ulee.Controls;

namespace Hnc.Calorimeter.Server
{
    public partial class CtrlCalibTop : UlUserControlEng
    {
        public CtrlCalibTop()
        {
            InitializeComponent();
            Initialize();
        }

        private void CtrlCalibTop_Enter(object sender, EventArgs e)
        {
            DispName();
        }

        private void DispName()
        {
            int calibNo = Resource.Ini.GetInteger("Calibrator", "CalibrationNo");

            if (calibNo < 0)
            {
                nameEdit.Text = " None";
            }
            else
            {
                nameEdit.Text = " " + Resource.Db.CalibratorSet.GetMemo(calibNo);
            }
        }

        private void Initialize()
        {
            foreach (KeyValuePair<string, Dictionary<int, CalibratorRow>> row 
                in Resource.Server.Devices.Calibrators.Category)
            {
                CtrlCalibGrid ctrl = new CtrlCalibGrid(row.Value.Values.ToList());
                ctrl.SetEnableColumn(3);
                ctrl.RefreshView += DoRefreshView;

                TabPage page = new TabPage($" {row.Key} ");
                page.Controls.Add(ctrl);
                page.BackColor = Color.White;
                calibTab.TabPages.Add(page);
            }

            totalPointsCombo.SelectedIndex = 1;
        }

        private void DoRefreshView(object sender, EventArgs args)
        {
            foreach (TabPage page in calibTab.TabPages)
            {
                CtrlCalibGrid ctrl = page.Controls[0] as CtrlCalibGrid;

                ctrl.channelGridView.RefreshData();
            }
        }

        private void totalPointsCombo_SelectedIndexChanged(object sender, EventArgs e)
        {
            if (calibTab.SelectedTab == null) return;

            (calibTab.SelectedTab.Controls[0] as CtrlCalibGrid)
                .SetEnableColumn(totalPointsCombo.SelectedIndex + 2);
        }

        private void setButton_Click(object sender, EventArgs e)
        {
            if (calibTab.SelectedTab == null) return;

            (calibTab.SelectedTab.Controls[0] as CtrlCalibGrid)
                .SetValueSV(float.Parse(svEdit.Text));
        }

        private void getPvButton_Click(object sender, EventArgs e)
        {
            if (calibTab.SelectedTab == null) return;

            (calibTab.SelectedTab.Controls[0] as CtrlCalibGrid)
                .SetValuePV();
        }

        private void calibrateButton_Click(object sender, EventArgs e)
        {
            if (calibTab.SelectedTab == null) return;

            (calibTab.SelectedTab.Controls[0] as CtrlCalibGrid)
                .Calibrate();
        }

        private void openButton_Click(object sender, EventArgs e)
        {
            FormOpenCalibration form = new FormOpenCalibration();

            if (form.ShowDialog() == DialogResult.OK)
            {
                Resource.Ini.SetInteger("Calibrator", "CalibrationNo", form.RecNo);
                Resource.Db.Load(form.RecNo);
                DispName();
                DoRefreshView(null, null);
            }
        }

        private void saveButton_Click(object sender, EventArgs e)
        {
            FormCalibratorEdit form = new FormCalibratorEdit();
            form.UserID = " " + Resource.Db.UserSet.GetName(Resource.UserNo);
            form.DateTime = DateTime.Now.ToString(" yyyy-MM-dd HH:mm:ss");
            form.Memo = $"Calibration{form.DateTime.Trim().Substring(0, 10)}";

            if (form.ShowDialog() == DialogResult.OK)
            {
                int recNo = (int)Resource.Db.GetGenNo("GN_CALIBRATOR");
                Resource.Db.Save(recNo, Resource.UserNo, DateTime.Now, form.Memo);
                Resource.Ini.SetInteger("Calibrator", "CalibrationNo", recNo);
                DispName();
            }
        }

        public override void InvalidControl(object sender, EventArgs args)
        {
            if (Visible == false) return;

            List<CalibratorRow> rows = Resource.Server.Devices.Calibrators["All"].Values.ToList();

            foreach (CalibratorRow row in rows)
            {
                row.Raw = Resource.Server.Devices.GetRecorderRawValue(row.No);
                row.Real = Resource.Server.Devices.GetRecorderRealValue(row.No);
            }

            DoRefreshView(null, null);
        }
    }
}
<file_sep>﻿namespace Hnc.Calorimeter.Server
{
    partial class CtrlViewTop
    {
        /// <summary> 
        /// Required designer variable.
        /// </summary>
        private System.ComponentModel.IContainer components = null;

        /// <summary> 
        /// Clean up any resources being used.
        /// </summary>
        /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
        protected override void Dispose(bool disposing)
        {
            if (disposing && (components != null))
            {
                components.Dispose();
            }
            base.Dispose(disposing);
        }

        #region Component Designer generated code

        /// <summary> 
        /// Required method for Designer support - do not modify 
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(CtrlViewTop));
            this.menuPanel = new Ulee.Controls.UlPanel();
            this.valueButton = new DevExpress.XtraEditors.SimpleButton();
            this.deviceButton = new DevExpress.XtraEditors.SimpleButton();
            this.clientButton = new DevExpress.XtraEditors.SimpleButton();
            this.viewPanel = new Ulee.Controls.UlPanel();
            this.bgPanel.SuspendLayout();
            this.menuPanel.SuspendLayout();
            this.SuspendLayout();
            // 
            // bgPanel
            // 
            this.bgPanel.BevelOuter = Ulee.Controls.EUlBevelStyle.None;
            this.bgPanel.Controls.Add(this.viewPanel);
            this.bgPanel.Controls.Add(this.menuPanel);
            this.bgPanel.Size = new System.Drawing.Size(992, 645);
            // 
            // menuPanel
            // 
            this.menuPanel.BackColor = System.Drawing.Color.Silver;
            this.menuPanel.BevelInner = Ulee.Controls.EUlBevelStyle.None;
            this.menuPanel.BevelOuter = Ulee.Controls.EUlBevelStyle.Lowered;
            this.menuPanel.Controls.Add(this.valueButton);
            this.menuPanel.Controls.Add(this.deviceButton);
            this.menuPanel.Controls.Add(this.clientButton);
            this.menuPanel.Dock = System.Windows.Forms.DockStyle.Right;
            this.menuPanel.InnerColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.menuPanel.InnerColor2 = System.Drawing.Color.White;
            this.menuPanel.Location = new System.Drawing.Point(908, 0);
            this.menuPanel.Name = "menuPanel";
            this.menuPanel.OuterColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.menuPanel.OuterColor2 = System.Drawing.Color.White;
            this.menuPanel.Size = new System.Drawing.Size(84, 645);
            this.menuPanel.Spacing = 0;
            this.menuPanel.TabIndex = 0;
            this.menuPanel.TextHAlign = Ulee.Controls.EUlHoriAlign.Center;
            this.menuPanel.TextVAlign = Ulee.Controls.EUlVertAlign.Middle;
            // 
            // valueButton
            // 
            this.valueButton.AllowFocus = false;
            this.valueButton.Appearance.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.valueButton.Appearance.Options.UseBorderColor = true;
            this.valueButton.Appearance.Options.UseFont = true;
            this.valueButton.Appearance.Options.UseTextOptions = true;
            this.valueButton.Appearance.TextOptions.VAlignment = DevExpress.Utils.VertAlignment.Bottom;
            this.valueButton.ImageOptions.Image = ((System.Drawing.Image)(resources.GetObject("valueButton.ImageOptions.Image")));
            this.valueButton.ImageOptions.Location = DevExpress.XtraEditors.ImageLocation.TopCenter;
            this.valueButton.Location = new System.Drawing.Point(2, 122);
            this.valueButton.Name = "valueButton";
            this.valueButton.Size = new System.Drawing.Size(80, 58);
            this.valueButton.TabIndex = 8;
            this.valueButton.TabStop = false;
            this.valueButton.Text = "Value";
            // 
            // deviceButton
            // 
            this.deviceButton.AllowFocus = false;
            this.deviceButton.Appearance.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.deviceButton.Appearance.Options.UseBorderColor = true;
            this.deviceButton.Appearance.Options.UseFont = true;
            this.deviceButton.Appearance.Options.UseTextOptions = true;
            this.deviceButton.Appearance.TextOptions.VAlignment = DevExpress.Utils.VertAlignment.Bottom;
            this.deviceButton.ImageOptions.Image = ((System.Drawing.Image)(resources.GetObject("deviceButton.ImageOptions.Image")));
            this.deviceButton.ImageOptions.Location = DevExpress.XtraEditors.ImageLocation.TopCenter;
            this.deviceButton.Location = new System.Drawing.Point(2, 62);
            this.deviceButton.Name = "deviceButton";
            this.deviceButton.Size = new System.Drawing.Size(80, 58);
            this.deviceButton.TabIndex = 7;
            this.deviceButton.TabStop = false;
            this.deviceButton.Text = "Device";
            // 
            // clientButton
            // 
            this.clientButton.AllowFocus = false;
            this.clientButton.Appearance.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.clientButton.Appearance.Options.UseBorderColor = true;
            this.clientButton.Appearance.Options.UseFont = true;
            this.clientButton.Appearance.Options.UseTextOptions = true;
            this.clientButton.Appearance.TextOptions.VAlignment = DevExpress.Utils.VertAlignment.Bottom;
            this.clientButton.ImageOptions.Image = ((System.Drawing.Image)(resources.GetObject("clientButton.ImageOptions.Image")));
            this.clientButton.ImageOptions.Location = DevExpress.XtraEditors.ImageLocation.TopCenter;
            this.clientButton.Location = new System.Drawing.Point(2, 2);
            this.clientButton.Name = "clientButton";
            this.clientButton.Size = new System.Drawing.Size(80, 58);
            this.clientButton.TabIndex = 6;
            this.clientButton.TabStop = false;
            this.clientButton.Text = "Client";
            // 
            // viewPanel
            // 
            this.viewPanel.BevelInner = Ulee.Controls.EUlBevelStyle.None;
            this.viewPanel.BevelOuter = Ulee.Controls.EUlBevelStyle.None;
            this.viewPanel.InnerColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.viewPanel.InnerColor2 = System.Drawing.Color.White;
            this.viewPanel.Location = new System.Drawing.Point(0, 0);
            this.viewPanel.Name = "viewPanel";
            this.viewPanel.OuterColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.viewPanel.OuterColor2 = System.Drawing.Color.White;
            this.viewPanel.Size = new System.Drawing.Size(904, 645);
            this.viewPanel.Spacing = 0;
            this.viewPanel.TabIndex = 1;
            this.viewPanel.TextHAlign = Ulee.Controls.EUlHoriAlign.Center;
            this.viewPanel.TextVAlign = Ulee.Controls.EUlVertAlign.Middle;
            // 
            // CtrlViewTop
            // 
            this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            this.Name = "CtrlViewTop";
            this.Size = new System.Drawing.Size(992, 645);
            this.Load += new System.EventHandler(this.CtrlViewTop_Load);
            this.Enter += new System.EventHandler(this.CtrlViewTop_Enter);
            this.bgPanel.ResumeLayout(false);
            this.menuPanel.ResumeLayout(false);
            this.ResumeLayout(false);
            this.PerformLayout();

        }

        #endregion

        private Ulee.Controls.UlPanel viewPanel;
        private Ulee.Controls.UlPanel menuPanel;
        private DevExpress.XtraEditors.SimpleButton deviceButton;
        private DevExpress.XtraEditors.SimpleButton clientButton;
        private DevExpress.XtraEditors.SimpleButton valueButton;
    }
}
<file_sep>﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

using DevExpress.XtraGrid.Views.Base;
using DevExpress.XtraGrid.Views.Grid;

using Ulee.Controls;

namespace Hnc.Calorimeter.Client
{
    public partial class FormOpenAllParam : UlFormEng
    {
        public FormOpenAllParam()
        {
            InitializeComponent();
            Initialize();
        }

        public int RecNo { get; private set; }
        public GridView ParamGridView { get { return paramGridView; } }

        private void Initialize()
        {
            RecNo = -1;
            paramGridView.Appearance.EvenRow.BackColor = Color.FromArgb(244, 244, 236);
            paramGridView.OptionsView.EnableAppearanceEvenRow = true;
        }

        private void FormOpenAllParam_Load(object sender, EventArgs e)
        {
            Resource.ConfigDB.Lock();

            try
            {
                Resource.ConfigDB.AllParamSet.Select();
                paramGrid.DataSource = Resource.ConfigDB.AllParamSet.DataSet.Tables[0];
            }
            finally
            {
                Resource.ConfigDB.Unlock();
            }
        }

        private void schDeleteButton_Click(object sender, EventArgs e)
        {
            if (paramGridView.FocusedRowHandle < 0) return;

            if (MessageBox.Show("Would you like to delete a parameter focused?",
                Resource.Caption, MessageBoxButtons.YesNo, MessageBoxIcon.Question)
                == DialogResult.No)
            {
                return;
            }

            Resource.ConfigDB.Lock();
            try
            {
                Resource.ConfigDB.DeleteAllParam(Resource.ConfigDB.AllParamSet.RecNo);
                Resource.ConfigDB.AllParamSet.Select();
            }
            finally
            {
                Resource.ConfigDB.Unlock();
            }
        }

        private void paramGridView_FocusedRowChanged(object sender, FocusedRowChangedEventArgs e)
        {
            if (e.FocusedRowHandle < 0)
            {
                RecNo = -1;
                return;
            }

            DataRow row = paramGridView.GetDataRow(e.FocusedRowHandle);

            Resource.ConfigDB.Lock();
            try
            {
                Resource.ConfigDB.AllParamSet.Fetch(row);
                RecNo = Resource.ConfigDB.AllParamSet.RecNo;
            }
            finally
            {
                Resource.ConfigDB.Unlock();
            }
        }

        private void paramGrid_DoubleClick(object sender, EventArgs e)
        {
            if (paramGridView.FocusedRowHandle < 0) return;

            okButton.PerformClick();
        }

        private void FormOpenAllParam_KeyPress(object sender, KeyPressEventArgs e)
        {
            if (e.KeyChar == (char)Keys.Escape)
            {
                cancelButton.PerformClick();
            }
        }
    }
}
<file_sep>﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

using DevExpress.Spreadsheet;
using DevExpress.XtraSpreadsheet;

using Ulee.Chart;
using Ulee.Controls;
using Ulee.DllImport.Win32;

namespace Hnc.Calorimeter.Client
{
    public partial class CtrlViewGraph : UlUserControlEng
    {
        public CtrlViewGraph(int handle)
        {
            InitializeComponent();

            this.handle = handle;
            Initialize();
        }

        private int handle;
        private Int64 recNo;
        private string fName;
        private int scanTime;
        private ConditionMethod method;
        private CalorimeterViewDatabase db;
        private UlDoubleBufferedSeriesCollection bufferedSeries;

        private void Initialize()
        {
            recNo = -1;
            db = Resource.ViewDB;
            method = new ConditionMethod();

            CreateBufferedSeries();
            CreateGraph();
        }

        private void CtrlViewGraph_Enter(object sender, EventArgs e)
        {
            InvalidateGraphSeries(graphTab.SelectedTab);
        }

        private void graphTab_SelectedIndexChanged(object sender, EventArgs e)
        {
            InvalidateGraphSeries(graphTab.SelectedTab);
        }

        private void InvalidateGraphSeries(TabPage activePage)
        {
            foreach (TabPage page in graphTab.TabPages)
            {
                CtrlViewGraphPanel ctrl = page.Controls[0] as CtrlViewGraphPanel;

                if (page == activePage)
                {
                    ctrl.ViewGraph.InvalidateSeries();
                }
                else
                {
                    ctrl.ViewGraph.Series.BeginUpdate();
                    try
                    {
                        ctrl.ViewGraph.ClearSeriesPoint();
                    }
                    finally
                    {
                        ctrl.ViewGraph.Series.EndUpdate();
                    }
                }

                ctrl.ViewGraph.RefreshData();
            }
        }

        private void CreateBufferedSeries()
        {
            int color = (int)KnownColor.AliceBlue;

            bufferedSeries = new UlDoubleBufferedSeriesCollection();

            foreach (KeyValuePair<string, ValueRow> row in Resource.Variables.Graph)
            {
                if (row.Value.Unit.Type == EUnitType.Time) continue;

                bufferedSeries.Add(new UlDoubleBufferedSeries(row.Value.Name, Color.FromKnownColor((KnownColor)color)));

                if ((KnownColor)color == KnownColor.YellowGreen) color = (int)KnownColor.AliceBlue;
                else color++;
            }
        }

        private void CreateGraph()
        {
            CtrlViewGraphPanel ctrl;

            foreach (TabPage page in graphTab.TabPages)
            {
                int index = int.Parse(page.Tag.ToString());

                ctrl = new CtrlViewGraphPanel(index, method, bufferedSeries);

                page.Controls.Add(ctrl);
            }

            graphTab.SelectedIndex = 0;
        }

        public void Open(Int64 recNo)
        {
            db.Lock();

            try
            {
                this.recNo = recNo;
                bufferedSeries.ClearPoints();

                double totalTime = 0;
                DataBookDataSet bookSet = db.DataBookSet;
                DataRawUnitDataSet rawUnitSet = db.DataRawUnitSet;
                DataRawDataSet rawSet = db.DataRawSet;
                UnitConvert unit = new UnitConvert(EUnitType.None, 0, 0);

                bookSet.Select(recNo);

                if (bookSet.IsEmpty() == false)
                {
                    bookSet.Fetch();

                    scanTime = bookSet.ScanTime;
                    bufferedSeries.BaseTime = scanTime * 1000;

                    if (string.IsNullOrWhiteSpace(bookSet.TestName) == true)
                        fName = $"None_Line{bookSet.TestLine + 1}";
                    else
                        fName = $"{bookSet.TestName}_Line{bookSet.TestLine + 1}";

                    rawUnitSet.Select(bookSet.RecNo);

                    try
                    {
                        for (int i = 0; i < rawUnitSet.GetRowCount(); i++)
                        {
                            rawUnitSet.Fetch(i);

                            unit.Type = (EUnitType)rawUnitSet.UnitType;
                            unit.From = rawUnitSet.UnitFrom;
                            unit.To = rawUnitSet.UnitTo;

                            SetMethodUnit((EUnitType)rawUnitSet.UnitType, rawUnitSet.UnitTo);
                            SetPlotSeriesUnit(i, (EUnitType)rawUnitSet.UnitType, rawUnitSet.UnitTo);

                            rawSet.Select(rawUnitSet.RecNo);
                            for (int j = 0; j < rawSet.GetRowCount(); j++)
                            {
                                rawSet.Fetch(j);
                                if (rawSet.DataRaw == null) break;

                                if (i == 0)
                                {
                                    totalTime += (rawSet.DataRaw.Length - 1) * bufferedSeries.BaseTime;
                                }

                                ConvertUnit(unit, rawSet.DataRaw);
                                bufferedSeries[i].Points.AddRange(rawSet.DataRaw);
                            }

                            Win32.SwitchToThread();
                        }
                    }
                    finally
                    {
                        foreach (TabPage page in graphTab.TabPages)
                        {
                            CtrlViewGraphPanel ctrl = page.Controls[0] as CtrlViewGraphPanel;

                            ctrl.Method = method;
                            ctrl.RefreshYAxesUnit();
                            ctrl.SetMaxRangeAxisX(totalTime);
                        }

                        InvalidateGraphSeries(graphTab.SelectedTab);
                    }
                }
            }
            finally
            {
                db.Unlock();
            }
        }

        private void ConvertUnit(UnitConvert unit, float[] values)
        {
            for (int i=0; i<values.Length; i++)
            {
                values[i] = (float)unit.Convert(values[i]);
            }
        }

        public void SaveExcel()
        {
            SpreadsheetControl spread = new SpreadsheetControl();
            Worksheet sheet = spread.Document.Worksheets[0]; ;
            string excelName = Resource.Settings.Options.ExcelPath + "\\" 
                + fName + "_Raw_" + DateTime.Now.ToString("yyyyMMddHHmmss") + ".xlsx";

            FormSaveDataRaw form = new FormSaveDataRaw();
            form.SavingProgress.Properties.Maximum = bufferedSeries.PointsCount;
            form.SavingProgress.Position = 0;
            form.Show();

            spread.BeginUpdate();

            try
            {
                for (int i = 0; i < bufferedSeries.Count; i++)
                {
                    sheet[0, i].Value = bufferedSeries[i].Name;
                }

                for (int i = 0; i < bufferedSeries.PointsCount; i++)
                {
                    for (int j = 0; j < bufferedSeries.Count; j++)
                    {
                        sheet[i + 1, j].Value = bufferedSeries[j].Points[i];

                        if (form.Cancel == true) break;

                        Application.DoEvents();
                        Win32.SwitchToThread();
                    }

                    form.SavingProgress.Position = i + 1;
                }
            }
            finally
            {
                spread.EndUpdate();
                spread.SaveDocument(excelName);
                form.Hide();
            }
        }

        private void SetMethodUnit(EUnitType unitType, int unitTo)
        {
            switch (unitType)
            {
                case EUnitType.AirFlow:
                    method.AirFlow = (EUnitAirFlow)unitTo;
                    break;

                case EUnitType.Capacity:
                case EUnitType.EER_COP:
                    method.CoolingCapacity = (EUnitCapacity)unitTo;
                    break;

                case EUnitType.Enthalpy:
                case EUnitType.Heat:
                    method.Enthalpy = (EUnitEnthalpy)unitTo;
                    break;

                case EUnitType.Temperature:
                    method.Temperature = (EUnitTemperature)unitTo;
                    break;

                case EUnitType.Pressure:
                    method.Pressure = (EUnitPressure)unitTo;
                    break;

                case EUnitType.DiffPressure:
                    method.DiffPressure = (EUnitDiffPressure)unitTo;
                    break;

                case EUnitType.AtmPressure:
                    method.AtmPressure = (EUnitAtmPressure)unitTo;
                    break;
            }
        }

        private void SetPlotSeriesUnit(int index, EUnitType unitType, int unitTo)
        {
            foreach (TabPage page in graphTab.TabPages)
            {
                (page.Controls[0] as CtrlViewGraphPanel)
                    .SetPlotSeriesUnit(index, unitType, unitTo);
            }
        }
    }
}
<file_sep>﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

using Ulee.Controls;

namespace Hnc.Calorimeter.Client
{
    public partial class CtrlDeviceLeft : UlUserControlEng
    {
        public CtrlDeviceLeft()
        {
            InitializeComponent();
            Initialize();
        }

        private void Initialize()
        {
            DefMenu = new UlMenu(viewPanel);
            DefMenu.Add(new CtrlDeviceAll(), allButton);
            DefMenu.Add(new CtrlDevicePowerMeter(), powerMeterButton);
            DefMenu.Add(new CtrlDeviceRecorder(), recorderButton);
            DefMenu.Add(new CtrlDeviceController(), controllerButton);
            DefMenu.Add(new CtrlDevicePlc(), plcButton);
        }

        private void CtrlDeviceTop_Load(object sender, EventArgs e)
        {
            DefMenu.Index = 0;
        }
    }
}
<file_sep>﻿namespace Hnc.Calorimeter.Client
{
    partial class CtrlConfigCondition
    {
        /// <summary> 
        /// Required designer variable.
        /// </summary>
        private System.ComponentModel.IContainer components = null;

        /// <summary> 
        /// Clean up any resources being used.
        /// </summary>
        /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
        protected override void Dispose(bool disposing)
        {
            if (disposing && (components != null))
            {
                components.Dispose();
            }
            base.Dispose(disposing);
        }

        #region Component Designer generated code

        /// <summary> 
        /// Required method for Designer support - do not modify 
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(CtrlConfigCondition));
            this.ratedPanel = new Ulee.Controls.UlPanel();
            this.ratedTab = new System.Windows.Forms.TabControl();
            this.ratedTotalPage = new System.Windows.Forms.TabPage();
            this.ratedID1Page = new System.Windows.Forms.TabPage();
            this.ratedID2Page = new System.Windows.Forms.TabPage();
            this.ratedID3Page = new System.Windows.Forms.TabPage();
            this.ratedID4Page = new System.Windows.Forms.TabPage();
            this.ratedTitlePanel = new Ulee.Controls.UlPanel();
            this.notePanel = new Ulee.Controls.UlPanel();
            this.noteSerial1Edit = new DevExpress.XtraEditors.TextEdit();
            this.noteModel1Edit = new DevExpress.XtraEditors.TextEdit();
            this.noteMakerEdit = new DevExpress.XtraEditors.TextEdit();
            this.noteMemoEdit = new DevExpress.XtraEditors.TextEdit();
            this.label2 = new System.Windows.Forms.Label();
            this.noteObserverEdit = new DevExpress.XtraEditors.TextEdit();
            this.noteObserverLabel = new System.Windows.Forms.Label();
            this.label21 = new System.Windows.Forms.Label();
            this.noteRefChargeEdit = new DevExpress.XtraEditors.TextEdit();
            this.label20 = new System.Windows.Forms.Label();
            this.label19 = new System.Windows.Forms.Label();
            this.noteRefrigerantCombo = new DevExpress.XtraEditors.ComboBoxEdit();
            this.noteExpDeviceEdit = new DevExpress.XtraEditors.TextEdit();
            this.label18 = new System.Windows.Forms.Label();
            this.noteSerial3Edit = new DevExpress.XtraEditors.TextEdit();
            this.label16 = new System.Windows.Forms.Label();
            this.noteModel3Edit = new DevExpress.XtraEditors.TextEdit();
            this.label17 = new System.Windows.Forms.Label();
            this.noteSerial2Edit = new DevExpress.XtraEditors.TextEdit();
            this.label12 = new System.Windows.Forms.Label();
            this.noteModel2Edit = new DevExpress.XtraEditors.TextEdit();
            this.label13 = new System.Windows.Forms.Label();
            this.label14 = new System.Windows.Forms.Label();
            this.label15 = new System.Windows.Forms.Label();
            this.label10 = new System.Windows.Forms.Label();
            this.noteTestNoEdit = new DevExpress.XtraEditors.TextEdit();
            this.label11 = new System.Windows.Forms.Label();
            this.noteTestNameEdit = new DevExpress.XtraEditors.TextEdit();
            this.label9 = new System.Windows.Forms.Label();
            this.noteCompanyEdit = new DevExpress.XtraEditors.TextEdit();
            this.label8 = new System.Windows.Forms.Label();
            this.noteTitlePanel = new Ulee.Controls.UlPanel();
            this.menuPanel = new Ulee.Controls.UlPanel();
            this.saveButton = new DevExpress.XtraEditors.SimpleButton();
            this.cancelButton = new DevExpress.XtraEditors.SimpleButton();
            this.searchPanel = new Ulee.Controls.UlPanel();
            this.deleteButton = new System.Windows.Forms.Button();
            this.copyButton = new System.Windows.Forms.Button();
            this.modifyButton = new System.Windows.Forms.Button();
            this.newButton = new System.Windows.Forms.Button();
            this.conditionGrid = new DevExpress.XtraGrid.GridControl();
            this.conditionGridView = new DevExpress.XtraGrid.Views.Grid.GridView();
            this.cgMakerColumn = new DevExpress.XtraGrid.Columns.GridColumn();
            this.cgModel1Column = new DevExpress.XtraGrid.Columns.GridColumn();
            this.cgSerial1Column = new DevExpress.XtraGrid.Columns.GridColumn();
            this.searchButton = new System.Windows.Forms.Button();
            this.makerEdit = new DevExpress.XtraEditors.TextEdit();
            this.label4 = new System.Windows.Forms.Label();
            this.thermoPanel = new Ulee.Controls.UlPanel();
            this.thermoTagGrid = new DevExpress.XtraGrid.GridControl();
            this.thermoTagGridView = new DevExpress.XtraGrid.Views.Grid.GridView();
            this.thermoTagNameColumn = new DevExpress.XtraGrid.Columns.GridColumn();
            this.thermo3Grid = new DevExpress.XtraGrid.GridControl();
            this.thermo3GridView = new DevExpress.XtraGrid.Views.Grid.GridView();
            this.thermo3NoColumn = new DevExpress.XtraGrid.Columns.GridColumn();
            this.thermo3NameColumn = new DevExpress.XtraGrid.Columns.GridColumn();
            this.thermo2Grid = new DevExpress.XtraGrid.GridControl();
            this.thermo2GridView = new DevExpress.XtraGrid.Views.Grid.GridView();
            this.thermo2NoColumn = new DevExpress.XtraGrid.Columns.GridColumn();
            this.thermo2NameColumn = new DevExpress.XtraGrid.Columns.GridColumn();
            this.thermo1Grid = new DevExpress.XtraGrid.GridControl();
            this.thermo1GridView = new DevExpress.XtraGrid.Views.Grid.GridView();
            this.thermo1NoColumn = new DevExpress.XtraGrid.Columns.GridColumn();
            this.thermo1NameColumn = new DevExpress.XtraGrid.Columns.GridColumn();
            this.thermoTitlePanel = new Ulee.Controls.UlPanel();
            this.pressurePanel = new Ulee.Controls.UlPanel();
            this.pressureGrid = new DevExpress.XtraGrid.GridControl();
            this.pressureGridView = new DevExpress.XtraGrid.Views.Grid.GridView();
            this.pressureNoColumn = new DevExpress.XtraGrid.Columns.GridColumn();
            this.pressureNameColumn = new DevExpress.XtraGrid.Columns.GridColumn();
            this.pressureTagGrid = new DevExpress.XtraGrid.GridControl();
            this.pressureTagGridView = new DevExpress.XtraGrid.Views.Grid.GridView();
            this.pressureTagNameColumn = new DevExpress.XtraGrid.Columns.GridColumn();
            this.pressureTitlePanel = new Ulee.Controls.UlPanel();
            this.ratedUnitGroup = new System.Windows.Forms.GroupBox();
            this.methodCapaHeatingUnitCombo = new System.Windows.Forms.ComboBox();
            this.label7 = new System.Windows.Forms.Label();
            this.methodCapaCoolingUnitCombo = new System.Windows.Forms.ComboBox();
            this.label202 = new System.Windows.Forms.Label();
            this.gridBehavior = new DevExpress.Utils.Behaviors.BehaviorManager();
            this.thermoTagGridDragDropEvents1 = new DevExpress.Utils.DragDrop.DragDropEvents();
            this.thermo3GridDragDropEvents = new DevExpress.Utils.DragDrop.DragDropEvents();
            this.thermo2GridDragDropEvents = new DevExpress.Utils.DragDrop.DragDropEvents();
            this.thermo1GriddragDropEvents = new DevExpress.Utils.DragDrop.DragDropEvents();
            this.pressureGridDragDropEvents = new DevExpress.Utils.DragDrop.DragDropEvents();
            this.pressureTagGridDragDropEvents = new DevExpress.Utils.DragDrop.DragDropEvents();
            this.bgPanel.SuspendLayout();
            this.ratedPanel.SuspendLayout();
            this.ratedTab.SuspendLayout();
            this.notePanel.SuspendLayout();
            ((System.ComponentModel.ISupportInitialize)(this.noteSerial1Edit.Properties)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.noteModel1Edit.Properties)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.noteMakerEdit.Properties)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.noteMemoEdit.Properties)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.noteObserverEdit.Properties)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.noteRefChargeEdit.Properties)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.noteRefrigerantCombo.Properties)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.noteExpDeviceEdit.Properties)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.noteSerial3Edit.Properties)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.noteModel3Edit.Properties)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.noteSerial2Edit.Properties)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.noteModel2Edit.Properties)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.noteTestNoEdit.Properties)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.noteTestNameEdit.Properties)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.noteCompanyEdit.Properties)).BeginInit();
            this.menuPanel.SuspendLayout();
            this.searchPanel.SuspendLayout();
            ((System.ComponentModel.ISupportInitialize)(this.conditionGrid)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.conditionGridView)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.makerEdit.Properties)).BeginInit();
            this.thermoPanel.SuspendLayout();
            ((System.ComponentModel.ISupportInitialize)(this.thermoTagGrid)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.thermoTagGridView)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.thermo3Grid)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.thermo3GridView)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.thermo2Grid)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.thermo2GridView)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.thermo1Grid)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.thermo1GridView)).BeginInit();
            this.pressurePanel.SuspendLayout();
            ((System.ComponentModel.ISupportInitialize)(this.pressureGrid)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.pressureGridView)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.pressureTagGrid)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.pressureTagGridView)).BeginInit();
            this.ratedUnitGroup.SuspendLayout();
            ((System.ComponentModel.ISupportInitialize)(this.gridBehavior)).BeginInit();
            this.SuspendLayout();
            // 
            // bgPanel
            // 
            this.bgPanel.BevelOuter = Ulee.Controls.EUlBevelStyle.None;
            this.bgPanel.Controls.Add(this.ratedUnitGroup);
            this.bgPanel.Controls.Add(this.thermoPanel);
            this.bgPanel.Controls.Add(this.pressurePanel);
            this.bgPanel.Controls.Add(this.searchPanel);
            this.bgPanel.Controls.Add(this.menuPanel);
            this.bgPanel.Controls.Add(this.notePanel);
            this.bgPanel.Controls.Add(this.ratedPanel);
            this.bgPanel.Size = new System.Drawing.Size(1816, 915);
            // 
            // ratedPanel
            // 
            this.ratedPanel.BevelInner = Ulee.Controls.EUlBevelStyle.Raised;
            this.ratedPanel.BevelOuter = Ulee.Controls.EUlBevelStyle.Lowered;
            this.ratedPanel.Controls.Add(this.ratedTab);
            this.ratedPanel.Controls.Add(this.ratedTitlePanel);
            this.ratedPanel.InnerColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.ratedPanel.InnerColor2 = System.Drawing.Color.White;
            this.ratedPanel.Location = new System.Drawing.Point(0, 584);
            this.ratedPanel.Name = "ratedPanel";
            this.ratedPanel.OuterColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.ratedPanel.OuterColor2 = System.Drawing.Color.White;
            this.ratedPanel.Size = new System.Drawing.Size(640, 331);
            this.ratedPanel.Spacing = 0;
            this.ratedPanel.TabIndex = 4;
            this.ratedPanel.TabStop = true;
            this.ratedPanel.TextHAlign = Ulee.Controls.EUlHoriAlign.Center;
            this.ratedPanel.TextVAlign = Ulee.Controls.EUlVertAlign.Middle;
            // 
            // ratedTab
            // 
            this.ratedTab.Controls.Add(this.ratedTotalPage);
            this.ratedTab.Controls.Add(this.ratedID1Page);
            this.ratedTab.Controls.Add(this.ratedID2Page);
            this.ratedTab.Controls.Add(this.ratedID3Page);
            this.ratedTab.Controls.Add(this.ratedID4Page);
            this.ratedTab.Location = new System.Drawing.Point(6, 40);
            this.ratedTab.Margin = new System.Windows.Forms.Padding(0);
            this.ratedTab.Name = "ratedTab";
            this.ratedTab.Padding = new System.Drawing.Point(0, 0);
            this.ratedTab.SelectedIndex = 0;
            this.ratedTab.Size = new System.Drawing.Size(628, 284);
            this.ratedTab.TabIndex = 7;
            // 
            // ratedTotalPage
            // 
            this.ratedTotalPage.BackColor = System.Drawing.Color.Transparent;
            this.ratedTotalPage.Location = new System.Drawing.Point(4, 24);
            this.ratedTotalPage.Margin = new System.Windows.Forms.Padding(0);
            this.ratedTotalPage.Name = "ratedTotalPage";
            this.ratedTotalPage.Size = new System.Drawing.Size(620, 256);
            this.ratedTotalPage.TabIndex = 0;
            this.ratedTotalPage.Tag = "0";
            this.ratedTotalPage.Text = " Total ";
            this.ratedTotalPage.UseVisualStyleBackColor = true;
            // 
            // ratedID1Page
            // 
            this.ratedID1Page.Location = new System.Drawing.Point(4, 24);
            this.ratedID1Page.Margin = new System.Windows.Forms.Padding(0);
            this.ratedID1Page.Name = "ratedID1Page";
            this.ratedID1Page.Size = new System.Drawing.Size(620, 256);
            this.ratedID1Page.TabIndex = 1;
            this.ratedID1Page.Tag = "1";
            this.ratedID1Page.Text = " ID1 #1 ";
            this.ratedID1Page.UseVisualStyleBackColor = true;
            // 
            // ratedID2Page
            // 
            this.ratedID2Page.Location = new System.Drawing.Point(4, 24);
            this.ratedID2Page.Margin = new System.Windows.Forms.Padding(0);
            this.ratedID2Page.Name = "ratedID2Page";
            this.ratedID2Page.Size = new System.Drawing.Size(620, 256);
            this.ratedID2Page.TabIndex = 2;
            this.ratedID2Page.Tag = "2";
            this.ratedID2Page.Text = " ID1 #2 ";
            this.ratedID2Page.UseVisualStyleBackColor = true;
            // 
            // ratedID3Page
            // 
            this.ratedID3Page.Location = new System.Drawing.Point(4, 24);
            this.ratedID3Page.Margin = new System.Windows.Forms.Padding(0);
            this.ratedID3Page.Name = "ratedID3Page";
            this.ratedID3Page.Size = new System.Drawing.Size(620, 256);
            this.ratedID3Page.TabIndex = 3;
            this.ratedID3Page.Tag = "3";
            this.ratedID3Page.Text = " ID2 #1 ";
            this.ratedID3Page.UseVisualStyleBackColor = true;
            // 
            // ratedID4Page
            // 
            this.ratedID4Page.Location = new System.Drawing.Point(4, 24);
            this.ratedID4Page.Margin = new System.Windows.Forms.Padding(0);
            this.ratedID4Page.Name = "ratedID4Page";
            this.ratedID4Page.Size = new System.Drawing.Size(620, 256);
            this.ratedID4Page.TabIndex = 4;
            this.ratedID4Page.Tag = "4";
            this.ratedID4Page.Text = " ID2 #2 ";
            this.ratedID4Page.UseVisualStyleBackColor = true;
            // 
            // ratedTitlePanel
            // 
            this.ratedTitlePanel.BackColor = System.Drawing.Color.Gray;
            this.ratedTitlePanel.BevelInner = Ulee.Controls.EUlBevelStyle.None;
            this.ratedTitlePanel.BevelOuter = Ulee.Controls.EUlBevelStyle.Lowered;
            this.ratedTitlePanel.Font = new System.Drawing.Font("Arial Rounded MT Bold", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.ratedTitlePanel.ForeColor = System.Drawing.Color.White;
            this.ratedTitlePanel.InnerColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.ratedTitlePanel.InnerColor2 = System.Drawing.Color.White;
            this.ratedTitlePanel.Location = new System.Drawing.Point(6, 6);
            this.ratedTitlePanel.Name = "ratedTitlePanel";
            this.ratedTitlePanel.OuterColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.ratedTitlePanel.OuterColor2 = System.Drawing.Color.White;
            this.ratedTitlePanel.Size = new System.Drawing.Size(628, 28);
            this.ratedTitlePanel.Spacing = 0;
            this.ratedTitlePanel.TabIndex = 6;
            this.ratedTitlePanel.Text = "RATED CONDITION";
            this.ratedTitlePanel.TextHAlign = Ulee.Controls.EUlHoriAlign.Center;
            this.ratedTitlePanel.TextVAlign = Ulee.Controls.EUlVertAlign.Middle;
            // 
            // notePanel
            // 
            this.notePanel.BevelInner = Ulee.Controls.EUlBevelStyle.Raised;
            this.notePanel.BevelOuter = Ulee.Controls.EUlBevelStyle.Lowered;
            this.notePanel.Controls.Add(this.noteSerial1Edit);
            this.notePanel.Controls.Add(this.noteModel1Edit);
            this.notePanel.Controls.Add(this.noteMakerEdit);
            this.notePanel.Controls.Add(this.noteMemoEdit);
            this.notePanel.Controls.Add(this.label2);
            this.notePanel.Controls.Add(this.noteObserverEdit);
            this.notePanel.Controls.Add(this.noteObserverLabel);
            this.notePanel.Controls.Add(this.label21);
            this.notePanel.Controls.Add(this.noteRefChargeEdit);
            this.notePanel.Controls.Add(this.label20);
            this.notePanel.Controls.Add(this.label19);
            this.notePanel.Controls.Add(this.noteRefrigerantCombo);
            this.notePanel.Controls.Add(this.noteExpDeviceEdit);
            this.notePanel.Controls.Add(this.label18);
            this.notePanel.Controls.Add(this.noteSerial3Edit);
            this.notePanel.Controls.Add(this.label16);
            this.notePanel.Controls.Add(this.noteModel3Edit);
            this.notePanel.Controls.Add(this.label17);
            this.notePanel.Controls.Add(this.noteSerial2Edit);
            this.notePanel.Controls.Add(this.label12);
            this.notePanel.Controls.Add(this.noteModel2Edit);
            this.notePanel.Controls.Add(this.label13);
            this.notePanel.Controls.Add(this.label14);
            this.notePanel.Controls.Add(this.label15);
            this.notePanel.Controls.Add(this.label10);
            this.notePanel.Controls.Add(this.noteTestNoEdit);
            this.notePanel.Controls.Add(this.label11);
            this.notePanel.Controls.Add(this.noteTestNameEdit);
            this.notePanel.Controls.Add(this.label9);
            this.notePanel.Controls.Add(this.noteCompanyEdit);
            this.notePanel.Controls.Add(this.label8);
            this.notePanel.Controls.Add(this.noteTitlePanel);
            this.notePanel.InnerColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.notePanel.InnerColor2 = System.Drawing.Color.White;
            this.notePanel.Location = new System.Drawing.Point(406, 0);
            this.notePanel.Name = "notePanel";
            this.notePanel.OuterColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.notePanel.OuterColor2 = System.Drawing.Color.White;
            this.notePanel.Size = new System.Drawing.Size(234, 480);
            this.notePanel.Spacing = 0;
            this.notePanel.TabIndex = 1;
            this.notePanel.TextHAlign = Ulee.Controls.EUlHoriAlign.Center;
            this.notePanel.TextVAlign = Ulee.Controls.EUlVertAlign.Middle;
            // 
            // noteSerial1Edit
            // 
            this.noteSerial1Edit.EditValue = "";
            this.noteSerial1Edit.EnterMoveNextControl = true;
            this.noteSerial1Edit.Location = new System.Drawing.Point(92, 228);
            this.noteSerial1Edit.Name = "noteSerial1Edit";
            this.noteSerial1Edit.Properties.Appearance.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.noteSerial1Edit.Properties.Appearance.Options.UseFont = true;
            this.noteSerial1Edit.Properties.AppearanceDisabled.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.noteSerial1Edit.Properties.AppearanceDisabled.Options.UseFont = true;
            this.noteSerial1Edit.Properties.AppearanceFocused.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.noteSerial1Edit.Properties.AppearanceFocused.Options.UseFont = true;
            this.noteSerial1Edit.Properties.AppearanceReadOnly.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.noteSerial1Edit.Properties.AppearanceReadOnly.Options.UseFont = true;
            this.noteSerial1Edit.Properties.MaxLength = 50;
            this.noteSerial1Edit.Size = new System.Drawing.Size(136, 22);
            this.noteSerial1Edit.TabIndex = 6;
            // 
            // noteModel1Edit
            // 
            this.noteModel1Edit.EditValue = "";
            this.noteModel1Edit.EnterMoveNextControl = true;
            this.noteModel1Edit.Location = new System.Drawing.Point(92, 200);
            this.noteModel1Edit.Name = "noteModel1Edit";
            this.noteModel1Edit.Properties.Appearance.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.noteModel1Edit.Properties.Appearance.Options.UseFont = true;
            this.noteModel1Edit.Properties.AppearanceDisabled.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.noteModel1Edit.Properties.AppearanceDisabled.Options.UseFont = true;
            this.noteModel1Edit.Properties.AppearanceFocused.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.noteModel1Edit.Properties.AppearanceFocused.Options.UseFont = true;
            this.noteModel1Edit.Properties.AppearanceReadOnly.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.noteModel1Edit.Properties.AppearanceReadOnly.Options.UseFont = true;
            this.noteModel1Edit.Properties.MaxLength = 50;
            this.noteModel1Edit.Size = new System.Drawing.Size(136, 22);
            this.noteModel1Edit.TabIndex = 5;
            // 
            // noteMakerEdit
            // 
            this.noteMakerEdit.EditValue = "";
            this.noteMakerEdit.EnterMoveNextControl = true;
            this.noteMakerEdit.Location = new System.Drawing.Point(92, 172);
            this.noteMakerEdit.Name = "noteMakerEdit";
            this.noteMakerEdit.Properties.Appearance.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.noteMakerEdit.Properties.Appearance.Options.UseFont = true;
            this.noteMakerEdit.Properties.AppearanceDisabled.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.noteMakerEdit.Properties.AppearanceDisabled.Options.UseFont = true;
            this.noteMakerEdit.Properties.AppearanceFocused.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.noteMakerEdit.Properties.AppearanceFocused.Options.UseFont = true;
            this.noteMakerEdit.Properties.AppearanceReadOnly.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.noteMakerEdit.Properties.AppearanceReadOnly.Options.UseFont = true;
            this.noteMakerEdit.Properties.MaxLength = 50;
            this.noteMakerEdit.Size = new System.Drawing.Size(136, 22);
            this.noteMakerEdit.TabIndex = 4;
            // 
            // noteMemoEdit
            // 
            this.noteMemoEdit.EditValue = "";
            this.noteMemoEdit.EnterMoveNextControl = true;
            this.noteMemoEdit.Location = new System.Drawing.Point(92, 452);
            this.noteMemoEdit.Name = "noteMemoEdit";
            this.noteMemoEdit.Properties.Appearance.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.noteMemoEdit.Properties.Appearance.Options.UseFont = true;
            this.noteMemoEdit.Properties.AppearanceDisabled.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.noteMemoEdit.Properties.AppearanceDisabled.Options.UseFont = true;
            this.noteMemoEdit.Properties.AppearanceFocused.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.noteMemoEdit.Properties.AppearanceFocused.Options.UseFont = true;
            this.noteMemoEdit.Properties.AppearanceReadOnly.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.noteMemoEdit.Properties.AppearanceReadOnly.Options.UseFont = true;
            this.noteMemoEdit.Properties.MaxLength = 50;
            this.noteMemoEdit.Size = new System.Drawing.Size(136, 22);
            this.noteMemoEdit.TabIndex = 14;
            // 
            // label2
            // 
            this.label2.Location = new System.Drawing.Point(11, 150);
            this.label2.Name = "label2";
            this.label2.Size = new System.Drawing.Size(221, 19);
            this.label2.TabIndex = 100;
            this.label2.Text = "---------------------------------------------------------------------------------" +
    "";
            this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
            // 
            // noteObserverEdit
            // 
            this.noteObserverEdit.EditValue = "";
            this.noteObserverEdit.EnterMoveNextControl = true;
            this.noteObserverEdit.Location = new System.Drawing.Point(92, 124);
            this.noteObserverEdit.Name = "noteObserverEdit";
            this.noteObserverEdit.Properties.Appearance.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.noteObserverEdit.Properties.Appearance.Options.UseFont = true;
            this.noteObserverEdit.Properties.AppearanceDisabled.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.noteObserverEdit.Properties.AppearanceDisabled.Options.UseFont = true;
            this.noteObserverEdit.Properties.AppearanceFocused.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.noteObserverEdit.Properties.AppearanceFocused.Options.UseFont = true;
            this.noteObserverEdit.Properties.AppearanceReadOnly.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.noteObserverEdit.Properties.AppearanceReadOnly.Options.UseFont = true;
            this.noteObserverEdit.Properties.MaxLength = 50;
            this.noteObserverEdit.Size = new System.Drawing.Size(136, 22);
            this.noteObserverEdit.TabIndex = 3;
            // 
            // noteObserverLabel
            // 
            this.noteObserverLabel.Location = new System.Drawing.Point(9, 124);
            this.noteObserverLabel.Name = "noteObserverLabel";
            this.noteObserverLabel.Size = new System.Drawing.Size(76, 22);
            this.noteObserverLabel.TabIndex = 99;
            this.noteObserverLabel.Text = "Observer";
            this.noteObserverLabel.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
            // 
            // label21
            // 
            this.label21.Location = new System.Drawing.Point(9, 452);
            this.label21.Name = "label21";
            this.label21.Size = new System.Drawing.Size(77, 22);
            this.label21.TabIndex = 97;
            this.label21.Text = "Memo";
            this.label21.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
            // 
            // noteRefChargeEdit
            // 
            this.noteRefChargeEdit.EditValue = "";
            this.noteRefChargeEdit.EnterMoveNextControl = true;
            this.noteRefChargeEdit.Location = new System.Drawing.Point(92, 424);
            this.noteRefChargeEdit.Name = "noteRefChargeEdit";
            this.noteRefChargeEdit.Properties.Appearance.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.noteRefChargeEdit.Properties.Appearance.Options.UseFont = true;
            this.noteRefChargeEdit.Properties.AppearanceDisabled.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.noteRefChargeEdit.Properties.AppearanceDisabled.Options.UseFont = true;
            this.noteRefChargeEdit.Properties.AppearanceFocused.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.noteRefChargeEdit.Properties.AppearanceFocused.Options.UseFont = true;
            this.noteRefChargeEdit.Properties.AppearanceReadOnly.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.noteRefChargeEdit.Properties.AppearanceReadOnly.Options.UseFont = true;
            this.noteRefChargeEdit.Properties.MaxLength = 50;
            this.noteRefChargeEdit.Size = new System.Drawing.Size(136, 22);
            this.noteRefChargeEdit.TabIndex = 13;
            // 
            // label20
            // 
            this.label20.Location = new System.Drawing.Point(9, 424);
            this.label20.Name = "label20";
            this.label20.Size = new System.Drawing.Size(76, 22);
            this.label20.TabIndex = 95;
            this.label20.Text = "Ref. Charge";
            this.label20.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
            // 
            // label19
            // 
            this.label19.Location = new System.Drawing.Point(9, 394);
            this.label19.Name = "label19";
            this.label19.Size = new System.Drawing.Size(76, 22);
            this.label19.TabIndex = 94;
            this.label19.Text = "Refrigerant";
            this.label19.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
            // 
            // noteRefrigerantCombo
            // 
            this.noteRefrigerantCombo.EnterMoveNextControl = true;
            this.noteRefrigerantCombo.Location = new System.Drawing.Point(92, 396);
            this.noteRefrigerantCombo.Name = "noteRefrigerantCombo";
            this.noteRefrigerantCombo.Properties.Appearance.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.noteRefrigerantCombo.Properties.Appearance.Options.UseFont = true;
            this.noteRefrigerantCombo.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
            new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)});
            this.noteRefrigerantCombo.Properties.Items.AddRange(new object[] {
            "R-22",
            "R-404A",
            "R-407C",
            "R-410A"});
            this.noteRefrigerantCombo.Properties.MaxLength = 20;
            this.noteRefrigerantCombo.Size = new System.Drawing.Size(136, 22);
            this.noteRefrigerantCombo.TabIndex = 12;
            // 
            // noteExpDeviceEdit
            // 
            this.noteExpDeviceEdit.EditValue = "";
            this.noteExpDeviceEdit.EnterMoveNextControl = true;
            this.noteExpDeviceEdit.Location = new System.Drawing.Point(92, 368);
            this.noteExpDeviceEdit.Name = "noteExpDeviceEdit";
            this.noteExpDeviceEdit.Properties.Appearance.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.noteExpDeviceEdit.Properties.Appearance.Options.UseFont = true;
            this.noteExpDeviceEdit.Properties.AppearanceDisabled.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.noteExpDeviceEdit.Properties.AppearanceDisabled.Options.UseFont = true;
            this.noteExpDeviceEdit.Properties.AppearanceFocused.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.noteExpDeviceEdit.Properties.AppearanceFocused.Options.UseFont = true;
            this.noteExpDeviceEdit.Properties.AppearanceReadOnly.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.noteExpDeviceEdit.Properties.AppearanceReadOnly.Options.UseFont = true;
            this.noteExpDeviceEdit.Properties.MaxLength = 50;
            this.noteExpDeviceEdit.Size = new System.Drawing.Size(136, 22);
            this.noteExpDeviceEdit.TabIndex = 11;
            // 
            // label18
            // 
            this.label18.Location = new System.Drawing.Point(9, 368);
            this.label18.Name = "label18";
            this.label18.Size = new System.Drawing.Size(76, 22);
            this.label18.TabIndex = 91;
            this.label18.Text = "Exp. Device";
            this.label18.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
            // 
            // noteSerial3Edit
            // 
            this.noteSerial3Edit.EditValue = "";
            this.noteSerial3Edit.EnterMoveNextControl = true;
            this.noteSerial3Edit.Location = new System.Drawing.Point(92, 340);
            this.noteSerial3Edit.Name = "noteSerial3Edit";
            this.noteSerial3Edit.Properties.Appearance.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.noteSerial3Edit.Properties.Appearance.Options.UseFont = true;
            this.noteSerial3Edit.Properties.AppearanceDisabled.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.noteSerial3Edit.Properties.AppearanceDisabled.Options.UseFont = true;
            this.noteSerial3Edit.Properties.AppearanceFocused.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.noteSerial3Edit.Properties.AppearanceFocused.Options.UseFont = true;
            this.noteSerial3Edit.Properties.AppearanceReadOnly.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.noteSerial3Edit.Properties.AppearanceReadOnly.Options.UseFont = true;
            this.noteSerial3Edit.Properties.MaxLength = 50;
            this.noteSerial3Edit.Size = new System.Drawing.Size(136, 22);
            this.noteSerial3Edit.TabIndex = 10;
            // 
            // label16
            // 
            this.label16.Location = new System.Drawing.Point(9, 340);
            this.label16.Name = "label16";
            this.label16.Size = new System.Drawing.Size(76, 22);
            this.label16.TabIndex = 89;
            this.label16.Text = "Serial No(3)";
            this.label16.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
            // 
            // noteModel3Edit
            // 
            this.noteModel3Edit.EditValue = "";
            this.noteModel3Edit.EnterMoveNextControl = true;
            this.noteModel3Edit.Location = new System.Drawing.Point(92, 312);
            this.noteModel3Edit.Name = "noteModel3Edit";
            this.noteModel3Edit.Properties.Appearance.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.noteModel3Edit.Properties.Appearance.Options.UseFont = true;
            this.noteModel3Edit.Properties.AppearanceDisabled.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.noteModel3Edit.Properties.AppearanceDisabled.Options.UseFont = true;
            this.noteModel3Edit.Properties.AppearanceFocused.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.noteModel3Edit.Properties.AppearanceFocused.Options.UseFont = true;
            this.noteModel3Edit.Properties.AppearanceReadOnly.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.noteModel3Edit.Properties.AppearanceReadOnly.Options.UseFont = true;
            this.noteModel3Edit.Properties.MaxLength = 50;
            this.noteModel3Edit.Size = new System.Drawing.Size(136, 22);
            this.noteModel3Edit.TabIndex = 9;
            // 
            // label17
            // 
            this.label17.Location = new System.Drawing.Point(9, 312);
            this.label17.Name = "label17";
            this.label17.Size = new System.Drawing.Size(76, 22);
            this.label17.TabIndex = 87;
            this.label17.Text = "Model(3)";
            this.label17.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
            // 
            // noteSerial2Edit
            // 
            this.noteSerial2Edit.EditValue = "";
            this.noteSerial2Edit.EnterMoveNextControl = true;
            this.noteSerial2Edit.Location = new System.Drawing.Point(92, 284);
            this.noteSerial2Edit.Name = "noteSerial2Edit";
            this.noteSerial2Edit.Properties.Appearance.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.noteSerial2Edit.Properties.Appearance.Options.UseFont = true;
            this.noteSerial2Edit.Properties.AppearanceDisabled.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.noteSerial2Edit.Properties.AppearanceDisabled.Options.UseFont = true;
            this.noteSerial2Edit.Properties.AppearanceFocused.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.noteSerial2Edit.Properties.AppearanceFocused.Options.UseFont = true;
            this.noteSerial2Edit.Properties.AppearanceReadOnly.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.noteSerial2Edit.Properties.AppearanceReadOnly.Options.UseFont = true;
            this.noteSerial2Edit.Properties.MaxLength = 50;
            this.noteSerial2Edit.Size = new System.Drawing.Size(136, 22);
            this.noteSerial2Edit.TabIndex = 8;
            // 
            // label12
            // 
            this.label12.Location = new System.Drawing.Point(9, 284);
            this.label12.Name = "label12";
            this.label12.Size = new System.Drawing.Size(76, 22);
            this.label12.TabIndex = 85;
            this.label12.Text = "Serial No(2)";
            this.label12.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
            // 
            // noteModel2Edit
            // 
            this.noteModel2Edit.EditValue = "";
            this.noteModel2Edit.EnterMoveNextControl = true;
            this.noteModel2Edit.Location = new System.Drawing.Point(92, 256);
            this.noteModel2Edit.Name = "noteModel2Edit";
            this.noteModel2Edit.Properties.Appearance.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.noteModel2Edit.Properties.Appearance.Options.UseFont = true;
            this.noteModel2Edit.Properties.AppearanceDisabled.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.noteModel2Edit.Properties.AppearanceDisabled.Options.UseFont = true;
            this.noteModel2Edit.Properties.AppearanceFocused.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.noteModel2Edit.Properties.AppearanceFocused.Options.UseFont = true;
            this.noteModel2Edit.Properties.AppearanceReadOnly.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.noteModel2Edit.Properties.AppearanceReadOnly.Options.UseFont = true;
            this.noteModel2Edit.Properties.MaxLength = 50;
            this.noteModel2Edit.Size = new System.Drawing.Size(136, 22);
            this.noteModel2Edit.TabIndex = 7;
            // 
            // label13
            // 
            this.label13.Location = new System.Drawing.Point(9, 256);
            this.label13.Name = "label13";
            this.label13.Size = new System.Drawing.Size(76, 22);
            this.label13.TabIndex = 83;
            this.label13.Text = "Model(2)";
            this.label13.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
            // 
            // label14
            // 
            this.label14.Location = new System.Drawing.Point(9, 228);
            this.label14.Name = "label14";
            this.label14.Size = new System.Drawing.Size(76, 22);
            this.label14.TabIndex = 81;
            this.label14.Text = "Serial No.(1)";
            this.label14.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
            // 
            // label15
            // 
            this.label15.Location = new System.Drawing.Point(9, 200);
            this.label15.Name = "label15";
            this.label15.Size = new System.Drawing.Size(76, 22);
            this.label15.TabIndex = 79;
            this.label15.Text = "Model(1)";
            this.label15.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
            // 
            // label10
            // 
            this.label10.Location = new System.Drawing.Point(9, 172);
            this.label10.Name = "label10";
            this.label10.Size = new System.Drawing.Size(76, 22);
            this.label10.TabIndex = 77;
            this.label10.Text = "Maker";
            this.label10.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
            // 
            // noteTestNoEdit
            // 
            this.noteTestNoEdit.EditValue = "";
            this.noteTestNoEdit.EnterMoveNextControl = true;
            this.noteTestNoEdit.Location = new System.Drawing.Point(92, 96);
            this.noteTestNoEdit.Name = "noteTestNoEdit";
            this.noteTestNoEdit.Properties.Appearance.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.noteTestNoEdit.Properties.Appearance.Options.UseFont = true;
            this.noteTestNoEdit.Properties.AppearanceDisabled.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.noteTestNoEdit.Properties.AppearanceDisabled.Options.UseFont = true;
            this.noteTestNoEdit.Properties.AppearanceFocused.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.noteTestNoEdit.Properties.AppearanceFocused.Options.UseFont = true;
            this.noteTestNoEdit.Properties.AppearanceReadOnly.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.noteTestNoEdit.Properties.AppearanceReadOnly.Options.UseFont = true;
            this.noteTestNoEdit.Properties.MaxLength = 50;
            this.noteTestNoEdit.Size = new System.Drawing.Size(136, 22);
            this.noteTestNoEdit.TabIndex = 2;
            // 
            // label11
            // 
            this.label11.Location = new System.Drawing.Point(9, 96);
            this.label11.Name = "label11";
            this.label11.Size = new System.Drawing.Size(76, 22);
            this.label11.TabIndex = 75;
            this.label11.Text = "Test No.";
            this.label11.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
            // 
            // noteTestNameEdit
            // 
            this.noteTestNameEdit.EditValue = "";
            this.noteTestNameEdit.EnterMoveNextControl = true;
            this.noteTestNameEdit.Location = new System.Drawing.Point(92, 68);
            this.noteTestNameEdit.Name = "noteTestNameEdit";
            this.noteTestNameEdit.Properties.Appearance.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.noteTestNameEdit.Properties.Appearance.Options.UseFont = true;
            this.noteTestNameEdit.Properties.AppearanceDisabled.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.noteTestNameEdit.Properties.AppearanceDisabled.Options.UseFont = true;
            this.noteTestNameEdit.Properties.AppearanceFocused.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.noteTestNameEdit.Properties.AppearanceFocused.Options.UseFont = true;
            this.noteTestNameEdit.Properties.AppearanceReadOnly.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.noteTestNameEdit.Properties.AppearanceReadOnly.Options.UseFont = true;
            this.noteTestNameEdit.Properties.MaxLength = 50;
            this.noteTestNameEdit.Size = new System.Drawing.Size(136, 22);
            this.noteTestNameEdit.TabIndex = 1;
            // 
            // label9
            // 
            this.label9.Location = new System.Drawing.Point(9, 68);
            this.label9.Name = "label9";
            this.label9.Size = new System.Drawing.Size(76, 22);
            this.label9.TabIndex = 73;
            this.label9.Text = "Test Name";
            this.label9.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
            // 
            // noteCompanyEdit
            // 
            this.noteCompanyEdit.EditValue = "";
            this.noteCompanyEdit.EnterMoveNextControl = true;
            this.noteCompanyEdit.Location = new System.Drawing.Point(92, 40);
            this.noteCompanyEdit.Name = "noteCompanyEdit";
            this.noteCompanyEdit.Properties.Appearance.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.noteCompanyEdit.Properties.Appearance.Options.UseFont = true;
            this.noteCompanyEdit.Properties.AppearanceDisabled.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.noteCompanyEdit.Properties.AppearanceDisabled.Options.UseFont = true;
            this.noteCompanyEdit.Properties.AppearanceFocused.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.noteCompanyEdit.Properties.AppearanceFocused.Options.UseFont = true;
            this.noteCompanyEdit.Properties.AppearanceReadOnly.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.noteCompanyEdit.Properties.AppearanceReadOnly.Options.UseFont = true;
            this.noteCompanyEdit.Properties.MaxLength = 50;
            this.noteCompanyEdit.Size = new System.Drawing.Size(136, 22);
            this.noteCompanyEdit.TabIndex = 0;
            // 
            // label8
            // 
            this.label8.Location = new System.Drawing.Point(9, 40);
            this.label8.Name = "label8";
            this.label8.Size = new System.Drawing.Size(76, 22);
            this.label8.TabIndex = 12;
            this.label8.Text = "Company";
            this.label8.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
            // 
            // noteTitlePanel
            // 
            this.noteTitlePanel.BackColor = System.Drawing.Color.Gray;
            this.noteTitlePanel.BevelInner = Ulee.Controls.EUlBevelStyle.None;
            this.noteTitlePanel.BevelOuter = Ulee.Controls.EUlBevelStyle.Lowered;
            this.noteTitlePanel.Font = new System.Drawing.Font("Arial Rounded MT Bold", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.noteTitlePanel.ForeColor = System.Drawing.Color.White;
            this.noteTitlePanel.InnerColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.noteTitlePanel.InnerColor2 = System.Drawing.Color.White;
            this.noteTitlePanel.Location = new System.Drawing.Point(6, 6);
            this.noteTitlePanel.Name = "noteTitlePanel";
            this.noteTitlePanel.OuterColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.noteTitlePanel.OuterColor2 = System.Drawing.Color.White;
            this.noteTitlePanel.Size = new System.Drawing.Size(222, 28);
            this.noteTitlePanel.Spacing = 0;
            this.noteTitlePanel.TabIndex = 5;
            this.noteTitlePanel.Text = "NOTE";
            this.noteTitlePanel.TextHAlign = Ulee.Controls.EUlHoriAlign.Center;
            this.noteTitlePanel.TextVAlign = Ulee.Controls.EUlVertAlign.Middle;
            // 
            // menuPanel
            // 
            this.menuPanel.BackColor = System.Drawing.Color.Silver;
            this.menuPanel.BevelInner = Ulee.Controls.EUlBevelStyle.None;
            this.menuPanel.BevelOuter = Ulee.Controls.EUlBevelStyle.Lowered;
            this.menuPanel.Controls.Add(this.saveButton);
            this.menuPanel.Controls.Add(this.cancelButton);
            this.menuPanel.InnerColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.menuPanel.InnerColor2 = System.Drawing.Color.White;
            this.menuPanel.Location = new System.Drawing.Point(1732, 0);
            this.menuPanel.Name = "menuPanel";
            this.menuPanel.OuterColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.menuPanel.OuterColor2 = System.Drawing.Color.White;
            this.menuPanel.Size = new System.Drawing.Size(84, 915);
            this.menuPanel.Spacing = 0;
            this.menuPanel.TabIndex = 10;
            this.menuPanel.TextHAlign = Ulee.Controls.EUlHoriAlign.Center;
            this.menuPanel.TextVAlign = Ulee.Controls.EUlVertAlign.Middle;
            // 
            // saveButton
            // 
            this.saveButton.AllowFocus = false;
            this.saveButton.Appearance.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.saveButton.Appearance.Options.UseBorderColor = true;
            this.saveButton.Appearance.Options.UseFont = true;
            this.saveButton.Appearance.Options.UseTextOptions = true;
            this.saveButton.Appearance.TextOptions.VAlignment = DevExpress.Utils.VertAlignment.Bottom;
            this.saveButton.ImageOptions.Image = ((System.Drawing.Image)(resources.GetObject("saveButton.ImageOptions.Image")));
            this.saveButton.ImageOptions.ImageToTextAlignment = DevExpress.XtraEditors.ImageAlignToText.TopCenter;
            this.saveButton.ImageOptions.ImageToTextIndent = 12;
            this.saveButton.Location = new System.Drawing.Point(2, 795);
            this.saveButton.Name = "saveButton";
            this.saveButton.Size = new System.Drawing.Size(80, 58);
            this.saveButton.TabIndex = 21;
            this.saveButton.TabStop = false;
            this.saveButton.Text = "Save";
            this.saveButton.Click += new System.EventHandler(this.saveButton_Click);
            // 
            // cancelButton
            // 
            this.cancelButton.AllowFocus = false;
            this.cancelButton.Appearance.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.cancelButton.Appearance.Options.UseBorderColor = true;
            this.cancelButton.Appearance.Options.UseFont = true;
            this.cancelButton.Appearance.Options.UseTextOptions = true;
            this.cancelButton.Appearance.TextOptions.VAlignment = DevExpress.Utils.VertAlignment.Bottom;
            this.cancelButton.ImageOptions.Image = ((System.Drawing.Image)(resources.GetObject("cancelButton.ImageOptions.Image")));
            this.cancelButton.ImageOptions.ImageToTextAlignment = DevExpress.XtraEditors.ImageAlignToText.TopCenter;
            this.cancelButton.ImageOptions.ImageToTextIndent = 10;
            this.cancelButton.Location = new System.Drawing.Point(2, 855);
            this.cancelButton.Name = "cancelButton";
            this.cancelButton.Size = new System.Drawing.Size(80, 58);
            this.cancelButton.TabIndex = 20;
            this.cancelButton.TabStop = false;
            this.cancelButton.Text = "Cancel";
            this.cancelButton.Click += new System.EventHandler(this.cancelButton_Click);
            // 
            // searchPanel
            // 
            this.searchPanel.BevelInner = Ulee.Controls.EUlBevelStyle.Raised;
            this.searchPanel.BevelOuter = Ulee.Controls.EUlBevelStyle.Lowered;
            this.searchPanel.Controls.Add(this.deleteButton);
            this.searchPanel.Controls.Add(this.copyButton);
            this.searchPanel.Controls.Add(this.modifyButton);
            this.searchPanel.Controls.Add(this.newButton);
            this.searchPanel.Controls.Add(this.conditionGrid);
            this.searchPanel.Controls.Add(this.searchButton);
            this.searchPanel.Controls.Add(this.makerEdit);
            this.searchPanel.Controls.Add(this.label4);
            this.searchPanel.InnerColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.searchPanel.InnerColor2 = System.Drawing.Color.White;
            this.searchPanel.Location = new System.Drawing.Point(0, 0);
            this.searchPanel.Name = "searchPanel";
            this.searchPanel.OuterColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.searchPanel.OuterColor2 = System.Drawing.Color.White;
            this.searchPanel.Size = new System.Drawing.Size(400, 578);
            this.searchPanel.Spacing = 0;
            this.searchPanel.TabIndex = 0;
            this.searchPanel.TabStop = true;
            this.searchPanel.TextHAlign = Ulee.Controls.EUlHoriAlign.Center;
            this.searchPanel.TextVAlign = Ulee.Controls.EUlVertAlign.Middle;
            // 
            // deleteButton
            // 
            this.deleteButton.Image = ((System.Drawing.Image)(resources.GetObject("deleteButton.Image")));
            this.deleteButton.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
            this.deleteButton.Location = new System.Drawing.Point(298, 34);
            this.deleteButton.Name = "deleteButton";
            this.deleteButton.Padding = new System.Windows.Forms.Padding(2, 0, 0, 0);
            this.deleteButton.Size = new System.Drawing.Size(96, 24);
            this.deleteButton.TabIndex = 5;
            this.deleteButton.Text = "    Delete";
            this.deleteButton.UseVisualStyleBackColor = true;
            this.deleteButton.Click += new System.EventHandler(this.deleteButton_Click);
            // 
            // copyButton
            // 
            this.copyButton.Image = ((System.Drawing.Image)(resources.GetObject("copyButton.Image")));
            this.copyButton.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
            this.copyButton.Location = new System.Drawing.Point(201, 34);
            this.copyButton.Name = "copyButton";
            this.copyButton.Size = new System.Drawing.Size(95, 24);
            this.copyButton.TabIndex = 4;
            this.copyButton.Text = "         Copy";
            this.copyButton.UseVisualStyleBackColor = true;
            this.copyButton.Click += new System.EventHandler(this.copyButton_Click);
            // 
            // modifyButton
            // 
            this.modifyButton.Image = ((System.Drawing.Image)(resources.GetObject("modifyButton.Image")));
            this.modifyButton.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
            this.modifyButton.Location = new System.Drawing.Point(103, 34);
            this.modifyButton.Name = "modifyButton";
            this.modifyButton.Padding = new System.Windows.Forms.Padding(2, 0, 0, 0);
            this.modifyButton.Size = new System.Drawing.Size(96, 24);
            this.modifyButton.TabIndex = 3;
            this.modifyButton.Text = "      Modify";
            this.modifyButton.UseVisualStyleBackColor = true;
            this.modifyButton.Click += new System.EventHandler(this.modifyButton_Click);
            // 
            // newButton
            // 
            this.newButton.Image = ((System.Drawing.Image)(resources.GetObject("newButton.Image")));
            this.newButton.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
            this.newButton.Location = new System.Drawing.Point(6, 34);
            this.newButton.Name = "newButton";
            this.newButton.Padding = new System.Windows.Forms.Padding(2, 0, 0, 0);
            this.newButton.Size = new System.Drawing.Size(95, 24);
            this.newButton.TabIndex = 2;
            this.newButton.Text = "  New";
            this.newButton.UseVisualStyleBackColor = true;
            this.newButton.Click += new System.EventHandler(this.newButton_Click);
            // 
            // conditionGrid
            // 
            this.conditionGrid.Location = new System.Drawing.Point(6, 62);
            this.conditionGrid.MainView = this.conditionGridView;
            this.conditionGrid.Name = "conditionGrid";
            this.conditionGrid.Size = new System.Drawing.Size(388, 510);
            this.conditionGrid.TabIndex = 6;
            this.conditionGrid.TabStop = false;
            this.conditionGrid.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] {
            this.conditionGridView});
            this.conditionGrid.DoubleClick += new System.EventHandler(this.conditionGrid_DoubleClick);
            // 
            // conditionGridView
            // 
            this.conditionGridView.ActiveFilterEnabled = false;
            this.conditionGridView.Appearance.FixedLine.Font = new System.Drawing.Font("Arial", 9F);
            this.conditionGridView.Appearance.FixedLine.Options.UseFont = true;
            this.conditionGridView.Appearance.FocusedCell.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.conditionGridView.Appearance.FocusedCell.Options.UseFont = true;
            this.conditionGridView.Appearance.FocusedRow.Font = new System.Drawing.Font("Arial", 9F);
            this.conditionGridView.Appearance.FocusedRow.Options.UseFont = true;
            this.conditionGridView.Appearance.HeaderPanel.Font = new System.Drawing.Font("Arial", 9F);
            this.conditionGridView.Appearance.HeaderPanel.Options.UseFont = true;
            this.conditionGridView.Appearance.HideSelectionRow.Font = new System.Drawing.Font("Arial", 9F);
            this.conditionGridView.Appearance.HideSelectionRow.Options.UseFont = true;
            this.conditionGridView.Appearance.OddRow.Font = new System.Drawing.Font("Arial", 9F);
            this.conditionGridView.Appearance.OddRow.Options.UseFont = true;
            this.conditionGridView.Appearance.Preview.Font = new System.Drawing.Font("Arial", 9F);
            this.conditionGridView.Appearance.Preview.Options.UseFont = true;
            this.conditionGridView.Appearance.Row.Font = new System.Drawing.Font("Arial", 9F);
            this.conditionGridView.Appearance.Row.Options.UseFont = true;
            this.conditionGridView.Appearance.SelectedRow.Font = new System.Drawing.Font("Arial", 9F);
            this.conditionGridView.Appearance.SelectedRow.Options.UseFont = true;
            this.conditionGridView.Appearance.ViewCaption.Font = new System.Drawing.Font("Arial", 9F);
            this.conditionGridView.Appearance.ViewCaption.Options.UseFont = true;
            this.conditionGridView.Columns.AddRange(new DevExpress.XtraGrid.Columns.GridColumn[] {
            this.cgMakerColumn,
            this.cgModel1Column,
            this.cgSerial1Column});
            this.conditionGridView.CustomizationFormBounds = new System.Drawing.Rectangle(2884, 580, 210, 186);
            this.conditionGridView.GridControl = this.conditionGrid;
            this.conditionGridView.HorzScrollVisibility = DevExpress.XtraGrid.Views.Base.ScrollVisibility.Never;
            this.conditionGridView.Name = "conditionGridView";
            this.conditionGridView.OptionsBehavior.Editable = false;
            this.conditionGridView.OptionsBehavior.ReadOnly = true;
            this.conditionGridView.OptionsFilter.AllowAutoFilterConditionChange = DevExpress.Utils.DefaultBoolean.False;
            this.conditionGridView.OptionsFilter.AllowFilterEditor = false;
            this.conditionGridView.OptionsView.ColumnAutoWidth = false;
            this.conditionGridView.OptionsView.ShowGroupPanel = false;
            this.conditionGridView.OptionsView.ShowIndicator = false;
            this.conditionGridView.Tag = 1;
            this.conditionGridView.FocusedRowChanged += new DevExpress.XtraGrid.Views.Base.FocusedRowChangedEventHandler(this.conditionGridView_FocusedRowChanged);
            // 
            // cgMakerColumn
            // 
            this.cgMakerColumn.AppearanceCell.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.cgMakerColumn.AppearanceCell.Options.UseFont = true;
            this.cgMakerColumn.AppearanceCell.Options.UseTextOptions = true;
            this.cgMakerColumn.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Near;
            this.cgMakerColumn.AppearanceHeader.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.cgMakerColumn.AppearanceHeader.Options.UseFont = true;
            this.cgMakerColumn.AppearanceHeader.Options.UseTextOptions = true;
            this.cgMakerColumn.AppearanceHeader.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
            this.cgMakerColumn.Caption = "Maker";
            this.cgMakerColumn.FieldName = "MAKER";
            this.cgMakerColumn.Name = "cgMakerColumn";
            this.cgMakerColumn.OptionsColumn.AllowEdit = false;
            this.cgMakerColumn.OptionsColumn.AllowFocus = false;
            this.cgMakerColumn.OptionsColumn.AllowGroup = DevExpress.Utils.DefaultBoolean.False;
            this.cgMakerColumn.OptionsColumn.AllowIncrementalSearch = false;
            this.cgMakerColumn.OptionsColumn.AllowMerge = DevExpress.Utils.DefaultBoolean.False;
            this.cgMakerColumn.OptionsColumn.AllowMove = false;
            this.cgMakerColumn.OptionsColumn.AllowShowHide = false;
            this.cgMakerColumn.OptionsColumn.AllowSize = false;
            this.cgMakerColumn.OptionsColumn.AllowSort = DevExpress.Utils.DefaultBoolean.False;
            this.cgMakerColumn.OptionsColumn.FixedWidth = true;
            this.cgMakerColumn.OptionsColumn.ImmediateUpdateRowPosition = DevExpress.Utils.DefaultBoolean.False;
            this.cgMakerColumn.OptionsColumn.Printable = DevExpress.Utils.DefaultBoolean.False;
            this.cgMakerColumn.OptionsColumn.ReadOnly = true;
            this.cgMakerColumn.OptionsColumn.TabStop = false;
            this.cgMakerColumn.OptionsFilter.AllowAutoFilter = false;
            this.cgMakerColumn.OptionsFilter.AllowFilter = false;
            this.cgMakerColumn.OptionsFilter.ImmediateUpdateAutoFilter = false;
            this.cgMakerColumn.OptionsFilter.ShowEmptyDateFilter = false;
            this.cgMakerColumn.Visible = true;
            this.cgMakerColumn.VisibleIndex = 0;
            this.cgMakerColumn.Width = 121;
            // 
            // cgModel1Column
            // 
            this.cgModel1Column.Caption = "Model(1)";
            this.cgModel1Column.FieldName = "MODEL1";
            this.cgModel1Column.Name = "cgModel1Column";
            this.cgModel1Column.OptionsColumn.AllowEdit = false;
            this.cgModel1Column.OptionsColumn.AllowFocus = false;
            this.cgModel1Column.OptionsColumn.AllowGroup = DevExpress.Utils.DefaultBoolean.False;
            this.cgModel1Column.OptionsColumn.AllowIncrementalSearch = false;
            this.cgModel1Column.OptionsColumn.AllowMerge = DevExpress.Utils.DefaultBoolean.False;
            this.cgModel1Column.OptionsColumn.AllowMove = false;
            this.cgModel1Column.OptionsColumn.AllowShowHide = false;
            this.cgModel1Column.OptionsColumn.AllowSize = false;
            this.cgModel1Column.OptionsColumn.AllowSort = DevExpress.Utils.DefaultBoolean.False;
            this.cgModel1Column.OptionsColumn.FixedWidth = true;
            this.cgModel1Column.OptionsColumn.ImmediateUpdateRowPosition = DevExpress.Utils.DefaultBoolean.False;
            this.cgModel1Column.OptionsColumn.Printable = DevExpress.Utils.DefaultBoolean.False;
            this.cgModel1Column.OptionsColumn.ReadOnly = true;
            this.cgModel1Column.OptionsFilter.AllowAutoFilter = false;
            this.cgModel1Column.OptionsFilter.AllowFilter = false;
            this.cgModel1Column.OptionsFilter.ImmediateUpdateAutoFilter = false;
            this.cgModel1Column.OptionsFilter.ShowEmptyDateFilter = false;
            this.cgModel1Column.Visible = true;
            this.cgModel1Column.VisibleIndex = 1;
            this.cgModel1Column.Width = 121;
            // 
            // cgSerial1Column
            // 
            this.cgSerial1Column.Caption = "Serial No(1)";
            this.cgSerial1Column.FieldName = "SERIAL1";
            this.cgSerial1Column.Name = "cgSerial1Column";
            this.cgSerial1Column.OptionsColumn.AllowEdit = false;
            this.cgSerial1Column.OptionsColumn.AllowFocus = false;
            this.cgSerial1Column.OptionsColumn.AllowGroup = DevExpress.Utils.DefaultBoolean.False;
            this.cgSerial1Column.OptionsColumn.AllowIncrementalSearch = false;
            this.cgSerial1Column.OptionsColumn.AllowMerge = DevExpress.Utils.DefaultBoolean.False;
            this.cgSerial1Column.OptionsColumn.AllowMove = false;
            this.cgSerial1Column.OptionsColumn.AllowShowHide = false;
            this.cgSerial1Column.OptionsColumn.AllowSize = false;
            this.cgSerial1Column.OptionsColumn.AllowSort = DevExpress.Utils.DefaultBoolean.False;
            this.cgSerial1Column.OptionsColumn.FixedWidth = true;
            this.cgSerial1Column.OptionsColumn.ImmediateUpdateRowPosition = DevExpress.Utils.DefaultBoolean.False;
            this.cgSerial1Column.OptionsColumn.Printable = DevExpress.Utils.DefaultBoolean.False;
            this.cgSerial1Column.OptionsColumn.ReadOnly = true;
            this.cgSerial1Column.OptionsFilter.AllowAutoFilter = false;
            this.cgSerial1Column.OptionsFilter.AllowFilter = false;
            this.cgSerial1Column.OptionsFilter.ImmediateUpdateAutoFilter = false;
            this.cgSerial1Column.OptionsFilter.ShowEmptyDateFilter = false;
            this.cgSerial1Column.Visible = true;
            this.cgSerial1Column.VisibleIndex = 2;
            this.cgSerial1Column.Width = 121;
            // 
            // searchButton
            // 
            this.searchButton.Image = ((System.Drawing.Image)(resources.GetObject("searchButton.Image")));
            this.searchButton.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
            this.searchButton.Location = new System.Drawing.Point(298, 7);
            this.searchButton.Name = "searchButton";
            this.searchButton.Padding = new System.Windows.Forms.Padding(2, 0, 0, 0);
            this.searchButton.Size = new System.Drawing.Size(96, 24);
            this.searchButton.TabIndex = 1;
            this.searchButton.Text = "  Find";
            this.searchButton.UseVisualStyleBackColor = true;
            this.searchButton.Click += new System.EventHandler(this.searchButton_Click);
            // 
            // makerEdit
            // 
            this.makerEdit.EditValue = "";
            this.makerEdit.EnterMoveNextControl = true;
            this.makerEdit.Location = new System.Drawing.Point(78, 8);
            this.makerEdit.Name = "makerEdit";
            this.makerEdit.Properties.Appearance.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.makerEdit.Properties.Appearance.Options.UseFont = true;
            this.makerEdit.Properties.MaxLength = 50;
            this.makerEdit.Size = new System.Drawing.Size(218, 22);
            this.makerEdit.TabIndex = 0;
            // 
            // label4
            // 
            this.label4.Location = new System.Drawing.Point(7, 8);
            this.label4.Name = "label4";
            this.label4.Size = new System.Drawing.Size(65, 22);
            this.label4.TabIndex = 79;
            this.label4.Text = "Maker";
            this.label4.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
            // 
            // thermoPanel
            // 
            this.thermoPanel.BevelInner = Ulee.Controls.EUlBevelStyle.Raised;
            this.thermoPanel.BevelOuter = Ulee.Controls.EUlBevelStyle.Lowered;
            this.thermoPanel.Controls.Add(this.thermoTagGrid);
            this.thermoPanel.Controls.Add(this.thermo3Grid);
            this.thermoPanel.Controls.Add(this.thermo2Grid);
            this.thermoPanel.Controls.Add(this.thermo1Grid);
            this.thermoPanel.Controls.Add(this.thermoTitlePanel);
            this.thermoPanel.InnerColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.thermoPanel.InnerColor2 = System.Drawing.Color.White;
            this.thermoPanel.Location = new System.Drawing.Point(646, 0);
            this.thermoPanel.Name = "thermoPanel";
            this.thermoPanel.OuterColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.thermoPanel.OuterColor2 = System.Drawing.Color.White;
            this.thermoPanel.Size = new System.Drawing.Size(850, 915);
            this.thermoPanel.Spacing = 0;
            this.thermoPanel.TabIndex = 11;
            this.thermoPanel.TextHAlign = Ulee.Controls.EUlHoriAlign.Center;
            this.thermoPanel.TextVAlign = Ulee.Controls.EUlVertAlign.Middle;
            // 
            // thermoTagGrid
            // 
            this.thermoTagGrid.Location = new System.Drawing.Point(660, 40);
            this.thermoTagGrid.MainView = this.thermoTagGridView;
            this.thermoTagGrid.Name = "thermoTagGrid";
            this.thermoTagGrid.Size = new System.Drawing.Size(184, 869);
            this.thermoTagGrid.TabIndex = 3;
            this.thermoTagGrid.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] {
            this.thermoTagGridView});
            // 
            // thermoTagGridView
            // 
            this.thermoTagGridView.Appearance.FixedLine.Font = new System.Drawing.Font("Arial", 9F);
            this.thermoTagGridView.Appearance.FixedLine.Options.UseFont = true;
            this.thermoTagGridView.Appearance.FocusedRow.Font = new System.Drawing.Font("Arial", 9F);
            this.thermoTagGridView.Appearance.FocusedRow.Options.UseFont = true;
            this.thermoTagGridView.Appearance.HeaderPanel.Font = new System.Drawing.Font("Arial", 9F);
            this.thermoTagGridView.Appearance.HeaderPanel.Options.UseFont = true;
            this.thermoTagGridView.Appearance.HideSelectionRow.Font = new System.Drawing.Font("Arial", 9F);
            this.thermoTagGridView.Appearance.HideSelectionRow.Options.UseFont = true;
            this.thermoTagGridView.Appearance.OddRow.Font = new System.Drawing.Font("Arial", 9F);
            this.thermoTagGridView.Appearance.OddRow.Options.UseFont = true;
            this.thermoTagGridView.Appearance.Preview.Font = new System.Drawing.Font("Arial", 9F);
            this.thermoTagGridView.Appearance.Preview.Options.UseFont = true;
            this.thermoTagGridView.Appearance.Row.Font = new System.Drawing.Font("Arial", 9F);
            this.thermoTagGridView.Appearance.Row.Options.UseFont = true;
            this.thermoTagGridView.Appearance.SelectedRow.Font = new System.Drawing.Font("Arial", 9F);
            this.thermoTagGridView.Appearance.SelectedRow.Options.UseFont = true;
            this.thermoTagGridView.Appearance.ViewCaption.Font = new System.Drawing.Font("Arial", 9F);
            this.thermoTagGridView.Appearance.ViewCaption.Options.UseFont = true;
            this.gridBehavior.SetBehaviors(this.thermoTagGridView, new DevExpress.Utils.Behaviors.Behavior[] {
            ((DevExpress.Utils.Behaviors.Behavior)(DevExpress.Utils.DragDrop.DragDropBehavior.Create(typeof(DevExpress.XtraGrid.Extensions.ColumnViewDragDropSource), false, false, true, this.thermoTagGridDragDropEvents1)))});
            this.thermoTagGridView.Columns.AddRange(new DevExpress.XtraGrid.Columns.GridColumn[] {
            this.thermoTagNameColumn});
            this.thermoTagGridView.CustomizationFormBounds = new System.Drawing.Rectangle(2884, 580, 210, 186);
            this.thermoTagGridView.GridControl = this.thermoTagGrid;
            this.thermoTagGridView.HorzScrollVisibility = DevExpress.XtraGrid.Views.Base.ScrollVisibility.Never;
            this.thermoTagGridView.Name = "thermoTagGridView";
            this.thermoTagGridView.OptionsView.ColumnAutoWidth = false;
            this.thermoTagGridView.OptionsView.ShowGroupPanel = false;
            this.thermoTagGridView.OptionsView.ShowIndicator = false;
            this.thermoTagGridView.Tag = 1;
            this.thermoTagGridView.CustomDrawColumnHeader += new DevExpress.XtraGrid.Views.Grid.ColumnHeaderCustomDrawEventHandler(this.thermoTagGridView_CustomDrawColumnHeader);
            // 
            // thermoTagNameColumn
            // 
            this.thermoTagNameColumn.AppearanceCell.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.thermoTagNameColumn.AppearanceCell.Options.UseFont = true;
            this.thermoTagNameColumn.AppearanceCell.Options.UseTextOptions = true;
            this.thermoTagNameColumn.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Near;
            this.thermoTagNameColumn.AppearanceHeader.BackColor = System.Drawing.Color.PaleGoldenrod;
            this.thermoTagNameColumn.AppearanceHeader.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.thermoTagNameColumn.AppearanceHeader.Options.UseBackColor = true;
            this.thermoTagNameColumn.AppearanceHeader.Options.UseFont = true;
            this.thermoTagNameColumn.AppearanceHeader.Options.UseTextOptions = true;
            this.thermoTagNameColumn.AppearanceHeader.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
            this.thermoTagNameColumn.Caption = "Name Tags";
            this.thermoTagNameColumn.FieldName = "Value";
            this.thermoTagNameColumn.Name = "thermoTagNameColumn";
            this.thermoTagNameColumn.OptionsColumn.AllowEdit = false;
            this.thermoTagNameColumn.OptionsColumn.AllowFocus = false;
            this.thermoTagNameColumn.OptionsColumn.AllowGroup = DevExpress.Utils.DefaultBoolean.False;
            this.thermoTagNameColumn.OptionsColumn.AllowIncrementalSearch = false;
            this.thermoTagNameColumn.OptionsColumn.AllowMerge = DevExpress.Utils.DefaultBoolean.False;
            this.thermoTagNameColumn.OptionsColumn.AllowMove = false;
            this.thermoTagNameColumn.OptionsColumn.AllowShowHide = false;
            this.thermoTagNameColumn.OptionsColumn.AllowSize = false;
            this.thermoTagNameColumn.OptionsColumn.AllowSort = DevExpress.Utils.DefaultBoolean.False;
            this.thermoTagNameColumn.OptionsColumn.FixedWidth = true;
            this.thermoTagNameColumn.OptionsColumn.ImmediateUpdateRowPosition = DevExpress.Utils.DefaultBoolean.False;
            this.thermoTagNameColumn.OptionsColumn.Printable = DevExpress.Utils.DefaultBoolean.False;
            this.thermoTagNameColumn.OptionsColumn.ReadOnly = true;
            this.thermoTagNameColumn.OptionsColumn.TabStop = false;
            this.thermoTagNameColumn.OptionsFilter.AllowAutoFilter = false;
            this.thermoTagNameColumn.OptionsFilter.AllowFilter = false;
            this.thermoTagNameColumn.Visible = true;
            this.thermoTagNameColumn.VisibleIndex = 0;
            this.thermoTagNameColumn.Width = 164;
            // 
            // thermo3Grid
            // 
            this.thermo3Grid.Location = new System.Drawing.Point(442, 40);
            this.thermo3Grid.MainView = this.thermo3GridView;
            this.thermo3Grid.Name = "thermo3Grid";
            this.thermo3Grid.Size = new System.Drawing.Size(214, 869);
            this.thermo3Grid.TabIndex = 2;
            this.thermo3Grid.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] {
            this.thermo3GridView});
            // 
            // thermo3GridView
            // 
            this.thermo3GridView.Appearance.FixedLine.Font = new System.Drawing.Font("Arial", 9F);
            this.thermo3GridView.Appearance.FixedLine.Options.UseFont = true;
            this.thermo3GridView.Appearance.FocusedCell.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.thermo3GridView.Appearance.FocusedCell.Options.UseFont = true;
            this.thermo3GridView.Appearance.FocusedRow.Font = new System.Drawing.Font("Arial", 9F);
            this.thermo3GridView.Appearance.FocusedRow.Options.UseFont = true;
            this.thermo3GridView.Appearance.HeaderPanel.Font = new System.Drawing.Font("Arial", 9F);
            this.thermo3GridView.Appearance.HeaderPanel.Options.UseFont = true;
            this.thermo3GridView.Appearance.HideSelectionRow.Font = new System.Drawing.Font("Arial", 9F);
            this.thermo3GridView.Appearance.HideSelectionRow.Options.UseFont = true;
            this.thermo3GridView.Appearance.OddRow.Font = new System.Drawing.Font("Arial", 9F);
            this.thermo3GridView.Appearance.OddRow.Options.UseFont = true;
            this.thermo3GridView.Appearance.Preview.Font = new System.Drawing.Font("Arial", 9F);
            this.thermo3GridView.Appearance.Preview.Options.UseFont = true;
            this.thermo3GridView.Appearance.Row.Font = new System.Drawing.Font("Arial", 9F);
            this.thermo3GridView.Appearance.Row.Options.UseFont = true;
            this.thermo3GridView.Appearance.SelectedRow.Font = new System.Drawing.Font("Arial", 9F);
            this.thermo3GridView.Appearance.SelectedRow.Options.UseFont = true;
            this.thermo3GridView.Appearance.ViewCaption.Font = new System.Drawing.Font("Arial", 9F);
            this.thermo3GridView.Appearance.ViewCaption.Options.UseFont = true;
            this.gridBehavior.SetBehaviors(this.thermo3GridView, new DevExpress.Utils.Behaviors.Behavior[] {
            ((DevExpress.Utils.Behaviors.Behavior)(DevExpress.Utils.DragDrop.DragDropBehavior.Create(typeof(DevExpress.XtraGrid.Extensions.ColumnViewDragDropSource), false, false, true, this.thermo3GridDragDropEvents)))});
            this.thermo3GridView.Columns.AddRange(new DevExpress.XtraGrid.Columns.GridColumn[] {
            this.thermo3NoColumn,
            this.thermo3NameColumn});
            this.thermo3GridView.CustomizationFormBounds = new System.Drawing.Rectangle(2884, 580, 210, 186);
            this.thermo3GridView.GridControl = this.thermo3Grid;
            this.thermo3GridView.HorzScrollVisibility = DevExpress.XtraGrid.Views.Base.ScrollVisibility.Never;
            this.thermo3GridView.Name = "thermo3GridView";
            this.thermo3GridView.OptionsClipboard.AllowCopy = DevExpress.Utils.DefaultBoolean.True;
            this.thermo3GridView.OptionsClipboard.AllowExcelFormat = DevExpress.Utils.DefaultBoolean.True;
            this.thermo3GridView.OptionsClipboard.CopyColumnHeaders = DevExpress.Utils.DefaultBoolean.False;
            this.thermo3GridView.OptionsNavigation.EnterMoveNextColumn = true;
            this.thermo3GridView.OptionsSelection.MultiSelect = true;
            this.thermo3GridView.OptionsView.ColumnAutoWidth = false;
            this.thermo3GridView.OptionsView.ShowGroupPanel = false;
            this.thermo3GridView.OptionsView.ShowIndicator = false;
            this.thermo3GridView.Tag = 1;
            // 
            // thermo3NoColumn
            // 
            this.thermo3NoColumn.AppearanceCell.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.thermo3NoColumn.AppearanceCell.Options.UseFont = true;
            this.thermo3NoColumn.AppearanceCell.Options.UseTextOptions = true;
            this.thermo3NoColumn.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
            this.thermo3NoColumn.AppearanceHeader.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.thermo3NoColumn.AppearanceHeader.Options.UseFont = true;
            this.thermo3NoColumn.AppearanceHeader.Options.UseTextOptions = true;
            this.thermo3NoColumn.AppearanceHeader.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
            this.thermo3NoColumn.Caption = "No";
            this.thermo3NoColumn.DisplayFormat.FormatString = "{0:d2}";
            this.thermo3NoColumn.DisplayFormat.FormatType = DevExpress.Utils.FormatType.Numeric;
            this.thermo3NoColumn.FieldName = "No";
            this.thermo3NoColumn.Name = "thermo3NoColumn";
            this.thermo3NoColumn.OptionsColumn.AllowEdit = false;
            this.thermo3NoColumn.OptionsColumn.AllowFocus = false;
            this.thermo3NoColumn.OptionsColumn.AllowGroup = DevExpress.Utils.DefaultBoolean.False;
            this.thermo3NoColumn.OptionsColumn.AllowIncrementalSearch = false;
            this.thermo3NoColumn.OptionsColumn.AllowMerge = DevExpress.Utils.DefaultBoolean.False;
            this.thermo3NoColumn.OptionsColumn.AllowMove = false;
            this.thermo3NoColumn.OptionsColumn.AllowShowHide = false;
            this.thermo3NoColumn.OptionsColumn.AllowSize = false;
            this.thermo3NoColumn.OptionsColumn.AllowSort = DevExpress.Utils.DefaultBoolean.False;
            this.thermo3NoColumn.OptionsColumn.FixedWidth = true;
            this.thermo3NoColumn.OptionsColumn.ImmediateUpdateRowPosition = DevExpress.Utils.DefaultBoolean.False;
            this.thermo3NoColumn.OptionsColumn.Printable = DevExpress.Utils.DefaultBoolean.False;
            this.thermo3NoColumn.OptionsColumn.ReadOnly = true;
            this.thermo3NoColumn.OptionsFilter.AllowAutoFilter = false;
            this.thermo3NoColumn.OptionsFilter.AllowFilter = false;
            this.thermo3NoColumn.Visible = true;
            this.thermo3NoColumn.VisibleIndex = 0;
            this.thermo3NoColumn.Width = 32;
            // 
            // thermo3NameColumn
            // 
            this.thermo3NameColumn.AppearanceCell.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.thermo3NameColumn.AppearanceCell.Options.UseFont = true;
            this.thermo3NameColumn.AppearanceCell.Options.UseTextOptions = true;
            this.thermo3NameColumn.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Near;
            this.thermo3NameColumn.AppearanceHeader.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.thermo3NameColumn.AppearanceHeader.Options.UseFont = true;
            this.thermo3NameColumn.AppearanceHeader.Options.UseTextOptions = true;
            this.thermo3NameColumn.AppearanceHeader.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
            this.thermo3NameColumn.Caption = "Outdoor";
            this.thermo3NameColumn.FieldName = "Value";
            this.thermo3NameColumn.Name = "thermo3NameColumn";
            this.thermo3NameColumn.OptionsColumn.AllowGroup = DevExpress.Utils.DefaultBoolean.False;
            this.thermo3NameColumn.OptionsColumn.AllowIncrementalSearch = false;
            this.thermo3NameColumn.OptionsColumn.AllowMerge = DevExpress.Utils.DefaultBoolean.False;
            this.thermo3NameColumn.OptionsColumn.AllowMove = false;
            this.thermo3NameColumn.OptionsColumn.AllowShowHide = false;
            this.thermo3NameColumn.OptionsColumn.AllowSize = false;
            this.thermo3NameColumn.OptionsColumn.AllowSort = DevExpress.Utils.DefaultBoolean.False;
            this.thermo3NameColumn.OptionsColumn.FixedWidth = true;
            this.thermo3NameColumn.OptionsColumn.ImmediateUpdateRowPosition = DevExpress.Utils.DefaultBoolean.False;
            this.thermo3NameColumn.OptionsColumn.Printable = DevExpress.Utils.DefaultBoolean.False;
            this.thermo3NameColumn.OptionsColumn.TabStop = false;
            this.thermo3NameColumn.OptionsFilter.AllowAutoFilter = false;
            this.thermo3NameColumn.OptionsFilter.AllowFilter = false;
            this.thermo3NameColumn.Visible = true;
            this.thermo3NameColumn.VisibleIndex = 1;
            this.thermo3NameColumn.Width = 162;
            // 
            // thermo2Grid
            // 
            this.thermo2Grid.Location = new System.Drawing.Point(224, 40);
            this.thermo2Grid.MainView = this.thermo2GridView;
            this.thermo2Grid.Name = "thermo2Grid";
            this.thermo2Grid.Size = new System.Drawing.Size(214, 869);
            this.thermo2Grid.TabIndex = 1;
            this.thermo2Grid.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] {
            this.thermo2GridView});
            // 
            // thermo2GridView
            // 
            this.thermo2GridView.Appearance.FixedLine.Font = new System.Drawing.Font("Arial", 9F);
            this.thermo2GridView.Appearance.FixedLine.Options.UseFont = true;
            this.thermo2GridView.Appearance.FocusedCell.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.thermo2GridView.Appearance.FocusedCell.Options.UseFont = true;
            this.thermo2GridView.Appearance.FocusedRow.Font = new System.Drawing.Font("Arial", 9F);
            this.thermo2GridView.Appearance.FocusedRow.Options.UseFont = true;
            this.thermo2GridView.Appearance.HeaderPanel.Font = new System.Drawing.Font("Arial", 9F);
            this.thermo2GridView.Appearance.HeaderPanel.Options.UseFont = true;
            this.thermo2GridView.Appearance.HideSelectionRow.Font = new System.Drawing.Font("Arial", 9F);
            this.thermo2GridView.Appearance.HideSelectionRow.Options.UseFont = true;
            this.thermo2GridView.Appearance.OddRow.Font = new System.Drawing.Font("Arial", 9F);
            this.thermo2GridView.Appearance.OddRow.Options.UseFont = true;
            this.thermo2GridView.Appearance.Preview.Font = new System.Drawing.Font("Arial", 9F);
            this.thermo2GridView.Appearance.Preview.Options.UseFont = true;
            this.thermo2GridView.Appearance.Row.Font = new System.Drawing.Font("Arial", 9F);
            this.thermo2GridView.Appearance.Row.Options.UseFont = true;
            this.thermo2GridView.Appearance.SelectedRow.Font = new System.Drawing.Font("Arial", 9F);
            this.thermo2GridView.Appearance.SelectedRow.Options.UseFont = true;
            this.thermo2GridView.Appearance.ViewCaption.Font = new System.Drawing.Font("Arial", 9F);
            this.thermo2GridView.Appearance.ViewCaption.Options.UseFont = true;
            this.gridBehavior.SetBehaviors(this.thermo2GridView, new DevExpress.Utils.Behaviors.Behavior[] {
            ((DevExpress.Utils.Behaviors.Behavior)(DevExpress.Utils.DragDrop.DragDropBehavior.Create(typeof(DevExpress.XtraGrid.Extensions.ColumnViewDragDropSource), false, false, true, this.thermo2GridDragDropEvents)))});
            this.thermo2GridView.Columns.AddRange(new DevExpress.XtraGrid.Columns.GridColumn[] {
            this.thermo2NoColumn,
            this.thermo2NameColumn});
            this.thermo2GridView.CustomizationFormBounds = new System.Drawing.Rectangle(2884, 580, 210, 186);
            this.thermo2GridView.GridControl = this.thermo2Grid;
            this.thermo2GridView.HorzScrollVisibility = DevExpress.XtraGrid.Views.Base.ScrollVisibility.Never;
            this.thermo2GridView.Name = "thermo2GridView";
            this.thermo2GridView.OptionsClipboard.AllowCopy = DevExpress.Utils.DefaultBoolean.True;
            this.thermo2GridView.OptionsClipboard.AllowExcelFormat = DevExpress.Utils.DefaultBoolean.True;
            this.thermo2GridView.OptionsClipboard.CopyColumnHeaders = DevExpress.Utils.DefaultBoolean.False;
            this.thermo2GridView.OptionsNavigation.EnterMoveNextColumn = true;
            this.thermo2GridView.OptionsSelection.MultiSelect = true;
            this.thermo2GridView.OptionsView.ColumnAutoWidth = false;
            this.thermo2GridView.OptionsView.ShowGroupPanel = false;
            this.thermo2GridView.OptionsView.ShowIndicator = false;
            this.thermo2GridView.Tag = 1;
            // 
            // thermo2NoColumn
            // 
            this.thermo2NoColumn.AppearanceCell.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.thermo2NoColumn.AppearanceCell.Options.UseFont = true;
            this.thermo2NoColumn.AppearanceCell.Options.UseTextOptions = true;
            this.thermo2NoColumn.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
            this.thermo2NoColumn.AppearanceHeader.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.thermo2NoColumn.AppearanceHeader.Options.UseFont = true;
            this.thermo2NoColumn.AppearanceHeader.Options.UseTextOptions = true;
            this.thermo2NoColumn.AppearanceHeader.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
            this.thermo2NoColumn.Caption = "No";
            this.thermo2NoColumn.DisplayFormat.FormatString = "{0:d2}";
            this.thermo2NoColumn.DisplayFormat.FormatType = DevExpress.Utils.FormatType.Numeric;
            this.thermo2NoColumn.FieldName = "No";
            this.thermo2NoColumn.Name = "thermo2NoColumn";
            this.thermo2NoColumn.OptionsColumn.AllowEdit = false;
            this.thermo2NoColumn.OptionsColumn.AllowFocus = false;
            this.thermo2NoColumn.OptionsColumn.AllowGroup = DevExpress.Utils.DefaultBoolean.False;
            this.thermo2NoColumn.OptionsColumn.AllowIncrementalSearch = false;
            this.thermo2NoColumn.OptionsColumn.AllowMerge = DevExpress.Utils.DefaultBoolean.False;
            this.thermo2NoColumn.OptionsColumn.AllowMove = false;
            this.thermo2NoColumn.OptionsColumn.AllowShowHide = false;
            this.thermo2NoColumn.OptionsColumn.AllowSize = false;
            this.thermo2NoColumn.OptionsColumn.AllowSort = DevExpress.Utils.DefaultBoolean.False;
            this.thermo2NoColumn.OptionsColumn.FixedWidth = true;
            this.thermo2NoColumn.OptionsColumn.ImmediateUpdateRowPosition = DevExpress.Utils.DefaultBoolean.False;
            this.thermo2NoColumn.OptionsColumn.Printable = DevExpress.Utils.DefaultBoolean.False;
            this.thermo2NoColumn.OptionsColumn.ReadOnly = true;
            this.thermo2NoColumn.OptionsFilter.AllowAutoFilter = false;
            this.thermo2NoColumn.OptionsFilter.AllowFilter = false;
            this.thermo2NoColumn.Visible = true;
            this.thermo2NoColumn.VisibleIndex = 0;
            this.thermo2NoColumn.Width = 32;
            // 
            // thermo2NameColumn
            // 
            this.thermo2NameColumn.AppearanceCell.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.thermo2NameColumn.AppearanceCell.Options.UseFont = true;
            this.thermo2NameColumn.AppearanceCell.Options.UseTextOptions = true;
            this.thermo2NameColumn.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Near;
            this.thermo2NameColumn.AppearanceHeader.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.thermo2NameColumn.AppearanceHeader.Options.UseFont = true;
            this.thermo2NameColumn.AppearanceHeader.Options.UseTextOptions = true;
            this.thermo2NameColumn.AppearanceHeader.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
            this.thermo2NameColumn.Caption = "Indoor No.2";
            this.thermo2NameColumn.FieldName = "Value";
            this.thermo2NameColumn.Name = "thermo2NameColumn";
            this.thermo2NameColumn.OptionsColumn.AllowGroup = DevExpress.Utils.DefaultBoolean.False;
            this.thermo2NameColumn.OptionsColumn.AllowIncrementalSearch = false;
            this.thermo2NameColumn.OptionsColumn.AllowMerge = DevExpress.Utils.DefaultBoolean.False;
            this.thermo2NameColumn.OptionsColumn.AllowMove = false;
            this.thermo2NameColumn.OptionsColumn.AllowShowHide = false;
            this.thermo2NameColumn.OptionsColumn.AllowSize = false;
            this.thermo2NameColumn.OptionsColumn.AllowSort = DevExpress.Utils.DefaultBoolean.False;
            this.thermo2NameColumn.OptionsColumn.FixedWidth = true;
            this.thermo2NameColumn.OptionsColumn.ImmediateUpdateRowPosition = DevExpress.Utils.DefaultBoolean.False;
            this.thermo2NameColumn.OptionsColumn.Printable = DevExpress.Utils.DefaultBoolean.False;
            this.thermo2NameColumn.OptionsColumn.TabStop = false;
            this.thermo2NameColumn.OptionsFilter.AllowAutoFilter = false;
            this.thermo2NameColumn.OptionsFilter.AllowFilter = false;
            this.thermo2NameColumn.Visible = true;
            this.thermo2NameColumn.VisibleIndex = 1;
            this.thermo2NameColumn.Width = 162;
            // 
            // thermo1Grid
            // 
            this.thermo1Grid.Location = new System.Drawing.Point(6, 40);
            this.thermo1Grid.MainView = this.thermo1GridView;
            this.thermo1Grid.Name = "thermo1Grid";
            this.thermo1Grid.Size = new System.Drawing.Size(214, 869);
            this.thermo1Grid.TabIndex = 0;
            this.thermo1Grid.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] {
            this.thermo1GridView});
            // 
            // thermo1GridView
            // 
            this.thermo1GridView.Appearance.FixedLine.Font = new System.Drawing.Font("Arial", 9F);
            this.thermo1GridView.Appearance.FixedLine.Options.UseFont = true;
            this.thermo1GridView.Appearance.FocusedCell.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.thermo1GridView.Appearance.FocusedCell.Options.UseFont = true;
            this.thermo1GridView.Appearance.FocusedRow.Font = new System.Drawing.Font("Arial", 9F);
            this.thermo1GridView.Appearance.FocusedRow.Options.UseFont = true;
            this.thermo1GridView.Appearance.HeaderPanel.Font = new System.Drawing.Font("Arial", 9F);
            this.thermo1GridView.Appearance.HeaderPanel.Options.UseFont = true;
            this.thermo1GridView.Appearance.HideSelectionRow.Font = new System.Drawing.Font("Arial", 9F);
            this.thermo1GridView.Appearance.HideSelectionRow.Options.UseFont = true;
            this.thermo1GridView.Appearance.OddRow.Font = new System.Drawing.Font("Arial", 9F);
            this.thermo1GridView.Appearance.OddRow.Options.UseFont = true;
            this.thermo1GridView.Appearance.Preview.Font = new System.Drawing.Font("Arial", 9F);
            this.thermo1GridView.Appearance.Preview.Options.UseFont = true;
            this.thermo1GridView.Appearance.Row.Font = new System.Drawing.Font("Arial", 9F);
            this.thermo1GridView.Appearance.Row.Options.UseFont = true;
            this.thermo1GridView.Appearance.SelectedRow.Font = new System.Drawing.Font("Arial", 9F);
            this.thermo1GridView.Appearance.SelectedRow.Options.UseFont = true;
            this.thermo1GridView.Appearance.ViewCaption.Font = new System.Drawing.Font("Arial", 9F);
            this.thermo1GridView.Appearance.ViewCaption.Options.UseFont = true;
            this.gridBehavior.SetBehaviors(this.thermo1GridView, new DevExpress.Utils.Behaviors.Behavior[] {
            ((DevExpress.Utils.Behaviors.Behavior)(DevExpress.Utils.DragDrop.DragDropBehavior.Create(typeof(DevExpress.XtraGrid.Extensions.ColumnViewDragDropSource), false, false, true, this.thermo1GriddragDropEvents)))});
            this.thermo1GridView.Columns.AddRange(new DevExpress.XtraGrid.Columns.GridColumn[] {
            this.thermo1NoColumn,
            this.thermo1NameColumn});
            this.thermo1GridView.CustomizationFormBounds = new System.Drawing.Rectangle(2884, 580, 210, 186);
            this.thermo1GridView.GridControl = this.thermo1Grid;
            this.thermo1GridView.HorzScrollVisibility = DevExpress.XtraGrid.Views.Base.ScrollVisibility.Never;
            this.thermo1GridView.Name = "thermo1GridView";
            this.thermo1GridView.OptionsClipboard.AllowCopy = DevExpress.Utils.DefaultBoolean.True;
            this.thermo1GridView.OptionsClipboard.AllowExcelFormat = DevExpress.Utils.DefaultBoolean.True;
            this.thermo1GridView.OptionsClipboard.CopyColumnHeaders = DevExpress.Utils.DefaultBoolean.False;
            this.thermo1GridView.OptionsNavigation.EnterMoveNextColumn = true;
            this.thermo1GridView.OptionsSelection.MultiSelect = true;
            this.thermo1GridView.OptionsView.ColumnAutoWidth = false;
            this.thermo1GridView.OptionsView.ShowGroupPanel = false;
            this.thermo1GridView.OptionsView.ShowIndicator = false;
            this.thermo1GridView.Tag = 1;
            // 
            // thermo1NoColumn
            // 
            this.thermo1NoColumn.AppearanceCell.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.thermo1NoColumn.AppearanceCell.Options.UseFont = true;
            this.thermo1NoColumn.AppearanceCell.Options.UseTextOptions = true;
            this.thermo1NoColumn.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
            this.thermo1NoColumn.AppearanceHeader.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.thermo1NoColumn.AppearanceHeader.Options.UseFont = true;
            this.thermo1NoColumn.AppearanceHeader.Options.UseTextOptions = true;
            this.thermo1NoColumn.AppearanceHeader.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
            this.thermo1NoColumn.Caption = "No";
            this.thermo1NoColumn.DisplayFormat.FormatString = "{0:d2}";
            this.thermo1NoColumn.DisplayFormat.FormatType = DevExpress.Utils.FormatType.Numeric;
            this.thermo1NoColumn.FieldName = "No";
            this.thermo1NoColumn.Name = "thermo1NoColumn";
            this.thermo1NoColumn.OptionsColumn.AllowEdit = false;
            this.thermo1NoColumn.OptionsColumn.AllowFocus = false;
            this.thermo1NoColumn.OptionsColumn.AllowGroup = DevExpress.Utils.DefaultBoolean.False;
            this.thermo1NoColumn.OptionsColumn.AllowIncrementalSearch = false;
            this.thermo1NoColumn.OptionsColumn.AllowMerge = DevExpress.Utils.DefaultBoolean.False;
            this.thermo1NoColumn.OptionsColumn.AllowMove = false;
            this.thermo1NoColumn.OptionsColumn.AllowShowHide = false;
            this.thermo1NoColumn.OptionsColumn.AllowSize = false;
            this.thermo1NoColumn.OptionsColumn.AllowSort = DevExpress.Utils.DefaultBoolean.False;
            this.thermo1NoColumn.OptionsColumn.FixedWidth = true;
            this.thermo1NoColumn.OptionsColumn.ImmediateUpdateRowPosition = DevExpress.Utils.DefaultBoolean.False;
            this.thermo1NoColumn.OptionsColumn.Printable = DevExpress.Utils.DefaultBoolean.False;
            this.thermo1NoColumn.OptionsColumn.ReadOnly = true;
            this.thermo1NoColumn.OptionsFilter.AllowAutoFilter = false;
            this.thermo1NoColumn.OptionsFilter.AllowFilter = false;
            this.thermo1NoColumn.Visible = true;
            this.thermo1NoColumn.VisibleIndex = 0;
            this.thermo1NoColumn.Width = 32;
            // 
            // thermo1NameColumn
            // 
            this.thermo1NameColumn.AppearanceCell.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.thermo1NameColumn.AppearanceCell.Options.UseFont = true;
            this.thermo1NameColumn.AppearanceCell.Options.UseTextOptions = true;
            this.thermo1NameColumn.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Near;
            this.thermo1NameColumn.AppearanceHeader.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.thermo1NameColumn.AppearanceHeader.Options.UseFont = true;
            this.thermo1NameColumn.AppearanceHeader.Options.UseTextOptions = true;
            this.thermo1NameColumn.AppearanceHeader.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
            this.thermo1NameColumn.Caption = "Indoor No.1";
            this.thermo1NameColumn.FieldName = "Value";
            this.thermo1NameColumn.Name = "thermo1NameColumn";
            this.thermo1NameColumn.OptionsColumn.AllowGroup = DevExpress.Utils.DefaultBoolean.False;
            this.thermo1NameColumn.OptionsColumn.AllowIncrementalSearch = false;
            this.thermo1NameColumn.OptionsColumn.AllowMerge = DevExpress.Utils.DefaultBoolean.False;
            this.thermo1NameColumn.OptionsColumn.AllowMove = false;
            this.thermo1NameColumn.OptionsColumn.AllowShowHide = false;
            this.thermo1NameColumn.OptionsColumn.AllowSize = false;
            this.thermo1NameColumn.OptionsColumn.AllowSort = DevExpress.Utils.DefaultBoolean.False;
            this.thermo1NameColumn.OptionsColumn.FixedWidth = true;
            this.thermo1NameColumn.OptionsColumn.ImmediateUpdateRowPosition = DevExpress.Utils.DefaultBoolean.False;
            this.thermo1NameColumn.OptionsColumn.Printable = DevExpress.Utils.DefaultBoolean.False;
            this.thermo1NameColumn.OptionsColumn.TabStop = false;
            this.thermo1NameColumn.OptionsFilter.AllowAutoFilter = false;
            this.thermo1NameColumn.OptionsFilter.AllowFilter = false;
            this.thermo1NameColumn.Visible = true;
            this.thermo1NameColumn.VisibleIndex = 1;
            this.thermo1NameColumn.Width = 162;
            // 
            // thermoTitlePanel
            // 
            this.thermoTitlePanel.BackColor = System.Drawing.Color.Gray;
            this.thermoTitlePanel.BevelInner = Ulee.Controls.EUlBevelStyle.None;
            this.thermoTitlePanel.BevelOuter = Ulee.Controls.EUlBevelStyle.Lowered;
            this.thermoTitlePanel.Font = new System.Drawing.Font("Arial Rounded MT Bold", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.thermoTitlePanel.ForeColor = System.Drawing.Color.White;
            this.thermoTitlePanel.InnerColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.thermoTitlePanel.InnerColor2 = System.Drawing.Color.White;
            this.thermoTitlePanel.Location = new System.Drawing.Point(6, 6);
            this.thermoTitlePanel.Name = "thermoTitlePanel";
            this.thermoTitlePanel.OuterColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.thermoTitlePanel.OuterColor2 = System.Drawing.Color.White;
            this.thermoTitlePanel.Size = new System.Drawing.Size(838, 28);
            this.thermoTitlePanel.Spacing = 0;
            this.thermoTitlePanel.TabIndex = 5;
            this.thermoTitlePanel.Text = "THERMOCOUPLE";
            this.thermoTitlePanel.TextHAlign = Ulee.Controls.EUlHoriAlign.Center;
            this.thermoTitlePanel.TextVAlign = Ulee.Controls.EUlVertAlign.Middle;
            // 
            // pressurePanel
            // 
            this.pressurePanel.BevelInner = Ulee.Controls.EUlBevelStyle.Raised;
            this.pressurePanel.BevelOuter = Ulee.Controls.EUlBevelStyle.Lowered;
            this.pressurePanel.Controls.Add(this.pressureGrid);
            this.pressurePanel.Controls.Add(this.pressureTagGrid);
            this.pressurePanel.Controls.Add(this.pressureTitlePanel);
            this.pressurePanel.InnerColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.pressurePanel.InnerColor2 = System.Drawing.Color.White;
            this.pressurePanel.Location = new System.Drawing.Point(1502, 0);
            this.pressurePanel.Name = "pressurePanel";
            this.pressurePanel.OuterColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.pressurePanel.OuterColor2 = System.Drawing.Color.White;
            this.pressurePanel.Size = new System.Drawing.Size(226, 915);
            this.pressurePanel.Spacing = 0;
            this.pressurePanel.TabIndex = 12;
            this.pressurePanel.TextHAlign = Ulee.Controls.EUlHoriAlign.Center;
            this.pressurePanel.TextVAlign = Ulee.Controls.EUlVertAlign.Middle;
            // 
            // pressureGrid
            // 
            this.pressureGrid.Location = new System.Drawing.Point(6, 40);
            this.pressureGrid.MainView = this.pressureGridView;
            this.pressureGrid.Name = "pressureGrid";
            this.pressureGrid.Size = new System.Drawing.Size(214, 432);
            this.pressureGrid.TabIndex = 0;
            this.pressureGrid.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] {
            this.pressureGridView});
            // 
            // pressureGridView
            // 
            this.pressureGridView.Appearance.FixedLine.Font = new System.Drawing.Font("Arial", 9F);
            this.pressureGridView.Appearance.FixedLine.Options.UseFont = true;
            this.pressureGridView.Appearance.FocusedCell.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.pressureGridView.Appearance.FocusedCell.Options.UseFont = true;
            this.pressureGridView.Appearance.FocusedRow.Font = new System.Drawing.Font("Arial", 9F);
            this.pressureGridView.Appearance.FocusedRow.Options.UseFont = true;
            this.pressureGridView.Appearance.HeaderPanel.Font = new System.Drawing.Font("Arial", 9F);
            this.pressureGridView.Appearance.HeaderPanel.Options.UseFont = true;
            this.pressureGridView.Appearance.HideSelectionRow.Font = new System.Drawing.Font("Arial", 9F);
            this.pressureGridView.Appearance.HideSelectionRow.Options.UseFont = true;
            this.pressureGridView.Appearance.OddRow.Font = new System.Drawing.Font("Arial", 9F);
            this.pressureGridView.Appearance.OddRow.Options.UseFont = true;
            this.pressureGridView.Appearance.Preview.Font = new System.Drawing.Font("Arial", 9F);
            this.pressureGridView.Appearance.Preview.Options.UseFont = true;
            this.pressureGridView.Appearance.Row.Font = new System.Drawing.Font("Arial", 9F);
            this.pressureGridView.Appearance.Row.Options.UseFont = true;
            this.pressureGridView.Appearance.SelectedRow.Font = new System.Drawing.Font("Arial", 9F);
            this.pressureGridView.Appearance.SelectedRow.Options.UseFont = true;
            this.pressureGridView.Appearance.ViewCaption.Font = new System.Drawing.Font("Arial", 9F);
            this.pressureGridView.Appearance.ViewCaption.Options.UseFont = true;
            this.gridBehavior.SetBehaviors(this.pressureGridView, new DevExpress.Utils.Behaviors.Behavior[] {
            ((DevExpress.Utils.Behaviors.Behavior)(DevExpress.Utils.DragDrop.DragDropBehavior.Create(typeof(DevExpress.XtraGrid.Extensions.ColumnViewDragDropSource), false, false, true, this.pressureGridDragDropEvents)))});
            this.pressureGridView.Columns.AddRange(new DevExpress.XtraGrid.Columns.GridColumn[] {
            this.pressureNoColumn,
            this.pressureNameColumn});
            this.pressureGridView.CustomizationFormBounds = new System.Drawing.Rectangle(2884, 580, 210, 186);
            this.pressureGridView.GridControl = this.pressureGrid;
            this.pressureGridView.HorzScrollVisibility = DevExpress.XtraGrid.Views.Base.ScrollVisibility.Never;
            this.pressureGridView.Name = "pressureGridView";
            this.pressureGridView.OptionsClipboard.AllowCopy = DevExpress.Utils.DefaultBoolean.True;
            this.pressureGridView.OptionsClipboard.AllowExcelFormat = DevExpress.Utils.DefaultBoolean.True;
            this.pressureGridView.OptionsClipboard.CopyColumnHeaders = DevExpress.Utils.DefaultBoolean.False;
            this.pressureGridView.OptionsNavigation.EnterMoveNextColumn = true;
            this.pressureGridView.OptionsSelection.MultiSelect = true;
            this.pressureGridView.OptionsView.ColumnAutoWidth = false;
            this.pressureGridView.OptionsView.ShowGroupPanel = false;
            this.pressureGridView.OptionsView.ShowIndicator = false;
            this.pressureGridView.Tag = 1;
            // 
            // pressureNoColumn
            // 
            this.pressureNoColumn.AppearanceCell.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.pressureNoColumn.AppearanceCell.Options.UseFont = true;
            this.pressureNoColumn.AppearanceCell.Options.UseTextOptions = true;
            this.pressureNoColumn.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
            this.pressureNoColumn.AppearanceHeader.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.pressureNoColumn.AppearanceHeader.Options.UseFont = true;
            this.pressureNoColumn.AppearanceHeader.Options.UseTextOptions = true;
            this.pressureNoColumn.AppearanceHeader.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
            this.pressureNoColumn.Caption = "No";
            this.pressureNoColumn.DisplayFormat.FormatString = "{0:d2}";
            this.pressureNoColumn.DisplayFormat.FormatType = DevExpress.Utils.FormatType.Numeric;
            this.pressureNoColumn.FieldName = "No";
            this.pressureNoColumn.Name = "pressureNoColumn";
            this.pressureNoColumn.OptionsColumn.AllowEdit = false;
            this.pressureNoColumn.OptionsColumn.AllowFocus = false;
            this.pressureNoColumn.OptionsColumn.AllowGroup = DevExpress.Utils.DefaultBoolean.False;
            this.pressureNoColumn.OptionsColumn.AllowIncrementalSearch = false;
            this.pressureNoColumn.OptionsColumn.AllowMerge = DevExpress.Utils.DefaultBoolean.False;
            this.pressureNoColumn.OptionsColumn.AllowMove = false;
            this.pressureNoColumn.OptionsColumn.AllowShowHide = false;
            this.pressureNoColumn.OptionsColumn.AllowSize = false;
            this.pressureNoColumn.OptionsColumn.AllowSort = DevExpress.Utils.DefaultBoolean.False;
            this.pressureNoColumn.OptionsColumn.FixedWidth = true;
            this.pressureNoColumn.OptionsColumn.ImmediateUpdateRowPosition = DevExpress.Utils.DefaultBoolean.False;
            this.pressureNoColumn.OptionsColumn.Printable = DevExpress.Utils.DefaultBoolean.False;
            this.pressureNoColumn.OptionsColumn.ReadOnly = true;
            this.pressureNoColumn.OptionsFilter.AllowAutoFilter = false;
            this.pressureNoColumn.OptionsFilter.AllowFilter = false;
            this.pressureNoColumn.Visible = true;
            this.pressureNoColumn.VisibleIndex = 0;
            this.pressureNoColumn.Width = 32;
            // 
            // pressureNameColumn
            // 
            this.pressureNameColumn.AppearanceCell.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.pressureNameColumn.AppearanceCell.Options.UseFont = true;
            this.pressureNameColumn.AppearanceCell.Options.UseTextOptions = true;
            this.pressureNameColumn.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Near;
            this.pressureNameColumn.AppearanceHeader.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.pressureNameColumn.AppearanceHeader.Options.UseFont = true;
            this.pressureNameColumn.AppearanceHeader.Options.UseTextOptions = true;
            this.pressureNameColumn.AppearanceHeader.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
            this.pressureNameColumn.Caption = "Pressure";
            this.pressureNameColumn.FieldName = "Value";
            this.pressureNameColumn.Name = "pressureNameColumn";
            this.pressureNameColumn.OptionsColumn.AllowGroup = DevExpress.Utils.DefaultBoolean.False;
            this.pressureNameColumn.OptionsColumn.AllowIncrementalSearch = false;
            this.pressureNameColumn.OptionsColumn.AllowMerge = DevExpress.Utils.DefaultBoolean.False;
            this.pressureNameColumn.OptionsColumn.AllowMove = false;
            this.pressureNameColumn.OptionsColumn.AllowShowHide = false;
            this.pressureNameColumn.OptionsColumn.AllowSize = false;
            this.pressureNameColumn.OptionsColumn.AllowSort = DevExpress.Utils.DefaultBoolean.False;
            this.pressureNameColumn.OptionsColumn.FixedWidth = true;
            this.pressureNameColumn.OptionsColumn.ImmediateUpdateRowPosition = DevExpress.Utils.DefaultBoolean.False;
            this.pressureNameColumn.OptionsColumn.Printable = DevExpress.Utils.DefaultBoolean.False;
            this.pressureNameColumn.OptionsColumn.TabStop = false;
            this.pressureNameColumn.OptionsFilter.AllowAutoFilter = false;
            this.pressureNameColumn.OptionsFilter.AllowFilter = false;
            this.pressureNameColumn.Visible = true;
            this.pressureNameColumn.VisibleIndex = 1;
            this.pressureNameColumn.Width = 162;
            // 
            // pressureTagGrid
            // 
            this.pressureTagGrid.Location = new System.Drawing.Point(6, 478);
            this.pressureTagGrid.MainView = this.pressureTagGridView;
            this.pressureTagGrid.Name = "pressureTagGrid";
            this.pressureTagGrid.Size = new System.Drawing.Size(214, 431);
            this.pressureTagGrid.TabIndex = 1;
            this.pressureTagGrid.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] {
            this.pressureTagGridView});
            // 
            // pressureTagGridView
            // 
            this.pressureTagGridView.Appearance.FixedLine.Font = new System.Drawing.Font("Arial", 9F);
            this.pressureTagGridView.Appearance.FixedLine.Options.UseFont = true;
            this.pressureTagGridView.Appearance.FocusedCell.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.pressureTagGridView.Appearance.FocusedCell.Options.UseFont = true;
            this.pressureTagGridView.Appearance.FocusedRow.Font = new System.Drawing.Font("Arial", 9F);
            this.pressureTagGridView.Appearance.FocusedRow.Options.UseFont = true;
            this.pressureTagGridView.Appearance.HeaderPanel.Font = new System.Drawing.Font("Arial", 9F);
            this.pressureTagGridView.Appearance.HeaderPanel.Options.UseFont = true;
            this.pressureTagGridView.Appearance.HideSelectionRow.Font = new System.Drawing.Font("Arial", 9F);
            this.pressureTagGridView.Appearance.HideSelectionRow.Options.UseFont = true;
            this.pressureTagGridView.Appearance.OddRow.Font = new System.Drawing.Font("Arial", 9F);
            this.pressureTagGridView.Appearance.OddRow.Options.UseFont = true;
            this.pressureTagGridView.Appearance.Preview.Font = new System.Drawing.Font("Arial", 9F);
            this.pressureTagGridView.Appearance.Preview.Options.UseFont = true;
            this.pressureTagGridView.Appearance.Row.Font = new System.Drawing.Font("Arial", 9F);
            this.pressureTagGridView.Appearance.Row.Options.UseFont = true;
            this.pressureTagGridView.Appearance.SelectedRow.Font = new System.Drawing.Font("Arial", 9F);
            this.pressureTagGridView.Appearance.SelectedRow.Options.UseFont = true;
            this.pressureTagGridView.Appearance.ViewCaption.Font = new System.Drawing.Font("Arial", 9F);
            this.pressureTagGridView.Appearance.ViewCaption.Options.UseFont = true;
            this.gridBehavior.SetBehaviors(this.pressureTagGridView, new DevExpress.Utils.Behaviors.Behavior[] {
            ((DevExpress.Utils.Behaviors.Behavior)(DevExpress.Utils.DragDrop.DragDropBehavior.Create(typeof(DevExpress.XtraGrid.Extensions.ColumnViewDragDropSource), false, false, true, this.pressureTagGridDragDropEvents)))});
            this.pressureTagGridView.Columns.AddRange(new DevExpress.XtraGrid.Columns.GridColumn[] {
            this.pressureTagNameColumn});
            this.pressureTagGridView.CustomizationFormBounds = new System.Drawing.Rectangle(2884, 580, 210, 186);
            this.pressureTagGridView.GridControl = this.pressureTagGrid;
            this.pressureTagGridView.HorzScrollVisibility = DevExpress.XtraGrid.Views.Base.ScrollVisibility.Never;
            this.pressureTagGridView.Name = "pressureTagGridView";
            this.pressureTagGridView.OptionsBehavior.Editable = false;
            this.pressureTagGridView.OptionsBehavior.ReadOnly = true;
            this.pressureTagGridView.OptionsView.ColumnAutoWidth = false;
            this.pressureTagGridView.OptionsView.ShowGroupPanel = false;
            this.pressureTagGridView.OptionsView.ShowIndicator = false;
            this.pressureTagGridView.Tag = 1;
            this.pressureTagGridView.CustomDrawColumnHeader += new DevExpress.XtraGrid.Views.Grid.ColumnHeaderCustomDrawEventHandler(this.thermoTagGridView_CustomDrawColumnHeader);
            // 
            // pressureTagNameColumn
            // 
            this.pressureTagNameColumn.AppearanceCell.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.pressureTagNameColumn.AppearanceCell.Options.UseFont = true;
            this.pressureTagNameColumn.AppearanceCell.Options.UseTextOptions = true;
            this.pressureTagNameColumn.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Near;
            this.pressureTagNameColumn.AppearanceHeader.BackColor = System.Drawing.Color.PaleGoldenrod;
            this.pressureTagNameColumn.AppearanceHeader.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.pressureTagNameColumn.AppearanceHeader.Options.UseBackColor = true;
            this.pressureTagNameColumn.AppearanceHeader.Options.UseFont = true;
            this.pressureTagNameColumn.AppearanceHeader.Options.UseTextOptions = true;
            this.pressureTagNameColumn.AppearanceHeader.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
            this.pressureTagNameColumn.Caption = "Name Tags";
            this.pressureTagNameColumn.FieldName = "Value";
            this.pressureTagNameColumn.Name = "pressureTagNameColumn";
            this.pressureTagNameColumn.OptionsColumn.AllowEdit = false;
            this.pressureTagNameColumn.OptionsColumn.AllowFocus = false;
            this.pressureTagNameColumn.OptionsColumn.AllowGroup = DevExpress.Utils.DefaultBoolean.False;
            this.pressureTagNameColumn.OptionsColumn.AllowIncrementalSearch = false;
            this.pressureTagNameColumn.OptionsColumn.AllowMerge = DevExpress.Utils.DefaultBoolean.False;
            this.pressureTagNameColumn.OptionsColumn.AllowMove = false;
            this.pressureTagNameColumn.OptionsColumn.AllowShowHide = false;
            this.pressureTagNameColumn.OptionsColumn.AllowSize = false;
            this.pressureTagNameColumn.OptionsColumn.AllowSort = DevExpress.Utils.DefaultBoolean.False;
            this.pressureTagNameColumn.OptionsColumn.FixedWidth = true;
            this.pressureTagNameColumn.OptionsColumn.ImmediateUpdateRowPosition = DevExpress.Utils.DefaultBoolean.False;
            this.pressureTagNameColumn.OptionsColumn.Printable = DevExpress.Utils.DefaultBoolean.False;
            this.pressureTagNameColumn.OptionsColumn.ReadOnly = true;
            this.pressureTagNameColumn.OptionsColumn.TabStop = false;
            this.pressureTagNameColumn.OptionsFilter.AllowAutoFilter = false;
            this.pressureTagNameColumn.OptionsFilter.AllowFilter = false;
            this.pressureTagNameColumn.Visible = true;
            this.pressureTagNameColumn.VisibleIndex = 0;
            this.pressureTagNameColumn.Width = 194;
            // 
            // pressureTitlePanel
            // 
            this.pressureTitlePanel.BackColor = System.Drawing.Color.Gray;
            this.pressureTitlePanel.BevelInner = Ulee.Controls.EUlBevelStyle.None;
            this.pressureTitlePanel.BevelOuter = Ulee.Controls.EUlBevelStyle.Lowered;
            this.pressureTitlePanel.Font = new System.Drawing.Font("Arial Rounded MT Bold", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.pressureTitlePanel.ForeColor = System.Drawing.Color.White;
            this.pressureTitlePanel.InnerColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.pressureTitlePanel.InnerColor2 = System.Drawing.Color.White;
            this.pressureTitlePanel.Location = new System.Drawing.Point(6, 6);
            this.pressureTitlePanel.Name = "pressureTitlePanel";
            this.pressureTitlePanel.OuterColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.pressureTitlePanel.OuterColor2 = System.Drawing.Color.White;
            this.pressureTitlePanel.Size = new System.Drawing.Size(214, 28);
            this.pressureTitlePanel.Spacing = 0;
            this.pressureTitlePanel.TabIndex = 5;
            this.pressureTitlePanel.Text = "PRESSURE";
            this.pressureTitlePanel.TextHAlign = Ulee.Controls.EUlHoriAlign.Center;
            this.pressureTitlePanel.TextVAlign = Ulee.Controls.EUlVertAlign.Middle;
            // 
            // ratedUnitGroup
            // 
            this.ratedUnitGroup.Controls.Add(this.methodCapaHeatingUnitCombo);
            this.ratedUnitGroup.Controls.Add(this.label7);
            this.ratedUnitGroup.Controls.Add(this.methodCapaCoolingUnitCombo);
            this.ratedUnitGroup.Controls.Add(this.label202);
            this.ratedUnitGroup.Location = new System.Drawing.Point(406, 486);
            this.ratedUnitGroup.Name = "ratedUnitGroup";
            this.ratedUnitGroup.Size = new System.Drawing.Size(234, 92);
            this.ratedUnitGroup.TabIndex = 13;
            this.ratedUnitGroup.TabStop = false;
            this.ratedUnitGroup.Text = " Rated Capacity Unit ";
            // 
            // methodCapaHeatingUnitCombo
            // 
            this.methodCapaHeatingUnitCombo.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
            this.methodCapaHeatingUnitCombo.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.methodCapaHeatingUnitCombo.FormattingEnabled = true;
            this.methodCapaHeatingUnitCombo.ItemHeight = 15;
            this.methodCapaHeatingUnitCombo.Location = new System.Drawing.Point(92, 56);
            this.methodCapaHeatingUnitCombo.Name = "methodCapaHeatingUnitCombo";
            this.methodCapaHeatingUnitCombo.Size = new System.Drawing.Size(136, 23);
            this.methodCapaHeatingUnitCombo.TabIndex = 1;
            this.methodCapaHeatingUnitCombo.SelectedValueChanged += new System.EventHandler(this.methodCapaHeatingUnitCombo_SelectedValueChanged);
            // 
            // label7
            // 
            this.label7.Location = new System.Drawing.Point(9, 56);
            this.label7.Name = "label7";
            this.label7.Size = new System.Drawing.Size(76, 22);
            this.label7.TabIndex = 93;
            this.label7.Text = "Heating";
            this.label7.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
            // 
            // methodCapaCoolingUnitCombo
            // 
            this.methodCapaCoolingUnitCombo.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
            this.methodCapaCoolingUnitCombo.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.methodCapaCoolingUnitCombo.FormattingEnabled = true;
            this.methodCapaCoolingUnitCombo.ItemHeight = 15;
            this.methodCapaCoolingUnitCombo.Location = new System.Drawing.Point(92, 26);
            this.methodCapaCoolingUnitCombo.Name = "methodCapaCoolingUnitCombo";
            this.methodCapaCoolingUnitCombo.Size = new System.Drawing.Size(136, 23);
            this.methodCapaCoolingUnitCombo.TabIndex = 0;
            this.methodCapaCoolingUnitCombo.SelectedValueChanged += new System.EventHandler(this.methodCapaCoolingUnitCombo_SelectedValueChanged);
            // 
            // label202
            // 
            this.label202.Location = new System.Drawing.Point(9, 26);
            this.label202.Name = "label202";
            this.label202.Size = new System.Drawing.Size(77, 22);
            this.label202.TabIndex = 92;
            this.label202.Text = "Cooling";
            this.label202.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
            // 
            // thermo3GridDragDropEvents
            // 
            this.thermo3GridDragDropEvents.DragOver += new DevExpress.Utils.DragDrop.DragOverEventHandler(this.thermo3GridDragDropEvents_DragOver);
            this.thermo3GridDragDropEvents.DragDrop += new DevExpress.Utils.DragDrop.DragDropEventHandler(this.thermo3GridDragDropEvents_DragDrop);
            // 
            // thermo2GridDragDropEvents
            // 
            this.thermo2GridDragDropEvents.DragOver += new DevExpress.Utils.DragDrop.DragOverEventHandler(this.thermo2GridDragDropEvents_DragOver);
            this.thermo2GridDragDropEvents.DragDrop += new DevExpress.Utils.DragDrop.DragDropEventHandler(this.thermo2GridDragDropEvents_DragDrop);
            // 
            // thermo1GriddragDropEvents
            // 
            this.thermo1GriddragDropEvents.DragOver += new DevExpress.Utils.DragDrop.DragOverEventHandler(this.thermo1GriddragDropEvents_DragOver);
            this.thermo1GriddragDropEvents.DragDrop += new DevExpress.Utils.DragDrop.DragDropEventHandler(this.thermo1GriddragDropEvents_DragDrop);
            // 
            // pressureGridDragDropEvents
            // 
            this.pressureGridDragDropEvents.DragOver += new DevExpress.Utils.DragDrop.DragOverEventHandler(this.pressureGridDragDropEvents_DragOver);
            this.pressureGridDragDropEvents.DragDrop += new DevExpress.Utils.DragDrop.DragDropEventHandler(this.pressureGridDragDropEvents_DragDrop);
            // 
            // CtrlConfigCondition
            // 
            this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            this.Name = "CtrlConfigCondition";
            this.Size = new System.Drawing.Size(1816, 915);
            this.Load += new System.EventHandler(this.CtrlConfigCondition_Load);
            this.Enter += new System.EventHandler(this.CtrlConfigCondition_Enter);
            this.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.CtrlConfigCondition_KeyPress);
            this.bgPanel.ResumeLayout(false);
            this.ratedPanel.ResumeLayout(false);
            this.ratedTab.ResumeLayout(false);
            this.notePanel.ResumeLayout(false);
            ((System.ComponentModel.ISupportInitialize)(this.noteSerial1Edit.Properties)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.noteModel1Edit.Properties)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.noteMakerEdit.Properties)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.noteMemoEdit.Properties)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.noteObserverEdit.Properties)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.noteRefChargeEdit.Properties)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.noteRefrigerantCombo.Properties)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.noteExpDeviceEdit.Properties)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.noteSerial3Edit.Properties)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.noteModel3Edit.Properties)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.noteSerial2Edit.Properties)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.noteModel2Edit.Properties)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.noteTestNoEdit.Properties)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.noteTestNameEdit.Properties)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.noteCompanyEdit.Properties)).EndInit();
            this.menuPanel.ResumeLayout(false);
            this.searchPanel.ResumeLayout(false);
            ((System.ComponentModel.ISupportInitialize)(this.conditionGrid)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.conditionGridView)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.makerEdit.Properties)).EndInit();
            this.thermoPanel.ResumeLayout(false);
            ((System.ComponentModel.ISupportInitialize)(this.thermoTagGrid)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.thermoTagGridView)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.thermo3Grid)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.thermo3GridView)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.thermo2Grid)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.thermo2GridView)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.thermo1Grid)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.thermo1GridView)).EndInit();
            this.pressurePanel.ResumeLayout(false);
            ((System.ComponentModel.ISupportInitialize)(this.pressureGrid)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.pressureGridView)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.pressureTagGrid)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.pressureTagGridView)).EndInit();
            this.ratedUnitGroup.ResumeLayout(false);
            ((System.ComponentModel.ISupportInitialize)(this.gridBehavior)).EndInit();
            this.ResumeLayout(false);
            this.PerformLayout();

        }

        #endregion
        private Ulee.Controls.UlPanel ratedPanel;
        private System.Windows.Forms.TabControl ratedTab;
        private System.Windows.Forms.TabPage ratedTotalPage;
        private System.Windows.Forms.TabPage ratedID1Page;
        private System.Windows.Forms.TabPage ratedID2Page;
        private System.Windows.Forms.TabPage ratedID3Page;
        private System.Windows.Forms.TabPage ratedID4Page;
        private Ulee.Controls.UlPanel ratedTitlePanel;
        private Ulee.Controls.UlPanel notePanel;
        private System.Windows.Forms.Label label2;
        public DevExpress.XtraEditors.TextEdit noteObserverEdit;
        private System.Windows.Forms.Label noteObserverLabel;
        private System.Windows.Forms.Label label21;
        public DevExpress.XtraEditors.TextEdit noteRefChargeEdit;
        private System.Windows.Forms.Label label20;
        private System.Windows.Forms.Label label19;
        private DevExpress.XtraEditors.ComboBoxEdit noteRefrigerantCombo;
        public DevExpress.XtraEditors.TextEdit noteExpDeviceEdit;
        private System.Windows.Forms.Label label18;
        public DevExpress.XtraEditors.TextEdit noteSerial3Edit;
        private System.Windows.Forms.Label label16;
        public DevExpress.XtraEditors.TextEdit noteModel3Edit;
        private System.Windows.Forms.Label label17;
        public DevExpress.XtraEditors.TextEdit noteSerial2Edit;
        private System.Windows.Forms.Label label12;
        public DevExpress.XtraEditors.TextEdit noteModel2Edit;
        private System.Windows.Forms.Label label13;
        private System.Windows.Forms.Label label14;
        private System.Windows.Forms.Label label15;
        private System.Windows.Forms.Label label10;
        public DevExpress.XtraEditors.TextEdit noteTestNoEdit;
        private System.Windows.Forms.Label label11;
        public DevExpress.XtraEditors.TextEdit noteTestNameEdit;
        private System.Windows.Forms.Label label9;
        public DevExpress.XtraEditors.TextEdit noteCompanyEdit;
        private System.Windows.Forms.Label label8;
        private Ulee.Controls.UlPanel noteTitlePanel;
        private Ulee.Controls.UlPanel menuPanel;
        private DevExpress.XtraEditors.SimpleButton saveButton;
        private DevExpress.XtraEditors.SimpleButton cancelButton;
        private Ulee.Controls.UlPanel searchPanel;
        private DevExpress.XtraGrid.GridControl conditionGrid;
        private DevExpress.XtraGrid.Views.Grid.GridView conditionGridView;
        private DevExpress.XtraGrid.Columns.GridColumn cgMakerColumn;
        private DevExpress.XtraGrid.Columns.GridColumn cgModel1Column;
        private DevExpress.XtraGrid.Columns.GridColumn cgSerial1Column;
        private System.Windows.Forms.Button searchButton;
        public DevExpress.XtraEditors.TextEdit makerEdit;
        private System.Windows.Forms.Label label4;
        private System.Windows.Forms.Button deleteButton;
        private System.Windows.Forms.Button copyButton;
        private System.Windows.Forms.Button modifyButton;
        private System.Windows.Forms.Button newButton;
        public DevExpress.XtraEditors.TextEdit noteMemoEdit;
        private Ulee.Controls.UlPanel thermoPanel;
        private DevExpress.XtraGrid.GridControl thermoTagGrid;
        private DevExpress.XtraGrid.Views.Grid.GridView thermoTagGridView;
        private DevExpress.XtraGrid.Columns.GridColumn thermoTagNameColumn;
        private DevExpress.XtraGrid.GridControl thermo3Grid;
        private DevExpress.XtraGrid.Views.Grid.GridView thermo3GridView;
        private DevExpress.XtraGrid.Columns.GridColumn thermo3NoColumn;
        private DevExpress.XtraGrid.Columns.GridColumn thermo3NameColumn;
        private DevExpress.XtraGrid.GridControl thermo2Grid;
        private DevExpress.XtraGrid.Views.Grid.GridView thermo2GridView;
        private DevExpress.XtraGrid.Columns.GridColumn thermo2NoColumn;
        private DevExpress.XtraGrid.Columns.GridColumn thermo2NameColumn;
        private DevExpress.XtraGrid.GridControl thermo1Grid;
        private DevExpress.XtraGrid.Views.Grid.GridView thermo1GridView;
        private DevExpress.XtraGrid.Columns.GridColumn thermo1NoColumn;
        private DevExpress.XtraGrid.Columns.GridColumn thermo1NameColumn;
        private Ulee.Controls.UlPanel thermoTitlePanel;
        private Ulee.Controls.UlPanel pressurePanel;
        private DevExpress.XtraGrid.GridControl pressureGrid;
        private DevExpress.XtraGrid.Views.Grid.GridView pressureGridView;
        private DevExpress.XtraGrid.Columns.GridColumn pressureNoColumn;
        private DevExpress.XtraGrid.Columns.GridColumn pressureNameColumn;
        private DevExpress.XtraGrid.GridControl pressureTagGrid;
        private DevExpress.XtraGrid.Views.Grid.GridView pressureTagGridView;
        private DevExpress.XtraGrid.Columns.GridColumn pressureTagNameColumn;
        private Ulee.Controls.UlPanel pressureTitlePanel;
        private System.Windows.Forms.GroupBox ratedUnitGroup;
        private System.Windows.Forms.ComboBox methodCapaHeatingUnitCombo;
        private System.Windows.Forms.Label label7;
        private System.Windows.Forms.ComboBox methodCapaCoolingUnitCombo;
        private System.Windows.Forms.Label label202;
        public DevExpress.XtraEditors.TextEdit noteSerial1Edit;
        public DevExpress.XtraEditors.TextEdit noteModel1Edit;
        public DevExpress.XtraEditors.TextEdit noteMakerEdit;
        private DevExpress.Utils.Behaviors.BehaviorManager gridBehavior;
        private DevExpress.Utils.DragDrop.DragDropEvents thermo1GriddragDropEvents;
        private DevExpress.Utils.DragDrop.DragDropEvents thermo3GridDragDropEvents;
        private DevExpress.Utils.DragDrop.DragDropEvents thermo2GridDragDropEvents;
        private DevExpress.Utils.DragDrop.DragDropEvents thermoTagGridDragDropEvents1;
        private DevExpress.Utils.DragDrop.DragDropEvents pressureGridDragDropEvents;
        private DevExpress.Utils.DragDrop.DragDropEvents pressureTagGridDragDropEvents;
    }
}
<file_sep>﻿namespace Hnc.Calorimeter.Client
{ 
    partial class CtrlPowerMeterView
    {
        /// <summary> 
        /// Required designer variable.
        /// </summary>
        private System.ComponentModel.IContainer components = null;

        /// <summary> 
        /// Clean up any resources being used.
        /// </summary>
        /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
        protected override void Dispose(bool disposing)
        {
            if (disposing && (components != null))
            {
                components.Dispose();
            }
            base.Dispose(disposing);
        }

        #region Component Designer generated code

        /// <summary> 
        /// Required method for Designer support - do not modify 
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            this.titleEdit = new Ulee.Controls.UlPanel();
            this.ulPanel2 = new Ulee.Controls.UlPanel();
            this.ulPanel3 = new Ulee.Controls.UlPanel();
            this.ulPanel4 = new Ulee.Controls.UlPanel();
            this.ulPanel5 = new Ulee.Controls.UlPanel();
            this.voltREdit = new Ulee.Controls.UlPanel();
            this.voltSEdit = new Ulee.Controls.UlPanel();
            this.voltTEdit = new Ulee.Controls.UlPanel();
            this.voltSigmaEdit = new Ulee.Controls.UlPanel();
            this.ulPanel11 = new Ulee.Controls.UlPanel();
            this.ulPanel1 = new Ulee.Controls.UlPanel();
            this.powerREdit = new Ulee.Controls.UlPanel();
            this.powerSEdit = new Ulee.Controls.UlPanel();
            this.powerTEdit = new Ulee.Controls.UlPanel();
            this.powerSigmaEdit = new Ulee.Controls.UlPanel();
            this.ulPanel16 = new Ulee.Controls.UlPanel();
            this.ulPanel24 = new Ulee.Controls.UlPanel();
            this.currentREdit = new Ulee.Controls.UlPanel();
            this.currentSEdit = new Ulee.Controls.UlPanel();
            this.currentTEdit = new Ulee.Controls.UlPanel();
            this.currentSigmaEdit = new Ulee.Controls.UlPanel();
            this.ulPanel21 = new Ulee.Controls.UlPanel();
            this.ulPanel23 = new Ulee.Controls.UlPanel();
            this.integTimeEdit = new Ulee.Controls.UlPanel();
            this.ulPanel26 = new Ulee.Controls.UlPanel();
            this.ulPanel44 = new Ulee.Controls.UlPanel();
            this.whREdit = new Ulee.Controls.UlPanel();
            this.whSEdit = new Ulee.Controls.UlPanel();
            this.whTEdit = new Ulee.Controls.UlPanel();
            this.whSigmaEdit = new Ulee.Controls.UlPanel();
            this.ulPanel31 = new Ulee.Controls.UlPanel();
            this.ulPanel43 = new Ulee.Controls.UlPanel();
            this.pfREdit = new Ulee.Controls.UlPanel();
            this.pfSEdit = new Ulee.Controls.UlPanel();
            this.pfTEdit = new Ulee.Controls.UlPanel();
            this.pfSigmaEdit = new Ulee.Controls.UlPanel();
            this.ulPanel36 = new Ulee.Controls.UlPanel();
            this.ulPanel42 = new Ulee.Controls.UlPanel();
            this.hzREdit = new Ulee.Controls.UlPanel();
            this.hzSEdit = new Ulee.Controls.UlPanel();
            this.hzTEdit = new Ulee.Controls.UlPanel();
            this.hzSigmaEdit = new Ulee.Controls.UlPanel();
            this.ulPanel41 = new Ulee.Controls.UlPanel();
            this.ulPanel25 = new Ulee.Controls.UlPanel();
            this.ulPanel45 = new Ulee.Controls.UlPanel();
            this.bgPanel.SuspendLayout();
            this.ulPanel11.SuspendLayout();
            this.ulPanel16.SuspendLayout();
            this.ulPanel21.SuspendLayout();
            this.ulPanel26.SuspendLayout();
            this.ulPanel31.SuspendLayout();
            this.ulPanel36.SuspendLayout();
            this.ulPanel41.SuspendLayout();
            this.SuspendLayout();
            // 
            // bgPanel
            // 
            this.bgPanel.BevelInner = Ulee.Controls.EUlBevelStyle.Raised;
            this.bgPanel.Controls.Add(this.ulPanel45);
            this.bgPanel.Controls.Add(this.integTimeEdit);
            this.bgPanel.Controls.Add(this.ulPanel26);
            this.bgPanel.Controls.Add(this.whREdit);
            this.bgPanel.Controls.Add(this.whSEdit);
            this.bgPanel.Controls.Add(this.whTEdit);
            this.bgPanel.Controls.Add(this.whSigmaEdit);
            this.bgPanel.Controls.Add(this.ulPanel31);
            this.bgPanel.Controls.Add(this.pfREdit);
            this.bgPanel.Controls.Add(this.pfSEdit);
            this.bgPanel.Controls.Add(this.pfTEdit);
            this.bgPanel.Controls.Add(this.pfSigmaEdit);
            this.bgPanel.Controls.Add(this.ulPanel36);
            this.bgPanel.Controls.Add(this.hzREdit);
            this.bgPanel.Controls.Add(this.hzSEdit);
            this.bgPanel.Controls.Add(this.hzTEdit);
            this.bgPanel.Controls.Add(this.hzSigmaEdit);
            this.bgPanel.Controls.Add(this.ulPanel41);
            this.bgPanel.Controls.Add(this.powerREdit);
            this.bgPanel.Controls.Add(this.powerSEdit);
            this.bgPanel.Controls.Add(this.powerTEdit);
            this.bgPanel.Controls.Add(this.powerSigmaEdit);
            this.bgPanel.Controls.Add(this.ulPanel16);
            this.bgPanel.Controls.Add(this.currentREdit);
            this.bgPanel.Controls.Add(this.currentSEdit);
            this.bgPanel.Controls.Add(this.currentTEdit);
            this.bgPanel.Controls.Add(this.currentSigmaEdit);
            this.bgPanel.Controls.Add(this.ulPanel21);
            this.bgPanel.Controls.Add(this.voltREdit);
            this.bgPanel.Controls.Add(this.voltSEdit);
            this.bgPanel.Controls.Add(this.voltTEdit);
            this.bgPanel.Controls.Add(this.voltSigmaEdit);
            this.bgPanel.Controls.Add(this.ulPanel11);
            this.bgPanel.Controls.Add(this.ulPanel4);
            this.bgPanel.Controls.Add(this.ulPanel5);
            this.bgPanel.Controls.Add(this.ulPanel3);
            this.bgPanel.Controls.Add(this.ulPanel2);
            this.bgPanel.Controls.Add(this.titleEdit);
            this.bgPanel.Size = new System.Drawing.Size(449, 454);
            // 
            // titleEdit
            // 
            this.titleEdit.BackColor = System.Drawing.Color.DeepSkyBlue;
            this.titleEdit.BevelInner = Ulee.Controls.EUlBevelStyle.None;
            this.titleEdit.BevelOuter = Ulee.Controls.EUlBevelStyle.Lowered;
            this.titleEdit.Font = new System.Drawing.Font("Arial Rounded MT Bold", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.titleEdit.ForeColor = System.Drawing.Color.White;
            this.titleEdit.InnerColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.titleEdit.InnerColor2 = System.Drawing.Color.White;
            this.titleEdit.Location = new System.Drawing.Point(6, 6);
            this.titleEdit.Name = "titleEdit";
            this.titleEdit.OuterColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.titleEdit.OuterColor2 = System.Drawing.Color.White;
            this.titleEdit.Size = new System.Drawing.Size(437, 28);
            this.titleEdit.Spacing = 0;
            this.titleEdit.TabIndex = 6;
            this.titleEdit.Text = "POWER METER";
            this.titleEdit.TextHAlign = Ulee.Controls.EUlHoriAlign.Center;
            this.titleEdit.TextVAlign = Ulee.Controls.EUlVertAlign.Middle;
            // 
            // ulPanel2
            // 
            this.ulPanel2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(78)))), ((int)(((byte)(152)))));
            this.ulPanel2.BevelInner = Ulee.Controls.EUlBevelStyle.None;
            this.ulPanel2.BevelOuter = Ulee.Controls.EUlBevelStyle.None;
            this.ulPanel2.Font = new System.Drawing.Font("Arial Rounded MT Bold", 18F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.ulPanel2.ForeColor = System.Drawing.Color.White;
            this.ulPanel2.InnerColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.ulPanel2.InnerColor2 = System.Drawing.Color.White;
            this.ulPanel2.Location = new System.Drawing.Point(288, 40);
            this.ulPanel2.Name = "ulPanel2";
            this.ulPanel2.OuterColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.ulPanel2.OuterColor2 = System.Drawing.Color.White;
            this.ulPanel2.Size = new System.Drawing.Size(90, 42);
            this.ulPanel2.Spacing = 0;
            this.ulPanel2.TabIndex = 8;
            this.ulPanel2.Text = "Sigma";
            this.ulPanel2.TextHAlign = Ulee.Controls.EUlHoriAlign.Center;
            this.ulPanel2.TextVAlign = Ulee.Controls.EUlVertAlign.Middle;
            // 
            // ulPanel3
            // 
            this.ulPanel3.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(78)))), ((int)(((byte)(152)))));
            this.ulPanel3.BevelInner = Ulee.Controls.EUlBevelStyle.None;
            this.ulPanel3.BevelOuter = Ulee.Controls.EUlBevelStyle.None;
            this.ulPanel3.Font = new System.Drawing.Font("Arial Rounded MT Bold", 18F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.ulPanel3.ForeColor = System.Drawing.Color.White;
            this.ulPanel3.InnerColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.ulPanel3.InnerColor2 = System.Drawing.Color.White;
            this.ulPanel3.Location = new System.Drawing.Point(194, 40);
            this.ulPanel3.Name = "ulPanel3";
            this.ulPanel3.OuterColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.ulPanel3.OuterColor2 = System.Drawing.Color.White;
            this.ulPanel3.Size = new System.Drawing.Size(90, 42);
            this.ulPanel3.Spacing = 0;
            this.ulPanel3.TabIndex = 9;
            this.ulPanel3.Text = "T";
            this.ulPanel3.TextHAlign = Ulee.Controls.EUlHoriAlign.Center;
            this.ulPanel3.TextVAlign = Ulee.Controls.EUlVertAlign.Middle;
            // 
            // ulPanel4
            // 
            this.ulPanel4.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(78)))), ((int)(((byte)(152)))));
            this.ulPanel4.BevelInner = Ulee.Controls.EUlBevelStyle.None;
            this.ulPanel4.BevelOuter = Ulee.Controls.EUlBevelStyle.None;
            this.ulPanel4.Font = new System.Drawing.Font("Arial Rounded MT Bold", 18F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.ulPanel4.ForeColor = System.Drawing.Color.White;
            this.ulPanel4.InnerColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.ulPanel4.InnerColor2 = System.Drawing.Color.White;
            this.ulPanel4.Location = new System.Drawing.Point(6, 40);
            this.ulPanel4.Name = "ulPanel4";
            this.ulPanel4.OuterColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.ulPanel4.OuterColor2 = System.Drawing.Color.White;
            this.ulPanel4.Size = new System.Drawing.Size(90, 42);
            this.ulPanel4.Spacing = 0;
            this.ulPanel4.TabIndex = 11;
            this.ulPanel4.Text = "R";
            this.ulPanel4.TextHAlign = Ulee.Controls.EUlHoriAlign.Center;
            this.ulPanel4.TextVAlign = Ulee.Controls.EUlVertAlign.Middle;
            // 
            // ulPanel5
            // 
            this.ulPanel5.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(78)))), ((int)(((byte)(152)))));
            this.ulPanel5.BevelInner = Ulee.Controls.EUlBevelStyle.None;
            this.ulPanel5.BevelOuter = Ulee.Controls.EUlBevelStyle.None;
            this.ulPanel5.Font = new System.Drawing.Font("Arial Rounded MT Bold", 18F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.ulPanel5.ForeColor = System.Drawing.Color.White;
            this.ulPanel5.InnerColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.ulPanel5.InnerColor2 = System.Drawing.Color.White;
            this.ulPanel5.Location = new System.Drawing.Point(100, 40);
            this.ulPanel5.Name = "ulPanel5";
            this.ulPanel5.OuterColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.ulPanel5.OuterColor2 = System.Drawing.Color.White;
            this.ulPanel5.Size = new System.Drawing.Size(90, 42);
            this.ulPanel5.Spacing = 0;
            this.ulPanel5.TabIndex = 10;
            this.ulPanel5.Text = "S";
            this.ulPanel5.TextHAlign = Ulee.Controls.EUlHoriAlign.Center;
            this.ulPanel5.TextVAlign = Ulee.Controls.EUlVertAlign.Middle;
            // 
            // voltREdit
            // 
            this.voltREdit.BackColor = System.Drawing.Color.Black;
            this.voltREdit.BevelInner = Ulee.Controls.EUlBevelStyle.None;
            this.voltREdit.BevelOuter = Ulee.Controls.EUlBevelStyle.Lowered;
            this.voltREdit.Font = new System.Drawing.Font("Arial Rounded MT Bold", 20F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.voltREdit.ForeColor = System.Drawing.Color.Lime;
            this.voltREdit.InnerColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.voltREdit.InnerColor2 = System.Drawing.Color.White;
            this.voltREdit.Location = new System.Drawing.Point(6, 86);
            this.voltREdit.Name = "voltREdit";
            this.voltREdit.OuterColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.voltREdit.OuterColor2 = System.Drawing.Color.White;
            this.voltREdit.Size = new System.Drawing.Size(90, 48);
            this.voltREdit.Spacing = 0;
            this.voltREdit.TabIndex = 16;
            this.voltREdit.Text = "0.0";
            this.voltREdit.TextHAlign = Ulee.Controls.EUlHoriAlign.Right;
            this.voltREdit.TextVAlign = Ulee.Controls.EUlVertAlign.Middle;
            // 
            // voltSEdit
            // 
            this.voltSEdit.BackColor = System.Drawing.Color.Black;
            this.voltSEdit.BevelInner = Ulee.Controls.EUlBevelStyle.None;
            this.voltSEdit.BevelOuter = Ulee.Controls.EUlBevelStyle.Lowered;
            this.voltSEdit.Font = new System.Drawing.Font("Arial Rounded MT Bold", 20F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.voltSEdit.ForeColor = System.Drawing.Color.Lime;
            this.voltSEdit.InnerColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.voltSEdit.InnerColor2 = System.Drawing.Color.White;
            this.voltSEdit.Location = new System.Drawing.Point(100, 86);
            this.voltSEdit.Name = "voltSEdit";
            this.voltSEdit.OuterColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.voltSEdit.OuterColor2 = System.Drawing.Color.White;
            this.voltSEdit.Size = new System.Drawing.Size(90, 48);
            this.voltSEdit.Spacing = 0;
            this.voltSEdit.TabIndex = 15;
            this.voltSEdit.Text = "0.0";
            this.voltSEdit.TextHAlign = Ulee.Controls.EUlHoriAlign.Right;
            this.voltSEdit.TextVAlign = Ulee.Controls.EUlVertAlign.Middle;
            // 
            // voltTEdit
            // 
            this.voltTEdit.BackColor = System.Drawing.Color.Black;
            this.voltTEdit.BevelInner = Ulee.Controls.EUlBevelStyle.None;
            this.voltTEdit.BevelOuter = Ulee.Controls.EUlBevelStyle.Lowered;
            this.voltTEdit.Font = new System.Drawing.Font("Arial Rounded MT Bold", 20F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.voltTEdit.ForeColor = System.Drawing.Color.Lime;
            this.voltTEdit.InnerColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.voltTEdit.InnerColor2 = System.Drawing.Color.White;
            this.voltTEdit.Location = new System.Drawing.Point(194, 86);
            this.voltTEdit.Name = "voltTEdit";
            this.voltTEdit.OuterColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.voltTEdit.OuterColor2 = System.Drawing.Color.White;
            this.voltTEdit.Size = new System.Drawing.Size(90, 48);
            this.voltTEdit.Spacing = 0;
            this.voltTEdit.TabIndex = 14;
            this.voltTEdit.Text = "0.0";
            this.voltTEdit.TextHAlign = Ulee.Controls.EUlHoriAlign.Right;
            this.voltTEdit.TextVAlign = Ulee.Controls.EUlVertAlign.Middle;
            // 
            // voltSigmaEdit
            // 
            this.voltSigmaEdit.BackColor = System.Drawing.Color.Black;
            this.voltSigmaEdit.BevelInner = Ulee.Controls.EUlBevelStyle.None;
            this.voltSigmaEdit.BevelOuter = Ulee.Controls.EUlBevelStyle.Lowered;
            this.voltSigmaEdit.Font = new System.Drawing.Font("Arial Rounded MT Bold", 20F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.voltSigmaEdit.ForeColor = System.Drawing.Color.Lime;
            this.voltSigmaEdit.InnerColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.voltSigmaEdit.InnerColor2 = System.Drawing.Color.White;
            this.voltSigmaEdit.Location = new System.Drawing.Point(288, 86);
            this.voltSigmaEdit.Name = "voltSigmaEdit";
            this.voltSigmaEdit.OuterColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.voltSigmaEdit.OuterColor2 = System.Drawing.Color.White;
            this.voltSigmaEdit.Size = new System.Drawing.Size(90, 48);
            this.voltSigmaEdit.Spacing = 0;
            this.voltSigmaEdit.TabIndex = 13;
            this.voltSigmaEdit.Text = "0.0";
            this.voltSigmaEdit.TextHAlign = Ulee.Controls.EUlHoriAlign.Right;
            this.voltSigmaEdit.TextVAlign = Ulee.Controls.EUlVertAlign.Middle;
            // 
            // ulPanel11
            // 
            this.ulPanel11.BackColor = System.Drawing.Color.Black;
            this.ulPanel11.BevelInner = Ulee.Controls.EUlBevelStyle.None;
            this.ulPanel11.BevelOuter = Ulee.Controls.EUlBevelStyle.Lowered;
            this.ulPanel11.Controls.Add(this.ulPanel1);
            this.ulPanel11.Font = new System.Drawing.Font("Arial Rounded MT Bold", 18F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.ulPanel11.ForeColor = System.Drawing.SystemColors.ControlText;
            this.ulPanel11.InnerColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.ulPanel11.InnerColor2 = System.Drawing.Color.White;
            this.ulPanel11.Location = new System.Drawing.Point(382, 86);
            this.ulPanel11.Name = "ulPanel11";
            this.ulPanel11.OuterColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.ulPanel11.OuterColor2 = System.Drawing.Color.White;
            this.ulPanel11.Size = new System.Drawing.Size(61, 48);
            this.ulPanel11.Spacing = 0;
            this.ulPanel11.TabIndex = 12;
            this.ulPanel11.TextHAlign = Ulee.Controls.EUlHoriAlign.Center;
            this.ulPanel11.TextVAlign = Ulee.Controls.EUlVertAlign.Middle;
            // 
            // ulPanel1
            // 
            this.ulPanel1.BackColor = System.Drawing.Color.Gray;
            this.ulPanel1.BevelInner = Ulee.Controls.EUlBevelStyle.None;
            this.ulPanel1.BevelOuter = Ulee.Controls.EUlBevelStyle.None;
            this.ulPanel1.Font = new System.Drawing.Font("Arial Rounded MT Bold", 18F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.ulPanel1.ForeColor = System.Drawing.Color.Yellow;
            this.ulPanel1.InnerColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.ulPanel1.InnerColor2 = System.Drawing.Color.White;
            this.ulPanel1.Location = new System.Drawing.Point(2, 2);
            this.ulPanel1.Name = "ulPanel1";
            this.ulPanel1.OuterColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.ulPanel1.OuterColor2 = System.Drawing.Color.White;
            this.ulPanel1.Size = new System.Drawing.Size(57, 44);
            this.ulPanel1.Spacing = 0;
            this.ulPanel1.TabIndex = 47;
            this.ulPanel1.Text = "V";
            this.ulPanel1.TextHAlign = Ulee.Controls.EUlHoriAlign.Center;
            this.ulPanel1.TextVAlign = Ulee.Controls.EUlVertAlign.Middle;
            // 
            // powerREdit
            // 
            this.powerREdit.BackColor = System.Drawing.Color.Black;
            this.powerREdit.BevelInner = Ulee.Controls.EUlBevelStyle.None;
            this.powerREdit.BevelOuter = Ulee.Controls.EUlBevelStyle.Lowered;
            this.powerREdit.Font = new System.Drawing.Font("Arial Rounded MT Bold", 20F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.powerREdit.ForeColor = System.Drawing.Color.Lime;
            this.powerREdit.InnerColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.powerREdit.InnerColor2 = System.Drawing.Color.White;
            this.powerREdit.Location = new System.Drawing.Point(6, 190);
            this.powerREdit.Name = "powerREdit";
            this.powerREdit.OuterColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.powerREdit.OuterColor2 = System.Drawing.Color.White;
            this.powerREdit.Size = new System.Drawing.Size(90, 48);
            this.powerREdit.Spacing = 0;
            this.powerREdit.TabIndex = 26;
            this.powerREdit.Text = "0.0";
            this.powerREdit.TextHAlign = Ulee.Controls.EUlHoriAlign.Right;
            this.powerREdit.TextVAlign = Ulee.Controls.EUlVertAlign.Middle;
            // 
            // powerSEdit
            // 
            this.powerSEdit.BackColor = System.Drawing.Color.Black;
            this.powerSEdit.BevelInner = Ulee.Controls.EUlBevelStyle.None;
            this.powerSEdit.BevelOuter = Ulee.Controls.EUlBevelStyle.Lowered;
            this.powerSEdit.Font = new System.Drawing.Font("Arial Rounded MT Bold", 20F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.powerSEdit.ForeColor = System.Drawing.Color.Lime;
            this.powerSEdit.InnerColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.powerSEdit.InnerColor2 = System.Drawing.Color.White;
            this.powerSEdit.Location = new System.Drawing.Point(100, 190);
            this.powerSEdit.Name = "powerSEdit";
            this.powerSEdit.OuterColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.powerSEdit.OuterColor2 = System.Drawing.Color.White;
            this.powerSEdit.Size = new System.Drawing.Size(90, 48);
            this.powerSEdit.Spacing = 0;
            this.powerSEdit.TabIndex = 25;
            this.powerSEdit.Text = "0.0";
            this.powerSEdit.TextHAlign = Ulee.Controls.EUlHoriAlign.Right;
            this.powerSEdit.TextVAlign = Ulee.Controls.EUlVertAlign.Middle;
            // 
            // powerTEdit
            // 
            this.powerTEdit.BackColor = System.Drawing.Color.Black;
            this.powerTEdit.BevelInner = Ulee.Controls.EUlBevelStyle.None;
            this.powerTEdit.BevelOuter = Ulee.Controls.EUlBevelStyle.Lowered;
            this.powerTEdit.Font = new System.Drawing.Font("Arial Rounded MT Bold", 20F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.powerTEdit.ForeColor = System.Drawing.Color.Lime;
            this.powerTEdit.InnerColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.powerTEdit.InnerColor2 = System.Drawing.Color.White;
            this.powerTEdit.Location = new System.Drawing.Point(194, 190);
            this.powerTEdit.Name = "powerTEdit";
            this.powerTEdit.OuterColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.powerTEdit.OuterColor2 = System.Drawing.Color.White;
            this.powerTEdit.Size = new System.Drawing.Size(90, 48);
            this.powerTEdit.Spacing = 0;
            this.powerTEdit.TabIndex = 24;
            this.powerTEdit.Text = "0.0";
            this.powerTEdit.TextHAlign = Ulee.Controls.EUlHoriAlign.Right;
            this.powerTEdit.TextVAlign = Ulee.Controls.EUlVertAlign.Middle;
            // 
            // powerSigmaEdit
            // 
            this.powerSigmaEdit.BackColor = System.Drawing.Color.Black;
            this.powerSigmaEdit.BevelInner = Ulee.Controls.EUlBevelStyle.None;
            this.powerSigmaEdit.BevelOuter = Ulee.Controls.EUlBevelStyle.Lowered;
            this.powerSigmaEdit.Font = new System.Drawing.Font("Arial Rounded MT Bold", 20F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.powerSigmaEdit.ForeColor = System.Drawing.Color.Lime;
            this.powerSigmaEdit.InnerColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.powerSigmaEdit.InnerColor2 = System.Drawing.Color.White;
            this.powerSigmaEdit.Location = new System.Drawing.Point(288, 190);
            this.powerSigmaEdit.Name = "powerSigmaEdit";
            this.powerSigmaEdit.OuterColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.powerSigmaEdit.OuterColor2 = System.Drawing.Color.White;
            this.powerSigmaEdit.Size = new System.Drawing.Size(90, 48);
            this.powerSigmaEdit.Spacing = 0;
            this.powerSigmaEdit.TabIndex = 23;
            this.powerSigmaEdit.Text = "0.0";
            this.powerSigmaEdit.TextHAlign = Ulee.Controls.EUlHoriAlign.Right;
            this.powerSigmaEdit.TextVAlign = Ulee.Controls.EUlVertAlign.Middle;
            // 
            // ulPanel16
            // 
            this.ulPanel16.BackColor = System.Drawing.Color.Black;
            this.ulPanel16.BevelInner = Ulee.Controls.EUlBevelStyle.None;
            this.ulPanel16.BevelOuter = Ulee.Controls.EUlBevelStyle.Lowered;
            this.ulPanel16.Controls.Add(this.ulPanel24);
            this.ulPanel16.Font = new System.Drawing.Font("Arial Rounded MT Bold", 18F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.ulPanel16.ForeColor = System.Drawing.SystemColors.ControlText;
            this.ulPanel16.InnerColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.ulPanel16.InnerColor2 = System.Drawing.Color.White;
            this.ulPanel16.Location = new System.Drawing.Point(382, 190);
            this.ulPanel16.Name = "ulPanel16";
            this.ulPanel16.OuterColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.ulPanel16.OuterColor2 = System.Drawing.Color.White;
            this.ulPanel16.Size = new System.Drawing.Size(61, 48);
            this.ulPanel16.Spacing = 0;
            this.ulPanel16.TabIndex = 22;
            this.ulPanel16.TextHAlign = Ulee.Controls.EUlHoriAlign.Center;
            this.ulPanel16.TextVAlign = Ulee.Controls.EUlVertAlign.Middle;
            // 
            // ulPanel24
            // 
            this.ulPanel24.BackColor = System.Drawing.Color.Gray;
            this.ulPanel24.BevelInner = Ulee.Controls.EUlBevelStyle.None;
            this.ulPanel24.BevelOuter = Ulee.Controls.EUlBevelStyle.None;
            this.ulPanel24.Font = new System.Drawing.Font("Arial Rounded MT Bold", 18F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.ulPanel24.ForeColor = System.Drawing.Color.Yellow;
            this.ulPanel24.InnerColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.ulPanel24.InnerColor2 = System.Drawing.Color.White;
            this.ulPanel24.Location = new System.Drawing.Point(2, 2);
            this.ulPanel24.Name = "ulPanel24";
            this.ulPanel24.OuterColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.ulPanel24.OuterColor2 = System.Drawing.Color.White;
            this.ulPanel24.Size = new System.Drawing.Size(57, 44);
            this.ulPanel24.Spacing = 0;
            this.ulPanel24.TabIndex = 48;
            this.ulPanel24.Text = "P";
            this.ulPanel24.TextHAlign = Ulee.Controls.EUlHoriAlign.Center;
            this.ulPanel24.TextVAlign = Ulee.Controls.EUlVertAlign.Middle;
            // 
            // currentREdit
            // 
            this.currentREdit.BackColor = System.Drawing.Color.Black;
            this.currentREdit.BevelInner = Ulee.Controls.EUlBevelStyle.None;
            this.currentREdit.BevelOuter = Ulee.Controls.EUlBevelStyle.Lowered;
            this.currentREdit.Font = new System.Drawing.Font("Arial Rounded MT Bold", 20F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.currentREdit.ForeColor = System.Drawing.Color.Lime;
            this.currentREdit.InnerColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.currentREdit.InnerColor2 = System.Drawing.Color.White;
            this.currentREdit.Location = new System.Drawing.Point(6, 138);
            this.currentREdit.Name = "currentREdit";
            this.currentREdit.OuterColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.currentREdit.OuterColor2 = System.Drawing.Color.White;
            this.currentREdit.Size = new System.Drawing.Size(90, 48);
            this.currentREdit.Spacing = 0;
            this.currentREdit.TabIndex = 21;
            this.currentREdit.Text = "0.0";
            this.currentREdit.TextHAlign = Ulee.Controls.EUlHoriAlign.Right;
            this.currentREdit.TextVAlign = Ulee.Controls.EUlVertAlign.Middle;
            // 
            // currentSEdit
            // 
            this.currentSEdit.BackColor = System.Drawing.Color.Black;
            this.currentSEdit.BevelInner = Ulee.Controls.EUlBevelStyle.None;
            this.currentSEdit.BevelOuter = Ulee.Controls.EUlBevelStyle.Lowered;
            this.currentSEdit.Font = new System.Drawing.Font("Arial Rounded MT Bold", 20F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.currentSEdit.ForeColor = System.Drawing.Color.Lime;
            this.currentSEdit.InnerColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.currentSEdit.InnerColor2 = System.Drawing.Color.White;
            this.currentSEdit.Location = new System.Drawing.Point(100, 138);
            this.currentSEdit.Name = "currentSEdit";
            this.currentSEdit.OuterColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.currentSEdit.OuterColor2 = System.Drawing.Color.White;
            this.currentSEdit.Size = new System.Drawing.Size(90, 48);
            this.currentSEdit.Spacing = 0;
            this.currentSEdit.TabIndex = 20;
            this.currentSEdit.Text = "0.0";
            this.currentSEdit.TextHAlign = Ulee.Controls.EUlHoriAlign.Right;
            this.currentSEdit.TextVAlign = Ulee.Controls.EUlVertAlign.Middle;
            // 
            // currentTEdit
            // 
            this.currentTEdit.BackColor = System.Drawing.Color.Black;
            this.currentTEdit.BevelInner = Ulee.Controls.EUlBevelStyle.None;
            this.currentTEdit.BevelOuter = Ulee.Controls.EUlBevelStyle.Lowered;
            this.currentTEdit.Font = new System.Drawing.Font("Arial Rounded MT Bold", 20F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.currentTEdit.ForeColor = System.Drawing.Color.Lime;
            this.currentTEdit.InnerColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.currentTEdit.InnerColor2 = System.Drawing.Color.White;
            this.currentTEdit.Location = new System.Drawing.Point(194, 138);
            this.currentTEdit.Name = "currentTEdit";
            this.currentTEdit.OuterColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.currentTEdit.OuterColor2 = System.Drawing.Color.White;
            this.currentTEdit.Size = new System.Drawing.Size(90, 48);
            this.currentTEdit.Spacing = 0;
            this.currentTEdit.TabIndex = 19;
            this.currentTEdit.Text = "0.0";
            this.currentTEdit.TextHAlign = Ulee.Controls.EUlHoriAlign.Right;
            this.currentTEdit.TextVAlign = Ulee.Controls.EUlVertAlign.Middle;
            // 
            // currentSigmaEdit
            // 
            this.currentSigmaEdit.BackColor = System.Drawing.Color.Black;
            this.currentSigmaEdit.BevelInner = Ulee.Controls.EUlBevelStyle.None;
            this.currentSigmaEdit.BevelOuter = Ulee.Controls.EUlBevelStyle.Lowered;
            this.currentSigmaEdit.Font = new System.Drawing.Font("Arial Rounded MT Bold", 20F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.currentSigmaEdit.ForeColor = System.Drawing.Color.Lime;
            this.currentSigmaEdit.InnerColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.currentSigmaEdit.InnerColor2 = System.Drawing.Color.White;
            this.currentSigmaEdit.Location = new System.Drawing.Point(288, 138);
            this.currentSigmaEdit.Name = "currentSigmaEdit";
            this.currentSigmaEdit.OuterColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.currentSigmaEdit.OuterColor2 = System.Drawing.Color.White;
            this.currentSigmaEdit.Size = new System.Drawing.Size(90, 48);
            this.currentSigmaEdit.Spacing = 0;
            this.currentSigmaEdit.TabIndex = 18;
            this.currentSigmaEdit.Text = "0.0";
            this.currentSigmaEdit.TextHAlign = Ulee.Controls.EUlHoriAlign.Right;
            this.currentSigmaEdit.TextVAlign = Ulee.Controls.EUlVertAlign.Middle;
            // 
            // ulPanel21
            // 
            this.ulPanel21.BackColor = System.Drawing.Color.Black;
            this.ulPanel21.BevelInner = Ulee.Controls.EUlBevelStyle.None;
            this.ulPanel21.BevelOuter = Ulee.Controls.EUlBevelStyle.Lowered;
            this.ulPanel21.Controls.Add(this.ulPanel23);
            this.ulPanel21.Font = new System.Drawing.Font("Arial Rounded MT Bold", 18F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.ulPanel21.ForeColor = System.Drawing.SystemColors.ControlText;
            this.ulPanel21.InnerColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.ulPanel21.InnerColor2 = System.Drawing.Color.White;
            this.ulPanel21.Location = new System.Drawing.Point(382, 138);
            this.ulPanel21.Name = "ulPanel21";
            this.ulPanel21.OuterColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.ulPanel21.OuterColor2 = System.Drawing.Color.White;
            this.ulPanel21.Size = new System.Drawing.Size(61, 48);
            this.ulPanel21.Spacing = 0;
            this.ulPanel21.TabIndex = 17;
            this.ulPanel21.TextHAlign = Ulee.Controls.EUlHoriAlign.Center;
            this.ulPanel21.TextVAlign = Ulee.Controls.EUlVertAlign.Middle;
            // 
            // ulPanel23
            // 
            this.ulPanel23.BackColor = System.Drawing.Color.Gray;
            this.ulPanel23.BevelInner = Ulee.Controls.EUlBevelStyle.None;
            this.ulPanel23.BevelOuter = Ulee.Controls.EUlBevelStyle.None;
            this.ulPanel23.Font = new System.Drawing.Font("Arial Rounded MT Bold", 18F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.ulPanel23.ForeColor = System.Drawing.Color.Yellow;
            this.ulPanel23.InnerColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.ulPanel23.InnerColor2 = System.Drawing.Color.White;
            this.ulPanel23.Location = new System.Drawing.Point(2, 2);
            this.ulPanel23.Name = "ulPanel23";
            this.ulPanel23.OuterColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.ulPanel23.OuterColor2 = System.Drawing.Color.White;
            this.ulPanel23.Size = new System.Drawing.Size(57, 44);
            this.ulPanel23.Spacing = 0;
            this.ulPanel23.TabIndex = 48;
            this.ulPanel23.Text = "A";
            this.ulPanel23.TextHAlign = Ulee.Controls.EUlHoriAlign.Center;
            this.ulPanel23.TextVAlign = Ulee.Controls.EUlVertAlign.Middle;
            // 
            // integTimeEdit
            // 
            this.integTimeEdit.BackColor = System.Drawing.Color.Black;
            this.integTimeEdit.BevelInner = Ulee.Controls.EUlBevelStyle.None;
            this.integTimeEdit.BevelOuter = Ulee.Controls.EUlBevelStyle.Lowered;
            this.integTimeEdit.Font = new System.Drawing.Font("Arial Rounded MT Bold", 20F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.integTimeEdit.ForeColor = System.Drawing.Color.Lime;
            this.integTimeEdit.InnerColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.integTimeEdit.InnerColor2 = System.Drawing.Color.White;
            this.integTimeEdit.Location = new System.Drawing.Point(6, 398);
            this.integTimeEdit.Name = "integTimeEdit";
            this.integTimeEdit.OuterColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.integTimeEdit.OuterColor2 = System.Drawing.Color.White;
            this.integTimeEdit.Size = new System.Drawing.Size(372, 50);
            this.integTimeEdit.Spacing = 0;
            this.integTimeEdit.TabIndex = 46;
            this.integTimeEdit.Text = "0";
            this.integTimeEdit.TextHAlign = Ulee.Controls.EUlHoriAlign.Center;
            this.integTimeEdit.TextVAlign = Ulee.Controls.EUlVertAlign.Middle;
            // 
            // ulPanel26
            // 
            this.ulPanel26.BackColor = System.Drawing.Color.Black;
            this.ulPanel26.BevelInner = Ulee.Controls.EUlBevelStyle.None;
            this.ulPanel26.BevelOuter = Ulee.Controls.EUlBevelStyle.Lowered;
            this.ulPanel26.Controls.Add(this.ulPanel44);
            this.ulPanel26.Font = new System.Drawing.Font("Arial Rounded MT Bold", 18F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.ulPanel26.ForeColor = System.Drawing.SystemColors.ControlText;
            this.ulPanel26.InnerColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.ulPanel26.InnerColor2 = System.Drawing.Color.White;
            this.ulPanel26.Location = new System.Drawing.Point(382, 398);
            this.ulPanel26.Name = "ulPanel26";
            this.ulPanel26.OuterColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.ulPanel26.OuterColor2 = System.Drawing.Color.White;
            this.ulPanel26.Size = new System.Drawing.Size(61, 50);
            this.ulPanel26.Spacing = 0;
            this.ulPanel26.TabIndex = 42;
            this.ulPanel26.TextHAlign = Ulee.Controls.EUlHoriAlign.Center;
            this.ulPanel26.TextVAlign = Ulee.Controls.EUlVertAlign.Middle;
            // 
            // ulPanel44
            // 
            this.ulPanel44.BackColor = System.Drawing.Color.Gray;
            this.ulPanel44.BevelInner = Ulee.Controls.EUlBevelStyle.None;
            this.ulPanel44.BevelOuter = Ulee.Controls.EUlBevelStyle.None;
            this.ulPanel44.Font = new System.Drawing.Font("Arial Rounded MT Bold", 18F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.ulPanel44.ForeColor = System.Drawing.Color.Yellow;
            this.ulPanel44.InnerColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.ulPanel44.InnerColor2 = System.Drawing.Color.White;
            this.ulPanel44.Location = new System.Drawing.Point(2, 2);
            this.ulPanel44.Name = "ulPanel44";
            this.ulPanel44.OuterColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.ulPanel44.OuterColor2 = System.Drawing.Color.White;
            this.ulPanel44.Size = new System.Drawing.Size(57, 46);
            this.ulPanel44.Spacing = 0;
            this.ulPanel44.TabIndex = 48;
            this.ulPanel44.Text = "sec";
            this.ulPanel44.TextHAlign = Ulee.Controls.EUlHoriAlign.Center;
            this.ulPanel44.TextVAlign = Ulee.Controls.EUlVertAlign.Middle;
            // 
            // whREdit
            // 
            this.whREdit.BackColor = System.Drawing.Color.Black;
            this.whREdit.BevelInner = Ulee.Controls.EUlBevelStyle.None;
            this.whREdit.BevelOuter = Ulee.Controls.EUlBevelStyle.Lowered;
            this.whREdit.Font = new System.Drawing.Font("Arial Rounded MT Bold", 20F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.whREdit.ForeColor = System.Drawing.Color.Lime;
            this.whREdit.InnerColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.whREdit.InnerColor2 = System.Drawing.Color.White;
            this.whREdit.Location = new System.Drawing.Point(6, 346);
            this.whREdit.Name = "whREdit";
            this.whREdit.OuterColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.whREdit.OuterColor2 = System.Drawing.Color.White;
            this.whREdit.Size = new System.Drawing.Size(90, 48);
            this.whREdit.Spacing = 0;
            this.whREdit.TabIndex = 41;
            this.whREdit.Text = "0.0";
            this.whREdit.TextHAlign = Ulee.Controls.EUlHoriAlign.Right;
            this.whREdit.TextVAlign = Ulee.Controls.EUlVertAlign.Middle;
            // 
            // whSEdit
            // 
            this.whSEdit.BackColor = System.Drawing.Color.Black;
            this.whSEdit.BevelInner = Ulee.Controls.EUlBevelStyle.None;
            this.whSEdit.BevelOuter = Ulee.Controls.EUlBevelStyle.Lowered;
            this.whSEdit.Font = new System.Drawing.Font("Arial Rounded MT Bold", 20F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.whSEdit.ForeColor = System.Drawing.Color.Lime;
            this.whSEdit.InnerColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.whSEdit.InnerColor2 = System.Drawing.Color.White;
            this.whSEdit.Location = new System.Drawing.Point(100, 346);
            this.whSEdit.Name = "whSEdit";
            this.whSEdit.OuterColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.whSEdit.OuterColor2 = System.Drawing.Color.White;
            this.whSEdit.Size = new System.Drawing.Size(90, 48);
            this.whSEdit.Spacing = 0;
            this.whSEdit.TabIndex = 40;
            this.whSEdit.Text = "0.0";
            this.whSEdit.TextHAlign = Ulee.Controls.EUlHoriAlign.Right;
            this.whSEdit.TextVAlign = Ulee.Controls.EUlVertAlign.Middle;
            // 
            // whTEdit
            // 
            this.whTEdit.BackColor = System.Drawing.Color.Black;
            this.whTEdit.BevelInner = Ulee.Controls.EUlBevelStyle.None;
            this.whTEdit.BevelOuter = Ulee.Controls.EUlBevelStyle.Lowered;
            this.whTEdit.Font = new System.Drawing.Font("Arial Rounded MT Bold", 20F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.whTEdit.ForeColor = System.Drawing.Color.Lime;
            this.whTEdit.InnerColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.whTEdit.InnerColor2 = System.Drawing.Color.White;
            this.whTEdit.Location = new System.Drawing.Point(194, 346);
            this.whTEdit.Name = "whTEdit";
            this.whTEdit.OuterColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.whTEdit.OuterColor2 = System.Drawing.Color.White;
            this.whTEdit.Size = new System.Drawing.Size(90, 48);
            this.whTEdit.Spacing = 0;
            this.whTEdit.TabIndex = 39;
            this.whTEdit.Text = "0.0";
            this.whTEdit.TextHAlign = Ulee.Controls.EUlHoriAlign.Right;
            this.whTEdit.TextVAlign = Ulee.Controls.EUlVertAlign.Middle;
            // 
            // whSigmaEdit
            // 
            this.whSigmaEdit.BackColor = System.Drawing.Color.Black;
            this.whSigmaEdit.BevelInner = Ulee.Controls.EUlBevelStyle.None;
            this.whSigmaEdit.BevelOuter = Ulee.Controls.EUlBevelStyle.Lowered;
            this.whSigmaEdit.Font = new System.Drawing.Font("Arial Rounded MT Bold", 20F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.whSigmaEdit.ForeColor = System.Drawing.Color.Lime;
            this.whSigmaEdit.InnerColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.whSigmaEdit.InnerColor2 = System.Drawing.Color.White;
            this.whSigmaEdit.Location = new System.Drawing.Point(288, 346);
            this.whSigmaEdit.Name = "whSigmaEdit";
            this.whSigmaEdit.OuterColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.whSigmaEdit.OuterColor2 = System.Drawing.Color.White;
            this.whSigmaEdit.Size = new System.Drawing.Size(90, 48);
            this.whSigmaEdit.Spacing = 0;
            this.whSigmaEdit.TabIndex = 38;
            this.whSigmaEdit.Text = "0.0";
            this.whSigmaEdit.TextHAlign = Ulee.Controls.EUlHoriAlign.Right;
            this.whSigmaEdit.TextVAlign = Ulee.Controls.EUlVertAlign.Middle;
            // 
            // ulPanel31
            // 
            this.ulPanel31.BackColor = System.Drawing.Color.Black;
            this.ulPanel31.BevelInner = Ulee.Controls.EUlBevelStyle.None;
            this.ulPanel31.BevelOuter = Ulee.Controls.EUlBevelStyle.Lowered;
            this.ulPanel31.Controls.Add(this.ulPanel43);
            this.ulPanel31.Font = new System.Drawing.Font("Arial Rounded MT Bold", 18F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.ulPanel31.ForeColor = System.Drawing.SystemColors.ControlText;
            this.ulPanel31.InnerColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.ulPanel31.InnerColor2 = System.Drawing.Color.White;
            this.ulPanel31.Location = new System.Drawing.Point(382, 346);
            this.ulPanel31.Name = "ulPanel31";
            this.ulPanel31.OuterColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.ulPanel31.OuterColor2 = System.Drawing.Color.White;
            this.ulPanel31.Size = new System.Drawing.Size(61, 48);
            this.ulPanel31.Spacing = 0;
            this.ulPanel31.TabIndex = 37;
            this.ulPanel31.TextHAlign = Ulee.Controls.EUlHoriAlign.Center;
            this.ulPanel31.TextVAlign = Ulee.Controls.EUlVertAlign.Middle;
            // 
            // ulPanel43
            // 
            this.ulPanel43.BackColor = System.Drawing.Color.Gray;
            this.ulPanel43.BevelInner = Ulee.Controls.EUlBevelStyle.None;
            this.ulPanel43.BevelOuter = Ulee.Controls.EUlBevelStyle.None;
            this.ulPanel43.Font = new System.Drawing.Font("Arial Rounded MT Bold", 18F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.ulPanel43.ForeColor = System.Drawing.Color.Yellow;
            this.ulPanel43.InnerColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.ulPanel43.InnerColor2 = System.Drawing.Color.White;
            this.ulPanel43.Location = new System.Drawing.Point(2, 2);
            this.ulPanel43.Name = "ulPanel43";
            this.ulPanel43.OuterColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.ulPanel43.OuterColor2 = System.Drawing.Color.White;
            this.ulPanel43.Size = new System.Drawing.Size(57, 44);
            this.ulPanel43.Spacing = 0;
            this.ulPanel43.TabIndex = 48;
            this.ulPanel43.Text = "Wh";
            this.ulPanel43.TextHAlign = Ulee.Controls.EUlHoriAlign.Center;
            this.ulPanel43.TextVAlign = Ulee.Controls.EUlVertAlign.Middle;
            // 
            // pfREdit
            // 
            this.pfREdit.BackColor = System.Drawing.Color.Black;
            this.pfREdit.BevelInner = Ulee.Controls.EUlBevelStyle.None;
            this.pfREdit.BevelOuter = Ulee.Controls.EUlBevelStyle.Lowered;
            this.pfREdit.Font = new System.Drawing.Font("Arial Rounded MT Bold", 20F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.pfREdit.ForeColor = System.Drawing.Color.Lime;
            this.pfREdit.InnerColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.pfREdit.InnerColor2 = System.Drawing.Color.White;
            this.pfREdit.Location = new System.Drawing.Point(6, 294);
            this.pfREdit.Name = "pfREdit";
            this.pfREdit.OuterColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.pfREdit.OuterColor2 = System.Drawing.Color.White;
            this.pfREdit.Size = new System.Drawing.Size(90, 48);
            this.pfREdit.Spacing = 0;
            this.pfREdit.TabIndex = 36;
            this.pfREdit.Text = "0.0";
            this.pfREdit.TextHAlign = Ulee.Controls.EUlHoriAlign.Right;
            this.pfREdit.TextVAlign = Ulee.Controls.EUlVertAlign.Middle;
            // 
            // pfSEdit
            // 
            this.pfSEdit.BackColor = System.Drawing.Color.Black;
            this.pfSEdit.BevelInner = Ulee.Controls.EUlBevelStyle.None;
            this.pfSEdit.BevelOuter = Ulee.Controls.EUlBevelStyle.Lowered;
            this.pfSEdit.Font = new System.Drawing.Font("Arial Rounded MT Bold", 20F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.pfSEdit.ForeColor = System.Drawing.Color.Lime;
            this.pfSEdit.InnerColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.pfSEdit.InnerColor2 = System.Drawing.Color.White;
            this.pfSEdit.Location = new System.Drawing.Point(100, 294);
            this.pfSEdit.Name = "pfSEdit";
            this.pfSEdit.OuterColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.pfSEdit.OuterColor2 = System.Drawing.Color.White;
            this.pfSEdit.Size = new System.Drawing.Size(90, 48);
            this.pfSEdit.Spacing = 0;
            this.pfSEdit.TabIndex = 35;
            this.pfSEdit.Text = "0.0";
            this.pfSEdit.TextHAlign = Ulee.Controls.EUlHoriAlign.Right;
            this.pfSEdit.TextVAlign = Ulee.Controls.EUlVertAlign.Middle;
            // 
            // pfTEdit
            // 
            this.pfTEdit.BackColor = System.Drawing.Color.Black;
            this.pfTEdit.BevelInner = Ulee.Controls.EUlBevelStyle.None;
            this.pfTEdit.BevelOuter = Ulee.Controls.EUlBevelStyle.Lowered;
            this.pfTEdit.Font = new System.Drawing.Font("Arial Rounded MT Bold", 20F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.pfTEdit.ForeColor = System.Drawing.Color.Lime;
            this.pfTEdit.InnerColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.pfTEdit.InnerColor2 = System.Drawing.Color.White;
            this.pfTEdit.Location = new System.Drawing.Point(194, 294);
            this.pfTEdit.Name = "pfTEdit";
            this.pfTEdit.OuterColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.pfTEdit.OuterColor2 = System.Drawing.Color.White;
            this.pfTEdit.Size = new System.Drawing.Size(90, 48);
            this.pfTEdit.Spacing = 0;
            this.pfTEdit.TabIndex = 34;
            this.pfTEdit.Text = "0.0";
            this.pfTEdit.TextHAlign = Ulee.Controls.EUlHoriAlign.Right;
            this.pfTEdit.TextVAlign = Ulee.Controls.EUlVertAlign.Middle;
            // 
            // pfSigmaEdit
            // 
            this.pfSigmaEdit.BackColor = System.Drawing.Color.Black;
            this.pfSigmaEdit.BevelInner = Ulee.Controls.EUlBevelStyle.None;
            this.pfSigmaEdit.BevelOuter = Ulee.Controls.EUlBevelStyle.Lowered;
            this.pfSigmaEdit.Font = new System.Drawing.Font("Arial Rounded MT Bold", 20F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.pfSigmaEdit.ForeColor = System.Drawing.Color.Lime;
            this.pfSigmaEdit.InnerColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.pfSigmaEdit.InnerColor2 = System.Drawing.Color.White;
            this.pfSigmaEdit.Location = new System.Drawing.Point(288, 294);
            this.pfSigmaEdit.Name = "pfSigmaEdit";
            this.pfSigmaEdit.OuterColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.pfSigmaEdit.OuterColor2 = System.Drawing.Color.White;
            this.pfSigmaEdit.Size = new System.Drawing.Size(90, 48);
            this.pfSigmaEdit.Spacing = 0;
            this.pfSigmaEdit.TabIndex = 33;
            this.pfSigmaEdit.Text = "0.0";
            this.pfSigmaEdit.TextHAlign = Ulee.Controls.EUlHoriAlign.Right;
            this.pfSigmaEdit.TextVAlign = Ulee.Controls.EUlVertAlign.Middle;
            // 
            // ulPanel36
            // 
            this.ulPanel36.BackColor = System.Drawing.Color.Black;
            this.ulPanel36.BevelInner = Ulee.Controls.EUlBevelStyle.None;
            this.ulPanel36.BevelOuter = Ulee.Controls.EUlBevelStyle.Lowered;
            this.ulPanel36.Controls.Add(this.ulPanel42);
            this.ulPanel36.Font = new System.Drawing.Font("Arial Rounded MT Bold", 18F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.ulPanel36.ForeColor = System.Drawing.SystemColors.ControlText;
            this.ulPanel36.InnerColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.ulPanel36.InnerColor2 = System.Drawing.Color.White;
            this.ulPanel36.Location = new System.Drawing.Point(382, 294);
            this.ulPanel36.Name = "ulPanel36";
            this.ulPanel36.OuterColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.ulPanel36.OuterColor2 = System.Drawing.Color.White;
            this.ulPanel36.Size = new System.Drawing.Size(61, 48);
            this.ulPanel36.Spacing = 0;
            this.ulPanel36.TabIndex = 32;
            this.ulPanel36.TextHAlign = Ulee.Controls.EUlHoriAlign.Center;
            this.ulPanel36.TextVAlign = Ulee.Controls.EUlVertAlign.Middle;
            // 
            // ulPanel42
            // 
            this.ulPanel42.BackColor = System.Drawing.Color.Gray;
            this.ulPanel42.BevelInner = Ulee.Controls.EUlBevelStyle.None;
            this.ulPanel42.BevelOuter = Ulee.Controls.EUlBevelStyle.None;
            this.ulPanel42.Font = new System.Drawing.Font("Arial Rounded MT Bold", 18F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.ulPanel42.ForeColor = System.Drawing.Color.Yellow;
            this.ulPanel42.InnerColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.ulPanel42.InnerColor2 = System.Drawing.Color.White;
            this.ulPanel42.Location = new System.Drawing.Point(2, 2);
            this.ulPanel42.Name = "ulPanel42";
            this.ulPanel42.OuterColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.ulPanel42.OuterColor2 = System.Drawing.Color.White;
            this.ulPanel42.Size = new System.Drawing.Size(57, 44);
            this.ulPanel42.Spacing = 0;
            this.ulPanel42.TabIndex = 48;
            this.ulPanel42.Text = "PF";
            this.ulPanel42.TextHAlign = Ulee.Controls.EUlHoriAlign.Center;
            this.ulPanel42.TextVAlign = Ulee.Controls.EUlVertAlign.Middle;
            // 
            // hzREdit
            // 
            this.hzREdit.BackColor = System.Drawing.Color.Black;
            this.hzREdit.BevelInner = Ulee.Controls.EUlBevelStyle.None;
            this.hzREdit.BevelOuter = Ulee.Controls.EUlBevelStyle.Lowered;
            this.hzREdit.Font = new System.Drawing.Font("Arial Rounded MT Bold", 20F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.hzREdit.ForeColor = System.Drawing.Color.Lime;
            this.hzREdit.InnerColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.hzREdit.InnerColor2 = System.Drawing.Color.White;
            this.hzREdit.Location = new System.Drawing.Point(6, 242);
            this.hzREdit.Name = "hzREdit";
            this.hzREdit.OuterColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.hzREdit.OuterColor2 = System.Drawing.Color.White;
            this.hzREdit.Size = new System.Drawing.Size(90, 48);
            this.hzREdit.Spacing = 0;
            this.hzREdit.TabIndex = 31;
            this.hzREdit.Text = "0.0";
            this.hzREdit.TextHAlign = Ulee.Controls.EUlHoriAlign.Right;
            this.hzREdit.TextVAlign = Ulee.Controls.EUlVertAlign.Middle;
            // 
            // hzSEdit
            // 
            this.hzSEdit.BackColor = System.Drawing.Color.Black;
            this.hzSEdit.BevelInner = Ulee.Controls.EUlBevelStyle.None;
            this.hzSEdit.BevelOuter = Ulee.Controls.EUlBevelStyle.Lowered;
            this.hzSEdit.Font = new System.Drawing.Font("Arial Rounded MT Bold", 20F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.hzSEdit.ForeColor = System.Drawing.Color.Lime;
            this.hzSEdit.InnerColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.hzSEdit.InnerColor2 = System.Drawing.Color.White;
            this.hzSEdit.Location = new System.Drawing.Point(100, 242);
            this.hzSEdit.Name = "hzSEdit";
            this.hzSEdit.OuterColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.hzSEdit.OuterColor2 = System.Drawing.Color.White;
            this.hzSEdit.Size = new System.Drawing.Size(90, 48);
            this.hzSEdit.Spacing = 0;
            this.hzSEdit.TabIndex = 30;
            this.hzSEdit.Text = "0.0";
            this.hzSEdit.TextHAlign = Ulee.Controls.EUlHoriAlign.Right;
            this.hzSEdit.TextVAlign = Ulee.Controls.EUlVertAlign.Middle;
            // 
            // hzTEdit
            // 
            this.hzTEdit.BackColor = System.Drawing.Color.Black;
            this.hzTEdit.BevelInner = Ulee.Controls.EUlBevelStyle.None;
            this.hzTEdit.BevelOuter = Ulee.Controls.EUlBevelStyle.Lowered;
            this.hzTEdit.Font = new System.Drawing.Font("Arial Rounded MT Bold", 20F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.hzTEdit.ForeColor = System.Drawing.Color.Lime;
            this.hzTEdit.InnerColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.hzTEdit.InnerColor2 = System.Drawing.Color.White;
            this.hzTEdit.Location = new System.Drawing.Point(194, 242);
            this.hzTEdit.Name = "hzTEdit";
            this.hzTEdit.OuterColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.hzTEdit.OuterColor2 = System.Drawing.Color.White;
            this.hzTEdit.Size = new System.Drawing.Size(90, 48);
            this.hzTEdit.Spacing = 0;
            this.hzTEdit.TabIndex = 29;
            this.hzTEdit.Text = "0.0";
            this.hzTEdit.TextHAlign = Ulee.Controls.EUlHoriAlign.Right;
            this.hzTEdit.TextVAlign = Ulee.Controls.EUlVertAlign.Middle;
            // 
            // hzSigmaEdit
            // 
            this.hzSigmaEdit.BackColor = System.Drawing.Color.Black;
            this.hzSigmaEdit.BevelInner = Ulee.Controls.EUlBevelStyle.None;
            this.hzSigmaEdit.BevelOuter = Ulee.Controls.EUlBevelStyle.Lowered;
            this.hzSigmaEdit.Font = new System.Drawing.Font("Arial Rounded MT Bold", 20F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.hzSigmaEdit.ForeColor = System.Drawing.Color.Lime;
            this.hzSigmaEdit.InnerColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.hzSigmaEdit.InnerColor2 = System.Drawing.Color.White;
            this.hzSigmaEdit.Location = new System.Drawing.Point(288, 242);
            this.hzSigmaEdit.Name = "hzSigmaEdit";
            this.hzSigmaEdit.OuterColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.hzSigmaEdit.OuterColor2 = System.Drawing.Color.White;
            this.hzSigmaEdit.Size = new System.Drawing.Size(90, 48);
            this.hzSigmaEdit.Spacing = 0;
            this.hzSigmaEdit.TabIndex = 28;
            this.hzSigmaEdit.Text = "0.0";
            this.hzSigmaEdit.TextHAlign = Ulee.Controls.EUlHoriAlign.Right;
            this.hzSigmaEdit.TextVAlign = Ulee.Controls.EUlVertAlign.Middle;
            // 
            // ulPanel41
            // 
            this.ulPanel41.BackColor = System.Drawing.Color.Black;
            this.ulPanel41.BevelInner = Ulee.Controls.EUlBevelStyle.None;
            this.ulPanel41.BevelOuter = Ulee.Controls.EUlBevelStyle.Lowered;
            this.ulPanel41.Controls.Add(this.ulPanel25);
            this.ulPanel41.Font = new System.Drawing.Font("Arial Rounded MT Bold", 18F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.ulPanel41.ForeColor = System.Drawing.SystemColors.ControlText;
            this.ulPanel41.InnerColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.ulPanel41.InnerColor2 = System.Drawing.Color.White;
            this.ulPanel41.Location = new System.Drawing.Point(382, 242);
            this.ulPanel41.Name = "ulPanel41";
            this.ulPanel41.OuterColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.ulPanel41.OuterColor2 = System.Drawing.Color.White;
            this.ulPanel41.Size = new System.Drawing.Size(61, 48);
            this.ulPanel41.Spacing = 0;
            this.ulPanel41.TabIndex = 27;
            this.ulPanel41.TextHAlign = Ulee.Controls.EUlHoriAlign.Center;
            this.ulPanel41.TextVAlign = Ulee.Controls.EUlVertAlign.Middle;
            // 
            // ulPanel25
            // 
            this.ulPanel25.BackColor = System.Drawing.Color.Gray;
            this.ulPanel25.BevelInner = Ulee.Controls.EUlBevelStyle.None;
            this.ulPanel25.BevelOuter = Ulee.Controls.EUlBevelStyle.None;
            this.ulPanel25.Font = new System.Drawing.Font("Arial Rounded MT Bold", 18F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.ulPanel25.ForeColor = System.Drawing.Color.Yellow;
            this.ulPanel25.InnerColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.ulPanel25.InnerColor2 = System.Drawing.Color.White;
            this.ulPanel25.Location = new System.Drawing.Point(2, 2);
            this.ulPanel25.Name = "ulPanel25";
            this.ulPanel25.OuterColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.ulPanel25.OuterColor2 = System.Drawing.Color.White;
            this.ulPanel25.Size = new System.Drawing.Size(57, 44);
            this.ulPanel25.Spacing = 0;
            this.ulPanel25.TabIndex = 48;
            this.ulPanel25.Text = "Hz";
            this.ulPanel25.TextHAlign = Ulee.Controls.EUlHoriAlign.Center;
            this.ulPanel25.TextVAlign = Ulee.Controls.EUlVertAlign.Middle;
            // 
            // ulPanel45
            // 
            this.ulPanel45.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(78)))), ((int)(((byte)(152)))));
            this.ulPanel45.BevelInner = Ulee.Controls.EUlBevelStyle.None;
            this.ulPanel45.BevelOuter = Ulee.Controls.EUlBevelStyle.None;
            this.ulPanel45.Font = new System.Drawing.Font("Arial Rounded MT Bold", 18F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.ulPanel45.ForeColor = System.Drawing.Color.White;
            this.ulPanel45.InnerColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.ulPanel45.InnerColor2 = System.Drawing.Color.White;
            this.ulPanel45.Location = new System.Drawing.Point(382, 40);
            this.ulPanel45.Name = "ulPanel45";
            this.ulPanel45.OuterColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            this.ulPanel45.OuterColor2 = System.Drawing.Color.White;
            this.ulPanel45.Size = new System.Drawing.Size(61, 42);
            this.ulPanel45.Spacing = 0;
            this.ulPanel45.TabIndex = 47;
            this.ulPanel45.Text = "Unit";
            this.ulPanel45.TextHAlign = Ulee.Controls.EUlHoriAlign.Center;
            this.ulPanel45.TextVAlign = Ulee.Controls.EUlVertAlign.Middle;
            // 
            // CtrlPowerMeterView
            // 
            this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            this.Name = "CtrlPowerMeterView";
            this.Size = new System.Drawing.Size(449, 454);
            this.bgPanel.ResumeLayout(false);
            this.ulPanel11.ResumeLayout(false);
            this.ulPanel16.ResumeLayout(false);
            this.ulPanel21.ResumeLayout(false);
            this.ulPanel26.ResumeLayout(false);
            this.ulPanel31.ResumeLayout(false);
            this.ulPanel36.ResumeLayout(false);
            this.ulPanel41.ResumeLayout(false);
            this.ResumeLayout(false);
            this.PerformLayout();

        }

    #endregion

    private Ulee.Controls.UlPanel titleEdit;
    private Ulee.Controls.UlPanel ulPanel45;
    private Ulee.Controls.UlPanel integTimeEdit;
    private Ulee.Controls.UlPanel ulPanel26;
    private Ulee.Controls.UlPanel ulPanel44;
    private Ulee.Controls.UlPanel whREdit;
    private Ulee.Controls.UlPanel whSEdit;
    private Ulee.Controls.UlPanel whTEdit;
    private Ulee.Controls.UlPanel whSigmaEdit;
    private Ulee.Controls.UlPanel ulPanel31;
    private Ulee.Controls.UlPanel ulPanel43;
    private Ulee.Controls.UlPanel pfREdit;
    private Ulee.Controls.UlPanel pfSEdit;
    private Ulee.Controls.UlPanel pfTEdit;
    private Ulee.Controls.UlPanel pfSigmaEdit;
    private Ulee.Controls.UlPanel ulPanel36;
    private Ulee.Controls.UlPanel ulPanel42;
    private Ulee.Controls.UlPanel hzREdit;
    private Ulee.Controls.UlPanel hzSEdit;
    private Ulee.Controls.UlPanel hzTEdit;
    private Ulee.Controls.UlPanel hzSigmaEdit;
    private Ulee.Controls.UlPanel ulPanel41;
    private Ulee.Controls.UlPanel ulPanel25;
    private Ulee.Controls.UlPanel powerREdit;
    private Ulee.Controls.UlPanel powerSEdit;
    private Ulee.Controls.UlPanel powerTEdit;
    private Ulee.Controls.UlPanel powerSigmaEdit;
    private Ulee.Controls.UlPanel ulPanel16;
    private Ulee.Controls.UlPanel ulPanel24;
    private Ulee.Controls.UlPanel currentREdit;
    private Ulee.Controls.UlPanel currentSEdit;
    private Ulee.Controls.UlPanel currentTEdit;
    private Ulee.Controls.UlPanel currentSigmaEdit;
    private Ulee.Controls.UlPanel ulPanel21;
    private Ulee.Controls.UlPanel ulPanel23;
    private Ulee.Controls.UlPanel voltREdit;
    private Ulee.Controls.UlPanel voltSEdit;
    private Ulee.Controls.UlPanel voltTEdit;
    private Ulee.Controls.UlPanel voltSigmaEdit;
    private Ulee.Controls.UlPanel ulPanel11;
    private Ulee.Controls.UlPanel ulPanel1;
    private Ulee.Controls.UlPanel ulPanel4;
    private Ulee.Controls.UlPanel ulPanel5;
    private Ulee.Controls.UlPanel ulPanel3;
    private Ulee.Controls.UlPanel ulPanel2;
}
}
