CUIB010360.cs 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  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 Infragistics.Win.UltraWinGrid;
  11. using System.Collections;
  12. namespace Core.LZMes.Client.UIB
  13. {
  14. public partial class CUIB010360 : FrmBase
  15. {
  16. string ordUseTp_1 = null;
  17. string sTime_1 = null;
  18. string eTime_1 = null;
  19. string pLine_1 = null;
  20. public string pLine
  21. {
  22. set
  23. {
  24. pLine_1 = value;
  25. }
  26. }
  27. public string ordUseTp
  28. {
  29. set
  30. {
  31. ordUseTp_1 = value;
  32. }
  33. }
  34. public string sTime
  35. {
  36. set
  37. {
  38. sTime_1 = value;
  39. }
  40. }
  41. public string eTime
  42. {
  43. set
  44. {
  45. eTime_1 = value;
  46. DoQuery();
  47. }
  48. }
  49. public CUIB010360()
  50. {
  51. InitializeComponent();
  52. }
  53. public void DoQuery()
  54. {
  55. try
  56. {
  57. CoreClientParam ccp = new CoreClientParam();
  58. this.dataSet1.Clear();
  59. ArrayList al = new ArrayList();
  60. if (pLine_1 == "热轧")
  61. {
  62. al.Add("UIB010360_02_HOST.SELECT");
  63. }
  64. else if (this.pLine_1 == "炼钢")
  65. {
  66. al.Add("UIB010360_02_LG.SELECT");
  67. }
  68. else if (this.pLine_1 == "酸轧")
  69. {
  70. al.Add("UIB010360_02_SUAN.SELECT");
  71. }
  72. else if (this.pLine_1 == "连退")
  73. {
  74. al.Add("UIB010360_02_LIAN.SELECT");
  75. }
  76. al.Add(sTime_1);
  77. al.Add(eTime_1);
  78. al.Add(ordUseTp_1);
  79. ccp.ServerName = "UIB.COM.ComDBQuery";
  80. ccp.MethodName = "doSimpleQuery";
  81. ccp.ServerParams = new object[] { al };
  82. ccp.SourceDataTable = this.dataSet1.Tables[0];
  83. this.ExecuteQueryToDataTable(ccp, CoreInvokeType.Internal);
  84. }
  85. catch (Exception ex)
  86. {
  87. }
  88. }
  89. }
  90. }