Sin descripción
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.

工程項目BOM表_選擇群組.vb 2.0KB

12345678910111213141516171819202122232425262728293031
  1. Public Class 工程項目BOM表_選擇群組
  2. Private Sub 載入群組碼()
  3. SQL_工程項目BOM_群組碼() : 群組碼_cb.Items.Clear() : 群組碼中_cb.Items.Clear()
  4. While (dr.Read()) : 群組碼_cb.Items.Add(dr("群組碼")) : 群組碼中_cb.Items.Add(dr("中文名稱")) : 群組碼印_cb.Items.Add(dr("印尼文名稱")) : End While
  5. End Sub
  6. Private Sub 工程項目BOM表_選擇群組_Load(sender As Object, e As EventArgs) Handles MyBase.Load
  7. 載入群組碼() : 群組碼_cb.Text = "" : 群組碼中_cb.Text = "" : 群組碼印_cb.Text = ""
  8. If 系統語言 = "繁體中文" Then
  9. 群組碼中_cb.Visible = True : 群組碼印_cb.Visible = False : Label5.Visible = True : Label6.Visible = False
  10. Else
  11. 群組碼中_cb.Visible = False : 群組碼印_cb.Visible = True : Label5.Visible = False : Label6.Visible = True
  12. End If
  13. 群組碼_cb.Visible = False
  14. End Sub
  15. Private Sub 群組碼中_cb_Click(sender As Object, e As EventArgs) Handles 群組碼中_cb.Click
  16. CB選擇清單(群組碼中_cb, 群組碼中_cb.Text)
  17. End Sub
  18. Private Sub 群組碼中_cb_SelectedIndexChanged(sender As Object, e As EventArgs) Handles 群組碼中_cb.TextChanged
  19. If 系統語言 = "繁體中文" Then
  20. 群組碼印_cb.SelectedIndex = 群組碼中_cb.SelectedIndex : 群組碼_cb.SelectedIndex = 群組碼中_cb.SelectedIndex : PA40 = 群組碼_cb.Text : Me.Close()
  21. End If
  22. End Sub
  23. Private Sub 群組碼印_cb_Click(sender As Object, e As EventArgs) Handles 群組碼印_cb.Click
  24. CB選擇清單(群組碼印_cb, 群組碼印_cb.Text)
  25. End Sub
  26. Private Sub 群組碼印_cb_SelectedIndexChanged(sender As Object, e As EventArgs) Handles 群組碼印_cb.TextChanged
  27. If 系統語言 <> "繁體中文" Then
  28. 群組碼中_cb.SelectedIndex = 群組碼印_cb.SelectedIndex : 群組碼_cb.SelectedIndex = 群組碼印_cb.SelectedIndex : PA40 = 群組碼_cb.Text : Me.Close()
  29. End If
  30. End Sub
  31. End Class