UIM010370.cs 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  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. using Infragistics.Win.UltraWinGrid;
  12. namespace Core.LZMes.Client.UIM
  13. {
  14. public partial class UIM010370 : FrmBase
  15. {
  16. public UIM010370()
  17. {
  18. InitializeComponent();
  19. }
  20. public override void ToolBar_Click(object sender, string ToolbarKey)
  21. {
  22. switch (ToolbarKey)
  23. {
  24. case "Query":
  25. this.DoQuery();
  26. break;
  27. case "Save":
  28. this.DoSave();
  29. break;
  30. case "Exp":
  31. this.DoExp();
  32. break;
  33. case "Exit":
  34. this.Close();
  35. break;
  36. }
  37. }
  38. private void DoQuery()
  39. {
  40. try
  41. {
  42. ArrayList al = new ArrayList();
  43. al.Add("UIM010370_01.SELECT");
  44. al.Add(this.ultraDateTimeEditor1.DateTime.ToString("yyyyMMdd") + "000000");
  45. al.Add(this.ultraDateTimeEditor2.DateTime.ToString("yyyyMMdd") + "999999");
  46. al.Add(this.textBox1.Text.Trim());
  47. this.dataSet1.Tables[0].Clear();
  48. CoreClientParam ccp = new CoreClientParam();
  49. ccp.ServerName = "UIB.COM.ComDBQuery";
  50. ccp.MethodName = "doSimpleQuery";
  51. ccp.ServerParams = new object[] { al };
  52. ccp.SourceDataTable = this.dataSet1.Tables[0];
  53. ccp.IfShowErrMsg = false;
  54. this.ExecuteQueryToDataTable(ccp, CoreInvokeType.Internal);
  55. foreach (UltraGridRow ugr in this.ultraGrid1.Rows)
  56. {
  57. if (ugr.Cells["CUR_LOAD_LOC"].Text != "")
  58. {
  59. ugr.Appearance.ForeColor = Color.Red;//红色
  60. }
  61. }
  62. }
  63. catch (Exception ex)
  64. {
  65. MessageBox.Show("系统发生未知异常,请联系管理员");
  66. }
  67. }
  68. private void DoExp()
  69. {
  70. }
  71. private void DoSave()
  72. {
  73. }
  74. }
  75. }