UIE041090.cs 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  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. namespace Core.LZMes.Client.UIE
  12. {
  13. public partial class UIE041090 : FrmBase
  14. {
  15. public UIE041090()
  16. {
  17. InitializeComponent();
  18. }
  19. public void init()
  20. {
  21. string commCodeCd = "A01004,E01010";
  22. DataTable dt = new DataTable();
  23. CoreClientParam ccp = new CoreClientParam();
  24. ccp.ServerName = "UIB.COM.ComDBQuery";
  25. ccp.MethodName = "doSimpleQuery";
  26. ArrayList paramArray = new ArrayList();
  27. paramArray.Add("UIECOMM00_SELECT.COMM_CODE");
  28. paramArray.Add(commCodeCd);
  29. ccp.ServerParams = new object[] { paramArray };
  30. ccp.SourceDataTable = dt;
  31. this.ExecuteQueryToDataTable(ccp, CoreInvokeType.Internal);
  32. Core.LZMes.Client.UIE.UIE041.UIEBase.Init_ComboControl(this.ComboCoilType, ref dt, "A01004");
  33. Core.LZMes.Client.UIE.UIE041.UIEBase.Init_ComboControl(this.ComboNoOrdCauseCD, ref dt, "E01010");
  34. }
  35. public string Condition
  36. {
  37. set
  38. {
  39. string array = value.Trim();
  40. this.textCoilNO.Text = array;
  41. this.DoQuery();
  42. }
  43. }
  44. public override void ToolBar_Click(object sender, string ToolbarKey)
  45. {
  46. switch (ToolbarKey)
  47. {
  48. case "Query":
  49. this.DoQuery();
  50. break;
  51. }
  52. }
  53. private void DoQuery()
  54. {
  55. try
  56. {
  57. string coilNO = Convert.ToString(Common.FixDBManager.CheckNullStr(this.textCoilNO.Text));
  58. this.dataSet1.Tables[0].Clear();
  59. DataTable dt = new DataTable();
  60. CoreClientParam ccp = new CoreClientParam();
  61. ccp.ServerName = "UIB.COM.ComDBQuery";
  62. ccp.MethodName = "doSimpleQuery";
  63. ArrayList paramArray = new ArrayList();
  64. paramArray.Add("UIE041090.Coil.Select");
  65. paramArray.Add(coilNO);
  66. paramArray.Add("");
  67. paramArray.Add("");
  68. ccp.ServerParams = new object[] { paramArray };
  69. ccp.SourceDataTable = dt;
  70. this.ExecuteQueryToDataTable(ccp, CoreInvokeType.Internal);
  71. this.textCoilNO.Text = dt.Rows[0]["COIL_NO"].ToString();
  72. this.textCAL_WGT.Text = dt.Rows[0]["CAL_WGT"].ToString();
  73. this.textCOIL_CRE_DTIME.Text = dt.Rows[0]["COIL_CRE_DTIME"].ToString();
  74. this.textCOIL_INDIA.Text = dt.Rows[0]["COIL_INDIA"].ToString();
  75. this.textCOIL_LEN.Text = dt.Rows[0]["COIL_LEN"].ToString();
  76. this.textCOIL_OUTDIA.Text = dt.Rows[0]["COIL_OUTDIA"].ToString();
  77. this.textCOIL_STAT.Text = dt.Rows[0]["COIL_STAT"].ToString();
  78. this.textCOIL_THK.Text = dt.Rows[0]["COIL_THK"].ToString();
  79. this.textCOIL_WTH.Text = dt.Rows[0]["COIL_WTH"].ToString();
  80. this.textCoilNO.Text = dt.Rows[0]["COIL_NO"].ToString();
  81. this.textCUR_LOAD_LOC.Text = dt.Rows[0]["CUR_LOAD_LOC"].ToString();
  82. this.textCUR_LOAD_LOC_DTIME.Text = dt.Rows[0]["CUR_LOAD_LOC_DTIME"].ToString();
  83. this.textCUR_PROG_CD.Text = dt.Rows[0]["CUR_PROG_CD"].ToString();
  84. this.textCUR_PROG_CD_DTIME.Text = dt.Rows[0]["CUR_PROG_CD_DTIME"].ToString();
  85. this.textCUST_CD.Text = dt.Rows[0]["CUST_CD"].ToString();
  86. this.textEXTSHAPE_DEC_DTIME.Text = dt.Rows[0]["EXTSHAPE_DEC_DTIME"].ToString();
  87. this.textEXTSHAPE_DEC_GRD.Text = dt.Rows[0]["EXTSHAPE_DEC_GRD"].ToString();
  88. this.textINGR_DEC_DTIME.Text = dt.Rows[0]["INGR_DEC_DTIME"].ToString();
  89. this.textINGR_DEC_GRD.Text = dt.Rows[0]["INGR_DEC_GRD"].ToString();
  90. this.textINSTR_COIL_INDIA.Text = dt.Rows[0]["INSTR_COIL_INDIA"].ToString();
  91. this.textINSTR_COIL_LEN.Text = dt.Rows[0]["INSTR_COIL_LEN"].ToString();
  92. this.textINSTR_COIL_OUTDIA.Text = dt.Rows[0]["INSTR_COIL_OUTDIA"].ToString();
  93. this.textINSTR_COIL_THK.Text = dt.Rows[0]["INSTR_COIL_THK"].ToString();
  94. this.textINSTR_COIL_WTH.Text = dt.Rows[0]["INSTR_COIL_WTH"].ToString();
  95. this.textMATLQLTY_DEC_DTIME.Text = dt.Rows[0]["MATLQLTY_DEC_DTIME"].ToString();
  96. this.textMATLQLTY_DEC_GRD.Text = dt.Rows[0]["MATLQLTY_DEC_GRD"].ToString();
  97. this.textNONORD_CAUSE_CD.Text = dt.Rows[0]["NONORD_CAUSE_CD"].ToString();
  98. this.textNONORD_OCR_DTIME.Text = dt.Rows[0]["NONORD_OCR_DTIME"].ToString();
  99. this.textORD_SEQ.Text = dt.Rows[0]["ORD_SEQ"].ToString();
  100. this.textORD_USE_CD.Text = dt.Rows[0]["ORD_USE_CD"].ToString();
  101. this.textORDCUST_CD.Text = dt.Rows[0]["ORDCUST_CD"].ToString();
  102. this.textORG_ORD_NO.Text = dt.Rows[0]["ORG_ORD_NO"].ToString();
  103. this.textORG_ORD_SEQ.Text = dt.Rows[0]["ORG_ORD_SEQ"].ToString();
  104. this.textSPEC_ABBSYM.Text = dt.Rows[0]["SPEC_ABBSYM"].ToString();
  105. this.textSTL_GRD.Text = dt.Rows[0]["STL_GRD"].ToString();
  106. this.textTOT_DEC_DTIME.Text = dt.Rows[0]["TOT_DEC_DTIME"].ToString();
  107. this.textTOT_DEC_GRD.Text = dt.Rows[0]["TOT_DEC_GRD"].ToString();
  108. }
  109. catch (Exception EX)
  110. {
  111. MessageBox.Show(EX.ToString());
  112. }
  113. }
  114. private void UIE041090_Load(object sender, EventArgs e)
  115. {
  116. init();
  117. }
  118. }
  119. }