FrmSetCutHeatno.cs 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  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 System.Collections;
  10. using CoreFS.CA06;
  11. using Core.StlMes.Client.LgCommon;
  12. namespace Core.StlMes.Client.LgResMgt
  13. {
  14. public partial class FrmSetCutHeatno : frmStyleBase
  15. {
  16. public string Ccmno = "";
  17. public string CutHeatno = "";
  18. public string Flux = "";
  19. public FrmSetCutHeatno(OpeBase ob_)
  20. {
  21. InitializeComponent();
  22. this.ob = ob_;
  23. }
  24. private void FrmSetCutHeatno_Load(object sender, EventArgs e)
  25. {
  26. cbo_ccmno.Text = Ccmno;
  27. textBox1.Text = CutHeatno;
  28. txt_weight.Text = Flux;
  29. }
  30. private void btn_enter_Click(object sender, EventArgs e)
  31. {
  32. try
  33. {
  34. string strHeatNo = this.txt_setheatno.Text.Trim();
  35. if (strHeatNo.Length < 8)
  36. {
  37. MessageBox.Show("炉号不正确,请重开此界面操作!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
  38. return;
  39. }
  40. string strOut = "";
  41. string ccmheatno = "G0" + Ccmno + "01" + strHeatNo;
  42. ArrayList arry = new ArrayList();
  43. arry.Add("FrmCutBilletDetails_UPdate");
  44. arry.Add(ccmheatno);
  45. arry.Add(Ccmno);
  46. CommonClientToServer ccs = new CommonClientToServer();
  47. ccs.ob = this.ob;
  48. string strReturn = ccs.NoQueryFunctions("Core.LgMes.Server.Common.ComDBSave", "doSimpleSave", arry, out strOut);
  49. if (strOut != "")
  50. {
  51. MessageBox.Show("操作失败!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
  52. }
  53. else
  54. {
  55. MessageBox.Show("操作成功!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
  56. }
  57. }
  58. catch { }
  59. }
  60. }
  61. }