SystemSetting_SysNav.cs 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. using System;
  2. using System.Data;
  3. using System.Windows.Forms;
  4. using UAS_MES_NEW.DataOperate;
  5. using UAS_MES_NEW.Entity;
  6. using UAS_MES_NEW.PublicMethod;
  7. namespace UAS_MES_NEW.SystemSetting
  8. {
  9. public partial class SystemSetting_SysNav : Form
  10. {
  11. DataHelper dh;
  12. DataTable dt;
  13. AutoSizeFormClass asc = new AutoSizeFormClass();
  14. public SystemSetting_SysNav()
  15. {
  16. InitializeComponent();
  17. }
  18. private void 导航管理_Load(object sender, EventArgs e)
  19. {
  20. dh = SystemInf.dh;
  21. dt = (DataTable)dh.ExecuteSql("select sn_id,sn_displayname,sn_detno,sn_using,sn_module,sn_defaultprint from cs$sysnavation order by sn_module", "select");
  22. BaseUtil.FillDgvWithDataTable(SysNavDGV, dt);
  23. asc.controllInitializeSize(this);
  24. }
  25. private void Save_Click(object sender, EventArgs e)
  26. {
  27. dh.SaveDataTable(((DataTable)SysNavDGV.DataSource).GetChanges(), "cs$sysnavation", "sn_id");
  28. MessageBox.Show("保存成功!");
  29. }
  30. private void 导航管理_SizeChanged(object sender, EventArgs e)
  31. {
  32. asc.controlAutoSize(this);
  33. }
  34. }
  35. }