| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
- using Core.Mes.Client.Comm.Control;
- using Core.Mes.Client.Comm.Server;
- using Core.Mes.Client.Comm.Tool;
- using CoreFS.CA06;
- using Infragistics.Win.UltraWinGrid;
- using System;
- using System.Collections.Generic;
- using System.ComponentModel;
- using System.Data;
- using System.Drawing;
- using System.Linq;
- using System.Text;
- using System.Windows.Forms;
- namespace Core.StlMes.Client.SaleOrder.Dialog
- {
- public partial class dlgUserOnDept : FrmBase
- {
- public dlgUserOnDept(OpeBase ob)
- {
- InitializeComponent();
- this.ob = ob;
- }
- public UltraGridRow SelectRow
- {
- get { return ultraGrid1.ActiveRow; }
- }
- private void barsManagerButon_ToolClick(object sender, Infragistics.Win.UltraWinToolbars.ToolClickEventArgs e)
- {
- if ("Query".Equals(e.Tool.Key))
- {
- //查询
- doQuery();
- }
- else if ("conFirmation".Equals(e.Tool.Key))
- {
- UltraGridRow urg = ultraGrid1.ActiveRow;
- if (urg == null)
- {
- MessageUtil.ShowTips("请选择数据!");
- return;
- }
- this.DialogResult = DialogResult.OK;
- }
- else
- {
- this.DialogResult = DialogResult.Cancel;
- }
- }
- private void doQuery()
- {
- DataTable load = ServerHelper.GetData("com.steering.pss.sale.order.CoreOrderBuyer.doQueryUserInfo", new Object[] { tbxUserNameQ.Text, tbxUserIdQ.Text }, this.ob);
- GridHelper.CopyDataToDatatable(ref load, ref dataTable1, true);
- }
- }
- }
|