Açıklama Yok
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

系統通用變數管理.vb 1.6KB

1234567891011121314151617181920212223242526272829303132
  1. Option Strict Off
  2. Imports System.Data.SqlClient
  3. Public Class 系統通用變數管理
  4. Dim GGHH As Integer : Dim FFGG As Integer
  5. Private Sub 系統通用變數管理_Load(sender As Object, e As EventArgs) Handles MyBase.Load
  6. Me.MdiParent = GCM_ERP_SYS : Me.WindowState = 2 : Me.AutoScroll = True
  7. ConnOpen()
  8. SQL1 = "SELECT timeExit, timeExit2 FROM 系統閒置時間設定"
  9. CmdSet_For_dr()
  10. If dr.Read() Then : TextBox2.Text = dr("timeExit") : TextBox1.Text = dr("timeExit2") : End If : conn.Close()
  11. GGHH = Val(TextBox2.Text) : FFGG = Val(TextBox1.Text)
  12. TextBox3.Text = 密碼時限
  13. End Sub
  14. Private Sub 登入閒置控制_MouseMove(sender As Object, e As EventArgs) Handles MyBase.MouseMove
  15. timeNow = 0
  16. GCM_ERP_SYS.Timer1.Enabled = False
  17. GCM_ERP_SYS.Timer1.Enabled = True
  18. End Sub
  19. Private Sub 登入閒置控制_KeyPress(sender As Object, e As EventArgs) Handles MyBase.KeyPress
  20. timeNow = 0
  21. GCM_ERP_SYS.Timer1.Enabled = False
  22. GCM_ERP_SYS.Timer1.Enabled = True
  23. End Sub
  24. Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
  25. ConnOpen()
  26. SQL1 = "UPDATE 系統閒置時間設定 SET timeExit = N'" & TextBox2.Text & "', timeExit2 = N'" & TextBox1.Text & "' WHERE (timeExit = N'" & GGHH & "' AND timeExit2 = N'" & FFGG & "')"
  27. CmdSet_For_dr()
  28. conn.Close()
  29. GGHH = Val(TextBox2.Text) : FFGG = Val(TextBox1.Text) : timeExit = GGHH : timeExit2 = FFGG
  30. MsgBox("修改完畢")
  31. End Sub
  32. End Class