B70340 4 lat temu
rodzic
commit
f093bd9879

BIN
.vs/MAOJI-ERP-SYS/v16/.suo Wyświetl plik


+ 1
- 1
MaoOrange-Hongji/LoginForm1.Designer.vb Wyświetl plik

126
         Me.伺服器區域_ch.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList
126
         Me.伺服器區域_ch.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList
127
         Me.伺服器區域_ch.ForeColor = System.Drawing.Color.Blue
127
         Me.伺服器區域_ch.ForeColor = System.Drawing.Color.Blue
128
         Me.伺服器區域_ch.FormattingEnabled = True
128
         Me.伺服器區域_ch.FormattingEnabled = True
129
-        Me.伺服器區域_ch.Items.AddRange(New Object() {"懋桔", "設計"})
129
+        Me.伺服器區域_ch.Items.AddRange(New Object() {"懋桔內網", "懋桔外網", "設計線路"})
130
         Me.伺服器區域_ch.Location = New System.Drawing.Point(334, 36)
130
         Me.伺服器區域_ch.Location = New System.Drawing.Point(334, 36)
131
         Me.伺服器區域_ch.Name = "伺服器區域_ch"
131
         Me.伺服器區域_ch.Name = "伺服器區域_ch"
132
         Me.伺服器區域_ch.Size = New System.Drawing.Size(75, 20)
132
         Me.伺服器區域_ch.Size = New System.Drawing.Size(75, 20)

+ 41
- 13
MaoOrange-Hongji/LoginForm1.vb Wyświetl plik

1
-Imports System.Net
1
+Imports System.Drawing
2
+Imports System.Net
3
+Imports System.Windows.Forms
2
 Public Class LoginForm1
4
 Public Class LoginForm1
3
     ' TODO: 插入程式碼,利用提供的使用者名稱和密碼執行自訂驗證
5
     ' TODO: 插入程式碼,利用提供的使用者名稱和密碼執行自訂驗證
4
     ' (請參閱 https://go.microsoft.com/fwlink/?LinkId=35339)。
6
     ' (請參閱 https://go.microsoft.com/fwlink/?LinkId=35339)。
8
     ' 接著,My.User 便會傳回封裝在 CustomPrincipal 物件中的識別資訊,
10
     ' 接著,My.User 便會傳回封裝在 CustomPrincipal 物件中的識別資訊,
9
     ' 例如使用者名稱、顯示名稱等。
11
     ' 例如使用者名稱、顯示名稱等。
10
     ReadOnly ds2 As New DataSet
12
     ReadOnly ds2 As New DataSet
13
+    Dim MACKK As String 'MAC碼
14
+    Dim diskId As String '數字ID
15
+    Dim diskSerialNumber As String '硬碟序列
16
+    Dim diskModel As String '磁盘型態
11
     Public Property Credentials As ICredentials
17
     Public Property Credentials As ICredentials
12
     ReadOnly screenWidth = Screen.PrimaryScreen.Bounds.Width
18
     ReadOnly screenWidth = Screen.PrimaryScreen.Bounds.Width
13
     ReadOnly screenHeight = Screen.PrimaryScreen.Bounds.Height
19
     ReadOnly screenHeight = Screen.PrimaryScreen.Bounds.Height
24
         刷卡登入_ch.Checked = True : 刷卡登入_ch.Enabled = False : 登入綁定_ch.Checked = False : 登入綁定_ch.Enabled = False : 帳號_tb.Visible = False
30
         刷卡登入_ch.Checked = True : 刷卡登入_ch.Enabled = False : 登入綁定_ch.Checked = False : 登入綁定_ch.Enabled = False : 帳號_tb.Visible = False
25
         執行檔版本號_lb.Text = "執行檔版本號 : " & 版本
31
         執行檔版本號_lb.Text = "執行檔版本號 : " & 版本
26
         網段.ShowDialog()
32
         網段.ShowDialog()
