using System; using System.Collections.Generic; using System.Linq; using System.Windows.Forms; using Core.Mes.Client.Comm.Format; using Core.Mes.Client.Comm.Tool; using CoreFS.CA06; namespace Core.StlMes.Client.LgResMgt.Mcms { public partial class InputWt : FrmBase { public InputWt(decimal? wt) { InitializeComponent(); editWt.Value = wt; } public decimal TotalWt { get; set; } private void ubtOK_Click(object sender, EventArgs e) { if (editWt.Value == null) { MessageBox.Show("请输入重量!"); return; } TotalWt = decimal.Parse(editWt.Value.ToString3()); this.DialogResult = DialogResult.OK; } } }