FrmYpGradeCIC.cs 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel;
  4. using System.Data;
  5. using System.Drawing;
  6. using System.Linq;
  7. using System.Text;
  8. using System.Windows.Forms;
  9. using CoreFS.CA06;
  10. using Core.Mes.Client.Comm.Server;
  11. using Core.Mes.Client.Comm.Control;
  12. using Infragistics.Win.UltraWinGrid;
  13. using System.Net;
  14. using System.Collections;
  15. using CoreFS.SA06;
  16. namespace Core.StlMes.Client.BuyBillet
  17. {
  18. public partial class FrmYpGradeCIC : FrmBase
  19. {
  20. private new CoreFS.CA06.OpeBase ob = new OpeBase();
  21. public event Action<string, string> onSelection;
  22. public FrmYpGradeCIC(OpeBase ops)
  23. {
  24. this.ob = ops;
  25. InitializeComponent();
  26. }
  27. private void FrmYpGradeCIC_Load(object sender, EventArgs e)
  28. {
  29. DataTable dt = ServerHelper.GetData("com.steering.pss.buybillet.Buybillet.queryGP_CICSTEELGRADES", new object[] { }, this.ob);
  30. this.ultraGrid1.DataSource = dt;
  31. }
  32. private void ultraGrid1_ClickCell(object sender, ClickCellEventArgs e)
  33. {
  34. UltraGridRow row = e.Cell.Row;
  35. string cic = row.Cells["CIC"].Value.ToString();
  36. string steelgrades = row.Cells["STEELGRADES"].Value.ToString();
  37. if (onSelection != null)
  38. {
  39. onSelection(cic, steelgrades);
  40. }
  41. this.Close();
  42. }
  43. }
  44. }