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 Core.Mes.Client.Comm.Tool; using Core.StlMes.Client.YdmPipeManage.Tool; using Core.Mes.Client.Comm.Control; using Core.StlMes.Client.YdmPipeReport.Entity; using System.Collections; namespace Core.StlMes.Client.YdmPipeReport { public partial class FrmGpRpt : FrmBase { public FrmGpRpt() { InitializeComponent(); } private void FrmGpRpt_Load(object sender, EventArgs e) { this.TextStoveNo.Enabled = false; EntityHelper.ShowGridCaption(ultraGrid1.DisplayLayout.Bands[0]); } public override void ToolBar_Click(object sender, string ToolbarKey) { switch (ToolbarKey) { case "Query": QueryData(); break; case"Export": exportData(); break; case "Close": this.Close(); break; } } /// /// 查询 /// private void QueryData() { string heatNo = ""; string start = ""; string end = ""; ArrayList list = new ArrayList(); if (ChcStoveNo.Checked) { if (this.TextStoveNo.Text == "") { MessageUtil.ShowTips("请输入炉号!"); return; } else { heatNo = this.TextStoveNo.Text; } } if (createTimeCheck.Checked) { start = startTime.Value.ToString("yyyy-MM-dd HH:mm:ss"); end = endTime.Value.ToString("yyyy-MM-dd HH:mm:ss"); } list.Add(heatNo); string[] arr = BaseMethod.InitPermissions(this.ValidDataPurviewIds, ob); List listSource = EntityHelper.GetData( "com.steering.pss.ydm.Report.FrmGpRpt.getGpDataB", new object[] { list, arr, this.CustomInfo, start, end }, this.ob); QcmZgJudgeChangeEntitybindingSource1.DataSource = listSource; } /// /// 导出 /// private void exportData() { GridHelper.ulGridToExcel(ultraGrid1, "改判实绩总汇"); } private void ChcStoveNo_CheckedChanged(object sender, EventArgs e) { this.TextStoveNo.Enabled = this.ChcStoveNo.Checked; } } }