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; using CoreFS.CA06; using System.Collections; using Infragistics.Win.UltraWinGrid; namespace Core.LZMes.Client.QCM { public partial class QCM0106LG : FrmBase { public QCM0106LG() { InitializeComponent(); } public override void ToolBar_Click(object sender, string ToolbarKey) { switch (ToolbarKey) { case "Query": this.DoQuery(); break; } } private void DoQuery() { //查询 try { this.dataSet1.Clear(); string starttime = ""; string endtime = ""; starttime = this.dateTimePicker1.Value.ToString("yyyyMMdd"); endtime = this.dateTimePicker2.Value.ToString("yyyyMMdd"); string sbatchno = this.textBox1.Text.ToString(); string prod_line = ""; if (this.comboBox3.Text.ToString() == "一炼钢") { prod_line = "4001LG0"; } else if (this.comboBox3.Text.ToString() == "二炼钢") { prod_line = "4001LGX"; } CoreClientParam ccp = new CoreClientParam(); ccp.ServerName = "QCM.QCM01.QCM0106.QueryDefect"; ccp.MethodName = "QueryLG"; ccp.ServerParams = new object[] { starttime, endtime, prod_line, sbatchno }; ccp.SourceDataTable = this.dataSet1.Tables[0]; this.ExecuteQueryToDataTable(ccp, CoreInvokeType.Internal); } catch (Exception ex) { System.Diagnostics.Debug.WriteLine(ex.ToString()); } } private void ultraGrid1_AfterRowActivate(object sender, EventArgs e) { } } }