27
-        If 登入判斷 = True Then
28
-            伺服器區域_ch.Text = "懋桔" : 確認_bt.Enabled = True : 取消_bt.Enabled = True : 刷卡登入_ch.Checked = True
29
-        ElseIf 登入判斷 = False Then
30
-            伺服器區域_ch.Text = "設計" : 確認_bt.Enabled = True : 取消_bt.Enabled = True : 刷卡登入_ch.Checked = True
33
+        If 登入判斷 = True And 內外網 = False Then
34
+            伺服器區域_ch.Text = "懋桔內網" : 確認_bt.Enabled = True : 取消_bt.Enabled = True : 刷卡登入_ch.Checked = True
35
+        ElseIf 登入判斷 = True And 內外網 = True Then
36
+            伺服器區域_ch.Text = "懋桔外網" : 確認_bt.Enabled = True : 取消_bt.Enabled = True : 刷卡登入_ch.Checked = True
37
+        ElseIf 登入判斷 = False And 內外網 = False Then
38
+            伺服器區域_ch.Text = "設計線路" : 確認_bt.Enabled = True : 取消_bt.Enabled = True : 刷卡登入_ch.Checked = True
31
         End If
39
         End If
32
         '-----------------------調整視窗大小-----------------------------------------------------------------------------------------------------------------------------------------------
40
         '-----------------------調整視窗大小-----------------------------------------------------------------------------------------------------------------------------------------------
33
         Me.Size = New Size(466, 279)
41
         Me.Size = New Size(466, 279)
46
             MsgBox("非系統功能因素造成目前系統已鎖定,無法開啟,請聯繫系統開發商。")
54
             MsgBox("非系統功能因素造成目前系統已鎖定,無法開啟,請聯繫系統開發商。")
47
             Me.Close()
55
             Me.Close()
48
         End If
56
         End If
57
+        '-----MAC碼與硬碟資料-------------------------------------------------------------------------------------------------------------------------------------------------------------
58
+        Dim Wmi As New Management.ManagementObjectSearcher("SELECT * FROM Win32_NetworkAdapterConfiguration")
59
+        For Each WmiObj As Management.ManagementObject In Wmi.Get
60
+            If CBool(WmiObj("IPEnabled")) Then
61
+                MACKK = WmiObj("MACAddress")
62
+            End If
63
+        Next
64
+        Dim cmicWmi As New Management.ManagementObjectSearcher("SELECT * FROM Win32_DiskDrive")
65
+        For Each cmicWmiObj As Management.ManagementObject In cmicWmi.Get
66
+            diskId = cmicWmiObj("size")             'diskId = cmicWmiObj("signature")
67
+            diskSerialNumber = cmicWmiObj("serialnumber")
68
+            diskModel = cmicWmiObj("Model")
69
+            Exit For
70
+        Next
71
+        '-----電腦綁定判斷-------------------------------------------------------------------------------------------------------------------------------------------------------------
72
+        PA1 = MACKK : PA2 = diskId : PA3 = diskSerialNumber : PA4 = diskModel
73
+        SQL_電腦綁定()
74
+        If dr.Read() Then
75
+            conn.Close()
76
+        Else
77
+            conn.Close() : MsgBox("該電腦沒有註冊,無法使用系統。") : Me.Close()
78
+        End If
49
     End Sub
79
     End Sub
50
     Private Sub 伺服器區域_ch_SelectedIndexChanged(sender As Object, e As EventArgs) Handles 伺服器區域_ch.SelectedIndexChanged
80
     Private Sub 伺服器區域_ch_SelectedIndexChanged(sender As Object, e As EventArgs) Handles 伺服器區域_ch.SelectedIndexChanged
51
         '-----------------------確認登入伺服器位置-----------------------------------------------------------------------------------------------------------------------------------------
81
         '-----------------------確認登入伺服器位置-----------------------------------------------------------------------------------------------------------------------------------------
