FrmSelDel.cs 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158
  1. using System;
  2. using System.Drawing;
  3. using System.Collections;
  4. using System.ComponentModel;
  5. using System.Windows.Forms;
  6. using CoreFS.CA06;
  7. using Core.Mes.Client.Common;
  8. namespace Core.LgMes.Client.LgJobMgt
  9. {
  10. /// <summary>
  11. /// FrmSelDel 的摘要说明。
  12. /// </summary>
  13. public class FrmSelDel : frmStyleBase //System.Windows.Forms.Form
  14. {
  15. private System.Windows.Forms.Button button1;
  16. private System.Windows.Forms.Button button2;
  17. private System.Windows.Forms.Button button3;
  18. private System.Windows.Forms.Label label1;
  19. private System.Windows.Forms.ToolTip toolTip1;
  20. private Infragistics.Win.Misc.UltraGroupBox ultraGroupBox1;
  21. private System.ComponentModel.IContainer components;
  22. public FrmSelDel(OpeBase oba)
  23. {
  24. //
  25. // Windows 窗体设计器支持所必需的
  26. //
  27. InitializeComponent();
  28. ob = oba;
  29. //
  30. // TODO: 在 InitializeComponent 调用后添加任何构造函数代码
  31. //
  32. }
  33. /// <summary>
  34. /// 清理所有正在使用的资源。
  35. /// </summary>
  36. protected override void Dispose( bool disposing )
  37. {
  38. if( disposing )
  39. {
  40. if(components != null)
  41. {
  42. components.Dispose();
  43. }
  44. }
  45. base.Dispose( disposing );
  46. }
  47. #region Windows 窗体设计器生成的代码
  48. /// <summary>
  49. /// 设计器支持所需的方法 - 不要使用代码编辑器修改
  50. /// 此方法的内容。
  51. /// </summary>
  52. private void InitializeComponent()
  53. {
  54. this.components = new System.ComponentModel.Container();
  55. this.button1 = new System.Windows.Forms.Button();
  56. this.button2 = new System.Windows.Forms.Button();
  57. this.button3 = new System.Windows.Forms.Button();
  58. this.label1 = new System.Windows.Forms.Label();
  59. this.toolTip1 = new System.Windows.Forms.ToolTip(this.components);
  60. this.ultraGroupBox1 = new Infragistics.Win.Misc.UltraGroupBox();
  61. ((System.ComponentModel.ISupportInitialize)(this.ultraGroupBox1)).BeginInit();
  62. this.ultraGroupBox1.SuspendLayout();
  63. this.SuspendLayout();
  64. //
  65. // button1
  66. //
  67. this.button1.Location = new System.Drawing.Point(9, 42);
  68. this.button1.Name = "button1";
  69. this.button1.Size = new System.Drawing.Size(96, 23);
  70. this.button1.TabIndex = 0;
  71. this.button1.Text = "删除所选行";
  72. this.toolTip1.SetToolTip(this.button1, "删除当前选择的行");
  73. this.button1.Click += new System.EventHandler(this.button1_Click);
  74. //
  75. // button2
  76. //
  77. this.button2.Location = new System.Drawing.Point(113, 42);
  78. this.button2.Name = "button2";
  79. this.button2.Size = new System.Drawing.Size(96, 23);
  80. this.button2.TabIndex = 1;
  81. this.button2.Text = "删除所选炉号";
  82. this.toolTip1.SetToolTip(this.button2, "删除该炉号的所有数据");
  83. this.button2.Click += new System.EventHandler(this.button2_Click);
  84. //
  85. // button3
  86. //
  87. this.button3.Location = new System.Drawing.Point(217, 42);
  88. this.button3.Name = "button3";
  89. this.button3.Size = new System.Drawing.Size(96, 23);
  90. this.button3.TabIndex = 2;
  91. this.button3.Text = "取消";
  92. this.toolTip1.SetToolTip(this.button3, "取消");
  93. this.button3.Click += new System.EventHandler(this.button3_Click);
  94. //
  95. // label1
  96. //
  97. this.label1.Location = new System.Drawing.Point(17, 10);
  98. this.label1.Name = "label1";
  99. this.label1.Size = new System.Drawing.Size(100, 23);
  100. this.label1.TabIndex = 3;
  101. this.label1.Text = "选择删除方式:";
  102. this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
  103. //
  104. // ultraGroupBox1
  105. //
  106. this.ultraGroupBox1.Controls.Add(this.label1);
  107. this.ultraGroupBox1.Controls.Add(this.button1);
  108. this.ultraGroupBox1.Controls.Add(this.button3);
  109. this.ultraGroupBox1.Controls.Add(this.button2);
  110. this.ultraGroupBox1.Dock = System.Windows.Forms.DockStyle.Fill;
  111. this.ultraGroupBox1.Location = new System.Drawing.Point(0, 0);
  112. this.ultraGroupBox1.Name = "ultraGroupBox1";
  113. this.ultraGroupBox1.Size = new System.Drawing.Size(325, 76);
  114. this.ultraGroupBox1.TabIndex = 4;
  115. //
  116. // FrmSelDel
  117. //
  118. this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
  119. this.BackColor = System.Drawing.Color.Gainsboro;
  120. this.ClientSize = new System.Drawing.Size(325, 76);
  121. this.Controls.Add(this.ultraGroupBox1);
  122. this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
  123. this.MaximizeBox = false;
  124. this.MinimizeBox = false;
  125. this.Name = "FrmSelDel";
  126. this.ShowInTaskbar = false;
  127. this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
  128. this.Text = "删除";
  129. ((System.ComponentModel.ISupportInitialize)(this.ultraGroupBox1)).EndInit();
  130. this.ultraGroupBox1.ResumeLayout(false);
  131. this.ResumeLayout(false);
  132. }
  133. #endregion
  134. public string _Flag = "C";
  135. private void button1_Click(object sender, System.EventArgs e)
  136. {
  137. _Flag = "A";
  138. this.Close();
  139. }
  140. private void button2_Click(object sender, System.EventArgs e)
  141. {
  142. _Flag = "B";
  143. this.Close();
  144. }
  145. private void button3_Click(object sender, System.EventArgs e)
  146. {
  147. _Flag = "C";
  148. this.Close();
  149. }
  150. }
  151. }