FrmSubCon.cs 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. using Core.Mes.Client.Comm.Tool;
  2. using CoreFS.CA06;
  3. using System;
  4. using System.Collections.Generic;
  5. using System.ComponentModel;
  6. using System.Data;
  7. using System.Drawing;
  8. using System.Linq;
  9. using System.Text;
  10. using System.Windows.Forms;
  11. namespace Core.StlMes.Client.ZGMil.NodeResultQuery
  12. {
  13. public partial class FrmSubCon : Form
  14. {
  15. OpeBase _ob = null;
  16. public FrmSubCon(OpeBase ob)
  17. {
  18. InitializeComponent();
  19. this._ob = ob;
  20. }
  21. //钢管处理
  22. private string steelPipeProcess = "";
  23. public string SteelPipeProcess
  24. {
  25. get { return steelPipeProcess; }
  26. set { steelPipeProcess = value; }
  27. }
  28. //超声探伤
  29. private string ulTesting = "";
  30. public string UlTesting
  31. {
  32. get { return ulTesting; }
  33. set { ulTesting = value; }
  34. }
  35. //委外说明
  36. private string remark = "";
  37. public string Remark
  38. {
  39. get { return remark; }
  40. set { remark = value; }
  41. }
  42. //探伤类别
  43. private string testType = "";
  44. public string TestType
  45. {
  46. get { return testType; }
  47. set { testType = value; }
  48. }
  49. //探伤等级
  50. private string testGrade = "";
  51. public string TestGrade
  52. {
  53. get { return testGrade; }
  54. set { testGrade = value; }
  55. }
  56. private void ultraButton1_Click(object sender, EventArgs e)
  57. {
  58. if ((this.TxtType.Text == "" && this.TxtGrade.Text != "") || (this.TxtType.Text != "" && this.TxtGrade.Text == ""))
  59. {
  60. MessageUtil.ShowTips("探伤类别应与探伤等级同有值或者同为空!");
  61. return;
  62. }
  63. steelPipeProcess = this.txt_steelPipe.Text.Trim();
  64. ulTesting = this.txt_ulTest.Text.Trim();
  65. remark = this.txt_Rmark.Text.Trim();
  66. testType = this.TxtType.Value.ToString2();
  67. testGrade = this.TxtGrade.Text.Trim();
  68. this.DialogResult = System.Windows.Forms.DialogResult.OK;
  69. }
  70. private void ultraButton2_Click(object sender, EventArgs e)
  71. {
  72. this.Close();
  73. }
  74. private void FrmSubCon_Load(object sender, EventArgs e)
  75. {
  76. PipeManageClass.InitComboEditor(txt_ulTest, "com.steering.mes.signature.FrmInOnlineStore.getTestGrade", "BASECODE", this._ob, false);
  77. PipeManageClass.InitComboEditor(TxtGrade, "com.steering.mes.signature.FrmInOnlineStore.getTestGrade", "BASECODE", this._ob, false);
  78. }
  79. }
  80. }