MatGetSampleBase.cs 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel;
  4. using System.Drawing;
  5. using System.Data;
  6. using System.Linq;
  7. using System.Text;
  8. using System.Windows.Forms;
  9. using Infragistics.Win.UltraWinGrid;
  10. using Infragistics.Win.UltraWinEditors;
  11. using Core.Mes.Client.Comm.Tool;
  12. using System.Collections;
  13. //数据采集基本信息输入
  14. namespace Core.StlMes.Client.Lims.Data.Mat
  15. {
  16. public partial class MatGetSampleBase : UserControl
  17. {
  18. public string StrStd
  19. {
  20. get { return txtGET_SAMPLE_STD.Text.Trim(); }
  21. set { txtGET_SAMPLE_STD.Text = value; }
  22. }
  23. //private string strName;
  24. public string StrName
  25. {
  26. get { return txtGET_SAMPLE_NAME.Text.Trim(); }
  27. set { txtGET_SAMPLE_NAME.Text = value; }
  28. }
  29. //private string strTime;
  30. public string StrTime
  31. {
  32. get { return txtGET_SAMPLE_TIME.Text.Trim(); }
  33. set { txtGET_SAMPLE_TIME.Text = value; }
  34. }
  35. //private string strShift;
  36. public string StrShift
  37. {
  38. get { return ultraGET_SAMPLE_SHIFT.Text.Trim(); }
  39. set { ultraGET_SAMPLE_SHIFT.Text = value; }
  40. }
  41. //private string strClass;
  42. public string StrClass
  43. {
  44. get { return ultraGET_SAMPLE_CLASS.Text.Trim(); }
  45. set { ultraGET_SAMPLE_CLASS.Text = value; }
  46. }
  47. //private string strWeight;
  48. public string StrWeight
  49. {
  50. get { return txtGET_SAMPLE_WEIGHT.Text.Trim(); }
  51. set { txtGET_SAMPLE_WEIGHT.Text = value; }
  52. }
  53. //private string strSmallCount;
  54. public string StrSmallCount
  55. {
  56. get { return txtGET_SMALL_COUNT.Text.Trim(); }
  57. set { txtGET_SMALL_COUNT.Text = value; }
  58. }
  59. //private string strCount;
  60. public string StrCount
  61. {
  62. get { return txtGET_SAMPLE_COUNT.Text.Trim(); }
  63. set { txtGET_SAMPLE_COUNT.Text = value; }
  64. }
  65. //private string strTemp;
  66. public string StrDept
  67. {
  68. get { return txtGET_SAMPLE_DEPT.Text.Trim(); }
  69. set { txtGET_SAMPLE_DEPT.Text = value; }
  70. }
  71. //private string strArea;
  72. public string StrArea
  73. {
  74. get { return txtGET_SAMPLE_AREA.Text.Trim(); }
  75. set { txtGET_SAMPLE_AREA.Text = value; }
  76. }
  77. //private string strRemark;
  78. public string StrRemark
  79. {
  80. get { return txtREMARK.Text.Trim(); }
  81. set { txtREMARK.Text = value; }
  82. }
  83. public MatGetSampleBase()
  84. {
  85. InitializeComponent();
  86. }
  87. private void MatDataCJBase_Load(object sender, EventArgs e)
  88. {
  89. }
  90. //显示基本信息
  91. public void ShowBaseInfo(UltraGridRow ur)
  92. {
  93. PublicMat.ShowBaseInfo(ur, panel1);
  94. }
  95. public void ClearAll()
  96. {
  97. txtGET_SAMPLE_STD.Text = "";
  98. txtGET_SAMPLE_NAME.Text = "";
  99. txtGET_SAMPLE_TIME.Text = "";
  100. ultraGET_SAMPLE_SHIFT.Text = "";
  101. ultraGET_SAMPLE_CLASS.Text = "";
  102. txtGET_SAMPLE_WEIGHT.Text = "";
  103. txtGET_SAMPLE_COUNT.Text = "1";
  104. txtGET_SAMPLE_DEPT.Text = "";
  105. txtGET_SAMPLE_AREA.Text = "";
  106. txtREMARK.Text = "";
  107. }
  108. private void ultraGET_SAMPLE_COUNT_TextChanged(object sender, EventArgs e)
  109. {
  110. if (txtGET_SAMPLE_COUNT.Text.Trim() != "" && !StringUtil.IsInt(txtGET_SAMPLE_COUNT.Text.Trim()))
  111. {
  112. MessageUtil.ShowWarning("取样数量必须为整数!");
  113. txtGET_SAMPLE_COUNT.Text = "1";
  114. }
  115. }
  116. }
  117. }