52
-        If 伺服器區域_ch.Text = "懋桔" Then
53
-            登入人IP = "192.168.0.199" : 登入() : 確認_bt.Enabled = True : 取消_bt.Enabled = True : 刷卡登入_ch.Checked = True
54
-        ElseIf 伺服器區域_ch.Text = "設計" Then
82
+        If 登入判斷 = True And 內外網 = False Then
83
+            登入人IP = "192.168.0.199,2433" : 登入() : 確認_bt.Enabled = True : 取消_bt.Enabled = True : 刷卡登入_ch.Checked = True
84
+        ElseIf 登入判斷 = True And 內外網 = True Then
85
+            登入人IP = "59.127.190.74,2433" : 登入() : 確認_bt.Enabled = True : 取消_bt.Enabled = True : 刷卡登入_ch.Checked = True
86
+        ElseIf 登入判斷 = False And 內外網 = False Then
55
             登入人IP = "106.1.50.79" : 登入() : 確認_bt.Enabled = True : 取消_bt.Enabled = True : 刷卡登入_ch.Checked = True
87
             登入人IP = "106.1.50.79" : 登入() : 確認_bt.Enabled = True : 取消_bt.Enabled = True : 刷卡登入_ch.Checked = True
56
         End If
88
         End If
57
     End Sub
89
     End Sub
58
     Private Sub 登入()
90
     Private Sub 登入()
59
         '-----------------------寫入連線字串-----------------------------------------------------------------------------------------------------------------------------------------------
91
         '-----------------------寫入連線字串-----------------------------------------------------------------------------------------------------------------------------------------------
60
-        If 伺服器區域_ch.Text = "設計" Then
61
-            SQL_連線字串_測試()
62
-        Else
63
-            SQL_連線字串_正式()
64
-        End If
92
+        SQL_連線字串_正式()
65
         驗證_tb.Text = "1" : g_conn_type = 伺服器區域_ch.Text & "伺服器"
93
         驗證_tb.Text = "1" : g_conn_type = 伺服器區域_ch.Text & "伺服器"
66
         '-----------------------系統版本號驗證-----------------------------------------------------------------------------------------------------------------------------------------------
94
         '-----------------------系統版本號驗證-----------------------------------------------------------------------------------------------------------------------------------------------
67
         SQL_系統版本號驗證()
95
         SQL_系統版本號驗證()

+ 1
- 0
MaoOrange-Hongji/MAOJI-ERP-SYS.vbproj Wyświetl plik

68
     <Reference Include="System.Data" />
68
     <Reference Include="System.Data" />
69
     <Reference Include="System.Deployment" />
69
     <Reference Include="System.Deployment" />
70
     <Reference Include="System.Drawing" />
70
     <Reference Include="System.Drawing" />
71
+    <Reference Include="System.Management" />
71
     <Reference Include="System.Windows.Forms" />
72
     <Reference Include="System.Windows.Forms" />
72
     <Reference Include="System.Xml" />
73
     <Reference Include="System.Xml" />
73
     <Reference Include="System.Core" />
74
     <Reference Include="System.Core" />

+ 1
- 1
MaoOrange-Hongji/Module/SQL_Module.vb Wyświetl plik

10
         ConString = "Data Source=" & 登入人IP & ";Initial Catalog=MAO-ORANGE-ERP-SYS;Persist Security Info=True;User ID=B70340;Password=Lee0911274990;Max pool size = 200;Connection Timeout=0"
10
         ConString = "Data Source=" & 登入人IP & ";Initial Catalog=MAO-ORANGE-ERP-SYS;Persist Security Info=True;User ID=B70340;Password=Lee0911274990;Max pool size = 200;Connection Timeout=0"
11
     End Sub
11
     End Sub
12
     Friend Sub SQL_連線字串_正式()
12
     Friend Sub SQL_連線字串_正式()
13
-        ConString = "Data Source=" & 登入人IP & ";Initial Catalog=MAO-ORANGE-ERP-SYS;Persist Security Info=True;User ID=B70340;Password=0911274990;Max pool size = 200;Connection Timeout=0"
13
+        ConString = "Data Source=" & 登入人IP & ";Initial Catalog=MAO-ORANGE-ERP-SYS;Persist Security Info=True;User ID=B70340;Password=lee0911274990;Max pool size = 200;Connection Timeout=0"
14
     End Sub
