| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117 |
- using System;
- using System.Collections.Generic;
- using System.ComponentModel;
- using System.Data;
- using System.Drawing;
- using System.Text;
- using System.Windows.Forms;
- using System.Collections;
- namespace Core.LgMes.Client.LgJobMgt
- {
- public partial class frmHmpOperate : Form
- {
- public frmHmpOperate()
- {
- InitializeComponent();
- }
- #region " Variable"
- public string _devPos = "";
- public int InitNo = 0;
- public bool m_bGW1 = true, m_bGW2 = true, m_bYLW = true, m_bNGW = true, m_bBGW = true;
- public bool m_bGWQH = false;
- public int CAST_ID = 0;
- public bool blFront = false; //1#小车位
- public bool blBack = false; //2#小车位
- public bool blDevice = false; //1#处理位
- public bool blDevice2 = false;//2#处理位
- #endregion
- private void frmHmpOperate_Load(object sender, EventArgs e)
- {
- //1#小车位进入
- if (blFront == true)
- {
- rbDevice2.Enabled = false;
- rbFront.Enabled = false;
- rbDevice.Checked = true;
- }
- //2#小车位进入
- if (blBack == true)
- {
- rbDevice.Enabled = false;
- rbBack.Enabled = false;
- rbDevice2.Checked = true;
- }
- //1#处理位
- if (blDevice == true)
- {
- rbDevice2.Enabled = false;
- rbDevice.Enabled = false;
- rbBack.Enabled = false;
- rbFront.Checked = true;
- }
- //2#处理位
- if (blDevice2 == true)
- {
- rbDevice2.Enabled = false;
- rbDevice.Enabled = false;
- rbFront.Enabled = false;
- rbBack.Checked = true;
- }
- }
- private void btnOk_Click(object sender, EventArgs e)
- {
- IEnumerator iControls = ultraGroupBox1.Controls.GetEnumerator();
- while (iControls.MoveNext())
- {
- object obj = iControls.Current;
- RadioButton rdbtn = obj as RadioButton;
- if (rdbtn != null)
- {
- if (rdbtn.Checked)
- this.Tag = rdbtn.Tag;
- }
- }
- iControls = ultraGroupBox2.Controls.GetEnumerator();
- while (iControls.MoveNext())
- {
- object obj = iControls.Current;
- RadioButton rdbtn = obj as RadioButton;
- if (rdbtn != null)
- {
- if (rdbtn.Checked)
- this.Tag = rdbtn.Tag;
- }
- }
- this.Close();
- }
- private void btnNo_Click(object sender, EventArgs e)
- {
- this.Close();
- }
-
- private void rbFront_Click(object sender, EventArgs e)
- {
- rbOver.Checked = false;
- }
- private void rbOver_Click(object sender, EventArgs e)
- {
- rbFront.Checked = false;
- rbBack.Checked = false;
- rbDevice.Checked = false;
- rbDevice2.Checked = false;
- }
- }
- }
|