B70340 2 年之前
父節點
當前提交
bc5aba7789

二進制
.vs/HX-PGS-UPDATE/FileContentIndex/5e5dda98-ca7e-437f-a7d5-6a0de48e9fd8.vsidx 查看文件


二進制
.vs/HX-PGS-UPDATE/FileContentIndex/75b634e3-d3e8-4164-a5ae-ba8bf9929b5c.vsidx 查看文件


二進制
.vs/HX-PGS-UPDATE/FileContentIndex/e6da34e3-eff1-4af6-876f-c49d25620537.vsidx 查看文件


二進制
.vs/HX-PGS-UPDATE/v17/.suo 查看文件


+ 1
- 1
HX-PGS-UPDATE/HX-PGS-UPDATE.Designer.vb 查看文件

@@ -46,7 +46,7 @@ Partial Class HX_PGS_UPDATE
46 46
         Me.伺服器區域_cb.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
47 47
         Me.伺服器區域_cb.ForeColor = System.Drawing.Color.Blue
48 48
         Me.伺服器區域_cb.FormattingEnabled = True
49
-        Me.伺服器區域_cb.Items.AddRange(New Object() {"台灣開發", "印尼外網", "公司內網"})
49
+        Me.伺服器區域_cb.Items.AddRange(New Object() {"印尼外網", "測試雲端", "公司雲端"})
50 50
         Me.伺服器區域_cb.Location = New System.Drawing.Point(0, 0)
51 51
         Me.伺服器區域_cb.Name = "伺服器區域_cb"
52 52
         Me.伺服器區域_cb.Size = New System.Drawing.Size(102, 24)

+ 13
- 14
HX-PGS-UPDATE/HX-PGS-UPDATE.vb 查看文件

@@ -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单位为毫秒

+ 4
- 0
HX-PGS-UPDATE/HX-PGS-UPDATE.vbproj 查看文件

@@ -50,6 +50,9 @@
50 50
   <PropertyGroup>
51 51
     <ApplicationIcon>favicon-20190809022345261.ico</ApplicationIcon>
52 52
   </PropertyGroup>
53
+  <PropertyGroup>
54
+    <ApplicationManifest>app.manifest</ApplicationManifest>
55
+  </PropertyGroup>
53 56
   <ItemGroup>
54 57
     <Reference Include="System" />
55 58
     <Reference Include="System.Data" />
@@ -114,6 +117,7 @@
114 117
     </EmbeddedResource>
115 118
   </ItemGroup>
116 119
   <ItemGroup>
120
+    <None Include="app.manifest" />
117 121
     <None Include="My Project\Application.myapp">
118 122
       <Generator>MyApplicationCodeGenerator</Generator>
119 123
       <LastGenOutput>Application.Designer.vb</LastGenOutput>

+ 79
- 0
HX-PGS-UPDATE/app.manifest 查看文件

