FormNewCommand.cs 684 B

1234567891011121314151617181920212223242526
  1. using System;
  2. using DevExpress.XtraEditors;
  3. using UAS_DeviceMonitor.Entity;
  4. namespace UAS_DeviceMonitor.Device.Command
  5. {
  6. public partial class FormNewCommand : XtraForm
  7. {
  8. public FormNewCommand()
  9. {
  10. InitializeComponent();
  11. }
  12. private void FormNewCommand_Load(object sender, EventArgs e)
  13. {
  14. }
  15. private void AddCommand_Click(object sender, EventArgs e)
  16. {
  17. SystemInf.dh.ExecuteSql("insert into devicecommand(dc_id,dc_name,dc_code,dc_command) values (devicecommand_seq.nextval,'','','')", "insert");
  18. XtraMessageBox.Show("指令保存成功");
  19. Close();
  20. }
  21. }
  22. }