B70340 1 year ago
parent
commit
9b2a5cd20a
28 changed files with 136 additions and 94 deletions
  1. BIN
      .vs/SYS-UPDATE/FileContentIndex/66206304-3a68-4357-9c01-da71bcab415e.vsidx
  2. 0
    0
      .vs/SYS-UPDATE/FileContentIndex/read.lock
  3. BIN
      .vs/SYS-UPDATE/v16/.suo
  4. BIN
      .vs/SYS-UPDATE/v17/.suo
  5. 3
    3
      SYS-UPDATE/App.config
  6. 25
    24
      SYS-UPDATE/My Project/Resources.Designer.vb
  7. 36
    36
      SYS-UPDATE/My Project/Settings.Designer.vb
  8. 7
    0
      SYS-UPDATE/SYS-UPDATE.Designer.vb
  9. 3
    0
      SYS-UPDATE/SYS-UPDATE.resx
  10. 39
    17
      SYS-UPDATE/SYS-UPDATE.vb
  11. 2
    1
      SYS-UPDATE/SYS-UPDATE.vbproj
  12. BIN
      SYS-UPDATE/bin/Debug/SYS-UPDATE.exe
  13. 3
    3
      SYS-UPDATE/bin/Debug/SYS-UPDATE.exe.config
  14. BIN
      SYS-UPDATE/bin/Debug/SYS-UPDATE.pdb
  15. 4
    4
      SYS-UPDATE/bin/Debug/SYS-UPDATE.xml
  16. 7
    0
      SYS-UPDATE/obj/Debug/.NETFramework,Version=v4.8.AssemblyAttributes.vb
  17. BIN
      SYS-UPDATE/obj/Debug/DesignTimeResolveAssemblyReferences.cache
  18. BIN
      SYS-UPDATE/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache
  19. BIN
      SYS-UPDATE/obj/Debug/SYS-UPDATE.exe
  20. BIN
      SYS-UPDATE/obj/Debug/SYS-UPDATE.pdb
  21. BIN
      SYS-UPDATE/obj/Debug/SYS-UPDATE.vbproj.AssemblyReference.cache
  22. 1
    1
      SYS-UPDATE/obj/Debug/SYS-UPDATE.vbproj.CoreCompileInputs.cache
  23. 2
    1
      SYS-UPDATE/obj/Debug/SYS-UPDATE.vbproj.FileListAbsolute.txt
  24. BIN
      SYS-UPDATE/obj/Debug/SYS-UPDATE.vbproj.GenerateResource.cache
  25. 0
    0
      SYS-UPDATE/obj/Debug/SYS-UPDATE.vbproj.SuggestedBindingRedirects.cache
  26. BIN
      SYS-UPDATE/obj/Debug/SYS-UPDATE.vbprojAssemblyReference.cache
  27. 4
    4
      SYS-UPDATE/obj/Debug/SYS-UPDATE.xml
  28. BIN
      SYS-UPDATE/obj/Debug/TempPE/My Project.Resources.Designer.vb.dll

BIN
.vs/SYS-UPDATE/FileContentIndex/66206304-3a68-4357-9c01-da71bcab415e.vsidx View File


+ 0
- 0
.vs/SYS-UPDATE/FileContentIndex/read.lock View File


BIN
.vs/SYS-UPDATE/v16/.suo View File


BIN
.vs/SYS-UPDATE/v17/.suo View File


+ 3
- 3
SYS-UPDATE/App.config View File

1
-<?xml version="1.0" encoding="utf-8" ?>
1
+<?xml version="1.0" encoding="utf-8"?>
2
 <configuration>
2
 <configuration>
3
     <startup>
3
     <startup>
4
-        <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" />
4
+        <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8"/>
5
     </startup>
5
     </startup>
6
-</configuration>
6
+</configuration>

+ 25
- 24
SYS-UPDATE/My Project/Resources.Designer.vb View File

1
 '------------------------------------------------------------------------------
1
 '------------------------------------------------------------------------------
2
 ' <auto-generated>
2
 ' <auto-generated>
3
-'     This code was generated by a tool.
4
-'     Runtime Version:4.0.30319.42000
3
+'     這段程式碼是由工具產生的。
4
+'     執行階段版本:4.0.30319.42000
5
 '
5
 '
6
-'     Changes to this file may cause incorrect behavior and will be lost if
7
-'     the code is regenerated.
6
+'     對這個檔案所做的變更可能會造成錯誤的行為,而且如果重新產生程式碼,
7
+'     變更將會遺失。
8
 ' </auto-generated>
