천호석
2022-12-15 ac0db02b48098c7cf0bc31403224ecd0b55cb6b7
Parameter position 화면에 Safety Plc reset 버튼 추가
2개 파일 변경됨
57 ■■■■ 파일 변경됨
SHARP_CLAS_UI/100.Screen/Form_Parameter_Position.Designer.cs 40 ●●●●● 패치 | 보기 | raw | blame | 히스토리
SHARP_CLAS_UI/100.Screen/Form_Parameter_Position.cs 17 ●●●●● 패치 | 보기 | raw | blame | 히스토리
SHARP_CLAS_UI/100.Screen/Form_Parameter_Position.Designer.cs
@@ -28,8 +28,8 @@
        /// </summary>
        private void InitializeComponent()
        {
            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle();
            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle();
            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle();
            this.dgv_Position_Info = new System.Windows.Forms.DataGridView();
            this.Column1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
            this.Column2 = new System.Windows.Forms.DataGridViewTextBoxColumn();
@@ -399,6 +399,7 @@
            this.rb_Unloader = new System.Windows.Forms.RadioButton();
            this.btn_All_Amp_On = new System.Windows.Forms.Button();
            this.btn_All_Error_Reset = new System.Windows.Forms.Button();
            this.btn_SafetyPlc = new System.Windows.Forms.Button();
            ((System.ComponentModel.ISupportInitialize)(this.dgv_Position_Info)).BeginInit();
            this.panel13.SuspendLayout();
            this.panel12.SuspendLayout();
@@ -472,14 +473,14 @@
            this.Column4,
            this.Column5,
            this.Column6});
            dataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
            dataGridViewCellStyle1.BackColor = System.Drawing.Color.White;
            dataGridViewCellStyle1.Font = new System.Drawing.Font("Gulim", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
            dataGridViewCellStyle1.ForeColor = System.Drawing.Color.White;
            dataGridViewCellStyle1.SelectionBackColor = System.Drawing.Color.SteelBlue;
            dataGridViewCellStyle1.SelectionForeColor = System.Drawing.Color.White;
            dataGridViewCellStyle1.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
            this.dgv_Position_Info.DefaultCellStyle = dataGridViewCellStyle1;
            dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
            dataGridViewCellStyle3.BackColor = System.Drawing.Color.White;
            dataGridViewCellStyle3.Font = new System.Drawing.Font("Gulim", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
            dataGridViewCellStyle3.ForeColor = System.Drawing.Color.White;
            dataGridViewCellStyle3.SelectionBackColor = System.Drawing.Color.SteelBlue;
            dataGridViewCellStyle3.SelectionForeColor = System.Drawing.Color.White;
            dataGridViewCellStyle3.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
            this.dgv_Position_Info.DefaultCellStyle = dataGridViewCellStyle3;
            this.dgv_Position_Info.EnableHeadersVisualStyles = false;
            this.dgv_Position_Info.GridColor = System.Drawing.Color.SteelBlue;
            this.dgv_Position_Info.Location = new System.Drawing.Point(12, 86);
@@ -489,9 +490,9 @@
            this.dgv_Position_Info.RowHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.Single;
            this.dgv_Position_Info.RowHeadersVisible = false;
            this.dgv_Position_Info.RowHeadersWidthSizeMode = System.Windows.Forms.DataGridViewRowHeadersWidthSizeMode.DisableResizing;
            dataGridViewCellStyle2.ForeColor = System.Drawing.Color.Black;
            dataGridViewCellStyle2.SelectionBackColor = System.Drawing.Color.CornflowerBlue;
            this.dgv_Position_Info.RowsDefaultCellStyle = dataGridViewCellStyle2;
            dataGridViewCellStyle4.ForeColor = System.Drawing.Color.Black;
            dataGridViewCellStyle4.SelectionBackColor = System.Drawing.Color.CornflowerBlue;
            this.dgv_Position_Info.RowsDefaultCellStyle = dataGridViewCellStyle4;
            this.dgv_Position_Info.RowTemplate.Height = 23;
            this.dgv_Position_Info.ScrollBars = System.Windows.Forms.ScrollBars.Vertical;
            this.dgv_Position_Info.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
@@ -4604,6 +4605,17 @@
            this.btn_All_Error_Reset.UseVisualStyleBackColor = true;
            this.btn_All_Error_Reset.Click += new System.EventHandler(this.btn_All_Error_Reset_Click);
            // 
            // btn_SafetyPlc
            //
            this.btn_SafetyPlc.Location = new System.Drawing.Point(1394, 57);
            this.btn_SafetyPlc.Name = "btn_SafetyPlc";
            this.btn_SafetyPlc.Size = new System.Drawing.Size(113, 23);
            this.btn_SafetyPlc.TabIndex = 61;
            this.btn_SafetyPlc.Text = "Safety PLC";
            this.btn_SafetyPlc.UseVisualStyleBackColor = true;
            this.btn_SafetyPlc.MouseDown += new System.Windows.Forms.MouseEventHandler(this.btn_SafetyPlc_MouseDown);
            this.btn_SafetyPlc.MouseUp += new System.Windows.Forms.MouseEventHandler(this.btn_SafetyPlc_MouseUp);
            //
            // Form_Parameter_Position
            // 
            this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);
@@ -4612,6 +4624,7 @@
            this.ClientSize = new System.Drawing.Size(1760, 850);
            this.Controls.Add(this.btn_All_Amp_On);
            this.Controls.Add(this.rb_Unloader);
            this.Controls.Add(this.btn_SafetyPlc);
            this.Controls.Add(this.btn_All_Error_Reset);
            this.Controls.Add(this.rb_After);
            this.Controls.Add(this.rb_Process);
@@ -5091,5 +5104,6 @@
        private System.Windows.Forms.Label lb_ULD_Tray_Ok_Stacker_1_Fwd;
        private System.Windows.Forms.Button btn_All_Amp_On;
        private System.Windows.Forms.Button btn_All_Error_Reset;
        private System.Windows.Forms.Button btn_SafetyPlc;
    }
}
SHARP_CLAS_UI/100.Screen/Form_Parameter_Position.cs
@@ -1963,5 +1963,22 @@
                dgv_Position_Info.FirstDisplayedScrollingRowIndex = rowindex;
        }
        #endregion
        SequenceTimer _safetyPlcTimer = new SequenceTimer();
        private void btn_SafetyPlc_MouseDown(object sender, MouseEventArgs e)
        {
            _Parent._equip.Board_Control.IO_manager.Set_Output(OutputData.Safety_PLC_Reset, true);
            _safetyPlcTimer.Restart();
        }
        private void btn_SafetyPlc_MouseUp(object sender, MouseEventArgs e)
        {
            while(_safetyPlcTimer.Seconds < 2)
            {
            }
            _Parent._equip.Board_Control.IO_manager.Set_Output(OutputData.Safety_PLC_Reset, false);
        }
    }
}