FrmCcmResetStatus.cs 8.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241
  1. using System;
  2. using System.Drawing;
  3. using System.Collections;
  4. using System.ComponentModel;
  5. using System.Windows.Forms;
  6. namespace Core.LgMes.Client.LgJobMgt
  7. {
  8. /// <summary>
  9. /// FrmCcmResetStatus 的摘要说明。
  10. /// </summary>
  11. public class FrmCcmResetStatus : System.Windows.Forms.Form
  12. {
  13. private System.Windows.Forms.GroupBox groupBox1;
  14. private System.Windows.Forms.RadioButton radioButton1;
  15. private System.Windows.Forms.RadioButton radioButton2;
  16. private System.Windows.Forms.RadioButton radioButton3;
  17. private System.Windows.Forms.RadioButton radioButton4;
  18. private System.Windows.Forms.RadioButton radioButton5;
  19. private System.Windows.Forms.Button button1;
  20. private System.Windows.Forms.Button button2;
  21. private RadioButton radioButton6;
  22. /// <summary>
  23. /// 必需的设计器变量。
  24. /// </summary>
  25. private System.ComponentModel.Container components = null;
  26. public FrmCcmResetStatus()
  27. {
  28. //
  29. // Windows 窗体设计器支持所必需的
  30. //
  31. InitializeComponent();
  32. //
  33. // TODO: 在 InitializeComponent 调用后添加任何构造函数代码
  34. //
  35. }
  36. /// <summary>
  37. /// 清理所有正在使用的资源。
  38. /// </summary>
  39. protected override void Dispose( bool disposing )
  40. {
  41. if( disposing )
  42. {
  43. if(components != null)
  44. {
  45. components.Dispose();
  46. }
  47. }
  48. base.Dispose( disposing );
  49. }
  50. #region Windows 窗体设计器生成的代码
  51. /// <summary>
  52. /// 设计器支持所需的方法 - 不要使用代码编辑器修改
  53. /// 此方法的内容。
  54. /// </summary>
  55. private void InitializeComponent()
  56. {
  57. this.groupBox1 = new System.Windows.Forms.GroupBox();
  58. this.radioButton6 = new System.Windows.Forms.RadioButton();
  59. this.radioButton5 = new System.Windows.Forms.RadioButton();
  60. this.radioButton4 = new System.Windows.Forms.RadioButton();
  61. this.radioButton3 = new System.Windows.Forms.RadioButton();
  62. this.radioButton2 = new System.Windows.Forms.RadioButton();
  63. this.radioButton1 = new System.Windows.Forms.RadioButton();
  64. this.button1 = new System.Windows.Forms.Button();
  65. this.button2 = new System.Windows.Forms.Button();
  66. this.groupBox1.SuspendLayout();
  67. this.SuspendLayout();
  68. //
  69. // groupBox1
  70. //
  71. this.groupBox1.Controls.Add(this.radioButton6);
  72. this.groupBox1.Controls.Add(this.radioButton5);
  73. this.groupBox1.Controls.Add(this.radioButton4);
  74. this.groupBox1.Controls.Add(this.radioButton3);
  75. this.groupBox1.Controls.Add(this.radioButton2);
  76. this.groupBox1.Controls.Add(this.radioButton1);
  77. this.groupBox1.Location = new System.Drawing.Point(8, 8);
  78. this.groupBox1.Name = "groupBox1";
  79. this.groupBox1.Size = new System.Drawing.Size(112, 194);
  80. this.groupBox1.TabIndex = 0;
  81. this.groupBox1.TabStop = false;
  82. this.groupBox1.Text = "去向";
  83. //
  84. // radioButton6
  85. //
  86. this.radioButton6.Location = new System.Drawing.Point(16, 81);
  87. this.radioButton6.Name = "radioButton6";
  88. this.radioButton6.Size = new System.Drawing.Size(64, 24);
  89. this.radioButton6.TabIndex = 6;
  90. this.radioButton6.Tag = "CCM04";
  91. this.radioButton6.Text = "0#连铸";
  92. this.radioButton6.CheckedChanged += new System.EventHandler(this.radioButton6_CheckedChanged_1);
  93. //
  94. // radioButton5
  95. //
  96. this.radioButton5.Location = new System.Drawing.Point(16, 162);
  97. this.radioButton5.Name = "radioButton5";
  98. this.radioButton5.Size = new System.Drawing.Size(64, 24);
  99. this.radioButton5.TabIndex = 5;
  100. this.radioButton5.Tag = "CCM03";
  101. this.radioButton5.Text = "3#连铸";
  102. this.radioButton5.CheckedChanged += new System.EventHandler(this.radioButton5_CheckedChanged);
  103. //
  104. // radioButton4
  105. //
  106. this.radioButton4.Location = new System.Drawing.Point(16, 135);
  107. this.radioButton4.Name = "radioButton4";
  108. this.radioButton4.Size = new System.Drawing.Size(64, 24);
  109. this.radioButton4.TabIndex = 4;
  110. this.radioButton4.Tag = "CCM02";
  111. this.radioButton4.Text = "2#连铸";
  112. this.radioButton4.CheckedChanged += new System.EventHandler(this.radioButton4_CheckedChanged);
  113. //
  114. // radioButton3
  115. //
  116. this.radioButton3.Location = new System.Drawing.Point(16, 108);
  117. this.radioButton3.Name = "radioButton3";
  118. this.radioButton3.Size = new System.Drawing.Size(64, 24);
  119. this.radioButton3.TabIndex = 3;
  120. this.radioButton3.Tag = "CCM01";
  121. this.radioButton3.Text = "1#连铸";
  122. this.radioButton3.CheckedChanged += new System.EventHandler(this.radioButton3_CheckedChanged);
  123. //
  124. // radioButton2
  125. //
  126. this.radioButton2.Location = new System.Drawing.Point(16, 54);
  127. this.radioButton2.Name = "radioButton2";
  128. this.radioButton2.Size = new System.Drawing.Size(64, 24);
  129. this.radioButton2.TabIndex = 2;
  130. this.radioButton2.Tag = "LFS02";
  131. this.radioButton2.Text = "2#精炼";
  132. this.radioButton2.CheckedChanged += new System.EventHandler(this.radioButton2_CheckedChanged);
  133. //
  134. // radioButton1
  135. //
  136. this.radioButton1.Location = new System.Drawing.Point(16, 27);
  137. this.radioButton1.Name = "radioButton1";
  138. this.radioButton1.Size = new System.Drawing.Size(64, 24);
  139. this.radioButton1.TabIndex = 1;
  140. this.radioButton1.Tag = "LFS01";
  141. this.radioButton1.Text = "1#精炼";
  142. this.radioButton1.CheckedChanged += new System.EventHandler(this.radioButton1_CheckedChanged);
  143. //
  144. // button1
  145. //
  146. this.button1.Location = new System.Drawing.Point(136, 127);
  147. this.button1.Name = "button1";
  148. this.button1.Size = new System.Drawing.Size(75, 23);
  149. this.button1.TabIndex = 1;
  150. this.button1.Text = "确认";
  151. this.button1.Click += new System.EventHandler(this.button1_Click);
  152. //
  153. // button2
  154. //
  155. this.button2.Location = new System.Drawing.Point(136, 167);
  156. this.button2.Name = "button2";
  157. this.button2.Size = new System.Drawing.Size(75, 23);
  158. this.button2.TabIndex = 2;
  159. this.button2.Text = "取消";
  160. this.button2.Click += new System.EventHandler(this.button2_Click);
  161. //
  162. // FrmCcmResetStatus
  163. //
  164. this.AutoScaleBaseSize = new System.Drawing.Size(6, 14);
  165. this.ClientSize = new System.Drawing.Size(232, 214);
  166. this.Controls.Add(this.button2);
  167. this.Controls.Add(this.button1);
  168. this.Controls.Add(this.groupBox1);
  169. this.MaximizeBox = false;
  170. this.MinimizeBox = false;
  171. this.Name = "FrmCcmResetStatus";
  172. this.Text = "设置";
  173. this.groupBox1.ResumeLayout(false);
  174. this.ResumeLayout(false);
  175. }
  176. #endregion
  177. public string _strSet = "";
  178. public string _strSta = "";
  179. private void button1_Click(object sender, System.EventArgs e)
  180. {
  181. this.Close();
  182. }
  183. private void button2_Click(object sender, System.EventArgs e)
  184. {
  185. _strSet = "";
  186. _strSta = "";
  187. this.Close();
  188. }
  189. private void radioButton1_CheckedChanged(object sender, System.EventArgs e)
  190. {
  191. if (this.radioButton1.Checked)
  192. {
  193. this._strSet = "LFS01";
  194. this._strSta = "LADLEARRIVE";
  195. }
  196. }
  197. private void radioButton2_CheckedChanged(object sender, System.EventArgs e)
  198. {
  199. if (this.radioButton2.Checked)
  200. {
  201. this._strSet = "LFS02";
  202. this._strSta = "LADLEARRIVE";
  203. }
  204. }
  205. private void radioButton3_CheckedChanged(object sender, System.EventArgs e)
  206. {
  207. this._strSet = "CCM01";
  208. this._strSta = "LADLEARRIVE";
  209. }
  210. private void radioButton4_CheckedChanged(object sender, System.EventArgs e)
  211. {
  212. this._strSet = "CCM02";
  213. this._strSta = "LADLEARRIVE";
  214. }
  215. private void radioButton5_CheckedChanged(object sender, System.EventArgs e)
  216. {
  217. this._strSet = "CCM03";
  218. this._strSta = "LADLEARRIVE";
  219. }
  220. private void radioButton6_CheckedChanged_1(object sender, EventArgs e)
  221. {
  222. this._strSet = "CCM04";
  223. this._strSta = "LADLEARRIVE";
  224. }
  225. }
  226. }