8
 ' </auto-generated>
9
 '------------------------------------------------------------------------------
9
 '------------------------------------------------------------------------------
10
 
10
 
11
 Option Strict On
11
 Option Strict On
12
 Option Explicit On
12
 Option Explicit On
13
 
13
 
14
+Imports System
14
 
15
 
15
 Namespace My.Resources
16
 Namespace My.Resources
16
-
17
-    'This class was auto-generated by the StronglyTypedResourceBuilder
18
-    'class via a tool like ResGen or Visual Studio.
19
-    'To add or remove a member, edit your .ResX file then rerun ResGen
20
-    'with the /str option, or rebuild your VS project.
17
+    
18
+    '這個類別是自動產生的,是利用 StronglyTypedResourceBuilder
19
+    '類別透過 ResGen 或 Visual Studio 這類工具。
20
+    '若要加入或移除成員,請編輯您的 .ResX 檔,然後重新執行 ResGen
21
+    '(利用 /str 選項),或重建您的 VS 專案。
21
     '''<summary>
22
     '''<summary>
22
-    '''  A strongly-typed resource class, for looking up localized strings, etc.
23
+    '''  用於查詢當地語系化字串等的強類型資源類別。
23
     '''</summary>
24
     '''</summary>
24
-    <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0"), _
25
-     Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
26
-     Global.System.Runtime.CompilerServices.CompilerGeneratedAttribute(), _
27
-     Global.Microsoft.VisualBasic.HideModuleNameAttribute()> _
25
+    <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "17.0.0.0"),  _
26
+     Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
27
+     Global.System.Runtime.CompilerServices.CompilerGeneratedAttribute(),  _
28
+     Global.Microsoft.VisualBasic.HideModuleNameAttribute()>  _
28
     Friend Module Resources
29
     Friend Module Resources
29
-
30
+        
30
         Private resourceMan As Global.System.Resources.ResourceManager
31
         Private resourceMan As Global.System.Resources.ResourceManager
31
-
32
+        
32
         Private resourceCulture As Global.System.Globalization.CultureInfo
33
         Private resourceCulture As Global.System.Globalization.CultureInfo
33
-
34
+        
34
         '''<summary>
35
         '''<summary>
35
-        '''  Returns the cached ResourceManager instance used by this class.
36
+        '''  傳回這個類別使用的快取的 ResourceManager 執行個體。
36
         '''</summary>
37
         '''</summary>
