FrmMaterialView.cs 741 B

1234567891011121314151617181920212223242526272829303132333435
  1. using Core.Mes.Client.Comm.Control;
  2. using CoreFS.CA06;
  3. using System;
  4. using System.Data;
  5. namespace Core.StlMes.Client.Qcm
  6. {
  7. public partial class FrmMaterialView : FrmBase
  8. {
  9. public FrmMaterialView()
  10. {
  11. InitializeComponent();
  12. }
  13. private DataTable dt;
  14. public DataTable Dt
  15. {
  16. get { return dt; }
  17. set { dt = value; }
  18. }
  19. private void FrmMaterialView_Load(object sender, EventArgs e)
  20. {
  21. this.MaximizeBox = false;
  22. this.MinimizeBox = false;
  23. LoadData();
  24. }
  25. private void LoadData()
  26. {
  27. GridHelper.CopyDataToDatatable(ref dt, ref dataTable1, true);
  28. }
  29. }
  30. }