dlgUserOnDept.cs 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. using Core.Mes.Client.Comm.Control;
  2. using Core.Mes.Client.Comm.Server;
  3. using Core.Mes.Client.Comm.Tool;
  4. using CoreFS.CA06;
  5. using Infragistics.Win.UltraWinGrid;
  6. using System;
  7. using System.Collections.Generic;
  8. using System.ComponentModel;
  9. using System.Data;
  10. using System.Drawing;
  11. using System.Linq;
  12. using System.Text;
  13. using System.Windows.Forms;
  14. namespace Core.StlMes.Client.SaleOrder.Dialog
  15. {
  16. public partial class dlgUserOnDept : FrmBase
  17. {
  18. public dlgUserOnDept(OpeBase ob)
  19. {
  20. InitializeComponent();
  21. this.ob = ob;
  22. }
  23. public UltraGridRow SelectRow
  24. {
  25. get { return ultraGrid1.ActiveRow; }
  26. }
  27. private void barsManagerButon_ToolClick(object sender, Infragistics.Win.UltraWinToolbars.ToolClickEventArgs e)
  28. {
  29. if ("Query".Equals(e.Tool.Key))
  30. {
  31. //查询
  32. doQuery();
  33. }
  34. else if ("conFirmation".Equals(e.Tool.Key))
  35. {
  36. UltraGridRow urg = ultraGrid1.ActiveRow;
  37. if (urg == null)
  38. {
  39. MessageUtil.ShowTips("请选择数据!");
  40. return;
  41. }
  42. this.DialogResult = DialogResult.OK;
  43. }
  44. else
  45. {
  46. this.DialogResult = DialogResult.Cancel;
  47. }
  48. }
  49. private void doQuery()
  50. {
  51. DataTable load = ServerHelper.GetData("com.steering.pss.sale.order.CoreOrderBuyer.doQueryUserInfo", new Object[] { tbxUserNameQ.Text, tbxUserIdQ.Text }, this.ob);
  52. GridHelper.CopyDataToDatatable(ref load, ref dataTable1, true);
  53. }
  54. }
  55. }