UIB030330.cs 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  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.UIB
  12. {
  13. public partial class UIB030330 : FrmBase
  14. {
  15. public UIB030330()
  16. {
  17. InitializeComponent();
  18. }
  19. private void UIB030330_Load(object sender, EventArgs e)
  20. {
  21. this.comboBox1.SelectedIndex = 1;
  22. this.comboBoxUSETP.SelectedIndex = 0;
  23. }
  24. public override void ToolBar_Click(object sender, string ToolbarKey)
  25. {
  26. switch (ToolbarKey)
  27. {
  28. case "Query":
  29. this.DoQuery();
  30. break;
  31. }
  32. }
  33. public void DoQuery()
  34. {
  35. try
  36. {
  37. ArrayList al = new ArrayList();
  38. if (this.comboBox1.Text == "热轧")
  39. {
  40. al.Add("UIB030330_01.SELECT");
  41. al.Add("XR");
  42. }
  43. else if(this.comboBox1.Text=="酸轧")
  44. {
  45. al.Add("UIB030330_01.SELECT");
  46. al.Add("LZ");
  47. }
  48. else if (this.comboBox1.Text == "开平")
  49. {
  50. al.Add("UIB030330_02.SELECT");
  51. al.Add("BR");
  52. }
  53. else if (this.comboBox1.Text == "连退")
  54. {
  55. al.Add("UIB030330_01.SELECT");
  56. al.Add("LL");
  57. }
  58. else if (this.comboBox1.Text == "板加(非)")
  59. {
  60. al.Add("UIB030330_01.SELECT");
  61. al.Add("BR2"); //板加(非)目前没有用的,还没有数据,暂时用这个标识
  62. }
  63. al.Add(this.ultraDateTimeEditor1.DateTime.ToString("yyyyMMddHHmmss"));
  64. al.Add(this.ultraDateTimeEditor2.DateTime.ToString("yyyyMMdd") + "999999");
  65. al.Add(this.textBoxCRETNO.Text.Trim());
  66. al.Add(this.textBoxORDNO.Text.Trim());
  67. al.Add(this.textBoxSPECSTLGRD.Text.Trim());
  68. al.Add(this.comboBoxUSETP.Text);
  69. this.dataSet1.Tables[0].Clear();
  70. CoreClientParam ccp = new CoreClientParam();
  71. ccp.ServerName = "UIB.COM.ComDBQuery";
  72. ccp.MethodName = "doSimpleQuery";
  73. ccp.ServerParams = new object[] { al };
  74. ccp.SourceDataTable = this.dataSet1.Tables[0];
  75. this.ExecuteQueryToDataTable(ccp, CoreInvokeType.Internal);
  76. }
  77. catch (Exception ex)
  78. {
  79. System.Diagnostics.Debug.WriteLine(ex.ToString());
  80. }
  81. }
  82. }
  83. }