PopupOrderMpsNo.cs 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel;
  4. using System.Data;
  5. using System.Drawing;
  6. using System.Linq;
  7. using System.Text;
  8. using System.Windows.Forms;
  9. using CoreFS.CA06;
  10. using Core.Mes.Client.Comm.Server;
  11. using Core.Mes.Client.Comm.Tool;
  12. namespace Core.StlMes.Client.SaleOrder
  13. {
  14. public partial class PopupOrderMpsNo : FrmBase
  15. {
  16. private string _ordLnPk = "";
  17. public PopupOrderMpsNo(string ordLnPk, OpeBase ob)
  18. {
  19. InitializeComponent();
  20. this.ob = ob;
  21. _ordLnPk = ordLnPk;
  22. }
  23. private void PopupOrderMpsNo_Load(object sender, EventArgs e)
  24. {
  25. DataTable dt = ServerHelper.GetData("com.steering.pss.sale.order.CoreOrderCraft.getMpsNo",
  26. new object[] { _ordLnPk }, ob);
  27. if (dt.Rows.Count > 0)
  28. {
  29. textBox1.Text = dt.Rows[0]["MPS_NO"].ToString();
  30. }
  31. }
  32. private void button1_Click(object sender, EventArgs e)
  33. {
  34. if (textBox1.Text.Trim() == "")
  35. {
  36. MessageUtil.ShowWarning("请输入MPS编号!");
  37. return;
  38. }
  39. this.DialogResult = DialogResult.OK;
  40. }
  41. }
  42. }