123456789101112131415161718192021222324252627282930313233343536373839 |
- using System;
- using System.Data;
- using System.Windows.Forms;
- using UAS_MES_NEW.DataOperate;
- using UAS_MES_NEW.Entity;
- using UAS_MES_NEW.PublicMethod;
- namespace UAS_MES_NEW.SystemSetting
- {
- public partial class SystemSetting_SysNav : Form
- {
- DataHelper dh;
- DataTable dt;
- AutoSizeFormClass asc = new AutoSizeFormClass();
- public SystemSetting_SysNav()
- {
- InitializeComponent();
- }
- private void 导航管理_Load(object sender, EventArgs e)
- {
- dh = SystemInf.dh;
- 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");
- BaseUtil.FillDgvWithDataTable(SysNavDGV, dt);
- asc.controllInitializeSize(this);
- }
- private void Save_Click(object sender, EventArgs e)
- {
- dh.SaveDataTable(((DataTable)SysNavDGV.DataSource).GetChanges(), "cs$sysnavation", "sn_id");
- MessageBox.Show("保存成功!");
- }
- private void 导航管理_SizeChanged(object sender, EventArgs e)
- {
- asc.controlAutoSize(this);
- }
- }
- }
|