DetectionPopup.cs 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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 Core.Mes.Client.Comm.Server;
  10. using Core.Mes.Client.Comm.Tool;
  11. using CoreFS.CA06;
  12. namespace Core.StlMes.Client.SaleOrder.Dialog
  13. {
  14. public partial class DetectionPopup : FrmBase
  15. {
  16. private string _ordLnPk = "";
  17. public DetectionPopup(string ordLnPk, OpeBase ob)
  18. {
  19. InitializeComponent();
  20. this.ob = ob;
  21. _ordLnPk = ordLnPk;
  22. DataTable dtDetection = ServerHelper.GetData("com.steering.pss.sale.order.ReviewForm.CoreOrderReviewTechnology.getOrdLnState",
  23. new object[] { ordLnPk }, ob);
  24. labelNumericText1.Value = dtDetection.Rows[0]["INSPECTION_VALUE"].ToString();
  25. }
  26. private void ultraButton1_Click(object sender, EventArgs e)
  27. {
  28. if (labelNumericText1.Value == null)
  29. {
  30. MessageUtil.ShowWarning("请输入切长!");
  31. return;
  32. }
  33. SaveDetection(labelNumericText1.Value.ToString2());
  34. MessageUtil.ShowTips("保存成功!");
  35. DialogResult = System.Windows.Forms.DialogResult.OK;
  36. }
  37. private void SaveDetection(string detectionLength)
  38. {
  39. ServerHelper.SetData("com.steering.pss.sale.order.ReviewForm.CoreOrderReviewTechnology.updateOrderLineInspV",
  40. new object[] { _ordLnPk, detectionLength }, ob);
  41. }
  42. }
  43. }