From 7c3b50dd0a348c68221f3cb99b52686c653787db Mon Sep 17 00:00:00 2001 From: d23004 <kimseijin@diteam.co.kr> Date: 수, 24 5월 2023 13:34:42 +0900 Subject: [PATCH] Revert "Main gui 개선" --- SA_LTT_UI/SA_LTT_UI/Screen/ScreenMain.cs | 146 +++++++++++++++++++++++++----------------------- 1 files changed, 75 insertions(+), 71 deletions(-) diff --git a/SA_LTT_UI/SA_LTT_UI/Screen/ScreenMain.cs b/SA_LTT_UI/SA_LTT_UI/Screen/ScreenMain.cs index f93dee4..95ff770 100644 --- a/SA_LTT_UI/SA_LTT_UI/Screen/ScreenMain.cs +++ b/SA_LTT_UI/SA_LTT_UI/Screen/ScreenMain.cs @@ -33,6 +33,7 @@ _mainFrame = mainFrame; elementHost2.Child = _animationEquipment; + el_CurrentWaferProcess.Child = _waferProcessPointView; _animationEquipment.AddPortMouseDownEvent(AnimationPortMouseDown); _animationEquipment.AddChamberMouseDownEvent(AnimationChamberMouseDown); @@ -62,6 +63,12 @@ _waferProcessPointView.PrimaryFlat = recipe.DistanceFromCenterToPrimaryFlat; tb_RecipeName.Text = recipe.Name; + tb_RecipeRadius.Text = recipe.Radius.ToString(); + tb_RecipeDistancePrimaryFlat.Text = recipe.DistanceFromCenterToPrimaryFlat.ToString(); + tb_RecipeEdgeRound.Text = recipe.EdgeRound.ToString(); + + tb_RecipeBeamWidth.Text = recipe.BeamWidth.ToString(); + tb_RecipeBeamHeight.Text = recipe.BeamHeight.ToString(); foreach (ProcessInfo processInfo in recipe.ProcessInfoList) { @@ -80,6 +87,8 @@ } else { + tb_RecipeWidthOverlap.Text = processInfo.BeamWidthOverlap.ToString(); + tb_RecipeHeightOverlap.Text = processInfo.BeamHeightOverlap.ToString(); tb_RecipeEnergy.Text = processInfo.Energy.ToString(); _waferProcessPointView.HighlightProcessAreas(processInfoIndex); @@ -130,8 +139,8 @@ } } - DDDDDDDDDDDDDDDDDDDDD.Text = _mainFrame.equipment.PmcStep.ToString(); - DDDDDDDD.Text = _mainFrame.equipment.TmcStep.ToString(); + tb_PmcSequence.Text = _mainFrame.equipment.PmcStep.ToString(); + tb_TmcSequence.Text = _mainFrame.equipment.TmcStep.ToString(); _animationEquipment.SetDoor1Status(_mainFrame.equipment.crevis.DigitalInputs[SA_LTT.Module.Crevis.DigitalInput.DOOR_LOCK_OPEN_1]); _animationEquipment.SetDoor2Status(_mainFrame.equipment.crevis.DigitalInputs[SA_LTT.Module.Crevis.DigitalInput.DOOR_LOCK_OPEN_2]); @@ -178,34 +187,34 @@ private void UpdateModuleConnectionInfo() { - //lb_Scanner.BackColor = _mainFrame.equipment.scanner.IsInitialized ? Color.Lime : Color.Red; - //lb_PreAligner.BackColor = _mainFrame.equipment.preAligner.IsOpen? Color.Lime : Color.Red; - //lb_Robot.BackColor = _mainFrame.equipment.robot.IsOpen ? Color.Lime : Color.Red; - //lb_Attenuator.BackColor = _mainFrame.equipment.attenuator.IsOpen ? Color.Lime : Color.Red; - //lb_TempControler.BackColor = _mainFrame.equipment.tempControl.IsOpen ? Color.Lime : Color.Red; - //lb_FFU.BackColor = _mainFrame.equipment.ffu.IsOpen ? Color.Lime : Color.Red; - //lb_PowerPmac.BackColor = _mainFrame.equipment.powerPmac.IsOpen() ? Color.Lime : Color.Red; - //lb_UvLaser.BackColor = _mainFrame.equipment.piLaser.IsOpen ? Color.Lime : Color.Red; - //lb_PowerMeter.BackColor = _mainFrame.equipment.powerMeter.IsOpen ? Color.Lime : Color.Red; + lb_Scanner.BackColor = _mainFrame.equipment.scanner.IsInitialized ? Color.Lime : Color.Red; + lb_PreAligner.BackColor = _mainFrame.equipment.preAligner.IsOpen? Color.Lime : Color.Red; + lb_Robot.BackColor = _mainFrame.equipment.robot.IsOpen ? Color.Lime : Color.Red; + lb_Attenuator.BackColor = _mainFrame.equipment.attenuator.IsOpen ? Color.Lime : Color.Red; + lb_TempControler.BackColor = _mainFrame.equipment.tempControl.IsOpen ? Color.Lime : Color.Red; + lb_FFU.BackColor = _mainFrame.equipment.ffu.IsOpen ? Color.Lime : Color.Red; + lb_PowerPmac.BackColor = _mainFrame.equipment.powerPmac.IsOpen() ? Color.Lime : Color.Red; + lb_UvLaser.BackColor = _mainFrame.equipment.piLaser.IsOpen ? Color.Lime : Color.Red; + lb_PowerMeter.BackColor = _mainFrame.equipment.powerMeter.IsOpen ? Color.Lime : Color.Red; } private void UpdateLaserInfo() { lb_PowerOn.BackColor = _mainFrame.equipment.piLaser.CurrentPiLaserStatus.CurrentSystemStatus.PowerOn ? Color.Lime : Color.Red; lb_ShutterEnable.BackColor = _mainFrame.equipment.piLaser.CurrentPiLaserStatus.CurrentSystemStatus.ShutterEnabled ? Color.Lime : Color.Red; - //lb_KeySwitch.BackColor = _mainFrame.equipment.piLaser.CurrentPiLaserStatus.CurrentSystemStatus.KeySwitch ? Color.Lime : Color.Red; - //lb_LDDOn.BackColor = _mainFrame.equipment.piLaser.CurrentPiLaserStatus.CurrentSystemStatus.LddOn ? Color.Lime : Color.Red; - //lb_QSWOn.BackColor = _mainFrame.equipment.piLaser.CurrentPiLaserStatus.CurrentSystemStatus.QswOn ? Color.Lime : Color.Red; - //lb_ShutterInterlock.BackColor = _mainFrame.equipment.piLaser.CurrentPiLaserStatus.CurrentSystemStatus.ShutterInterlock ? Color.Lime : Color.Red; - //lb_LDDInterlock.BackColor = _mainFrame.equipment.piLaser.CurrentPiLaserStatus.CurrentSystemStatus.LddInterlock ? Color.Lime : Color.Red; + lb_KeySwitch.BackColor = _mainFrame.equipment.piLaser.CurrentPiLaserStatus.CurrentSystemStatus.KeySwitch ? Color.Lime : Color.Red; + lb_LDDOn.BackColor = _mainFrame.equipment.piLaser.CurrentPiLaserStatus.CurrentSystemStatus.LddOn ? Color.Lime : Color.Red; + lb_QSWOn.BackColor = _mainFrame.equipment.piLaser.CurrentPiLaserStatus.CurrentSystemStatus.QswOn ? Color.Lime : Color.Red; + lb_ShutterInterlock.BackColor = _mainFrame.equipment.piLaser.CurrentPiLaserStatus.CurrentSystemStatus.ShutterInterlock ? Color.Lime : Color.Red; + lb_LDDInterlock.BackColor = _mainFrame.equipment.piLaser.CurrentPiLaserStatus.CurrentSystemStatus.LddInterlock ? Color.Lime : Color.Red; lb_LaserOn.BackColor = _mainFrame.equipment.scanner.IsLaserOn ? Color.Lime : Color.Red; lb_LaserOff.BackColor = !_mainFrame.equipment.scanner.IsLaserOn ? Color.Lime : Color.Red; lb_SetCurrent.Text = _mainFrame.equipment.piLaser.CurrentPiLaserStatus.SetCurrent.ToString("F2"); lb_ActualCurrent.Text = _mainFrame.equipment.piLaser.CurrentPiLaserStatus.ActualCurrent.ToString("F2"); - //lb_DiodeVoltage.Text = _mainFrame.equipment.piLaser.CurrentPiLaserStatus.DiodeVoltage.ToString("F2"); - //lb_MaxCurrent.Text = _mainFrame.equipment.piLaser.CurrentPiLaserStatus.MaxCurrent.ToString("F2"); + lb_DiodeVoltage.Text = _mainFrame.equipment.piLaser.CurrentPiLaserStatus.DiodeVoltage.ToString("F2"); + lb_MaxCurrent.Text = _mainFrame.equipment.piLaser.CurrentPiLaserStatus.MaxCurrent.ToString("F2"); lb_AttenuatorAngle.Text = _mainFrame.equipment.attenuator.Degree.ToString("F3"); } @@ -381,22 +390,22 @@ Viewer.MessageBoxPad mbp = new Viewer.MessageBoxPad("Process status媛� Idle�씠 �븘�떃�땲�떎."); mbp.Show(); } - cb_Maint_X.Checked = _mainFrame.equipment.EquipmentMode == EquipmentMode.Teach ? true : false; + cb_Maint.Checked = _mainFrame.equipment.EquipmentMode == EquipmentMode.Teach ? true : false; return; } - if (cb_Maint_X.Checked) + if (cb_Maint.Checked) { if (_mainFrame.equipment.EquipmentMode == EquipmentMode.Auto && _mainFrame.equipment.ChangeMode(EquipmentMode.Teach)) { EquipmentLogManager.Instance.WriteButtonLog($"{this.Name} : {((Control)sender).Text} true"); _mainFrame.maintenanceViewer.Show(); - cb_Maint_X.Checked = true; + cb_Maint.Checked = true; } else { - cb_Maint_X.Checked = false; + cb_Maint.Checked = false; } } else @@ -405,11 +414,11 @@ { EquipmentLogManager.Instance.WriteButtonLog($"{this.Name} : {((Control)sender).Text} false"); - cb_Maint_X.Checked = false; + cb_Maint.Checked = false; } else { - cb_Maint_X.Checked = true; + cb_Maint.Checked = true; } } } @@ -423,7 +432,7 @@ if(foupRecipeSelectViewer.CurrentFoupRecipe != null) { _mainFrame.equipment.port1Foup.foupRecipe = foupRecipeSelectViewer.CurrentFoupRecipe.Clone(); - btn_Port1RecipeSet.Text = _mainFrame.equipment.port1Foup.foupRecipe.Name; + tb_Port1RecipeName.Text = _mainFrame.equipment.port1Foup.foupRecipe.Name; EquipmentLogManager.Instance.WriteButtonLog($"ScreenMain : Port1Recipe Set {_mainFrame.equipment.port1Foup.foupRecipe.Name}"); Port1RecipeUpdate(); } @@ -439,7 +448,7 @@ if (foupRecipeSelectViewer.CurrentFoupRecipe != null) { _mainFrame.equipment.port2Foup.foupRecipe = foupRecipeSelectViewer.CurrentFoupRecipe.Clone(); - btn_Port2RecipeSet_x.Text = _mainFrame.equipment.port2Foup.foupRecipe.Name; + tb_Port2RecipeName.Text = _mainFrame.equipment.port2Foup.foupRecipe.Name; EquipmentLogManager.Instance.WriteButtonLog($"ScreenMain : Port2Recipe Set {_mainFrame.equipment.port1Foup.foupRecipe.Name}"); Port2RecipeUpdate(); } @@ -448,54 +457,54 @@ private void Port1RecipeUpdate() { - //lv_Port1Recipes.Items.Clear(); + lv_Port1Recipes.Items.Clear(); - //if (_mainFrame.equipment.port1Foup.foupRecipe != null) - //{ - // FoupRecipe originalRecipe = _mainFrame.equipment.foupRecipeManager.GetRecipe(_mainFrame.equipment.port1Foup.foupRecipe.Name); + if (_mainFrame.equipment.port1Foup.foupRecipe != null) + { + FoupRecipe originalRecipe = _mainFrame.equipment.foupRecipeManager.GetRecipe(_mainFrame.equipment.port1Foup.foupRecipe.Name); - // for (int i = 24; i >= 0; i--) - // { - // ListViewItem lvi = new ListViewItem($"{i + 1}"); + for (int i = 24; i >= 0; i--) + { + ListViewItem lvi = new ListViewItem($"{i + 1}"); - // if (originalRecipe.RecipeNames[i] == null) - // { - // lvi.SubItems.Add("Empty"); - // } - // else - // { - // lvi.SubItems.Add(originalRecipe.RecipeNames[i]); - // } + if (originalRecipe.RecipeNames[i] == null) + { + lvi.SubItems.Add("Empty"); + } + else + { + lvi.SubItems.Add(originalRecipe.RecipeNames[i]); + } - // lv_Port1Recipes.Items.Add(lvi); - // } - //} + lv_Port1Recipes.Items.Add(lvi); + } + } } private void Port2RecipeUpdate() { - //lv_Port2Recipes.Items.Clear(); + lv_Port2Recipes.Items.Clear(); - //if (_mainFrame.equipment.port2Foup.foupRecipe != null) - //{ - // FoupRecipe originalRecipe = _mainFrame.equipment.foupRecipeManager.GetRecipe(_mainFrame.equipment.port2Foup.foupRecipe.Name); + if (_mainFrame.equipment.port2Foup.foupRecipe != null) + { + FoupRecipe originalRecipe = _mainFrame.equipment.foupRecipeManager.GetRecipe(_mainFrame.equipment.port2Foup.foupRecipe.Name); - // for (int i = 24; i >= 0; i--) - // { - // ListViewItem lvi = new ListViewItem($"{i + 1}"); + for (int i = 24; i >= 0; i--) + { + ListViewItem lvi = new ListViewItem($"{i + 1}"); - // if (originalRecipe.RecipeNames[i] == null) - // { - // lvi.SubItems.Add("Empty"); - // } - // else - // { - // lvi.SubItems.Add(originalRecipe.RecipeNames[i]); - // } + if (originalRecipe.RecipeNames[i] == null) + { + lvi.SubItems.Add("Empty"); + } + else + { + lvi.SubItems.Add(originalRecipe.RecipeNames[i]); + } - // lv_Port2Recipes.Items.Add(lvi); - // } - //} + lv_Port2Recipes.Items.Add(lvi); + } + } } private void tb_Port1Status_DoubleClick(object sender, EventArgs e) @@ -530,7 +539,7 @@ private void cb_RunStop_CheckedChanged(object sender, EventArgs e) { - if(cb_RunStop_X.Checked) + if(cb_RunStop.Checked) { EquipmentLogManager.Instance.WriteButtonLog($"{this.Name} : {((Control)sender).Text} true"); } @@ -539,12 +548,12 @@ EquipmentLogManager.Instance.WriteButtonLog($"{this.Name} : {((Control)sender).Text} false"); } - _mainFrame.equipment.IsRunStop = cb_RunStop_X.Checked; + _mainFrame.equipment.IsRunStop = cb_RunStop.Checked; } private void cb_AutoRun_CheckedChanged(object sender, EventArgs e) { - if(cb_AutoRun_X.Checked) + if(cb_AutoRun.Checked) { EquipmentLogManager.Instance.WriteButtonLog($"{this.Name} : {((Control)sender).Text} true"); } @@ -553,7 +562,7 @@ EquipmentLogManager.Instance.WriteButtonLog($"{this.Name} : {((Control)sender).Text} false"); } - _mainFrame.equipment.IsAutoRun = cb_AutoRun_X.Checked; + _mainFrame.equipment.IsAutoRun = cb_AutoRun.Checked; } private void EnergyDropCheckViewShow() @@ -610,11 +619,6 @@ _mainFrame.sequenceViewer.WindowState = FormWindowState.Normal; _mainFrame.sequenceViewer.TopMost = true; _mainFrame.sequenceViewer.TopMost = false; - } - - private void elementHost1_ChildChanged(object sender, System.Windows.Forms.Integration.ChildChangedEventArgs e) - { - } } } \ No newline at end of file -- Gitblit v1.9.3