UIB100201.cs 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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 UIB100201 : FrmBase
  14. {
  15. public UIB100201()
  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 void DoQuery()
  29. {
  30. try
  31. {
  32. this.dataSet1.Clear();
  33. ArrayList al = new ArrayList();
  34. al.Add("UIB100201_01.SELECT");
  35. al.Add(this.ultraDateTimeEditor1.DateTime.ToString("yyyyMMdd") + "000000");
  36. al.Add(this.ultraDateTimeEditor2.DateTime.ToString("yyyyMMdd") + "999999");
  37. CoreClientParam ccp = new CoreClientParam();
  38. ccp.ServerName = "UIB.JHY.JHYComQuery";
  39. ccp.MethodName = "doSimpleQuery";
  40. ccp.ServerParams = new object[] { al };
  41. ccp.SourceDataTable = this.dataSet1.Tables[0];
  42. this.ExecuteQueryToDataTable(ccp, CoreInvokeType.Internal);
  43. }
  44. catch (Exception ex)
  45. {
  46. MessageBox.Show("系统异常,请与技术中心联系");
  47. }
  48. }
  49. }
  50. }