ControlOrderJgxM.cs 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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.StlMes.Client.PlnSaleOrd.entity;
  10. using Core.Mes.Client.Comm.Tool;
  11. using Core.StlMes.Client.PlnSaleOrd.BaseMethod;
  12. using System.Collections;
  13. using CoreFS.CA06;
  14. using Infragistics.Win.UltraWinGrid;
  15. namespace Core.StlMes.Client.PlnSaleOrd.工序订单.Control
  16. {
  17. public partial class ControlOrderJgxM : UserControl
  18. {
  19. public ControlOrderJgxM()
  20. {
  21. this.Dock = DockStyle.Fill;
  22. InitializeComponent();
  23. }
  24. private void ControlOrderJgxM_Load(object sender, EventArgs e)
  25. {
  26. EntityHelper.ShowGridCaption<PlnGxJgxMEntity>(ultraGridJgx.DisplayLayout.Bands[0]);
  27. EntityHelper.ShowGridCaption<PlnOrderJgxEntity>(ultraGridJgx.DisplayLayout.Bands[1]);
  28. BaseHelper.setOtherColumnReadOnly(ultraGridJgx, new string[] { "CHC" });
  29. }
  30. public void Query(ArrayList param, OpeBase ob)
  31. {
  32. OrderHelper.QueryJgxM(param, plnGxJgxMOEntityBindingSource, ob);
  33. }
  34. public void QueryOrderM(string orderNo,string proPlanId,string yearTime,OpeBase ob)
  35. {
  36. List<PlnGxJgxMOEntity> listSourceM = EntityHelper.GetData<PlnGxJgxMOEntity>
  37. ("com.steering.pss.plnsaleord.orderInfo.OrderHelper.queryJgxOrderM", new object[] { orderNo, proPlanId, yearTime }, ob);
  38. List<PlnOrderJgxEntity> listSourceC = EntityHelper.GetData<PlnOrderJgxEntity>
  39. ("com.steering.pss.plnsaleord.orderInfo.OrderHelper.queryJgxOrderC", new object[] { orderNo, proPlanId }, ob);
  40. EntityHelper.AddEntityRelation<PlnGxJgxMOEntity, PlnOrderJgxEntity>(listSourceM, listSourceC, "ProPlanId", "ProPlanId");
  41. plnGxJgxMOEntityBindingSource.DataSource = listSourceM;
  42. }
  43. public UltraGridRow getActiveRow()
  44. {
  45. return ultraGridJgx.ActiveRow;
  46. }
  47. public void clearDataSourse()
  48. {
  49. plnGxJgxMOEntityBindingSource.Clear();
  50. }
  51. }
  52. }