FrmApprovalData.cs 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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.Tool;
  10. using CoreFS.CA06;
  11. namespace Core.StlMes.Client.Mcp.Mch.MchResult
  12. {
  13. public partial class FrmApprovalData : FrmBase
  14. {
  15. private string heatplanId;
  16. private string No;
  17. private string name;
  18. public FrmApprovalData(OpeBase _ob, string heatplanId, string no, string name)
  19. {
  20. this.heatplanId = heatplanId;
  21. No = no;
  22. this.name = name;
  23. InitializeComponent();
  24. ob = _ob;
  25. }
  26. private void ultraButton1_Click(object sender, EventArgs e)
  27. {
  28. if (txtNote.Text.Trim() == "")
  29. {
  30. MessageBox.Show("请输入反馈确认信息");
  31. return;
  32. }
  33. var ccp = new CoreClientParam();
  34. ccp.ServerName = "com.steering.mes.mcp.Mch.FrmFinalCheck";
  35. ccp.MethodName = "DoApproval";
  36. ccp.ServerParams = new object[]
  37. {
  38. No,
  39. name,
  40. txtNote.Text
  41. };
  42. ccp = ExecuteNonQuery(ccp, CoreInvokeType.Internal);
  43. if (ccp.ReturnCode != -1)
  44. {
  45. MessageUtil.ShowTips(ccp.ReturnInfo);
  46. if (ccp.ReturnInfo.Equals("验证通过成功!"))
  47. {
  48. this.DialogResult = DialogResult.OK;
  49. }
  50. }
  51. }
  52. }
  53. }