frmForgeJobPlan.cs 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel;
  4. using System.Data;
  5. using System.Drawing;
  6. using System.Text;
  7. using System.Windows.Forms;
  8. using CoreFS.CA06;
  9. namespace Core.StrMes.Client.ForgeJobPlan
  10. {
  11. public partial class frmForgeJobPlan : FrmBase
  12. {
  13. public frmForgeJobPlan()
  14. {
  15. InitializeComponent();
  16. }
  17. private void ultragridForgeJobPlan_InitializeLayout(object sender, Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs e)
  18. {
  19. }
  20. private void frmForgeJobPlan_Load(object sender, EventArgs e)
  21. {
  22. dsForgeJobPlan.Tables[0].Rows.Add(new object[] { "15100001", "1", "下发", "150001", "1", "15000101", "Q235B", "280", "6000" });
  23. dsForgeJobPlan.Tables[1].Rows.Add(new object[] { "15100001", "1", "下发", "150001", "153000101", "1530001", "Q235B" });
  24. dsForgeJobPlan.Tables[1].Rows.Add(new object[] { "15100001", "2", "下发", "150001", "153000102", "1530001", "Q235B" });
  25. dsForgeJobPlan.Tables[1].Rows.Add(new object[] { "15100001", "3", "下发", "150001", "153000103", "1530001", "Q235B" });
  26. dsForgeJobPlan.Tables[1].Rows.Add(new object[] { "15100001", "4", "下发", "150001", "153000104", "1530001", "Q235B" });
  27. }
  28. public override void ToolBar_Click(object sender, string ToolbarKey)
  29. {
  30. switch (ToolbarKey)
  31. {
  32. case "Edit":
  33. frmForgeJobPlanDesign frmZPF = new frmForgeJobPlanDesign();
  34. frmZPF.StartPosition = FormStartPosition.CenterScreen;
  35. frmZPF.Tag = this;
  36. frmZPF.ShowDialog(this);
  37. break;
  38. case "Close":
  39. this.Close();
  40. break;
  41. default:
  42. break;
  43. }
  44. }
  45. }
  46. }