FrmOutSouCon.cs 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. using Core.Mes.Client.Comm.Server;
  2. using Core.StlMes.Client.Mcp.Control;
  3. using CoreFS.CA06;
  4. using System;
  5. using System.Collections.Generic;
  6. using System.ComponentModel;
  7. using System.Data;
  8. using System.Drawing;
  9. using System.Linq;
  10. using System.Text;
  11. using System.Windows.Forms;
  12. namespace Core.StlMes.Client.Mcp.Control.Base
  13. {
  14. public partial class FrmOutSouCon : Form
  15. {
  16. private OpeBase ob;
  17. public FrmOutSouCon( OpeBase _ob)
  18. {
  19. InitializeComponent();
  20. ob = _ob;
  21. }
  22. //委外说明
  23. private string remark = "";
  24. public string Remark
  25. {
  26. get { return remark; }
  27. set { remark = value; }
  28. }
  29. /// <summary>
  30. /// 委外产线代码
  31. /// </summary>
  32. private string plinCode;
  33. public string PlinCode
  34. {
  35. get { return plinCode; }
  36. set { plinCode = value; }
  37. }
  38. /// <summary>
  39. /// 委外产线名称
  40. /// </summary>
  41. private string plineName;
  42. public string PlineName
  43. {
  44. get { return plineName; }
  45. set { plineName = value; }
  46. }
  47. private void ultraButton1_Click(object sender, EventArgs e)
  48. {
  49. remark = this.txt_Rmark.Text.Trim();
  50. if (cmbPlineCode.Text.Trim().Equals(""))
  51. {
  52. plinCode = "";
  53. plineName = "";
  54. }
  55. else
  56. {
  57. plinCode = cmbPlineCode.Value.ToString();
  58. plineName = cmbPlineCode.Text.ToString();
  59. }
  60. this.DialogResult = System.Windows.Forms.DialogResult.OK;
  61. }
  62. private void ultraButton2_Click(object sender, EventArgs e)
  63. {
  64. this.Close();
  65. }
  66. private void FrmOutSouCon_Load(object sender, EventArgs e)
  67. {
  68. //查询产线
  69. DataTable dt = ServerHelper.GetData("com.steering.mes.mcp.Vrp.FrmOutSourcApp.doQueryPlineCode", new object[] { "" }, this.ob);
  70. cmbPlineCode.DataSource = dt;
  71. cmbPlineCode.DisplayMember = "PLINE_NAME";
  72. cmbPlineCode.ValueMember = "PLINE_CODE";
  73. YdmBaseClass.SetComboItemHeight(cmbPlineCode);
  74. }
  75. }
  76. }