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; namespace Core.StlMes.Client.Mcp.Control.Base { public partial class FrmRentFurnace : Form { public FrmRentFurnace() { InitializeComponent(); } //炉号 private string judNo = ""; public string JudNo { get { return judNo; } set { judNo = value; } } //批号 private string batchNo = ""; public string BatchNo { get { return batchNo; } set { batchNo = value; } } private void ultraButton1_Click(object sender, EventArgs e) { judNo = this.txtJudNo.Text.Trim(); batchNo=txtBachNo.Text.Trim(); if (judNo == "") { MessageBox.Show("组炉炉号不能为空!"); return; } /* if (batchNo == "") { MessageBox.Show("组炉批号不能为空!"); return; }*/ this.DialogResult = System.Windows.Forms.DialogResult.OK; } private void ultraButton2_Click(object sender, EventArgs e) { this.Close(); } } }