FrmCcmResetStatus.cs.svn-base 8.0 KB

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