InputWt.cs 811 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Windows.Forms;
  5. using Core.Mes.Client.Comm.Format;
  6. using Core.Mes.Client.Comm.Tool;
  7. using CoreFS.CA06;
  8. namespace Core.StlMes.Client.LgResMgt.Mcms
  9. {
  10. public partial class InputWt : FrmBase
  11. {
  12. public InputWt(decimal? wt)
  13. {
  14. InitializeComponent();
  15. editWt.Value = wt;
  16. }
  17. public decimal TotalWt { get; set; }
  18. private void ubtOK_Click(object sender, EventArgs e)
  19. {
  20. if (editWt.Value == null)
  21. {
  22. MessageBox.Show("请输入重量!");
  23. return;
  24. }
  25. TotalWt = decimal.Parse(editWt.Value.ToString3());
  26. this.DialogResult = DialogResult.OK;
  27. }
  28. }
  29. }