3741156883219ed4fcdcfdd5db4ee7a9dc949867.svn-base 8.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163
  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 UIE041080 : FrmBase
  14. {
  15. public UIE041080()
  16. {
  17. InitializeComponent();
  18. }
  19. public override void ToolBar_Click(object sender, string ToolbarKey)
  20. {
  21. switch (ToolbarKey)
  22. {
  23. case "Query":
  24. this.DoQuery();
  25. break;
  26. }
  27. }
  28. public string Condition
  29. {
  30. set
  31. {
  32. string[] array = value.Trim().Split(new char[] { '|' });
  33. if (array.Length < 2) return;
  34. this.textOrdNO.Text = array[0];
  35. this.ComboORD_SEQ.Value = array[1];
  36. this.DoQuery();
  37. }
  38. }
  39. public void getOrdSeq()
  40. {
  41. try
  42. {
  43. string ordNO = this.textOrdNO.Text;
  44. DataTable dt = new DataTable();
  45. ArrayList paramArray = new ArrayList();
  46. paramArray.Add("UIECOMM00_SELECT.ORD_SEQ");
  47. paramArray.Add(ordNO);
  48. CoreClientParam ccp = new CoreClientParam();
  49. ccp.ServerName = "UIB.COM.ComDBQuery";
  50. ccp.MethodName = "doSimpleQuery";
  51. ccp.ServerParams = new object[] { paramArray };
  52. ccp.SourceDataTable = dt;
  53. this.ExecuteQueryToDataTable(ccp, CoreInvokeType.Internal);
  54. Core.LZMes.Client.UIE.UIE041.UIEBase.Init_ComboControl(this.ComboORD_SEQ, ref dt, "ORD_SEQ");
  55. }
  56. catch (Exception EX)
  57. {
  58. MessageBox.Show(EX.ToString());
  59. }
  60. }
  61. private void DoQuery()
  62. {
  63. try
  64. {
  65. string ordNO = Convert.ToString(Common.FixDBManager.CheckNullStr(this.textOrdNO.Text));
  66. string ordSeq = Convert.ToString(Common.FixDBManager.CheckNullStr(this.ComboORD_SEQ.Value));
  67. ArrayList paramArray = new ArrayList();
  68. paramArray.Add("UIE041080.Order.Select");
  69. paramArray.Add(ordNO);
  70. paramArray.Add(ordSeq);
  71. DataTable dt = new DataTable();
  72. CoreClientParam ccp = new CoreClientParam();
  73. ccp.ServerName = "UIB.COM.ComDBQuery";
  74. ccp.MethodName = "doSimpleQuery";
  75. ccp.ServerParams = new object[] { paramArray };
  76. ccp.SourceDataTable = dt;
  77. this.ExecuteQueryToDataTable(ccp, CoreInvokeType.Internal);
  78. this.textPROD_WGT_MAX.Text = Common.FixDBManager.CheckNullStr(dt.Rows[0]["PROD_WGT_MAX"]);
  79. this.textCUST_SPEC_NO.Text = Common.FixDBManager.CheckNullStr(dt.Rows[0]["CUST_SPEC_NO"]);
  80. this.textORD_USEAGE_CD.Text = Common.FixDBManager.CheckNullStr(dt.Rows[0]["ORD_USEAGE_CD"]);
  81. this.textSPEC_ABBSYM.Text = Common.FixDBManager.CheckNullStr(dt.Rows[0]["SPEC_ABBSYM"]);
  82. this.textCUST_CD.Text = Common.FixDBManager.CheckNullStr(dt.Rows[0]["CUST_CD"]);
  83. this.textSALE_CHR_CD.Text = Common.FixDBManager.CheckNullStr(dt.Rows[0]["SALE_CHR_CD"]);
  84. this.textORDCUST_CD.Text = Common.FixDBManager.CheckNullStr(dt.Rows[0]["ORDCUST_CD"]);
  85. this.textEMGMTR_NMG_CLF.Text = Common.FixDBManager.CheckNullStr(dt.Rows[0]["EMGMTR_NMG_CLF"]);
  86. this.textSCARPING_PROC_YN.Text = Common.FixDBManager.CheckNullStr(dt.Rows[0]["SCARPING_PROC_YN"]);
  87. this.textORD_ENDBY.Text = Common.FixDBManager.CheckNullStr(dt.Rows[0]["ORD_ENDBY"]);
  88. this.textORD_END_YN.Text = Common.FixDBManager.CheckNullStr(dt.Rows[0]["ORD_END_YN"]);
  89. this.textPROD_WGT_MAX.Text = Common.FixDBManager.CheckNullStr(dt.Rows[0]["PROD_WGT_MAX"]);
  90. this.textORD_LEN_MAX.Text = Common.FixDBManager.CheckNullStr(dt.Rows[0]["ORD_LEN_MAX"]);
  91. this.textORD_END_DATE.Text = Common.FixDBManager.CheckNullStr(dt.Rows[0]["ORD_END_DATE"]);
  92. this.textSHIP_ENDBY.Text = Common.FixDBManager.CheckNullStr(dt.Rows[0]["SHIP_ENDBY"]);
  93. this.textPROD_WGT_MIN.Text = Common.FixDBManager.CheckNullStr(dt.Rows[0]["PROD_WGT_MIN"]);
  94. this.textORD_LEN_MIN.Text = Common.FixDBManager.CheckNullStr(dt.Rows[0]["ORD_LEN_MIN"]);
  95. this.textSPM_PROC_YN.Text = Common.FixDBManager.CheckNullStr(dt.Rows[0]["SPM_PROC_YN"]);
  96. //this.textBox35.Text = Common.FixDBManager.CheckNullStr(dt.Rows[0]["Box35"]);
  97. this.textRCVORD_CLF.Text = Common.FixDBManager.CheckNullStr(dt.Rows[0]["RCVORD_CLF"]);
  98. this.textSHIP_FN_DATE.Text = Common.FixDBManager.CheckNullStr(dt.Rows[0]["SHIP_FN_DATE"]);
  99. this.textWGT_ACVAL_MAX.Text = Common.FixDBManager.CheckNullStr(dt.Rows[0]["WGT_ACVAL_MAX"]);
  100. this.textTHK_TOL_ERMAX.Text = Common.FixDBManager.CheckNullStr(dt.Rows[0]["THK_TOL_ERMAX"]);
  101. this.textDEL_TO_DATE.Text = Common.FixDBManager.CheckNullStr(dt.Rows[0]["DEL_TO_DATE"]);
  102. this.textSTKSALE_TP.Text = Common.FixDBManager.CheckNullStr(dt.Rows[0]["STKSALE_TP"]);
  103. this.textSHIP_END_YN.Text = Common.FixDBManager.CheckNullStr(dt.Rows[0]["SHIP_END_YN"]);
  104. this.textWGT_ACVAL_MIN.Text = Common.FixDBManager.CheckNullStr(dt.Rows[0]["WGT_ACVAL_MIN"]);
  105. this.textTHK_TOL_ERMIN.Text = Common.FixDBManager.CheckNullStr(dt.Rows[0]["THK_TOL_ERMIN"]);
  106. this.textEXAMORG_CD.Text = Common.FixDBManager.CheckNullStr(dt.Rows[0]["EXAMORG_CD"]);
  107. this.textORD_CNCBY.Text = Common.FixDBManager.CheckNullStr(dt.Rows[0]["ORD_CNCBY"]);
  108. this.textORD_CNC_YN.Text = Common.FixDBManager.CheckNullStr(dt.Rows[0]["ORD_CNC_YN"]);
  109. this.textORD_OUTDIA.Text = Common.FixDBManager.CheckNullStr(dt.Rows[0]["ORD_OUTDIA"]);
  110. this.textORD_WGT.Text = Common.FixDBManager.CheckNullStr(dt.Rows[0]["ORD_WGT"]);
  111. this.textORD_CNC_DTIME.Text = Common.FixDBManager.CheckNullStr(dt.Rows[0]["ORD_CNC_DTIME"]);
  112. this.textORD_UDTBY.Text = Common.FixDBManager.CheckNullStr(dt.Rows[0]["ORD_UDTBY"]);
  113. this.textORD_INDIA.Text = Common.FixDBManager.CheckNullStr(dt.Rows[0]["ORD_INDIA"]);
  114. this.textORD_LEN.Text = Common.FixDBManager.CheckNullStr(dt.Rows[0]["ORD_LEN"]);
  115. this.textDLIV_TP.Text = Common.FixDBManager.CheckNullStr(dt.Rows[0]["DLIV_TP"]);
  116. //this.textBox33.Text = Common.FixDBManager.CheckNullStr(dt.Rows[0]["Box33"]);
  117. this.textPRODNM_CD.Text = Common.FixDBManager.CheckNullStr(dt.Rows[0]["PRODNM_CD"]);
  118. this.textORD_UDT_DTIME.Text = Common.FixDBManager.CheckNullStr(dt.Rows[0]["ORD_UDT_DTIME"]);
  119. this.textWTH_TOL_ERMAX.Text = Common.FixDBManager.CheckNullStr(dt.Rows[0]["WTH_TOL_ERMAX"]);
  120. this.textORD_WTH.Text = Common.FixDBManager.CheckNullStr(dt.Rows[0]["ORD_WTH"]);
  121. this.textORD_ACT_DTIME.Text = Common.FixDBManager.CheckNullStr(dt.Rows[0]["ORD_ACT_DTIME"]);
  122. this.textORD_PROG_CD.Text = Common.FixDBManager.CheckNullStr(dt.Rows[0]["ORD_PROG_CD"]);
  123. this.textORD_UDT_YN.Text = Common.FixDBManager.CheckNullStr(dt.Rows[0]["ORD_UDT_YN"]);
  124. this.textWTH_TOL_ERMIN.Text = Common.FixDBManager.CheckNullStr(dt.Rows[0]["WTH_TOL_ERMIN"]);
  125. this.textORD_THK.Text = Common.FixDBManager.CheckNullStr(dt.Rows[0]["ORD_THK"]);
  126. this.textCONTRACT_NO.Text = Common.FixDBManager.CheckNullStr(dt.Rows[0]["CONTRACT_NO"]);
  127. this.textDDC_STL_GRD.Text = Common.FixDBManager.CheckNullStr(dt.Rows[0]["DDC_STL_GRD"]);
  128. this.textFAC_STL_GRD.Text = Common.FixDBManager.CheckNullStr(dt.Rows[0]["FAC_STL_GRD"]);
  129. this.textSPEC_STL_GRD.Text = Common.FixDBManager.CheckNullStr(dt.Rows[0]["SPEC_STL_GRD"]);
  130. this.textCUST_STL_GRD.Text = Common.FixDBManager.CheckNullStr(dt.Rows[0]["CUST_STL_GRD"]);
  131. this.textDEST_CD.Text = Common.FixDBManager.CheckNullStr(dt.Rows[0]["DEST_CD"]);
  132. this.textBoxBUY_ABBSYM.Text = Common.FixDBManager.CheckNullStr(dt.Rows[0]["BUY_ABBSYM"]);
  133. this.textBoxPRODUCT_LX.Text = Common.FixDBManager.CheckNullStr(dt.Rows[0]["PRODUCT_LX"]);
  134. }
  135. catch (Exception EX)
  136. {
  137. MessageBox.Show(EX.ToString());
  138. }
  139. }
  140. private void textOrdNO_Leave(object sender, EventArgs e)
  141. {
  142. getOrdSeq();
  143. }
  144. private void ComboORD_SEQ_Leave(object sender, EventArgs e)
  145. {
  146. this.DoQuery();
  147. }
  148. }
  149. }