37
-        <Global.System.ComponentModel.EditorBrowsableAttribute(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
38
+        <Global.System.ComponentModel.EditorBrowsableAttribute(Global.System.ComponentModel.EditorBrowsableState.Advanced)>  _
38
         Friend ReadOnly Property ResourceManager() As Global.System.Resources.ResourceManager
39
         Friend ReadOnly Property ResourceManager() As Global.System.Resources.ResourceManager
39
             Get
40
             Get
40
                 If Object.ReferenceEquals(resourceMan, Nothing) Then
41
                 If Object.ReferenceEquals(resourceMan, Nothing) Then
44
                 Return resourceMan
45
                 Return resourceMan
45
             End Get
46
             End Get
46
         End Property
47
         End Property
47
-
48
+        
48
         '''<summary>
49
         '''<summary>
49
-        '''  Overrides the current thread's CurrentUICulture property for all
50
-        '''  resource lookups using this strongly typed resource class.
50
+        '''  覆寫目前執行緒的 CurrentUICulture 屬性,對象是所有
51
+        '''  使用這個強類型資源類別的資源查閱。
51
         '''</summary>
52
         '''</summary>
52
-        <Global.System.ComponentModel.EditorBrowsableAttribute(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
53
+        <Global.System.ComponentModel.EditorBrowsableAttribute(Global.System.ComponentModel.EditorBrowsableState.Advanced)>  _
53
         Friend Property Culture() As Global.System.Globalization.CultureInfo
54
         Friend Property Culture() As Global.System.Globalization.CultureInfo
54
             Get
55
             Get
55
                 Return resourceCulture
56
                 Return resourceCulture
56
             End Get
57
             End Get
57
-            Set(ByVal value As Global.System.Globalization.CultureInfo)
58
+            Set
58
                 resourceCulture = value
59
                 resourceCulture = value
59
             End Set
60
             End Set
60
         End Property
61
         End Property

+ 36
- 36
SYS-UPDATE/My Project/Settings.Designer.vb View File

1
 '------------------------------------------------------------------------------
1
 '------------------------------------------------------------------------------
2
 ' <auto-generated>
2
 ' <auto-generated>
3
-'     This code was generated by a tool.
4
-'     Runtime Version:4.0.30319.42000
3
+'     這段程式碼是由工具產生的。
4
+'     執行階段版本:4.0.30319.42000
5
 '
5
 '
6
-'     Changes to this file may cause incorrect behavior and will be lost if
7
-'     the code is regenerated.
6
+'     對這個檔案所做的變更可能會造成錯誤的行為,而且如果重新產生程式碼,
7
+'     變更將會遺失。
8
 ' </auto-generated>
8
 ' </auto-generated>
9
 '------------------------------------------------------------------------------
9
 '------------------------------------------------------------------------------
10
 
10
 
13
 
13
 
14
 
14
 
15
 Namespace My
15
 Namespace My
16
-
17
-    <Global.System.Runtime.CompilerServices.CompilerGeneratedAttribute(), _
18
-     Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.0.0.0"), _
19
-     Global.System.ComponentModel.EditorBrowsableAttribute(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
16
+    
17
+    <Global.System.Runtime.CompilerServices.CompilerGeneratedAttribute(),  _
18
+     Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "17.2.0.0"),  _
19
+     Global.System.ComponentModel.EditorBrowsableAttribute(Global.System.ComponentModel.EditorBrowsableState.Advanced)>  _
20
     Partial Friend NotInheritable Class MySettings
20
     Partial Friend NotInheritable Class MySettings
21
         Inherits Global.System.Configuration.ApplicationSettingsBase
21
         Inherits Global.System.Configuration.ApplicationSettingsBase
22
-
23
-        Private Shared defaultInstance As MySettings = CType(Global.System.Configuration.ApplicationSettingsBase.Synchronized(New MySettings), MySettings)
24
-
25
-#Region "My.Settings Auto-Save Functionality"
22
+        
23
+        Private Shared defaultInstance As MySettings = CType(Global.System.Configuration.ApplicationSettingsBase.Synchronized(New MySettings()),MySettings)
24
+        
25
+#Region "My.Settings 自動儲存功能"
26
 #If _MyType = "WindowsForms" Then
26
 #If _MyType = "WindowsForms" Then
27
-        Private Shared addedHandler As Boolean
27
+    Private Shared addedHandler As Boolean
28
 
28
 
29
-        Private Shared addedHandlerLockObject As New Object
29
+    Private Shared addedHandlerLockObject As New Object
30
 
30
 
31
-        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), Global.System.ComponentModel.EditorBrowsableAttribute(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
32
-        Private Shared Sub AutoSaveSettings(ByVal sender As Global.System.Object, ByVal e As Global.System.EventArgs)
33
-            If My.Application.SaveMySettingsOnExit Then
34
-                My.Settings.Save()
35
-            End If
36
-        End Sub
31
+    <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), Global.System.ComponentModel.EditorBrowsableAttribute(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
32
+    Private Shared Sub AutoSaveSettings(sender As Global.System.Object, e As Global.System.EventArgs)
33
+        If My.Application.SaveMySettingsOnExit Then
34
+            My.Settings.Save()
35
+        End If
36
+    End Sub
37
 #End If
37
 #End If
38
 #End Region
38
 #End Region
39
-
39
+        
40
         Public Shared ReadOnly Property [Default]() As MySettings
40
         Public Shared ReadOnly Property [Default]() As MySettings
41
             Get
41
             Get
42
-
42
+                
43
 #If _MyType = "WindowsForms" Then
43
 #If _MyType = "WindowsForms" Then
44
-                   If Not addedHandler Then
45
-                        SyncLock addedHandlerLockObject
46
-                            If Not addedHandler Then
47
-                                AddHandler My.Application.Shutdown, AddressOf AutoSaveSettings
48
-                                addedHandler = True
49
-                            End If
50
-                        End SyncLock
51
-                    End If
44
+               If Not addedHandler Then
45
+                    SyncLock addedHandlerLockObject
46
+                        If Not addedHandler Then
47
+                            AddHandler My.Application.Shutdown, AddressOf AutoSaveSettings
48
+                            addedHandler = True
49
+                        End If
50
+                    End SyncLock
51
+                End If
52
 #End If
52
 #End If
53
                 Return defaultInstance
53
                 Return defaultInstance
54
             End Get
54
             End Get
57
 End Namespace
57
 End Namespace
58
 
58
 
59
 Namespace My
59
 Namespace My
60
-
61
-    <Global.Microsoft.VisualBasic.HideModuleNameAttribute(), _
62
-     Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
63
-     Global.System.Runtime.CompilerServices.CompilerGeneratedAttribute()> _
60
+    
61
+    <Global.Microsoft.VisualBasic.HideModuleNameAttribute(),  _
62
+     Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
63
+     Global.System.Runtime.CompilerServices.CompilerGeneratedAttribute()>  _
64
     Friend Module MySettingsProperty
64
     Friend Module MySettingsProperty
65
-
66
-        <Global.System.ComponentModel.Design.HelpKeywordAttribute("My.Settings")> _
65
+        
66
+        <Global.System.ComponentModel.Design.HelpKeywordAttribute("My.Settings")>  _
67
         Friend ReadOnly Property Settings() As Global.SYS_UPDATE.My.MySettings
67
         Friend ReadOnly Property Settings() As Global.SYS_UPDATE.My.MySettings
68
             Get
68
             Get
69
                 Return Global.SYS_UPDATE.My.MySettings.Default
69
                 Return Global.SYS_UPDATE.My.MySettings.Default

+ 7
- 0
SYS-UPDATE/SYS-UPDATE.Designer.vb View File

22
     '請勿使用程式碼編輯器進行修改。
22
     '請勿使用程式碼編輯器進行修改。
23
     <System.Diagnostics.DebuggerStepThrough()> _
23
     <System.Diagnostics.DebuggerStepThrough()> _
24
     Private Sub InitializeComponent()
24
     Private Sub InitializeComponent()
25
+        Me.components = New System.ComponentModel.Container()
25
         Dim DataGridViewCellStyle1 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
26
         Dim DataGridViewCellStyle1 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
26
         Dim resources As System.ComponentModel.ComponentResourceManager = New System.ComponentModel.ComponentResourceManager(GetType(SYS_UPDATE))
27
         Dim resources As System.ComponentModel.ComponentResourceManager = New System.ComponentModel.ComponentResourceManager(GetType(SYS_UPDATE))
27
         Me.伺服器區域_cb = New System.Windows.Forms.ComboBox()
28
         Me.伺服器區域_cb = New System.Windows.Forms.ComboBox()
28
         Me.FDT_dgv = New System.Windows.Forms.DataGridView()
29
         Me.FDT_dgv = New System.Windows.Forms.DataGridView()
29
         Me.ProgressBar1 = New System.Windows.Forms.ProgressBar()
30
         Me.ProgressBar1 = New System.Windows.Forms.ProgressBar()
31
+        Me.主程式更新 = New System.Windows.Forms.Timer(Me.components)
30
         CType(Me.FDT_dgv, System.ComponentModel.ISupportInitialize).BeginInit()
32
         CType(Me.FDT_dgv, System.ComponentModel.ISupportInitialize).BeginInit()
31
         Me.SuspendLayout()
33
         Me.SuspendLayout()
32
         '
34
         '
62
         Me.ProgressBar1.Size = New System.Drawing.Size(296, 23)
64
         Me.ProgressBar1.Size = New System.Drawing.Size(296, 23)
63
         Me.ProgressBar1.TabIndex = 636
65
         Me.ProgressBar1.TabIndex = 636
64
         '
66
         '
67
+        '主程式更新
68
+        '
69
+        Me.主程式更新.Interval = 300
70
+        '
65
         'SYS_UPDATE
71
         'SYS_UPDATE
66
         '
72
         '
67
         Me.AutoScaleDimensions = New System.Drawing.SizeF(7.0!, 16.0!)
73
         Me.AutoScaleDimensions = New System.Drawing.SizeF(7.0!, 16.0!)
87
     Friend WithEvents 伺服器區域_cb As ComboBox
93
     Friend WithEvents 伺服器區域_cb As ComboBox
88
     Friend WithEvents FDT_dgv As DataGridView
94
     Friend WithEvents FDT_dgv As DataGridView
89
     Friend WithEvents ProgressBar1 As ProgressBar
95
     Friend WithEvents ProgressBar1 As ProgressBar
96
+    Friend WithEvents 主程式更新 As Timer
90
 End Class
97
 End Class

+ 3
- 0
SYS-UPDATE/SYS-UPDATE.resx View File

117
   <resheader name="writer">
117
   <resheader name="writer">
118
     <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
118
     <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
119
   </resheader>
119
   </resheader>
120
+  <metadata name="主程式更新.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
121
+    <value>17, 17</value>
122
+  </metadata>
120
   <assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
123
   <assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
121
   <data name="$this.Icon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
124
   <data name="$this.Icon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
122
     <value>
125
     <value>

+ 39
- 17
SYS-UPDATE/SYS-UPDATE.vb View File

1
 Imports System.IO
1
 Imports System.IO
2
 Public Class SYS_UPDATE
2
 Public Class SYS_UPDATE
3
     ReadOnly ds2 As New DataSet
3
     ReadOnly ds2 As New DataSet
4
+    Dim Str As String = Application.StartupPath
5
+    Dim Strs As String = Application.StartupPath
4
     Private Sub Set_清單1()
6
     Private Sub Set_清單1()
5
         FDT_dgv.DataSource = Nothing : ds2.Clear()
7
         FDT_dgv.DataSource = Nothing : ds2.Clear()
6
         FDT_dgv.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
8
         FDT_dgv.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
13
         Dim Strs As String = Application.StartupPath : 資料數 = 17
15
         Dim Strs As String = Application.StartupPath : 資料數 = 17
14
         If File.Exists(Strs + "\LIVE.txt") Then
16
         If File.Exists(Strs + "\LIVE.txt") Then
15
             MyModule1.進度條() : Dim fileReader As String : fileReader = My.Computer.FileSystem.ReadAllText(Strs + "\LIVE.txt")
17
             MyModule1.進度條() : Dim fileReader As String : fileReader = My.Computer.FileSystem.ReadAllText(Strs + "\LIVE.txt")
16
-            MyModule1.進度條() : If fileReader = "A" Then : 伺服器區域_cb.Text = "巨益線路" : Else : 伺服器區域_cb.Text = "開發線路" : End If
18
+            MyModule1.進度條() : If Strings.Left(fileReader, 1) = "A" Then : 伺服器區域_cb.Text = "巨益線路" : Else : 伺服器區域_cb.Text = "開發線路" : End If
17
             '-----------------------確認登入伺服器位置-----------------------------------------------------------------------------------------------------------------------------------------
19
             '-----------------------確認登入伺服器位置-----------------------------------------------------------------------------------------------------------------------------------------
18
-            MyModule1.進度條() : If 伺服器區域_cb.Text = "巨益線路" Then : 登入人IP = "192.168.10.5" : ElseIf 伺服器區域_cb.Text = "開發線路" Then : 登入人IP = "106.1.50.79" : End If
20
+            MyModule1.進度條() : If 伺服器區域_cb.Text = "巨益線路" Then : 登入人IP = "192.168.10.5" : ElseIf 伺服器區域_cb.Text = "開發線路" Then : 登入人IP = "106.1.48.106,4567" : End If
19
             MyModule1.進度條() : SQL_連線字串_ERP()
21
             MyModule1.進度條() : SQL_連線字串_ERP()
20
             '-----------------------系統版本號寫入-----------------------------------------------------------------------------------------------------------------------------------------------
22
             '-----------------------系統版本號寫入-----------------------------------------------------------------------------------------------------------------------------------------------
21
             MyModule1.進度條() : SQL_版本號()
23
             MyModule1.進度條() : SQL_版本號()
31
             Next
33
             Next
32
             MyModule1.進度條() : Target1 = Target & AA(0) & "/"
34
             MyModule1.進度條() : Target1 = Target & AA(0) & "/"
33
         Else
35
         Else
34
-            Delay(30000)
35
             MsgBox("沒有連線指定!!!") : Me.Close()
36
             MsgBox("沒有連線指定!!!") : Me.Close()
36
         End If
37
         End If
37
     End Sub
38
     End Sub
38
     Private Sub SYS_UPDATE_Shown(sender As Object, e As EventArgs) Handles MyBase.Shown
39
     Private Sub SYS_UPDATE_Shown(sender As Object, e As EventArgs) Handles MyBase.Shown
39
-        MyModule1.進度條() : Delay(30000)
40
-        MyModule1.進度條() : Dim Str As String = Application.StartupPath
41
-        MyModule1.進度條() : If File.Exists(Str + "\WINPROFIT-ERP-SYS - 2021083002.exe") Then : File.Delete(Str + "\WINPROFIT-ERP-SYS - 2021083002.exe") : End If
42
-        MyModule1.進度條() : If File.Exists(Str + "\WINPROFIT-ERP-SYS - 2021093001.exe") Then : File.Delete(Str + "\WINPROFIT-ERP-SYS - 2021093001.exe") : End If
43
-        MyModule1.進度條() : If File.Exists(Str + "\WINPROFIT-ERP-SYS.exe") Then : File.Delete(Str + "\WINPROFIT-ERP-SYS.exe") : End If
44
-        MyModule1.進度條() : My.Computer.Network.DownloadFile(Target & AA(0) & "/" & "WINPROFIT-ERP-SYS.exe", Str + "\WINPROFIT-ERP-SYS.exe")
45
-        MyModule1.進度條() : Shell(Str + "\WINPROFIT-ERP-SYS.exe", vbNormalFocus)
46
-        Me.Close()
40
+        MyModule1.進度條() : MyModule1.進度條()
41
+        主程式更新.Enabled = True
47
     End Sub
42
     End Sub
48
-    Public Sub Delay(ByRef Interval As Double)  'Interval单位为毫秒
49
-        Dim time As DateTime = DateTime.Now
50
-        Dim Span As Double = Interval * 1234
51
-        While ((DateTime.Now.Ticks - time.Ticks) < Span)
52
-            Application.DoEvents()
53
-        End While
43
+    Private Sub 主程式更新_Tick(sender As Object, e As EventArgs) Handles 主程式更新.Tick
44
+        Dim 已開啟 As Boolean = False
45
+        If File.Exists(My.Computer.FileSystem.SpecialDirectories.Desktop & "\WINPROFIT-ERP-SYS.exe") Then
46
+            Dim pro() As Process = System.Diagnostics.Process.GetProcesses()
47
+            ' 判斷是否有符合的Process
48
+            For Each process As Process In pro
49
+                If ("WINPROFIT-ERP-SYS").Equals(process.ProcessName) Then
50
+                    已開啟 = True
51
+                End If
52
+            Next
53
+            If 已開啟 = False Then
54
+                主程式更新.Enabled = False
55
+                MyModule1.進度條() : If File.Exists(Str + "\WINPROFIT-ERP-SYS.exe") Then : File.Delete(Str + "\WINPROFIT-ERP-SYS.exe") : End If
56
+                My.Computer.Network.DownloadFile(Target & AA(0) & "/" & "WINPROFIT-ERP-SYS.exe", Str + "\WINPROFIT-ERP-SYS.exe")
57
+                MyModule1.進度條() : Shell(Str + "\WINPROFIT-ERP-SYS.exe", vbNormalFocus)
58
+                Me.Close()
59
+            End If
60
+        ElseIf File.Exists(Strs & "\WINPROFIT-ERP-SYS.exe") Then
61
+            Dim pro() As Process = System.Diagnostics.Process.GetProcesses()
62
+            ' 判斷是否有符合的Process
63
+            For Each process As Process In pro
64
+                If ("WINPROFIT-ERP-SYS").Equals(process.ProcessName) Then
65
+                    已開啟 = True
66
+                End If
67
+            Next
68
+            If 已開啟 = False Then
69
+                主程式更新.Enabled = False
70
+                MyModule1.進度條() : If File.Exists(Str + "\WINPROFIT-ERP-SYS.exe") Then : File.Delete(Str + "\WINPROFIT-ERP-SYS.exe") : End If
71
+                My.Computer.Network.DownloadFile(Target & AA(0) & "/" & "WINPROFIT-ERP-SYS.exe", Str + "\WINPROFIT-ERP-SYS.exe")
72
+                MyModule1.進度條() : Shell(Str + "\WINPROFIT-ERP-SYS.exe", vbNormalFocus)
73
+                Me.Close()
74
+            End If
75
+        End If
54
     End Sub
76
     End Sub
55
 End Class
77
 End Class

+ 2
- 1
SYS-UPDATE/SYS-UPDATE.vbproj View File

11
     <AssemblyName>SYS-UPDATE</AssemblyName>
11
     <AssemblyName>SYS-UPDATE</AssemblyName>
12
     <FileAlignment>512</FileAlignment>
12
     <FileAlignment>512</FileAlignment>
13
     <MyType>WindowsForms</MyType>
13
     <MyType>WindowsForms</MyType>
14
-    <TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
14
+    <TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
15
     <Deterministic>true</Deterministic>
15
     <Deterministic>true</Deterministic>
16
+    <TargetFrameworkProfile />
16
   </PropertyGroup>
17
   </PropertyGroup>
17
   <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
18
   <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
18
     <PlatformTarget>AnyCPU</PlatformTarget>
19
     <PlatformTarget>AnyCPU</PlatformTarget>

BIN
SYS-UPDATE/bin/Debug/SYS-UPDATE.exe View File


+ 3
- 3
SYS-UPDATE/bin/Debug/SYS-UPDATE.exe.config View File

1
-<?xml version="1.0" encoding="utf-8" ?>
1
+<?xml version="1.0" encoding="utf-8"?>
2
 <configuration>
2
 <configuration>
3
     <startup>
3
     <startup>
4
-        <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" />
4
+        <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8"/>
5
     </startup>
5
     </startup>
6
-</configuration>
6
+</configuration>

BIN
SYS-UPDATE/bin/Debug/SYS-UPDATE.pdb View File


+ 4
- 4
SYS-UPDATE/bin/Debug/SYS-UPDATE.xml View File

8
 <members>
8
 <members>
9
 <member name="T:SYS_UPDATE.My.Resources.Resources">
9
 <member name="T:SYS_UPDATE.My.Resources.Resources">
10
 <summary>
10
 <summary>
11
-  A strongly-typed resource class, for looking up localized strings, etc.
11
+  用於查詢當地語系化字串等的強類型資源類別。
12
 </summary>
12
 </summary>
13
 </member>
13
 </member>
14
 <member name="P:SYS_UPDATE.My.Resources.Resources.ResourceManager">
14
 <member name="P:SYS_UPDATE.My.Resources.Resources.ResourceManager">
15
 <summary>
15
 <summary>
16
-  Returns the cached ResourceManager instance used by this class.
16
+  傳回這個類別使用的快取的 ResourceManager 執行個體。
17
 </summary>
17
 </summary>
18
 </member>
18
 </member>
19
 <member name="P:SYS_UPDATE.My.Resources.Resources.Culture">
19
 <member name="P:SYS_UPDATE.My.Resources.Resources.Culture">
20
 <summary>
20
 <summary>
21
-  Overrides the current thread's CurrentUICulture property for all
22
-  resource lookups using this strongly typed resource class.
21
+  覆寫目前執行緒的 CurrentUICulture 屬性,對象是所有
22
+  使用這個強類型資源類別的資源查閱。
23
 </summary>
23
 </summary>
24
 </member>
24
 </member>
25
 </members>
25
 </members>

+ 7
- 0
SYS-UPDATE/obj/Debug/.NETFramework,Version=v4.8.AssemblyAttributes.vb View File

1
+' <autogenerated/>
2
+            Option Strict Off
3
+            Option Explicit On
4
+
5
+            Imports System
6
+            Imports System.Reflection
7
+            <Assembly: Global.System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.8", FrameworkDisplayName:=".NET Framework 4.8")>

BIN
SYS-UPDATE/obj/Debug/DesignTimeResolveAssemblyReferences.cache View File


BIN
SYS-UPDATE/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache View File


BIN
SYS-UPDATE/obj/Debug/SYS-UPDATE.exe View File


BIN
SYS-UPDATE/obj/Debug/SYS-UPDATE.pdb View File


BIN
SYS-UPDATE/obj/Debug/SYS-UPDATE.vbproj.AssemblyReference.cache View File


+ 1
- 1
SYS-UPDATE/obj/Debug/SYS-UPDATE.vbproj.CoreCompileInputs.cache View File

1
-04af96f1783334a1d4800be8ce0d19988d8815ee
1
+f7bf0ccb484b8b6b002ac292c9038830c025f75f

+ 2
- 1
SYS-UPDATE/obj/Debug/SYS-UPDATE.vbproj.FileListAbsolute.txt View File

26
 D:\工巧明\WINPROFIT\SYS-UPDATE\SYS-UPDATE\bin\Debug\SYS-UPDATE.exe
26
 D:\工巧明\WINPROFIT\SYS-UPDATE\SYS-UPDATE\bin\Debug\SYS-UPDATE.exe
27
 D:\工巧明\WINPROFIT\SYS-UPDATE\SYS-UPDATE\bin\Debug\SYS-UPDATE.pdb
27
 D:\工巧明\WINPROFIT\SYS-UPDATE\SYS-UPDATE\bin\Debug\SYS-UPDATE.pdb
28
 D:\工巧明\WINPROFIT\SYS-UPDATE\SYS-UPDATE\bin\Debug\SYS-UPDATE.xml
28
 D:\工巧明\WINPROFIT\SYS-UPDATE\SYS-UPDATE\bin\Debug\SYS-UPDATE.xml
29
-D:\工巧明\WINPROFIT\SYS-UPDATE\SYS-UPDATE\obj\Debug\SYS-UPDATE.vbprojAssemblyReference.cache
30
 D:\工巧明\WINPROFIT\SYS-UPDATE\SYS-UPDATE\obj\Debug\SYS_UPDATE.SYS_UPDATE.resources
29
 D:\工巧明\WINPROFIT\SYS-UPDATE\SYS-UPDATE\obj\Debug\SYS_UPDATE.SYS_UPDATE.resources
31
 D:\工巧明\WINPROFIT\SYS-UPDATE\SYS-UPDATE\obj\Debug\SYS_UPDATE.Resources.resources
30
 D:\工巧明\WINPROFIT\SYS-UPDATE\SYS-UPDATE\obj\Debug\SYS_UPDATE.Resources.resources
32
 D:\工巧明\WINPROFIT\SYS-UPDATE\SYS-UPDATE\obj\Debug\SYS-UPDATE.vbproj.GenerateResource.cache
31
 D:\工巧明\WINPROFIT\SYS-UPDATE\SYS-UPDATE\obj\Debug\SYS-UPDATE.vbproj.GenerateResource.cache
34
 D:\工巧明\WINPROFIT\SYS-UPDATE\SYS-UPDATE\obj\Debug\SYS-UPDATE.exe
33
 D:\工巧明\WINPROFIT\SYS-UPDATE\SYS-UPDATE\obj\Debug\SYS-UPDATE.exe
35
 D:\工巧明\WINPROFIT\SYS-UPDATE\SYS-UPDATE\obj\Debug\SYS-UPDATE.xml
34
 D:\工巧明\WINPROFIT\SYS-UPDATE\SYS-UPDATE\obj\Debug\SYS-UPDATE.xml
36
 D:\工巧明\WINPROFIT\SYS-UPDATE\SYS-UPDATE\obj\Debug\SYS-UPDATE.pdb
35
 D:\工巧明\WINPROFIT\SYS-UPDATE\SYS-UPDATE\obj\Debug\SYS-UPDATE.pdb
36
+D:\工巧明\WINPROFIT\SYS-UPDATE\SYS-UPDATE\obj\Debug\SYS-UPDATE.vbproj.AssemblyReference.cache
37
+D:\工巧明\WINPROFIT\SYS-UPDATE\SYS-UPDATE\obj\Debug\SYS-UPDATE.vbproj.SuggestedBindingRedirects.cache

BIN
SYS-UPDATE/obj/Debug/SYS-UPDATE.vbproj.GenerateResource.cache View File


+ 0
- 0
SYS-UPDATE/obj/Debug/SYS-UPDATE.vbproj.SuggestedBindingRedirects.cache View File


BIN
SYS-UPDATE/obj/Debug/SYS-UPDATE.vbprojAssemblyReference.cache View File


+ 4
- 4
SYS-UPDATE/obj/Debug/SYS-UPDATE.xml View File

8
 <members>
8
 <members>
9
 <member name="T:SYS_UPDATE.My.Resources.Resources">
9
 <member name="T:SYS_UPDATE.My.Resources.Resources">
10
 <summary>
10
 <summary>
11
-  A strongly-typed resource class, for looking up localized strings, etc.
11
+  用於查詢當地語系化字串等的強類型資源類別。
12
 </summary>
12
 </summary>
13
 </member>
13
 </member>
14
 <member name="P:SYS_UPDATE.My.Resources.Resources.ResourceManager">
14
 <member name="P:SYS_UPDATE.My.Resources.Resources.ResourceManager">
15
 <summary>
15
 <summary>
16
-  Returns the cached ResourceManager instance used by this class.
16
+  傳回這個類別使用的快取的 ResourceManager 執行個體。
17
 </summary>
17
 </summary>
18
 </member>
18
 </member>
19
 <member name="P:SYS_UPDATE.My.Resources.Resources.Culture">
19
 <member name="P:SYS_UPDATE.My.Resources.Resources.Culture">
20
 <summary>
20
 <summary>
21
-  Overrides the current thread's CurrentUICulture property for all
22
-  resource lookups using this strongly typed resource class.
21
+  覆寫目前執行緒的 CurrentUICulture 屬性,對象是所有
22
+  使用這個強類型資源類別的資源查閱。
23
 </summary>
23
 </summary>
24
 </member>
24
 </member>
25
 </members>
25
 </members>

BIN
SYS-UPDATE/obj/Debug/TempPE/My Project.Resources.Designer.vb.dll View File


Loading…
Cancel
Save