QCM030709.cs 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  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 CoreFS.CA06;
  10. using System.Collections;
  11. using Infragistics.Win.UltraWinGrid;
  12. namespace Core.LZMes.Client.QCM
  13. {
  14. public partial class QCM030709 : FrmBase
  15. {
  16. public QCM030709()
  17. {
  18. InitializeComponent();
  19. }
  20. public string MATERIAL_NO = "";
  21. public string STD_CODE = "";
  22. public string STEELCODE = "";
  23. public string HEIGHT = "";
  24. public string DELIVERY_STATE_CODE = "";
  25. public string PSC = "";
  26. public string WIDTH = "";
  27. public string LENGTH = "";
  28. public string PROD_LINE = "";
  29. public string orderno = "";
  30. public string gp_tradeno = "";
  31. private void QCM0307_Load(object sender, EventArgs e)
  32. {
  33. try
  34. {
  35. this.dataSet7.Clear();
  36. string surface_id = "";
  37. CoreClientParam ccp = new CoreClientParam();
  38. ccp.ServerName = "QCM.QCM03.QCM0307.QcmRejudgeApplyServiceImpl";
  39. ccp.MethodName = "getGpInfo";
  40. ccp.ServerParams = new object[] { MATERIAL_NO,STD_CODE,STEELCODE,HEIGHT,DELIVERY_STATE_CODE,PSC,WIDTH,LENGTH,PROD_LINE };
  41. ccp.SourceDataTable = this.dataSet7.Tables[0];
  42. this.ExecuteQueryToDataTable(ccp, CoreInvokeType.Internal);
  43. }
  44. catch (Exception ex)
  45. {
  46. System.Diagnostics.Debug.WriteLine(ex.ToString());
  47. MessageBox.Show("系统出错,请联系管理人员", "警告");
  48. }
  49. }
  50. private void button2_Click(object sender, EventArgs e)
  51. {
  52. try
  53. {
  54. this.Close();
  55. }
  56. catch (System.Exception ex)
  57. {
  58. System.Diagnostics.Debug.WriteLine(ex.ToString());
  59. }
  60. }
  61. private void button1_Click(object sender, EventArgs e)
  62. {
  63. foreach(UltraGridRow ugr in this.ultraGrid6.Rows)
  64. {
  65. if(ugr.Cells["CHECK"].Text.ToString() == "True")
  66. {
  67. this.orderno = ugr.Cells["GP_ORDNO"].Value.ToString();
  68. this.gp_tradeno = ugr.Cells["GP_TRADENO"].Value.ToString();
  69. }
  70. }
  71. if (this.orderno == "")
  72. {
  73. MessageBox.Show("请选择改判订单!");
  74. return;
  75. }
  76. this.Close();
  77. }
  78. }
  79. }