using System; using System.Collections.Generic; using System.ComponentModel; using System.Drawing; using System.Data; using System.Linq; using System.Text; using System.Windows.Forms; using Core.Mes.Client.Comm.Tool; using Core.StlMes.Client.LgClassModel; using CoreFS.CA06; using Infragistics.Win.UltraWinGrid; namespace Core.StlMes.Client.LgCommon { public sealed partial class ucResStovePlan : ucNewResBase { public ucResStovePlan() { InitializeComponent(); ClsControlPack.SetUltraGridStyle(ugData, 2); } protected override void OnLoad(EventArgs e) { base.OnLoad(e); EntityHelper.ShowGridCaption(ugData.DisplayLayout.Bands[0]); SetData(new List() { new PlnSteelforfurnaceEntity() }); foreach (UltraGridColumn ugc in ugData.DisplayLayout.Bands[0].Columns) { ugc.CellActivation = Activation.ActivateOnly; } } private void craftImg_EditorButtonClick(object sender, Infragistics.Win.UltraWinEditors.EditorButtonEventArgs e) { UltraGridRow row = ugData.ActiveRow; string craftNo = row.Cells["CraftNo"].Text.ToString(); if (e.Button.Key.ToLower().Equals("select")) { string strurl = "http://172.54.10.42:8080/webroot/decision/view/report?viewlet=RepLgSmeltingProcess.cpt&op=view" + "&CRAFT_NO=" + craftNo; FrmRepExcel down = new FrmRepExcel(Ob, strurl); down.Text = "炼钢工艺卡打印"; down.ShowDialog(); } } } }