MatShowBase.cs 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  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. //基本信息显示区
  12. namespace Core.StlMes.Client.Lims.Data.Mat
  13. {
  14. public partial class MatShowBase : UserControl
  15. {
  16. public MatShowBase()
  17. {
  18. InitializeComponent();
  19. }
  20. private void MatShowBase_Load(object sender, EventArgs e)
  21. {
  22. }
  23. //显示基本信息
  24. public void ShowBaseInfo(UltraGridRow ur)
  25. {
  26. PublicMat.ShowBaseInfo(ur, panel1);
  27. }
  28. //显示基本信息
  29. public void ShowBaseInfo(UltraGridRow ur, string[] cols)
  30. {
  31. PublicMat.ShowBaseInfo(ur, panel1, cols);
  32. }
  33. //显示赋值信息(暂时只有样管号数)
  34. public void ShowValue(string strValue)
  35. {
  36. txtBATCH_NO.Text = strValue;//根据试样号个数确定值
  37. }
  38. //改变控件名字
  39. public void ChangeLabel(string strValue)
  40. {
  41. labSAMPLE_NO.Text = strValue;//取样数
  42. //labSAMPLE_NO.Location = new System.Drawing.Point(196, 12);
  43. }
  44. public void ClearCheckConsign()
  45. {
  46. txtCHECK_NO.Text = "";
  47. txtITEM_NAME.Text = "";
  48. txtBATCH_NO.Text = "";
  49. txtPRODUCT_STD.Text = "";
  50. txtGRADE.Text = "";
  51. txtWEIGHT.Text = "";
  52. txtCHECK_COUNT_DESC.Text = "";
  53. txtCONSIGN_DEPT.Text = "";
  54. txtCONSIGN_NAME.Text = "";
  55. txtCONSIGN_TIME.Text = "";
  56. txtREMARK.Text = "";
  57. }
  58. }
  59. }