ucResStovePlanCcm.cs 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel;
  4. using System.Drawing;
  5. using System.Data;
  6. using System.Linq;
  7. using System.Text;
  8. using System.Windows.Forms;
  9. using Core.Mes.Client.Comm.Tool;
  10. using Core.StlMes.Client.LgClassModel;
  11. using CoreFS.CA06;
  12. using Infragistics.Win.UltraWinGrid;
  13. namespace Core.StlMes.Client.LgCommon
  14. {
  15. public sealed partial class ucResStovePlanCcm : ucNewResBase
  16. {
  17. public ucResStovePlanCcm()
  18. {
  19. InitializeComponent();
  20. ClsControlPack.SetUltraGridStyle(ugData, 2);
  21. }
  22. protected override void OnLoad(EventArgs e)
  23. {
  24. base.OnLoad(e);
  25. EntityHelper.ShowGridCaption<PlnSteelforfurnaceEntity>(ugData.DisplayLayout.Bands[0]);
  26. SetData(new List<object>() { new PlnSteelforfurnaceEntity() });
  27. foreach (UltraGridColumn ugc in ugData.DisplayLayout.Bands[0].Columns)
  28. {
  29. ugc.CellActivation = Activation.ActivateOnly;
  30. }
  31. }
  32. private void craftImg_EditorButtonClick(object sender, Infragistics.Win.UltraWinEditors.EditorButtonEventArgs e)
  33. {
  34. UltraGridRow row = ugData.ActiveRow;
  35. string craftNo = row.Cells["CraftNo"].Text.ToString();
  36. if (e.Button.Key.ToLower().Equals("select"))
  37. {
  38. string strurl =
  39. "http://172.54.10.42:8080/webroot/decision/view/report?viewlet=RepLgSmeltingProcess.cpt&op=view" +
  40. "&CRAFT_NO=" + craftNo;
  41. FrmRepExcel down = new FrmRepExcel(Ob, strurl);
  42. down.Text = "炼钢工艺卡打印";
  43. down.ShowDialog();
  44. }
  45. }
  46. }
  47. }