| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121 |
- 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 Infragistics.Win.UltraWinGrid;
- using System.Collections;
- using System.Diagnostics;
- namespace Core.LZMes.Client.UIB
- {
- public partial class UIB030193 : FrmBase
- {
- public UIB030193()
- {
- InitializeComponent();
- }
- public override void ToolBar_Click(object sender, string ToolbarKey)
- {
- switch (ToolbarKey)
- {
- case "Query":
- this.DoQuery();
- break;
- }
- }
- public void DoQuery()
- {
- try
- {
- ArrayList al = new ArrayList();
- string startTime = this.ultraDateTimeEditor1.DateTime.ToString("yyyyMMdd") + "000000";
- string endTime = this.ultraDateTimeEditor2.DateTime.ToString("yyyyMMdd") + "999999";
- string coilLen = "0";//钢卷长度,用来区分重卷与连退
- if (this.comboBox2.Text == "酸轧")
- {
- al.Add("UIB030193_02.SELECT");
- al.Add(startTime);
- al.Add(endTime);
- al.Add(startTime);
- al.Add(endTime);
- al.Add(startTime);
- al.Add(endTime);
- al.Add(startTime);
- al.Add(endTime);
- al.Add(startTime);
- al.Add(endTime);
- }
- else if (this.comboBox2.Text == "连退" || this.comboBox2.Text == "重卷")
- {
- if (this.comboBox2.Text == "连退")
- coilLen = "15";
- else
- coilLen = "17";
- al.Add("UIB030193_01.SELECT");
- al.Add(this.comboBox2.Text.ToString());
-
- al.Add(coilLen);
- al.Add(startTime);
- al.Add(endTime);
- al.Add(coilLen);
- al.Add(startTime);
- al.Add(endTime);
- al.Add(coilLen);
- al.Add(startTime);
- al.Add(endTime);
- al.Add(coilLen);
- al.Add(startTime);
- al.Add(endTime);
- al.Add(coilLen);
- al.Add(startTime);
- al.Add(endTime);
- }
-
- 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)
- {
- }
- }
- private void UIB030193_Load(object sender, EventArgs e)
- {
- try
- {
- this.comboBox2.SelectedIndex = 0;
- }
- catch (Exception ex)
- {
- }
- }
- }
- }
|