14
     End Sub
15
     Friend Sub ConnOpen()
15
     Friend Sub ConnOpen()
16
         conn.Close() : If conn.State = ConnectionState.Closed Then : conn.ConnectionString = ConString : conn.Open() : End If
16
         conn.Close() : If conn.State = ConnectionState.Closed Then : conn.ConnectionString = ConString : conn.Open() : End If

+ 5
- 0
MaoOrange-Hongji/Module/SQL_登入與主程式.vb Wyświetl plik

12
     Friend Sub SQL_帳號讀取()
12
     Friend Sub SQL_帳號讀取()
13
         ConnOpen() : SQL1 = "SELECT 帳號 FROM 使用者權限管理表" : CmdSet_For_dr()
13
         ConnOpen() : SQL1 = "SELECT 帳號 FROM 使用者權限管理表" : CmdSet_For_dr()
14
     End Sub
14
     End Sub
15
+    Friend Sub SQL_電腦綁定()
16
+        ConnOpen()
17
+        SQL1 = "SELECT MAC碼 FROM 系統綁定電腦資訊 WHERE 硬碟ID LIKE N'" & PA2 & "' AND 硬碟序列 LIKE N'" & PA3 & "' AND 磁盘型態 LIKE N'" & PA4 & "'"
18
+        CmdSet_For_dr()
19
+    End Sub
15
     '---------------------MAOJI_ERP_SYS-----------------------------------------------------------------------------------------------------------------
20
     '---------------------MAOJI_ERP_SYS-----------------------------------------------------------------------------------------------------------------
16
     Friend Sub SQL_公司選擇清單()
21
     Friend Sub SQL_公司選擇清單()
17
         ConnOpen() : SQL1 = "SELECT 公司編號, 公司名, 統編, 電話, 地址 FROM MJ公司基本資料 ORDER BY 公司編號" : CmdSet_For_dr()
22
         ConnOpen() : SQL1 = "SELECT 公司編號, 公司名, 統編, 電話, 地址 FROM MJ公司基本資料 ORDER BY 公司編號" : CmdSet_For_dr()

+ 2
- 2
MaoOrange-Hongji/Module/全域變數.vb Wyświetl plik

2
     '----系統登入-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
2
     '----系統登入-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
3
     Public g_conn_type As String = "" : Public gUserName As String : Public 登入人部門 As String : Public 登入人課別 As String : Public 登入人組別 As String : Public 登入人IP As String
3
     Public g_conn_type As String = "" : Public gUserName As String : Public 登入人部門 As String : Public 登入人課別 As String : Public 登入人組別 As String : Public 登入人IP As String
4
     Public 版本號 As String : 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 String : Public Target As String : Public Target1 As String : Public Target2 As String : Public FTP帳號 As String : Public FTP密碼 As String : Public FTP物理位置 As String
5
-    Public AA(99) As String : Public BB(99) As Boolean : Public CC(99) As Boolean : Public 登入判斷 As Boolean
5
+    Public AA(99) As String : Public BB(99) As Boolean : Public CC(99) As Boolean : Public 登入判斷 As Boolean : Public 內外網 As Boolean
6
     '----系統版本-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
6
     '----系統版本-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
7
-    Public 版本 As String = "2020090101"
7
+    Public 版本 As String = "2021010101"
8
     '----系統用全域變數-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
8
     '----系統用全域變數-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
9
     Public 列印用SQL As String = "" : Public 列印用SQL2 As String : Public 公司編號 As String : Public 公司電話 As String : Public 公司統編 As String : Public 公司地址 As String
9
     Public 列印用SQL As String = "" : Public 列印用SQL2 As String : Public 公司編號 As String : Public 公司電話 As String : Public 公司統編 As String : Public 公司地址 As String
10
     Public 關鍵字編號 As String
10
     Public 關鍵字編號 As String

