FrmOut.cs 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. using Core.Mes.Client.Comm.Server;
  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.Mcp.Coupling
  12. {
  13. public partial class FrmOut : FrmBase
  14. {
  15. OpeBase ob;
  16. private string harshType = "";
  17. public string HarshType
  18. {
  19. get { return harshType; }
  20. set { harshType = value; }
  21. }
  22. private string strat = "";
  23. public string Strat
  24. {
  25. set { strat = value; }
  26. get { return strat; }
  27. }
  28. //委外说明
  29. private string remark = "";
  30. public string Remark
  31. {
  32. get { return remark; }
  33. set { remark = value; }
  34. }
  35. private string stationUnitCode;
  36. /// <summary>
  37. /// 委外单位编码
  38. /// </summary>
  39. public string StationUnitCode
  40. {
  41. get { return stationUnitCode; }
  42. set { stationUnitCode = value; }
  43. }
  44. private string stationUnitDesc;
  45. /// <summary>
  46. /// 委外单位
  47. /// </summary>
  48. public string StationUnitDesc
  49. {
  50. get { return stationUnitDesc; }
  51. set { stationUnitDesc = value; }
  52. }
  53. public FrmOut(OpeBase _ob)
  54. {
  55. ob = _ob;
  56. InitializeComponent();
  57. }
  58. private void FrmOut_Load(object sender, EventArgs e)
  59. {
  60. ClsBaseInfo.SetComboItemHeight(cmbGx);
  61. DataTable dt = ServerHelper.GetData("com.steering.mes.mcp.coup.FrmDownLineManage.doQuery", new object[] { "7020" }, ob);
  62. ultraComboEditor1.DataSource = dt;
  63. ultraComboEditor1.DisplayMember = "BASENAME";
  64. ultraComboEditor1.ValueMember = "BASECODE";
  65. ClsBaseInfo.SetComboItemHeight(ultraComboEditor1);
  66. }
  67. private void ultraButton1_Click(object sender, EventArgs e)
  68. {
  69. if (cmbGx.Text.ToString().Equals(""))
  70. {
  71. HarshType = "";
  72. }
  73. else
  74. {
  75. HarshType = cmbGx.Value.ToString();
  76. }
  77. if (ultraComboEditor1.Text.ToString().Equals(""))
  78. {
  79. StationUnitCode = "";
  80. StationUnitDesc = "";
  81. }
  82. else
  83. {
  84. StationUnitCode = ultraComboEditor1.Value.ToString();
  85. StationUnitDesc = ultraComboEditor1.Text.ToString();
  86. }
  87. remark = this.txt_Rmark.Text.Trim();
  88. this.DialogResult = System.Windows.Forms.DialogResult.OK;
  89. }
  90. private void ultraButton2_Click(object sender, EventArgs e)
  91. {
  92. this.Close();
  93. }
  94. }
  95. }