FrmStorageInfo.cs 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. using System;
  2. using System.Collections;
  3. using System.Collections.Generic;
  4. using System.ComponentModel;
  5. using System.Data;
  6. using System.Drawing;
  7. using System.Linq;
  8. using System.Text;
  9. using System.Windows.Forms;
  10. using Core.Mes.Client.Comm.Control;
  11. using Core.Mes.Client.Comm.Server;
  12. using Core.Mes.Client.Comm.Tool;
  13. using CoreFS.CA06;
  14. namespace Core.StlMes.Client.YdmBcPipeManage
  15. {
  16. public partial class FrmStorageInfo : FrmBase
  17. {
  18. public FrmStorageInfo()
  19. {
  20. InitializeComponent();
  21. }
  22. public override void ToolBar_Click(object sender, string ToolbarKey)
  23. {
  24. switch (ToolbarKey)
  25. {
  26. case "Query":
  27. doQuery();
  28. break;
  29. case "Close":
  30. this.Close();
  31. break;
  32. }
  33. }
  34. private string[] arr = null;//仓库权限
  35. public void doQuery() {
  36. this.dataTable1.Clear();
  37. ArrayList list = new ArrayList();
  38. list.Add(this.txtSTORAGE_NAME.Text.ToString().Trim());
  39. list.Add(this.txtLOCATION_NAME.Text.ToString().Trim());
  40. DataTable dt = ServerHelper.GetData("com.steering.ydm.bc.FrmStorageInfo.doQuery", new Object[] { arr,list}, this.ob);
  41. GridHelper.CopyDataToDatatable(ref dt, ref this.dataTable1, true);
  42. }
  43. private void FrmStorageInfo_Load(object sender, EventArgs e)
  44. {
  45. arr = BaseMethod.WarehousePermissionsStore(this.ValidDataPurviewIds, ob);
  46. GridHelper.SetAllColumnsActive(ultraGrid1);
  47. }
  48. }
  49. }