@@ -0,0 +1,79 @@
1
+<?xml version="1.0" encoding="utf-8"?>
2
+<assembly manifestVersion="1.0" xmlns="urn:schemas-microsoft-com:asm.v1">
3
+  <assemblyIdentity version="1.0.0.0" name="MyApplication.app"/>
4
+  <trustInfo xmlns="urn:schemas-microsoft-com:asm.v2">
5
+    <security>
6
+      <requestedPrivileges xmlns="urn:schemas-microsoft-com:asm.v3">
7
+        <!-- UAC 資訊清單選項
8
+             如果要變更 Windows 使用者帳戶控制層級,請將 
9
+             requestedExecutionLevel 節點以下列其中之一取代。
10
+
11
+        <requestedExecutionLevel  level="asInvoker" uiAccess="false" />
12
+        <requestedExecutionLevel  level="requireAdministrator" uiAccess="false" />
13
+        <requestedExecutionLevel  level="highestAvailable" uiAccess="false" />
14
+
15
+            指定 requestedExecutionLevel 項目會停用檔案及登錄虛擬化。
16
+            如果您的應用程式需要針對回溯相容性進行這項虛擬化,請移除這個
17
+            項目。
18
+        -->
19
+        <requestedExecutionLevel level="requireAdministrator" uiAccess="false" />
20
+      </requestedPrivileges>
21
+    </security>
22
+  </trustInfo>
23
+
24
+  <compatibility xmlns="urn:schemas-microsoft-com:compatibility.v1">
25
+    <application>
26
+      <!-- 此應用程式已通過測試,並設計要搭配使用的
27
+           應用程式版本清單。請取消註解適當元素,
28
+           Windows 就會自動選取最相容的環境。 -->
29
+
30
+      <!-- Windows Vista -->
31
+      <!--<supportedOS Id="{e2011457-1546-43c5-a5fe-008deee3d3f0}" />-->
32
+
33
+      <!-- Windows 7 -->
34
+      <!--<supportedOS Id="{35138b9a-5d96-4fbd-8e2d-a2440225f93a}" />-->
35
+
36
+      <!-- Windows 8 -->
37
+      <!--<supportedOS Id="{4a2f28e3-53b9-4441-ba9c-d69d4a4a6e38}" />-->
38
+
39
+      <!-- Windows 8.1 -->
40
+      <!--<supportedOS Id="{1f676c76-80e1-4239-95bb-83d0f6d0da78}" />-->
41
+
42
+      <!-- Windows 10 -->
43
+      <!--<supportedOS Id="{8e0f7a12-bfb3-4fe8-b9a5-48fd50a15a9a}" />-->
44
+
45
+    </application>
46
+  </compatibility>
47
+
48
+  <!-- 表示應用程式為 DPI 感知,Windows 不會在 DPI 變高時自動
49
+       縮放。Windows Presentation Foundation (WPF) 應用程式會自動感知 DPI,因此不需要
50
+       加入。以 .NET Framework 4.6 為目標的 Windows Form 應用程式若加入這項設定,也
51
+       應該在其 app.config 中將 'EnableWindowsFormsHighDpiAutoResizing' 設定為 'true'。
52
+       
53
+       將應用程式設定為感知長路徑。請參閱 https://docs.microsoft.com/windows/win32/fileio/maximum-file-path-limitation-->
54
+  <!--
55
+  <application xmlns="urn:schemas-microsoft-com:asm.v3">
56
+    <windowsSettings>
57
+      <dpiAware xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">true</dpiAware>
58
+      <longPathAware xmlns="http://schemas.microsoft.com/SMI/2016/WindowsSettings">true</longPathAware>
59
+    </windowsSettings>
60
+  </application>
61
+  -->
62
+
63
+  <!-- 啟用 Windows 通用控制項和對話方塊的佈景主題 (Windows XP 以後版本) -->
64
+  <!--
65
+  <dependency>
66
+    <dependentAssembly>
67
+      <assemblyIdentity
68
+          type="win32"
69
+          name="Microsoft.Windows.Common-Controls"
70
+          version="6.0.0.0"
71
+          processorArchitecture="*"
72
+          publicKeyToken="6595b64144ccf1df"
73
+          language="*"
74
+        />
75
+    </dependentAssembly>
76
+  </dependency>
77
+  -->
78
+
79
+</assembly>

二進制
HX-PGS-UPDATE/bin/Debug/HX-PGS-UPDATE.exe 查看文件


二進制
HX-PGS-UPDATE/bin/Debug/HX-PGS-UPDATE.pdb 查看文件


二進制
HX-PGS-UPDATE/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache 查看文件


二進制
HX-PGS-UPDATE/obj/Debug/HX-PGS-UPDATE.exe 查看文件


二進制
HX-PGS-UPDATE/obj/Debug/HX-PGS-UPDATE.pdb 查看文件


二進制
HX-PGS-UPDATE/obj/Debug/HX-PGS-UPDATE.vbproj.GenerateResource.cache 查看文件


Loading…
取消
儲存