using System; using System.Collections.Generic; using System.Linq; using System.Windows.Forms; using Core.Mes.Client.Comm.Tool; using Core.StlMes.Client.Lims.Data.PipeAndOutdec.封装类.实体类; using CoreFS.CA06; using Infragistics.Win.UltraWinEditors; namespace Core.StlMes.Client.Lims.Data.PipeAndOutdec.数据管理.基础信息管理 { public partial class RelationCopy : FrmBase { public ComBasePhyEntityFull defaultEntity; public RelationCopy(OpeBase _ob) { InitializeComponent(); ob = _ob; } private void cboPhyTypeC_EditorButtonClick(object sender, Infragistics.Win.UltraWinEditors.EditorButtonEventArgs e) { var ultraTextEditor = sender as UltraTextEditor; if (ultraTextEditor == null) return; using (var PhyCodeSelect = new PhyCodeSelect(ob, new ComBasePhyEntityFull(), "2")) { if (PhyCodeSelect.ShowDialog() == DialogResult.OK) { ultraTextEditor.Tag = PhyCodeSelect.SelectRow; ReloadDetail(ultraTextEditor == cboPhyTypeCCopy ? "1" : "2"); } } } public void ReloadDetail(string level) { if (level =="1") { relationEntityCopyBindingSource.Clear(); } } } }