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; namespace Core.LZMes.Client.UIB { public partial class UIB030330 : FrmBase { public UIB030330() { InitializeComponent(); } private void UIB030330_Load(object sender, EventArgs e) { this.comboBox1.SelectedIndex = 1; this.comboBoxUSETP.SelectedIndex = 0; } public override void ToolBar_Click(object sender, string ToolbarKey) { switch (ToolbarKey) { case "Query": this.DoQuery(); break; } } public void DoQuery() { try { ArrayList al = new ArrayList(); if (this.comboBox1.Text == "热轧") { al.Add("UIB030330_01.SELECT"); al.Add("XR"); } else if(this.comboBox1.Text=="酸轧") { al.Add("UIB030330_01.SELECT"); al.Add("LZ"); } else if (this.comboBox1.Text == "开平") { al.Add("UIB030330_02.SELECT"); al.Add("BR"); } else if (this.comboBox1.Text == "连退") { al.Add("UIB030330_01.SELECT"); al.Add("LL"); } else if (this.comboBox1.Text == "板加(非)") { al.Add("UIB030330_01.SELECT"); al.Add("BR2"); //板加(非)目前没有用的,还没有数据,暂时用这个标识 } al.Add(this.ultraDateTimeEditor1.DateTime.ToString("yyyyMMddHHmmss")); al.Add(this.ultraDateTimeEditor2.DateTime.ToString("yyyyMMdd") + "999999"); al.Add(this.textBoxCRETNO.Text.Trim()); al.Add(this.textBoxORDNO.Text.Trim()); al.Add(this.textBoxSPECSTLGRD.Text.Trim()); al.Add(this.comboBoxUSETP.Text); this.dataSet1.Tables[0].Clear(); CoreClientParam ccp = new CoreClientParam(); ccp.ServerName = "UIB.COM.ComDBQuery"; ccp.MethodName = "doSimpleQuery"; ccp.ServerParams = new object[] { al }; ccp.SourceDataTable = this.dataSet1.Tables[0]; this.ExecuteQueryToDataTable(ccp, CoreInvokeType.Internal); } catch (Exception ex) { System.Diagnostics.Debug.WriteLine(ex.ToString()); } } } }