| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970 |
- using Core.Mes.Client.Comm.Tool;
- using Core.StlMes.Client.Lims.Data.PipeAndOutdec.封装类.实体类;
- 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.Lims.Data.PipeAndOutdec
- {
- public partial class WinPhySelect : FrmBase
- {
- public WinPhySelect(OpeBase _ob)
- {
- InitializeComponent();
- this.ob = _ob;
- EntityHelper.ShowGridCaption<ComBasePhyCEntity>(ultraGrid1.DisplayLayout.Bands[0]);
- doQuery();
- }
- public ComBasePhyCEntity SelectRow
- {
- get { return ultraGrid1.ActiveRow.ListObject as ComBasePhyCEntity; }
- }
- private void doQuery()
- {
- String phy = "";
- if (!String.IsNullOrEmpty(phySearch.Text))
- {
- phy = phySearch.Text;
- }
- String validFlag = "";
- if (validFlagSearch.Value != null && !String.IsNullOrEmpty(validFlagSearch.Value.ToString()))
- {
- validFlag = validFlagSearch.Value.ToString();
- }
- List<ComBasePhyCEntity> listSource = EntityHelper.GetData<ComBasePhyCEntity>(
- "com.steering.lims.data.pipe.FrmPhyStdChange.doQueryPhyC", new object[] { phy, validFlag }, this.ob);
- comBasePhyCEntityBindingSource.DataSource = listSource;
- }
- private void ultraToolbarsManager1_ToolClick(object sender, Infragistics.Win.UltraWinToolbars.ToolClickEventArgs e)
- {
- switch (e.Tool.Key)
- {
- case "Search":
- doQuery();
- break;
- case "Save":
- UltraGridRow urg = ultraGrid1.ActiveRow;
- if (urg == null) {
- MessageUtil.ShowTips("请选择数据!");
- return;
- }
- this.DialogResult = DialogResult.OK;
- break;
- case "Close":
- this.DialogResult = DialogResult.Cancel;
- break;
- }
- }
- }
- }
|