SlmOrdDesignMscPlCtrl.cs 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  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.SaleOrder.BLL;
  10. using CoreFS.CA06;
  11. using Core.Mes.Client.Comm.Tool;
  12. namespace Core.StlMes.Client.SaleOrder.Control
  13. {
  14. public partial class SlmOrdDesignMscPlCtrl : UserControl
  15. {
  16. private SlmOrdDesignMscPlBLL _designMscPlBLL;
  17. private SlmOrdDesignMscJgPlBLL _designMscJgPlBLL;
  18. public SlmOrdDesignMscPlCtrl(System.Windows.Forms.Control container, OpeBase ob)
  19. {
  20. InitializeComponent();
  21. _designMscPlBLL = new SlmOrdDesignMscPlBLL(ob);
  22. _designMscJgPlBLL = new SlmOrdDesignMscJgPlBLL(ob);
  23. container.Controls.Add(this);
  24. this.Dock = DockStyle.Fill;
  25. EntityHelper.ShowGridCaption<SlmOrdDesignMscPlEntity>(ultraGrid1.DisplayLayout.Bands[0]);
  26. }
  27. public void Query(SlmOrdDesignMscPlEntity designMscPlEntity)
  28. {
  29. this.slmOrdDesignMscPlEntityBindingSource.DataSource = _designMscPlBLL.Query(designMscPlEntity);
  30. }
  31. public void Query(SlmOrdDesignMscJgPlEntity designMscJgPlEntity)
  32. {
  33. this.slmOrdDesignMscPlEntityBindingSource.DataSource = _designMscJgPlBLL.Query(designMscJgPlEntity);
  34. }
  35. }
  36. }