diff --git a/ITC81DB_2/Controls/CenterEquipment/ControlCenterEquipHelp.cs b/ITC81DB_2/Controls/CenterEquipment/ControlCenterEquipHelp.cs index fbbdb6b..03f22de 100644 --- a/ITC81DB_2/Controls/CenterEquipment/ControlCenterEquipHelp.cs +++ b/ITC81DB_2/Controls/CenterEquipment/ControlCenterEquipHelp.cs @@ -111,12 +111,21 @@ namespace ITC81DB_2.Controls this.buttonEngineerSetting.Visible = bValue; } + private void UpdateDisplayUser(UserItem user) + { + if (user.Group == DataStore.UserGroup.Level4Developer && this.ParentForm.ParentForm.SystemConfig.IsLogin == true) + this.DisplayHiddenMenu(true); + else + this.DisplayHiddenMenu(false); + } public void DisplayRefresh(SystemStatus status) { this.ParentForm.ParentForm.CurrentSystemStatus.CurrentDisplay = DataStore.DisplayStore.EquipHelp; this.ParentForm.ParentForm.SetDisplayMode(DataStore.DisplayMode.Menu); this.ParentForm.DisplayTitleRoot(this.ParentForm.ParentForm.CurrentSystemStatus); + + this.UpdateDisplayUser(status.CurrentUser); } #endregion diff --git a/ITC81DB_2/Controls/CenterSystem/ControlCenterSystemJudgmentSetting.Designer.cs b/ITC81DB_2/Controls/CenterSystem/ControlCenterSystemJudgmentSetting.Designer.cs index 06d01cb..75b527f 100644 --- a/ITC81DB_2/Controls/CenterSystem/ControlCenterSystemJudgmentSetting.Designer.cs +++ b/ITC81DB_2/Controls/CenterSystem/ControlCenterSystemJudgmentSetting.Designer.cs @@ -355,7 +355,6 @@ this.buttonLine2.ButtonColor = System.Drawing.Color.Gray; this.buttonLine2.ButtonImageAutoSize = true; this.buttonLine2.ColorKeySamplePosition = new System.Drawing.Point(0, 0); - this.buttonLine2.DisableImage = ((System.Drawing.Image)(resources.GetObject("buttonLine2.DisableImage"))); this.buttonLine2.DownImage = ((System.Drawing.Image)(resources.GetObject("buttonLine2.DownImage"))); this.buttonLine2.GroupID = 0; this.buttonLine2.InitVisible = true; @@ -386,7 +385,6 @@ this.buttonLine1.ButtonColor = System.Drawing.Color.Gray; this.buttonLine1.ButtonImageAutoSize = true; this.buttonLine1.ColorKeySamplePosition = new System.Drawing.Point(0, 0); - this.buttonLine1.DisableImage = ((System.Drawing.Image)(resources.GetObject("buttonLine1.DisableImage"))); this.buttonLine1.DownImage = ((System.Drawing.Image)(resources.GetObject("buttonLine1.DownImage"))); this.buttonLine1.GroupID = 0; this.buttonLine1.InitVisible = true; diff --git a/ITC81DB_2/Controls/CenterSystem/ControlCenterSystemJudgmentSetting.cs b/ITC81DB_2/Controls/CenterSystem/ControlCenterSystemJudgmentSetting.cs index 7bf1501..11103c6 100644 --- a/ITC81DB_2/Controls/CenterSystem/ControlCenterSystemJudgmentSetting.cs +++ b/ITC81DB_2/Controls/CenterSystem/ControlCenterSystemJudgmentSetting.cs @@ -269,6 +269,9 @@ namespace ITC81DB_2.Controls this.buttonPasteAll.Enabled = false; this.buttonLine1.Enabled = false; this.buttonLine2.Enabled = false; + this.buttonDown.Enabled = false; + this.buttonUp.Enabled = false; + this.buttonLineCopy.Enabled = false; } else { @@ -279,6 +282,9 @@ namespace ITC81DB_2.Controls this.buttonPasteAll.Enabled = true; this.buttonLine1.Enabled = true; this.buttonLine2.Enabled = true; + this.buttonDown.Enabled = true; + this.buttonUp.Enabled = true; + this.buttonLineCopy.Enabled = true; } } public void UpdateCurrentProductDisplay(DataStore.EquipmentStatus status, ProductItem pItem1, ProductItem pItem2) diff --git a/ITC81DB_2/Forms/FormMenu.Designer.cs b/ITC81DB_2/Forms/FormMenu.Designer.cs index ee236c6..b9ea4b0 100644 --- a/ITC81DB_2/Forms/FormMenu.Designer.cs +++ b/ITC81DB_2/Forms/FormMenu.Designer.cs @@ -292,6 +292,7 @@ this.pictureBoxStart.Location = new System.Drawing.Point(710, 0); this.pictureBoxStart.Name = "pictureBoxStart"; this.pictureBoxStart.Size = new System.Drawing.Size(90, 60); + this.pictureBoxStart.Click += new System.EventHandler(this.pictureBoxStart_Click); // // pictureBoxStop // @@ -299,6 +300,7 @@ this.pictureBoxStop.Location = new System.Drawing.Point(710, 0); this.pictureBoxStop.Name = "pictureBoxStop"; this.pictureBoxStop.Size = new System.Drawing.Size(90, 60); + this.pictureBoxStop.Click += new System.EventHandler(this.pictureBoxStop_Click); // // labelUserID // diff --git a/ITC81DB_2/Forms/FormMenu.cs b/ITC81DB_2/Forms/FormMenu.cs index 7df0f94..2691066 100644 --- a/ITC81DB_2/Forms/FormMenu.cs +++ b/ITC81DB_2/Forms/FormMenu.cs @@ -401,6 +401,14 @@ namespace ITC81DB_2.Forms if (this.labelUserID.Text != id) this.labelUserID.Text = id; } + private bool EquipmentRun(DataStore.DisplayStore currentDisplay) + { + if (currentDisplay == DataStore.DisplayStore.SystemJudgmentSetting + || currentDisplay == DataStore.DisplayStore.SystemSorterSetting) + return true; + else + return false; + } private void DisplaySideMenu(DataStore.MenuSide menu) { @@ -891,25 +899,21 @@ namespace ITC81DB_2.Forms this.SelectedSideMenu = DataStore.MenuSide.Basic; this.DisplaySideMenu(this.SelectedSideMenu); } - private void buttonConfiguration_Click(object sender, EventArgs e) { this.SelectedSideMenu = DataStore.MenuSide.Configuration; this.DisplaySideMenu(this.SelectedSideMenu); } - private void buttonSystem_Click(object sender, EventArgs e) { this.SelectedSideMenu = DataStore.MenuSide.System; this.DisplaySideMenu(this.SelectedSideMenu); } - private void buttonEquipment_Click(object sender, EventArgs e) { this.SelectedSideMenu = DataStore.MenuSide.Equipment; this.DisplaySideMenu(this.SelectedSideMenu); } - private void buttonInformation_Click(object sender, EventArgs e) { this.SelectedSideMenu = DataStore.MenuSide.Information; @@ -923,12 +927,22 @@ namespace ITC81DB_2.Forms this.DisplayHiddenMenu(this.ParentForm.CurrentSystemStatus.CurrentDisplay, this.ParentForm.SystemConfig); } } - private void buttonMain_Click(object sender, EventArgs e) { this.ParentForm.ChildFormMainDisplay.DisplayRefresh(this.ParentForm.CurrentSystemStatus); ((FormMain)(Owner)).smartForm.Show((int)DataStore.FormStore.FormMainDisplay); } + + private void pictureBoxStop_Click(object sender, EventArgs e) + { + if (this.EquipmentRun(this.ParentForm.CurrentSystemStatus.CurrentDisplay) == true) + this.ParentForm.TransferData(CommunicationCommand.Start, CommunicationID.MainBoard); + } + private void pictureBoxStart_Click(object sender, EventArgs e) + { + if (this.EquipmentRun(this.ParentForm.CurrentSystemStatus.CurrentDisplay) == true) + this.ParentForm.TransferData(CommunicationCommand.Stop, CommunicationID.MainBoard); + } #endregion } } \ No newline at end of file diff --git a/ITC81DB_2/Version.txt b/ITC81DB_2/Version.txt index f263c22..14942fb 100644 --- a/ITC81DB_2/Version.txt +++ b/ITC81DB_2/Version.txt @@ -30,6 +30,7 @@ - dummy(4), dummy(4) -> ÇÏ°­Áö¿¬(4), »ó½ÂÁö¿¬(4) - ½Ã½ºÅÛÆÄÀÏ 1¿­ ¾²±â : 9014 - ½Ã½ºÅÛÆÄÀÏ 2¿­ ¾²±â : 9017 + - ÆÇÁ¤¼³Á¤, ¼±º°±â ¼³Á¤¿¡¼­ È­¸é¿¡¼­ Start/Stop °¡´ÉÇϵµ·Ï ¼öÁ¤ @ Ver 1.9.0 by CJY - 2020.06.30 diff --git a/ITC81DB_2/bin/Release/ITC81DB_2.exe b/ITC81DB_2/bin/Release/ITC81DB_2.exe index d21fac3..b8759d9 100644 Binary files a/ITC81DB_2/bin/Release/ITC81DB_2.exe and b/ITC81DB_2/bin/Release/ITC81DB_2.exe differ diff --git a/ITC81DB_2/obj/Release/ITC81DB_2.exe b/ITC81DB_2/obj/Release/ITC81DB_2.exe index d21fac3..b8759d9 100644 Binary files a/ITC81DB_2/obj/Release/ITC81DB_2.exe and b/ITC81DB_2/obj/Release/ITC81DB_2.exe differ diff --git a/ITC81DB_2_ImageDll/ITC81DB_2_ImageDll/obj/Release/Refactor/ITC81DB_2_ImageDll.dll b/ITC81DB_2_ImageDll/ITC81DB_2_ImageDll/obj/Release/Refactor/ITC81DB_2_ImageDll.dll index 898790f..97a7e97 100644 Binary files a/ITC81DB_2_ImageDll/ITC81DB_2_ImageDll/obj/Release/Refactor/ITC81DB_2_ImageDll.dll and b/ITC81DB_2_ImageDll/ITC81DB_2_ImageDll/obj/Release/Refactor/ITC81DB_2_ImageDll.dll differ