| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- 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 ucResStovePlanCcm : ucNewResBase
- {
- public ucResStovePlanCcm()
- {
- InitializeComponent();
- ClsControlPack.SetUltraGridStyle(ugData, 2);
- }
- protected override void OnLoad(EventArgs e)
- {
- base.OnLoad(e);
- EntityHelper.ShowGridCaption<PlnSteelforfurnaceEntity>(ugData.DisplayLayout.Bands[0]);
- SetData(new List<object>() { 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();
- }
- }
- }
- }
|