BIN
MaoOrange-Hongji/bin/Debug/MAOJI-ERP-SYS.exe Wyświetl plik


BIN
MaoOrange-Hongji/bin/Debug/MAOJI-ERP-SYS.pdb Wyświetl plik


BIN
MaoOrange-Hongji/obj/Debug/DesignTimeResolveAssemblyReferences.cache Wyświetl plik


BIN
MaoOrange-Hongji/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache Wyświetl plik


BIN
MaoOrange-Hongji/obj/Debug/MAOJI-ERP-SYS.exe Wyświetl plik


BIN
MaoOrange-Hongji/obj/Debug/MAOJI-ERP-SYS.pdb Wyświetl plik


+ 1
- 1
MaoOrange-Hongji/obj/Debug/MAOJI-ERP-SYS.vbproj.CoreCompileInputs.cache Wyświetl plik

1
-26bccacf0a88333bd780125231fce0fbe94bc71c
1
+5343654623d4061609655693541c6b818bff463b

BIN
MaoOrange-Hongji/obj/Debug/MAOJI-ERP-SYS.vbproj.GenerateResource.cache Wyświetl plik


BIN
MaoOrange-Hongji/obj/Debug/MAOJI-ERP-SYS.vbproj.ResolveComReference.cache Wyświetl plik


BIN
MaoOrange-Hongji/obj/Debug/MAOJI-ERP-SYS.vbprojAssemblyReference.cache Wyświetl plik


+ 2
- 2
MaoOrange-Hongji/採購系統管理/採購控制表.vb Wyświetl plik

154
             End If
154
             End If
155
         Next
155
         Next
156
     End Sub
156
     End Sub
157
-    Private Sub Button1_Click(sender As Object, e As EventArgs) Handles 上個月_bt.Click
157
+    Private Sub 上個月_bt_Click(sender As Object, e As EventArgs) Handles 上個月_bt.Click
158
         If 會計月_ch.Checked = True Then
158
         If 會計月_ch.Checked = True Then
159
             中間日期_dtp.Value = 中間日期_dtp.Value.AddMonths(-1)
159
             中間日期_dtp.Value = 中間日期_dtp.Value.AddMonths(-1)
160
             開始日期_dtp.Value = 中間日期_dtp.Value
160
             開始日期_dtp.Value = 中間日期_dtp.Value
166
         End If
166
         End If
167
         日期格式()
167
         日期格式()
168
     End Sub
168
     End Sub
169
-    Private Sub Button2_Click(sender As Object, e As EventArgs) Handles 下個月_bt.Click
169
+    Private Sub 下個月_bt_Click(sender As Object, e As EventArgs) Handles 下個月_bt.Click
170
         If 會計月_ch.Checked = True Then
170
         If 會計月_ch.Checked = True Then
171
             中間日期_dtp.Value = 中間日期_dtp.Value.AddMonths(1)
171
             中間日期_dtp.Value = 中間日期_dtp.Value.AddMonths(1)
172
             開始日期_dtp.Value = 中間日期_dtp.Value
172
             開始日期_dtp.Value = 中間日期_dtp.Value

+ 32
- 20
MaoOrange-Hongji/資料庫系統管理/網段.Designer.vb Wyświetl plik

23
     <System.Diagnostics.DebuggerStepThrough()> _
23
     <System.Diagnostics.DebuggerStepThrough()> _
24
     Private Sub InitializeComponent()
24
     Private Sub InitializeComponent()
25
         Dim resources As System.ComponentModel.ComponentResourceManager = New System.ComponentModel.ComponentResourceManager(GetType(網段))
25
         Dim resources As System.ComponentModel.ComponentResourceManager = New System.ComponentModel.ComponentResourceManager(GetType(網段))
26
-        Me.Yes_bt = New System.Windows.Forms.Button()
27
-        Me.No_bt = New System.Windows.Forms.Button()
26
+        Me.內網_bt = New System.Windows.Forms.Button()
27
+        Me.測試_bt = New System.Windows.Forms.Button()
28
         Me.Version = New System.Windows.Forms.Label()
