using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
namespace Core.StlMes.Client.LgIntegrationQuery
{
///
/// FrmCcmResetStatus 的摘要说明。
///
public class FrmCcmResetStatus : System.Windows.Forms.Form
{
private System.Windows.Forms.GroupBox groupBox1;
private System.Windows.Forms.RadioButton radioButton1;
private System.Windows.Forms.RadioButton radioButton2;
private System.Windows.Forms.RadioButton radioButton3;
private System.Windows.Forms.RadioButton radioButton4;
private System.Windows.Forms.RadioButton radioButton5;
private System.Windows.Forms.Button btnConfirm;
private System.Windows.Forms.Button button2;
///
/// 必需的设计器变量。
///
private System.ComponentModel.Container components = null;
public FrmCcmResetStatus()
{
//
// Windows 窗体设计器支持所必需的
//
InitializeComponent();
//
// TODO: 在 InitializeComponent 调用后添加任何构造函数代码
//
}
///
/// 清理所有正在使用的资源。
///
protected override void Dispose( bool disposing )
{
if( disposing )
{
if(components != null)
{
components.Dispose();
}
}
base.Dispose( disposing );
}
#region Windows 窗体设计器生成的代码
///
/// 设计器支持所需的方法 - 不要使用代码编辑器修改
/// 此方法的内容。
///
private void InitializeComponent()
{
this.groupBox1 = new System.Windows.Forms.GroupBox();
this.radioButton5 = new System.Windows.Forms.RadioButton();
this.radioButton4 = new System.Windows.Forms.RadioButton();
this.radioButton3 = new System.Windows.Forms.RadioButton();
this.radioButton2 = new System.Windows.Forms.RadioButton();
this.radioButton1 = new System.Windows.Forms.RadioButton();
this.btnConfirm = new System.Windows.Forms.Button();
this.button2 = new System.Windows.Forms.Button();
this.groupBox1.SuspendLayout();
this.SuspendLayout();
//
// groupBox1
//
this.groupBox1.Controls.Add(this.radioButton5);
this.groupBox1.Controls.Add(this.radioButton4);
this.groupBox1.Controls.Add(this.radioButton3);
this.groupBox1.Controls.Add(this.radioButton2);
this.groupBox1.Controls.Add(this.radioButton1);
this.groupBox1.Location = new System.Drawing.Point(24, 12);
this.groupBox1.Name = "groupBox1";
this.groupBox1.Size = new System.Drawing.Size(205, 122);
this.groupBox1.TabIndex = 0;
this.groupBox1.TabStop = false;
this.groupBox1.Text = "去向";
//
// radioButton5
//
this.radioButton5.Location = new System.Drawing.Point(110, 81);
this.radioButton5.Name = "radioButton5";
this.radioButton5.Size = new System.Drawing.Size(64, 24);
this.radioButton5.TabIndex = 5;
this.radioButton5.Tag = "";
this.radioButton5.CheckedChanged += new System.EventHandler(this.radioButton_CheckedChanged);
//
// radioButton4
//
this.radioButton4.Location = new System.Drawing.Point(110, 54);
this.radioButton4.Name = "radioButton4";
this.radioButton4.Size = new System.Drawing.Size(64, 24);
this.radioButton4.TabIndex = 4;
this.radioButton4.Tag = "";
this.radioButton4.CheckedChanged += new System.EventHandler(this.radioButton_CheckedChanged);
//
// radioButton3
//
this.radioButton3.Location = new System.Drawing.Point(110, 27);
this.radioButton3.Name = "radioButton3";
this.radioButton3.Size = new System.Drawing.Size(64, 24);
this.radioButton3.TabIndex = 3;
this.radioButton3.Tag = "";
this.radioButton3.CheckedChanged += new System.EventHandler(this.radioButton_CheckedChanged);
//
// radioButton2
//
this.radioButton2.Location = new System.Drawing.Point(16, 54);
this.radioButton2.Name = "radioButton2";
this.radioButton2.Size = new System.Drawing.Size(64, 24);
this.radioButton2.TabIndex = 2;
this.radioButton2.Tag = "";
this.radioButton2.CheckedChanged += new System.EventHandler(this.radioButton_CheckedChanged);
//
// radioButton1
//
this.radioButton1.Checked = true;
this.radioButton1.Location = new System.Drawing.Point(16, 27);
this.radioButton1.Name = "radioButton1";
this.radioButton1.Size = new System.Drawing.Size(64, 24);
this.radioButton1.TabIndex = 1;
this.radioButton1.TabStop = true;
this.radioButton1.Tag = "";
this.radioButton1.CheckedChanged += new System.EventHandler(this.radioButton_CheckedChanged);
//
// btnConfirm
//
this.btnConfirm.Location = new System.Drawing.Point(29, 153);
this.btnConfirm.Name = "btnConfirm";
this.btnConfirm.Size = new System.Drawing.Size(75, 23);
this.btnConfirm.TabIndex = 1;
this.btnConfirm.Text = "确认";
this.btnConfirm.Click += new System.EventHandler(this.btnConfirm_Click);
//
// button2
//
this.button2.Location = new System.Drawing.Point(134, 153);
this.button2.Name = "button2";
this.button2.Size = new System.Drawing.Size(75, 23);
this.button2.TabIndex = 2;
this.button2.Text = "取消";
this.button2.Click += new System.EventHandler(this.button2_Click);
//
// FrmCcmResetStatus
//
this.AutoScaleBaseSize = new System.Drawing.Size(6, 14);
this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(213)))), ((int)(((byte)(228)))), ((int)(((byte)(242)))));
this.ClientSize = new System.Drawing.Size(259, 200);
this.Controls.Add(this.button2);
this.Controls.Add(this.btnConfirm);
this.Controls.Add(this.groupBox1);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
this.MaximizeBox = false;
this.MinimizeBox = false;
this.Name = "FrmCcmResetStatus";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "设置";
this.Load += new System.EventHandler(this.FrmCcmResetStatus_Load);
this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.FrmCcmResetStatus_FormClosing);
this.groupBox1.ResumeLayout(false);
this.ResumeLayout(false);
}
#endregion
public string WorkShopN0 = ""; //体系号
public string _strSet = "";
public string _strSta = "";
private string str = "";
private void btnConfirm_Click(object sender, System.EventArgs e)
{
_strSet = str;
_strSta = "LADLEARRIVE";
this.Close();
}
private void button2_Click(object sender, System.EventArgs e)
{
_strSet = "";
_strSta = "";
this.Close();
}
private void radioButton_CheckedChanged(object sender, System.EventArgs e)
{
this.str = ((RadioButton)sender).Tag.ToString();
}
private void FrmCcmResetStatus_Load(object sender, EventArgs e)
{
SetVisibleCheckBox();
}
///
/// 根据体系设置可显示的CheckBox
///
private void SetVisibleCheckBox()
{
try
{
if (WorkShopN0 == "") return;
if (WorkShopN0 == "1")
{
radioButton1.Visible = true;
radioButton1.Text = "1#LF炉";
radioButton1.Tag = "LFS01";
radioButton2.Visible = false;
radioButton3.Visible = true;
radioButton3.Text = "1#铸机";
radioButton3.Tag = "CCM01";
radioButton4.Visible = true;
radioButton4.Text = "2#铸机";
radioButton4.Tag = "CCM02";
radioButton5.Visible = false;
}
if (WorkShopN0 == "2")
{
radioButton1.Visible = true;
radioButton1.Text = "2#LF炉";
radioButton1.Tag = "LFS02";
radioButton2.Visible = true;
radioButton2.Text = "3#LF炉";
radioButton2.Tag = "LFS03";
radioButton3.Visible = true;
radioButton3.Text = "3#铸机";
radioButton3.Tag = "CCM03";
radioButton4.Visible = true;
radioButton4.Text = "4#铸机";
radioButton4.Tag = "CCM04";
radioButton5.Visible = true;
radioButton5.Text = "5#铸机";
radioButton5.Tag = "CCM05";
}
}
catch { }
}
private void FrmCcmResetStatus_FormClosing(object sender, FormClosingEventArgs e)
{
//_strSet = "";
//_strSta = "";
}
}
}