No Description
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 2.4KB

1234567891011121314151617181920212223242526272829303132333435
  1. Module 全域變數
  2. Public 登入人IP As String : Public AA(99) As String
  3. Public Target As String : Public Target1 As String : Public Target2 As String : Public FTP帳號 As String : Public FTP密碼 As String : Public FTP物理位置 As String
  4. Public 資料庫編號 As Integer = 0
  5. Friend Sub SQL_連線字串_測試()
  6. Dim catalogName As String = "GF" & 資料庫編號.ToString("00") & "-ERP-SYS"
  7. If Strings.Left(登入人IP, 3) = "106" Then
  8. ConString = "Data Source=" & 登入人IP & ";Initial Catalog=" & catalogName & ";Persist Security Info=True;User ID=b70340;Password=Lee0911274990;Max pool size = 200;Connection Timeout=0"
  9. ElseIf Strings.Left(登入人IP, 3) = "180" Then
  10. ConString = "Data Source=" & 登入人IP & ";Initial Catalog=" & catalogName & ";Persist Security Info=True;User ID=b70340;Password=0911274990;Max pool size = 200;Connection Timeout=0"
  11. Else
  12. ConString = "Data Source=" & 登入人IP & ";Initial Catalog=" & catalogName & ";Persist Security Info=True;User ID=b70340;Password=Lee0911274990;Max pool size = 200;Connection Timeout=0"
  13. End If
  14. End Sub
  15. Friend Sub SQL_連線字串_正式()
  16. Dim catalogName As String = "GF" & 資料庫編號.ToString("00") & "-ERP-SYS"
  17. If Strings.Left(登入人IP, 3) = "106" Then
  18. ConString = "Data Source=" & 登入人IP & ";Initial Catalog=" & catalogName & ";Persist Security Info=True;User ID=b70340;Password=Lee0911274990;Max pool size = 200;Connection Timeout=0"
  19. ElseIf Strings.Left(登入人IP, 3) = "180" Then
  20. ConString = "Data Source=" & 登入人IP & ";Initial Catalog=" & catalogName & ";Persist Security Info=True;User ID=b70340;Password=0911274990;Max pool size = 200;Connection Timeout=0"
  21. Else
  22. ConString = "Data Source=" & 登入人IP & ";Initial Catalog=" & catalogName & ";Persist Security Info=True;User ID=b70340;Password=Lee0911274990;Max pool size = 200;Connection Timeout=0"
  23. End If
  24. End Sub
  25. Public 平均數 As Integer : Public 最終數 As Integer = 0 : Public 資料數 As Integer = 0
  26. Public Class Mods
  27. Friend Shared Sub 進度()
  28. 平均數 = 10000 / 資料數
  29. 最終數 += 平均數
  30. If 最終數 > 10000 Then : 最終數 = 10000 : End If
  31. HX_PGS_UPDATE.ProgressBar1.Value = 最終數
  32. End Sub
  33. End Class
  34. End Module