|
@@ -18,19 +18,18 @@ Public Class HX_PGS_UPDATE
|
18
|
18
|
End Sub
|
19
|
19
|
Private Sub IP比對()
|
20
|
20
|
'-----------------------IP比對----------------------------------------------------------------------------------------------------------------------------------------------------
|
21
|
|
- For Each myIPEndPoint In IPEndPoint
|
22
|
|
- If Strings.Left(myIPEndPoint.Address.ToString, 8) = "172.1.1." Then
|
23
|
|
- 伺服器區域_cb.Text = "公司內網" : 內網線路 = True
|
24
|
|
- Exit For
|
25
|
|
- End If
|
26
|
|
- Next
|
27
|
|
- If 內網線路 = False And 開發線路 = False Then
|
28
|
|
- 伺服器區域_cb.Text = "印尼外網"
|
29
|
|
- End If
|
|
21
|
+ 'For Each myIPEndPoint In IPEndPoint
|
|
22
|
+ ' If Strings.Left(myIPEndPoint.Address.ToString, 8) = "172.1.1." Then
|
|
23
|
+ ' 伺服器區域_cb.Text = "公司內網" : 內網線路 = True
|
|
24
|
+ ' Exit For
|
|
25
|
+ ' End If
|
|
26
|
+ 'Next
|
|
27
|
+ 'If 內網線路 = False And 開發線路 = False Then : 伺服器區域_cb.Text = "公司雲端" : End If
|
|
28
|
+ 伺服器區域_cb.Text = "公司雲端"
|
30
|
29
|
End Sub
|
31
|
30
|
Private Sub HX_PGS_UPDATE_Load(sender As Object, e As EventArgs) Handles MyBase.Load
|
32
|
31
|
IP比對() : 資料數 = 18
|
33
|
|
- MyModule1.進度條() : If Strings.Left(伺服器區域_cb.Text, 2) = "印尼" Or Strings.Left(伺服器區域_cb.Text, 2) = "公司" Then : SQL_連線字串_正式() : Else : SQL_連線字串_測試() : End If
|
|
32
|
+ MyModule1.進度條() : If Strings.Left(伺服器區域_cb.Text, 2) = "公司" Then : SQL_連線字串_正式() : Else : SQL_連線字串_測試() : End If
|
34
|
33
|
MyModule1.進度條() : SQL_FTP伺服器登入位置()
|
35
|
34
|
MyModule1.進度條() : If dr.Read() Then : Target = dr("FTP地址") : FTP帳號 = dr("FTP帳號") : FTP密碼 = dr("FTP密碼") : FTP物理位置 = dr("FTP物理位置") : End If : conn.Close()
|
36
|
35
|
MyModule1.進度條() : Set_清單1()
|
|
@@ -63,12 +62,12 @@ Public Class HX_PGS_UPDATE
|
63
|
62
|
End Sub
|
64
|
63
|
Private Sub 伺服器區域_cb_SelectedIndexChanged(sender As Object, e As EventArgs) Handles 伺服器區域_cb.SelectedIndexChanged
|
65
|
64
|
'-----------------------確認登入伺服器位置-----------------------------------------------------------------------------------------------------------------------------------------
|
66
|
|
- If 伺服器區域_cb.Text = "印尼外網" Then
|
|
65
|
+ If 伺服器區域_cb.Text = "公司雲端" Then
|
67
|
66
|
登入人IP = "103.231.201.230,2433"
|
68
|
|
- ElseIf 伺服器區域_cb.Text = "公司內網" Then
|
69
|
|
- 登入人IP = "106.1.48.106,4567"
|
70
|
|
- ElseIf 伺服器區域_cb.Text = "台灣開發" Then
|
|
67
|
+ ElseIf 伺服器區域_cb.Text = "測試雲端" Then
|
71
|
68
|
登入人IP = "106.1.48.106,4567"
|
|
69
|
+ ElseIf 伺服器區域_cb.Text = "印尼測試" Then
|
|
70
|
+ 登入人IP = "103.231.201.230,2433"
|
72
|
71
|
End If
|
73
|
72
|
End Sub
|
74
|
73
|
Public Sub Delay(ByRef Interval As Double) 'Interval单位为毫秒
|