Ei kuvausta
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

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