using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using CoreFS.CA06; using Core.Mes.Client.Comm.Server; using Core.Mes.Client.Comm.Tool; namespace Core.StlMes.Client.SaleOrder { public partial class PopupOrderMpsNo : FrmBase { private string _ordLnPk = ""; public PopupOrderMpsNo(string ordLnPk, OpeBase ob) { InitializeComponent(); this.ob = ob; _ordLnPk = ordLnPk; } private void PopupOrderMpsNo_Load(object sender, EventArgs e) { DataTable dt = ServerHelper.GetData("com.steering.pss.sale.order.CoreOrderCraft.getMpsNo", new object[] { _ordLnPk }, ob); if (dt.Rows.Count > 0) { textBox1.Text = dt.Rows[0]["MPS_NO"].ToString(); } } private void button1_Click(object sender, EventArgs e) { if (textBox1.Text.Trim() == "") { MessageUtil.ShowWarning("请输入MPS编号!"); return; } this.DialogResult = DialogResult.OK; } } }