diff --git a/INT_PT002/Controls/ControlMainDisplayDotGraph.cs b/INT_PT002/Controls/ControlMainDisplayDotGraph.cs index 74962be..2f591d5 100644 --- a/INT_PT002/Controls/ControlMainDisplayDotGraph.cs +++ b/INT_PT002/Controls/ControlMainDisplayDotGraph.cs @@ -134,7 +134,7 @@ namespace INT_PT002.Controls // 15.000 ~ -2.000 (17.000 ~ 0) // 그래프 영역 높이 460 // 17000 / 460 = 36.95652173913043 - dValue = (int.Parse(data.CurrentValueSign + data.CurrentValue) + 2000) / 36.95652173913043; + //dValue = (int.Parse(data.CurrentValueSign + data.CurrentValue) + 2000) / 36.95652173913043; if (dValue > 460) dValue = 460; @@ -150,13 +150,13 @@ namespace INT_PT002.Controls string value = ""; bool bValue = false; - if (this.ParentForm.SystemConfig.Chart2DrawStep == 1) + if (this.ParentForm.SystemConfig.CHART2_DRAW_STEP == 1) { bValue = true; } else { - if (this.FlagIgnoreCNT == this.ParentForm.SystemConfig.Chart2DrawStep) + if (this.FlagIgnoreCNT == this.ParentForm.SystemConfig.CHART2_DRAW_STEP) { bValue = true; this.FlagIgnoreCNT = 0; @@ -166,21 +166,21 @@ namespace INT_PT002.Controls } // Current Value - value = Helper.StringToDecimalPlaces(data.CurrentValue, this.ParentForm.DecimalPlaces3); - if (data.CurrentValueSign == "-") - value = string.Format("{0}{1}", data.CurrentValueSign, value); + //value = Helper.StringToDecimalPlaces(data.CurrentValue, this.ParentForm.DecimalPlaces3); + //if (data.CurrentValueSign == "-") + // value = string.Format("{0}{1}", data.CurrentValueSign, value); if (this.labelCurrentValue.Text != value) this.labelCurrentValue.Text = value; // Max Value - value = Helper.StringToDecimalPlaces(data.MaxValue, this.ParentForm.DecimalPlaces3); - if(data.MaxValueSign == "-") - value = string.Format("{0}{1}", data.MaxValueSign, value); + //value = Helper.StringToDecimalPlaces(data.MaxValue, this.ParentForm.DecimalPlaces3); + //if(data.MaxValueSign == "-") + // value = string.Format("{0}{1}", data.MaxValueSign, value); if (this.labelMaxValue.Text != value) this.labelMaxValue.Text = value; // Standard Deviation - value = Helper.StringToDecimalPlaces(data.StDev, this.ParentForm.DecimalPlaces4); + //value = Helper.StringToDecimalPlaces(data.StDev, this.ParentForm.DecimalPlaces4); if (this.labelStDev.Text != value) this.labelStDev.Text = value; @@ -196,7 +196,7 @@ namespace INT_PT002.Controls if (this.labelResult.Text != value) this.labelResult.Text = value; - value = Helper.StringToDecimalPlaces(data.ResultSD, this.ParentForm.DecimalPlaces4); + //value = Helper.StringToDecimalPlaces(data.ResultSD, this.ParentForm.DecimalPlaces4); if (this.labelResultSD.Text != value) this.labelResultSD.Text = value; } diff --git a/INT_PT002/Controls/Log/ControlMenuLogAlarm.Designer.cs b/INT_PT002/Controls/Log/ControlMenuLogAlarm.Designer.cs new file mode 100644 index 0000000..7606d2e --- /dev/null +++ b/INT_PT002/Controls/Log/ControlMenuLogAlarm.Designer.cs @@ -0,0 +1,67 @@ +namespace INT_PT002.Controls +{ + partial class ControlMenuLogAlarm + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Component Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + this.smartGroupBox1 = new SmartX.SmartGroupBox(); + this.SuspendLayout(); + // + // smartGroupBox1 + // + this.smartGroupBox1.BackGround = null; + this.smartGroupBox1.BackGroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); + this.smartGroupBox1.BackImage = null; + this.smartGroupBox1.FrameLineColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(58)))), ((int)(((byte)(110)))), ((int)(((byte)(165))))); + this.smartGroupBox1.FrameLineColor2 = System.Drawing.Color.FromArgb(((int)(((byte)(58)))), ((int)(((byte)(110)))), ((int)(((byte)(165))))); + this.smartGroupBox1.FrameLineThickness = 2; + this.smartGroupBox1.FrameStyle = SmartX.SmartGroupBox.FRAMESTYLES.HeaderBar; + this.smartGroupBox1.HeaderHeightOffset = 9; + this.smartGroupBox1.Location = new System.Drawing.Point(0, 0); + this.smartGroupBox1.Name = "smartGroupBox1"; + this.smartGroupBox1.RoundRadius = 5; + this.smartGroupBox1.Size = new System.Drawing.Size(909, 664); + this.smartGroupBox1.TabIndex = 2; + this.smartGroupBox1.Text = "smartGroupBox1"; + this.smartGroupBox1.TextColor = System.Drawing.Color.White; + // + // ControlMenuLogAlarm + // + this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi; + this.Controls.Add(this.smartGroupBox1); + this.Name = "ControlMenuLogAlarm"; + this.Size = new System.Drawing.Size(909, 664); + this.ResumeLayout(false); + + } + + #endregion + + private SmartX.SmartGroupBox smartGroupBox1; + } +} diff --git a/INT_PT002/Controls/Log/ControlMenuLogAlarm.cs b/INT_PT002/Controls/Log/ControlMenuLogAlarm.cs new file mode 100644 index 0000000..91bf97b --- /dev/null +++ b/INT_PT002/Controls/Log/ControlMenuLogAlarm.cs @@ -0,0 +1,54 @@ +using System; +using System.Linq; +using System.Collections.Generic; +using System.ComponentModel; +using System.Drawing; +using System.Data; +using System.Text; +using System.Windows.Forms; + +using INT_PT002.Forms; + +namespace INT_PT002.Controls +{ + public partial class ControlMenuLogAlarm : UserControl + { + #region Field + private FormMenu m_ParentForm; + #endregion + + #region Constructor + public ControlMenuLogAlarm(FormMenu parent) + { + InitializeComponent(); + + this.ParentForm = parent; + this.Initialize(); + } + #endregion + + #region Property + public FormMenu ParentForm + { + get { return this.m_ParentForm; } + private set { this.m_ParentForm = value; } + } + #endregion + + #region Method + private void Initialize() + { + this.smartGroupBox1.Text = "Log > Alarm"; + } + + public void DisplayRefresh() + { + + } + #endregion + + #region Event Handler + + #endregion + } +} diff --git a/INT_PT002/Controls/ControlMenuManualIoTest.resx b/INT_PT002/Controls/Log/ControlMenuLogAlarm.resx similarity index 100% rename from INT_PT002/Controls/ControlMenuManualIoTest.resx rename to INT_PT002/Controls/Log/ControlMenuLogAlarm.resx diff --git a/INT_PT002/Controls/Log/ControlMenuLogHistory.Designer.cs b/INT_PT002/Controls/Log/ControlMenuLogHistory.Designer.cs new file mode 100644 index 0000000..9ee9950 --- /dev/null +++ b/INT_PT002/Controls/Log/ControlMenuLogHistory.Designer.cs @@ -0,0 +1,67 @@ +namespace INT_PT002.Controls +{ + partial class ControlMenuLogHistory + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Component Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + this.smartGroupBox1 = new SmartX.SmartGroupBox(); + this.SuspendLayout(); + // + // smartGroupBox1 + // + this.smartGroupBox1.BackGround = null; + this.smartGroupBox1.BackGroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); + this.smartGroupBox1.BackImage = null; + this.smartGroupBox1.FrameLineColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(58)))), ((int)(((byte)(110)))), ((int)(((byte)(165))))); + this.smartGroupBox1.FrameLineColor2 = System.Drawing.Color.FromArgb(((int)(((byte)(58)))), ((int)(((byte)(110)))), ((int)(((byte)(165))))); + this.smartGroupBox1.FrameLineThickness = 2; + this.smartGroupBox1.FrameStyle = SmartX.SmartGroupBox.FRAMESTYLES.HeaderBar; + this.smartGroupBox1.HeaderHeightOffset = 9; + this.smartGroupBox1.Location = new System.Drawing.Point(0, 0); + this.smartGroupBox1.Name = "smartGroupBox1"; + this.smartGroupBox1.RoundRadius = 5; + this.smartGroupBox1.Size = new System.Drawing.Size(909, 664); + this.smartGroupBox1.TabIndex = 2; + this.smartGroupBox1.Text = "smartGroupBox1"; + this.smartGroupBox1.TextColor = System.Drawing.Color.White; + // + // ControlMenuLogHistory + // + this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi; + this.Controls.Add(this.smartGroupBox1); + this.Name = "ControlMenuLogHistory"; + this.Size = new System.Drawing.Size(909, 664); + this.ResumeLayout(false); + + } + + #endregion + + private SmartX.SmartGroupBox smartGroupBox1; + } +} diff --git a/INT_PT002/Controls/Log/ControlMenuLogHistory.cs b/INT_PT002/Controls/Log/ControlMenuLogHistory.cs new file mode 100644 index 0000000..c7406e8 --- /dev/null +++ b/INT_PT002/Controls/Log/ControlMenuLogHistory.cs @@ -0,0 +1,54 @@ +using System; +using System.Linq; +using System.Collections.Generic; +using System.ComponentModel; +using System.Drawing; +using System.Data; +using System.Text; +using System.Windows.Forms; + +using INT_PT002.Forms; + +namespace INT_PT002.Controls +{ + public partial class ControlMenuLogHistory : UserControl + { + #region Field + private FormMenu m_ParentForm; + #endregion + + #region Constructor + public ControlMenuLogHistory(FormMenu parent) + { + InitializeComponent(); + + this.ParentForm = parent; + this.Initialize(); + } + #endregion + + #region Property + public FormMenu ParentForm + { + get { return this.m_ParentForm; } + private set { this.m_ParentForm = value; } + } + #endregion + + #region Method + private void Initialize() + { + this.smartGroupBox1.Text = "Log > History"; + } + + public void DisplayRefresh() + { + + } + #endregion + + #region Event Handler + + #endregion + } +} diff --git a/INT_PT002/Controls/ControlMenuManualMotorSetting.resx b/INT_PT002/Controls/Log/ControlMenuLogHistory.resx similarity index 100% rename from INT_PT002/Controls/ControlMenuManualMotorSetting.resx rename to INT_PT002/Controls/Log/ControlMenuLogHistory.resx diff --git a/INT_PT002/Controls/Log/ControlMenuLogInspection.Designer.cs b/INT_PT002/Controls/Log/ControlMenuLogInspection.Designer.cs new file mode 100644 index 0000000..a5b1b6a --- /dev/null +++ b/INT_PT002/Controls/Log/ControlMenuLogInspection.Designer.cs @@ -0,0 +1,67 @@ +namespace INT_PT002.Controls +{ + partial class ControlMenuLogInspection + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Component Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + this.smartGroupBox1 = new SmartX.SmartGroupBox(); + this.SuspendLayout(); + // + // smartGroupBox1 + // + this.smartGroupBox1.BackGround = null; + this.smartGroupBox1.BackGroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); + this.smartGroupBox1.BackImage = null; + this.smartGroupBox1.FrameLineColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(58)))), ((int)(((byte)(110)))), ((int)(((byte)(165))))); + this.smartGroupBox1.FrameLineColor2 = System.Drawing.Color.FromArgb(((int)(((byte)(58)))), ((int)(((byte)(110)))), ((int)(((byte)(165))))); + this.smartGroupBox1.FrameLineThickness = 2; + this.smartGroupBox1.FrameStyle = SmartX.SmartGroupBox.FRAMESTYLES.HeaderBar; + this.smartGroupBox1.HeaderHeightOffset = 9; + this.smartGroupBox1.Location = new System.Drawing.Point(0, 0); + this.smartGroupBox1.Name = "smartGroupBox1"; + this.smartGroupBox1.RoundRadius = 5; + this.smartGroupBox1.Size = new System.Drawing.Size(909, 664); + this.smartGroupBox1.TabIndex = 2; + this.smartGroupBox1.Text = "smartGroupBox1"; + this.smartGroupBox1.TextColor = System.Drawing.Color.White; + // + // ControlMenuLogInspection + // + this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi; + this.Controls.Add(this.smartGroupBox1); + this.Name = "ControlMenuLogInspection"; + this.Size = new System.Drawing.Size(909, 664); + this.ResumeLayout(false); + + } + + #endregion + + private SmartX.SmartGroupBox smartGroupBox1; + } +} diff --git a/INT_PT002/Controls/Log/ControlMenuLogInspection.cs b/INT_PT002/Controls/Log/ControlMenuLogInspection.cs new file mode 100644 index 0000000..7b5de89 --- /dev/null +++ b/INT_PT002/Controls/Log/ControlMenuLogInspection.cs @@ -0,0 +1,53 @@ +using System; +using System.Linq; +using System.Collections.Generic; +using System.ComponentModel; +using System.Drawing; +using System.Data; +using System.Text; +using System.Windows.Forms; +using INT_PT002.Forms; + +namespace INT_PT002.Controls +{ + public partial class ControlMenuLogInspection : UserControl + { + #region Field + private FormMenu m_ParentForm; + #endregion + + #region Constructor + public ControlMenuLogInspection(FormMenu parent) + { + InitializeComponent(); + + this.ParentForm = parent; + this.Initialize(); + } + #endregion + + #region Property + public FormMenu ParentForm + { + get { return this.m_ParentForm; } + private set { this.m_ParentForm = value; } + } + #endregion + + #region Method + private void Initialize() + { + this.smartGroupBox1.Text = "Log > Inspection"; + } + + public void DisplayRefresh() + { + + } + #endregion + + #region Event Handler + + #endregion + } +} diff --git a/INT_PT002/Controls/ControlMenuSettingCommunication.resx b/INT_PT002/Controls/Log/ControlMenuLogInspection.resx similarity index 100% rename from INT_PT002/Controls/ControlMenuSettingCommunication.resx rename to INT_PT002/Controls/Log/ControlMenuLogInspection.resx diff --git a/INT_PT002/Controls/ControlMenuManualIoTest.Designer.cs b/INT_PT002/Controls/Manual/ControlMenuManualIoTest.Designer.cs similarity index 97% rename from INT_PT002/Controls/ControlMenuManualIoTest.Designer.cs rename to INT_PT002/Controls/Manual/ControlMenuManualIoTest.Designer.cs index 2e727a9..150d339 100644 --- a/INT_PT002/Controls/ControlMenuManualIoTest.Designer.cs +++ b/INT_PT002/Controls/Manual/ControlMenuManualIoTest.Designer.cs @@ -44,7 +44,7 @@ this.smartGroupBox1.Location = new System.Drawing.Point(0, 0); this.smartGroupBox1.Name = "smartGroupBox1"; this.smartGroupBox1.RoundRadius = 5; - this.smartGroupBox1.Size = new System.Drawing.Size(909, 703); + this.smartGroupBox1.Size = new System.Drawing.Size(909, 664); this.smartGroupBox1.TabIndex = 0; this.smartGroupBox1.Text = "smartGroupBox1"; this.smartGroupBox1.TextColor = System.Drawing.Color.White; @@ -55,7 +55,7 @@ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi; this.Controls.Add(this.smartGroupBox1); this.Name = "ControlMenuManualIoTest"; - this.Size = new System.Drawing.Size(909, 703); + this.Size = new System.Drawing.Size(909, 664); this.ResumeLayout(false); } diff --git a/INT_PT002/Controls/ControlMenuManualIoTest.cs b/INT_PT002/Controls/Manual/ControlMenuManualIoTest.cs similarity index 100% rename from INT_PT002/Controls/ControlMenuManualIoTest.cs rename to INT_PT002/Controls/Manual/ControlMenuManualIoTest.cs diff --git a/INT_PT002/Controls/ControlMenuSettingConfiguration.resx b/INT_PT002/Controls/Manual/ControlMenuManualIoTest.resx similarity index 100% rename from INT_PT002/Controls/ControlMenuSettingConfiguration.resx rename to INT_PT002/Controls/Manual/ControlMenuManualIoTest.resx diff --git a/INT_PT002/Controls/ControlMenuManualMotorSetting.Designer.cs b/INT_PT002/Controls/Manual/ControlMenuManualMotorSetting.Designer.cs similarity index 97% rename from INT_PT002/Controls/ControlMenuManualMotorSetting.Designer.cs rename to INT_PT002/Controls/Manual/ControlMenuManualMotorSetting.Designer.cs index ed8fef5..4b8d77a 100644 --- a/INT_PT002/Controls/ControlMenuManualMotorSetting.Designer.cs +++ b/INT_PT002/Controls/Manual/ControlMenuManualMotorSetting.Designer.cs @@ -44,7 +44,7 @@ this.smartGroupBox1.Location = new System.Drawing.Point(0, 0); this.smartGroupBox1.Name = "smartGroupBox1"; this.smartGroupBox1.RoundRadius = 5; - this.smartGroupBox1.Size = new System.Drawing.Size(909, 703); + this.smartGroupBox1.Size = new System.Drawing.Size(909, 664); this.smartGroupBox1.TabIndex = 1; this.smartGroupBox1.Text = "smartGroupBox1"; this.smartGroupBox1.TextColor = System.Drawing.Color.White; @@ -55,7 +55,7 @@ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi; this.Controls.Add(this.smartGroupBox1); this.Name = "ControlMenuManualMotorSetting"; - this.Size = new System.Drawing.Size(909, 703); + this.Size = new System.Drawing.Size(909, 664); this.ResumeLayout(false); } diff --git a/INT_PT002/Controls/ControlMenuManualMotorSetting.cs b/INT_PT002/Controls/Manual/ControlMenuManualMotorSetting.cs similarity index 100% rename from INT_PT002/Controls/ControlMenuManualMotorSetting.cs rename to INT_PT002/Controls/Manual/ControlMenuManualMotorSetting.cs diff --git a/INT_PT002/Controls/ControlMenuSettingUserEditor.resx b/INT_PT002/Controls/Manual/ControlMenuManualMotorSetting.resx similarity index 100% rename from INT_PT002/Controls/ControlMenuSettingUserEditor.resx rename to INT_PT002/Controls/Manual/ControlMenuManualMotorSetting.resx diff --git a/INT_PT002/Controls/Recipe/ControlMenuRecipeSetting.Designer.cs b/INT_PT002/Controls/Recipe/ControlMenuRecipeSetting.Designer.cs new file mode 100644 index 0000000..46f7cc1 --- /dev/null +++ b/INT_PT002/Controls/Recipe/ControlMenuRecipeSetting.Designer.cs @@ -0,0 +1,67 @@ +namespace INT_PT002.Controls +{ + partial class ControlMenuRecipeSetting + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Component Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + this.smartGroupBox1 = new SmartX.SmartGroupBox(); + this.SuspendLayout(); + // + // smartGroupBox1 + // + this.smartGroupBox1.BackGround = null; + this.smartGroupBox1.BackGroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); + this.smartGroupBox1.BackImage = null; + this.smartGroupBox1.FrameLineColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(58)))), ((int)(((byte)(110)))), ((int)(((byte)(165))))); + this.smartGroupBox1.FrameLineColor2 = System.Drawing.Color.FromArgb(((int)(((byte)(58)))), ((int)(((byte)(110)))), ((int)(((byte)(165))))); + this.smartGroupBox1.FrameLineThickness = 2; + this.smartGroupBox1.FrameStyle = SmartX.SmartGroupBox.FRAMESTYLES.HeaderBar; + this.smartGroupBox1.HeaderHeightOffset = 9; + this.smartGroupBox1.Location = new System.Drawing.Point(0, 0); + this.smartGroupBox1.Name = "smartGroupBox1"; + this.smartGroupBox1.RoundRadius = 5; + this.smartGroupBox1.Size = new System.Drawing.Size(909, 664); + this.smartGroupBox1.TabIndex = 2; + this.smartGroupBox1.Text = "smartGroupBox1"; + this.smartGroupBox1.TextColor = System.Drawing.Color.White; + // + // ControlMenuRecipeSetting + // + this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi; + this.Controls.Add(this.smartGroupBox1); + this.Name = "ControlMenuRecipeSetting"; + this.Size = new System.Drawing.Size(909, 664); + this.ResumeLayout(false); + + } + + #endregion + + private SmartX.SmartGroupBox smartGroupBox1; + } +} diff --git a/INT_PT002/Controls/Recipe/ControlMenuRecipeSetting.cs b/INT_PT002/Controls/Recipe/ControlMenuRecipeSetting.cs new file mode 100644 index 0000000..c1e943c --- /dev/null +++ b/INT_PT002/Controls/Recipe/ControlMenuRecipeSetting.cs @@ -0,0 +1,54 @@ +using System; +using System.Linq; +using System.Collections.Generic; +using System.ComponentModel; +using System.Drawing; +using System.Data; +using System.Text; +using System.Windows.Forms; + +using INT_PT002.Forms; + +namespace INT_PT002.Controls +{ + public partial class ControlMenuRecipeSetting : UserControl + { + #region Field + private FormMenu m_ParentForm; + #endregion + + #region Constructor + public ControlMenuRecipeSetting(FormMenu parent) + { + InitializeComponent(); + + this.ParentForm = parent; + this.Initialize(); + } + #endregion + + #region Property + public FormMenu ParentForm + { + get { return this.m_ParentForm; } + private set { this.m_ParentForm = value; } + } + #endregion + + #region Method + private void Initialize() + { + this.smartGroupBox1.Text = "Recipe > Setting"; + } + + public void DisplayRefresh() + { + + } + #endregion + + #region Event Handler + + #endregion + } +} diff --git a/INT_PT002/Controls/Recipe/ControlMenuRecipeSetting.resx b/INT_PT002/Controls/Recipe/ControlMenuRecipeSetting.resx new file mode 100644 index 0000000..3e7a6d2 --- /dev/null +++ b/INT_PT002/Controls/Recipe/ControlMenuRecipeSetting.resx @@ -0,0 +1,123 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + WEBPAD + + \ No newline at end of file diff --git a/INT_PT002/Controls/ControlMenuSettingCommunication.Designer.cs b/INT_PT002/Controls/Setting/ControlMenuSettingCommunication.Designer.cs similarity index 97% rename from INT_PT002/Controls/ControlMenuSettingCommunication.Designer.cs rename to INT_PT002/Controls/Setting/ControlMenuSettingCommunication.Designer.cs index 4dd228d..c846545 100644 --- a/INT_PT002/Controls/ControlMenuSettingCommunication.Designer.cs +++ b/INT_PT002/Controls/Setting/ControlMenuSettingCommunication.Designer.cs @@ -44,7 +44,7 @@ this.smartGroupBox1.Location = new System.Drawing.Point(0, 0); this.smartGroupBox1.Name = "smartGroupBox1"; this.smartGroupBox1.RoundRadius = 5; - this.smartGroupBox1.Size = new System.Drawing.Size(909, 703); + this.smartGroupBox1.Size = new System.Drawing.Size(909, 664); this.smartGroupBox1.TabIndex = 1; this.smartGroupBox1.Text = "smartGroupBox1"; this.smartGroupBox1.TextColor = System.Drawing.Color.White; @@ -55,7 +55,7 @@ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi; this.Controls.Add(this.smartGroupBox1); this.Name = "ControlMenuSettingCommunication"; - this.Size = new System.Drawing.Size(909, 703); + this.Size = new System.Drawing.Size(909, 664); this.ResumeLayout(false); } diff --git a/INT_PT002/Controls/ControlMenuSettingCommunication.cs b/INT_PT002/Controls/Setting/ControlMenuSettingCommunication.cs similarity index 100% rename from INT_PT002/Controls/ControlMenuSettingCommunication.cs rename to INT_PT002/Controls/Setting/ControlMenuSettingCommunication.cs diff --git a/INT_PT002/Controls/Setting/ControlMenuSettingCommunication.resx b/INT_PT002/Controls/Setting/ControlMenuSettingCommunication.resx new file mode 100644 index 0000000..3e7a6d2 --- /dev/null +++ b/INT_PT002/Controls/Setting/ControlMenuSettingCommunication.resx @@ -0,0 +1,123 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + WEBPAD + + \ No newline at end of file diff --git a/INT_PT002/Controls/ControlMenuSettingConfiguration.Designer.cs b/INT_PT002/Controls/Setting/ControlMenuSettingConfiguration.Designer.cs similarity index 97% rename from INT_PT002/Controls/ControlMenuSettingConfiguration.Designer.cs rename to INT_PT002/Controls/Setting/ControlMenuSettingConfiguration.Designer.cs index 0f7cec6..f39aaa1 100644 --- a/INT_PT002/Controls/ControlMenuSettingConfiguration.Designer.cs +++ b/INT_PT002/Controls/Setting/ControlMenuSettingConfiguration.Designer.cs @@ -44,7 +44,7 @@ this.smartGroupBox1.Location = new System.Drawing.Point(0, 0); this.smartGroupBox1.Name = "smartGroupBox1"; this.smartGroupBox1.RoundRadius = 5; - this.smartGroupBox1.Size = new System.Drawing.Size(909, 703); + this.smartGroupBox1.Size = new System.Drawing.Size(909, 664); this.smartGroupBox1.TabIndex = 1; this.smartGroupBox1.Text = "smartGroupBox1"; this.smartGroupBox1.TextColor = System.Drawing.Color.White; @@ -55,7 +55,7 @@ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi; this.Controls.Add(this.smartGroupBox1); this.Name = "ControlMenuSettingConfiguration"; - this.Size = new System.Drawing.Size(909, 703); + this.Size = new System.Drawing.Size(909, 664); this.ResumeLayout(false); } diff --git a/INT_PT002/Controls/ControlMenuSettingConfiguration.cs b/INT_PT002/Controls/Setting/ControlMenuSettingConfiguration.cs similarity index 100% rename from INT_PT002/Controls/ControlMenuSettingConfiguration.cs rename to INT_PT002/Controls/Setting/ControlMenuSettingConfiguration.cs diff --git a/INT_PT002/Controls/Setting/ControlMenuSettingConfiguration.resx b/INT_PT002/Controls/Setting/ControlMenuSettingConfiguration.resx new file mode 100644 index 0000000..3e7a6d2 --- /dev/null +++ b/INT_PT002/Controls/Setting/ControlMenuSettingConfiguration.resx @@ -0,0 +1,123 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + WEBPAD + + \ No newline at end of file diff --git a/INT_PT002/Controls/ControlMenuSettingUserEditor.Designer.cs b/INT_PT002/Controls/Setting/ControlMenuSettingUserEditor.Designer.cs similarity index 97% rename from INT_PT002/Controls/ControlMenuSettingUserEditor.Designer.cs rename to INT_PT002/Controls/Setting/ControlMenuSettingUserEditor.Designer.cs index 1183423..4f116c5 100644 --- a/INT_PT002/Controls/ControlMenuSettingUserEditor.Designer.cs +++ b/INT_PT002/Controls/Setting/ControlMenuSettingUserEditor.Designer.cs @@ -44,7 +44,7 @@ this.smartGroupBox1.Location = new System.Drawing.Point(0, 0); this.smartGroupBox1.Name = "smartGroupBox1"; this.smartGroupBox1.RoundRadius = 5; - this.smartGroupBox1.Size = new System.Drawing.Size(909, 703); + this.smartGroupBox1.Size = new System.Drawing.Size(909, 664); this.smartGroupBox1.TabIndex = 1; this.smartGroupBox1.Text = "smartGroupBox1"; this.smartGroupBox1.TextColor = System.Drawing.Color.White; @@ -55,7 +55,7 @@ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi; this.Controls.Add(this.smartGroupBox1); this.Name = "ControlMenuSettingUserEditor"; - this.Size = new System.Drawing.Size(909, 703); + this.Size = new System.Drawing.Size(909, 664); this.ResumeLayout(false); } diff --git a/INT_PT002/Controls/ControlMenuSettingUserEditor.cs b/INT_PT002/Controls/Setting/ControlMenuSettingUserEditor.cs similarity index 100% rename from INT_PT002/Controls/ControlMenuSettingUserEditor.cs rename to INT_PT002/Controls/Setting/ControlMenuSettingUserEditor.cs diff --git a/INT_PT002/Controls/Setting/ControlMenuSettingUserEditor.resx b/INT_PT002/Controls/Setting/ControlMenuSettingUserEditor.resx new file mode 100644 index 0000000..3e7a6d2 --- /dev/null +++ b/INT_PT002/Controls/Setting/ControlMenuSettingUserEditor.resx @@ -0,0 +1,123 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + WEBPAD + + \ No newline at end of file diff --git a/INT_PT002/Controls/System/ControlMenuSystemEquipment.Designer.cs b/INT_PT002/Controls/System/ControlMenuSystemEquipment.Designer.cs new file mode 100644 index 0000000..7c92242 --- /dev/null +++ b/INT_PT002/Controls/System/ControlMenuSystemEquipment.Designer.cs @@ -0,0 +1,67 @@ +namespace INT_PT002.Controls +{ + partial class ControlMenuSystemEquipment + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Component Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + this.smartGroupBox1 = new SmartX.SmartGroupBox(); + this.SuspendLayout(); + // + // smartGroupBox1 + // + this.smartGroupBox1.BackGround = null; + this.smartGroupBox1.BackGroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); + this.smartGroupBox1.BackImage = null; + this.smartGroupBox1.FrameLineColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(58)))), ((int)(((byte)(110)))), ((int)(((byte)(165))))); + this.smartGroupBox1.FrameLineColor2 = System.Drawing.Color.FromArgb(((int)(((byte)(58)))), ((int)(((byte)(110)))), ((int)(((byte)(165))))); + this.smartGroupBox1.FrameLineThickness = 2; + this.smartGroupBox1.FrameStyle = SmartX.SmartGroupBox.FRAMESTYLES.HeaderBar; + this.smartGroupBox1.HeaderHeightOffset = 9; + this.smartGroupBox1.Location = new System.Drawing.Point(0, 0); + this.smartGroupBox1.Name = "smartGroupBox1"; + this.smartGroupBox1.RoundRadius = 5; + this.smartGroupBox1.Size = new System.Drawing.Size(909, 664); + this.smartGroupBox1.TabIndex = 2; + this.smartGroupBox1.Text = "smartGroupBox1"; + this.smartGroupBox1.TextColor = System.Drawing.Color.White; + // + // ControlMenuSystemEquipment + // + this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi; + this.Controls.Add(this.smartGroupBox1); + this.Name = "ControlMenuSystemEquipment"; + this.Size = new System.Drawing.Size(909, 664); + this.ResumeLayout(false); + + } + + #endregion + + private SmartX.SmartGroupBox smartGroupBox1; + } +} diff --git a/INT_PT002/Controls/System/ControlMenuSystemEquipment.cs b/INT_PT002/Controls/System/ControlMenuSystemEquipment.cs new file mode 100644 index 0000000..929df89 --- /dev/null +++ b/INT_PT002/Controls/System/ControlMenuSystemEquipment.cs @@ -0,0 +1,54 @@ +using System; +using System.Linq; +using System.Collections.Generic; +using System.ComponentModel; +using System.Drawing; +using System.Data; +using System.Text; +using System.Windows.Forms; + +using INT_PT002.Forms; + +namespace INT_PT002.Controls +{ + public partial class ControlMenuSystemEquipment : UserControl + { + #region Field + private FormMenu m_ParentForm; + #endregion + + #region Constructor + public ControlMenuSystemEquipment(FormMenu parent) + { + InitializeComponent(); + + this.ParentForm = parent; + this.Initialize(); + } + #endregion + + #region Property + public FormMenu ParentForm + { + get { return this.m_ParentForm; } + private set { this.m_ParentForm = value; } + } + #endregion + + #region Method + private void Initialize() + { + this.smartGroupBox1.Text = "System > Equipment"; + } + + public void DisplayRefresh() + { + + } + #endregion + + #region Event Handler + + #endregion + } +} diff --git a/INT_PT002/Controls/System/ControlMenuSystemEquipment.resx b/INT_PT002/Controls/System/ControlMenuSystemEquipment.resx new file mode 100644 index 0000000..3e7a6d2 --- /dev/null +++ b/INT_PT002/Controls/System/ControlMenuSystemEquipment.resx @@ -0,0 +1,123 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + WEBPAD + + \ No newline at end of file diff --git a/INT_PT002/Controls/System/ControlMenuSystemInformation.Designer.cs b/INT_PT002/Controls/System/ControlMenuSystemInformation.Designer.cs new file mode 100644 index 0000000..3434263 --- /dev/null +++ b/INT_PT002/Controls/System/ControlMenuSystemInformation.Designer.cs @@ -0,0 +1,67 @@ +namespace INT_PT002.Controls +{ + partial class ControlMenuSystemInformation + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Component Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + this.smartGroupBox1 = new SmartX.SmartGroupBox(); + this.SuspendLayout(); + // + // smartGroupBox1 + // + this.smartGroupBox1.BackGround = null; + this.smartGroupBox1.BackGroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); + this.smartGroupBox1.BackImage = null; + this.smartGroupBox1.FrameLineColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(58)))), ((int)(((byte)(110)))), ((int)(((byte)(165))))); + this.smartGroupBox1.FrameLineColor2 = System.Drawing.Color.FromArgb(((int)(((byte)(58)))), ((int)(((byte)(110)))), ((int)(((byte)(165))))); + this.smartGroupBox1.FrameLineThickness = 2; + this.smartGroupBox1.FrameStyle = SmartX.SmartGroupBox.FRAMESTYLES.HeaderBar; + this.smartGroupBox1.HeaderHeightOffset = 9; + this.smartGroupBox1.Location = new System.Drawing.Point(0, 0); + this.smartGroupBox1.Name = "smartGroupBox1"; + this.smartGroupBox1.RoundRadius = 5; + this.smartGroupBox1.Size = new System.Drawing.Size(909, 664); + this.smartGroupBox1.TabIndex = 2; + this.smartGroupBox1.Text = "smartGroupBox1"; + this.smartGroupBox1.TextColor = System.Drawing.Color.White; + // + // ControlMenuSystemInformation + // + this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi; + this.Controls.Add(this.smartGroupBox1); + this.Name = "ControlMenuSystemInformation"; + this.Size = new System.Drawing.Size(909, 664); + this.ResumeLayout(false); + + } + + #endregion + + private SmartX.SmartGroupBox smartGroupBox1; + } +} diff --git a/INT_PT002/Controls/System/ControlMenuSystemInformation.cs b/INT_PT002/Controls/System/ControlMenuSystemInformation.cs new file mode 100644 index 0000000..48cc374 --- /dev/null +++ b/INT_PT002/Controls/System/ControlMenuSystemInformation.cs @@ -0,0 +1,54 @@ +using System; +using System.Linq; +using System.Collections.Generic; +using System.ComponentModel; +using System.Drawing; +using System.Data; +using System.Text; +using System.Windows.Forms; + +using INT_PT002.Forms; + +namespace INT_PT002.Controls +{ + public partial class ControlMenuSystemInformation : UserControl + { + #region Field + private FormMenu m_ParentForm; + #endregion + + #region Constructor + public ControlMenuSystemInformation(FormMenu parent) + { + InitializeComponent(); + + this.ParentForm = parent; + this.Initialize(); + } + #endregion + + #region Property + public FormMenu ParentForm + { + get { return this.m_ParentForm; } + private set { this.m_ParentForm = value; } + } + #endregion + + #region Method + private void Initialize() + { + this.smartGroupBox1.Text = "System > Information"; + } + + public void DisplayRefresh() + { + + } + #endregion + + #region Event Handler + + #endregion + } +} diff --git a/INT_PT002/Controls/System/ControlMenuSystemInformation.resx b/INT_PT002/Controls/System/ControlMenuSystemInformation.resx new file mode 100644 index 0000000..3e7a6d2 --- /dev/null +++ b/INT_PT002/Controls/System/ControlMenuSystemInformation.resx @@ -0,0 +1,123 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + WEBPAD + + \ No newline at end of file diff --git a/INT_PT002/Controls/System/ControlMenuSystemTime.Designer.cs b/INT_PT002/Controls/System/ControlMenuSystemTime.Designer.cs new file mode 100644 index 0000000..d11ac56 --- /dev/null +++ b/INT_PT002/Controls/System/ControlMenuSystemTime.Designer.cs @@ -0,0 +1,133 @@ +namespace INT_PT002.Controls +{ + partial class ControlMenuSystemTime + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Component Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + this.smartGroupBox1 = new SmartX.SmartGroupBox(); + this.smartMonthCalendar1 = new SmartX.SmartMonthCalendar(); + this.smartGroupBox1.SuspendLayout(); + this.SuspendLayout(); + // + // smartGroupBox1 + // + this.smartGroupBox1.BackGround = null; + this.smartGroupBox1.BackGroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); + this.smartGroupBox1.BackImage = null; + this.smartGroupBox1.Controls.Add(this.smartMonthCalendar1); + this.smartGroupBox1.FrameLineColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(58)))), ((int)(((byte)(110)))), ((int)(((byte)(165))))); + this.smartGroupBox1.FrameLineColor2 = System.Drawing.Color.FromArgb(((int)(((byte)(58)))), ((int)(((byte)(110)))), ((int)(((byte)(165))))); + this.smartGroupBox1.FrameLineThickness = 2; + this.smartGroupBox1.FrameStyle = SmartX.SmartGroupBox.FRAMESTYLES.HeaderBar; + this.smartGroupBox1.HeaderHeightOffset = 9; + this.smartGroupBox1.Location = new System.Drawing.Point(0, 0); + this.smartGroupBox1.Name = "smartGroupBox1"; + this.smartGroupBox1.RoundRadius = 5; + this.smartGroupBox1.Size = new System.Drawing.Size(909, 664); + this.smartGroupBox1.TabIndex = 2; + this.smartGroupBox1.Text = "System > Time"; + this.smartGroupBox1.TextColor = System.Drawing.Color.White; + // + // smartMonthCalendar1 + // + this.smartMonthCalendar1.BackGround = null; + this.smartMonthCalendar1.BackGroundColor = System.Drawing.Color.White; + this.smartMonthCalendar1.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(58)))), ((int)(((byte)(110)))), ((int)(((byte)(165))))); + this.smartMonthCalendar1.BorderLineWidth = 1; + this.smartMonthCalendar1.DayTextColor = System.Drawing.Color.Black; + this.smartMonthCalendar1.DayTextColor1 = System.Drawing.Color.Gray; + this.smartMonthCalendar1.DayTextColorSat = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(30)))), ((int)(((byte)(177))))); + this.smartMonthCalendar1.DayTextColorSun = System.Drawing.Color.FromArgb(((int)(((byte)(177)))), ((int)(((byte)(0)))), ((int)(((byte)(0))))); + this.smartMonthCalendar1.Header1ButtonColor = System.Drawing.Color.FromArgb(((int)(((byte)(58)))), ((int)(((byte)(110)))), ((int)(((byte)(165))))); + this.smartMonthCalendar1.Header1ButtonDownColor = System.Drawing.Color.FromArgb(((int)(((byte)(56)))), ((int)(((byte)(76)))), ((int)(((byte)(129))))); + this.smartMonthCalendar1.Header1ButtonOutlineColor = System.Drawing.Color.FromArgb(((int)(((byte)(58)))), ((int)(((byte)(110)))), ((int)(((byte)(165))))); + this.smartMonthCalendar1.Header1ButtonTextColor = System.Drawing.Color.White; + this.smartMonthCalendar1.Header1Color = System.Drawing.Color.FromArgb(((int)(((byte)(58)))), ((int)(((byte)(110)))), ((int)(((byte)(165))))); + this.smartMonthCalendar1.Header1Font = new System.Drawing.Font("Arial", 10F, System.Drawing.FontStyle.Bold); + this.smartMonthCalendar1.Header1TextColor = System.Drawing.Color.White; + this.smartMonthCalendar1.Header1Visible = true; + this.smartMonthCalendar1.Header2Color = System.Drawing.Color.FromArgb(((int)(((byte)(219)))), ((int)(((byte)(229)))), ((int)(((byte)(244))))); + this.smartMonthCalendar1.Header2Font = new System.Drawing.Font("Arial", 10F, System.Drawing.FontStyle.Bold); + this.smartMonthCalendar1.Header2SatTextColor = System.Drawing.Color.FromArgb(((int)(((byte)(56)))), ((int)(((byte)(76)))), ((int)(((byte)(129))))); + this.smartMonthCalendar1.Header2SunTextColor = System.Drawing.Color.Red; + this.smartMonthCalendar1.Header2TextColor = System.Drawing.Color.Black; + this.smartMonthCalendar1.Header2Visible = true; + this.smartMonthCalendar1.HeaderButtonHeightOffset = 0; + this.smartMonthCalendar1.HeaderButtonLeftOffset = 0; + this.smartMonthCalendar1.HeaderButtonTopOffset = 0; + this.smartMonthCalendar1.HeaderButtonWidthOffset = 0; + this.smartMonthCalendar1.HeadersLanguage = SmartX.SmartMonthCalendar.HeaderLanguage.English; + this.smartMonthCalendar1.Location = new System.Drawing.Point(84, 64); + this.smartMonthCalendar1.MarkerColor = System.Drawing.Color.Red; + this.smartMonthCalendar1.MarkerImages = null; + this.smartMonthCalendar1.MarkerInfos = null; + this.smartMonthCalendar1.MarkerOffsetX = 0; + this.smartMonthCalendar1.MarkerOffsetY = 0; + this.smartMonthCalendar1.MarkerPosition = SmartX.SmartMonthCalendar.MarkerPositions.LeftTop; + this.smartMonthCalendar1.MarkerSize = 10; + this.smartMonthCalendar1.Name = "smartMonthCalendar1"; + this.smartMonthCalendar1.OverlapOptimize = true; + this.smartMonthCalendar1.SelectedDay = -1; + this.smartMonthCalendar1.SelectedShape = SmartX.SmartMonthCalendar.SelectShape.Rectangle; + this.smartMonthCalendar1.SelectedTodayShape = SmartX.SmartMonthCalendar.SelectShape.Rectangle; + this.smartMonthCalendar1.SelectFillColor = System.Drawing.Color.FromArgb(((int)(((byte)(219)))), ((int)(((byte)(229)))), ((int)(((byte)(244))))); + this.smartMonthCalendar1.SelectOutlineColor = System.Drawing.Color.FromArgb(((int)(((byte)(58)))), ((int)(((byte)(109)))), ((int)(((byte)(204))))); + this.smartMonthCalendar1.SelectOutLineWidth = 2; + this.smartMonthCalendar1.SelectTextColor = System.Drawing.Color.FromArgb(((int)(((byte)(58)))), ((int)(((byte)(109)))), ((int)(((byte)(204))))); + this.smartMonthCalendar1.SeparateHorLineVisible = false; + this.smartMonthCalendar1.SeparateLineColor = System.Drawing.Color.FromArgb(((int)(((byte)(125)))), ((int)(((byte)(125)))), ((int)(((byte)(125))))); + this.smartMonthCalendar1.SeparateVerLineVisible = false; + this.smartMonthCalendar1.Size = new System.Drawing.Size(718, 314); + this.smartMonthCalendar1.TabIndex = 0; + this.smartMonthCalendar1.Text = "smartMonthCalendar1"; + this.smartMonthCalendar1.TextColor = System.Drawing.Color.Black; + this.smartMonthCalendar1.TextColorDisable = System.Drawing.Color.Gray; + this.smartMonthCalendar1.TextOffsetX = 0; + this.smartMonthCalendar1.TextOffsetY = 0; + this.smartMonthCalendar1.TodayFillColor = System.Drawing.Color.FromArgb(((int)(((byte)(58)))), ((int)(((byte)(109)))), ((int)(((byte)(204))))); + this.smartMonthCalendar1.TodayOutlineColor = System.Drawing.Color.FromArgb(((int)(((byte)(27)))), ((int)(((byte)(42)))), ((int)(((byte)(82))))); + this.smartMonthCalendar1.TodayOutlineWidth = 1; + this.smartMonthCalendar1.TodayTextColor = System.Drawing.Color.White; + // + // ControlMenuSystemTime + // + this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi; + this.Controls.Add(this.smartGroupBox1); + this.Name = "ControlMenuSystemTime"; + this.Size = new System.Drawing.Size(909, 664); + this.smartGroupBox1.ResumeLayout(false); + this.ResumeLayout(false); + + } + + #endregion + + private SmartX.SmartGroupBox smartGroupBox1; + private SmartX.SmartMonthCalendar smartMonthCalendar1; + } +} diff --git a/INT_PT002/Controls/System/ControlMenuSystemTime.cs b/INT_PT002/Controls/System/ControlMenuSystemTime.cs new file mode 100644 index 0000000..40dd062 --- /dev/null +++ b/INT_PT002/Controls/System/ControlMenuSystemTime.cs @@ -0,0 +1,55 @@ +using System; +using System.Linq; +using System.Collections.Generic; +using System.ComponentModel; +using System.Drawing; +using System.Data; +using System.Text; +using System.Windows.Forms; + +using INT_PT002.Forms; +using SmartX; + +namespace INT_PT002.Controls +{ + public partial class ControlMenuSystemTime : UserControl + { + #region Field + private FormMenu m_ParentForm; + #endregion + + #region Constructor + public ControlMenuSystemTime(FormMenu parent) + { + InitializeComponent(); + + this.ParentForm = parent; + this.Initialize(); + } + #endregion + + #region Property + public FormMenu ParentForm + { + get { return this.m_ParentForm; } + private set { this.m_ParentForm = value; } + } + #endregion + + #region Method + private void Initialize() + { + this.smartGroupBox1.Text = "System > Time"; + } + + public void DisplayRefresh() + { + this.smartMonthCalendar1.Today = DateTime.Now; + } + #endregion + + #region Event Handler + + #endregion + } +} diff --git a/INT_PT002/Controls/System/ControlMenuSystemTime.resx b/INT_PT002/Controls/System/ControlMenuSystemTime.resx new file mode 100644 index 0000000..3e7a6d2 --- /dev/null +++ b/INT_PT002/Controls/System/ControlMenuSystemTime.resx @@ -0,0 +1,123 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + WEBPAD + + \ No newline at end of file diff --git a/INT_PT002/Controls/System/ControlMenuSystemUpdate.Designer.cs b/INT_PT002/Controls/System/ControlMenuSystemUpdate.Designer.cs new file mode 100644 index 0000000..5e66a55 --- /dev/null +++ b/INT_PT002/Controls/System/ControlMenuSystemUpdate.Designer.cs @@ -0,0 +1,67 @@ +namespace INT_PT002.Controls +{ + partial class ControlMenuSystemUpdate + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Component Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + this.smartGroupBox1 = new SmartX.SmartGroupBox(); + this.SuspendLayout(); + // + // smartGroupBox1 + // + this.smartGroupBox1.BackGround = null; + this.smartGroupBox1.BackGroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); + this.smartGroupBox1.BackImage = null; + this.smartGroupBox1.FrameLineColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(58)))), ((int)(((byte)(110)))), ((int)(((byte)(165))))); + this.smartGroupBox1.FrameLineColor2 = System.Drawing.Color.FromArgb(((int)(((byte)(58)))), ((int)(((byte)(110)))), ((int)(((byte)(165))))); + this.smartGroupBox1.FrameLineThickness = 2; + this.smartGroupBox1.FrameStyle = SmartX.SmartGroupBox.FRAMESTYLES.HeaderBar; + this.smartGroupBox1.HeaderHeightOffset = 9; + this.smartGroupBox1.Location = new System.Drawing.Point(0, 0); + this.smartGroupBox1.Name = "smartGroupBox1"; + this.smartGroupBox1.RoundRadius = 5; + this.smartGroupBox1.Size = new System.Drawing.Size(909, 664); + this.smartGroupBox1.TabIndex = 2; + this.smartGroupBox1.Text = "smartGroupBox1"; + this.smartGroupBox1.TextColor = System.Drawing.Color.White; + // + // ControlMenuSystemUpdate + // + this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi; + this.Controls.Add(this.smartGroupBox1); + this.Name = "ControlMenuSystemUpdate"; + this.Size = new System.Drawing.Size(909, 664); + this.ResumeLayout(false); + + } + + #endregion + + private SmartX.SmartGroupBox smartGroupBox1; + } +} diff --git a/INT_PT002/Controls/System/ControlMenuSystemUpdate.cs b/INT_PT002/Controls/System/ControlMenuSystemUpdate.cs new file mode 100644 index 0000000..24312d0 --- /dev/null +++ b/INT_PT002/Controls/System/ControlMenuSystemUpdate.cs @@ -0,0 +1,54 @@ +using System; +using System.Linq; +using System.Collections.Generic; +using System.ComponentModel; +using System.Drawing; +using System.Data; +using System.Text; +using System.Windows.Forms; + +using INT_PT002.Forms; + +namespace INT_PT002.Controls +{ + public partial class ControlMenuSystemUpdate : UserControl + { + #region Field + private FormMenu m_ParentForm; + #endregion + + #region Constructor + public ControlMenuSystemUpdate(FormMenu parent) + { + InitializeComponent(); + + this.ParentForm = parent; + this.Initialize(); + } + #endregion + + #region Property + public FormMenu ParentForm + { + get { return this.m_ParentForm; } + private set { this.m_ParentForm = value; } + } + #endregion + + #region Method + private void Initialize() + { + this.smartGroupBox1.Text = "System > Update"; + } + + public void DisplayRefresh() + { + + } + #endregion + + #region Event Handler + + #endregion + } +} diff --git a/INT_PT002/Controls/System/ControlMenuSystemUpdate.resx b/INT_PT002/Controls/System/ControlMenuSystemUpdate.resx new file mode 100644 index 0000000..3e7a6d2 --- /dev/null +++ b/INT_PT002/Controls/System/ControlMenuSystemUpdate.resx @@ -0,0 +1,123 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + WEBPAD + + \ No newline at end of file diff --git a/INT_PT002/DataStore/Define.cs b/INT_PT002/DataStore/Define.cs index fa17c84..5a37b74 100644 --- a/INT_PT002/DataStore/Define.cs +++ b/INT_PT002/DataStore/Define.cs @@ -31,31 +31,36 @@ namespace INT_PT002.DataStore public enum E_MenuRecipeStore { - None, + _0_None, + _1_Setting, }; public enum E_MenuSettingStore { - Communication, - Configuration, - UserEditor, + _0_None, + _1_Configuration, + _2_Communication, + _3_UserEditor, }; public enum E_MenuManualStore { - IoTest, - MotorSetting, + _0_None, + _1_IoTest, + _2_MotorSetting, }; public enum E_MenuLogStore { - History, - Inspection, - Alarm, + _0_None, + _1_History, + _2_Inspection, + _3_Alarm, }; public enum E_MenuSystemStore { - Information, - Time, - Equipment, - Update, + _0_None, + _1_Information, + _2_Time, + _3_Equipment, + _4_Update, }; public enum E_ProgressStatus diff --git a/INT_PT002/DataStore/DiffData.cs b/INT_PT002/DataStore/DiffData.cs new file mode 100644 index 0000000..8d8aae8 --- /dev/null +++ b/INT_PT002/DataStore/DiffData.cs @@ -0,0 +1,60 @@ +using System; +using System.Linq; +using System.Collections.Generic; +using System.Text; + +namespace INT_PT002.DataStore +{ + /// + /// 차압센서 + /// + public class DiffData + { + #region Field + private string m_MAdc; + private string m_SecBufDiff; + private string m_SecBufSum; + private string m_DiffMean; + #endregion + + #region Constructor + public DiffData() + { + this.Initialize(); + } + #endregion + + #region Property + public string MAdc + { + get { return this.m_MAdc; } + set { this.m_MAdc = value; } + } + public string SecBufDiff + { + get { return this.m_SecBufDiff; } + set { this.m_SecBufDiff = value; } + } + public string SecBufSum + { + get { return this.m_SecBufSum; } + set { this.m_SecBufSum = value; } + } + public string DiffMean + { + get { return this.m_DiffMean; } + set { this.m_DiffMean = value; } + } + #endregion + + #region Method + private void Initialize() + { + this.MAdc = "0.00"; + this.SecBufDiff = "0.00"; + this.SecBufSum = "0.00"; + this.DiffMean = "0.00"; + } + #endregion + } +} diff --git a/INT_PT002/DataStore/DispData.cs b/INT_PT002/DataStore/DispData.cs new file mode 100644 index 0000000..0447201 --- /dev/null +++ b/INT_PT002/DataStore/DispData.cs @@ -0,0 +1,61 @@ +using System; +using System.Linq; +using System.Collections.Generic; +using System.Text; + +namespace INT_PT002.DataStore +{ + /// + /// 변위센서 데이터 + /// + public class DispData + { + #region Field + private string m_RData; + private string m_MData; + private string m_MDataDiff; + private string m_STD; + + #endregion + + #region Constructor + public DispData() + { + this.Initialize(); + } + #endregion + + #region Property + public string RData + { + get { return this.m_RData; } + set { this.m_RData = value; } + } + public string MData + { + get { return this.m_MData; } + set { this.m_MData = value; } + } + public string MDataDiff + { + get { return this.m_MDataDiff; } + set { this.m_MDataDiff = value; } + } + public string STD + { + get { return this.m_STD; } + set { this.m_STD = value; } + } + #endregion + + #region Method + private void Initialize() + { + this.RData = "0.00"; + this.MData = "0.00"; + this.MDataDiff = "0.00"; + this.STD = "0.00"; + } + #endregion + } +} diff --git a/INT_PT002/DataStore/LeakData.cs b/INT_PT002/DataStore/LeakData.cs index b3584b5..d4c68ae 100644 --- a/INT_PT002/DataStore/LeakData.cs +++ b/INT_PT002/DataStore/LeakData.cs @@ -1,6 +1,7 @@ using System; using System.Linq; using System.Collections.Generic; +using System.Collections.ObjectModel; using System.Text; namespace INT_PT002.DataStore @@ -11,18 +12,15 @@ namespace INT_PT002.DataStore private Define.E_ProgressStatus m_ProgressStatus; private Define.E_JudgmentStatus m_JudgmentStatus; - private string m_CurrentValueSign; - private string m_CurrentValue; - private string m_MaxValueSign; - private string m_MaxValue; - private string m_StDev; - private string m_ResultSD; + private Collection m_CollDispData; + private Collection m_CollDiffData; + #endregion #region Constructor - public LeakData() + public LeakData(int column) { - this.Initialize(); + this.Initialize(column); } #endregion @@ -38,62 +36,32 @@ namespace INT_PT002.DataStore set { this.m_JudgmentStatus = value; } } - public string CurrentValueSign + public Collection CollDispData { - get { return this.m_CurrentValueSign; } - set { this.m_CurrentValueSign = value; } + get { return this.m_CollDispData; } + set { this.m_CollDispData = value; } } - /// - /// 소수점X (3) - /// - public string CurrentValue + public Collection CollDiffData { - get { return this.m_CurrentValue; } - set { this.m_CurrentValue = value; } - } - public string MaxValueSign - { - get { return this.m_MaxValueSign; } - set { this.m_MaxValueSign = value; } - } - /// - /// 소수점X (3) - /// - public string MaxValue - { - get { return this.m_MaxValue; } - set { this.m_MaxValue = value; } - } - /// - /// 소수점X (4) - /// - public string StDev - { - get { return this.m_StDev; } - set { this.m_StDev = value; } - } - /// - /// 소수점X (4) - /// - public string ResultSD - { - get { return this.m_ResultSD; } - set { this.m_ResultSD = value; } + get { return this.m_CollDiffData; } + set { this.m_CollDiffData = value; } } #endregion #region Method - private void Initialize() + private void Initialize(int column) { this.ProgressStatus = Define.E_ProgressStatus.None; this.JudgmentStatus = Define.E_JudgmentStatus.None; - this.CurrentValueSign = "+"; - this.CurrentValue = "0.000"; - this.MaxValueSign = "+"; - this.MaxValue = "0.000"; - this.StDev = "0.0000"; - this.ResultSD = "0.0000"; + this.CollDispData = new Collection(); + this.CollDiffData = new Collection(); + + for (int i = 0; i < column; i++) + { + this.CollDispData.Add(new DispData()); + this.CollDiffData.Add(new DiffData()); + } } #endregion } diff --git a/INT_PT002/DataStore/Recipe.cs b/INT_PT002/DataStore/Recipe.cs new file mode 100644 index 0000000..473a103 --- /dev/null +++ b/INT_PT002/DataStore/Recipe.cs @@ -0,0 +1,186 @@ +using System; +using System.Linq; +using System.Collections.Generic; +using System.Runtime.InteropServices; +using System.Text; + +namespace INT_PT002.DataStore +{ + public class Recipe + { + #region Field + private int m_NUMBER; + private string m_NAME; + private string m_LOT; + + private string m_DISP_JUDG_STD_LEVEL; + private string m_DISP_JUDG_MIN_LEVEL; + private string m_DISP_JUDG_EMPTY_LEVEL; + private int m_DISP_HOLD_DELAY_MSEC; + + private string m_DIFF_LR_SECOND; + private string m_DIFF_LR_TOTAL; + private string m_DIFF_LR_MEAN; + private int m_DIFF_HOLD_DELAY_MSEC; + + private int m_VACUUM_RELIEF; + private int m_VACUUM_HOLD1; + private int m_VACUUM_HOLD2; + private int m_VACUUM_BLOWOFF; + private string m_VACUUM_GUAGE_LEVEL; + #endregion + + #region Constructor + public Recipe() + { + this.Initialize(); + } + #endregion + + #region Property + public int NUMBER + { + get { return this.m_NUMBER; } + set { this.m_NUMBER = value; } + } + public string NAME + { + get { return this.m_NAME; } + set { this.m_NAME = value; } + } + public string LOT + { + get { return this.m_LOT; } + set { this.m_LOT = value; } + } + + public string DISP_JUDG_STD_LEVEL + { + get { return this.m_DISP_JUDG_STD_LEVEL; } + set { this.m_DISP_JUDG_STD_LEVEL = value; } + } + public string DISP_JUDG_MIN_LEVEL + { + get { return this.m_DISP_JUDG_MIN_LEVEL; } + set { this.m_DISP_JUDG_MIN_LEVEL = value; } + } + public string DISP_JUDG_EMPTY_LEVEL + { + get { return this.m_DISP_JUDG_EMPTY_LEVEL; } + set { this.m_DISP_JUDG_EMPTY_LEVEL = value; } + } + public int DISP_HOLD_DELAY_MSEC + { + get { return this.m_DISP_HOLD_DELAY_MSEC; } + set { this.m_DISP_HOLD_DELAY_MSEC = value; } + } + + public string DIFF_LR_SECOND + { + get { return this.m_DIFF_LR_SECOND; } + set { this.m_DIFF_LR_SECOND = value; } + } + public string DIFF_LR_TOTAL + { + get { return this.m_DIFF_LR_TOTAL; } + set { this.m_DIFF_LR_TOTAL = value; } + } + public string DIFF_LR_MEAN + { + get { return this.m_DIFF_LR_MEAN; } + set { this.m_DIFF_LR_MEAN = value; } + } + public int DIFF_HOLD_DELAY_MSEC + { + get { return this.m_DIFF_HOLD_DELAY_MSEC; } + set { this.m_DIFF_HOLD_DELAY_MSEC = value; } + } + + public int VACUUM_RELIEF + { + get { return this.m_VACUUM_RELIEF; } + set { this.m_VACUUM_RELIEF = value; } + } + public int VACUUM_HOLD1 + { + get { return this.m_VACUUM_HOLD1; } + set { this.m_VACUUM_HOLD1 = value; } + } + public int VACUUM_HOLD2 + { + get { return this.m_VACUUM_HOLD2; } + set { this.m_VACUUM_HOLD2 = value; } + } + public int VACUUM_BLOWOFF + { + get { return this.m_VACUUM_BLOWOFF; } + set { this.m_VACUUM_BLOWOFF = value; } + } + public string VACUUM_GUAGE_LEVEL + { + get { return this.m_VACUUM_GUAGE_LEVEL; } + set { this.m_VACUUM_GUAGE_LEVEL = value; } + } + #endregion + + #region Method + public void Initialize() + { + this.NUMBER = 1; + this.NAME = "INTECH 1"; + this.LOT = "LOT 1"; + + this.DISP_JUDG_STD_LEVEL = "0.30"; + this.DISP_JUDG_MIN_LEVEL = "1.00"; + this.DISP_JUDG_EMPTY_LEVEL = "7.50"; + this.DISP_HOLD_DELAY_MSEC = 100; + + this.DIFF_LR_SECOND = "500.00"; + this.DIFF_LR_TOTAL = "5000.00"; + this.DIFF_LR_MEAN = "2.00"; + this.DIFF_HOLD_DELAY_MSEC = 100; + + this.VACUUM_RELIEF = 20; + this.VACUUM_HOLD1 = 40; + this.VACUUM_HOLD2 = 1; + this.VACUUM_BLOWOFF = 10; + this.VACUUM_GUAGE_LEVEL = "88.0"; + } + #endregion + } + + #region StructRecipe + [StructLayout(LayoutKind.Sequential)] + public struct StructRecipe + { + public int NUMBER; + [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 40)] + public string NAME; + [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 40)] + public string LOT; + + [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 12)] + public string DISP_JUDG_STD_LEVEL; + [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 12)] + public string DISP_JUDG_MIN_LEVEL; + [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 12)] + public string DISP_JUDG_EMPTY_LEVEL; + public int DISP_HOLD_DELAY_MSEC; + + [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 12)] + public string DIFF_LR_SECOND; + [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 12)] + public string DIFF_LR_TOTAL; + [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 12)] + public string DIFF_LR_MEAN; + public int DIFF_HOLD_DELAY_MSEC; + + public int VACUUM_RELIEF; + public int VACUUM_HOLD1; + public int VACUUM_HOLD2; + public int VACUUM_BLOWOFF; + [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 10)] + public string VACUUM_GUAGE_LEVEL; + } + #endregion +} diff --git a/INT_PT002/DataStore/SystemConfiguration.cs b/INT_PT002/DataStore/SystemConfiguration.cs index 585c9b3..e9b9671 100644 --- a/INT_PT002/DataStore/SystemConfiguration.cs +++ b/INT_PT002/DataStore/SystemConfiguration.cs @@ -9,13 +9,20 @@ namespace INT_PT002.DataStore public class SystemConfiguration { #region Field - private int m_VacuumStartTime; - private int m_VacuumHoldTime; - private int m_VacuumBreakTime; - private int m_Chart1DrawStep; - private int m_Chart2DrawStep; - - private string m_OverRange; + private int m_RECIPE_NUMBER; + + private int m_CHART1_DRAW_STEP; + private int m_CHART2_DRAW_STEP; + + private int m_LCD_DATA_PERIOD; + private int m_CHATTERING; + private int m_JUDGMENT_DELAY_MSEC; + private int m_BUZZER_OP; + + private int m_SB_DIFF_FILTER; + private int m_SB_DIFF_MODE; + private int m_SB_DATA_MODE; + private int m_SB_DATA_PERIOD; #endregion #region Constructor @@ -26,49 +33,83 @@ namespace INT_PT002.DataStore #endregion #region Property - public int VacuumStartTime + public int RECIPE_NUMBER { - get { return this.m_VacuumStartTime; } - set { this.m_VacuumStartTime = value; } - } - public int VacuumHoldTime - { - get { return this.m_VacuumHoldTime; } - set { this.m_VacuumHoldTime = value; } - } - public int VacuumBreakTime - { - get { return this.m_VacuumBreakTime; } - set { this.m_VacuumBreakTime = value; } - } - public int Chart1DrawStep - { - get { return this.m_Chart1DrawStep; } - set { this.m_Chart1DrawStep = value; } - } - public int Chart2DrawStep - { - get { return this.m_Chart2DrawStep; } - set { this.m_Chart2DrawStep = value; } + get { return this.m_RECIPE_NUMBER; } + set { this.m_RECIPE_NUMBER = value; } } - public string OverRange + public int CHART1_DRAW_STEP { - get { return this.m_OverRange; } - set { this.m_OverRange = value; } + get { return this.m_CHART1_DRAW_STEP; } + set { this.m_CHART1_DRAW_STEP = value; } + } + public int CHART2_DRAW_STEP + { + get { return this.m_CHART2_DRAW_STEP; } + set { this.m_CHART2_DRAW_STEP = value; } + } + + public int LCD_DATA_PERIOD + { + get { return this.m_LCD_DATA_PERIOD; } + set { this.m_LCD_DATA_PERIOD = value; } + } + public int CHATTERING + { + get { return this.m_CHATTERING; } + set { this.m_CHATTERING = value; } + } + public int JUDGMENT_DELAY_MSEC + { + get { return this.m_JUDGMENT_DELAY_MSEC; } + set { this.m_JUDGMENT_DELAY_MSEC = value; } + } + public int BUZZER_OP + { + get { return this.m_BUZZER_OP; } + set { this.m_BUZZER_OP = value; } + } + + public int SB_DIFF_FILTER + { + get { return this.m_SB_DIFF_FILTER; } + set { this.m_SB_DIFF_FILTER = value; } + } + public int SB_DIFF_MODE + { + get { return this.m_SB_DIFF_MODE; } + set { this.m_SB_DIFF_MODE = value; } + } + public int SB_DATA_MODE + { + get { return this.m_SB_DATA_MODE; } + set { this.m_SB_DATA_MODE = value; } + } + public int SB_DATA_PERIOD + { + get { return this.m_SB_DATA_PERIOD; } + set { this.m_SB_DATA_PERIOD = value; } } #endregion #region Method public void Initialize() { - this.VacuumStartTime = 3; - this.VacuumHoldTime = 4; - this.VacuumBreakTime = 5; - this.Chart1DrawStep = 4; - this.Chart2DrawStep = 2; + this.RECIPE_NUMBER = 1; - this.OverRange = "10000"; + this.CHART1_DRAW_STEP = 4; + this.CHART2_DRAW_STEP = 2; + + this.LCD_DATA_PERIOD = 100; + this.CHATTERING = 500; + this.JUDGMENT_DELAY_MSEC = 2000; + this.BUZZER_OP = 1000; + + this.SB_DIFF_FILTER = 15; + this.SB_DIFF_MODE = 1; + this.SB_DATA_MODE = 2; + this.SB_DATA_PERIOD = 100; } #endregion } @@ -76,13 +117,19 @@ namespace INT_PT002.DataStore [StructLayout(LayoutKind.Sequential)] public struct StructSystemConfigurationItem { - public int VacuumStartTime; - public int VacuumHoldTime; - public int VacuumBreakTime; - public int Chart1DrawStep; - public int Chart2DrawStep; + public int RECIPE_NUMBER; - [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 15)] - public string OverRange; + public int CHART1_DRAW_STEP; + public int CHART2_DRAW_STEP; + + public int LCD_DATA_PERIOD; + public int CHATTERING; + public int JUDGMENT_DELAY_MSEC; + public int BUZZER_OP; + + public int SB_DIFF_FILTER; + public int SB_DIFF_MODE; + public int SB_DATA_MODE; + public int SB_DATA_PERIOD; } } diff --git a/INT_PT002/Forms/FormConfiguration.Designer.cs b/INT_PT002/Forms/FormConfiguration.Designer.cs index 22c99dd..250c543 100644 --- a/INT_PT002/Forms/FormConfiguration.Designer.cs +++ b/INT_PT002/Forms/FormConfiguration.Designer.cs @@ -44,17 +44,6 @@ this.smartLabel13 = new SmartX.SmartLabel(); this.labelChart1DrawStep = new SmartX.SmartLabel(); this.smartLabel11 = new SmartX.SmartLabel(); - this.smartLabel1 = new SmartX.SmartLabel(); - this.smartLabel6 = new SmartX.SmartLabel(); - this.labelOverRange = new SmartX.SmartLabel(); - this.smartLabel4 = new SmartX.SmartLabel(); - this.smartLabel5 = new SmartX.SmartLabel(); - this.smartLabel3 = new SmartX.SmartLabel(); - this.labelVacuumStartTime = new SmartX.SmartLabel(); - this.smartLabel7 = new SmartX.SmartLabel(); - this.labelVacuumHoldTime = new SmartX.SmartLabel(); - this.labelVacuumBreakTime = new SmartX.SmartLabel(); - this.smartLabel9 = new SmartX.SmartLabel(); this.buttonSetting = new SmartX.SmartButton(); this.buttonMainDisplay = new SmartX.SmartButton(); this.labelTime = new SmartX.SmartLabel(); @@ -378,17 +367,6 @@ this.smartGroupBox1.Controls.Add(this.smartLabel13); this.smartGroupBox1.Controls.Add(this.labelChart1DrawStep); this.smartGroupBox1.Controls.Add(this.smartLabel11); - this.smartGroupBox1.Controls.Add(this.smartLabel1); - this.smartGroupBox1.Controls.Add(this.smartLabel6); - this.smartGroupBox1.Controls.Add(this.labelOverRange); - this.smartGroupBox1.Controls.Add(this.smartLabel4); - this.smartGroupBox1.Controls.Add(this.smartLabel5); - this.smartGroupBox1.Controls.Add(this.smartLabel3); - this.smartGroupBox1.Controls.Add(this.labelVacuumStartTime); - this.smartGroupBox1.Controls.Add(this.smartLabel7); - this.smartGroupBox1.Controls.Add(this.labelVacuumHoldTime); - this.smartGroupBox1.Controls.Add(this.labelVacuumBreakTime); - this.smartGroupBox1.Controls.Add(this.smartLabel9); this.smartGroupBox1.Font = new System.Drawing.Font("New Gulim", 10F, System.Drawing.FontStyle.Bold); this.smartGroupBox1.FrameLineColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(58)))), ((int)(((byte)(110)))), ((int)(((byte)(165))))); this.smartGroupBox1.FrameLineColor2 = System.Drawing.Color.FromArgb(((int)(((byte)(58)))), ((int)(((byte)(110)))), ((int)(((byte)(165))))); @@ -497,263 +475,6 @@ this.smartLabel11.TextVAlign = SmartX.SmartLabel.TextVerAlign.Middle; this.smartLabel11.Wordwrap = false; // - // smartLabel1 - // - this.smartLabel1.BackGround = null; - this.smartLabel1.BackGroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); - this.smartLabel1.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(27)))), ((int)(((byte)(42)))), ((int)(((byte)(82))))); - this.smartLabel1.BorderStyle = SmartX.SmartLabel.BorderStyles.None; - this.smartLabel1.Font = new System.Drawing.Font("New Gulim", 10F, System.Drawing.FontStyle.Bold); - this.smartLabel1.LineSpacing = 0F; - this.smartLabel1.Location = new System.Drawing.Point(55, 130); - this.smartLabel1.Name = "smartLabel1"; - this.smartLabel1.OverlapOptimize = true; - this.smartLabel1.PasswordChar = '\0'; - this.smartLabel1.Radius = 3; - this.smartLabel1.RoundRectFillColor = System.Drawing.Color.LightBlue; - this.smartLabel1.Size = new System.Drawing.Size(150, 30); - this.smartLabel1.TabIndex = 66; - this.smartLabel1.Text = "상한 설정값"; - this.smartLabel1.TextColor = System.Drawing.Color.FromArgb(((int)(((byte)(27)))), ((int)(((byte)(42)))), ((int)(((byte)(82))))); - this.smartLabel1.TextColorDisable = System.Drawing.Color.Gray; - this.smartLabel1.TextHAlign = SmartX.SmartLabel.TextHorAlign.Middle; - this.smartLabel1.TextVAlign = SmartX.SmartLabel.TextVerAlign.Middle; - this.smartLabel1.Wordwrap = false; - // - // smartLabel6 - // - this.smartLabel6.BackGround = null; - this.smartLabel6.BackGroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); - this.smartLabel6.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(27)))), ((int)(((byte)(42)))), ((int)(((byte)(82))))); - this.smartLabel6.BorderStyle = SmartX.SmartLabel.BorderStyles.None; - this.smartLabel6.Font = new System.Drawing.Font("New Gulim", 10F, System.Drawing.FontStyle.Bold); - this.smartLabel6.LineSpacing = 0F; - this.smartLabel6.Location = new System.Drawing.Point(317, 238); - this.smartLabel6.Name = "smartLabel6"; - this.smartLabel6.OverlapOptimize = true; - this.smartLabel6.PasswordChar = '\0'; - this.smartLabel6.Radius = 3; - this.smartLabel6.RoundRectFillColor = System.Drawing.Color.LightBlue; - this.smartLabel6.Size = new System.Drawing.Size(70, 30); - this.smartLabel6.TabIndex = 78; - this.smartLabel6.Text = "sec"; - this.smartLabel6.TextColor = System.Drawing.Color.FromArgb(((int)(((byte)(27)))), ((int)(((byte)(42)))), ((int)(((byte)(82))))); - this.smartLabel6.TextColorDisable = System.Drawing.Color.Gray; - this.smartLabel6.TextHAlign = SmartX.SmartLabel.TextHorAlign.Left; - this.smartLabel6.TextVAlign = SmartX.SmartLabel.TextVerAlign.Middle; - this.smartLabel6.Wordwrap = false; - // - // labelOverRange - // - this.labelOverRange.BackGround = null; - this.labelOverRange.BackGroundColor = System.Drawing.Color.White; - this.labelOverRange.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(27)))), ((int)(((byte)(42)))), ((int)(((byte)(82))))); - this.labelOverRange.BorderStyle = SmartX.SmartLabel.BorderStyles.None; - this.labelOverRange.Font = new System.Drawing.Font("New Gulim", 12F, System.Drawing.FontStyle.Bold); - this.labelOverRange.LineSpacing = 0F; - this.labelOverRange.Location = new System.Drawing.Point(211, 130); - this.labelOverRange.Name = "labelOverRange"; - this.labelOverRange.OverlapOptimize = true; - this.labelOverRange.PasswordChar = '\0'; - this.labelOverRange.Radius = 3; - this.labelOverRange.RoundRectFillColor = System.Drawing.Color.LightBlue; - this.labelOverRange.Size = new System.Drawing.Size(100, 30); - this.labelOverRange.TabIndex = 67; - this.labelOverRange.Text = "1.123"; - this.labelOverRange.TextColor = System.Drawing.Color.FromArgb(((int)(((byte)(27)))), ((int)(((byte)(42)))), ((int)(((byte)(82))))); - this.labelOverRange.TextColorDisable = System.Drawing.Color.Gray; - this.labelOverRange.TextHAlign = SmartX.SmartLabel.TextHorAlign.Middle; - this.labelOverRange.TextVAlign = SmartX.SmartLabel.TextVerAlign.Middle; - this.labelOverRange.Wordwrap = false; - this.labelOverRange.Click += new System.EventHandler(this.labelOverRange_Click); - // - // smartLabel4 - // - this.smartLabel4.BackGround = null; - this.smartLabel4.BackGroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); - this.smartLabel4.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(27)))), ((int)(((byte)(42)))), ((int)(((byte)(82))))); - this.smartLabel4.BorderStyle = SmartX.SmartLabel.BorderStyles.None; - this.smartLabel4.Font = new System.Drawing.Font("New Gulim", 10F, System.Drawing.FontStyle.Bold); - this.smartLabel4.LineSpacing = 0F; - this.smartLabel4.Location = new System.Drawing.Point(317, 202); - this.smartLabel4.Name = "smartLabel4"; - this.smartLabel4.OverlapOptimize = true; - this.smartLabel4.PasswordChar = '\0'; - this.smartLabel4.Radius = 3; - this.smartLabel4.RoundRectFillColor = System.Drawing.Color.LightBlue; - this.smartLabel4.Size = new System.Drawing.Size(70, 30); - this.smartLabel4.TabIndex = 77; - this.smartLabel4.Text = "sec"; - this.smartLabel4.TextColor = System.Drawing.Color.FromArgb(((int)(((byte)(27)))), ((int)(((byte)(42)))), ((int)(((byte)(82))))); - this.smartLabel4.TextColorDisable = System.Drawing.Color.Gray; - this.smartLabel4.TextHAlign = SmartX.SmartLabel.TextHorAlign.Left; - this.smartLabel4.TextVAlign = SmartX.SmartLabel.TextVerAlign.Middle; - this.smartLabel4.Wordwrap = false; - // - // smartLabel5 - // - this.smartLabel5.BackGround = null; - this.smartLabel5.BackGroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); - this.smartLabel5.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(27)))), ((int)(((byte)(42)))), ((int)(((byte)(82))))); - this.smartLabel5.BorderStyle = SmartX.SmartLabel.BorderStyles.None; - this.smartLabel5.Font = new System.Drawing.Font("New Gulim", 10F, System.Drawing.FontStyle.Bold); - this.smartLabel5.LineSpacing = 0F; - this.smartLabel5.Location = new System.Drawing.Point(55, 166); - this.smartLabel5.Name = "smartLabel5"; - this.smartLabel5.OverlapOptimize = true; - this.smartLabel5.PasswordChar = '\0'; - this.smartLabel5.Radius = 3; - this.smartLabel5.RoundRectFillColor = System.Drawing.Color.LightBlue; - this.smartLabel5.Size = new System.Drawing.Size(150, 30); - this.smartLabel5.TabIndex = 68; - this.smartLabel5.Text = "진공시간"; - this.smartLabel5.TextColor = System.Drawing.Color.FromArgb(((int)(((byte)(27)))), ((int)(((byte)(42)))), ((int)(((byte)(82))))); - this.smartLabel5.TextColorDisable = System.Drawing.Color.Gray; - this.smartLabel5.TextHAlign = SmartX.SmartLabel.TextHorAlign.Middle; - this.smartLabel5.TextVAlign = SmartX.SmartLabel.TextVerAlign.Middle; - this.smartLabel5.Wordwrap = false; - // - // smartLabel3 - // - this.smartLabel3.BackGround = null; - this.smartLabel3.BackGroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); - this.smartLabel3.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(27)))), ((int)(((byte)(42)))), ((int)(((byte)(82))))); - this.smartLabel3.BorderStyle = SmartX.SmartLabel.BorderStyles.None; - this.smartLabel3.Font = new System.Drawing.Font("New Gulim", 10F, System.Drawing.FontStyle.Bold); - this.smartLabel3.LineSpacing = 0F; - this.smartLabel3.Location = new System.Drawing.Point(317, 166); - this.smartLabel3.Name = "smartLabel3"; - this.smartLabel3.OverlapOptimize = true; - this.smartLabel3.PasswordChar = '\0'; - this.smartLabel3.Radius = 3; - this.smartLabel3.RoundRectFillColor = System.Drawing.Color.LightBlue; - this.smartLabel3.Size = new System.Drawing.Size(70, 30); - this.smartLabel3.TabIndex = 76; - this.smartLabel3.Text = "sec"; - this.smartLabel3.TextColor = System.Drawing.Color.FromArgb(((int)(((byte)(27)))), ((int)(((byte)(42)))), ((int)(((byte)(82))))); - this.smartLabel3.TextColorDisable = System.Drawing.Color.Gray; - this.smartLabel3.TextHAlign = SmartX.SmartLabel.TextHorAlign.Left; - this.smartLabel3.TextVAlign = SmartX.SmartLabel.TextVerAlign.Middle; - this.smartLabel3.Wordwrap = false; - // - // labelVacuumStartTime - // - this.labelVacuumStartTime.BackGround = null; - this.labelVacuumStartTime.BackGroundColor = System.Drawing.Color.White; - this.labelVacuumStartTime.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(27)))), ((int)(((byte)(42)))), ((int)(((byte)(82))))); - this.labelVacuumStartTime.BorderStyle = SmartX.SmartLabel.BorderStyles.None; - this.labelVacuumStartTime.Font = new System.Drawing.Font("New Gulim", 12F, System.Drawing.FontStyle.Bold); - this.labelVacuumStartTime.LineSpacing = 0F; - this.labelVacuumStartTime.Location = new System.Drawing.Point(211, 166); - this.labelVacuumStartTime.Name = "labelVacuumStartTime"; - this.labelVacuumStartTime.OverlapOptimize = true; - this.labelVacuumStartTime.PasswordChar = '\0'; - this.labelVacuumStartTime.Radius = 3; - this.labelVacuumStartTime.RoundRectFillColor = System.Drawing.Color.LightBlue; - this.labelVacuumStartTime.Size = new System.Drawing.Size(100, 30); - this.labelVacuumStartTime.TabIndex = 69; - this.labelVacuumStartTime.Text = "100"; - this.labelVacuumStartTime.TextColor = System.Drawing.Color.FromArgb(((int)(((byte)(27)))), ((int)(((byte)(42)))), ((int)(((byte)(82))))); - this.labelVacuumStartTime.TextColorDisable = System.Drawing.Color.Gray; - this.labelVacuumStartTime.TextHAlign = SmartX.SmartLabel.TextHorAlign.Middle; - this.labelVacuumStartTime.TextVAlign = SmartX.SmartLabel.TextVerAlign.Middle; - this.labelVacuumStartTime.Wordwrap = false; - this.labelVacuumStartTime.Click += new System.EventHandler(this.labelVacuumStartTime_Click); - // - // smartLabel7 - // - this.smartLabel7.BackGround = null; - this.smartLabel7.BackGroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); - this.smartLabel7.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(27)))), ((int)(((byte)(42)))), ((int)(((byte)(82))))); - this.smartLabel7.BorderStyle = SmartX.SmartLabel.BorderStyles.None; - this.smartLabel7.Font = new System.Drawing.Font("New Gulim", 10F, System.Drawing.FontStyle.Bold); - this.smartLabel7.LineSpacing = 0F; - this.smartLabel7.Location = new System.Drawing.Point(55, 202); - this.smartLabel7.Name = "smartLabel7"; - this.smartLabel7.OverlapOptimize = true; - this.smartLabel7.PasswordChar = '\0'; - this.smartLabel7.Radius = 3; - this.smartLabel7.RoundRectFillColor = System.Drawing.Color.LightBlue; - this.smartLabel7.Size = new System.Drawing.Size(150, 30); - this.smartLabel7.TabIndex = 70; - this.smartLabel7.Text = "진공유지시간"; - this.smartLabel7.TextColor = System.Drawing.Color.FromArgb(((int)(((byte)(27)))), ((int)(((byte)(42)))), ((int)(((byte)(82))))); - this.smartLabel7.TextColorDisable = System.Drawing.Color.Gray; - this.smartLabel7.TextHAlign = SmartX.SmartLabel.TextHorAlign.Middle; - this.smartLabel7.TextVAlign = SmartX.SmartLabel.TextVerAlign.Middle; - this.smartLabel7.Wordwrap = false; - // - // labelVacuumHoldTime - // - this.labelVacuumHoldTime.BackGround = null; - this.labelVacuumHoldTime.BackGroundColor = System.Drawing.Color.White; - this.labelVacuumHoldTime.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(27)))), ((int)(((byte)(42)))), ((int)(((byte)(82))))); - this.labelVacuumHoldTime.BorderStyle = SmartX.SmartLabel.BorderStyles.None; - this.labelVacuumHoldTime.Font = new System.Drawing.Font("New Gulim", 12F, System.Drawing.FontStyle.Bold); - this.labelVacuumHoldTime.LineSpacing = 0F; - this.labelVacuumHoldTime.Location = new System.Drawing.Point(211, 202); - this.labelVacuumHoldTime.Name = "labelVacuumHoldTime"; - this.labelVacuumHoldTime.OverlapOptimize = true; - this.labelVacuumHoldTime.PasswordChar = '\0'; - this.labelVacuumHoldTime.Radius = 3; - this.labelVacuumHoldTime.RoundRectFillColor = System.Drawing.Color.LightBlue; - this.labelVacuumHoldTime.Size = new System.Drawing.Size(100, 30); - this.labelVacuumHoldTime.TabIndex = 71; - this.labelVacuumHoldTime.Text = "100"; - this.labelVacuumHoldTime.TextColor = System.Drawing.Color.FromArgb(((int)(((byte)(27)))), ((int)(((byte)(42)))), ((int)(((byte)(82))))); - this.labelVacuumHoldTime.TextColorDisable = System.Drawing.Color.Gray; - this.labelVacuumHoldTime.TextHAlign = SmartX.SmartLabel.TextHorAlign.Middle; - this.labelVacuumHoldTime.TextVAlign = SmartX.SmartLabel.TextVerAlign.Middle; - this.labelVacuumHoldTime.Wordwrap = false; - this.labelVacuumHoldTime.Click += new System.EventHandler(this.labelVacuumHoldTime_Click); - // - // labelVacuumBreakTime - // - this.labelVacuumBreakTime.BackGround = null; - this.labelVacuumBreakTime.BackGroundColor = System.Drawing.Color.White; - this.labelVacuumBreakTime.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(27)))), ((int)(((byte)(42)))), ((int)(((byte)(82))))); - this.labelVacuumBreakTime.BorderStyle = SmartX.SmartLabel.BorderStyles.None; - this.labelVacuumBreakTime.Font = new System.Drawing.Font("New Gulim", 12F, System.Drawing.FontStyle.Bold); - this.labelVacuumBreakTime.LineSpacing = 0F; - this.labelVacuumBreakTime.Location = new System.Drawing.Point(211, 238); - this.labelVacuumBreakTime.Name = "labelVacuumBreakTime"; - this.labelVacuumBreakTime.OverlapOptimize = true; - this.labelVacuumBreakTime.PasswordChar = '\0'; - this.labelVacuumBreakTime.Radius = 3; - this.labelVacuumBreakTime.RoundRectFillColor = System.Drawing.Color.LightBlue; - this.labelVacuumBreakTime.Size = new System.Drawing.Size(100, 30); - this.labelVacuumBreakTime.TabIndex = 73; - this.labelVacuumBreakTime.Text = "100"; - this.labelVacuumBreakTime.TextColor = System.Drawing.Color.FromArgb(((int)(((byte)(27)))), ((int)(((byte)(42)))), ((int)(((byte)(82))))); - this.labelVacuumBreakTime.TextColorDisable = System.Drawing.Color.Gray; - this.labelVacuumBreakTime.TextHAlign = SmartX.SmartLabel.TextHorAlign.Middle; - this.labelVacuumBreakTime.TextVAlign = SmartX.SmartLabel.TextVerAlign.Middle; - this.labelVacuumBreakTime.Wordwrap = false; - this.labelVacuumBreakTime.Click += new System.EventHandler(this.labelVacuumBreakTime_Click); - // - // smartLabel9 - // - this.smartLabel9.BackGround = null; - this.smartLabel9.BackGroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); - this.smartLabel9.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(27)))), ((int)(((byte)(42)))), ((int)(((byte)(82))))); - this.smartLabel9.BorderStyle = SmartX.SmartLabel.BorderStyles.None; - this.smartLabel9.Font = new System.Drawing.Font("New Gulim", 10F, System.Drawing.FontStyle.Bold); - this.smartLabel9.LineSpacing = 0F; - this.smartLabel9.Location = new System.Drawing.Point(55, 238); - this.smartLabel9.Name = "smartLabel9"; - this.smartLabel9.OverlapOptimize = true; - this.smartLabel9.PasswordChar = '\0'; - this.smartLabel9.Radius = 3; - this.smartLabel9.RoundRectFillColor = System.Drawing.Color.LightBlue; - this.smartLabel9.Size = new System.Drawing.Size(150, 30); - this.smartLabel9.TabIndex = 72; - this.smartLabel9.Text = "파기시간"; - this.smartLabel9.TextColor = System.Drawing.Color.FromArgb(((int)(((byte)(27)))), ((int)(((byte)(42)))), ((int)(((byte)(82))))); - this.smartLabel9.TextColorDisable = System.Drawing.Color.Gray; - this.smartLabel9.TextHAlign = SmartX.SmartLabel.TextHorAlign.Middle; - this.smartLabel9.TextVAlign = SmartX.SmartLabel.TextVerAlign.Middle; - this.smartLabel9.Wordwrap = false; - // // buttonSetting // this.buttonSetting.BackGround = this.smartForm1; @@ -868,19 +589,8 @@ private SmartX.SmartForm smartForm1; private SmartX.SmartLabel labelTime; - private SmartX.SmartLabel labelVacuumBreakTime; - private SmartX.SmartLabel smartLabel9; - private SmartX.SmartLabel labelVacuumHoldTime; - private SmartX.SmartLabel smartLabel7; - private SmartX.SmartLabel labelVacuumStartTime; - private SmartX.SmartLabel smartLabel5; - private SmartX.SmartLabel labelOverRange; - private SmartX.SmartLabel smartLabel1; private SmartX.SmartButton buttonSetting; private SmartX.SmartButton buttonMainDisplay; - private SmartX.SmartLabel smartLabel6; - private SmartX.SmartLabel smartLabel4; - private SmartX.SmartLabel smartLabel3; private SmartX.SmartGroupBox smartGroupBox2; private SmartX.SmartGroupBox smartGroupBox1; private SmartX.SmartLabel smartLabel10; diff --git a/INT_PT002/Forms/FormConfiguration.cs b/INT_PT002/Forms/FormConfiguration.cs index 943ce6f..07b3a55 100644 --- a/INT_PT002/Forms/FormConfiguration.cs +++ b/INT_PT002/Forms/FormConfiguration.cs @@ -45,27 +45,27 @@ namespace INT_PT002.Forms { string value = ""; - value = Helper.StringToDecimalPlaces(this.ParentForm.SystemConfig.OverRange, this.ParentForm.DecimalPlaces4); - if (this.labelOverRange.Text != value) - this.labelOverRange.Text = value; + //value = Helper.StringToDecimalPlaces(this.ParentForm.SystemConfig.OverRange, this.ParentForm.DecimalPlaces4); + //if (this.labelOverRange.Text != value) + // this.labelOverRange.Text = value; - value = this.ParentForm.SystemConfig.VacuumStartTime.ToString(); - if (this.labelVacuumStartTime.Text != value) - this.labelVacuumStartTime.Text = value; + //value = this.ParentForm.SystemConfig.VacuumStartTime.ToString(); + //if (this.labelVacuumStartTime.Text != value) + // this.labelVacuumStartTime.Text = value; - value = this.ParentForm.SystemConfig.VacuumHoldTime.ToString(); - if (this.labelVacuumHoldTime.Text != value) - this.labelVacuumHoldTime.Text = value; + //value = this.ParentForm.SystemConfig.VacuumHoldTime.ToString(); + //if (this.labelVacuumHoldTime.Text != value) + // this.labelVacuumHoldTime.Text = value; - value = this.ParentForm.SystemConfig.VacuumBreakTime.ToString(); - if (this.labelVacuumBreakTime.Text != value) - this.labelVacuumBreakTime.Text = value; + //value = this.ParentForm.SystemConfig.VacuumBreakTime.ToString(); + //if (this.labelVacuumBreakTime.Text != value) + // this.labelVacuumBreakTime.Text = value; - value = this.ParentForm.SystemConfig.Chart1DrawStep.ToString(); + value = this.ParentForm.SystemConfig.CHART1_DRAW_STEP.ToString(); if (this.labelChart1DrawStep.Text != value) this.labelChart1DrawStep.Text = value; - value = this.ParentForm.SystemConfig.Chart2DrawStep.ToString(); + value = this.ParentForm.SystemConfig.CHART2_DRAW_STEP.ToString(); if (this.labelChart2DrawStep.Text != value) this.labelChart2DrawStep.Text = value; } @@ -77,58 +77,58 @@ namespace INT_PT002.Forms this.ParentForm.FormChange((int)Define.E_FormStore.FormMainDisplay); } - private void labelOverRange_Click(object sender, EventArgs e) - { - DialogFormNumKeyPad myKeypad = new DialogFormNumKeyPad(this.labelOverRange.Text, 6, 4, false); + //private void labelOverRange_Click(object sender, EventArgs e) + //{ + // DialogFormNumKeyPad myKeypad = new DialogFormNumKeyPad(this.labelOverRange.Text, 6, 4, false); - if (myKeypad.ShowDialog() == DialogResult.OK) - { - this.labelOverRange.Text = myKeypad.StringValue; - this.ParentForm.SystemConfig.OverRange = myKeypad.StringValue.Replace(".", ""); + // if (myKeypad.ShowDialog() == DialogResult.OK) + // { + // this.labelOverRange.Text = myKeypad.StringValue; + // this.ParentForm.SystemConfig.OverRange = myKeypad.StringValue.Replace(".", ""); - this.ParentForm.SaveSystemConfigurationFile(this.ParentForm.SystemConfig); - this.ParentForm.TransferDataStream6(CommunicationCommand.Write, CommunicationID.MainBoard, CommunicationAddress._2301_OverRange, this.ParentForm.SystemConfig.OverRange); - } - } - private void labelVacuumStartTime_Click(object sender, EventArgs e) - { - DialogFormNumKeyPad myKeypad = new DialogFormNumKeyPad(this.labelVacuumStartTime.Text, 3, 0, false); + // this.ParentForm.SaveSystemConfigurationFile(this.ParentForm.SystemConfig); + // this.ParentForm.TransferDataStream6(CommunicationCommand.Write, CommunicationID.MainBoard, CommunicationAddress._2301_OverRange, this.ParentForm.SystemConfig.OverRange); + // } + //} + //private void labelVacuumStartTime_Click(object sender, EventArgs e) + //{ + // DialogFormNumKeyPad myKeypad = new DialogFormNumKeyPad(this.labelVacuumStartTime.Text, 3, 0, false); - if (myKeypad.ShowDialog() == DialogResult.OK) - { - this.labelVacuumStartTime.Text = myKeypad.StringValue; - this.ParentForm.SystemConfig.VacuumStartTime = myKeypad.IntValue; + // if (myKeypad.ShowDialog() == DialogResult.OK) + // { + // this.labelVacuumStartTime.Text = myKeypad.StringValue; + // this.ParentForm.SystemConfig.VacuumStartTime = myKeypad.IntValue; - this.ParentForm.SaveSystemConfigurationFile(this.ParentForm.SystemConfig); - this.ParentForm.TransferDataStream4(CommunicationCommand.Write, CommunicationID.MainBoard, CommunicationAddress._5504_VacuumStartTime, myKeypad.StringValue); - } - } - private void labelVacuumHoldTime_Click(object sender, EventArgs e) - { - DialogFormNumKeyPad myKeypad = new DialogFormNumKeyPad(this.labelVacuumHoldTime.Text, 3, 0, false); + // this.ParentForm.SaveSystemConfigurationFile(this.ParentForm.SystemConfig); + // this.ParentForm.TransferDataStream4(CommunicationCommand.Write, CommunicationID.MainBoard, CommunicationAddress._5504_VacuumStartTime, myKeypad.StringValue); + // } + //} + //private void labelVacuumHoldTime_Click(object sender, EventArgs e) + //{ + // DialogFormNumKeyPad myKeypad = new DialogFormNumKeyPad(this.labelVacuumHoldTime.Text, 3, 0, false); - if (myKeypad.ShowDialog() == DialogResult.OK) - { - this.labelVacuumHoldTime.Text = myKeypad.StringValue; - this.ParentForm.SystemConfig.VacuumHoldTime = myKeypad.IntValue; + // if (myKeypad.ShowDialog() == DialogResult.OK) + // { + // this.labelVacuumHoldTime.Text = myKeypad.StringValue; + // this.ParentForm.SystemConfig.VacuumHoldTime = myKeypad.IntValue; - this.ParentForm.SaveSystemConfigurationFile(this.ParentForm.SystemConfig); - this.ParentForm.TransferDataStream4(CommunicationCommand.Write, CommunicationID.MainBoard, CommunicationAddress._5505_VacuumHoldTime, myKeypad.StringValue); - } - } - private void labelVacuumBreakTime_Click(object sender, EventArgs e) - { - DialogFormNumKeyPad myKeypad = new DialogFormNumKeyPad(this.labelVacuumBreakTime.Text, 3, 0, false); + // this.ParentForm.SaveSystemConfigurationFile(this.ParentForm.SystemConfig); + // this.ParentForm.TransferDataStream4(CommunicationCommand.Write, CommunicationID.MainBoard, CommunicationAddress._5505_VacuumHoldTime, myKeypad.StringValue); + // } + //} + //private void labelVacuumBreakTime_Click(object sender, EventArgs e) + //{ + // DialogFormNumKeyPad myKeypad = new DialogFormNumKeyPad(this.labelVacuumBreakTime.Text, 3, 0, false); - if (myKeypad.ShowDialog() == DialogResult.OK) - { - this.labelVacuumBreakTime.Text = myKeypad.StringValue; - this.ParentForm.SystemConfig.VacuumBreakTime = myKeypad.IntValue; + // if (myKeypad.ShowDialog() == DialogResult.OK) + // { + // this.labelVacuumBreakTime.Text = myKeypad.StringValue; + // this.ParentForm.SystemConfig.VacuumBreakTime = myKeypad.IntValue; - this.ParentForm.SaveSystemConfigurationFile(this.ParentForm.SystemConfig); - this.ParentForm.TransferDataStream4(CommunicationCommand.Write, CommunicationID.MainBoard, CommunicationAddress._5506_VacuumBreakTime, myKeypad.StringValue); - } - } + // this.ParentForm.SaveSystemConfigurationFile(this.ParentForm.SystemConfig); + // this.ParentForm.TransferDataStream4(CommunicationCommand.Write, CommunicationID.MainBoard, CommunicationAddress._5506_VacuumBreakTime, myKeypad.StringValue); + // } + //} private void labelChart1DrawStep_Click(object sender, EventArgs e) { DialogFormNumKeyPad myKeypad = new DialogFormNumKeyPad(this.labelChart1DrawStep.Text, 2, 0, false); @@ -139,7 +139,7 @@ namespace INT_PT002.Forms return; this.labelChart1DrawStep.Text = myKeypad.StringValue; - this.ParentForm.SystemConfig.Chart1DrawStep = myKeypad.IntValue; + this.ParentForm.SystemConfig.CHART1_DRAW_STEP = myKeypad.IntValue; this.ParentForm.SaveSystemConfigurationFile(this.ParentForm.SystemConfig); } @@ -154,7 +154,7 @@ namespace INT_PT002.Forms return; this.labelChart2DrawStep.Text = myKeypad.StringValue; - this.ParentForm.SystemConfig.Chart2DrawStep = myKeypad.IntValue; + this.ParentForm.SystemConfig.CHART2_DRAW_STEP = myKeypad.IntValue; this.ParentForm.SaveSystemConfigurationFile(this.ParentForm.SystemConfig); } diff --git a/INT_PT002/Forms/FormMain.cs b/INT_PT002/Forms/FormMain.cs index 8d8dcfb..80c1b27 100644 --- a/INT_PT002/Forms/FormMain.cs +++ b/INT_PT002/Forms/FormMain.cs @@ -33,6 +33,9 @@ namespace INT_PT002.Forms // SystemConfiguration public SystemConfiguration SystemConfig; + // Current Recipe + public Recipe CurrentRecipe; + // Leak Data private Collection CollectionLeakDatas; @@ -86,10 +89,11 @@ namespace INT_PT002.Forms this.PathDataBackupFolder = this.PathLaunchFolder + "DataBackup\\"; this.SystemConfig = new SystemConfiguration(); + this.CurrentRecipe = new Recipe(); - this.CollectionLeakDatas = new Collection(); - for (int i = 0; i < 10; i++) - this.CollectionLeakDatas.Add(new LeakData()); + //this.CollectionLeakDatas = new Collection(); + //for (int i = 0; i < 10; i++) + // this.CollectionLeakDatas.Add(new LeakData()); // SystemFile 폴더 생성 if (Directory.Exists(this.PathSystemFileFolder) == false) @@ -113,10 +117,14 @@ namespace INT_PT002.Forms { StringBuilder sb = new StringBuilder(); - sb.Append(Helper.StringZeroFillDigits6(this.SystemConfig.OverRange)); - sb.Append(Helper.StringZeroFillDigits4(this.SystemConfig.VacuumStartTime.ToString())); - sb.Append(Helper.StringZeroFillDigits4(this.SystemConfig.VacuumHoldTime.ToString())); - sb.Append(Helper.StringZeroFillDigits4(this.SystemConfig.VacuumBreakTime.ToString())); + sb.Append(Helper.StringBlankFillDigits4(this.SystemConfig.LCD_DATA_PERIOD.ToString())); + sb.Append(Helper.StringBlankFillDigits4(this.SystemConfig.CHATTERING.ToString())); + sb.Append(Helper.StringBlankFillDigits4(this.SystemConfig.JUDGMENT_DELAY_MSEC.ToString())); + sb.Append(Helper.StringBlankFillDigits4(this.SystemConfig.BUZZER_OP.ToString())); + sb.Append(Helper.StringBlankFillDigits4(this.SystemConfig.SB_DIFF_FILTER.ToString())); + sb.Append(Helper.StringBlankFillDigits4(this.SystemConfig.SB_DATA_MODE.ToString())); + sb.Append(Helper.StringBlankFillDigits4(this.SystemConfig.SB_DATA_PERIOD.ToString())); + sb.Append(Helper.StringBlankFillDigits4(this.SystemConfig.SB_DIFF_MODE.ToString())); this.TransferDataStream(CommunicationCommand.Write, CommunicationID.MainBoard, CommunicationAddress._9039_ParameterAll, sb.ToString()); } @@ -133,12 +141,20 @@ namespace INT_PT002.Forms this.SystemConfig.Initialize(); - structItem.VacuumStartTime = this.SystemConfig.VacuumStartTime; - structItem.VacuumHoldTime = this.SystemConfig.VacuumHoldTime; - structItem.VacuumBreakTime = this.SystemConfig.VacuumBreakTime; - structItem.Chart1DrawStep = this.SystemConfig.Chart1DrawStep; - structItem.Chart2DrawStep = this.SystemConfig.Chart2DrawStep; - structItem.OverRange = this.SystemConfig.OverRange; + structItem.RECIPE_NUMBER = this.SystemConfig.RECIPE_NUMBER; + + structItem.CHART1_DRAW_STEP = this.SystemConfig.CHART1_DRAW_STEP; + structItem.CHART2_DRAW_STEP = this.SystemConfig.CHART2_DRAW_STEP; + + structItem.LCD_DATA_PERIOD = this.SystemConfig.LCD_DATA_PERIOD; + structItem.CHATTERING = this.SystemConfig.CHATTERING; + structItem.JUDGMENT_DELAY_MSEC = this.SystemConfig.JUDGMENT_DELAY_MSEC; + structItem.BUZZER_OP = this.SystemConfig.BUZZER_OP; + + structItem.SB_DIFF_FILTER = this.SystemConfig.SB_DIFF_FILTER; + structItem.SB_DIFF_MODE = this.SystemConfig.SB_DIFF_MODE; + structItem.SB_DATA_MODE = this.SystemConfig.SB_DATA_MODE; + structItem.SB_DATA_PERIOD = this.SystemConfig.SB_DATA_PERIOD; this.smartFileIO.StructType.Write(structItem, 0, SmartFile.WriteMode.Overwrite); } @@ -167,13 +183,20 @@ namespace INT_PT002.Forms this.CreateSystemConfigurationFile(); } - structItem.VacuumStartTime = item.VacuumStartTime; - structItem.VacuumHoldTime = item.VacuumHoldTime; - structItem.VacuumBreakTime = item.VacuumBreakTime; - structItem.Chart1DrawStep = item.Chart1DrawStep; - structItem.Chart2DrawStep = item.Chart2DrawStep; - - structItem.OverRange = item.OverRange; + structItem.RECIPE_NUMBER = item.RECIPE_NUMBER; + + structItem.CHART1_DRAW_STEP = item.CHART1_DRAW_STEP; + structItem.CHART2_DRAW_STEP = item.CHART2_DRAW_STEP; + + structItem.LCD_DATA_PERIOD = item.LCD_DATA_PERIOD; + structItem.CHATTERING = item.CHATTERING; + structItem.JUDGMENT_DELAY_MSEC = item.JUDGMENT_DELAY_MSEC; + structItem.BUZZER_OP = item.BUZZER_OP; + + structItem.SB_DIFF_FILTER = item.SB_DIFF_FILTER; + structItem.SB_DIFF_MODE = item.SB_DIFF_MODE; + structItem.SB_DATA_MODE = item.SB_DATA_MODE; + structItem.SB_DATA_PERIOD = item.SB_DATA_PERIOD; this.smartFileIO.StructType.Write(structItem, 0, SmartFile.WriteMode.Overwrite); this.smartFileIO.Close(); @@ -205,13 +228,138 @@ namespace INT_PT002.Forms structItem = (StructSystemConfigurationItem)this.smartFileIO.StructType.Read(0); - this.SystemConfig.VacuumStartTime = structItem.VacuumStartTime; - this.SystemConfig.VacuumHoldTime = structItem.VacuumHoldTime; - this.SystemConfig.VacuumBreakTime = structItem.VacuumBreakTime; - this.SystemConfig.Chart1DrawStep = structItem.Chart1DrawStep; - this.SystemConfig.Chart2DrawStep = structItem.Chart2DrawStep; + this.SystemConfig.RECIPE_NUMBER = structItem.RECIPE_NUMBER; - this.SystemConfig.OverRange = structItem.OverRange; + this.SystemConfig.CHART1_DRAW_STEP = structItem.CHART1_DRAW_STEP; + this.SystemConfig.CHART2_DRAW_STEP = structItem.CHART2_DRAW_STEP; + + this.SystemConfig.LCD_DATA_PERIOD = structItem.LCD_DATA_PERIOD; + this.SystemConfig.CHATTERING = structItem.CHATTERING; + this.SystemConfig.JUDGMENT_DELAY_MSEC = structItem.JUDGMENT_DELAY_MSEC; + this.SystemConfig.BUZZER_OP = structItem.BUZZER_OP; + + this.SystemConfig.SB_DIFF_FILTER = structItem.SB_DIFF_FILTER; + this.SystemConfig.SB_DIFF_MODE = structItem.SB_DIFF_MODE; + this.SystemConfig.SB_DATA_MODE = structItem.SB_DATA_MODE; + this.SystemConfig.SB_DATA_PERIOD = structItem.SB_DATA_PERIOD; + + this.smartFileIO.Close(); + } + #endregion + + #region Recipe File + private void CreateRecipeFile() + { + StructRecipe structItem; + + this.CurrentRecipe.Initialize(); + + for (int i = 0; i < 1000; i++) + { + structItem.NUMBER = i + 1; + structItem.NAME = string.Format("INTECH {0}", i + 1); + structItem.LOT = string.Format("LOT {0}", i + 1); + + structItem.DISP_JUDG_STD_LEVEL = this.CurrentRecipe.DISP_JUDG_STD_LEVEL; + structItem.DISP_JUDG_MIN_LEVEL = this.CurrentRecipe.DISP_JUDG_MIN_LEVEL; + structItem.DISP_JUDG_EMPTY_LEVEL = this.CurrentRecipe.DISP_JUDG_EMPTY_LEVEL; + structItem.DISP_HOLD_DELAY_MSEC = this.CurrentRecipe.DISP_HOLD_DELAY_MSEC; + + structItem.DIFF_LR_SECOND = this.CurrentRecipe.DIFF_LR_SECOND; + structItem.DIFF_LR_TOTAL = this.CurrentRecipe.DIFF_LR_TOTAL; + structItem.DIFF_LR_MEAN = this.CurrentRecipe.DIFF_LR_MEAN; + structItem.DIFF_HOLD_DELAY_MSEC = this.CurrentRecipe.DIFF_HOLD_DELAY_MSEC; + + structItem.VACUUM_RELIEF = this.CurrentRecipe.VACUUM_RELIEF; + structItem.VACUUM_HOLD1 = this.CurrentRecipe.VACUUM_HOLD1; + structItem.VACUUM_HOLD2 = this.CurrentRecipe.VACUUM_HOLD2; + structItem.VACUUM_BLOWOFF = this.CurrentRecipe.VACUUM_BLOWOFF; + structItem.VACUUM_GUAGE_LEVEL = this.CurrentRecipe.VACUUM_GUAGE_LEVEL; + + this.smartFileIO.StructType.WriteBuffer(structItem, i, SmartFile.WriteMode.Overwrite); + } + this.smartFileIO.StructType.WriteBufferSave(); + } + public void SaveRecipeFile(Recipe item, int index) + { + bool fileCheck = false; + string fullFilePath = ""; + StructRecipe structItem; + + fullFilePath = this.PathSystemFileFolder + "RecipeItem.int"; + this.smartFileIO.FilePathName = fullFilePath; + + FileInfo fileInfo = new FileInfo(fullFilePath); + fileCheck = fileInfo.Exists; + + this.smartFileIO.Open(); + this.smartFileIO.StructType.SetStructType(typeof(StructRecipe)); + + if (this.smartFileIO.StructType.GetCount() != 1000) + this.CreateRecipeFile(); + + structItem.NUMBER = item.NUMBER; + structItem.NAME = item.NAME; + structItem.LOT = item.LOT; + + structItem.DISP_JUDG_STD_LEVEL = item.DISP_JUDG_STD_LEVEL; + structItem.DISP_JUDG_MIN_LEVEL = item.DISP_JUDG_MIN_LEVEL; + structItem.DISP_JUDG_EMPTY_LEVEL = item.DISP_JUDG_EMPTY_LEVEL; + structItem.DISP_HOLD_DELAY_MSEC = item.DISP_HOLD_DELAY_MSEC; + + structItem.DIFF_LR_SECOND = item.DIFF_LR_SECOND; + structItem.DIFF_LR_TOTAL = item.DIFF_LR_TOTAL; + structItem.DIFF_LR_MEAN = item.DIFF_LR_MEAN; + structItem.DIFF_HOLD_DELAY_MSEC = item.DIFF_HOLD_DELAY_MSEC; + + structItem.VACUUM_RELIEF = item.VACUUM_RELIEF; + structItem.VACUUM_HOLD1 = item.VACUUM_HOLD1; + structItem.VACUUM_HOLD2 = item.VACUUM_HOLD2; + structItem.VACUUM_BLOWOFF = item.VACUUM_BLOWOFF; + structItem.VACUUM_GUAGE_LEVEL = item.VACUUM_GUAGE_LEVEL; + + this.smartFileIO.StructType.Write(structItem, index, SmartFile.WriteMode.Overwrite); + this.smartFileIO.Close(); + } + public void LoadRecipeFile(ref Recipe item, int index) + { + string fullFilePath = ""; + bool fileCheck = false; + StructRecipe structItem; + + fullFilePath = this.PathSystemFileFolder + "RecipeItem.cfg"; + this.smartFileIO.FilePathName = fullFilePath; + + FileInfo fileInfo = new FileInfo(fullFilePath); + fileCheck = fileInfo.Exists; + + this.smartFileIO.Open(); + this.smartFileIO.StructType.SetStructType(typeof(StructRecipe)); + + if (this.smartFileIO.StructType.GetCount() != 1000) + this.CreateRecipeFile(); + + structItem = (StructRecipe)this.smartFileIO.StructType.Read(index); + + item.NUMBER = structItem.NUMBER; + item.NAME = structItem.NAME; + item.LOT = structItem.LOT; + + item.DISP_JUDG_STD_LEVEL = structItem.DISP_JUDG_STD_LEVEL; + item.DISP_JUDG_MIN_LEVEL = structItem.DISP_JUDG_MIN_LEVEL; + item.DISP_JUDG_EMPTY_LEVEL = structItem.DISP_JUDG_EMPTY_LEVEL; + item.DISP_HOLD_DELAY_MSEC = structItem.DISP_HOLD_DELAY_MSEC; + + item.DIFF_LR_SECOND = structItem.DIFF_LR_SECOND; + item.DIFF_LR_TOTAL = structItem.DIFF_LR_TOTAL; + item.DIFF_LR_MEAN = structItem.DIFF_LR_MEAN; + item.DIFF_HOLD_DELAY_MSEC = structItem.DIFF_HOLD_DELAY_MSEC; + + item.VACUUM_RELIEF = structItem.VACUUM_RELIEF; + item.VACUUM_HOLD1 = structItem.VACUUM_HOLD1; + item.VACUUM_HOLD2 = structItem.VACUUM_HOLD2; + item.VACUUM_BLOWOFF = structItem.VACUUM_BLOWOFF; + item.VACUUM_GUAGE_LEVEL = structItem.VACUUM_GUAGE_LEVEL; this.smartFileIO.Close(); } @@ -396,7 +544,7 @@ namespace INT_PT002.Forms sb.Append(command); sb.Append(id); - sb.Append(Helper.StringZeroFillDigits4(data.Length.ToString())); + sb.Append(Helper.StringBlankFillDigits4(data.Length.ToString())); sb.Append(address); sb.Append(data); @@ -421,9 +569,9 @@ namespace INT_PT002.Forms sb.Append(command); sb.Append(id); - sb.Append(Helper.StringZeroFillDigits4("4")); + sb.Append(Helper.StringBlankFillDigits4("4")); sb.Append(address); - sb.Append(Helper.StringZeroFillDigits4(data)); + sb.Append(Helper.StringBlankFillDigits4(data)); chkSum = this.Checksumcalculator(sb.ToString()); @@ -446,9 +594,9 @@ namespace INT_PT002.Forms sb.Append(command); sb.Append(id); - sb.Append(Helper.StringZeroFillDigits4("6")); + sb.Append(Helper.StringBlankFillDigits4("6")); sb.Append(address); - sb.Append(Helper.StringZeroFillDigits6(data)); + sb.Append(Helper.StringBlankFillDigits6(data)); chkSum = this.Checksumcalculator(sb.ToString()); @@ -714,11 +862,11 @@ namespace INT_PT002.Forms for (int i = 0; i < 10; i++) { this.CollectionLeakDatas[i].ProgressStatus = Helper.StringToProgressStatus(receiveData.Substring(i * 22, 2)); - this.CollectionLeakDatas[i].CurrentValueSign = receiveData.Substring(i * 22 + 2, 1); - this.CollectionLeakDatas[i].CurrentValue = int.Parse(receiveData.Substring(i * 22 + 3, 5)).ToString(); - this.CollectionLeakDatas[i].MaxValueSign = receiveData.Substring(i * 22 + 8, 1); - this.CollectionLeakDatas[i].MaxValue = int.Parse(receiveData.Substring(i * 22 + 9, 5)).ToString(); - this.CollectionLeakDatas[i].StDev = receiveData.Substring(i * 22 + 14, 8); + //this.CollectionLeakDatas[i].CurrentValueSign = receiveData.Substring(i * 22 + 2, 1); + //this.CollectionLeakDatas[i].CurrentValue = int.Parse(receiveData.Substring(i * 22 + 3, 5)).ToString(); + //this.CollectionLeakDatas[i].MaxValueSign = receiveData.Substring(i * 22 + 8, 1); + //this.CollectionLeakDatas[i].MaxValue = int.Parse(receiveData.Substring(i * 22 + 9, 5)).ToString(); + //this.CollectionLeakDatas[i].StDev = receiveData.Substring(i * 22 + 14, 8); } #endregion this.ChildFormMainDisplay.UpdateNomalLeakDataDisplay(this.CollectionLeakDatas); @@ -746,70 +894,70 @@ namespace INT_PT002.Forms case "A": #region Value Assign this.CollectionLeakDatas[0].JudgmentStatus = Helper.StringToJudgmentStatus(receiveData.Substring(0, 2)); - this.CollectionLeakDatas[0].ResultSD = receiveData.Substring(2, 8).Trim(); + //this.CollectionLeakDatas[0].ResultSD = receiveData.Substring(2, 8).Trim(); #endregion this.ChildFormMainDisplay.UpdateStartLeakData1Display(this.CollectionLeakDatas[0]); break; case "B": #region Value Assign this.CollectionLeakDatas[1].JudgmentStatus = Helper.StringToJudgmentStatus(receiveData.Substring(0, 2)); - this.CollectionLeakDatas[1].ResultSD = receiveData.Substring(2, 8).Trim(); + //this.CollectionLeakDatas[1].ResultSD = receiveData.Substring(2, 8).Trim(); #endregion this.ChildFormMainDisplay.UpdateStartLeakData2Display(this.CollectionLeakDatas[1]); break; case "C": #region Value Assign this.CollectionLeakDatas[2].JudgmentStatus = Helper.StringToJudgmentStatus(receiveData.Substring(0, 2)); - this.CollectionLeakDatas[2].ResultSD = receiveData.Substring(2, 8).Trim(); + //this.CollectionLeakDatas[2].ResultSD = receiveData.Substring(2, 8).Trim(); #endregion this.ChildFormMainDisplay.UpdateStartLeakData3Display(this.CollectionLeakDatas[2]); break; case "D": #region Value Assign this.CollectionLeakDatas[3].JudgmentStatus = Helper.StringToJudgmentStatus(receiveData.Substring(0, 2)); - this.CollectionLeakDatas[3].ResultSD = receiveData.Substring(2, 8).Trim(); + //this.CollectionLeakDatas[3].ResultSD = receiveData.Substring(2, 8).Trim(); #endregion this.ChildFormMainDisplay.UpdateStartLeakData4Display(this.CollectionLeakDatas[3]); break; case "E": #region Value Assign this.CollectionLeakDatas[4].JudgmentStatus = Helper.StringToJudgmentStatus(receiveData.Substring(0, 2)); - this.CollectionLeakDatas[4].ResultSD = receiveData.Substring(2, 8).Trim(); + //this.CollectionLeakDatas[4].ResultSD = receiveData.Substring(2, 8).Trim(); #endregion this.ChildFormMainDisplay.UpdateStartLeakData5Display(this.CollectionLeakDatas[4]); break; case "F": #region Value Assign this.CollectionLeakDatas[5].JudgmentStatus = Helper.StringToJudgmentStatus(receiveData.Substring(0, 2)); - this.CollectionLeakDatas[5].ResultSD = receiveData.Substring(2, 8).Trim(); + //this.CollectionLeakDatas[5].ResultSD = receiveData.Substring(2, 8).Trim(); #endregion this.ChildFormMainDisplay.UpdateStartLeakData6Display(this.CollectionLeakDatas[5]); break; case "G": #region Value Assign this.CollectionLeakDatas[6].JudgmentStatus = Helper.StringToJudgmentStatus(receiveData.Substring(0, 2)); - this.CollectionLeakDatas[6].ResultSD = receiveData.Substring(2, 8).Trim(); + //this.CollectionLeakDatas[6].ResultSD = receiveData.Substring(2, 8).Trim(); #endregion this.ChildFormMainDisplay.UpdateStartLeakData7Display(this.CollectionLeakDatas[6]); break; case "H": #region Value Assign this.CollectionLeakDatas[7].JudgmentStatus = Helper.StringToJudgmentStatus(receiveData.Substring(0, 2)); - this.CollectionLeakDatas[7].ResultSD = receiveData.Substring(2, 8).Trim(); + //this.CollectionLeakDatas[7].ResultSD = receiveData.Substring(2, 8).Trim(); #endregion this.ChildFormMainDisplay.UpdateStartLeakData8Display(this.CollectionLeakDatas[7]); break; case "I": #region Value Assign this.CollectionLeakDatas[8].JudgmentStatus = Helper.StringToJudgmentStatus(receiveData.Substring(0, 2)); - this.CollectionLeakDatas[8].ResultSD = receiveData.Substring(2, 8).Trim(); + //this.CollectionLeakDatas[8].ResultSD = receiveData.Substring(2, 8).Trim(); #endregion this.ChildFormMainDisplay.UpdateStartLeakData9Display(this.CollectionLeakDatas[8]); break; case "J": #region Value Assign this.CollectionLeakDatas[9].JudgmentStatus = Helper.StringToJudgmentStatus(receiveData.Substring(0, 2)); - this.CollectionLeakDatas[9].ResultSD = receiveData.Substring(2, 8).Trim(); + //this.CollectionLeakDatas[9].ResultSD = receiveData.Substring(2, 8).Trim(); #endregion this.ChildFormMainDisplay.UpdateStartLeakData10Display(this.CollectionLeakDatas[9]); break; @@ -818,7 +966,7 @@ namespace INT_PT002.Forms for (int i = 0; i < 10; i++) { this.CollectionLeakDatas[i].JudgmentStatus = Helper.StringToJudgmentStatus(receiveData.Substring(i * 10, 2)); - this.CollectionLeakDatas[i].ResultSD = receiveData.Substring(i * 10 + 2, 8).Trim(); + //this.CollectionLeakDatas[i].ResultSD = receiveData.Substring(i * 10 + 2, 8).Trim(); } #endregion this.ChildFormMainDisplay.UpdateStartLeakDataDisplay(this.CollectionLeakDatas); @@ -888,6 +1036,8 @@ namespace INT_PT002.Forms this.DefaultSetting(); // SystemConfiguration 파일 읽기 this.LoadSystemConfigurationFile(); + // Recipe 파일 읽기 + this.LoadRecipeFile(ref this.CurrentRecipe, this.SystemConfig.RECIPE_NUMBER - 1); // Form 생성 this.CreateForm(); diff --git a/INT_PT002/Forms/FormMainDisplay1.Designer.cs b/INT_PT002/Forms/FormMainDisplay1.Designer.cs index 88a4d7e..39e0e57 100644 --- a/INT_PT002/Forms/FormMainDisplay1.Designer.cs +++ b/INT_PT002/Forms/FormMainDisplay1.Designer.cs @@ -31,7 +31,7 @@ System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FormMainDisplay1)); SmartX.SmartDraw_ChartChannelPenStyle.ChartPenStyle chartPenStyle1 = new SmartX.SmartDraw_ChartChannelPenStyle.ChartPenStyle(); this.smartForm1 = new SmartX.SmartForm(); - this.smartLabel1 = new SmartX.SmartLabel(); + this.labelProgress5 = new SmartX.SmartLabel(); this.labelStop = new SmartX.SmartLabel(); this.labelStart = new SmartX.SmartLabel(); this.buttonExit = new SmartX.SmartButton(); @@ -134,9 +134,9 @@ this.labelCurrentValue9 = new SmartX.SmartLabel(); this.smartLabel72 = new SmartX.SmartLabel(); this.smartDraw9 = new SmartX.SmartDraw(); + this.labelProgress8 = new SmartX.SmartLabel(); this.labelProgress7 = new SmartX.SmartLabel(); this.labelProgress6 = new SmartX.SmartLabel(); - this.labelProgress5 = new SmartX.SmartLabel(); this.labelProgress4 = new SmartX.SmartLabel(); this.labelProgress3 = new SmartX.SmartLabel(); this.labelProgress2 = new SmartX.SmartLabel(); @@ -232,7 +232,7 @@ this.smartForm1.BackGroundFillStyle = SmartXUIBase.SmartUIControlFormBase.BackGroundFillStyles.GradationColor1; this.smartForm1.BackImage = ((System.Drawing.Image)(resources.GetObject("smartForm1.BackImage"))); this.smartForm1.CenterLocation = false; - this.smartForm1.Controls.Add(this.smartLabel1); + this.smartForm1.Controls.Add(this.labelProgress5); this.smartForm1.Controls.Add(this.labelStop); this.smartForm1.Controls.Add(this.labelStart); this.smartForm1.Controls.Add(this.buttonExit); @@ -249,9 +249,9 @@ this.smartForm1.Controls.Add(this.smartGroupBox3); this.smartForm1.Controls.Add(this.smartGroupBox6); this.smartForm1.Controls.Add(this.smartGroupBox7); + this.smartForm1.Controls.Add(this.labelProgress8); this.smartForm1.Controls.Add(this.labelProgress7); this.smartForm1.Controls.Add(this.labelProgress6); - this.smartForm1.Controls.Add(this.labelProgress5); this.smartForm1.Controls.Add(this.labelProgress4); this.smartForm1.Controls.Add(this.labelProgress3); this.smartForm1.Controls.Add(this.labelProgress2); @@ -274,28 +274,28 @@ this.smartForm1.SpecialFunctionClickPointSize = 100; this.smartForm1.UseMainMenu = false; // - // smartLabel1 + // labelProgress5 // - this.smartLabel1.BackGround = null; - this.smartLabel1.BackGroundColor = System.Drawing.Color.Azure; - this.smartLabel1.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(27)))), ((int)(((byte)(42)))), ((int)(((byte)(82))))); - this.smartLabel1.BorderStyle = SmartX.SmartLabel.BorderStyles.None; - this.smartLabel1.Font = new System.Drawing.Font("Arial", 10F, System.Drawing.FontStyle.Bold); - this.smartLabel1.LineSpacing = 0F; - this.smartLabel1.Location = new System.Drawing.Point(561, 76); - this.smartLabel1.Name = "smartLabel1"; - this.smartLabel1.OverlapOptimize = true; - this.smartLabel1.PasswordChar = '\0'; - this.smartLabel1.Radius = 3; - this.smartLabel1.RoundRectFillColor = System.Drawing.Color.LightBlue; - this.smartLabel1.Size = new System.Drawing.Size(105, 40); - this.smartLabel1.TabIndex = 71; - this.smartLabel1.Text = "진공파기"; - this.smartLabel1.TextColor = System.Drawing.Color.Black; - this.smartLabel1.TextColorDisable = System.Drawing.Color.Gray; - this.smartLabel1.TextHAlign = SmartX.SmartLabel.TextHorAlign.Middle; - this.smartLabel1.TextVAlign = SmartX.SmartLabel.TextVerAlign.Middle; - this.smartLabel1.Wordwrap = false; + this.labelProgress5.BackGround = null; + this.labelProgress5.BackGroundColor = System.Drawing.Color.Azure; + this.labelProgress5.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(27)))), ((int)(((byte)(42)))), ((int)(((byte)(82))))); + this.labelProgress5.BorderStyle = SmartX.SmartLabel.BorderStyles.None; + this.labelProgress5.Font = new System.Drawing.Font("Arial", 10F, System.Drawing.FontStyle.Bold); + this.labelProgress5.LineSpacing = 0F; + this.labelProgress5.Location = new System.Drawing.Point(561, 76); + this.labelProgress5.Name = "labelProgress5"; + this.labelProgress5.OverlapOptimize = true; + this.labelProgress5.PasswordChar = '\0'; + this.labelProgress5.Radius = 3; + this.labelProgress5.RoundRectFillColor = System.Drawing.Color.LightBlue; + this.labelProgress5.Size = new System.Drawing.Size(105, 40); + this.labelProgress5.TabIndex = 71; + this.labelProgress5.Text = "판정"; + this.labelProgress5.TextColor = System.Drawing.Color.Black; + this.labelProgress5.TextColorDisable = System.Drawing.Color.Gray; + this.labelProgress5.TextHAlign = SmartX.SmartLabel.TextHorAlign.Middle; + this.labelProgress5.TextVAlign = SmartX.SmartLabel.TextVerAlign.Middle; + this.labelProgress5.Wordwrap = false; // // labelStop // @@ -378,7 +378,6 @@ this.buttonExit.TextDownColor = System.Drawing.Color.FromArgb(((int)(((byte)(233)))), ((int)(((byte)(238)))), ((int)(((byte)(255))))); this.buttonExit.TextHAlign = SmartX.SmartButton.TextHorAlign.Middle; this.buttonExit.TextVAlign = SmartX.SmartButton.TextVerAlign.Middle; - this.buttonExit.Visible = false; this.buttonExit.Click += new System.EventHandler(this.buttonExit_Click); // // labelCommunicationStatus @@ -639,6 +638,7 @@ this.labelResult3_1.TextColorDisable = System.Drawing.Color.Gray; this.labelResult3_1.TextHAlign = SmartX.SmartLabel.TextHorAlign.Middle; this.labelResult3_1.TextVAlign = SmartX.SmartLabel.TextVerAlign.Middle; + this.labelResult3_1.Visible = false; this.labelResult3_1.Wordwrap = false; // // smartSeparatorLine3 @@ -905,7 +905,6 @@ this.smartDraw3.Size = new System.Drawing.Size(192, 102); this.smartDraw3.TabIndex = 11; this.smartDraw3.Text = "smartDraw3"; - this.smartDraw3.Visible = false; this.smartDraw3.Click += new System.EventHandler(this.smartDraw3_Click); // // smartDraw_ChartChannelPenStyle1 @@ -981,6 +980,7 @@ this.labelResult4_1.TextColorDisable = System.Drawing.Color.Gray; this.labelResult4_1.TextHAlign = SmartX.SmartLabel.TextHorAlign.Middle; this.labelResult4_1.TextVAlign = SmartX.SmartLabel.TextVerAlign.Middle; + this.labelResult4_1.Visible = false; this.labelResult4_1.Wordwrap = false; // // smartSeparatorLine4 @@ -1317,6 +1317,7 @@ this.labelResult1_1.TextColorDisable = System.Drawing.Color.Gray; this.labelResult1_1.TextHAlign = SmartX.SmartLabel.TextHorAlign.Middle; this.labelResult1_1.TextVAlign = SmartX.SmartLabel.TextVerAlign.Middle; + this.labelResult1_1.Visible = false; this.labelResult1_1.Wordwrap = false; // // smartSeparatorLine1 @@ -1555,7 +1556,7 @@ this.labelCurrentValue1.RoundRectFillColor = System.Drawing.Color.LightBlue; this.labelCurrentValue1.Size = new System.Drawing.Size(100, 20); this.labelCurrentValue1.TabIndex = 12; - this.labelCurrentValue1.Text = "9.2354"; + this.labelCurrentValue1.Text = "-9.23 / -10.00"; this.labelCurrentValue1.TextColor = System.Drawing.Color.FromArgb(((int)(((byte)(27)))), ((int)(((byte)(42)))), ((int)(((byte)(82))))); this.labelCurrentValue1.TextColorDisable = System.Drawing.Color.Gray; this.labelCurrentValue1.TextHAlign = SmartX.SmartLabel.TextHorAlign.Middle; @@ -1606,7 +1607,6 @@ this.smartDraw1.Size = new System.Drawing.Size(192, 102); this.smartDraw1.TabIndex = 11; this.smartDraw1.Text = "smartDraw1"; - this.smartDraw1.Visible = false; this.smartDraw1.Click += new System.EventHandler(this.smartDraw1_Click); // // smartGroupBox3 @@ -1688,6 +1688,7 @@ this.labelResult2_1.TextColorDisable = System.Drawing.Color.Gray; this.labelResult2_1.TextHAlign = SmartX.SmartLabel.TextHorAlign.Middle; this.labelResult2_1.TextVAlign = SmartX.SmartLabel.TextVerAlign.Middle; + this.labelResult2_1.Visible = false; this.labelResult2_1.Wordwrap = false; // // labelResultSD2 @@ -1941,7 +1942,6 @@ this.smartDraw2.Size = new System.Drawing.Size(192, 102); this.smartDraw2.TabIndex = 11; this.smartDraw2.Text = "smartDraw2"; - this.smartDraw2.Visible = false; this.smartDraw2.Click += new System.EventHandler(this.smartDraw2_Click); // // smartGroupBox6 @@ -2010,6 +2010,7 @@ this.labelResult5_1.TextColorDisable = System.Drawing.Color.Gray; this.labelResult5_1.TextHAlign = SmartX.SmartLabel.TextHorAlign.Middle; this.labelResult5_1.TextVAlign = SmartX.SmartLabel.TextVerAlign.Middle; + this.labelResult5_1.Visible = false; this.labelResult5_1.Wordwrap = false; // // smartSeparatorLine5 @@ -2614,6 +2615,29 @@ this.smartDraw9.Visible = false; this.smartDraw9.Click += new System.EventHandler(this.smartDraw9_Click); // + // labelProgress8 + // + this.labelProgress8.BackGround = null; + this.labelProgress8.BackGroundColor = System.Drawing.Color.Azure; + this.labelProgress8.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(27)))), ((int)(((byte)(42)))), ((int)(((byte)(82))))); + this.labelProgress8.BorderStyle = SmartX.SmartLabel.BorderStyles.None; + this.labelProgress8.Font = new System.Drawing.Font("Arial", 10F, System.Drawing.FontStyle.Bold); + this.labelProgress8.LineSpacing = 0F; + this.labelProgress8.Location = new System.Drawing.Point(894, 76); + this.labelProgress8.Name = "labelProgress8"; + this.labelProgress8.OverlapOptimize = true; + this.labelProgress8.PasswordChar = '\0'; + this.labelProgress8.Radius = 3; + this.labelProgress8.RoundRectFillColor = System.Drawing.Color.LightBlue; + this.labelProgress8.Size = new System.Drawing.Size(105, 40); + this.labelProgress8.TabIndex = 54; + this.labelProgress8.Text = "배출"; + this.labelProgress8.TextColor = System.Drawing.Color.Black; + this.labelProgress8.TextColorDisable = System.Drawing.Color.Gray; + this.labelProgress8.TextHAlign = SmartX.SmartLabel.TextHorAlign.Middle; + this.labelProgress8.TextVAlign = SmartX.SmartLabel.TextVerAlign.Middle; + this.labelProgress8.Wordwrap = false; + // // labelProgress7 // this.labelProgress7.BackGround = null; @@ -2622,15 +2646,15 @@ this.labelProgress7.BorderStyle = SmartX.SmartLabel.BorderStyles.None; this.labelProgress7.Font = new System.Drawing.Font("Arial", 10F, System.Drawing.FontStyle.Bold); this.labelProgress7.LineSpacing = 0F; - this.labelProgress7.Location = new System.Drawing.Point(894, 76); + this.labelProgress7.Location = new System.Drawing.Point(783, 76); this.labelProgress7.Name = "labelProgress7"; this.labelProgress7.OverlapOptimize = true; this.labelProgress7.PasswordChar = '\0'; this.labelProgress7.Radius = 3; this.labelProgress7.RoundRectFillColor = System.Drawing.Color.LightBlue; this.labelProgress7.Size = new System.Drawing.Size(105, 40); - this.labelProgress7.TabIndex = 54; - this.labelProgress7.Text = "배출"; + this.labelProgress7.TabIndex = 53; + this.labelProgress7.Text = "챔버분리"; this.labelProgress7.TextColor = System.Drawing.Color.Black; this.labelProgress7.TextColorDisable = System.Drawing.Color.Gray; this.labelProgress7.TextHAlign = SmartX.SmartLabel.TextHorAlign.Middle; @@ -2645,44 +2669,21 @@ this.labelProgress6.BorderStyle = SmartX.SmartLabel.BorderStyles.None; this.labelProgress6.Font = new System.Drawing.Font("Arial", 10F, System.Drawing.FontStyle.Bold); this.labelProgress6.LineSpacing = 0F; - this.labelProgress6.Location = new System.Drawing.Point(783, 76); + this.labelProgress6.Location = new System.Drawing.Point(672, 76); this.labelProgress6.Name = "labelProgress6"; this.labelProgress6.OverlapOptimize = true; this.labelProgress6.PasswordChar = '\0'; this.labelProgress6.Radius = 3; this.labelProgress6.RoundRectFillColor = System.Drawing.Color.LightBlue; this.labelProgress6.Size = new System.Drawing.Size(105, 40); - this.labelProgress6.TabIndex = 53; - this.labelProgress6.Text = "챔버분리"; + this.labelProgress6.TabIndex = 52; + this.labelProgress6.Text = "진공파기"; this.labelProgress6.TextColor = System.Drawing.Color.Black; this.labelProgress6.TextColorDisable = System.Drawing.Color.Gray; this.labelProgress6.TextHAlign = SmartX.SmartLabel.TextHorAlign.Middle; this.labelProgress6.TextVAlign = SmartX.SmartLabel.TextVerAlign.Middle; this.labelProgress6.Wordwrap = false; // - // labelProgress5 - // - this.labelProgress5.BackGround = null; - this.labelProgress5.BackGroundColor = System.Drawing.Color.Azure; - this.labelProgress5.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(27)))), ((int)(((byte)(42)))), ((int)(((byte)(82))))); - this.labelProgress5.BorderStyle = SmartX.SmartLabel.BorderStyles.None; - this.labelProgress5.Font = new System.Drawing.Font("Arial", 10F, System.Drawing.FontStyle.Bold); - this.labelProgress5.LineSpacing = 0F; - this.labelProgress5.Location = new System.Drawing.Point(672, 76); - this.labelProgress5.Name = "labelProgress5"; - this.labelProgress5.OverlapOptimize = true; - this.labelProgress5.PasswordChar = '\0'; - this.labelProgress5.Radius = 3; - this.labelProgress5.RoundRectFillColor = System.Drawing.Color.LightBlue; - this.labelProgress5.Size = new System.Drawing.Size(105, 40); - this.labelProgress5.TabIndex = 52; - this.labelProgress5.Text = "진공파기"; - this.labelProgress5.TextColor = System.Drawing.Color.Black; - this.labelProgress5.TextColorDisable = System.Drawing.Color.Gray; - this.labelProgress5.TextHAlign = SmartX.SmartLabel.TextHorAlign.Middle; - this.labelProgress5.TextVAlign = SmartX.SmartLabel.TextVerAlign.Middle; - this.labelProgress5.Wordwrap = false; - // // labelProgress4 // this.labelProgress4.BackGround = null; @@ -4265,9 +4266,9 @@ private SmartX.SmartLabel labelCurrentValue9; private SmartX.SmartLabel smartLabel72; private SmartX.SmartDraw smartDraw9; + private SmartX.SmartLabel labelProgress8; private SmartX.SmartLabel labelProgress7; private SmartX.SmartLabel labelProgress6; - private SmartX.SmartLabel labelProgress5; private SmartX.SmartLabel labelProgress4; private SmartX.SmartLabel labelProgress3; private SmartX.SmartLabel labelProgress2; @@ -4335,16 +4336,11 @@ private SmartX.SmartButton buttonCut; private SmartX.SmartButton buttonExit; private System.Windows.Forms.PictureBox pictureBox1; - private SmartX.SmartLabel labelResult1_1; private SmartX.SmartSeparatorLine smartSeparatorLine13; - private SmartX.SmartLabel labelResult3_1; private SmartX.SmartSeparatorLine smartSeparatorLine14; - private SmartX.SmartLabel labelResult4_1; private SmartX.SmartSeparatorLine smartSeparatorLine11; private SmartX.SmartSeparatorLine smartSeparatorLine12; - private SmartX.SmartLabel labelResult2_1; private SmartX.SmartSeparatorLine smartSeparatorLine15; - private SmartX.SmartLabel labelResult5_1; private SmartX.SmartSeparatorLine smartSeparatorLine19; private SmartX.SmartLabel labelResult9_1; private SmartX.SmartSeparatorLine smartSeparatorLine20; @@ -4357,7 +4353,12 @@ private SmartX.SmartLabel labelResult6_1; private System.Windows.Forms.Timer timerOff; private System.Windows.Forms.Timer timerOn; - private SmartX.SmartLabel smartLabel1; + private SmartX.SmartLabel labelProgress5; private SmartX.SmartButton buttonDisplay; + private SmartX.SmartLabel labelResult3_1; + private SmartX.SmartLabel labelResult4_1; + private SmartX.SmartLabel labelResult1_1; + private SmartX.SmartLabel labelResult2_1; + private SmartX.SmartLabel labelResult5_1; } } \ No newline at end of file diff --git a/INT_PT002/Forms/FormMainDisplay1.cs b/INT_PT002/Forms/FormMainDisplay1.cs index da857cd..6c19be7 100644 --- a/INT_PT002/Forms/FormMainDisplay1.cs +++ b/INT_PT002/Forms/FormMainDisplay1.cs @@ -238,9 +238,9 @@ namespace INT_PT002.Forms this.labelProgress2.BackGroundColor = this.ColorProgressOff; this.labelProgress3.BackGroundColor = this.ColorProgressOff; this.labelProgress4.BackGroundColor = this.ColorProgressOff; - this.labelProgress5.BackGroundColor = this.ColorProgressOff; this.labelProgress6.BackGroundColor = this.ColorProgressOff; this.labelProgress7.BackGroundColor = this.ColorProgressOff; + this.labelProgress8.BackGroundColor = this.ColorProgressOff; break; case Define.E_ProgressStatus.Initial: this.labelProgress0.BackGroundColor = this.ColorProgressOn; @@ -248,9 +248,9 @@ namespace INT_PT002.Forms this.labelProgress2.BackGroundColor = this.ColorProgressOff; this.labelProgress3.BackGroundColor = this.ColorProgressOff; this.labelProgress4.BackGroundColor = this.ColorProgressOff; - this.labelProgress5.BackGroundColor = this.ColorProgressOff; this.labelProgress6.BackGroundColor = this.ColorProgressOff; this.labelProgress7.BackGroundColor = this.ColorProgressOff; + this.labelProgress8.BackGroundColor = this.ColorProgressOff; break; case Define.E_ProgressStatus.ProductEntry: this.labelProgress0.BackGroundColor = this.ColorProgressOff; @@ -258,9 +258,9 @@ namespace INT_PT002.Forms this.labelProgress2.BackGroundColor = this.ColorProgressOff; this.labelProgress3.BackGroundColor = this.ColorProgressOff; this.labelProgress4.BackGroundColor = this.ColorProgressOff; - this.labelProgress5.BackGroundColor = this.ColorProgressOff; this.labelProgress6.BackGroundColor = this.ColorProgressOff; this.labelProgress7.BackGroundColor = this.ColorProgressOff; + this.labelProgress8.BackGroundColor = this.ColorProgressOff; // Label Initialize //this.InitializeLabel(); @@ -271,9 +271,9 @@ namespace INT_PT002.Forms this.labelProgress2.BackGroundColor = this.ColorProgressOn; this.labelProgress3.BackGroundColor = this.ColorProgressOff; this.labelProgress4.BackGroundColor = this.ColorProgressOff; - this.labelProgress5.BackGroundColor = this.ColorProgressOff; this.labelProgress6.BackGroundColor = this.ColorProgressOff; this.labelProgress7.BackGroundColor = this.ColorProgressOff; + this.labelProgress8.BackGroundColor = this.ColorProgressOff; break; case Define.E_ProgressStatus.VacuumStart: this.labelProgress0.BackGroundColor = this.ColorProgressOff; @@ -281,9 +281,9 @@ namespace INT_PT002.Forms this.labelProgress2.BackGroundColor = this.ColorProgressOff; this.labelProgress3.BackGroundColor = this.ColorProgressOn; this.labelProgress4.BackGroundColor = this.ColorProgressOff; - this.labelProgress5.BackGroundColor = this.ColorProgressOff; this.labelProgress6.BackGroundColor = this.ColorProgressOff; this.labelProgress7.BackGroundColor = this.ColorProgressOff; + this.labelProgress8.BackGroundColor = this.ColorProgressOff; break; case Define.E_ProgressStatus.VacuumHold: this.labelProgress0.BackGroundColor = this.ColorProgressOff; @@ -291,9 +291,9 @@ namespace INT_PT002.Forms this.labelProgress2.BackGroundColor = this.ColorProgressOff; this.labelProgress3.BackGroundColor = this.ColorProgressOff; this.labelProgress4.BackGroundColor = this.ColorProgressOn; - this.labelProgress5.BackGroundColor = this.ColorProgressOff; this.labelProgress6.BackGroundColor = this.ColorProgressOff; this.labelProgress7.BackGroundColor = this.ColorProgressOff; + this.labelProgress8.BackGroundColor = this.ColorProgressOff; break; case Define.E_ProgressStatus.Judgment: break; @@ -303,9 +303,9 @@ namespace INT_PT002.Forms this.labelProgress2.BackGroundColor = this.ColorProgressOff; this.labelProgress3.BackGroundColor = this.ColorProgressOff; this.labelProgress4.BackGroundColor = this.ColorProgressOff; - this.labelProgress5.BackGroundColor = this.ColorProgressOn; - this.labelProgress6.BackGroundColor = this.ColorProgressOff; + this.labelProgress6.BackGroundColor = this.ColorProgressOn; this.labelProgress7.BackGroundColor = this.ColorProgressOff; + this.labelProgress8.BackGroundColor = this.ColorProgressOff; break; case Define.E_ProgressStatus.ChamberSeparation: this.labelProgress0.BackGroundColor = this.ColorProgressOff; @@ -313,9 +313,9 @@ namespace INT_PT002.Forms this.labelProgress2.BackGroundColor = this.ColorProgressOff; this.labelProgress3.BackGroundColor = this.ColorProgressOff; this.labelProgress4.BackGroundColor = this.ColorProgressOff; - this.labelProgress5.BackGroundColor = this.ColorProgressOff; - this.labelProgress6.BackGroundColor = this.ColorProgressOn; - this.labelProgress7.BackGroundColor = this.ColorProgressOff; + this.labelProgress6.BackGroundColor = this.ColorProgressOff; + this.labelProgress7.BackGroundColor = this.ColorProgressOn; + this.labelProgress8.BackGroundColor = this.ColorProgressOff; break; case Define.E_ProgressStatus.ProductRelease: this.labelProgress0.BackGroundColor = this.ColorProgressOff; @@ -323,9 +323,9 @@ namespace INT_PT002.Forms this.labelProgress2.BackGroundColor = this.ColorProgressOff; this.labelProgress3.BackGroundColor = this.ColorProgressOff; this.labelProgress4.BackGroundColor = this.ColorProgressOff; - this.labelProgress5.BackGroundColor = this.ColorProgressOff; this.labelProgress6.BackGroundColor = this.ColorProgressOff; - this.labelProgress7.BackGroundColor = this.ColorProgressOn; + this.labelProgress7.BackGroundColor = this.ColorProgressOff; + this.labelProgress8.BackGroundColor = this.ColorProgressOn; break; default: break; @@ -340,7 +340,7 @@ namespace INT_PT002.Forms // 15.000 ~ -2.000 (17.000 ~ 0) // 그래프 영역 높이 102 // 17000 / 102 = 166.666666~ - dValue = (int.Parse(data.CurrentValueSign + data.CurrentValue) + 2000) / 166.66666; + //dValue = (int.Parse(data.CurrentValueSign + data.CurrentValue) + 2000) / 166.66666; if (dValue > 110) dValue = 110; @@ -373,7 +373,7 @@ namespace INT_PT002.Forms string value = ""; bool bValue = false; - if (this.FlagIgnoreCNT == this.ParentForm.SystemConfig.Chart1DrawStep) + if (this.FlagIgnoreCNT == this.ParentForm.SystemConfig.CHART1_DRAW_STEP) { bValue = true; this.FlagIgnoreCNT = 0; @@ -386,21 +386,21 @@ namespace INT_PT002.Forms for (int i = 0; i < datas.Count; i++) { // Current Value - value = Helper.StringToDecimalPlaces(datas[i].CurrentValue, this.ParentForm.DecimalPlaces3); - if (datas[i].CurrentValueSign == "-") - value = string.Format("{0}{1}", datas[i].CurrentValueSign, value); + //value = Helper.StringToDecimalPlaces(datas[i].CurrentValue, this.ParentForm.DecimalPlaces3); + //if (datas[i].CurrentValueSign == "-") + // value = string.Format("{0}{1}", datas[i].CurrentValueSign, value); if (this.CollectionCurrentValue[i].Text != value) this.CollectionCurrentValue[i].Text = value; // Max Value - value = Helper.StringToDecimalPlaces(datas[i].MaxValue, this.ParentForm.DecimalPlaces3); - if (datas[i].MaxValueSign == "-") - value = string.Format("{0}{1}", datas[i].MaxValueSign, value); + //value = Helper.StringToDecimalPlaces(datas[i].MaxValue, this.ParentForm.DecimalPlaces3); + //if (datas[i].MaxValueSign == "-") + // value = string.Format("{0}{1}", datas[i].MaxValueSign, value); if (this.CollectionMaxValue[i].Text != value) this.CollectionMaxValue[i].Text = value; // Standard Deviation - value = Helper.StringToDecimalPlaces(datas[i].StDev, this.ParentForm.DecimalPlaces4); + //value = Helper.StringToDecimalPlaces(datas[i].StDev, this.ParentForm.DecimalPlaces4); if (this.CollectionStDev[i].Text != value) this.CollectionStDev[i].Text = value; @@ -441,7 +441,7 @@ namespace INT_PT002.Forms // this.labelResult1.Text = value; this.GetJudgmentResult(data, this.labelResult1, this.labelResult1_1); - value = Helper.StringToDecimalPlaces(data.ResultSD, this.ParentForm.DecimalPlaces4); + //value = Helper.StringToDecimalPlaces(data.ResultSD, this.ParentForm.DecimalPlaces4); if (this.labelResultSD1.Text != value) this.labelResultSD1.Text = value; } @@ -454,7 +454,7 @@ namespace INT_PT002.Forms // this.labelResult2.Text = value; this.GetJudgmentResult(data, this.labelResult2, this.labelResult2_1); - value = Helper.StringToDecimalPlaces(data.ResultSD, this.ParentForm.DecimalPlaces4); + //value = Helper.StringToDecimalPlaces(data.ResultSD, this.ParentForm.DecimalPlaces4); if (this.labelResultSD2.Text != value) this.labelResultSD2.Text = value; } @@ -467,7 +467,7 @@ namespace INT_PT002.Forms // this.labelResult3.Text = value; this.GetJudgmentResult(data, this.labelResult3, this.labelResult3_1); - value = Helper.StringToDecimalPlaces(data.ResultSD, this.ParentForm.DecimalPlaces4); + //value = Helper.StringToDecimalPlaces(data.ResultSD, this.ParentForm.DecimalPlaces4); if (this.labelResultSD3.Text != value) this.labelResultSD3.Text = value; } @@ -480,7 +480,7 @@ namespace INT_PT002.Forms // this.labelResult4.Text = value; this.GetJudgmentResult(data, this.labelResult4, this.labelResult4_1); - value = Helper.StringToDecimalPlaces(data.ResultSD, this.ParentForm.DecimalPlaces4); + //value = Helper.StringToDecimalPlaces(data.ResultSD, this.ParentForm.DecimalPlaces4); if (this.labelResultSD4.Text != value) this.labelResultSD4.Text = value; } @@ -493,7 +493,7 @@ namespace INT_PT002.Forms // this.labelResult5.Text = value; this.GetJudgmentResult(data, this.labelResult5, this.labelResult5_1); - value = Helper.StringToDecimalPlaces(data.ResultSD, this.ParentForm.DecimalPlaces4); + //value = Helper.StringToDecimalPlaces(data.ResultSD, this.ParentForm.DecimalPlaces4); if (this.labelResultSD5.Text != value) this.labelResultSD5.Text = value; } @@ -506,7 +506,7 @@ namespace INT_PT002.Forms // this.labelResult6.Text = value; this.GetJudgmentResult(data, this.labelResult6, this.labelResult6_1); - value = Helper.StringToDecimalPlaces(data.ResultSD, this.ParentForm.DecimalPlaces4); + //value = Helper.StringToDecimalPlaces(data.ResultSD, this.ParentForm.DecimalPlaces4); if (this.labelResultSD6.Text != value) this.labelResultSD6.Text = value; } @@ -519,7 +519,7 @@ namespace INT_PT002.Forms // this.labelResult7.Text = value; this.GetJudgmentResult(data, this.labelResult7, this.labelResult7_1); - value = Helper.StringToDecimalPlaces(data.ResultSD, this.ParentForm.DecimalPlaces4); + //value = Helper.StringToDecimalPlaces(data.ResultSD, this.ParentForm.DecimalPlaces4); if (this.labelResultSD7.Text != value) this.labelResultSD7.Text = value; } @@ -532,7 +532,7 @@ namespace INT_PT002.Forms // this.labelResult8.Text = value; this.GetJudgmentResult(data, this.labelResult8, this.labelResult8_1); - value = Helper.StringToDecimalPlaces(data.ResultSD, this.ParentForm.DecimalPlaces4); + //value = Helper.StringToDecimalPlaces(data.ResultSD, this.ParentForm.DecimalPlaces4); if (this.labelResultSD8.Text != value) this.labelResultSD8.Text = value; } @@ -545,7 +545,7 @@ namespace INT_PT002.Forms // this.labelResult9.Text = value; this.GetJudgmentResult(data, this.labelResult9, this.labelResult9_1); - value = Helper.StringToDecimalPlaces(data.ResultSD, this.ParentForm.DecimalPlaces4); + //value = Helper.StringToDecimalPlaces(data.ResultSD, this.ParentForm.DecimalPlaces4); if (this.labelResultSD9.Text != value) this.labelResultSD9.Text = value; } @@ -558,7 +558,7 @@ namespace INT_PT002.Forms // this.labelResult10.Text = value; this.GetJudgmentResult(data, this.labelResult10, this.labelResult10_1); - value = Helper.StringToDecimalPlaces(data.ResultSD, this.ParentForm.DecimalPlaces4); + //value = Helper.StringToDecimalPlaces(data.ResultSD, this.ParentForm.DecimalPlaces4); if (this.labelResultSD10.Text != value) this.labelResultSD10.Text = value; } diff --git a/INT_PT002/Forms/FormMenu.Designer.cs b/INT_PT002/Forms/FormMenu.Designer.cs index f247ddb..31789f2 100644 --- a/INT_PT002/Forms/FormMenu.Designer.cs +++ b/INT_PT002/Forms/FormMenu.Designer.cs @@ -30,8 +30,6 @@ { System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FormMenu)); this.smartForm1 = new SmartX.SmartForm(); - this.buttonBottom6 = new SmartX.SmartButton(); - this.buttonBottom5 = new SmartX.SmartButton(); this.buttonBottom4 = new SmartX.SmartButton(); this.buttonBottom3 = new SmartX.SmartButton(); this.buttonBottom2 = new SmartX.SmartButton(); @@ -44,6 +42,10 @@ this.buttonRecipe = new SmartX.SmartButton(); this.buttonHome = new SmartX.SmartButton(); this.smartGroupBox1 = new SmartX.SmartGroupBox(); + this.smartLabel1 = new SmartX.SmartLabel(); + this.pictureBox1 = new System.Windows.Forms.PictureBox(); + this.smartLabel2 = new SmartX.SmartLabel(); + this.smartLabel3 = new SmartX.SmartLabel(); this.smartForm1.SuspendLayout(); this.SuspendLayout(); // @@ -52,8 +54,10 @@ this.smartForm1.BackGroundFillStyle = SmartXUIBase.SmartUIControlFormBase.BackGroundFillStyles.GradationColor1; this.smartForm1.BackImage = ((System.Drawing.Image)(resources.GetObject("smartForm1.BackImage"))); this.smartForm1.CenterLocation = false; - this.smartForm1.Controls.Add(this.buttonBottom6); - this.smartForm1.Controls.Add(this.buttonBottom5); + this.smartForm1.Controls.Add(this.smartLabel3); + this.smartForm1.Controls.Add(this.smartLabel2); + this.smartForm1.Controls.Add(this.pictureBox1); + this.smartForm1.Controls.Add(this.smartLabel1); this.smartForm1.Controls.Add(this.buttonBottom4); this.smartForm1.Controls.Add(this.buttonBottom3); this.smartForm1.Controls.Add(this.buttonBottom2); @@ -79,92 +83,22 @@ this.smartForm1.SpecialFunctionClickPointSize = 100; this.smartForm1.UseMainMenu = false; // - // buttonBottom6 - // - this.buttonBottom6.BackGround = this.smartForm1; - this.buttonBottom6.BackGroundColor = System.Drawing.Color.LightBlue; - this.buttonBottom6.ButtonColor = System.Drawing.Color.FromArgb(((int)(((byte)(58)))), ((int)(((byte)(110)))), ((int)(((byte)(165))))); - this.buttonBottom6.ButtonDownColor = System.Drawing.Color.FromArgb(((int)(((byte)(56)))), ((int)(((byte)(76)))), ((int)(((byte)(129))))); - this.buttonBottom6.ButtonImageAutoSize = true; - this.buttonBottom6.ButtonStyle = SmartX.SmartButton.ButtonStyles.FlatRound; - this.buttonBottom6.ButtonText = "측정시작"; - this.buttonBottom6.ColorKeySamplePosition = new System.Drawing.Point(0, 0); - this.buttonBottom6.GroupID = 0; - this.buttonBottom6.ImageDisable = null; - this.buttonBottom6.ImageDown = null; - this.buttonBottom6.ImageUp = null; - this.buttonBottom6.Location = new System.Drawing.Point(583, 705); - this.buttonBottom6.Mode = SmartX.SmartButton.BUTTONMODE.NORMAL; - this.buttonBottom6.Name = "buttonBottom6"; - this.buttonBottom6.NestedClickEventPrevent = false; - this.buttonBottom6.OutlinePixel = 2; - this.buttonBottom6.OverlapOptimize = true; - this.buttonBottom6.RepeatInterval = 200; - this.buttonBottom6.RepeatIntervalAccelerate = null; - this.buttonBottom6.RoundSize = 10; - this.buttonBottom6.SafeInterval = 200; - this.buttonBottom6.Size = new System.Drawing.Size(110, 60); - this.buttonBottom6.SpecialFunction = SmartX.SmartButton.SPECIALFUNC.NONE; - this.buttonBottom6.TabIndex = 83; - this.buttonBottom6.Text = null; - this.buttonBottom6.TextColor = System.Drawing.Color.White; - this.buttonBottom6.TextColorDisable = System.Drawing.Color.Gray; - this.buttonBottom6.TextDownColor = System.Drawing.Color.FromArgb(((int)(((byte)(233)))), ((int)(((byte)(238)))), ((int)(((byte)(255))))); - this.buttonBottom6.TextHAlign = SmartX.SmartButton.TextHorAlign.Middle; - this.buttonBottom6.TextVAlign = SmartX.SmartButton.TextVerAlign.Middle; - this.buttonBottom6.Click += new System.EventHandler(this.buttonBottom6_Click); - // - // buttonBottom5 - // - this.buttonBottom5.BackGround = this.smartForm1; - this.buttonBottom5.BackGroundColor = System.Drawing.Color.LightBlue; - this.buttonBottom5.ButtonColor = System.Drawing.Color.FromArgb(((int)(((byte)(58)))), ((int)(((byte)(110)))), ((int)(((byte)(165))))); - this.buttonBottom5.ButtonDownColor = System.Drawing.Color.FromArgb(((int)(((byte)(56)))), ((int)(((byte)(76)))), ((int)(((byte)(129))))); - this.buttonBottom5.ButtonImageAutoSize = true; - this.buttonBottom5.ButtonStyle = SmartX.SmartButton.ButtonStyles.FlatRound; - this.buttonBottom5.ButtonText = "측정시작"; - this.buttonBottom5.ColorKeySamplePosition = new System.Drawing.Point(0, 0); - this.buttonBottom5.GroupID = 0; - this.buttonBottom5.ImageDisable = null; - this.buttonBottom5.ImageDown = null; - this.buttonBottom5.ImageUp = null; - this.buttonBottom5.Location = new System.Drawing.Point(467, 705); - this.buttonBottom5.Mode = SmartX.SmartButton.BUTTONMODE.NORMAL; - this.buttonBottom5.Name = "buttonBottom5"; - this.buttonBottom5.NestedClickEventPrevent = false; - this.buttonBottom5.OutlinePixel = 2; - this.buttonBottom5.OverlapOptimize = true; - this.buttonBottom5.RepeatInterval = 200; - this.buttonBottom5.RepeatIntervalAccelerate = null; - this.buttonBottom5.RoundSize = 10; - this.buttonBottom5.SafeInterval = 200; - this.buttonBottom5.Size = new System.Drawing.Size(110, 60); - this.buttonBottom5.SpecialFunction = SmartX.SmartButton.SPECIALFUNC.NONE; - this.buttonBottom5.TabIndex = 82; - this.buttonBottom5.Text = null; - this.buttonBottom5.TextColor = System.Drawing.Color.White; - this.buttonBottom5.TextColorDisable = System.Drawing.Color.Gray; - this.buttonBottom5.TextDownColor = System.Drawing.Color.FromArgb(((int)(((byte)(233)))), ((int)(((byte)(238)))), ((int)(((byte)(255))))); - this.buttonBottom5.TextHAlign = SmartX.SmartButton.TextHorAlign.Middle; - this.buttonBottom5.TextVAlign = SmartX.SmartButton.TextVerAlign.Middle; - this.buttonBottom5.Click += new System.EventHandler(this.buttonBottom5_Click); - // // buttonBottom4 // this.buttonBottom4.BackGround = this.smartForm1; this.buttonBottom4.BackGroundColor = System.Drawing.Color.LightBlue; this.buttonBottom4.ButtonColor = System.Drawing.Color.FromArgb(((int)(((byte)(58)))), ((int)(((byte)(110)))), ((int)(((byte)(165))))); - this.buttonBottom4.ButtonDownColor = System.Drawing.Color.FromArgb(((int)(((byte)(56)))), ((int)(((byte)(76)))), ((int)(((byte)(129))))); + this.buttonBottom4.ButtonDownColor = System.Drawing.Color.SlateGray; this.buttonBottom4.ButtonImageAutoSize = true; this.buttonBottom4.ButtonStyle = SmartX.SmartButton.ButtonStyles.FlatRound; this.buttonBottom4.ButtonText = "측정시작"; this.buttonBottom4.ColorKeySamplePosition = new System.Drawing.Point(0, 0); - this.buttonBottom4.GroupID = 0; + this.buttonBottom4.GroupID = 1; this.buttonBottom4.ImageDisable = null; this.buttonBottom4.ImageDown = null; this.buttonBottom4.ImageUp = null; this.buttonBottom4.Location = new System.Drawing.Point(351, 705); - this.buttonBottom4.Mode = SmartX.SmartButton.BUTTONMODE.NORMAL; + this.buttonBottom4.Mode = SmartX.SmartButton.BUTTONMODE.RADIO; this.buttonBottom4.Name = "buttonBottom4"; this.buttonBottom4.NestedClickEventPrevent = false; this.buttonBottom4.OutlinePixel = 2; @@ -189,17 +123,17 @@ this.buttonBottom3.BackGround = this.smartForm1; this.buttonBottom3.BackGroundColor = System.Drawing.Color.LightBlue; this.buttonBottom3.ButtonColor = System.Drawing.Color.FromArgb(((int)(((byte)(58)))), ((int)(((byte)(110)))), ((int)(((byte)(165))))); - this.buttonBottom3.ButtonDownColor = System.Drawing.Color.FromArgb(((int)(((byte)(56)))), ((int)(((byte)(76)))), ((int)(((byte)(129))))); + this.buttonBottom3.ButtonDownColor = System.Drawing.Color.SlateGray; this.buttonBottom3.ButtonImageAutoSize = true; this.buttonBottom3.ButtonStyle = SmartX.SmartButton.ButtonStyles.FlatRound; this.buttonBottom3.ButtonText = "측정시작"; this.buttonBottom3.ColorKeySamplePosition = new System.Drawing.Point(0, 0); - this.buttonBottom3.GroupID = 0; + this.buttonBottom3.GroupID = 1; this.buttonBottom3.ImageDisable = null; this.buttonBottom3.ImageDown = null; this.buttonBottom3.ImageUp = null; this.buttonBottom3.Location = new System.Drawing.Point(235, 705); - this.buttonBottom3.Mode = SmartX.SmartButton.BUTTONMODE.NORMAL; + this.buttonBottom3.Mode = SmartX.SmartButton.BUTTONMODE.RADIO; this.buttonBottom3.Name = "buttonBottom3"; this.buttonBottom3.NestedClickEventPrevent = false; this.buttonBottom3.OutlinePixel = 2; @@ -224,17 +158,17 @@ this.buttonBottom2.BackGround = this.smartForm1; this.buttonBottom2.BackGroundColor = System.Drawing.Color.LightBlue; this.buttonBottom2.ButtonColor = System.Drawing.Color.FromArgb(((int)(((byte)(58)))), ((int)(((byte)(110)))), ((int)(((byte)(165))))); - this.buttonBottom2.ButtonDownColor = System.Drawing.Color.FromArgb(((int)(((byte)(56)))), ((int)(((byte)(76)))), ((int)(((byte)(129))))); + this.buttonBottom2.ButtonDownColor = System.Drawing.Color.SlateGray; this.buttonBottom2.ButtonImageAutoSize = true; this.buttonBottom2.ButtonStyle = SmartX.SmartButton.ButtonStyles.FlatRound; this.buttonBottom2.ButtonText = "측정시작"; this.buttonBottom2.ColorKeySamplePosition = new System.Drawing.Point(0, 0); - this.buttonBottom2.GroupID = 0; + this.buttonBottom2.GroupID = 1; this.buttonBottom2.ImageDisable = null; this.buttonBottom2.ImageDown = null; this.buttonBottom2.ImageUp = null; this.buttonBottom2.Location = new System.Drawing.Point(119, 705); - this.buttonBottom2.Mode = SmartX.SmartButton.BUTTONMODE.NORMAL; + this.buttonBottom2.Mode = SmartX.SmartButton.BUTTONMODE.RADIO; this.buttonBottom2.Name = "buttonBottom2"; this.buttonBottom2.NestedClickEventPrevent = false; this.buttonBottom2.OutlinePixel = 2; @@ -259,17 +193,17 @@ this.buttonBottom1.BackGround = this.smartForm1; this.buttonBottom1.BackGroundColor = System.Drawing.Color.LightBlue; this.buttonBottom1.ButtonColor = System.Drawing.Color.FromArgb(((int)(((byte)(58)))), ((int)(((byte)(110)))), ((int)(((byte)(165))))); - this.buttonBottom1.ButtonDownColor = System.Drawing.Color.FromArgb(((int)(((byte)(56)))), ((int)(((byte)(76)))), ((int)(((byte)(129))))); + this.buttonBottom1.ButtonDownColor = System.Drawing.Color.SlateGray; this.buttonBottom1.ButtonImageAutoSize = true; this.buttonBottom1.ButtonStyle = SmartX.SmartButton.ButtonStyles.FlatRound; this.buttonBottom1.ButtonText = "측정시작"; this.buttonBottom1.ColorKeySamplePosition = new System.Drawing.Point(0, 0); - this.buttonBottom1.GroupID = 0; + this.buttonBottom1.GroupID = 1; this.buttonBottom1.ImageDisable = null; this.buttonBottom1.ImageDown = null; this.buttonBottom1.ImageUp = null; this.buttonBottom1.Location = new System.Drawing.Point(3, 705); - this.buttonBottom1.Mode = SmartX.SmartButton.BUTTONMODE.NORMAL; + this.buttonBottom1.Mode = SmartX.SmartButton.BUTTONMODE.RADIO; this.buttonBottom1.Name = "buttonBottom1"; this.buttonBottom1.NestedClickEventPrevent = false; this.buttonBottom1.OutlinePixel = 2; @@ -294,7 +228,7 @@ this.buttonSystem.BackGround = this.smartForm1; this.buttonSystem.BackGroundColor = System.Drawing.Color.LightBlue; this.buttonSystem.ButtonColor = System.Drawing.Color.FromArgb(((int)(((byte)(58)))), ((int)(((byte)(110)))), ((int)(((byte)(165))))); - this.buttonSystem.ButtonDownColor = System.Drawing.Color.FromArgb(((int)(((byte)(56)))), ((int)(((byte)(76)))), ((int)(((byte)(129))))); + this.buttonSystem.ButtonDownColor = System.Drawing.Color.SlateGray; this.buttonSystem.ButtonImageAutoSize = true; this.buttonSystem.ButtonStyle = SmartX.SmartButton.ButtonStyles.FlatRound; this.buttonSystem.ButtonText = "System"; @@ -304,7 +238,7 @@ this.buttonSystem.ImageDown = null; this.buttonSystem.ImageUp = null; this.buttonSystem.Location = new System.Drawing.Point(911, 303); - this.buttonSystem.Mode = SmartX.SmartButton.BUTTONMODE.PUSH; + this.buttonSystem.Mode = SmartX.SmartButton.BUTTONMODE.RADIO; this.buttonSystem.Name = "buttonSystem"; this.buttonSystem.NestedClickEventPrevent = false; this.buttonSystem.OutlinePixel = 2; @@ -329,7 +263,7 @@ this.buttonLog.BackGround = this.smartForm1; this.buttonLog.BackGroundColor = System.Drawing.Color.LightBlue; this.buttonLog.ButtonColor = System.Drawing.Color.FromArgb(((int)(((byte)(58)))), ((int)(((byte)(110)))), ((int)(((byte)(165))))); - this.buttonLog.ButtonDownColor = System.Drawing.Color.FromArgb(((int)(((byte)(56)))), ((int)(((byte)(76)))), ((int)(((byte)(129))))); + this.buttonLog.ButtonDownColor = System.Drawing.Color.SlateGray; this.buttonLog.ButtonImageAutoSize = true; this.buttonLog.ButtonStyle = SmartX.SmartButton.ButtonStyles.FlatRound; this.buttonLog.ButtonText = "Log"; @@ -339,7 +273,7 @@ this.buttonLog.ImageDown = null; this.buttonLog.ImageUp = null; this.buttonLog.Location = new System.Drawing.Point(911, 237); - this.buttonLog.Mode = SmartX.SmartButton.BUTTONMODE.PUSH; + this.buttonLog.Mode = SmartX.SmartButton.BUTTONMODE.RADIO; this.buttonLog.Name = "buttonLog"; this.buttonLog.NestedClickEventPrevent = false; this.buttonLog.OutlinePixel = 2; @@ -364,7 +298,7 @@ this.buttonManual.BackGround = this.smartForm1; this.buttonManual.BackGroundColor = System.Drawing.Color.LightBlue; this.buttonManual.ButtonColor = System.Drawing.Color.FromArgb(((int)(((byte)(58)))), ((int)(((byte)(110)))), ((int)(((byte)(165))))); - this.buttonManual.ButtonDownColor = System.Drawing.Color.FromArgb(((int)(((byte)(56)))), ((int)(((byte)(76)))), ((int)(((byte)(129))))); + this.buttonManual.ButtonDownColor = System.Drawing.Color.SlateGray; this.buttonManual.ButtonImageAutoSize = true; this.buttonManual.ButtonStyle = SmartX.SmartButton.ButtonStyles.FlatRound; this.buttonManual.ButtonText = "Manual"; @@ -374,7 +308,7 @@ this.buttonManual.ImageDown = null; this.buttonManual.ImageUp = null; this.buttonManual.Location = new System.Drawing.Point(911, 171); - this.buttonManual.Mode = SmartX.SmartButton.BUTTONMODE.PUSH; + this.buttonManual.Mode = SmartX.SmartButton.BUTTONMODE.RADIO; this.buttonManual.Name = "buttonManual"; this.buttonManual.NestedClickEventPrevent = false; this.buttonManual.OutlinePixel = 2; @@ -399,7 +333,7 @@ this.buttonSetting.BackGround = this.smartForm1; this.buttonSetting.BackGroundColor = System.Drawing.Color.LightBlue; this.buttonSetting.ButtonColor = System.Drawing.Color.FromArgb(((int)(((byte)(58)))), ((int)(((byte)(110)))), ((int)(((byte)(165))))); - this.buttonSetting.ButtonDownColor = System.Drawing.Color.FromArgb(((int)(((byte)(56)))), ((int)(((byte)(76)))), ((int)(((byte)(129))))); + this.buttonSetting.ButtonDownColor = System.Drawing.Color.SlateGray; this.buttonSetting.ButtonImageAutoSize = true; this.buttonSetting.ButtonStyle = SmartX.SmartButton.ButtonStyles.FlatRound; this.buttonSetting.ButtonText = "Setting"; @@ -409,7 +343,7 @@ this.buttonSetting.ImageDown = null; this.buttonSetting.ImageUp = null; this.buttonSetting.Location = new System.Drawing.Point(911, 105); - this.buttonSetting.Mode = SmartX.SmartButton.BUTTONMODE.PUSH; + this.buttonSetting.Mode = SmartX.SmartButton.BUTTONMODE.RADIO; this.buttonSetting.Name = "buttonSetting"; this.buttonSetting.NestedClickEventPrevent = false; this.buttonSetting.OutlinePixel = 2; @@ -457,7 +391,7 @@ this.buttonRecipe.BackGround = this.smartForm1; this.buttonRecipe.BackGroundColor = System.Drawing.Color.LightBlue; this.buttonRecipe.ButtonColor = System.Drawing.Color.FromArgb(((int)(((byte)(58)))), ((int)(((byte)(110)))), ((int)(((byte)(165))))); - this.buttonRecipe.ButtonDownColor = System.Drawing.Color.FromArgb(((int)(((byte)(56)))), ((int)(((byte)(76)))), ((int)(((byte)(129))))); + this.buttonRecipe.ButtonDownColor = System.Drawing.Color.SlateGray; this.buttonRecipe.ButtonImageAutoSize = true; this.buttonRecipe.ButtonStyle = SmartX.SmartButton.ButtonStyles.FlatRound; this.buttonRecipe.ButtonText = "Recipe"; @@ -467,7 +401,7 @@ this.buttonRecipe.ImageDown = null; this.buttonRecipe.ImageUp = null; this.buttonRecipe.Location = new System.Drawing.Point(911, 39); - this.buttonRecipe.Mode = SmartX.SmartButton.BUTTONMODE.PUSH; + this.buttonRecipe.Mode = SmartX.SmartButton.BUTTONMODE.RADIO; this.buttonRecipe.Name = "buttonRecipe"; this.buttonRecipe.NestedClickEventPrevent = false; this.buttonRecipe.OutlinePixel = 2; @@ -532,14 +466,90 @@ this.smartGroupBox1.FrameLineThickness = 5; this.smartGroupBox1.FrameStyle = SmartX.SmartGroupBox.FRAMESTYLES.HeaderBar; this.smartGroupBox1.HeaderHeightOffset = 9; - this.smartGroupBox1.Location = new System.Drawing.Point(0, 0); + this.smartGroupBox1.Location = new System.Drawing.Point(0, 39); this.smartGroupBox1.Name = "smartGroupBox1"; this.smartGroupBox1.RoundRadius = 5; - this.smartGroupBox1.Size = new System.Drawing.Size(909, 703); + this.smartGroupBox1.Size = new System.Drawing.Size(909, 664); this.smartGroupBox1.TabIndex = 0; this.smartGroupBox1.Text = "기본 > "; this.smartGroupBox1.TextColor = System.Drawing.Color.White; // + // smartLabel1 + // + this.smartLabel1.BackGround = this.smartForm1; + this.smartLabel1.BackGroundColor = System.Drawing.Color.SkyBlue; + this.smartLabel1.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(27)))), ((int)(((byte)(42)))), ((int)(((byte)(82))))); + this.smartLabel1.BorderStyle = SmartX.SmartLabel.BorderStyles.None; + this.smartLabel1.Font = new System.Drawing.Font("New Gulim", 10F, System.Drawing.FontStyle.Bold); + this.smartLabel1.LineSpacing = 0F; + this.smartLabel1.Location = new System.Drawing.Point(119, 3); + this.smartLabel1.Name = "smartLabel1"; + this.smartLabel1.OverlapOptimize = true; + this.smartLabel1.PasswordChar = '\0'; + this.smartLabel1.Radius = 3; + this.smartLabel1.RoundRectFillColor = System.Drawing.Color.LightBlue; + this.smartLabel1.Size = new System.Drawing.Size(200, 30); + this.smartLabel1.TabIndex = 0; + this.smartLabel1.Text = "2023-02-13 16:30:25"; + this.smartLabel1.TextColor = System.Drawing.Color.FromArgb(((int)(((byte)(27)))), ((int)(((byte)(42)))), ((int)(((byte)(82))))); + this.smartLabel1.TextColorDisable = System.Drawing.Color.Gray; + this.smartLabel1.TextHAlign = SmartX.SmartLabel.TextHorAlign.Middle; + this.smartLabel1.TextVAlign = SmartX.SmartLabel.TextVerAlign.Middle; + this.smartLabel1.Wordwrap = false; + // + // pictureBox1 + // + this.pictureBox1.Image = ((System.Drawing.Image)(resources.GetObject("pictureBox1.Image"))); + this.pictureBox1.Location = new System.Drawing.Point(3, 3); + this.pictureBox1.Name = "pictureBox1"; + this.pictureBox1.Size = new System.Drawing.Size(110, 30); + // + // smartLabel2 + // + this.smartLabel2.BackGround = this.smartForm1; + this.smartLabel2.BackGroundColor = System.Drawing.Color.SkyBlue; + this.smartLabel2.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(27)))), ((int)(((byte)(42)))), ((int)(((byte)(82))))); + this.smartLabel2.BorderStyle = SmartX.SmartLabel.BorderStyles.None; + this.smartLabel2.Font = new System.Drawing.Font("New Gulim", 10F, System.Drawing.FontStyle.Bold); + this.smartLabel2.LineSpacing = 0F; + this.smartLabel2.Location = new System.Drawing.Point(849, 3); + this.smartLabel2.Name = "smartLabel2"; + this.smartLabel2.OverlapOptimize = true; + this.smartLabel2.PasswordChar = '\0'; + this.smartLabel2.Radius = 3; + this.smartLabel2.RoundRectFillColor = System.Drawing.Color.LightBlue; + this.smartLabel2.Size = new System.Drawing.Size(60, 30); + this.smartLabel2.TabIndex = 83; + this.smartLabel2.Text = "L3"; + this.smartLabel2.TextColor = System.Drawing.Color.FromArgb(((int)(((byte)(27)))), ((int)(((byte)(42)))), ((int)(((byte)(82))))); + this.smartLabel2.TextColorDisable = System.Drawing.Color.Gray; + this.smartLabel2.TextHAlign = SmartX.SmartLabel.TextHorAlign.Middle; + this.smartLabel2.TextVAlign = SmartX.SmartLabel.TextVerAlign.Middle; + this.smartLabel2.Wordwrap = false; + // + // smartLabel3 + // + this.smartLabel3.BackGround = this.smartForm1; + this.smartLabel3.BackGroundColor = System.Drawing.Color.SkyBlue; + this.smartLabel3.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(27)))), ((int)(((byte)(42)))), ((int)(((byte)(82))))); + this.smartLabel3.BorderStyle = SmartX.SmartLabel.BorderStyles.None; + this.smartLabel3.Font = new System.Drawing.Font("New Gulim", 10F, System.Drawing.FontStyle.Bold); + this.smartLabel3.LineSpacing = 0F; + this.smartLabel3.Location = new System.Drawing.Point(743, 3); + this.smartLabel3.Name = "smartLabel3"; + this.smartLabel3.OverlapOptimize = true; + this.smartLabel3.PasswordChar = '\0'; + this.smartLabel3.Radius = 3; + this.smartLabel3.RoundRectFillColor = System.Drawing.Color.LightBlue; + this.smartLabel3.Size = new System.Drawing.Size(100, 30); + this.smartLabel3.TabIndex = 84; + this.smartLabel3.Text = "Intech00"; + this.smartLabel3.TextColor = System.Drawing.Color.FromArgb(((int)(((byte)(27)))), ((int)(((byte)(42)))), ((int)(((byte)(82))))); + this.smartLabel3.TextColorDisable = System.Drawing.Color.Gray; + this.smartLabel3.TextHAlign = SmartX.SmartLabel.TextHorAlign.Middle; + this.smartLabel3.TextVAlign = SmartX.SmartLabel.TextVerAlign.Middle; + this.smartLabel3.Wordwrap = false; + // // FormMenu // this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F); @@ -567,10 +577,12 @@ private SmartX.SmartLabel labelStop; private SmartX.SmartButton buttonBottom1; private SmartX.SmartButton buttonSystem; - private SmartX.SmartButton buttonBottom6; - private SmartX.SmartButton buttonBottom5; private SmartX.SmartButton buttonBottom4; private SmartX.SmartButton buttonBottom3; private SmartX.SmartButton buttonBottom2; + private SmartX.SmartLabel smartLabel1; + private System.Windows.Forms.PictureBox pictureBox1; + private SmartX.SmartLabel smartLabel3; + private SmartX.SmartLabel smartLabel2; } } \ No newline at end of file diff --git a/INT_PT002/Forms/FormMenu.cs b/INT_PT002/Forms/FormMenu.cs index cd499fc..f3ada3e 100644 --- a/INT_PT002/Forms/FormMenu.cs +++ b/INT_PT002/Forms/FormMenu.cs @@ -17,13 +17,31 @@ namespace INT_PT002.Forms #region Field private FormMain m_ParentForm; - ControlMenuManualIoTest Child_Manual_IoTest; - ControlMenuManualMotorSetting Child_Manual_MotorSetting; - ControlMenuSettingCommunication Child_Setting_Communication; - ControlMenuSettingConfiguration Child_Setting_Configuration; - ControlMenuSettingUserEditor Child_Setting_UserEditor; + // Recipe + private ControlMenuRecipeSetting Child_Recipe_Setting; + // Setting + private ControlMenuSettingCommunication Child_Setting_Communication; + private ControlMenuSettingConfiguration Child_Setting_Configuration; + private ControlMenuSettingUserEditor Child_Setting_UserEditor; + // Manual + private ControlMenuManualIoTest Child_Manual_IoTest; + private ControlMenuManualMotorSetting Child_Manual_MotorSetting; + // Log + private ControlMenuLogHistory Child_Log_History; + private ControlMenuLogInspection Child_Log_Inspection; + private ControlMenuLogAlarm Child_Log_Alarm; + // System + private ControlMenuSystemInformation Child_System_Information; + private ControlMenuSystemTime Child_System_Time; + private ControlMenuSystemEquipment Child_System_Equipment; + private ControlMenuSystemUpdate Child_System_Update; - private Define.E_TopMenuStore SelectedTopMenu; + private Define.E_TopMenuStore SelectedTopMenu; + private Define.E_MenuRecipeStore SelectedMenuRecipe; + private Define.E_MenuSettingStore SelectedMenuSetting; + private Define.E_MenuManualStore SelectedMenuManual; + private Define.E_MenuLogStore SelectedMenuLog; + private Define.E_MenuSystemStore SelectedMenuSystem; #endregion #region Constructor @@ -49,26 +67,55 @@ namespace INT_PT002.Forms private void Initialize() { this.SelectedTopMenu = Define.E_TopMenuStore.Recipe; + this.SelectedMenuRecipe = Define.E_MenuRecipeStore._0_None; + this.SelectedMenuSetting = Define.E_MenuSettingStore._0_None; + this.SelectedMenuManual = Define.E_MenuManualStore._0_None; + this.SelectedMenuLog = Define.E_MenuLogStore._0_None; + this.SelectedMenuSystem = Define.E_MenuSystemStore._0_None; } private void CreateChildControls() { + this.Child_Recipe_Setting = new ControlMenuRecipeSetting(this); + this.Child_Setting_Configuration = new ControlMenuSettingConfiguration(this); + this.Child_Setting_Communication = new ControlMenuSettingCommunication(this); + this.Child_Setting_UserEditor = new ControlMenuSettingUserEditor(this); this.Child_Manual_IoTest = new ControlMenuManualIoTest(this); this.Child_Manual_MotorSetting = new ControlMenuManualMotorSetting(this); - this.Child_Setting_Communication = new ControlMenuSettingCommunication(this); - this.Child_Setting_Configuration = new ControlMenuSettingConfiguration(this); - this.Child_Setting_UserEditor = new ControlMenuSettingUserEditor(this); + this.Child_Log_History = new ControlMenuLogHistory(this); + this.Child_Log_Inspection = new ControlMenuLogInspection(this); + this.Child_Log_Alarm = new ControlMenuLogAlarm(this); + this.Child_System_Equipment = new ControlMenuSystemEquipment(this); + this.Child_System_Information = new ControlMenuSystemInformation(this); + this.Child_System_Time = new ControlMenuSystemTime(this); + this.Child_System_Update = new ControlMenuSystemUpdate(this); + this.Controls.Add(this.Child_Recipe_Setting); + this.Controls.Add(this.Child_Setting_Configuration); + this.Controls.Add(this.Child_Setting_Communication); + this.Controls.Add(this.Child_Setting_UserEditor); this.Controls.Add(this.Child_Manual_IoTest); this.Controls.Add(this.Child_Manual_MotorSetting); - this.Controls.Add(this.Child_Setting_Communication); - this.Controls.Add(this.Child_Setting_Configuration); - this.Controls.Add(this.Child_Setting_UserEditor); + this.Controls.Add(this.Child_Log_Alarm); + this.Controls.Add(this.Child_Log_History); + this.Controls.Add(this.Child_Log_Inspection); + this.Controls.Add(this.Child_System_Equipment); + this.Controls.Add(this.Child_System_Information); + this.Controls.Add(this.Child_System_Time); + this.Controls.Add(this.Child_System_Update); - this.Child_Manual_IoTest.Location = new Point(0, 0); - this.Child_Manual_MotorSetting.Location = new Point(0, 0); - this.Child_Setting_Communication.Location = new Point(0, 0); - this.Child_Setting_Configuration.Location = new Point(0, 0); - this.Child_Setting_UserEditor.Location = new Point(0, 0); + this.Child_Recipe_Setting.Location = new Point(0, 39); + this.Child_Setting_Configuration.Location = new Point(0, 39); + this.Child_Setting_Communication.Location = new Point(0, 39); + this.Child_Setting_UserEditor.Location = new Point(0, 39); + this.Child_Manual_IoTest.Location = new Point(0, 39); + this.Child_Manual_MotorSetting.Location = new Point(0, 39); + this.Child_Log_Alarm.Location = new Point(0, 39); + this.Child_Log_History.Location = new Point(0, 39); + this.Child_Log_Inspection.Location = new Point(0, 39); + this.Child_System_Equipment.Location = new Point(0, 39); + this.Child_System_Information.Location = new Point(0, 39); + this.Child_System_Time.Location = new Point(0, 39); + this.Child_System_Update.Location = new Point(0, 39); } private void SetTopMenu(Define.E_TopMenuStore bottom) @@ -82,12 +129,15 @@ namespace INT_PT002.Forms this.buttonLog.ButtonUp(); this.buttonSystem.ButtonUp(); - this.buttonBottom1.Visible = false; + this.buttonBottom1.ButtonText = "Setting"; + + this.buttonBottom1.Visible = true; this.buttonBottom2.Visible = false; this.buttonBottom3.Visible = false; this.buttonBottom4.Visible = false; - this.buttonBottom5.Visible = false; - this.buttonBottom6.Visible = false; + + this.SelectedMenuRecipe = Define.E_MenuRecipeStore._1_Setting; + this.SetBottomMenuRecipe(this.SelectedMenuRecipe); break; case Define.E_TopMenuStore.Setting: this.buttonRecipe.ButtonUp(); @@ -104,8 +154,9 @@ namespace INT_PT002.Forms this.buttonBottom2.Visible = true; this.buttonBottom3.Visible = true; this.buttonBottom4.Visible = false; - this.buttonBottom5.Visible = false; - this.buttonBottom6.Visible = false; + + this.SelectedMenuSetting = Define.E_MenuSettingStore._1_Configuration; + this.SetBottomMenuSetting(this.SelectedMenuSetting); break; case Define.E_TopMenuStore.Manual: this.buttonRecipe.ButtonUp(); @@ -121,8 +172,9 @@ namespace INT_PT002.Forms this.buttonBottom2.Visible = true; this.buttonBottom3.Visible = false; this.buttonBottom4.Visible = false; - this.buttonBottom5.Visible = false; - this.buttonBottom6.Visible = false; + + this.SelectedMenuManual = Define.E_MenuManualStore._1_IoTest; + this.SetBottomMenuManual(this.SelectedMenuManual); break; case Define.E_TopMenuStore.Log: this.buttonRecipe.ButtonUp(); @@ -139,8 +191,9 @@ namespace INT_PT002.Forms this.buttonBottom2.Visible = true; this.buttonBottom3.Visible = true; this.buttonBottom4.Visible = false; - this.buttonBottom5.Visible = false; - this.buttonBottom6.Visible = false; + + this.SelectedMenuLog = Define.E_MenuLogStore._1_History; + this.SetBottomMenuLog(this.SelectedMenuLog); break; case Define.E_TopMenuStore.System: this.buttonRecipe.ButtonUp(); @@ -158,31 +211,67 @@ namespace INT_PT002.Forms this.buttonBottom2.Visible = true; this.buttonBottom3.Visible = true; this.buttonBottom4.Visible = true; - this.buttonBottom5.Visible = false; - this.buttonBottom6.Visible = false; + + this.SelectedMenuSystem = Define.E_MenuSystemStore._1_Information; + this.SetBottomMenuSystem(this.SelectedMenuSystem); break; default: this.buttonBottom1.Visible = false; this.buttonBottom2.Visible = false; this.buttonBottom3.Visible = false; this.buttonBottom4.Visible = false; - this.buttonBottom5.Visible = false; - this.buttonBottom6.Visible = false; break; } } private void SetBottomMenuRecipe(Define.E_MenuRecipeStore menu) - { + { + switch (menu) + { + case Define.E_MenuRecipeStore._0_None: + break; + case Define.E_MenuRecipeStore._1_Setting: + this.Child_Recipe_Setting.DisplayRefresh(); + this.Child_Recipe_Setting.BringToFront(); + + this.buttonBottom1.ButtonDown(); + this.buttonBottom2.ButtonUp(); + this.buttonBottom3.ButtonUp(); + this.buttonBottom4.ButtonUp(); + break; + default: + break; + } } private void SetBottomMenuSetting(Define.E_MenuSettingStore menu) { switch (menu) { - case Define.E_MenuSettingStore.Communication: + case Define.E_MenuSettingStore._1_Configuration: + this.Child_Setting_Configuration.DisplayRefresh(); + this.Child_Setting_Configuration.BringToFront(); + + this.buttonBottom1.ButtonDown(); + this.buttonBottom2.ButtonUp(); + this.buttonBottom3.ButtonUp(); + this.buttonBottom4.ButtonUp(); break; - case Define.E_MenuSettingStore.Configuration: + case Define.E_MenuSettingStore._2_Communication: + this.Child_Setting_Communication.DisplayRefresh(); + this.Child_Setting_Communication.BringToFront(); + + this.buttonBottom1.ButtonUp(); + this.buttonBottom2.ButtonDown(); + this.buttonBottom3.ButtonUp(); + this.buttonBottom4.ButtonUp(); break; - case Define.E_MenuSettingStore.UserEditor: + case Define.E_MenuSettingStore._3_UserEditor: + this.Child_Setting_UserEditor.DisplayRefresh(); + this.Child_Setting_UserEditor.BringToFront(); + + this.buttonBottom1.ButtonUp(); + this.buttonBottom2.ButtonUp(); + this.buttonBottom3.ButtonDown(); + this.buttonBottom4.ButtonUp(); break; default: break; @@ -192,9 +281,23 @@ namespace INT_PT002.Forms { switch (menu) { - case Define.E_MenuManualStore.IoTest: + case Define.E_MenuManualStore._1_IoTest: + this.Child_Manual_IoTest.DisplayRefresh(); + this.Child_Manual_IoTest.BringToFront(); + + this.buttonBottom1.ButtonDown(); + this.buttonBottom2.ButtonUp(); + this.buttonBottom3.ButtonUp(); + this.buttonBottom4.ButtonUp(); break; - case Define.E_MenuManualStore.MotorSetting: + case Define.E_MenuManualStore._2_MotorSetting: + this.Child_Manual_MotorSetting.DisplayRefresh(); + this.Child_Manual_MotorSetting.BringToFront(); + + this.buttonBottom1.ButtonUp(); + this.buttonBottom2.ButtonDown(); + this.buttonBottom3.ButtonUp(); + this.buttonBottom4.ButtonUp(); break; default: break; @@ -204,11 +307,32 @@ namespace INT_PT002.Forms { switch (menu) { - case Define.E_MenuLogStore.History: + case Define.E_MenuLogStore._1_History: + this.Child_Log_History.DisplayRefresh(); + this.Child_Log_History.BringToFront(); + + this.buttonBottom1.ButtonDown(); + this.buttonBottom2.ButtonUp(); + this.buttonBottom3.ButtonUp(); + this.buttonBottom4.ButtonUp(); break; - case Define.E_MenuLogStore.Inspection: + case Define.E_MenuLogStore._2_Inspection: + this.Child_Log_Inspection.DisplayRefresh(); + this.Child_Log_Inspection.BringToFront(); + + this.buttonBottom1.ButtonUp(); + this.buttonBottom2.ButtonDown(); + this.buttonBottom3.ButtonUp(); + this.buttonBottom4.ButtonUp(); break; - case Define.E_MenuLogStore.Alarm: + case Define.E_MenuLogStore._3_Alarm: + this.Child_Log_Alarm.DisplayRefresh(); + this.Child_Log_Alarm.BringToFront(); + + this.buttonBottom1.ButtonUp(); + this.buttonBottom2.ButtonUp(); + this.buttonBottom3.ButtonDown(); + this.buttonBottom4.ButtonUp(); break; default: break; @@ -218,13 +342,41 @@ namespace INT_PT002.Forms { switch (menu) { - case Define.E_MenuSystemStore.Information: + case Define.E_MenuSystemStore._1_Information: + this.Child_System_Information.DisplayRefresh(); + this.Child_System_Information.BringToFront(); + + this.buttonBottom1.ButtonDown(); + this.buttonBottom2.ButtonUp(); + this.buttonBottom3.ButtonUp(); + this.buttonBottom4.ButtonUp(); break; - case Define.E_MenuSystemStore.Time: + case Define.E_MenuSystemStore._2_Time: + this.Child_System_Time.DisplayRefresh(); + this.Child_System_Time.BringToFront(); + + this.buttonBottom1.ButtonUp(); + this.buttonBottom2.ButtonDown(); + this.buttonBottom3.ButtonUp(); + this.buttonBottom4.ButtonUp(); break; - case Define.E_MenuSystemStore.Equipment: + case Define.E_MenuSystemStore._3_Equipment: + this.Child_System_Equipment.DisplayRefresh(); + this.Child_System_Equipment.BringToFront(); + + this.buttonBottom1.ButtonUp(); + this.buttonBottom2.ButtonUp(); + this.buttonBottom3.ButtonDown(); + this.buttonBottom4.ButtonUp(); break; - case Define.E_MenuSystemStore.Update: + case Define.E_MenuSystemStore._4_Update: + this.Child_System_Update.DisplayRefresh(); + this.Child_System_Update.BringToFront(); + + this.buttonBottom1.ButtonUp(); + this.buttonBottom2.ButtonUp(); + this.buttonBottom3.ButtonUp(); + this.buttonBottom4.ButtonDown(); break; default: break; @@ -244,6 +396,7 @@ namespace INT_PT002.Forms this.ParentForm.ChildFormMainDisplay.DisplayRefresh(); this.ParentForm.FormChange((int)Define.E_FormStore.FormMainDisplay); } + private void buttonRecipe_Click(object sender, EventArgs e) { if (this.SelectedTopMenu != Define.E_TopMenuStore.Recipe) @@ -284,36 +437,119 @@ namespace INT_PT002.Forms this.SetTopMenu(this.SelectedTopMenu); } } - #endregion private void buttonBottom1_Click(object sender, EventArgs e) { - + switch (this.SelectedTopMenu) + { + case Define.E_TopMenuStore.Recipe: + this.SelectedMenuRecipe = Define.E_MenuRecipeStore._1_Setting; + this.SetBottomMenuRecipe(this.SelectedMenuRecipe); + break; + case Define.E_TopMenuStore.Setting: + this.SelectedMenuSetting = Define.E_MenuSettingStore._1_Configuration; + this.SetBottomMenuSetting(this.SelectedMenuSetting); + break; + case Define.E_TopMenuStore.Manual: + this.SelectedMenuManual = Define.E_MenuManualStore._1_IoTest; + this.SetBottomMenuManual(this.SelectedMenuManual); + break; + case Define.E_TopMenuStore.Log: + this.SelectedMenuLog = Define.E_MenuLogStore._1_History; + this.SetBottomMenuLog(this.SelectedMenuLog); + break; + case Define.E_TopMenuStore.System: + this.SelectedMenuSystem = Define.E_MenuSystemStore._1_Information; + this.SetBottomMenuSystem(this.SelectedMenuSystem); + break; + default: + break; + } } - private void buttonBottom2_Click(object sender, EventArgs e) { - + switch (this.SelectedTopMenu) + { + case Define.E_TopMenuStore.Recipe: + this.SelectedMenuRecipe = Define.E_MenuRecipeStore._0_None; + this.SetBottomMenuRecipe(this.SelectedMenuRecipe); + break; + case Define.E_TopMenuStore.Setting: + this.SelectedMenuSetting = Define.E_MenuSettingStore._2_Communication; + this.SetBottomMenuSetting(this.SelectedMenuSetting); + break; + case Define.E_TopMenuStore.Manual: + this.SelectedMenuManual = Define.E_MenuManualStore._2_MotorSetting; + this.SetBottomMenuManual(this.SelectedMenuManual); + break; + case Define.E_TopMenuStore.Log: + this.SelectedMenuLog = Define.E_MenuLogStore._2_Inspection; + this.SetBottomMenuLog(this.SelectedMenuLog); + break; + case Define.E_TopMenuStore.System: + this.SelectedMenuSystem = Define.E_MenuSystemStore._2_Time; + this.SetBottomMenuSystem(this.SelectedMenuSystem); + break; + default: + break; + } } - private void buttonBottom3_Click(object sender, EventArgs e) { - + switch (this.SelectedTopMenu) + { + case Define.E_TopMenuStore.Recipe: + this.SelectedMenuRecipe = Define.E_MenuRecipeStore._0_None; + this.SetBottomMenuRecipe(this.SelectedMenuRecipe); + break; + case Define.E_TopMenuStore.Setting: + this.SelectedMenuSetting = Define.E_MenuSettingStore._3_UserEditor; + this.SetBottomMenuSetting(this.SelectedMenuSetting); + break; + case Define.E_TopMenuStore.Manual: + this.SelectedMenuManual = Define.E_MenuManualStore._0_None; + this.SetBottomMenuManual(this.SelectedMenuManual); + break; + case Define.E_TopMenuStore.Log: + this.SelectedMenuLog = Define.E_MenuLogStore._3_Alarm; + this.SetBottomMenuLog(this.SelectedMenuLog); + break; + case Define.E_TopMenuStore.System: + this.SelectedMenuSystem = Define.E_MenuSystemStore._3_Equipment; + this.SetBottomMenuSystem(this.SelectedMenuSystem); + break; + default: + break; + } } - private void buttonBottom4_Click(object sender, EventArgs e) { - - } - - private void buttonBottom5_Click(object sender, EventArgs e) - { - - } - - private void buttonBottom6_Click(object sender, EventArgs e) - { - + switch (this.SelectedTopMenu) + { + case Define.E_TopMenuStore.Recipe: + this.SelectedMenuRecipe = Define.E_MenuRecipeStore._0_None; + this.SetBottomMenuRecipe(this.SelectedMenuRecipe); + break; + case Define.E_TopMenuStore.Setting: + this.SelectedMenuSetting = Define.E_MenuSettingStore._0_None; + this.SetBottomMenuSetting(this.SelectedMenuSetting); + break; + case Define.E_TopMenuStore.Manual: + this.SelectedMenuManual = Define.E_MenuManualStore._0_None; + this.SetBottomMenuManual(this.SelectedMenuManual); + break; + case Define.E_TopMenuStore.Log: + this.SelectedMenuLog = Define.E_MenuLogStore._0_None; + this.SetBottomMenuLog(this.SelectedMenuLog); + break; + case Define.E_TopMenuStore.System: + this.SelectedMenuSystem = Define.E_MenuSystemStore._4_Update; + this.SetBottomMenuSystem(this.SelectedMenuSystem); + break; + default: + break; + } } + #endregion } } \ No newline at end of file diff --git a/INT_PT002/Forms/FormMenu.resx b/INT_PT002/Forms/FormMenu.resx index 13b314b..3c66452 100644 --- a/INT_PT002/Forms/FormMenu.resx +++ b/INT_PT002/Forms/FormMenu.resx @@ -207,6 +207,81 @@ AAAAAAgQAAAAACBAAAAAAICA+XwGAAAA2E0AAAAAgAABAAAAAAIEAAAAAAgQAAAAACBAAAAAAIAAAQAA AAACBAAAAAAIEAAAAAAgQAAAAACAAAEAAAAAAgQAAAAACBAAAAAAIEAAAAAAgPU+f/kfOAHKas5MfjcA AAAASUVORK5CYII= + + + + + iVBORw0KGgoAAAANSUhEUgAAAG4AAAAeCAIAAABCG7xtAAAABGdBTUEAALGOfPtRkwAAACBjSFJNAACH + DwAAjA8AAP1SAACBQAAAfXkAAOmLAAA85QAAGcxzPIV3AAAKOWlDQ1BQaG90b3Nob3AgSUNDIHByb2Zp + bGUAAEjHnZZ3VFTXFofPvXd6oc0w0hl6ky4wgPQuIB0EURhmBhjKAMMMTWyIqEBEEREBRZCggAGjoUis + iGIhKKhgD0gQUGIwiqioZEbWSnx5ee/l5ffHvd/aZ+9z99l7n7UuACRPHy4vBZYCIJkn4Ad6ONNXhUfQ + sf0ABniAAaYAMFnpqb5B7sFAJC83F3q6yAn8i94MAUj8vmXo6U+ng/9P0qxUvgAAyF/E5mxOOkvE+SJO + yhSkiu0zIqbGJIoZRomZL0pQxHJijlvkpZ99FtlRzOxkHlvE4pxT2clsMfeIeHuGkCNixEfEBRlcTqaI + b4tYM0mYzBXxW3FsMoeZDgCKJLYLOKx4EZuImMQPDnQR8XIAcKS4LzjmCxZwsgTiQ7mkpGbzuXHxArou + S49uam3NoHtyMpM4AoGhP5OVyOSz6S4pyalMXjYAi2f+LBlxbemiIluaWltaGpoZmX5RqP+6+Dcl7u0i + vQr43DOI1veH7a/8UuoAYMyKarPrD1vMfgA6tgIgd/8Pm+YhACRFfWu/8cV5aOJ5iRcIUm2MjTMzM424 + HJaRuKC/6386/A198T0j8Xa/l4fuyollCpMEdHHdWClJKUI+PT2VyeLQDf88xP848K/zWBrIieXwOTxR + RKhoyri8OFG7eWyugJvCo3N5/6mJ/zDsT1qca5Eo9Z8ANcoISN2gAuTnPoCiEAESeVDc9d/75oMPBeKb + F6Y6sTj3nwX9+65wifiRzo37HOcSGExnCfkZi2viawnQgAAkARXIAxWgAXSBITADVsAWOAI3sAL4gWAQ + DtYCFogHyYAPMkEu2AwKQBHYBfaCSlAD6kEjaAEnQAc4DS6Ay+A6uAnugAdgBIyD52AGvAHzEARhITJE + geQhVUgLMoDMIAZkD7lBPlAgFA5FQ3EQDxJCudAWqAgqhSqhWqgR+hY6BV2ArkID0D1oFJqCfoXewwhM + gqmwMqwNG8MM2An2hoPhNXAcnAbnwPnwTrgCroOPwe3wBfg6fAcegZ/DswhAiAgNUUMMEQbigvghEUgs + wkc2IIVIOVKHtCBdSC9yCxlBppF3KAyKgqKjDFG2KE9UCIqFSkNtQBWjKlFHUe2oHtQt1ChqBvUJTUYr + oQ3QNmgv9Cp0HDoTXYAuRzeg29CX0HfQ4+g3GAyGhtHBWGE8MeGYBMw6TDHmAKYVcx4zgBnDzGKxWHms + AdYO64dlYgXYAux+7DHsOewgdhz7FkfEqeLMcO64CBwPl4crxzXhzuIGcRO4ebwUXgtvg/fDs/HZ+BJ8 + Pb4LfwM/jp8nSBN0CHaEYEICYTOhgtBCuER4SHhFJBLVidbEACKXuIlYQTxOvEIcJb4jyZD0SS6kSJKQ + tJN0hHSedI/0ikwma5MdyRFkAXknuZF8kfyY/FaCImEk4SXBltgoUSXRLjEo8UISL6kl6SS5VjJHslzy + pOQNyWkpvJS2lIsUU2qDVJXUKalhqVlpirSptJ90snSxdJP0VelJGayMtoybDFsmX+awzEWZMQpC0aC4 + UFiULZR6yiXKOBVD1aF6UROoRdRvqP3UGVkZ2WWyobJZslWyZ2RHaAhNm+ZFS6KV0E7QhmjvlygvcVrC + WbJjScuSwSVzcopyjnIcuUK5Vrk7cu/l6fJu8onyu+U75B8poBT0FQIUMhUOKlxSmFakKtoqshQLFU8o + 3leClfSVApXWKR1W6lOaVVZR9lBOVd6vfFF5WoWm4qiSoFKmclZlSpWiaq/KVS1TPaf6jC5Ld6In0Svo + PfQZNSU1TzWhWq1av9q8uo56iHqeeqv6Iw2CBkMjVqNMo1tjRlNV01czV7NZ874WXouhFa+1T6tXa05b + RztMe5t2h/akjpyOl06OTrPOQ12yroNumm6d7m09jB5DL1HvgN5NfVjfQj9ev0r/hgFsYGnANThgMLAU + vdR6KW9p3dJhQ5Khk2GGYbPhqBHNyMcoz6jD6IWxpnGE8W7jXuNPJhYmSSb1Jg9MZUxXmOaZdpn+aqZv + xjKrMrttTjZ3N99o3mn+cpnBMs6yg8vuWlAsfC22WXRbfLS0suRbtlhOWWlaRVtVWw0zqAx/RjHjijXa + 2tl6o/Vp63c2ljYCmxM2v9ga2ibaNtlOLtdZzllev3zMTt2OaVdrN2JPt4+2P2Q/4qDmwHSoc3jiqOHI + dmxwnHDSc0pwOub0wtnEme/c5jznYuOy3uW8K+Lq4Vro2u8m4xbiVun22F3dPc692X3Gw8Jjncd5T7Sn + t+duz2EvZS+WV6PXzAqrFetX9HiTvIO8K72f+Oj78H26fGHfFb57fB+u1FrJW9nhB/y8/Pb4PfLX8U/z + /z4AE+AfUBXwNNA0MDewN4gSFBXUFPQm2Dm4JPhBiG6IMKQ7VDI0MrQxdC7MNaw0bGSV8ar1q66HK4Rz + wzsjsBGhEQ0Rs6vdVu9dPR5pEVkQObRGZ03WmqtrFdYmrT0TJRnFjDoZjY4Oi26K/sD0Y9YxZ2O8Yqpj + ZlgurH2s52xHdhl7imPHKeVMxNrFlsZOxtnF7YmbineIL4+f5rpwK7kvEzwTahLmEv0SjyQuJIUltSbj + kqOTT/FkeIm8nhSVlKyUgVSD1ILUkTSbtL1pM3xvfkM6lL4mvVNAFf1M9Ql1hVuFoxn2GVUZbzNDM09m + SWfxsvqy9bN3ZE/kuOd8vQ61jrWuO1ctd3Pu6Hqn9bUboA0xG7o3amzM3zi+yWPT0c2EzYmbf8gzySvN + e70lbEtXvnL+pvyxrR5bmwskCvgFw9tst9VsR23nbu/fYb5j/45PhezCa0UmReVFH4pZxde+Mv2q4quF + nbE7+0ssSw7uwuzi7Rra7bD7aKl0aU7p2B7fPe1l9LLCstd7o/ZeLV9WXrOPsE+4b6TCp6Jzv+b+Xfs/ + VMZX3qlyrmqtVqreUT13gH1g8KDjwZYa5ZqimveHuIfu1nrUttdp15UfxhzOOPy0PrS+92vG140NCg1F + DR+P8I6MHA082tNo1djYpNRU0gw3C5unjkUeu/mN6zedLYYtta201qLj4Ljw+LNvo78dOuF9ovsk42TL + d1rfVbdR2grbofbs9pmO+I6RzvDOgVMrTnV32Xa1fW/0/ZHTaqerzsieKTlLOJt/duFczrnZ86nnpy/E + XRjrjup+cHHVxds9AT39l7wvXbnsfvlir1PvuSt2V05ftbl66hrjWsd1y+vtfRZ9bT9Y/NDWb9nffsPq + RudN65tdA8sHzg46DF645Xrr8m2v29fvrLwzMBQydHc4cnjkLvvu5L2key/vZ9yff7DpIfph4SOpR+WP + lR7X/aj3Y+uI5ciZUdfRvidBTx6Mscae/5T+04fx/Kfkp+UTqhONk2aTp6fcp24+W/1s/Hnq8/npgp+l + f65+ofviu18cf+mbWTUz/pL/cuHX4lfyr468Xva6e9Z/9vGb5Dfzc4Vv5d8efcd41/s+7P3EfOYH7IeK + j3ofuz55f3q4kLyw8Bv3hPP74uYdwgAAAAlwSFlzAAAOxAAADsQBlSsOGwAABcpJREFUaEPtmvlTE2cc + h/svdKY/dFrp4bTWXnZ6aGE6rTPWVvuDVjmEANoCCgKtHOGSWzFQraUiHpQrIKaCpa2FcMkZIDCWO4QQ + Eo6QSAghjZoKCSjSL7z4ZnkTptM2yywdMs8wu5/3ze47D++777u7eaK0aXA14QukjQU/tv5wYThgp5q1 + edxt00DYAY3LRqW3vTjhqIBXVFnVRnxlrbB6KvmCgc5vY9Xur8rYTmrWK9r9zwDjbi+DSrQNiE4Fax03 + SCM9qspbia8zn1VSKczJGvVx6D0RKI737UkOw+4IlSN+26EOVFB6bxMlHSurFxPHYTK0q+Q3ynoTA7As + ecg+efDnMJbBlDjBvzcxsC0tBe2KkoKkEazulHBcefTwBzfLmokDMhZ6VYLHgXA3rAboORVC3SV6JSBj + O0OId8c8Xq8uaSAOy0zoVSmO98NSAJhnoFdSE0uVE052khhvaqL68t01MRfRqLIlK2NJh/NzevYu+Avz + icb5eewIsFQJLEw+yxPoqsTBGQhdKstruqEPIhHTFfnz8/PTlVfgaojtIKyqBOMTy40DrZmXiFMwDbpU + UmeP6XLugsqKfGK8A1ZVwvVx6KvdRKj02grLKeIsjIIWlWUN/dSpQ+tkpw/+eOzQW5aCrKoEYM1EJEAz + N5c4EaOgRaUwN4eq4E/uiQcjfboSrsb/w9neFtjGzCr6TWqFse46XElnJbcealWI2bt6tPFAKdUdee/+ + FTiCeKo6X+G/jUoj76owL4sIEbLwPQ1FxSOBDnL27rIGCWpY09WCkQB7WcRe3FQbQotKWCdSVc6KW2CA + G9XKeylesGH1M+m5eWnL4nMnzmm2Twgbj0xTWtentC5PYjpTj4s4/tSESsf3sWij4mY7aljX2QiU4Kba + EFpUKny3W1GpUd37xntRzvycTm26VTnTXvPINI0SreOzUzcuG2sLHyoHUDJ3d9LY8JOxmgeWkcqH48Oy + FD9wh6kuqcUqoRtSi8BjW3oSKqqs+h01rPNsJEpwU20ILSrx3L1c5W2s8k700urSUJiKElwZ+iBKDOnm + xTxSaWotFWWcFlwrwpTV9SKVGtbTpU1yohlYpYgT0JyXLeRmKo5uXWMqFb4fUTENdIOI6UnNxKXoRUvz + 6pNeqEhXnIESXBmKUKLLS8bhjKQVhYaLgcgFoj0tAakc97Aj2gBglZYQNW0CLSpVX7xDxdTfARamtRpd + WigyoolzQ0X6ojSU4MpQhBJ9VgIOV1LZdoHzP1e5wgA3Xyv1oZ+gIkM+ByW4MhShxJBuvudBA9xYf60j + 61ztL+VL/FrBF0jNA7xRRjQDq4QNqFxf/NtgyKdrTOWI399MO/9O5ZxuTJHIGojct0TU/rqf+UglMBS0 + QxJ/ENN1JgyrLK/pQg1rPxePEtxUG0KLyhUWQ6P/TOV5813miouh76KwSkvMi6GaTtSwjtQYlOCm2hBa + VBJLdMNFNqzMJwvPj3+9A7TOdAsm3TehIl2cq1E1ZGwoxpUnWS+ZhKUGueQPv/dxeJ/HWWGJzoOpWXn4 + TZX3awTy0F2Cwuujvm9DbzUv0QvylEe2yNmf4abaEFpULtw4ulJuHBe5fXDLf7xxhP8QcSJGQYtKoDvZ + /DgDQwx8wPrjDM831h9nmKE+ZMNYPoi0qrLf4rEm0Jp5mTgF06BLJWB+9PsYaaS7xuUFamJVJfHSApCF + OhIHZyA0qgSIB5SaAxulEcte9ViqBNf9UZ7UZP2FxAKLr8lcqV6IHgdzUf/xQ9QEdjUuL+JduG5Wl9QT + h2Um9KoEFl/eBmI1MJ/A7Cw6eQxCsCaNYHWdjoaB3xfrA6E4wb/zTAyuPOrjsP7ylkSYkw23QAtvuiPd + ezhsLIsY4PKgvYNBe6DnytjOYHb9JwXWKauXoB+6DAfshO5mVWUPJ1TruAGulTU3aoivM5/VU4ngC6RN + BbyW7MzHP79aUAkXR6W3PSxFm7m5a/XnV02DfwHbO6vjgDMu+gAAAABJRU5ErkJggg== diff --git a/INT_PT002/Helper.cs b/INT_PT002/Helper.cs index f4b52c7..794a431 100644 --- a/INT_PT002/Helper.cs +++ b/INT_PT002/Helper.cs @@ -145,102 +145,102 @@ namespace INT_PT002 } /// - /// 2자리에 마춰 공백을 0으로 채움 + /// 2자리에 마춰 공백으로 채움 /// /// /// - public static string StringZeroFillDigits2(string value) + public static string StringBlankFillDigits2(string value) { if (value.Length == 1) - return string.Format("0{0}", value); + return string.Format(" {0}", value); else if (value.Length == 2) return value; else - return "00"; + return " "; } /// - /// 4자리에 마춰 공백을 0으로 채움 + /// 4자리에 마춰 공백으로 채움 /// /// /// - public static string StringZeroFillDigits4(string value) + public static string StringBlankFillDigits4(string value) { if (value.Length == 1) - return string.Format("000{0}", value); + return string.Format(" {0}", value); else if (value.Length == 2) - return string.Format("00{0}", value); + return string.Format(" {0}", value); else if (value.Length == 3) - return string.Format("0{0}", value); + return string.Format(" {0}", value); else if (value.Length == 4) return value; else - return "0000"; + return " "; } /// - /// 5자리에 마춰 공백을 0으로 채움 + /// 5자리에 마춰 공백으로 채움 /// /// /// - public static string StringZeroFillDigits5(string value) + public static string StringBlankFillDigits5(string value) { if (value.Length == 1) - return string.Format("0000{0}", value); + return string.Format(" {0}", value); else if (value.Length == 2) - return string.Format("000{0}", value); + return string.Format(" {0}", value); else if (value.Length == 3) - return string.Format("00{0}", value); + return string.Format(" {0}", value); else if (value.Length == 4) - return string.Format("0{0}", value); + return string.Format(" {0}", value); else if (value.Length == 5) return value; else - return "00000"; + return " "; } /// - /// 6자리에 마춰 공백을 0으로 채움 + /// 6자리에 마춰 공백으로 채움 /// /// /// - public static string StringZeroFillDigits6(string value) + public static string StringBlankFillDigits6(string value) { if (value.Length == 1) - return string.Format("00000{0}", value); + return string.Format(" {0}", value); else if (value.Length == 2) - return string.Format("0000{0}", value); + return string.Format(" {0}", value); else if (value.Length == 3) - return string.Format("000{0}", value); + return string.Format(" {0}", value); else if (value.Length == 4) - return string.Format("00{0}", value); + return string.Format(" {0}", value); else if (value.Length == 5) - return string.Format("0{0}", value); + return string.Format(" {0}", value); else if (value.Length == 6) return value; else - return "000000"; + return " "; } /// - /// 7자리에 마춰 공백을 0으로 채움 + /// 7자리에 마춰 공백으로 채움 /// /// /// - public static string StringZeroFillDigits7(string value) + public static string StringBlankFillDigits7(string value) { if (value.Length == 1) - return string.Format("000000{0}", value); + return string.Format(" {0}", value); else if (value.Length == 2) - return string.Format("00000{0}", value); + return string.Format(" {0}", value); else if (value.Length == 3) - return string.Format("0000{0}", value); + return string.Format(" {0}", value); else if (value.Length == 4) - return string.Format("000{0}", value); + return string.Format(" {0}", value); else if (value.Length == 5) - return string.Format("00{0}", value); + return string.Format(" {0}", value); else if (value.Length == 6) - return string.Format("0{0}", value); + return string.Format(" {0}", value); else if (value.Length == 7) return value; else - return "0000000"; + return " "; } } } diff --git a/INT_PT002/INT_PT002.csproj b/INT_PT002/INT_PT002.csproj index 1b7fb84..c30de7d 100644 --- a/INT_PT002/INT_PT002.csproj +++ b/INT_PT002/INT_PT002.csproj @@ -81,22 +81,70 @@ ControlBottomSetting.cs - + UserControl - + + ControlMenuSystemEquipment.cs + + + UserControl + + + ControlMenuSystemInformation.cs + + + UserControl + + + ControlMenuSystemTime.cs + + + UserControl + + + ControlMenuSystemUpdate.cs + + + UserControl + + + ControlMenuLogAlarm.cs + + + UserControl + + + ControlMenuLogHistory.cs + + + UserControl + + + ControlMenuLogInspection.cs + + + UserControl + + ControlMenuManualMotorSetting.cs - + UserControl - + ControlMenuManualIoTest.cs - + UserControl - + + ControlMenuRecipeSetting.cs + + + UserControl + + ControlMenuSettingCommunication.cs @@ -111,21 +159,24 @@ ControlMainDisplayDotGraph.cs - + UserControl - + ControlMenuSettingConfiguration.cs - + UserControl - + ControlMenuSettingUserEditor.cs + + + Form @@ -174,23 +225,55 @@ ControlMainDisplayDotGraph.cs Designer - + + ControlMenuSystemEquipment.cs + Designer + + + ControlMenuSystemInformation.cs + Designer + + + ControlMenuSystemTime.cs + Designer + + + ControlMenuSystemUpdate.cs + Designer + + + ControlMenuLogAlarm.cs + Designer + + + ControlMenuLogHistory.cs + Designer + + + ControlMenuLogInspection.cs + Designer + + ControlMenuManualIoTest.cs Designer - + ControlMenuManualMotorSetting.cs Designer - + + ControlMenuRecipeSetting.cs + Designer + + ControlMenuSettingCommunication.cs Designer - + ControlMenuSettingConfiguration.cs Designer - + ControlMenuSettingUserEditor.cs Designer