28
         Me.Version = New System.Windows.Forms.Label()
29
         Me.Copyright = New System.Windows.Forms.Label()
29
         Me.Copyright = New System.Windows.Forms.Label()
30
         Me.Label5 = New System.Windows.Forms.Label()
30
         Me.Label5 = New System.Windows.Forms.Label()
31
         Me.Label6 = New System.Windows.Forms.Label()
31
         Me.Label6 = New System.Windows.Forms.Label()
32
         Me.Label8 = New System.Windows.Forms.Label()
32
         Me.Label8 = New System.Windows.Forms.Label()
33
         Me.Label1 = New System.Windows.Forms.Label()
33
         Me.Label1 = New System.Windows.Forms.Label()
34
+        Me.外網_bt = New System.Windows.Forms.Button()
34
         Me.SuspendLayout()
35
         Me.SuspendLayout()
35
         '
36
         '
36
-        'Yes_bt
37
+        '內網_bt
37
         '
38
         '
38
-        Me.Yes_bt.Location = New System.Drawing.Point(275, 247)
39
-        Me.Yes_bt.Name = "Yes_bt"
40
-        Me.Yes_bt.Size = New System.Drawing.Size(75, 34)
41
-        Me.Yes_bt.TabIndex = 652
42
-        Me.Yes_bt.Text = "Yes"
43
-        Me.Yes_bt.UseVisualStyleBackColor = True
39
+        Me.內網_bt.Location = New System.Drawing.Point(341, 247)
40
+        Me.內網_bt.Name = "內網_bt"
41
+        Me.內網_bt.Size = New System.Drawing.Size(75, 34)
42
+        Me.內網_bt.TabIndex = 652
43
+        Me.內網_bt.Text = "內網"
44
+        Me.內網_bt.UseVisualStyleBackColor = True
44
         '
45
         '
45
-        'No_bt
46
+        '測試_bt
46
         '
47
         '
47
-        Me.No_bt.Location = New System.Drawing.Point(417, 247)
48
-        Me.No_bt.Name = "No_bt"
49
-        Me.No_bt.Size = New System.Drawing.Size(75, 34)
50
-        Me.No_bt.TabIndex = 653
51
-        Me.No_bt.Text = "No"
52
-        Me.No_bt.UseVisualStyleBackColor = True
48
+        Me.測試_bt.Location = New System.Drawing.Point(417, 247)
49
+        Me.測試_bt.Name = "測試_bt"
50
+        Me.測試_bt.Size = New System.Drawing.Size(75, 34)
51
+        Me.測試_bt.TabIndex = 653
52
+        Me.測試_bt.Text = "測試"
53
+        Me.測試_bt.UseVisualStyleBackColor = True
53
         '
54
         '
54
         'Version
55
         'Version
55
         '
56
         '
120
         Me.Label1.TabIndex = 660
121
         Me.Label1.TabIndex = 660
121
         Me.Label1.Text = "MAO-ORANGE" & Global.Microsoft.VisualBasic.ChrW(13) & Global.Microsoft.VisualBasic.ChrW(10) & "        ERP-SYS"
122
         Me.Label1.Text = "MAO-ORANGE" & Global.Microsoft.VisualBasic.ChrW(13) & Global.Microsoft.VisualBasic.ChrW(10) & "        ERP-SYS"
122
         '
123
         '
124
+        '外網_bt
125
+        '
126
+        Me.外網_bt.Location = New System.Drawing.Point(265, 247)
127
+        Me.外網_bt.Name = "外網_bt"
128
+        Me.外網_bt.Size = New System.Drawing.Size(75, 34)
129
+        Me.外網_bt.TabIndex = 661
130
+        Me.外網_bt.Text = "外網"
131
+        Me.外網_bt.UseVisualStyleBackColor = True
132
+        '
123
         '網段
133
         '網段
124
         '
134
         '
125
         Me.AutoScaleDimensions = New System.Drawing.SizeF(7.0!, 16.0!)
