暫無描述
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 23KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350
  1. Imports System.IO
  2. Imports System.Text
  3. Public Class 登入畫面
  4. Dim MACKK, diskId, diskSerialNumber, diskModel As String 'MAC碼
  5. Dim Str As String = Application.StartupPath
  6. Dim IP公, IP測1, IP測2, 印尼測試內網網段 As Boolean
  7. Dim FFGG, GGHH As Integer
  8. ReadOnly 對話框(15) As String
  9. ReadOnly ds2, ds3 As New DataSet
  10. Private Sub 登入畫面_Load(sender As Object, e As EventArgs) Handles MyBase.Load
  11. Dim strDirNam As String = Path.Combine(Application.StartupPath, "GF00-ERP-UPDATE.EXE")
  12. If File.Exists(strDirNam) Then : File.Delete(strDirNam) : End If
  13. 執行檔版本號_lb.Text = "執行檔版本號 : " & 版本
  14. IP公 = False : IP測1 = False : IP測2 = False
  15. 系統登入_dgv.RowsDefaultCellStyle.Font = New System.Drawing.Font("微軟正黑體", 7.6)
  16. '-----------------------控件基本設定-----------------------------------------------------------------------------------------------------------------------------------------------
  17. 深色風格_ch.Visible = 風格啟用 : 系統語言_cb.Visible = 多國語言啟用 : 系統語言_lb.Visible = 多國語言啟用
  18. If 多國語言啟用 = False Then : 系統語言 = "繁體中文" : End If : 廟 = False
  19. 公司線路_rb.Visible = 測試線路啟用 : 測試線路_rb.Visible = 測試線路啟用
  20. 刷卡登入_ch.Checked = True : 登入綁定_ch.Checked = False : 公司線路_rb.Checked = True
  21. 刷卡登入_ch.Visible = False : 登入綁定_ch.Visible = False : Panel1.SendToBack()
  22. Dim filePath1 As String = Path.Combine(Application.StartupPath, "TEST.txt")
  23. If File.Exists(filePath1) Then
  24. Dim fileContent As String = File.ReadAllText(Str + "\TEST.txt")
  25. txt = fileContent
  26. If fileContent.Length >= 10 AndAlso fileContent(2) = "G" AndAlso fileContent(9) = "F" Then
  27. Dim databaseID As String = fileContent(4) & fileContent(7) : 資料庫編號 = databaseID
  28. Else : MGB("錯誤,請通知系管理員", 1) : Me.Close() : End If
  29. Else
  30. 輸入密碼.ShowDialog()
  31. If PA = "0003065795" Then
  32. PA = InputBox("請輸入啟動碼!!", "啟用系統")
  33. Dim strDirName As String : Dim filePath2 As String = Path.Combine(Application.StartupPath, "TEST.txt")
  34. If File.Exists(filePath2) Then : File.Delete(filePath2) : End If
  35. strDirName = filePath2
  36. Try
  37. Using fs As IO.FileStream = New IO.FileStream(strDirName, FileMode.Append)
  38. Using sw As StreamWriter = New StreamWriter(fs, Encoding.Default)
  39. Dim str As String = PA
  40. sw.WriteLine(str) '插入一整行
  41. sw.Flush()
  42. End Using
  43. End Using
  44. Catch ex As Exception
  45. End Try
  46. Application.Restart()
  47. Else : MGB("驗證碼錯誤", 1) : Me.Close() : End If
  48. End If
  49. '-----------------------調整視窗大小-----------------------------------------------------------------------------------------------------------------------------------------------
  50. Me.Size = New Size(460, 280)
  51. Dim screenBounds As Rectangle = Screen.PrimaryScreen.Bounds
  52. Me.Left = (screenBounds.Width - Me.Width) / 2
  53. Me.Top = (screenBounds.Height - Me.Height) / 2
  54. '-----MAC碼與硬碟資料-------------------------------------------------------------------------------------------------------------------------------------------------------------
  55. Dim Wmi As New Management.ManagementObjectSearcher("SELECT * FROM Win32_NetworkAdapterConfiguration")
  56. For Each WmiObj As Management.ManagementObject In Wmi.Get
  57. If CBool(WmiObj("IPEnabled")) Then
  58. MACKK = WmiObj("MACAddress")
  59. End If
  60. Next
  61. Dim cmicWmi As New Management.ManagementObjectSearcher("SELECT * FROM Win32_DiskDrive")
  62. For Each cmicWmiObj As Management.ManagementObject In cmicWmi.Get
  63. diskId = cmicWmiObj("size")
  64. diskSerialNumber = cmicWmiObj("serialnumber")
  65. diskModel = cmicWmiObj("Model")
  66. Exit For
  67. Next
  68. '-----電腦預設值------------------------------------------------------------------------------------------------------------------------------------------------------------------
  69. SQL_連線字串_本機()
  70. 電腦識別碼 = diskId & "_" & diskSerialNumber & "_" & diskModel : 電腦識別碼 = Replace(電腦識別碼, "'", "_")
  71. SQL_電腦預設值查詢() : 帳號_rtb.ImeMode = 2
  72. '-----不啟用WEB------------------------------------------------------------------------------------------------------------------------------------------------------------------
  73. Dim filePath3 As String = Path.Combine(Application.StartupPath, "NOPWEB.txt")
  74. If File.Exists(filePath3) Then
  75. Dim filereader = My.Computer.FileSystem.OpenTextFileReader(Str + "\NOPWEB.txt", System.Text.Encoding.Default)
  76. Dim Text As String = "" : Dim line As String = filereader.ReadLine()
  77. While Not (line Is Nothing) : Text = Text & line & vbCrLf : line = filereader.ReadLine() : End While : filereader.Close()
  78. If Strings.Left(Text, 2) = "NO" Then : 不啟用WEB_cb.Checked = False
  79. ElseIf Strings.Left(Text, 3) = "YES" Then : 不啟用WEB_cb.Checked = True : End If
  80. Else : 不啟用WEB_cb.Checked = False : End If
  81. If 不啟用WEB_cb.Checked = False Then : 不用WEB = False : Else : 不用WEB = True : End If
  82. PA49 = "mssql-147629-0.cloudclusters.net,12711"
  83. IP公 = True : IP測1 = True : IP測2 = True : 伺服器區域_cb.Text = "正式" : 公司線路_rb.Checked = True : 測試線路_rb.Checked = False : 內網線路 = True
  84. 確定_rbt.Enabled = True : 取消_rbt.Enabled = True : 刷卡登入_ch.Checked = True
  85. 'IP比對()
  86. SQL_系統版本號驗證()
  87. If dr.Read() Then : 資料庫版本 = dr("系統認證版本號") : 版本號 = dr("系統認證版本號") : End If : conn.Close()
  88. If Strings.Right(執行檔版本號_lb.Text, 10) <> Strings.Right(資料庫版本號_lb.Text, 10) Then
  89. 自動更新2()
  90. Else : End If
  91. End Sub
  92. Private Function ScaleImage(ByVal img As Image, ByVal size As Size) As Image
  93. Dim newImage As New Bitmap(size.Width, size.Height)
  94. Using graphics As Graphics = Graphics.FromImage(newImage)
  95. graphics.InterpolationMode = Drawing2D.InterpolationMode.HighQualityBicubic
  96. graphics.DrawImage(img, New Rectangle(0, 0, size.Width, size.Height))
  97. End Using
  98. Return newImage
  99. End Function
  100. Private Sub IP比對()
  101. If SQL_連線狀態模組1.ConnectTest1("mssql-147629-0.cloudclusters.net,12711") = True Then
  102. '---主伺服器導通-------------------------------------------
  103. PA49 = "mssql-147629-0.cloudclusters.net,12711"
  104. IP公 = True : IP測1 = True : IP測2 = True : 伺服器區域_cb.Text = "正式" : 公司線路_rb.Checked = True : 測試線路_rb.Checked = False : 內網線路 = True
  105. 確定_rbt.Enabled = True : 取消_rbt.Enabled = True : 刷卡登入_ch.Checked = True
  106. Else
  107. If SQL_連線狀態模組2.ConnectTest2("106.1.48.106,4567") = True Then
  108. '---主伺服器導通-------------------------------------------
  109. 對話框(1) = "正式資料庫無法連線,請通知系統管理員!!"
  110. MGB(對話框(1), 1)
  111. PA49 = "106.1.48.106,4567"
  112. IP公 = True : IP測1 = True : IP測2 = True : 伺服器區域_cb.Text = "測試" : 公司線路_rb.Checked = True : 測試線路_rb.Checked = False : 內網線路 = True
  113. 確定_rbt.Enabled = True : 取消_rbt.Enabled = True : 刷卡登入_ch.Checked = True
  114. Else
  115. 對話框(1) = "正式及測試資料庫皆無法連線,請通知系統管理員!!"
  116. MGB(對話框(1), 1) : Me.Close()
  117. End If
  118. End If
  119. End Sub
  120. Private Sub ComboBox1_SelectedIndexChanged(sender As Object, e As EventArgs) Handles 伺服器區域_cb.SelectedIndexChanged
  121. '-----------------------確認登入伺服器位置-----------------------------------------------------------------------------------------------------------------------------------------
  122. If 伺服器區域_cb.Text = "正式" Then
  123. If IP公 = True Then : 登入人IP = "mssql-147629-0.cloudclusters.net,12711"
  124. 登入() : 確定_rbt.Enabled = True : 取消_rbt.Enabled = True : 刷卡登入_ch.Checked = True
  125. Dim filePath As String = Path.Combine(Application.StartupPath, "NOTAUTO.txt")
  126. If File.Exists(filePath) Then : Me.Text = "GF" & 資料庫編號 & "-ERP-SYS Line : M " : Else : Me.Text = "GF" & 資料庫編號 & "-ERP-SYS Line : M" : End If
  127. Else : MGB(對話框(11), 1) : Me.Close() : End If
  128. ElseIf 伺服器區域_cb.Text = "測試" Then
  129. If IP公 = True Then : 登入人IP = "mssql-147629-0.cloudclusters.net,12711" : 資料庫編號 = "99"
  130. 登入() : 確定_rbt.Enabled = True : 取消_rbt.Enabled = True : 刷卡登入_ch.Checked = True
  131. Dim filePath As String = Path.Combine(Application.StartupPath, "NOTAUTO.txt")
  132. If File.Exists(filePath) Then : Me.Text = "GF" & 資料庫編號 & "-ERP-SYS Line : T " : Else : Me.Text = "GF" & 資料庫編號 & "-ERP-SYS Line : T" : End If
  133. Else : MGB(對話框(11), 1) : Me.Close() : End If
  134. End If : 帳號_rtb.Focus()
  135. End Sub
  136. Private Sub 登入()
  137. '-----------------------寫入連線字串-----------------------------------------------------------------------------------------------------------------------------------------------
  138. If Strings.Left(伺服器區域_cb.Text, 2) = "正式" Or Strings.Left(伺服器區域_cb.Text, 2) = "正式" Then : SQL_連線字串_正式() : Else : SQL_連線字串_正式() : End If
  139. 驗證_tb.Text = "1" : g_conn_type = 伺服器區域_cb.Text & "伺服器"
  140. '-----------------------系統是否鎖定-----------------------------------------------------------------------------------------------------------------------------------------------
  141. SQL_讀取鎖定()
  142. If dr.Read() Then
  143. Dim ch As Boolean = dr("系統鎖定") : If ch = True Then : 退出.ShowDialog() : 退出.BringToFront() : Return : End If
  144. End If : conn.Close()
  145. '-----------------------讀取圖片------------
  146. SQL_取得登入圖檔()
  147. While dr.Read() = True
  148. Dim unused As Byte() = New Byte(-1) {}
  149. Dim bytes As Byte() = DirectCast(dr.Item("簽名檔圖片"), Byte())
  150. Dim oStream As New MemoryStream(bytes)
  151. PictureBox1.Image = Bitmap.FromStream(oStream)
  152. End While
  153. '-----------------------系統版本號寫入-----------------------------------------------------------------------------------------------------------------------------------------------
  154. SQL_系統版本號驗證()
  155. If dr.Read() Then : 資料庫版本 = dr("系統認證版本號") : 版本號 = dr("系統認證版本號") : End If : conn.Close()
  156. '-----------------------FTP資料夾登入位置宣告--------------------------------------------------------------------------------------------------------------------------------------
  157. Target = "https://gcm-smart.com/ERP/GF-ERP/"
  158. If 多國語言啟用 = True Then : Else : 語言轉換讀取() : 資料庫版本號_lb.Text = "資料庫版本號 : " & 資料庫版本 : End If
  159. '-----MAC碼與硬碟資料-------------------------------------------------------------------------------------------------------------------------------------------------------------
  160. Dim Wmi As New Management.ManagementObjectSearcher("SELECT * FROM Win32_NetworkAdapterConfiguration")
  161. For Each WmiObj As Management.ManagementObject In Wmi.Get
  162. If CBool(WmiObj("IPEnabled")) Then : MACKK = WmiObj("MACAddress") : End If
  163. Next
  164. Dim cmicWmi As New Management.ManagementObjectSearcher("SELECT * FROM Win32_DiskDrive")
  165. For Each cmicWmiObj As Management.ManagementObject In cmicWmi.Get
  166. diskId = cmicWmiObj("size")
  167. diskSerialNumber = cmicWmiObj("serialnumber")
  168. diskModel = cmicWmiObj("Model")
  169. Exit For
  170. Next
  171. End Sub
  172. Private Sub ConnectToDatabase()
  173. SQL_系統版本號驗證() : If dr.Read() Then : 資料庫版本 = dr("系統認證版本號") : 版本號 = dr("系統認證版本號") : End If : conn.Close()
  174. End Sub
  175. Private Sub Set_清單1()
  176. ftp清單_dgv.DataSource = Nothing : ds2.Clear()
  177. ftp清單_dgv.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
  178. ftp清單_dgv.ColumnHeadersHeight = 25 : ftp清單_dgv.AllowUserToAddRows = False
  179. SQL_FTP資料夾路徑分配()
  180. da.Fill(ds2) : ftp清單_dgv.DataSource = ds2.Tables(0) : conn.Close()
  181. End Sub
  182. Private Sub 自動更新2()
  183. Dim filePath As String = Path.Combine(Application.StartupPath, "NOTAUTO.txt")
  184. If File.Exists(filePath) Then
  185. If 帳號_rtb.Text = "b70340" Or 帳號_rtb.Text = "B70340" Then : Else : End If
  186. Else
  187. SQL_系統認證版本號查詢()
  188. If dr.Read() Then
  189. If Strings.Right(執行檔版本號_lb.Text, 10) = dr("小更新1").ToString Or Strings.Right(執行檔版本號_lb.Text, 10) = dr("小更新2").ToString Or
  190. Strings.Right(執行檔版本號_lb.Text, 10) = dr("小更新3").ToString Or Strings.Right(執行檔版本號_lb.Text, 10) = dr("小更新4").ToString Or
  191. Strings.Right(執行檔版本號_lb.Text, 10) = dr("小更新5").ToString Then : PA = "1"
  192. ElseIf Strings.Right(執行檔版本號_lb.Text, 10) = dr("中更新1").ToString Or Strings.Right(執行檔版本號_lb.Text, 10) = dr("中更新2").ToString Or
  193. Strings.Right(執行檔版本號_lb.Text, 10) = dr("中更新3").ToString Or Strings.Right(執行檔版本號_lb.Text, 10) = dr("中更新4").ToString Or
  194. Strings.Right(執行檔版本號_lb.Text, 10) = dr("中更新5").ToString Then : PA = "2"
  195. Else : PA = "3" : End If
  196. End If : conn.Close() : PA = "1"
  197. Dim strDirName As String : filePath = Path.Combine(Application.StartupPath, "GF00UPDATE.txt")
  198. If File.Exists(filePath) Then : File.Delete(filePath) : End If
  199. strDirName = filePath
  200. Try
  201. Using fs As IO.FileStream = New IO.FileStream(strDirName, FileMode.Append)
  202. Using sw As StreamWriter = New StreamWriter(fs, Encoding.Default)
  203. Dim strd As String = PA
  204. sw.WriteLine(strd) '插入一整行
  205. sw.Flush()
  206. End Using
  207. End Using
  208. Catch ex As Exception
  209. End Try
  210. My.Computer.Network.DownloadFile(Target & "GF00-ERP-UPDATE.exe", Str & "\GF00-ERP-UPDATE.exe")
  211. Shell(Str & "\GF00-ERP-UPDATE.exe", vbNormalFocus) : Me.Close()
  212. End If
  213. End Sub
  214. Private Sub OK_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles 確定_rbt.Click
  215. 系統語言_cb.Text = "繁體中文"
  216. If 系統語言_cb.Text = " " Or 系統語言_cb.Text = "" Then : MGB(對話框(9), 1) : Else
  217. '-----電腦綁定判斷-------------------------------------------------------------------------------------------------------------------------------------------------------------
  218. If 登入綁定_ch.Checked = True Then
  219. PA1 = MACKK : PA2 = diskId : PA3 = diskSerialNumber : PA4 = diskModel
  220. SQL_電腦綁定()
  221. If dr.Read() Then : conn.Close() : 登入第一層() : Else
  222. If 帳號_rtb.Text = "b70340" Or 帳號_rtb.Text = "B70340" Then : conn.Close() : 登入第一層() : Else : conn.Close() : MGB(對話框(6), 1) : Me.Close() : End If
  223. End If
  224. Else : conn.Close() : 登入第一層() : End If
  225. End If
  226. End Sub
  227. Private Sub 登入第一層()
  228. If 帳號_rtb.Text = "b70340" Or 帳號_rtb.Text = "B70340" Then
  229. If Strings.Right(執行檔版本號_lb.Text, 10) <> Strings.Right(資料庫版本號_lb.Text, 10) Then
  230. If 伺服器區域_cb.Text = "測試雲端" Then
  231. 自動更新2()
  232. 登入程序() : 判斷重登 = False
  233. Else
  234. 登入程序() : 判斷重登 = False
  235. End If
  236. Else
  237. 登入程序() : 判斷重登 = False
  238. End If
  239. Else
  240. If Strings.Right(執行檔版本號_lb.Text, 10) <> Strings.Right(資料庫版本號_lb.Text, 10) Then
  241. If 伺服器區域_cb.Text = "測試雲端" Then
  242. 自動更新2()
  243. Else
  244. MGB(對話框(1), 1)
  245. End If
  246. Else
  247. 登入程序() : 判斷重登 = False
  248. End If
  249. End If
  250. End Sub
  251. Private Sub 登入程序()
  252. If 帳號_rtb.Text = "" Then : MGB(對話框(2), 1) : ElseIf 帳號_rtb.Text <> "" Then
  253. If 帳號_rtb.Text = "" Then : MGB(對話框(3), 1) : ElseIf 帳號_rtb.Text <> "" Then
  254. If 驗證_tb.Text = "1" Then
  255. SQL_使用者級別宣告() : If dr.Read() Then : 登入人級別 = dr("級別").ToString : End If
  256. SQL_使用者權限宣告()
  257. If dr.Read() Then
  258. 密碼驗證_tb.Text = dr("密碼").ToString : 密碼日期_tb.Text = dr("密碼日期").ToString
  259. gUserName = dr("姓名").ToString : 登入人部門 = dr("部門").ToString : 登入人課別 = dr("課別").ToString
  260. 登入人組別 = dr("組別").ToString
  261. For I As Integer = 1 To 權限數量 : CC(I) = dr.Item(I + 8 - 1) : Next
  262. FFGG = DateDiff("d", 密碼日期_tb.Text, Format(Today(), "yyyy/MM/dd"))
  263. If CC(45) = True Then : GGHH = 密碼時限 - FFGG
  264. If GGHH <= 0 Then
  265. MGB(對話框(4), 1) : 個人帳號管理.ShowDialog()
  266. Else : 登入第二層() : End If
  267. Else : 登入第二層() : End If
  268. Else : MGB(對話框(15), 1) : End If : dr.Close()
  269. End If
  270. End If
  271. End If
  272. conn.Close()
  273. End Sub
  274. Private Sub 進行下載_lb_Click(sender As Object, e As EventArgs) Handles 進行下載_lb.Click
  275. 自動更新2()
  276. End Sub
  277. Private Sub 隱藏開關_lb_Click(sender As Object, e As EventArgs) Handles 隱藏開關_lb.Click
  278. 輸入密碼.ShowDialog()
  279. If PA = "0003065795" Then
  280. PA = InputBox("請輸入啟動碼!!", "啟用系統", txt)
  281. Dim strDirName As String : Dim filePath As String = Path.Combine(Application.StartupPath, "TEST.txt")
  282. If File.Exists(filePath) Then : File.Delete(filePath) : End If : strDirName = filePath
  283. Try
  284. Using fs As IO.FileStream = New IO.FileStream(strDirName, FileMode.Append)
  285. Using sw As StreamWriter = New StreamWriter(fs, Encoding.Default)
  286. Dim str As String = PA
  287. sw.WriteLine(str) '插入一整行
  288. sw.Flush()
  289. End Using
  290. End Using
  291. Catch ex As Exception : End Try
  292. Application.Restart()
  293. Else : End If
  294. End Sub
  295. Private Sub 登入第二層()
  296. If 密碼_rtb.Text = 密碼驗證_tb.Text Then
  297. If 密碼驗證_tb.Text = "" Then : MGB(對話框(5), 1)
  298. Else
  299. Me.Hide() : Timer1.Enabled = False
  300. ICS_ASMS_ERP_SYS.Show() : 密碼_rtb.Text = "" : 帳號_rtb.Text = ""
  301. End If
  302. ElseIf 密碼_rtb.Text <> 密碼驗證_tb.Text Then : MGB(對話框(5), 1)
  303. End If
  304. End Sub
  305. Private Sub UsernameTextBox_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles 帳號_rtb.KeyPress
  306. If e.KeyChar = ChrW(13) Then : Me.確定_rbt.PerformClick() : End If
  307. End Sub
  308. Private Sub PasswordTextBox_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles 密碼_rtb.KeyPress
  309. If e.KeyChar = ChrW(13) Then : Me.確定_rbt.PerformClick() : End If
  310. End Sub
  311. Private Sub Cancel_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles 取消_rbt.Click
  312. Me.Close()
  313. End Sub
  314. Private Sub 風格()
  315. End Sub
  316. Private Sub UsernameTextBox_TextChanged(sender As Object, e As EventArgs) Handles 帳號_rtb.TextChanged
  317. If IsNumeric(帳號_rtb.Text) = True Then
  318. If 帳號_rtb.Text.Length = 10 Then
  319. SQL_刷卡登入()
  320. If dr.Read() Then
  321. 帳號_rtb.Text = dr("帳號").ToString : 密碼_rtb.Text = dr("密碼").ToString : conn.Close()
  322. Else
  323. 帳號_rtb.Text = "" : 密碼_rtb.Text = "" : conn.Close()
  324. End If
  325. Me.確定_rbt.PerformClick() : Exit Sub
  326. End If
  327. End If
  328. End Sub
  329. Private Sub 語言轉換讀取()
  330. 對話框(0) = "所選擇服務器不是台灣服務器,請連線該服務器所在網域的VPN,確保連線正常後重新選擇伺服器!"
  331. 對話框(1) = "系統版本號 與 資料庫版本號 對應不上,請下載最新的執行檔。"
  332. 對話框(2) = "請輸入帳號! 如使用刷登入,請確定該卡片有合法註冊!"
  333. 對話框(3) = "請輸入帳號!"
  334. 對話框(4) = "密碼過期!"
  335. 對話框(5) = "帳號或密碼錯誤,請重新輸入!"
  336. 對話框(6) = "該電腦沒有註冊,無法使用系統。"
  337. 對話框(7) = "下載完成,請手動刪除就的執行檔,並且用新的執行檔開啟。"
  338. 對話框(8) = "操作不正確,請用手動方式下載更新。"
  339. 對話框(9) = "未選擇語言"
  340. 對話框(10) = "請輸入 小更新 [1]、中更新 [2]、大更新 [3] !!"
  341. 對話框(11) = "網路錯誤,無法連線!!"
  342. 對話框(12) = "正式資料庫無法連線,請通知系統管理員!!"
  343. 對話框(13) = "線路轉換完成!!"
  344. 對話框(14) = "正式,測試資料庫無法使用!!"
  345. 對話框(15) = "帳號錯誤,請重新輸入!!"
  346. End Sub
  347. End Class