using Core.Mes.Client.Comm.Tool; using Core.StlMes.Client.YdmBcPipeManage.Entity; using CoreFS.CA06; using System; using System.Collections; 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.YdmBcPipeManage { public partial class FrmBcOnPassage : FrmBase { public FrmBcOnPassage() { this.IsLoadUserView = true; InitializeComponent(); } private void FrmBcOnPassage_Load(object sender, EventArgs e) { EntityHelper.ShowGridCaption(ultraGrid2.DisplayLayout.Bands[0]); } /// /// 重写基类方法 /// /// /// public override void ToolBar_Click(object sender, string ToolbarKey) { switch (ToolbarKey) { case "Query": doQueryOnPassage(); break; case "Close": this.Close(); break; } } /// /// 查询 /// private void doQueryOnPassage() { string judgeNo = ""; if (chkJudgeNo.Checked && this.txtJudgeNo.Text.Trim() != "") { judgeNo = this.txtJudgeNo.Text.Trim(); } ArrayList list = new ArrayList(); list.Add(judgeNo); List listSource = EntityHelper.GetData( "com.steering.ydm.bc.FrmBcOnPassage.doQueryOnPassage", new object[] { list }, this.ob); ydmBcOutlistEntityBindingSource.DataSource = listSource; } private void chkJudgeNo_CheckedChanged(object sender, EventArgs e) { this.txtJudgeNo.Enabled = this.chkJudgeNo.Checked; } private void txtJudgeNo_KeyDown(object sender, KeyEventArgs e) { if (e.KeyValue == 13) { doQueryOnPassage(); } } } }