135
         Me.AutoScaleDimensions = New System.Drawing.SizeF(7.0!, 16.0!)
126
         Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
136
         Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
127
         Me.BackgroundImage = Global.MaoOrange_Hongji.My.Resources.Resources.timg01
137
         Me.BackgroundImage = Global.MaoOrange_Hongji.My.Resources.Resources.timg01
128
         Me.ClientSize = New System.Drawing.Size(504, 293)
138
         Me.ClientSize = New System.Drawing.Size(504, 293)
139
+        Me.Controls.Add(Me.外網_bt)
129
         Me.Controls.Add(Me.Label1)
140
         Me.Controls.Add(Me.Label1)
130
         Me.Controls.Add(Me.Label8)
141
         Me.Controls.Add(Me.Label8)
131
         Me.Controls.Add(Me.Label6)
142
         Me.Controls.Add(Me.Label6)
132
         Me.Controls.Add(Me.Label5)
143
         Me.Controls.Add(Me.Label5)
133
         Me.Controls.Add(Me.Version)
144
         Me.Controls.Add(Me.Version)
134
         Me.Controls.Add(Me.Copyright)
145
         Me.Controls.Add(Me.Copyright)
135
-        Me.Controls.Add(Me.No_bt)
136
-        Me.Controls.Add(Me.Yes_bt)
146
+        Me.Controls.Add(Me.測試_bt)
147
+        Me.Controls.Add(Me.內網_bt)
137
         Me.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
148
         Me.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
138
         Me.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None
149
         Me.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None
139
         Me.Icon = CType(resources.GetObject("$this.Icon"), System.Drawing.Icon)
150
         Me.Icon = CType(resources.GetObject("$this.Icon"), System.Drawing.Icon)
144
         Me.ResumeLayout(False)
155
         Me.ResumeLayout(False)
145
 
156
 
146
     End Sub
157
     End Sub
147
-    Friend WithEvents Yes_bt As Button
148
-    Friend WithEvents No_bt As Button
158
+    Friend WithEvents 內網_bt As Button
159
+    Friend WithEvents 測試_bt As Button
149
     Friend WithEvents Version As Label
160
     Friend WithEvents Version As Label
150
     Friend WithEvents Copyright As Label
161
     Friend WithEvents Copyright As Label
151
     Friend WithEvents Label5 As Label
162
     Friend WithEvents Label5 As Label
152
     Friend WithEvents Label6 As Label
163
     Friend WithEvents Label6 As Label
153
     Friend WithEvents Label8 As Label
164
     Friend WithEvents Label8 As Label
154
     Friend WithEvents Label1 As Label
165
     Friend WithEvents Label1 As Label
166
+    Friend WithEvents 外網_bt As Button
155
 End Class
167
 End Class

+ 7
- 4
MaoOrange-Hongji/資料庫系統管理/網段.vb Wyświetl plik

12
         MYIP = IPAdress.ToString
12
         MYIP = IPAdress.ToString
13
         Label6.Text = MYIP
13
         Label6.Text = MYIP
14
     End Sub
14
     End Sub
15
-    Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Yes_bt.Click
16
-        登入判斷 = True : Me.Close()
15
+    Private Sub 內網_bt_Click(sender As Object, e As EventArgs) Handles 內網_bt.Click
16
+        登入判斷 = True : 內外網 = False : Me.Close()
17
     End Sub
17
     End Sub
18
-    Private Sub Button2_Click(sender As Object, e As EventArgs) Handles No_bt.Click
19
-        登入判斷 = False : Me.Close()
18
+    Private Sub 測試_bt_Click(sender As Object, e As EventArgs) Handles 測試_bt.Click
19
+        登入判斷 = False : 內外網 = False : Me.Close()
20
+    End Sub
21
+    Private Sub 外網_bt_Click_1(sender As Object, e As EventArgs) Handles 外網_bt.Click
22
+        登入判斷 = True : 內外網 = True : Me.Close()
20
     End Sub
23
     End Sub
21
 End Class
24
 End Class

Ładowanie…
Anuluj
Zapisz