Nav apraksta
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

排班資料.vb 111KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148
  1. Option Strict Off
  2. Public Class 排班資料
  3. ReadOnly ds, ds1, ds2, ds3, ds4, ds5, ds6, ds7, ds8, ds9, ds10, ds11, ds12, ds13, ds14, ds15, ds16, ds17, ds18, ds19, ds20, ds21, ds22, ds23, ds24, ds25, ds26, ds27, ds28, ds29, ds30, ds31,
  4. ds32, ds33, ds34, ds35, ds36, ds37, ds38, ds39, ds40, ds41, ds42, ds43 As New DataSet
  5. Dim 星期 As String : Dim 天數, 總時數, 列高, 列高1, 欄寬1, 欄寬2 As Integer
  6. Dim 首次開啟 As Boolean : Dim 對話框(13) As String
  7. Private Sub 年份_下拉表單資料載入()
  8. SQL_年份清單() : 年份_cb.Items.Clear() : While (dr.Read()) : 年份_cb.Items.Add(dr("年份")) : End While : conn.Close()
  9. End Sub
  10. Private Sub 讀取日期()
  11. 日期_dgv.DataSource = Nothing : ds.Clear()
  12. 日期_dgv.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
  13. 日期_dgv.ColumnHeadersHeight = 25 : 日期_dgv.AllowUserToAddRows = False
  14. SQL_排班系統_月份()
  15. da.Fill(ds) : 日期_dgv.DataSource = ds.Tables(0) : conn.Close()
  16. For i As Integer = 0 To 日期_dgv.Rows.Count - 1 : 日期_dgv.Rows(i).Cells("休假").Value = "" : Next
  17. End Sub
  18. Private Sub 讀取班別1()
  19. DGV1.DataSource = Nothing : ds1.Clear()
  20. DGV1.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
  21. DGV1.ColumnHeadersHeight = 列高1 : DGV1.AllowUserToAddRows = False : DGV1.RowTemplate.Height = 列高
  22. SQL_排班系統_當天排班()
  23. da.Fill(ds1) : DGV1.DataSource = ds1.Tables(0) : conn.Close()
  24. DGV1.Columns(0).FillWeight = 欄寬1 : DGV1.Columns(1).FillWeight = 欄寬2
  25. For i As Integer = 0 To DGV1.Rows.Count - 1
  26. If DGV1.Rows(i).Cells(表頭(0)).Value.ToString = "" Then : DGV1.Rows(i).Cells(表頭(0)).Value = ""
  27. ElseIf DGV1.Rows(i).Cells(表頭(0)).Value.ToString = "1" Then : DGV1.Rows(i).Cells(表頭(0)).Value = 對話框(9)
  28. ElseIf DGV1.Rows(i).Cells(表頭(0)).Value.ToString = "2" Then : DGV1.Rows(i).Cells(表頭(0)).Value = 對話框(10)
  29. ElseIf DGV1.Rows(i).Cells(表頭(0)).Value.ToString = "3" Then : DGV1.Rows(i).Cells(表頭(0)).Value = 對話框(11)
  30. ElseIf DGV1.Rows(i).Cells(表頭(0)).Value.ToString = "4" Then : DGV1.Rows(i).Cells(表頭(0)).Value = 對話框(12)
  31. ElseIf DGV1.Rows(i).Cells(表頭(0)).Value.ToString = "5" Then : DGV1.Rows(i).Cells(表頭(0)).Value = 對話框(13) : End If
  32. Next
  33. End Sub
  34. Private Sub 讀取班別2()
  35. DGV2.DataSource = Nothing : ds2.Clear()
  36. DGV2.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
  37. DGV2.ColumnHeadersHeight = 列高1 : DGV2.AllowUserToAddRows = False : DGV2.RowTemplate.Height = 列高
  38. SQL_排班系統_當天排班()
  39. da.Fill(ds2) : DGV2.DataSource = ds2.Tables(0) : conn.Close()
  40. DGV2.Columns(0).FillWeight = 欄寬1 : DGV2.Columns(1).FillWeight = 欄寬2
  41. For i As Integer = 0 To DGV2.Rows.Count - 1
  42. If DGV2.Rows(i).Cells(表頭(0)).Value.ToString = "" Then : DGV2.Rows(i).Cells(表頭(0)).Value = ""
  43. ElseIf DGV2.Rows(i).Cells(表頭(0)).Value.ToString = "1" Then : DGV2.Rows(i).Cells(表頭(0)).Value = 對話框(9)
  44. ElseIf DGV2.Rows(i).Cells(表頭(0)).Value.ToString = "2" Then : DGV2.Rows(i).Cells(表頭(0)).Value = 對話框(10)
  45. ElseIf DGV2.Rows(i).Cells(表頭(0)).Value.ToString = "3" Then : DGV2.Rows(i).Cells(表頭(0)).Value = 對話框(11)
  46. ElseIf DGV2.Rows(i).Cells(表頭(0)).Value.ToString = "4" Then : DGV2.Rows(i).Cells(表頭(0)).Value = 對話框(12)
  47. ElseIf DGV2.Rows(i).Cells(表頭(0)).Value.ToString = "5" Then : DGV2.Rows(i).Cells(表頭(0)).Value = 對話框(13) : End If
  48. Next
  49. End Sub
  50. Private Sub 讀取班別3()
  51. DGV3.DataSource = Nothing : ds3.Clear()
  52. DGV3.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
  53. DGV3.ColumnHeadersHeight = 列高1 : DGV3.AllowUserToAddRows = False : DGV3.RowTemplate.Height = 列高
  54. SQL_排班系統_當天排班()
  55. da.Fill(ds3) : DGV3.DataSource = ds3.Tables(0) : conn.Close()
  56. DGV3.Columns(0).FillWeight = 欄寬1 : DGV3.Columns(1).FillWeight = 欄寬2
  57. For i As Integer = 0 To DGV3.Rows.Count - 1
  58. If DGV3.Rows(i).Cells(表頭(0)).Value.ToString = "" Then : DGV3.Rows(i).Cells(表頭(0)).Value = ""
  59. ElseIf DGV3.Rows(i).Cells(表頭(0)).Value.ToString = "1" Then : DGV3.Rows(i).Cells(表頭(0)).Value = 對話框(9)
  60. ElseIf DGV3.Rows(i).Cells(表頭(0)).Value.ToString = "2" Then : DGV3.Rows(i).Cells(表頭(0)).Value = 對話框(10)
  61. ElseIf DGV3.Rows(i).Cells(表頭(0)).Value.ToString = "3" Then : DGV3.Rows(i).Cells(表頭(0)).Value = 對話框(11)
  62. ElseIf DGV3.Rows(i).Cells(表頭(0)).Value.ToString = "4" Then : DGV3.Rows(i).Cells(表頭(0)).Value = 對話框(12)
  63. ElseIf DGV3.Rows(i).Cells(表頭(0)).Value.ToString = "5" Then : DGV3.Rows(i).Cells(表頭(0)).Value = 對話框(13) : End If
  64. Next
  65. End Sub
  66. Private Sub 讀取班別4()
  67. DGV4.DataSource = Nothing : ds4.Clear()
  68. DGV4.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
  69. DGV4.ColumnHeadersHeight = 列高1 : DGV4.AllowUserToAddRows = False : DGV4.RowTemplate.Height = 列高
  70. SQL_排班系統_當天排班()
  71. da.Fill(ds4) : DGV4.DataSource = ds4.Tables(0) : conn.Close()
  72. DGV4.Columns(0).FillWeight = 欄寬1 : DGV4.Columns(1).FillWeight = 欄寬2
  73. For i As Integer = 0 To DGV4.Rows.Count - 1
  74. If DGV4.Rows(i).Cells(表頭(0)).Value.ToString = "" Then : DGV4.Rows(i).Cells(表頭(0)).Value = ""
  75. ElseIf DGV4.Rows(i).Cells(表頭(0)).Value.ToString = "1" Then : DGV4.Rows(i).Cells(表頭(0)).Value = 對話框(9)
  76. ElseIf DGV4.Rows(i).Cells(表頭(0)).Value.ToString = "2" Then : DGV4.Rows(i).Cells(表頭(0)).Value = 對話框(10)
  77. ElseIf DGV4.Rows(i).Cells(表頭(0)).Value.ToString = "3" Then : DGV4.Rows(i).Cells(表頭(0)).Value = 對話框(11)
  78. ElseIf DGV4.Rows(i).Cells(表頭(0)).Value.ToString = "4" Then : DGV4.Rows(i).Cells(表頭(0)).Value = 對話框(12)
  79. ElseIf DGV4.Rows(i).Cells(表頭(0)).Value.ToString = "5" Then : DGV4.Rows(i).Cells(表頭(0)).Value = 對話框(13) : End If
  80. Next
  81. End Sub
  82. Private Sub 讀取班別5()
  83. DGV5.DataSource = Nothing : ds5.Clear()
  84. DGV5.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
  85. DGV5.ColumnHeadersHeight = 列高1 : DGV5.AllowUserToAddRows = False : DGV5.RowTemplate.Height = 列高
  86. SQL_排班系統_當天排班()
  87. da.Fill(ds5) : DGV5.DataSource = ds5.Tables(0) : conn.Close()
  88. DGV5.Columns(0).FillWeight = 欄寬1 : DGV5.Columns(1).FillWeight = 欄寬2
  89. For i As Integer = 0 To DGV5.Rows.Count - 1
  90. If DGV5.Rows(i).Cells(表頭(0)).Value.ToString = "" Then : DGV5.Rows(i).Cells(表頭(0)).Value = ""
  91. ElseIf DGV5.Rows(i).Cells(表頭(0)).Value.ToString = "1" Then : DGV5.Rows(i).Cells(表頭(0)).Value = 對話框(9)
  92. ElseIf DGV5.Rows(i).Cells(表頭(0)).Value.ToString = "2" Then : DGV5.Rows(i).Cells(表頭(0)).Value = 對話框(10)
  93. ElseIf DGV5.Rows(i).Cells(表頭(0)).Value.ToString = "3" Then : DGV5.Rows(i).Cells(表頭(0)).Value = 對話框(11)
  94. ElseIf DGV5.Rows(i).Cells(表頭(0)).Value.ToString = "4" Then : DGV5.Rows(i).Cells(表頭(0)).Value = 對話框(12)
  95. ElseIf DGV5.Rows(i).Cells(表頭(0)).Value.ToString = "5" Then : DGV5.Rows(i).Cells(表頭(0)).Value = 對話框(13) : End If
  96. Next
  97. End Sub
  98. Private Sub 讀取班別6()
  99. DGV6.DataSource = Nothing : ds6.Clear()
  100. DGV6.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
  101. DGV6.ColumnHeadersHeight = 列高1 : DGV6.AllowUserToAddRows = False : DGV6.RowTemplate.Height = 列高
  102. SQL_排班系統_當天排班()
  103. da.Fill(ds6) : DGV6.DataSource = ds6.Tables(0) : conn.Close()
  104. DGV6.Columns(0).FillWeight = 欄寬1 : DGV6.Columns(1).FillWeight = 欄寬2
  105. For i As Integer = 0 To DGV6.Rows.Count - 1
  106. If DGV6.Rows(i).Cells(表頭(0)).Value.ToString = "" Then : DGV6.Rows(i).Cells(表頭(0)).Value = ""
  107. ElseIf DGV6.Rows(i).Cells(表頭(0)).Value.ToString = "1" Then : DGV6.Rows(i).Cells(表頭(0)).Value = 對話框(9)
  108. ElseIf DGV6.Rows(i).Cells(表頭(0)).Value.ToString = "2" Then : DGV6.Rows(i).Cells(表頭(0)).Value = 對話框(10)
  109. ElseIf DGV6.Rows(i).Cells(表頭(0)).Value.ToString = "3" Then : DGV6.Rows(i).Cells(表頭(0)).Value = 對話框(11)
  110. ElseIf DGV6.Rows(i).Cells(表頭(0)).Value.ToString = "4" Then : DGV6.Rows(i).Cells(表頭(0)).Value = 對話框(12)
  111. ElseIf DGV6.Rows(i).Cells(表頭(0)).Value.ToString = "5" Then : DGV6.Rows(i).Cells(表頭(0)).Value = 對話框(13) : End If
  112. Next
  113. End Sub
  114. Private Sub 讀取班別7()
  115. DGV7.DataSource = Nothing : ds7.Clear()
  116. DGV7.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
  117. DGV7.ColumnHeadersHeight = 列高1 : DGV7.AllowUserToAddRows = False : DGV7.RowTemplate.Height = 列高
  118. SQL_排班系統_當天排班()
  119. da.Fill(ds7) : DGV7.DataSource = ds7.Tables(0) : conn.Close()
  120. DGV7.Columns(0).FillWeight = 欄寬1 : DGV7.Columns(1).FillWeight = 欄寬2
  121. For i As Integer = 0 To DGV7.Rows.Count - 1
  122. If DGV7.Rows(i).Cells(表頭(0)).Value.ToString = "" Then : DGV7.Rows(i).Cells(表頭(0)).Value = ""
  123. ElseIf DGV7.Rows(i).Cells(表頭(0)).Value.ToString = "1" Then : DGV7.Rows(i).Cells(表頭(0)).Value = 對話框(9)
  124. ElseIf DGV7.Rows(i).Cells(表頭(0)).Value.ToString = "2" Then : DGV7.Rows(i).Cells(表頭(0)).Value = 對話框(10)
  125. ElseIf DGV7.Rows(i).Cells(表頭(0)).Value.ToString = "3" Then : DGV7.Rows(i).Cells(表頭(0)).Value = 對話框(11)
  126. ElseIf DGV7.Rows(i).Cells(表頭(0)).Value.ToString = "4" Then : DGV7.Rows(i).Cells(表頭(0)).Value = 對話框(12)
  127. ElseIf DGV7.Rows(i).Cells(表頭(0)).Value.ToString = "5" Then : DGV7.Rows(i).Cells(表頭(0)).Value = 對話框(13) : End If
  128. Next
  129. End Sub
  130. Private Sub 讀取班別8()
  131. DGV8.DataSource = Nothing : ds8.Clear()
  132. DGV8.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
  133. DGV8.ColumnHeadersHeight = 列高1 : DGV8.AllowUserToAddRows = False : DGV8.RowTemplate.Height = 列高
  134. SQL_排班系統_當天排班()
  135. da.Fill(ds8) : DGV8.DataSource = ds8.Tables(0) : conn.Close()
  136. DGV8.Columns(0).FillWeight = 欄寬1 : DGV8.Columns(1).FillWeight = 欄寬2
  137. For i As Integer = 0 To DGV8.Rows.Count - 1
  138. If DGV8.Rows(i).Cells(表頭(0)).Value.ToString = "" Then : DGV8.Rows(i).Cells(表頭(0)).Value = ""
  139. ElseIf DGV8.Rows(i).Cells(表頭(0)).Value.ToString = "1" Then : DGV8.Rows(i).Cells(表頭(0)).Value = 對話框(9)
  140. ElseIf DGV8.Rows(i).Cells(表頭(0)).Value.ToString = "2" Then : DGV8.Rows(i).Cells(表頭(0)).Value = 對話框(10)
  141. ElseIf DGV8.Rows(i).Cells(表頭(0)).Value.ToString = "3" Then : DGV8.Rows(i).Cells(表頭(0)).Value = 對話框(11)
  142. ElseIf DGV8.Rows(i).Cells(表頭(0)).Value.ToString = "4" Then : DGV8.Rows(i).Cells(表頭(0)).Value = 對話框(12)
  143. ElseIf DGV8.Rows(i).Cells(表頭(0)).Value.ToString = "5" Then : DGV8.Rows(i).Cells(表頭(0)).Value = 對話框(13) : End If
  144. Next
  145. End Sub
  146. Private Sub 讀取班別9()
  147. DGV9.DataSource = Nothing : ds9.Clear()
  148. DGV9.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
  149. DGV9.ColumnHeadersHeight = 列高1 : DGV9.AllowUserToAddRows = False : DGV9.RowTemplate.Height = 列高
  150. SQL_排班系統_當天排班()
  151. da.Fill(ds9) : DGV9.DataSource = ds9.Tables(0) : conn.Close()
  152. DGV9.Columns(0).FillWeight = 欄寬1 : DGV9.Columns(1).FillWeight = 欄寬2
  153. For i As Integer = 0 To DGV9.Rows.Count - 1
  154. If DGV9.Rows(i).Cells(表頭(0)).Value.ToString = "" Then : DGV9.Rows(i).Cells(表頭(0)).Value = ""
  155. ElseIf DGV9.Rows(i).Cells(表頭(0)).Value.ToString = "1" Then : DGV9.Rows(i).Cells(表頭(0)).Value = 對話框(9)
  156. ElseIf DGV9.Rows(i).Cells(表頭(0)).Value.ToString = "2" Then : DGV9.Rows(i).Cells(表頭(0)).Value = 對話框(10)
  157. ElseIf DGV9.Rows(i).Cells(表頭(0)).Value.ToString = "3" Then : DGV9.Rows(i).Cells(表頭(0)).Value = 對話框(11)
  158. ElseIf DGV9.Rows(i).Cells(表頭(0)).Value.ToString = "4" Then : DGV9.Rows(i).Cells(表頭(0)).Value = 對話框(12)
  159. ElseIf DGV9.Rows(i).Cells(表頭(0)).Value.ToString = "5" Then : DGV9.Rows(i).Cells(表頭(0)).Value = 對話框(13) : End If
  160. Next
  161. End Sub
  162. Private Sub 讀取班別10()
  163. DGV10.DataSource = Nothing : ds10.Clear()
  164. DGV10.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
  165. DGV10.ColumnHeadersHeight = 列高1 : DGV10.AllowUserToAddRows = False : DGV10.RowTemplate.Height = 列高
  166. SQL_排班系統_當天排班()
  167. da.Fill(ds10) : DGV10.DataSource = ds10.Tables(0) : conn.Close()
  168. DGV10.Columns(0).FillWeight = 欄寬1 : DGV10.Columns(1).FillWeight = 欄寬2
  169. For i As Integer = 0 To DGV10.Rows.Count - 1
  170. If DGV10.Rows(i).Cells(表頭(0)).Value.ToString = "" Then : DGV10.Rows(i).Cells(表頭(0)).Value = ""
  171. ElseIf DGV10.Rows(i).Cells(表頭(0)).Value.ToString = "1" Then : DGV10.Rows(i).Cells(表頭(0)).Value = 對話框(9)
  172. ElseIf DGV10.Rows(i).Cells(表頭(0)).Value.ToString = "2" Then : DGV10.Rows(i).Cells(表頭(0)).Value = 對話框(10)
  173. ElseIf DGV10.Rows(i).Cells(表頭(0)).Value.ToString = "3" Then : DGV10.Rows(i).Cells(表頭(0)).Value = 對話框(11)
  174. ElseIf DGV10.Rows(i).Cells(表頭(0)).Value.ToString = "4" Then : DGV10.Rows(i).Cells(表頭(0)).Value = 對話框(12)
  175. ElseIf DGV10.Rows(i).Cells(表頭(0)).Value.ToString = "5" Then : DGV10.Rows(i).Cells(表頭(0)).Value = 對話框(13) : End If
  176. Next
  177. End Sub
  178. Private Sub 讀取班別11()
  179. DGV11.DataSource = Nothing : ds11.Clear()
  180. DGV11.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
  181. DGV11.ColumnHeadersHeight = 列高1 : DGV11.AllowUserToAddRows = False : DGV11.RowTemplate.Height = 列高
  182. SQL_排班系統_當天排班()
  183. da.Fill(ds11) : DGV11.DataSource = ds11.Tables(0) : conn.Close()
  184. DGV11.Columns(0).FillWeight = 欄寬1 : DGV11.Columns(1).FillWeight = 欄寬2
  185. For i As Integer = 0 To DGV11.Rows.Count - 1
  186. If DGV11.Rows(i).Cells(表頭(0)).Value.ToString = "" Then : DGV11.Rows(i).Cells(表頭(0)).Value = ""
  187. ElseIf DGV11.Rows(i).Cells(表頭(0)).Value.ToString = "1" Then : DGV11.Rows(i).Cells(表頭(0)).Value = 對話框(9)
  188. ElseIf DGV11.Rows(i).Cells(表頭(0)).Value.ToString = "2" Then : DGV11.Rows(i).Cells(表頭(0)).Value = 對話框(10)
  189. ElseIf DGV11.Rows(i).Cells(表頭(0)).Value.ToString = "3" Then : DGV11.Rows(i).Cells(表頭(0)).Value = 對話框(11)
  190. ElseIf DGV11.Rows(i).Cells(表頭(0)).Value.ToString = "4" Then : DGV11.Rows(i).Cells(表頭(0)).Value = 對話框(12)
  191. ElseIf DGV11.Rows(i).Cells(表頭(0)).Value.ToString = "5" Then : DGV11.Rows(i).Cells(表頭(0)).Value = 對話框(13) : End If
  192. Next
  193. End Sub
  194. Private Sub 讀取班別12()
  195. DGV12.DataSource = Nothing : ds12.Clear()
  196. DGV12.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
  197. DGV12.ColumnHeadersHeight = 列高1 : DGV12.AllowUserToAddRows = False : DGV12.RowTemplate.Height = 列高
  198. SQL_排班系統_當天排班()
  199. da.Fill(ds12) : DGV12.DataSource = ds12.Tables(0) : conn.Close()
  200. DGV12.Columns(0).FillWeight = 欄寬1 : DGV12.Columns(1).FillWeight = 欄寬2
  201. For i As Integer = 0 To DGV12.Rows.Count - 1
  202. If DGV12.Rows(i).Cells(表頭(0)).Value.ToString = "" Then : DGV12.Rows(i).Cells(表頭(0)).Value = ""
  203. ElseIf DGV12.Rows(i).Cells(表頭(0)).Value.ToString = "1" Then : DGV12.Rows(i).Cells(表頭(0)).Value = 對話框(9)
  204. ElseIf DGV12.Rows(i).Cells(表頭(0)).Value.ToString = "2" Then : DGV12.Rows(i).Cells(表頭(0)).Value = 對話框(10)
  205. ElseIf DGV12.Rows(i).Cells(表頭(0)).Value.ToString = "3" Then : DGV12.Rows(i).Cells(表頭(0)).Value = 對話框(11)
  206. ElseIf DGV12.Rows(i).Cells(表頭(0)).Value.ToString = "4" Then : DGV12.Rows(i).Cells(表頭(0)).Value = 對話框(12)
  207. ElseIf DGV12.Rows(i).Cells(表頭(0)).Value.ToString = "5" Then : DGV12.Rows(i).Cells(表頭(0)).Value = 對話框(13) : End If
  208. Next
  209. End Sub
  210. Private Sub 讀取班別13()
  211. DGV13.DataSource = Nothing : ds13.Clear()
  212. DGV13.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
  213. DGV13.ColumnHeadersHeight = 列高1 : DGV13.AllowUserToAddRows = False : DGV13.RowTemplate.Height = 列高
  214. SQL_排班系統_當天排班()
  215. da.Fill(ds13) : DGV13.DataSource = ds13.Tables(0) : conn.Close()
  216. DGV13.Columns(0).FillWeight = 欄寬1 : DGV13.Columns(1).FillWeight = 欄寬2
  217. For i As Integer = 0 To DGV13.Rows.Count - 1
  218. If DGV13.Rows(i).Cells(表頭(0)).Value.ToString = "" Then : DGV13.Rows(i).Cells(表頭(0)).Value = ""
  219. ElseIf DGV13.Rows(i).Cells(表頭(0)).Value.ToString = "1" Then : DGV13.Rows(i).Cells(表頭(0)).Value = 對話框(9)
  220. ElseIf DGV13.Rows(i).Cells(表頭(0)).Value.ToString = "2" Then : DGV13.Rows(i).Cells(表頭(0)).Value = 對話框(10)
  221. ElseIf DGV13.Rows(i).Cells(表頭(0)).Value.ToString = "3" Then : DGV13.Rows(i).Cells(表頭(0)).Value = 對話框(11)
  222. ElseIf DGV13.Rows(i).Cells(表頭(0)).Value.ToString = "4" Then : DGV13.Rows(i).Cells(表頭(0)).Value = 對話框(12)
  223. ElseIf DGV13.Rows(i).Cells(表頭(0)).Value.ToString = "5" Then : DGV13.Rows(i).Cells(表頭(0)).Value = 對話框(13) : End If
  224. Next
  225. End Sub
  226. Private Sub 讀取班別14()
  227. DGV14.DataSource = Nothing : ds14.Clear()
  228. DGV14.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
  229. DGV14.ColumnHeadersHeight = 列高1 : DGV14.AllowUserToAddRows = False : DGV14.RowTemplate.Height = 列高
  230. SQL_排班系統_當天排班()
  231. da.Fill(ds14) : DGV14.DataSource = ds14.Tables(0) : conn.Close()
  232. DGV14.Columns(0).FillWeight = 欄寬1 : DGV14.Columns(1).FillWeight = 欄寬2
  233. For i As Integer = 0 To DGV14.Rows.Count - 1
  234. If DGV14.Rows(i).Cells(表頭(0)).Value.ToString = "" Then : DGV14.Rows(i).Cells(表頭(0)).Value = ""
  235. ElseIf DGV14.Rows(i).Cells(表頭(0)).Value.ToString = "1" Then : DGV14.Rows(i).Cells(表頭(0)).Value = 對話框(9)
  236. ElseIf DGV14.Rows(i).Cells(表頭(0)).Value.ToString = "2" Then : DGV14.Rows(i).Cells(表頭(0)).Value = 對話框(10)
  237. ElseIf DGV14.Rows(i).Cells(表頭(0)).Value.ToString = "3" Then : DGV14.Rows(i).Cells(表頭(0)).Value = 對話框(11)
  238. ElseIf DGV14.Rows(i).Cells(表頭(0)).Value.ToString = "4" Then : DGV14.Rows(i).Cells(表頭(0)).Value = 對話框(12)
  239. ElseIf DGV14.Rows(i).Cells(表頭(0)).Value.ToString = "5" Then : DGV14.Rows(i).Cells(表頭(0)).Value = 對話框(13) : End If
  240. Next
  241. End Sub
  242. Private Sub 讀取班別15()
  243. DGV15.DataSource = Nothing : ds15.Clear()
  244. DGV15.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
  245. DGV15.ColumnHeadersHeight = 列高1 : DGV15.AllowUserToAddRows = False : DGV15.RowTemplate.Height = 列高
  246. SQL_排班系統_當天排班()
  247. da.Fill(ds15) : DGV15.DataSource = ds15.Tables(0) : conn.Close()
  248. DGV15.Columns(0).FillWeight = 欄寬1 : DGV15.Columns(1).FillWeight = 欄寬2
  249. For i As Integer = 0 To DGV15.Rows.Count - 1
  250. If DGV15.Rows(i).Cells(表頭(0)).Value.ToString = "" Then : DGV15.Rows(i).Cells(表頭(0)).Value = ""
  251. ElseIf DGV15.Rows(i).Cells(表頭(0)).Value.ToString = "1" Then : DGV15.Rows(i).Cells(表頭(0)).Value = 對話框(9)
  252. ElseIf DGV15.Rows(i).Cells(表頭(0)).Value.ToString = "2" Then : DGV15.Rows(i).Cells(表頭(0)).Value = 對話框(10)
  253. ElseIf DGV15.Rows(i).Cells(表頭(0)).Value.ToString = "3" Then : DGV15.Rows(i).Cells(表頭(0)).Value = 對話框(11)
  254. ElseIf DGV15.Rows(i).Cells(表頭(0)).Value.ToString = "4" Then : DGV15.Rows(i).Cells(表頭(0)).Value = 對話框(12)
  255. ElseIf DGV15.Rows(i).Cells(表頭(0)).Value.ToString = "5" Then : DGV15.Rows(i).Cells(表頭(0)).Value = 對話框(13) : End If
  256. Next
  257. End Sub
  258. Private Sub 讀取班別16()
  259. DGV16.DataSource = Nothing : ds16.Clear()
  260. DGV16.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
  261. DGV16.ColumnHeadersHeight = 列高1 : DGV16.AllowUserToAddRows = False : DGV16.RowTemplate.Height = 列高
  262. SQL_排班系統_當天排班()
  263. da.Fill(ds16) : DGV16.DataSource = ds16.Tables(0) : conn.Close()
  264. DGV16.Columns(0).FillWeight = 欄寬1 : DGV16.Columns(1).FillWeight = 欄寬2
  265. For i As Integer = 0 To DGV16.Rows.Count - 1
  266. If DGV16.Rows(i).Cells(表頭(0)).Value.ToString = "" Then : DGV16.Rows(i).Cells(表頭(0)).Value = ""
  267. ElseIf DGV16.Rows(i).Cells(表頭(0)).Value.ToString = "1" Then : DGV16.Rows(i).Cells(表頭(0)).Value = 對話框(9)
  268. ElseIf DGV16.Rows(i).Cells(表頭(0)).Value.ToString = "2" Then : DGV16.Rows(i).Cells(表頭(0)).Value = 對話框(10)
  269. ElseIf DGV16.Rows(i).Cells(表頭(0)).Value.ToString = "3" Then : DGV16.Rows(i).Cells(表頭(0)).Value = 對話框(11)
  270. ElseIf DGV16.Rows(i).Cells(表頭(0)).Value.ToString = "4" Then : DGV16.Rows(i).Cells(表頭(0)).Value = 對話框(12)
  271. ElseIf DGV16.Rows(i).Cells(表頭(0)).Value.ToString = "5" Then : DGV16.Rows(i).Cells(表頭(0)).Value = 對話框(13) : End If
  272. Next
  273. End Sub
  274. Private Sub 讀取班別17()
  275. DGV17.DataSource = Nothing : ds17.Clear()
  276. DGV17.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
  277. DGV17.ColumnHeadersHeight = 列高1 : DGV17.AllowUserToAddRows = False : DGV17.RowTemplate.Height = 列高
  278. SQL_排班系統_當天排班()
  279. da.Fill(ds17) : DGV17.DataSource = ds17.Tables(0) : conn.Close()
  280. DGV17.Columns(0).FillWeight = 欄寬1 : DGV17.Columns(1).FillWeight = 欄寬2
  281. For i As Integer = 0 To DGV17.Rows.Count - 1
  282. If DGV17.Rows(i).Cells(表頭(0)).Value.ToString = "" Then : DGV17.Rows(i).Cells(表頭(0)).Value = ""
  283. ElseIf DGV17.Rows(i).Cells(表頭(0)).Value.ToString = "1" Then : DGV17.Rows(i).Cells(表頭(0)).Value = 對話框(9)
  284. ElseIf DGV17.Rows(i).Cells(表頭(0)).Value.ToString = "2" Then : DGV17.Rows(i).Cells(表頭(0)).Value = 對話框(10)
  285. ElseIf DGV17.Rows(i).Cells(表頭(0)).Value.ToString = "3" Then : DGV17.Rows(i).Cells(表頭(0)).Value = 對話框(11)
  286. ElseIf DGV17.Rows(i).Cells(表頭(0)).Value.ToString = "4" Then : DGV17.Rows(i).Cells(表頭(0)).Value = 對話框(12)
  287. ElseIf DGV17.Rows(i).Cells(表頭(0)).Value.ToString = "5" Then : DGV17.Rows(i).Cells(表頭(0)).Value = 對話框(13) : End If
  288. Next
  289. End Sub
  290. Private Sub 讀取班別18()
  291. DGV18.DataSource = Nothing : ds18.Clear()
  292. DGV18.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
  293. DGV18.ColumnHeadersHeight = 列高1 : DGV18.AllowUserToAddRows = False : DGV18.RowTemplate.Height = 列高
  294. SQL_排班系統_當天排班()
  295. da.Fill(ds18) : DGV18.DataSource = ds18.Tables(0) : conn.Close()
  296. DGV18.Columns(0).FillWeight = 欄寬1 : DGV18.Columns(1).FillWeight = 欄寬2
  297. For i As Integer = 0 To DGV18.Rows.Count - 1
  298. If DGV18.Rows(i).Cells(表頭(0)).Value.ToString = "" Then : DGV18.Rows(i).Cells(表頭(0)).Value = ""
  299. ElseIf DGV18.Rows(i).Cells(表頭(0)).Value.ToString = "1" Then : DGV18.Rows(i).Cells(表頭(0)).Value = 對話框(9)
  300. ElseIf DGV18.Rows(i).Cells(表頭(0)).Value.ToString = "2" Then : DGV18.Rows(i).Cells(表頭(0)).Value = 對話框(10)
  301. ElseIf DGV18.Rows(i).Cells(表頭(0)).Value.ToString = "3" Then : DGV18.Rows(i).Cells(表頭(0)).Value = 對話框(11)
  302. ElseIf DGV18.Rows(i).Cells(表頭(0)).Value.ToString = "4" Then : DGV18.Rows(i).Cells(表頭(0)).Value = 對話框(12)
  303. ElseIf DGV18.Rows(i).Cells(表頭(0)).Value.ToString = "5" Then : DGV18.Rows(i).Cells(表頭(0)).Value = 對話框(13) : End If
  304. Next
  305. End Sub
  306. Private Sub 讀取班別19()
  307. DGV19.DataSource = Nothing : ds19.Clear()
  308. DGV19.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
  309. DGV19.ColumnHeadersHeight = 列高1 : DGV19.AllowUserToAddRows = False : DGV19.RowTemplate.Height = 列高
  310. SQL_排班系統_當天排班()
  311. da.Fill(ds19) : DGV19.DataSource = ds19.Tables(0) : conn.Close()
  312. DGV19.Columns(0).FillWeight = 欄寬1 : DGV19.Columns(1).FillWeight = 欄寬2
  313. For i As Integer = 0 To DGV19.Rows.Count - 1
  314. If DGV19.Rows(i).Cells(表頭(0)).Value.ToString = "" Then : DGV19.Rows(i).Cells(表頭(0)).Value = ""
  315. ElseIf DGV19.Rows(i).Cells(表頭(0)).Value.ToString = "1" Then : DGV19.Rows(i).Cells(表頭(0)).Value = 對話框(9)
  316. ElseIf DGV19.Rows(i).Cells(表頭(0)).Value.ToString = "2" Then : DGV19.Rows(i).Cells(表頭(0)).Value = 對話框(10)
  317. ElseIf DGV19.Rows(i).Cells(表頭(0)).Value.ToString = "3" Then : DGV19.Rows(i).Cells(表頭(0)).Value = 對話框(11)
  318. ElseIf DGV19.Rows(i).Cells(表頭(0)).Value.ToString = "4" Then : DGV19.Rows(i).Cells(表頭(0)).Value = 對話框(12)
  319. ElseIf DGV19.Rows(i).Cells(表頭(0)).Value.ToString = "5" Then : DGV19.Rows(i).Cells(表頭(0)).Value = 對話框(13) : End If
  320. Next
  321. End Sub
  322. Private Sub 讀取班別20()
  323. DGV20.DataSource = Nothing : ds20.Clear()
  324. DGV20.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
  325. DGV20.ColumnHeadersHeight = 列高1 : DGV20.AllowUserToAddRows = False : DGV20.RowTemplate.Height = 列高
  326. SQL_排班系統_當天排班()
  327. da.Fill(ds20) : DGV20.DataSource = ds20.Tables(0) : conn.Close()
  328. DGV20.Columns(0).FillWeight = 欄寬1 : DGV20.Columns(1).FillWeight = 欄寬2
  329. For i As Integer = 0 To DGV20.Rows.Count - 1
  330. If DGV20.Rows(i).Cells(表頭(0)).Value.ToString = "" Then : DGV20.Rows(i).Cells(表頭(0)).Value = ""
  331. ElseIf DGV20.Rows(i).Cells(表頭(0)).Value.ToString = "1" Then : DGV20.Rows(i).Cells(表頭(0)).Value = 對話框(9)
  332. ElseIf DGV20.Rows(i).Cells(表頭(0)).Value.ToString = "2" Then : DGV20.Rows(i).Cells(表頭(0)).Value = 對話框(10)
  333. ElseIf DGV20.Rows(i).Cells(表頭(0)).Value.ToString = "3" Then : DGV20.Rows(i).Cells(表頭(0)).Value = 對話框(11)
  334. ElseIf DGV20.Rows(i).Cells(表頭(0)).Value.ToString = "4" Then : DGV20.Rows(i).Cells(表頭(0)).Value = 對話框(12)
  335. ElseIf DGV20.Rows(i).Cells(表頭(0)).Value.ToString = "5" Then : DGV20.Rows(i).Cells(表頭(0)).Value = 對話框(13) : End If
  336. Next
  337. End Sub
  338. Private Sub 讀取班別21()
  339. DGV21.DataSource = Nothing : ds21.Clear()
  340. DGV21.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
  341. DGV21.ColumnHeadersHeight = 列高1 : DGV21.AllowUserToAddRows = False : DGV21.RowTemplate.Height = 列高
  342. SQL_排班系統_當天排班()
  343. da.Fill(ds21) : DGV21.DataSource = ds21.Tables(0) : conn.Close()
  344. DGV21.Columns(0).FillWeight = 欄寬1 : DGV21.Columns(1).FillWeight = 欄寬2
  345. For i As Integer = 0 To DGV21.Rows.Count - 1
  346. If DGV21.Rows(i).Cells(表頭(0)).Value.ToString = "" Then : DGV21.Rows(i).Cells(表頭(0)).Value = ""
  347. ElseIf DGV21.Rows(i).Cells(表頭(0)).Value.ToString = "1" Then : DGV21.Rows(i).Cells(表頭(0)).Value = 對話框(9)
  348. ElseIf DGV21.Rows(i).Cells(表頭(0)).Value.ToString = "2" Then : DGV21.Rows(i).Cells(表頭(0)).Value = 對話框(10)
  349. ElseIf DGV21.Rows(i).Cells(表頭(0)).Value.ToString = "3" Then : DGV21.Rows(i).Cells(表頭(0)).Value = 對話框(11)
  350. ElseIf DGV21.Rows(i).Cells(表頭(0)).Value.ToString = "4" Then : DGV21.Rows(i).Cells(表頭(0)).Value = 對話框(12)
  351. ElseIf DGV21.Rows(i).Cells(表頭(0)).Value.ToString = "5" Then : DGV21.Rows(i).Cells(表頭(0)).Value = 對話框(13) : End If
  352. Next
  353. End Sub
  354. Private Sub 讀取班別22()
  355. DGV22.DataSource = Nothing : ds22.Clear()
  356. DGV22.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
  357. DGV22.ColumnHeadersHeight = 列高1 : DGV22.AllowUserToAddRows = False : DGV22.RowTemplate.Height = 列高
  358. SQL_排班系統_當天排班()
  359. da.Fill(ds22) : DGV22.DataSource = ds22.Tables(0) : conn.Close()
  360. DGV22.Columns(0).FillWeight = 欄寬1 : DGV22.Columns(1).FillWeight = 欄寬2
  361. For i As Integer = 0 To DGV22.Rows.Count - 1
  362. If DGV22.Rows(i).Cells(表頭(0)).Value.ToString = "" Then : DGV22.Rows(i).Cells(表頭(0)).Value = ""
  363. ElseIf DGV22.Rows(i).Cells(表頭(0)).Value.ToString = "1" Then : DGV22.Rows(i).Cells(表頭(0)).Value = 對話框(9)
  364. ElseIf DGV22.Rows(i).Cells(表頭(0)).Value.ToString = "2" Then : DGV22.Rows(i).Cells(表頭(0)).Value = 對話框(10)
  365. ElseIf DGV22.Rows(i).Cells(表頭(0)).Value.ToString = "3" Then : DGV22.Rows(i).Cells(表頭(0)).Value = 對話框(11)
  366. ElseIf DGV22.Rows(i).Cells(表頭(0)).Value.ToString = "4" Then : DGV22.Rows(i).Cells(表頭(0)).Value = 對話框(12)
  367. ElseIf DGV22.Rows(i).Cells(表頭(0)).Value.ToString = "5" Then : DGV22.Rows(i).Cells(表頭(0)).Value = 對話框(13) : End If
  368. Next
  369. End Sub
  370. Private Sub 讀取班別23()
  371. DGV23.DataSource = Nothing : ds23.Clear()
  372. DGV23.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
  373. DGV23.ColumnHeadersHeight = 列高1 : DGV23.AllowUserToAddRows = False : DGV23.RowTemplate.Height = 列高
  374. SQL_排班系統_當天排班()
  375. da.Fill(ds23) : DGV23.DataSource = ds23.Tables(0) : conn.Close()
  376. DGV23.Columns(0).FillWeight = 欄寬1 : DGV23.Columns(1).FillWeight = 欄寬2
  377. For i As Integer = 0 To DGV23.Rows.Count - 1
  378. If DGV23.Rows(i).Cells(表頭(0)).Value.ToString = "" Then : DGV23.Rows(i).Cells(表頭(0)).Value = ""
  379. ElseIf DGV23.Rows(i).Cells(表頭(0)).Value.ToString = "1" Then : DGV23.Rows(i).Cells(表頭(0)).Value = 對話框(9)
  380. ElseIf DGV23.Rows(i).Cells(表頭(0)).Value.ToString = "2" Then : DGV23.Rows(i).Cells(表頭(0)).Value = 對話框(10)
  381. ElseIf DGV23.Rows(i).Cells(表頭(0)).Value.ToString = "3" Then : DGV23.Rows(i).Cells(表頭(0)).Value = 對話框(11)
  382. ElseIf DGV23.Rows(i).Cells(表頭(0)).Value.ToString = "4" Then : DGV23.Rows(i).Cells(表頭(0)).Value = 對話框(12)
  383. ElseIf DGV23.Rows(i).Cells(表頭(0)).Value.ToString = "5" Then : DGV23.Rows(i).Cells(表頭(0)).Value = 對話框(13) : End If
  384. Next
  385. End Sub
  386. Private Sub 讀取班別24()
  387. DGV24.DataSource = Nothing : ds24.Clear()
  388. DGV24.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
  389. DGV24.ColumnHeadersHeight = 列高1 : DGV24.AllowUserToAddRows = False : DGV24.RowTemplate.Height = 列高
  390. SQL_排班系統_當天排班()
  391. da.Fill(ds24) : DGV24.DataSource = ds24.Tables(0) : conn.Close()
  392. DGV24.Columns(0).FillWeight = 欄寬1 : DGV24.Columns(1).FillWeight = 欄寬2
  393. For i As Integer = 0 To DGV24.Rows.Count - 1
  394. If DGV24.Rows(i).Cells(表頭(0)).Value.ToString = "" Then : DGV24.Rows(i).Cells(表頭(0)).Value = ""
  395. ElseIf DGV24.Rows(i).Cells(表頭(0)).Value.ToString = "1" Then : DGV24.Rows(i).Cells(表頭(0)).Value = 對話框(9)
  396. ElseIf DGV24.Rows(i).Cells(表頭(0)).Value.ToString = "2" Then : DGV24.Rows(i).Cells(表頭(0)).Value = 對話框(10)
  397. ElseIf DGV24.Rows(i).Cells(表頭(0)).Value.ToString = "3" Then : DGV24.Rows(i).Cells(表頭(0)).Value = 對話框(11)
  398. ElseIf DGV24.Rows(i).Cells(表頭(0)).Value.ToString = "4" Then : DGV24.Rows(i).Cells(表頭(0)).Value = 對話框(12)
  399. ElseIf DGV24.Rows(i).Cells(表頭(0)).Value.ToString = "5" Then : DGV24.Rows(i).Cells(表頭(0)).Value = 對話框(13) : End If
  400. Next
  401. End Sub
  402. Private Sub 讀取班別25()
  403. DGV25.DataSource = Nothing : ds25.Clear()
  404. DGV25.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
  405. DGV25.ColumnHeadersHeight = 列高1 : DGV25.AllowUserToAddRows = False : DGV25.RowTemplate.Height = 列高
  406. SQL_排班系統_當天排班()
  407. da.Fill(ds25) : DGV25.DataSource = ds25.Tables(0) : conn.Close()
  408. DGV25.Columns(0).FillWeight = 欄寬1 : DGV25.Columns(1).FillWeight = 欄寬2
  409. For i As Integer = 0 To DGV25.Rows.Count - 1
  410. If DGV25.Rows(i).Cells(表頭(0)).Value.ToString = "" Then : DGV25.Rows(i).Cells(表頭(0)).Value = ""
  411. ElseIf DGV25.Rows(i).Cells(表頭(0)).Value.ToString = "1" Then : DGV25.Rows(i).Cells(表頭(0)).Value = 對話框(9)
  412. ElseIf DGV25.Rows(i).Cells(表頭(0)).Value.ToString = "2" Then : DGV25.Rows(i).Cells(表頭(0)).Value = 對話框(10)
  413. ElseIf DGV25.Rows(i).Cells(表頭(0)).Value.ToString = "3" Then : DGV25.Rows(i).Cells(表頭(0)).Value = 對話框(11)
  414. ElseIf DGV25.Rows(i).Cells(表頭(0)).Value.ToString = "4" Then : DGV25.Rows(i).Cells(表頭(0)).Value = 對話框(12)
  415. ElseIf DGV25.Rows(i).Cells(表頭(0)).Value.ToString = "5" Then : DGV25.Rows(i).Cells(表頭(0)).Value = 對話框(13) : End If
  416. Next
  417. End Sub
  418. Private Sub 讀取班別26()
  419. DGV26.DataSource = Nothing : ds26.Clear()
  420. DGV26.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
  421. DGV26.ColumnHeadersHeight = 列高1 : DGV26.AllowUserToAddRows = False : DGV26.RowTemplate.Height = 列高
  422. SQL_排班系統_當天排班()
  423. da.Fill(ds26) : DGV26.DataSource = ds26.Tables(0) : conn.Close()
  424. DGV26.Columns(0).FillWeight = 欄寬1 : DGV26.Columns(1).FillWeight = 欄寬2
  425. For i As Integer = 0 To DGV26.Rows.Count - 1
  426. If DGV26.Rows(i).Cells(表頭(0)).Value.ToString = "" Then : DGV26.Rows(i).Cells(表頭(0)).Value = ""
  427. ElseIf DGV26.Rows(i).Cells(表頭(0)).Value.ToString = "1" Then : DGV26.Rows(i).Cells(表頭(0)).Value = 對話框(9)
  428. ElseIf DGV26.Rows(i).Cells(表頭(0)).Value.ToString = "2" Then : DGV26.Rows(i).Cells(表頭(0)).Value = 對話框(10)
  429. ElseIf DGV26.Rows(i).Cells(表頭(0)).Value.ToString = "3" Then : DGV26.Rows(i).Cells(表頭(0)).Value = 對話框(11)
  430. ElseIf DGV26.Rows(i).Cells(表頭(0)).Value.ToString = "4" Then : DGV26.Rows(i).Cells(表頭(0)).Value = 對話框(12)
  431. ElseIf DGV26.Rows(i).Cells(表頭(0)).Value.ToString = "5" Then : DGV26.Rows(i).Cells(表頭(0)).Value = 對話框(13) : End If
  432. Next
  433. End Sub
  434. Private Sub 讀取班別27()
  435. DGV27.DataSource = Nothing : ds27.Clear()
  436. DGV27.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
  437. DGV27.ColumnHeadersHeight = 列高1 : DGV27.AllowUserToAddRows = False : DGV27.RowTemplate.Height = 列高
  438. SQL_排班系統_當天排班()
  439. da.Fill(ds27) : DGV27.DataSource = ds27.Tables(0) : conn.Close()
  440. DGV27.Columns(0).FillWeight = 欄寬1 : DGV27.Columns(1).FillWeight = 欄寬2
  441. For i As Integer = 0 To DGV27.Rows.Count - 1
  442. If DGV27.Rows(i).Cells(表頭(0)).Value.ToString = "" Then : DGV27.Rows(i).Cells(表頭(0)).Value = ""
  443. ElseIf DGV27.Rows(i).Cells(表頭(0)).Value.ToString = "1" Then : DGV27.Rows(i).Cells(表頭(0)).Value = 對話框(9)
  444. ElseIf DGV27.Rows(i).Cells(表頭(0)).Value.ToString = "2" Then : DGV27.Rows(i).Cells(表頭(0)).Value = 對話框(10)
  445. ElseIf DGV27.Rows(i).Cells(表頭(0)).Value.ToString = "3" Then : DGV27.Rows(i).Cells(表頭(0)).Value = 對話框(11)
  446. ElseIf DGV27.Rows(i).Cells(表頭(0)).Value.ToString = "4" Then : DGV27.Rows(i).Cells(表頭(0)).Value = 對話框(12)
  447. ElseIf DGV27.Rows(i).Cells(表頭(0)).Value.ToString = "5" Then : DGV27.Rows(i).Cells(表頭(0)).Value = 對話框(13) : End If
  448. Next
  449. End Sub
  450. Private Sub 讀取班別28()
  451. DGV28.DataSource = Nothing : ds28.Clear()
  452. DGV28.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
  453. DGV28.ColumnHeadersHeight = 列高1 : DGV28.AllowUserToAddRows = False : DGV28.RowTemplate.Height = 列高
  454. SQL_排班系統_當天排班()
  455. da.Fill(ds28) : DGV28.DataSource = ds28.Tables(0) : conn.Close()
  456. DGV28.Columns(0).FillWeight = 欄寬1 : DGV28.Columns(1).FillWeight = 欄寬2
  457. For i As Integer = 0 To DGV28.Rows.Count - 1
  458. If DGV28.Rows(i).Cells(表頭(0)).Value.ToString = "" Then : DGV28.Rows(i).Cells(表頭(0)).Value = ""
  459. ElseIf DGV28.Rows(i).Cells(表頭(0)).Value.ToString = "1" Then : DGV28.Rows(i).Cells(表頭(0)).Value = 對話框(9)
  460. ElseIf DGV28.Rows(i).Cells(表頭(0)).Value.ToString = "2" Then : DGV28.Rows(i).Cells(表頭(0)).Value = 對話框(10)
  461. ElseIf DGV28.Rows(i).Cells(表頭(0)).Value.ToString = "3" Then : DGV28.Rows(i).Cells(表頭(0)).Value = 對話框(11)
  462. ElseIf DGV28.Rows(i).Cells(表頭(0)).Value.ToString = "4" Then : DGV28.Rows(i).Cells(表頭(0)).Value = 對話框(12)
  463. ElseIf DGV28.Rows(i).Cells(表頭(0)).Value.ToString = "5" Then : DGV28.Rows(i).Cells(表頭(0)).Value = 對話框(13) : End If
  464. Next
  465. End Sub
  466. Private Sub 讀取班別29()
  467. DGV29.DataSource = Nothing : ds29.Clear()
  468. DGV29.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
  469. DGV29.ColumnHeadersHeight = 列高1 : DGV29.AllowUserToAddRows = False : DGV29.RowTemplate.Height = 列高
  470. SQL_排班系統_當天排班()
  471. da.Fill(ds29) : DGV29.DataSource = ds29.Tables(0) : conn.Close()
  472. DGV29.Columns(0).FillWeight = 欄寬1 : DGV29.Columns(1).FillWeight = 欄寬2
  473. For i As Integer = 0 To DGV29.Rows.Count - 1
  474. If DGV29.Rows(i).Cells(表頭(0)).Value.ToString = "" Then : DGV29.Rows(i).Cells(表頭(0)).Value = ""
  475. ElseIf DGV29.Rows(i).Cells(表頭(0)).Value.ToString = "1" Then : DGV29.Rows(i).Cells(表頭(0)).Value = 對話框(9)
  476. ElseIf DGV29.Rows(i).Cells(表頭(0)).Value.ToString = "2" Then : DGV29.Rows(i).Cells(表頭(0)).Value = 對話框(10)
  477. ElseIf DGV29.Rows(i).Cells(表頭(0)).Value.ToString = "3" Then : DGV29.Rows(i).Cells(表頭(0)).Value = 對話框(11)
  478. ElseIf DGV29.Rows(i).Cells(表頭(0)).Value.ToString = "4" Then : DGV29.Rows(i).Cells(表頭(0)).Value = 對話框(12)
  479. ElseIf DGV29.Rows(i).Cells(表頭(0)).Value.ToString = "5" Then : DGV29.Rows(i).Cells(表頭(0)).Value = 對話框(13) : End If
  480. Next
  481. End Sub
  482. Private Sub 讀取班別30()
  483. DGV30.DataSource = Nothing : ds30.Clear()
  484. DGV30.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
  485. DGV30.ColumnHeadersHeight = 列高1 : DGV30.AllowUserToAddRows = False : DGV30.RowTemplate.Height = 列高
  486. SQL_排班系統_當天排班()
  487. da.Fill(ds30) : DGV30.DataSource = ds30.Tables(0) : conn.Close()
  488. DGV30.Columns(0).FillWeight = 欄寬1 : DGV30.Columns(1).FillWeight = 欄寬2
  489. For i As Integer = 0 To DGV30.Rows.Count - 1
  490. If DGV30.Rows(i).Cells(表頭(0)).Value.ToString = "" Then : DGV30.Rows(i).Cells(表頭(0)).Value = ""
  491. ElseIf DGV30.Rows(i).Cells(表頭(0)).Value.ToString = "1" Then : DGV30.Rows(i).Cells(表頭(0)).Value = 對話框(9)
  492. ElseIf DGV30.Rows(i).Cells(表頭(0)).Value.ToString = "2" Then : DGV30.Rows(i).Cells(表頭(0)).Value = 對話框(10)
  493. ElseIf DGV30.Rows(i).Cells(表頭(0)).Value.ToString = "3" Then : DGV30.Rows(i).Cells(表頭(0)).Value = 對話框(11)
  494. ElseIf DGV30.Rows(i).Cells(表頭(0)).Value.ToString = "4" Then : DGV30.Rows(i).Cells(表頭(0)).Value = 對話框(12)
  495. ElseIf DGV30.Rows(i).Cells(表頭(0)).Value.ToString = "5" Then : DGV30.Rows(i).Cells(表頭(0)).Value = 對話框(13) : End If
  496. Next
  497. End Sub
  498. Private Sub 讀取班別31()
  499. DGV31.DataSource = Nothing : ds31.Clear()
  500. DGV31.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
  501. DGV31.ColumnHeadersHeight = 列高1 : DGV31.AllowUserToAddRows = False : DGV31.RowTemplate.Height = 列高
  502. SQL_排班系統_當天排班()
  503. da.Fill(ds31) : DGV31.DataSource = ds31.Tables(0) : conn.Close()
  504. DGV31.Columns(0).FillWeight = 欄寬1 : DGV31.Columns(1).FillWeight = 欄寬2
  505. For i As Integer = 0 To DGV31.Rows.Count - 1
  506. If DGV31.Rows(i).Cells(表頭(0)).Value.ToString = "" Then : DGV31.Rows(i).Cells(表頭(0)).Value = ""
  507. ElseIf DGV31.Rows(i).Cells(表頭(0)).Value.ToString = "1" Then : DGV31.Rows(i).Cells(表頭(0)).Value = 對話框(9)
  508. ElseIf DGV31.Rows(i).Cells(表頭(0)).Value.ToString = "2" Then : DGV31.Rows(i).Cells(表頭(0)).Value = 對話框(10)
  509. ElseIf DGV31.Rows(i).Cells(表頭(0)).Value.ToString = "3" Then : DGV31.Rows(i).Cells(表頭(0)).Value = 對話框(11)
  510. ElseIf DGV31.Rows(i).Cells(表頭(0)).Value.ToString = "4" Then : DGV31.Rows(i).Cells(表頭(0)).Value = 對話框(12)
  511. ElseIf DGV31.Rows(i).Cells(表頭(0)).Value.ToString = "5" Then : DGV31.Rows(i).Cells(表頭(0)).Value = 對話框(13) : End If
  512. Next
  513. End Sub
  514. Private Sub 讀取班別32()
  515. DGV32.DataSource = Nothing : ds32.Clear()
  516. DGV32.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
  517. DGV32.ColumnHeadersHeight = 列高1 : DGV32.AllowUserToAddRows = False : DGV32.RowTemplate.Height = 列高
  518. SQL_排班系統_當天排班()
  519. da.Fill(ds32) : DGV32.DataSource = ds32.Tables(0) : conn.Close()
  520. DGV32.Columns(0).FillWeight = 欄寬1 : DGV32.Columns(1).FillWeight = 欄寬2
  521. For i As Integer = 0 To DGV32.Rows.Count - 1
  522. If DGV32.Rows(i).Cells(表頭(0)).Value.ToString = "" Then : DGV32.Rows(i).Cells(表頭(0)).Value = ""
  523. ElseIf DGV32.Rows(i).Cells(表頭(0)).Value.ToString = "1" Then : DGV32.Rows(i).Cells(表頭(0)).Value = 對話框(9)
  524. ElseIf DGV32.Rows(i).Cells(表頭(0)).Value.ToString = "2" Then : DGV32.Rows(i).Cells(表頭(0)).Value = 對話框(10)
  525. ElseIf DGV32.Rows(i).Cells(表頭(0)).Value.ToString = "3" Then : DGV32.Rows(i).Cells(表頭(0)).Value = 對話框(11)
  526. ElseIf DGV32.Rows(i).Cells(表頭(0)).Value.ToString = "4" Then : DGV32.Rows(i).Cells(表頭(0)).Value = 對話框(12)
  527. ElseIf DGV32.Rows(i).Cells(表頭(0)).Value.ToString = "5" Then : DGV32.Rows(i).Cells(表頭(0)).Value = 對話框(13) : End If
  528. Next
  529. End Sub
  530. Private Sub 讀取班別33()
  531. DGV33.DataSource = Nothing : ds33.Clear()
  532. DGV33.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
  533. DGV33.ColumnHeadersHeight = 列高1 : DGV33.AllowUserToAddRows = False : DGV33.RowTemplate.Height = 列高
  534. SQL_排班系統_當天排班()
  535. da.Fill(ds33) : DGV33.DataSource = ds33.Tables(0) : conn.Close()
  536. DGV33.Columns(0).FillWeight = 欄寬1 : DGV33.Columns(1).FillWeight = 欄寬2
  537. For i As Integer = 0 To DGV33.Rows.Count - 1
  538. If DGV33.Rows(i).Cells(表頭(0)).Value.ToString = "" Then : DGV33.Rows(i).Cells(表頭(0)).Value = ""
  539. ElseIf DGV33.Rows(i).Cells(表頭(0)).Value.ToString = "1" Then : DGV33.Rows(i).Cells(表頭(0)).Value = 對話框(9)
  540. ElseIf DGV33.Rows(i).Cells(表頭(0)).Value.ToString = "2" Then : DGV33.Rows(i).Cells(表頭(0)).Value = 對話框(10)
  541. ElseIf DGV33.Rows(i).Cells(表頭(0)).Value.ToString = "3" Then : DGV33.Rows(i).Cells(表頭(0)).Value = 對話框(11)
  542. ElseIf DGV33.Rows(i).Cells(表頭(0)).Value.ToString = "4" Then : DGV33.Rows(i).Cells(表頭(0)).Value = 對話框(12)
  543. ElseIf DGV33.Rows(i).Cells(表頭(0)).Value.ToString = "5" Then : DGV33.Rows(i).Cells(表頭(0)).Value = 對話框(13) : End If
  544. Next
  545. End Sub
  546. Private Sub 讀取班別34()
  547. DGV34.DataSource = Nothing : ds34.Clear()
  548. DGV34.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
  549. DGV34.ColumnHeadersHeight = 列高1 : DGV34.AllowUserToAddRows = False : DGV34.RowTemplate.Height = 列高
  550. SQL_排班系統_當天排班()
  551. da.Fill(ds34) : DGV34.DataSource = ds34.Tables(0) : conn.Close()
  552. DGV34.Columns(0).FillWeight = 欄寬1 : DGV34.Columns(1).FillWeight = 欄寬2
  553. For i As Integer = 0 To DGV34.Rows.Count - 1
  554. If DGV34.Rows(i).Cells(表頭(0)).Value.ToString = "" Then : DGV34.Rows(i).Cells(表頭(0)).Value = ""
  555. ElseIf DGV34.Rows(i).Cells(表頭(0)).Value.ToString = "1" Then : DGV34.Rows(i).Cells(表頭(0)).Value = 對話框(9)
  556. ElseIf DGV34.Rows(i).Cells(表頭(0)).Value.ToString = "2" Then : DGV34.Rows(i).Cells(表頭(0)).Value = 對話框(10)
  557. ElseIf DGV34.Rows(i).Cells(表頭(0)).Value.ToString = "3" Then : DGV34.Rows(i).Cells(表頭(0)).Value = 對話框(11)
  558. ElseIf DGV34.Rows(i).Cells(表頭(0)).Value.ToString = "4" Then : DGV34.Rows(i).Cells(表頭(0)).Value = 對話框(12)
  559. ElseIf DGV34.Rows(i).Cells(表頭(0)).Value.ToString = "5" Then : DGV34.Rows(i).Cells(表頭(0)).Value = 對話框(13) : End If
  560. Next
  561. End Sub
  562. Private Sub 讀取班別35()
  563. DGV35.DataSource = Nothing : ds35.Clear()
  564. DGV35.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
  565. DGV35.ColumnHeadersHeight = 列高1 : DGV35.AllowUserToAddRows = False : DGV35.RowTemplate.Height = 列高
  566. SQL_排班系統_當天排班()
  567. da.Fill(ds35) : DGV35.DataSource = ds35.Tables(0) : conn.Close()
  568. DGV35.Columns(0).FillWeight = 欄寬1 : DGV35.Columns(1).FillWeight = 欄寬2
  569. For i As Integer = 0 To DGV35.Rows.Count - 1
  570. If DGV35.Rows(i).Cells(表頭(0)).Value.ToString = "" Then : DGV35.Rows(i).Cells(表頭(0)).Value = ""
  571. ElseIf DGV35.Rows(i).Cells(表頭(0)).Value.ToString = "1" Then : DGV35.Rows(i).Cells(表頭(0)).Value = 對話框(9)
  572. ElseIf DGV35.Rows(i).Cells(表頭(0)).Value.ToString = "2" Then : DGV35.Rows(i).Cells(表頭(0)).Value = 對話框(10)
  573. ElseIf DGV35.Rows(i).Cells(表頭(0)).Value.ToString = "3" Then : DGV35.Rows(i).Cells(表頭(0)).Value = 對話框(11)
  574. ElseIf DGV35.Rows(i).Cells(表頭(0)).Value.ToString = "4" Then : DGV35.Rows(i).Cells(表頭(0)).Value = 對話框(12)
  575. ElseIf DGV35.Rows(i).Cells(表頭(0)).Value.ToString = "5" Then : DGV35.Rows(i).Cells(表頭(0)).Value = 對話框(13) : End If
  576. Next
  577. End Sub
  578. Private Sub 讀取班別36()
  579. DGV36.DataSource = Nothing : ds36.Clear()
  580. DGV36.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
  581. DGV36.ColumnHeadersHeight = 列高1 : DGV36.AllowUserToAddRows = False : DGV36.RowTemplate.Height = 列高
  582. SQL_排班系統_當天排班()
  583. da.Fill(ds36) : DGV36.DataSource = ds36.Tables(0) : conn.Close()
  584. DGV36.Columns(0).FillWeight = 欄寬1 : DGV36.Columns(1).FillWeight = 欄寬2
  585. For i As Integer = 0 To DGV36.Rows.Count - 1
  586. If DGV36.Rows(i).Cells(表頭(0)).Value.ToString = "" Then : DGV36.Rows(i).Cells(表頭(0)).Value = ""
  587. ElseIf DGV36.Rows(i).Cells(表頭(0)).Value.ToString = "1" Then : DGV36.Rows(i).Cells(表頭(0)).Value = 對話框(9)
  588. ElseIf DGV36.Rows(i).Cells(表頭(0)).Value.ToString = "2" Then : DGV36.Rows(i).Cells(表頭(0)).Value = 對話框(10)
  589. ElseIf DGV36.Rows(i).Cells(表頭(0)).Value.ToString = "3" Then : DGV36.Rows(i).Cells(表頭(0)).Value = 對話框(11)
  590. ElseIf DGV36.Rows(i).Cells(表頭(0)).Value.ToString = "4" Then : DGV36.Rows(i).Cells(表頭(0)).Value = 對話框(12)
  591. ElseIf DGV36.Rows(i).Cells(表頭(0)).Value.ToString = "5" Then : DGV36.Rows(i).Cells(表頭(0)).Value = 對話框(13) : End If
  592. Next
  593. End Sub
  594. Private Sub 讀取班別37()
  595. DGV37.DataSource = Nothing : ds37.Clear()
  596. DGV37.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
  597. DGV37.ColumnHeadersHeight = 列高1 : DGV37.AllowUserToAddRows = False : DGV37.RowTemplate.Height = 列高
  598. SQL_排班系統_當天排班()
  599. da.Fill(ds37) : DGV37.DataSource = ds37.Tables(0) : conn.Close()
  600. DGV37.Columns(0).FillWeight = 欄寬1 : DGV37.Columns(1).FillWeight = 欄寬2
  601. For i As Integer = 0 To DGV37.Rows.Count - 1
  602. If DGV37.Rows(i).Cells(表頭(0)).Value.ToString = "" Then : DGV37.Rows(i).Cells(表頭(0)).Value = ""
  603. ElseIf DGV37.Rows(i).Cells(表頭(0)).Value.ToString = "1" Then : DGV37.Rows(i).Cells(表頭(0)).Value = 對話框(9)
  604. ElseIf DGV37.Rows(i).Cells(表頭(0)).Value.ToString = "2" Then : DGV37.Rows(i).Cells(表頭(0)).Value = 對話框(10)
  605. ElseIf DGV37.Rows(i).Cells(表頭(0)).Value.ToString = "3" Then : DGV37.Rows(i).Cells(表頭(0)).Value = 對話框(11)
  606. ElseIf DGV37.Rows(i).Cells(表頭(0)).Value.ToString = "4" Then : DGV37.Rows(i).Cells(表頭(0)).Value = 對話框(12)
  607. ElseIf DGV37.Rows(i).Cells(表頭(0)).Value.ToString = "5" Then : DGV37.Rows(i).Cells(表頭(0)).Value = 對話框(13) : End If
  608. Next
  609. End Sub
  610. Private Sub 讀取班別38()
  611. DGV38.DataSource = Nothing : ds38.Clear()
  612. DGV38.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
  613. DGV38.ColumnHeadersHeight = 列高1 : DGV38.AllowUserToAddRows = False : DGV38.RowTemplate.Height = 列高
  614. SQL_排班系統_當天排班()
  615. da.Fill(ds38) : DGV38.DataSource = ds38.Tables(0) : conn.Close()
  616. DGV38.Columns(0).FillWeight = 欄寬1 : DGV38.Columns(1).FillWeight = 欄寬2
  617. For i As Integer = 0 To DGV38.Rows.Count - 1
  618. If DGV38.Rows(i).Cells(表頭(0)).Value.ToString = "" Then : DGV38.Rows(i).Cells(表頭(0)).Value = ""
  619. ElseIf DGV38.Rows(i).Cells(表頭(0)).Value.ToString = "1" Then : DGV38.Rows(i).Cells(表頭(0)).Value = 對話框(9)
  620. ElseIf DGV38.Rows(i).Cells(表頭(0)).Value.ToString = "2" Then : DGV38.Rows(i).Cells(表頭(0)).Value = 對話框(10)
  621. ElseIf DGV38.Rows(i).Cells(表頭(0)).Value.ToString = "3" Then : DGV38.Rows(i).Cells(表頭(0)).Value = 對話框(11)
  622. ElseIf DGV38.Rows(i).Cells(表頭(0)).Value.ToString = "4" Then : DGV38.Rows(i).Cells(表頭(0)).Value = 對話框(12)
  623. ElseIf DGV38.Rows(i).Cells(表頭(0)).Value.ToString = "5" Then : DGV38.Rows(i).Cells(表頭(0)).Value = 對話框(13) : End If
  624. Next
  625. End Sub
  626. Private Sub 讀取班別39()
  627. DGV39.DataSource = Nothing : ds39.Clear()
  628. DGV39.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
  629. DGV39.ColumnHeadersHeight = 列高1 : DGV39.AllowUserToAddRows = False : DGV39.RowTemplate.Height = 列高
  630. SQL_排班系統_當天排班()
  631. da.Fill(ds39) : DGV39.DataSource = ds39.Tables(0) : conn.Close()
  632. DGV39.Columns(0).FillWeight = 欄寬1 : DGV39.Columns(1).FillWeight = 欄寬2
  633. For i As Integer = 0 To DGV39.Rows.Count - 1
  634. If DGV39.Rows(i).Cells(表頭(0)).Value.ToString = "" Then : DGV39.Rows(i).Cells(表頭(0)).Value = ""
  635. ElseIf DGV39.Rows(i).Cells(表頭(0)).Value.ToString = "1" Then : DGV39.Rows(i).Cells(表頭(0)).Value = 對話框(9)
  636. ElseIf DGV39.Rows(i).Cells(表頭(0)).Value.ToString = "2" Then : DGV39.Rows(i).Cells(表頭(0)).Value = 對話框(10)
  637. ElseIf DGV39.Rows(i).Cells(表頭(0)).Value.ToString = "3" Then : DGV39.Rows(i).Cells(表頭(0)).Value = 對話框(11)
  638. ElseIf DGV39.Rows(i).Cells(表頭(0)).Value.ToString = "4" Then : DGV39.Rows(i).Cells(表頭(0)).Value = 對話框(12)
  639. ElseIf DGV39.Rows(i).Cells(表頭(0)).Value.ToString = "5" Then : DGV39.Rows(i).Cells(表頭(0)).Value = 對話框(13) : End If
  640. Next
  641. End Sub
  642. Private Sub 讀取班別40()
  643. DGV40.DataSource = Nothing : ds40.Clear()
  644. DGV40.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
  645. DGV40.ColumnHeadersHeight = 列高1 : DGV40.AllowUserToAddRows = False : DGV40.RowTemplate.Height = 列高
  646. SQL_排班系統_當天排班()
  647. da.Fill(ds40) : DGV40.DataSource = ds40.Tables(0) : conn.Close()
  648. DGV40.Columns(0).FillWeight = 欄寬1 : DGV40.Columns(1).FillWeight = 欄寬2
  649. For i As Integer = 0 To DGV40.Rows.Count - 1
  650. If DGV40.Rows(i).Cells(表頭(0)).Value.ToString = "" Then : DGV40.Rows(i).Cells(表頭(0)).Value = ""
  651. ElseIf DGV40.Rows(i).Cells(表頭(0)).Value.ToString = "1" Then : DGV40.Rows(i).Cells(表頭(0)).Value = 對話框(9)
  652. ElseIf DGV40.Rows(i).Cells(表頭(0)).Value.ToString = "2" Then : DGV40.Rows(i).Cells(表頭(0)).Value = 對話框(10)
  653. ElseIf DGV40.Rows(i).Cells(表頭(0)).Value.ToString = "3" Then : DGV40.Rows(i).Cells(表頭(0)).Value = 對話框(11)
  654. ElseIf DGV40.Rows(i).Cells(表頭(0)).Value.ToString = "4" Then : DGV40.Rows(i).Cells(表頭(0)).Value = 對話框(12)
  655. ElseIf DGV40.Rows(i).Cells(表頭(0)).Value.ToString = "5" Then : DGV40.Rows(i).Cells(表頭(0)).Value = 對話框(13) : End If
  656. Next
  657. End Sub
  658. Private Sub 讀取班別41()
  659. DGV41.DataSource = Nothing : ds41.Clear()
  660. DGV41.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
  661. DGV41.ColumnHeadersHeight = 列高1 : DGV41.AllowUserToAddRows = False : DGV41.RowTemplate.Height = 列高
  662. SQL_排班系統_當天排班()
  663. da.Fill(ds41) : DGV41.DataSource = ds41.Tables(0) : conn.Close()
  664. DGV41.Columns(0).FillWeight = 欄寬1 : DGV41.Columns(1).FillWeight = 欄寬2
  665. For i As Integer = 0 To DGV41.Rows.Count - 1
  666. If DGV41.Rows(i).Cells(表頭(0)).Value.ToString = "" Then : DGV41.Rows(i).Cells(表頭(0)).Value = ""
  667. ElseIf DGV41.Rows(i).Cells(表頭(0)).Value.ToString = "1" Then : DGV41.Rows(i).Cells(表頭(0)).Value = 對話框(9)
  668. ElseIf DGV41.Rows(i).Cells(表頭(0)).Value.ToString = "2" Then : DGV41.Rows(i).Cells(表頭(0)).Value = 對話框(10)
  669. ElseIf DGV41.Rows(i).Cells(表頭(0)).Value.ToString = "3" Then : DGV41.Rows(i).Cells(表頭(0)).Value = 對話框(11)
  670. ElseIf DGV41.Rows(i).Cells(表頭(0)).Value.ToString = "4" Then : DGV41.Rows(i).Cells(表頭(0)).Value = 對話框(12)
  671. ElseIf DGV41.Rows(i).Cells(表頭(0)).Value.ToString = "5" Then : DGV41.Rows(i).Cells(表頭(0)).Value = 對話框(13) : End If
  672. Next
  673. End Sub
  674. Private Sub 讀取班別42()
  675. DGV42.DataSource = Nothing : ds42.Clear()
  676. DGV42.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
  677. DGV42.ColumnHeadersHeight = 列高1 : DGV42.AllowUserToAddRows = False : DGV42.RowTemplate.Height = 列高
  678. SQL_排班系統_當天排班()
  679. da.Fill(ds42) : DGV42.DataSource = ds42.Tables(0) : conn.Close()
  680. DGV42.Columns(0).FillWeight = 欄寬1 : DGV42.Columns(1).FillWeight = 欄寬2
  681. For i As Integer = 0 To DGV42.Rows.Count - 1
  682. If DGV42.Rows(i).Cells(表頭(0)).Value.ToString = "" Then : DGV42.Rows(i).Cells(表頭(0)).Value = ""
  683. ElseIf DGV42.Rows(i).Cells(表頭(0)).Value.ToString = "1" Then : DGV42.Rows(i).Cells(表頭(0)).Value = 對話框(9)
  684. ElseIf DGV42.Rows(i).Cells(表頭(0)).Value.ToString = "2" Then : DGV42.Rows(i).Cells(表頭(0)).Value = 對話框(10)
  685. ElseIf DGV42.Rows(i).Cells(表頭(0)).Value.ToString = "3" Then : DGV42.Rows(i).Cells(表頭(0)).Value = 對話框(11)
  686. ElseIf DGV42.Rows(i).Cells(表頭(0)).Value.ToString = "4" Then : DGV42.Rows(i).Cells(表頭(0)).Value = 對話框(12)
  687. ElseIf DGV42.Rows(i).Cells(表頭(0)).Value.ToString = "5" Then : DGV42.Rows(i).Cells(表頭(0)).Value = 對話框(13) : End If
  688. Next
  689. End Sub
  690. Private Sub 日曆變動()
  691. If 日期_dgv.Rows.Count > 0 Then
  692. 總時數 = 0
  693. For no As Integer = 1 To 42
  694. Dim Panels As Panel = CType(Me.Controls.Find("Panel" + no.ToString(), True)(0), Panel) : Panels.Visible = True
  695. Next
  696. Dim Q As Integer = 0
  697. 星期 = 日期_dgv.Rows(0).Cells("星期").Value.ToString : 天數 = 日期_dgv.Rows.Count
  698. If 星期 = "星期日" Then
  699. For no As Integer = 1 To 42
  700. If no > 天數 Then : Dim Panels As Panel = CType(Me.Controls.Find("Panel" + no.ToString(), True)(0), Panel) : Panels.Visible = False : End If
  701. Dim 日期_lb As Label = CType(Me.Controls.Find("日期_lb" + no.ToString(), True)(0), Label) : 日期_lb.Text = no
  702. If IsNumeric(Val(日期_lb.Text)) = True Then
  703. If no < 10 Then : PA = "0" & no : Else : PA = no : End If : PA = 年份_cb.Text & "/" & 月份_cb.Text & "/" & PA
  704. If no = 1 Then : 讀取班別1() : ElseIf no = 2 Then : 讀取班別2() : ElseIf no = 3 Then : 讀取班別3() : ElseIf no = 4 Then : 讀取班別4()
  705. ElseIf no = 5 Then : 讀取班別5() : ElseIf no = 6 Then : 讀取班別6() : ElseIf no = 7 Then : 讀取班別7() : ElseIf no = 8 Then : 讀取班別8()
  706. ElseIf no = 9 Then : 讀取班別9() : ElseIf no = 10 Then : 讀取班別10() : ElseIf no = 11 Then : 讀取班別11() : ElseIf no = 12 Then : 讀取班別12()
  707. ElseIf no = 13 Then : 讀取班別13() : ElseIf no = 14 Then : 讀取班別14() : ElseIf no = 15 Then : 讀取班別15() : ElseIf no = 16 Then : 讀取班別16()
  708. ElseIf no = 17 Then : 讀取班別17() : ElseIf no = 18 Then : 讀取班別18() : ElseIf no = 19 Then : 讀取班別19() : ElseIf no = 20 Then : 讀取班別20()
  709. ElseIf no = 21 Then : 讀取班別21() : ElseIf no = 22 Then : 讀取班別22() : ElseIf no = 23 Then : 讀取班別23() : ElseIf no = 24 Then : 讀取班別24()
  710. ElseIf no = 25 Then : 讀取班別25() : ElseIf no = 26 Then : 讀取班別26() : ElseIf no = 27 Then : 讀取班別27() : ElseIf no = 28 Then : 讀取班別28()
  711. ElseIf no = 29 Then : 讀取班別29() : ElseIf no = 30 Then : 讀取班別30() : ElseIf no = 31 Then : 讀取班別31() : ElseIf no = 32 Then : 讀取班別32()
  712. ElseIf no = 33 Then : 讀取班別33() : ElseIf no = 34 Then : 讀取班別34() : ElseIf no = 35 Then : 讀取班別35() : ElseIf no = 36 Then : 讀取班別36()
  713. ElseIf no = 37 Then : 讀取班別37() : ElseIf no = 38 Then : 讀取班別38() : ElseIf no = 39 Then : 讀取班別39() : ElseIf no = 40 Then : 讀取班別40()
  714. ElseIf no = 41 Then : 讀取班別41() : ElseIf no = 42 Then : 讀取班別42() : End If
  715. End If
  716. If no >= 1 And no <= 天數 Then
  717. Dim Labels As Label = CType(Me.Controls.Find("Label" + no.ToString(), True)(0), Label) : Labels.Text = 日期_dgv.Rows(Q).Cells("休假").Value.ToString
  718. If 日期_dgv.Rows(Q).Cells("休假").Value.ToString <> "國定假日" And 日期_dgv.Rows(Q).Cells("星期").Value.ToString <> "星期日" And
  719. 日期_dgv.Rows(Q).Cells("星期").Value.ToString <> "星期六" Then
  720. 總時數 += 8
  721. End If : Q += 1
  722. End If
  723. Next
  724. End If
  725. If 星期 = "星期一" Then
  726. For no As Integer = 1 To 42
  727. If no = 1 Then
  728. Dim Panels As Panel = CType(Me.Controls.Find("Panel" + no.ToString(), True)(0), Panel) : Panels.Visible = False : End If
  729. If no > 天數 + 1 Then : Dim Panels As Panel = CType(Me.Controls.Find("Panel" + no.ToString(), True)(0), Panel) : Panels.Visible = False : End If
  730. Dim 日期_lb As Label = CType(Me.Controls.Find("日期_lb" + no.ToString(), True)(0), Label) : 日期_lb.Text = no - 1
  731. If IsNumeric(Val(日期_lb.Text)) = True Then
  732. If no - 1 < 10 Then : PA = "0" & no - 1 : Else : PA = no - 1 : End If : PA = 年份_cb.Text & "/" & 月份_cb.Text & "/" & PA
  733. If no = 1 Then : 讀取班別1() : ElseIf no = 2 Then : 讀取班別2() : ElseIf no = 3 Then : 讀取班別3() : ElseIf no = 4 Then : 讀取班別4()
  734. ElseIf no = 5 Then : 讀取班別5() : ElseIf no = 6 Then : 讀取班別6() : ElseIf no = 7 Then : 讀取班別7() : ElseIf no = 8 Then : 讀取班別8()
  735. ElseIf no = 9 Then : 讀取班別9() : ElseIf no = 10 Then : 讀取班別10() : ElseIf no = 11 Then : 讀取班別11() : ElseIf no = 12 Then : 讀取班別12()
  736. ElseIf no = 13 Then : 讀取班別13() : ElseIf no = 14 Then : 讀取班別14() : ElseIf no = 15 Then : 讀取班別15() : ElseIf no = 16 Then : 讀取班別16()
  737. ElseIf no = 17 Then : 讀取班別17() : ElseIf no = 18 Then : 讀取班別18() : ElseIf no = 19 Then : 讀取班別19() : ElseIf no = 20 Then : 讀取班別20()
  738. ElseIf no = 21 Then : 讀取班別21() : ElseIf no = 22 Then : 讀取班別22() : ElseIf no = 23 Then : 讀取班別23() : ElseIf no = 24 Then : 讀取班別24()
  739. ElseIf no = 25 Then : 讀取班別25() : ElseIf no = 26 Then : 讀取班別26() : ElseIf no = 27 Then : 讀取班別27() : ElseIf no = 28 Then : 讀取班別28()
  740. ElseIf no = 29 Then : 讀取班別29() : ElseIf no = 30 Then : 讀取班別30() : ElseIf no = 31 Then : 讀取班別31() : ElseIf no = 32 Then : 讀取班別32()
  741. ElseIf no = 33 Then : 讀取班別33() : ElseIf no = 34 Then : 讀取班別34() : ElseIf no = 35 Then : 讀取班別35() : ElseIf no = 36 Then : 讀取班別36()
  742. ElseIf no = 37 Then : 讀取班別37() : ElseIf no = 38 Then : 讀取班別38() : ElseIf no = 39 Then : 讀取班別39() : ElseIf no = 40 Then : 讀取班別40()
  743. ElseIf no = 41 Then : 讀取班別41() : ElseIf no = 42 Then : 讀取班別42() : End If
  744. End If
  745. If no >= 2 And no <= 天數 + 1 Then
  746. Dim Labels As Label = CType(Me.Controls.Find("Label" + no.ToString(), True)(0), Label) : Labels.Text = 日期_dgv.Rows(Q).Cells("休假").Value.ToString
  747. If 日期_dgv.Rows(Q).Cells("休假").Value.ToString <> "國定假日" And 日期_dgv.Rows(Q).Cells("星期").Value.ToString <> "星期日" And
  748. 日期_dgv.Rows(Q).Cells("星期").Value.ToString <> "星期六" Then
  749. 總時數 += 8
  750. End If : Q += 1
  751. End If
  752. Next
  753. End If
  754. If 星期 = "星期二" Then
  755. For no As Integer = 1 To 42
  756. If no = 1 Or no = 2 Then
  757. Dim Panels As Panel = CType(Me.Controls.Find("Panel" + no.ToString(), True)(0), Panel) : Panels.Visible = False : End If
  758. If no > 天數 + 2 Then : Dim Panels As Panel = CType(Me.Controls.Find("Panel" + no.ToString(), True)(0), Panel) : Panels.Visible = False : End If
  759. Dim 日期_lb As Label = CType(Me.Controls.Find("日期_lb" + no.ToString(), True)(0), Label) : 日期_lb.Text = no - 2
  760. If IsNumeric(Val(日期_lb.Text)) = True Then
  761. If no - 2 < 10 Then : PA = "0" & no - 2 : Else : PA = no - 2 : End If : PA = 年份_cb.Text & "/" & 月份_cb.Text & "/" & PA
  762. If no = 1 Then : 讀取班別1() : ElseIf no = 2 Then : 讀取班別2() : ElseIf no = 3 Then : 讀取班別3() : ElseIf no = 4 Then : 讀取班別4()
  763. ElseIf no = 5 Then : 讀取班別5() : ElseIf no = 6 Then : 讀取班別6() : ElseIf no = 7 Then : 讀取班別7() : ElseIf no = 8 Then : 讀取班別8()
  764. ElseIf no = 9 Then : 讀取班別9() : ElseIf no = 10 Then : 讀取班別10() : ElseIf no = 11 Then : 讀取班別11() : ElseIf no = 12 Then : 讀取班別12()
  765. ElseIf no = 13 Then : 讀取班別13() : ElseIf no = 14 Then : 讀取班別14() : ElseIf no = 15 Then : 讀取班別15() : ElseIf no = 16 Then : 讀取班別16()
  766. ElseIf no = 17 Then : 讀取班別17() : ElseIf no = 18 Then : 讀取班別18() : ElseIf no = 19 Then : 讀取班別19() : ElseIf no = 20 Then : 讀取班別20()
  767. ElseIf no = 21 Then : 讀取班別21() : ElseIf no = 22 Then : 讀取班別22() : ElseIf no = 23 Then : 讀取班別23() : ElseIf no = 24 Then : 讀取班別24()
  768. ElseIf no = 25 Then : 讀取班別25() : ElseIf no = 26 Then : 讀取班別26() : ElseIf no = 27 Then : 讀取班別27() : ElseIf no = 28 Then : 讀取班別28()
  769. ElseIf no = 29 Then : 讀取班別29() : ElseIf no = 30 Then : 讀取班別30() : ElseIf no = 31 Then : 讀取班別31() : ElseIf no = 32 Then : 讀取班別32()
  770. ElseIf no = 33 Then : 讀取班別33() : ElseIf no = 34 Then : 讀取班別34() : ElseIf no = 35 Then : 讀取班別35() : ElseIf no = 36 Then : 讀取班別36()
  771. ElseIf no = 37 Then : 讀取班別37() : ElseIf no = 38 Then : 讀取班別38() : ElseIf no = 39 Then : 讀取班別39() : ElseIf no = 40 Then : 讀取班別40()
  772. ElseIf no = 41 Then : 讀取班別41() : ElseIf no = 42 Then : 讀取班別42() : End If
  773. End If
  774. If no >= 3 And no <= 天數 + 2 Then
  775. Dim Labels As Label = CType(Me.Controls.Find("Label" + no.ToString(), True)(0), Label) : Labels.Text = 日期_dgv.Rows(Q).Cells("休假").Value.ToString
  776. If 日期_dgv.Rows(Q).Cells("休假").Value.ToString <> "國定假日" And 日期_dgv.Rows(Q).Cells("星期").Value.ToString <> "星期日" And
  777. 日期_dgv.Rows(Q).Cells("星期").Value.ToString <> "星期六" Then
  778. 總時數 += 8
  779. End If : Q += 1
  780. End If
  781. Next
  782. End If
  783. If 星期 = "星期三" Then
  784. For no As Integer = 1 To 42
  785. If no = 1 Or no = 2 Or no = 3 Then
  786. Dim Panels As Panel = CType(Me.Controls.Find("Panel" + no.ToString(), True)(0), Panel) : Panels.Visible = False : End If
  787. If no > 天數 + 3 Then : Dim Panels As Panel = CType(Me.Controls.Find("Panel" + no.ToString(), True)(0), Panel) : Panels.Visible = False : End If
  788. Dim 日期_lb As Label = CType(Me.Controls.Find("日期_lb" + no.ToString(), True)(0), Label) : 日期_lb.Text = no - 3
  789. If IsNumeric(Val(日期_lb.Text)) = True Then
  790. If no - 3 < 10 Then : PA = "0" & no - 3 : Else : PA = no - 3 : End If : PA = 年份_cb.Text & "/" & 月份_cb.Text & "/" & PA
  791. If no = 1 Then : 讀取班別1() : ElseIf no = 2 Then : 讀取班別2() : ElseIf no = 3 Then : 讀取班別3() : ElseIf no = 4 Then : 讀取班別4()
  792. ElseIf no = 5 Then : 讀取班別5() : ElseIf no = 6 Then : 讀取班別6() : ElseIf no = 7 Then : 讀取班別7() : ElseIf no = 8 Then : 讀取班別8()
  793. ElseIf no = 9 Then : 讀取班別9() : ElseIf no = 10 Then : 讀取班別10() : ElseIf no = 11 Then : 讀取班別11() : ElseIf no = 12 Then : 讀取班別12()
  794. ElseIf no = 13 Then : 讀取班別13() : ElseIf no = 14 Then : 讀取班別14() : ElseIf no = 15 Then : 讀取班別15() : ElseIf no = 16 Then : 讀取班別16()
  795. ElseIf no = 17 Then : 讀取班別17() : ElseIf no = 18 Then : 讀取班別18() : ElseIf no = 19 Then : 讀取班別19() : ElseIf no = 20 Then : 讀取班別20()
  796. ElseIf no = 21 Then : 讀取班別21() : ElseIf no = 22 Then : 讀取班別22() : ElseIf no = 23 Then : 讀取班別23() : ElseIf no = 24 Then : 讀取班別24()
  797. ElseIf no = 25 Then : 讀取班別25() : ElseIf no = 26 Then : 讀取班別26() : ElseIf no = 27 Then : 讀取班別27() : ElseIf no = 28 Then : 讀取班別28()
  798. ElseIf no = 29 Then : 讀取班別29() : ElseIf no = 30 Then : 讀取班別30() : ElseIf no = 31 Then : 讀取班別31() : ElseIf no = 32 Then : 讀取班別32()
  799. ElseIf no = 33 Then : 讀取班別33() : ElseIf no = 34 Then : 讀取班別34() : ElseIf no = 35 Then : 讀取班別35() : ElseIf no = 36 Then : 讀取班別36()
  800. ElseIf no = 37 Then : 讀取班別37() : ElseIf no = 38 Then : 讀取班別38() : ElseIf no = 39 Then : 讀取班別39() : ElseIf no = 40 Then : 讀取班別40()
  801. ElseIf no = 41 Then : 讀取班別41() : ElseIf no = 42 Then : 讀取班別42() : End If
  802. End If
  803. If no >= 4 And no <= 天數 + 3 Then
  804. Dim Labels As Label = CType(Me.Controls.Find("Label" + no.ToString(), True)(0), Label) : Labels.Text = 日期_dgv.Rows(Q).Cells("休假").Value.ToString
  805. If 日期_dgv.Rows(Q).Cells("休假").Value.ToString <> "國定假日" And 日期_dgv.Rows(Q).Cells("星期").Value.ToString <> "星期日" And
  806. 日期_dgv.Rows(Q).Cells("星期").Value.ToString <> "星期六" Then
  807. 總時數 += 8
  808. End If : Q += 1
  809. End If
  810. Next
  811. End If
  812. If 星期 = "星期四" Then
  813. For no As Integer = 1 To 42
  814. If no = 1 Or no = 2 Or no = 3 Or no = 4 Then
  815. Dim Panels As Panel = CType(Me.Controls.Find("Panel" + no.ToString(), True)(0), Panel) : Panels.Visible = False : End If
  816. If no > 天數 + 4 Then : Dim Panels As Panel = CType(Me.Controls.Find("Panel" + no.ToString(), True)(0), Panel) : Panels.Visible = False : End If
  817. Dim 日期_lb As Label = CType(Me.Controls.Find("日期_lb" + no.ToString(), True)(0), Label) : 日期_lb.Text = no - 4
  818. If IsNumeric(Val(日期_lb.Text)) = True Then
  819. If no - 4 < 10 Then : PA = "0" & no - 4 : Else : PA = no - 4 : End If : PA = 年份_cb.Text & "/" & 月份_cb.Text & "/" & PA
  820. If no = 1 Then : 讀取班別1() : ElseIf no = 2 Then : 讀取班別2() : ElseIf no = 3 Then : 讀取班別3() : ElseIf no = 4 Then : 讀取班別4()
  821. ElseIf no = 5 Then : 讀取班別5() : ElseIf no = 6 Then : 讀取班別6() : ElseIf no = 7 Then : 讀取班別7() : ElseIf no = 8 Then : 讀取班別8()
  822. ElseIf no = 9 Then : 讀取班別9() : ElseIf no = 10 Then : 讀取班別10() : ElseIf no = 11 Then : 讀取班別11() : ElseIf no = 12 Then : 讀取班別12()
  823. ElseIf no = 13 Then : 讀取班別13() : ElseIf no = 14 Then : 讀取班別14() : ElseIf no = 15 Then : 讀取班別15() : ElseIf no = 16 Then : 讀取班別16()
  824. ElseIf no = 17 Then : 讀取班別17() : ElseIf no = 18 Then : 讀取班別18() : ElseIf no = 19 Then : 讀取班別19() : ElseIf no = 20 Then : 讀取班別20()
  825. ElseIf no = 21 Then : 讀取班別21() : ElseIf no = 22 Then : 讀取班別22() : ElseIf no = 23 Then : 讀取班別23() : ElseIf no = 24 Then : 讀取班別24()
  826. ElseIf no = 25 Then : 讀取班別25() : ElseIf no = 26 Then : 讀取班別26() : ElseIf no = 27 Then : 讀取班別27() : ElseIf no = 28 Then : 讀取班別28()
  827. ElseIf no = 29 Then : 讀取班別29() : ElseIf no = 30 Then : 讀取班別30() : ElseIf no = 31 Then : 讀取班別31() : ElseIf no = 32 Then : 讀取班別32()
  828. ElseIf no = 33 Then : 讀取班別33() : ElseIf no = 34 Then : 讀取班別34() : ElseIf no = 35 Then : 讀取班別35() : ElseIf no = 36 Then : 讀取班別36()
  829. ElseIf no = 37 Then : 讀取班別37() : ElseIf no = 38 Then : 讀取班別38() : ElseIf no = 39 Then : 讀取班別39() : ElseIf no = 40 Then : 讀取班別40()
  830. ElseIf no = 41 Then : 讀取班別41() : ElseIf no = 42 Then : 讀取班別42() : End If
  831. End If
  832. If no >= 5 And no <= 天數 + 4 Then
  833. Dim Labels As Label = CType(Me.Controls.Find("Label" + no.ToString(), True)(0), Label) : Labels.Text = 日期_dgv.Rows(Q).Cells("休假").Value.ToString
  834. If 日期_dgv.Rows(Q).Cells("休假").Value.ToString <> "國定假日" And 日期_dgv.Rows(Q).Cells("星期").Value.ToString <> "星期日" And
  835. 日期_dgv.Rows(Q).Cells("星期").Value.ToString <> "星期六" Then
  836. 總時數 += 8
  837. End If : Q += 1
  838. End If
  839. Next
  840. End If
  841. If 星期 = "星期五" Then
  842. For no As Integer = 1 To 42
  843. If no = 1 Or no = 2 Or no = 3 Or no = 4 Or no = 5 Then
  844. Dim Panels As Panel = CType(Me.Controls.Find("Panel" + no.ToString(), True)(0), Panel) : Panels.Visible = False : End If
  845. If no > 天數 + 5 Then : Dim Panels As Panel = CType(Me.Controls.Find("Panel" + no.ToString(), True)(0), Panel) : Panels.Visible = False : End If
  846. Dim 日期_lb As Label = CType(Me.Controls.Find("日期_lb" + no.ToString(), True)(0), Label) : 日期_lb.Text = no - 5
  847. If IsNumeric(Val(日期_lb.Text)) = True Then
  848. If no - 5 < 10 Then : PA = "0" & no - 5 : Else : PA = no - 5 : End If : PA = 年份_cb.Text & "/" & 月份_cb.Text & "/" & PA
  849. If no = 1 Then : 讀取班別1() : ElseIf no = 2 Then : 讀取班別2() : ElseIf no = 3 Then : 讀取班別3() : ElseIf no = 4 Then : 讀取班別4()
  850. ElseIf no = 5 Then : 讀取班別5() : ElseIf no = 6 Then : 讀取班別6() : ElseIf no = 7 Then : 讀取班別7() : ElseIf no = 8 Then : 讀取班別8()
  851. ElseIf no = 9 Then : 讀取班別9() : ElseIf no = 10 Then : 讀取班別10() : ElseIf no = 11 Then : 讀取班別11() : ElseIf no = 12 Then : 讀取班別12()
  852. ElseIf no = 13 Then : 讀取班別13() : ElseIf no = 14 Then : 讀取班別14() : ElseIf no = 15 Then : 讀取班別15() : ElseIf no = 16 Then : 讀取班別16()
  853. ElseIf no = 17 Then : 讀取班別17() : ElseIf no = 18 Then : 讀取班別18() : ElseIf no = 19 Then : 讀取班別19() : ElseIf no = 20 Then : 讀取班別20()
  854. ElseIf no = 21 Then : 讀取班別21() : ElseIf no = 22 Then : 讀取班別22() : ElseIf no = 23 Then : 讀取班別23() : ElseIf no = 24 Then : 讀取班別24()
  855. ElseIf no = 25 Then : 讀取班別25() : ElseIf no = 26 Then : 讀取班別26() : ElseIf no = 27 Then : 讀取班別27() : ElseIf no = 28 Then : 讀取班別28()
  856. ElseIf no = 29 Then : 讀取班別29() : ElseIf no = 30 Then : 讀取班別30() : ElseIf no = 31 Then : 讀取班別31() : ElseIf no = 32 Then : 讀取班別32()
  857. ElseIf no = 33 Then : 讀取班別33() : ElseIf no = 34 Then : 讀取班別34() : ElseIf no = 35 Then : 讀取班別35() : ElseIf no = 36 Then : 讀取班別36()
  858. ElseIf no = 37 Then : 讀取班別37() : ElseIf no = 38 Then : 讀取班別38() : ElseIf no = 39 Then : 讀取班別39() : ElseIf no = 40 Then : 讀取班別40()
  859. ElseIf no = 41 Then : 讀取班別41() : ElseIf no = 42 Then : 讀取班別42() : End If
  860. End If
  861. If no >= 6 And no <= 天數 + 5 Then
  862. Dim Labels As Label = CType(Me.Controls.Find("Label" + no.ToString(), True)(0), Label) : Labels.Text = 日期_dgv.Rows(Q).Cells("休假").Value.ToString
  863. If 日期_dgv.Rows(Q).Cells("休假").Value.ToString <> "國定假日" And 日期_dgv.Rows(Q).Cells("星期").Value.ToString <> "星期日" And
  864. 日期_dgv.Rows(Q).Cells("星期").Value.ToString <> "星期六" Then
  865. 總時數 += 8
  866. End If : Q += 1
  867. End If
  868. Next
  869. End If
  870. If 星期 = "星期六" Then
  871. For no As Integer = 1 To 42
  872. If no = 1 Or no = 2 Or no = 3 Or no = 4 Or no = 5 Or no = 6 Then
  873. Dim Panels As Panel = CType(Me.Controls.Find("Panel" + no.ToString(), True)(0), Panel) : Panels.Visible = False : End If
  874. If no > 天數 + 6 Then : Dim Panels As Panel = CType(Me.Controls.Find("Panel" + no.ToString(), True)(0), Panel) : Panels.Visible = False : End If
  875. Dim 日期_lb As Label = CType(Me.Controls.Find("日期_lb" + no.ToString(), True)(0), Label) : 日期_lb.Text = no - 6
  876. If IsNumeric(Val(日期_lb.Text)) = True Then
  877. If no - 6 < 10 Then : PA = "0" & no - 6 : Else : PA = no - 6 : End If : PA = 年份_cb.Text & "/" & 月份_cb.Text & "/" & PA
  878. If no = 1 Then : 讀取班別1() : ElseIf no = 2 Then : 讀取班別2() : ElseIf no = 3 Then : 讀取班別3() : ElseIf no = 4 Then : 讀取班別4()
  879. ElseIf no = 5 Then : 讀取班別5() : ElseIf no = 6 Then : 讀取班別6() : ElseIf no = 7 Then : 讀取班別7() : ElseIf no = 8 Then : 讀取班別8()
  880. ElseIf no = 9 Then : 讀取班別9() : ElseIf no = 10 Then : 讀取班別10() : ElseIf no = 11 Then : 讀取班別11() : ElseIf no = 12 Then : 讀取班別12()
  881. ElseIf no = 13 Then : 讀取班別13() : ElseIf no = 14 Then : 讀取班別14() : ElseIf no = 15 Then : 讀取班別15() : ElseIf no = 16 Then : 讀取班別16()
  882. ElseIf no = 17 Then : 讀取班別17() : ElseIf no = 18 Then : 讀取班別18() : ElseIf no = 19 Then : 讀取班別19() : ElseIf no = 20 Then : 讀取班別20()
  883. ElseIf no = 21 Then : 讀取班別21() : ElseIf no = 22 Then : 讀取班別22() : ElseIf no = 23 Then : 讀取班別23() : ElseIf no = 24 Then : 讀取班別24()
  884. ElseIf no = 25 Then : 讀取班別25() : ElseIf no = 26 Then : 讀取班別26() : ElseIf no = 27 Then : 讀取班別27() : ElseIf no = 28 Then : 讀取班別28()
  885. ElseIf no = 29 Then : 讀取班別29() : ElseIf no = 30 Then : 讀取班別30() : ElseIf no = 31 Then : 讀取班別31() : ElseIf no = 32 Then : 讀取班別32()
  886. ElseIf no = 33 Then : 讀取班別33() : ElseIf no = 34 Then : 讀取班別34() : ElseIf no = 35 Then : 讀取班別35() : ElseIf no = 36 Then : 讀取班別36()
  887. ElseIf no = 37 Then : 讀取班別37() : ElseIf no = 38 Then : 讀取班別38() : ElseIf no = 39 Then : 讀取班別39() : ElseIf no = 40 Then : 讀取班別40()
  888. ElseIf no = 41 Then : 讀取班別41() : ElseIf no = 42 Then : 讀取班別42() : End If
  889. End If
  890. If no >= 7 And no <= 天數 + 6 Then
  891. Dim Labels As Label = CType(Me.Controls.Find("Label" + no.ToString(), True)(0), Label) : Labels.Text = 日期_dgv.Rows(Q).Cells("休假").Value.ToString
  892. If 日期_dgv.Rows(Q).Cells("休假").Value.ToString <> "國定假日" And 日期_dgv.Rows(Q).Cells("星期").Value.ToString <> "星期日" And
  893. 日期_dgv.Rows(Q).Cells("星期").Value.ToString <> "星期六" Then
  894. 總時數 += 8
  895. End If : Q += 1
  896. End If
  897. Next
  898. End If
  899. End If
  900. End Sub
  901. Private Sub 語言轉換讀取()
  902. If 系統語言 = "繁體中文" Then : 語言 = "CH" : ElseIf 系統語言 = "English" Then : 語言 = "EN" : ElseIf 系統語言 = "Indonesian" Then : 語言 = "IN" : End If
  903. Me.Text = 系統語言字典("H001-277-" & 語言)
  904. 星期日_lb.Text = 系統語言字典("H609-106-" & 語言) : 星期一_lb.Text = 系統語言字典("H609-100-" & 語言) : 星期二_lb.Text = 系統語言字典("H609-101-" & 語言)
  905. 星期三_lb.Text = 系統語言字典("H609-102-" & 語言) : 星期四_lb.Text = 系統語言字典("H609-103-" & 語言) : 星期五_lb.Text = 系統語言字典("H609-104-" & 語言)
  906. 星期六_lb.Text = 系統語言字典("H609-105-" & 語言) : 表頭(1) = 系統語言字典("H603-100-" & 語言)
  907. 對話框(9) = 系統語言字典("H609-133-" & 語言) : 對話框(10) = 系統語言字典("H609-134-" & 語言) : 對話框(11) = 系統語言字典("H609-135-" & 語言)
  908. 對話框(12) = 系統語言字典("H609-136-" & 語言) : 對話框(13) = 系統語言字典("H609-137-" & 語言) : 表頭(0) = 系統語言字典("H609-138-" & 語言)
  909. End Sub
  910. Private Sub 排班資料_Load(sender As Object, e As EventArgs) Handles MyBase.Load
  911. HX_PGS_ERP_SYS.WindowState = 2 : Me.MdiParent = HX_PGS_ERP_SYS : Me.WindowState = 2 : Me.AutoScroll = True
  912. 風格() : H(615) = True : 介面 = "H615" : 語言轉換讀取() : 列高 = 33 : 列高1 = 22 : 欄寬1 = 80 : 欄寬2 = 200
  913. 年份_下拉表單資料載入() : 日期_dgv.Visible = False
  914. 首次開啟 = False
  915. 年份_cb.Text = Year(Today) : 月份_cb.SelectedIndex = Month(Today) - 1
  916. PA1 = 年份_cb.Text : PA2 = 月份_cb.Text
  917. 首次開啟 = True
  918. 讀取日期() : 日曆變動()
  919. End Sub
  920. Private Sub 排班資料_Closing(sender As Object, e As EventArgs) Handles MyBase.Closed
  921. MyMod.虛擬桌面開啟()
  922. End Sub
  923. Private Sub 月份_cb_SelectedIndexChanged(sender As Object, e As EventArgs) Handles 月份_cb.SelectedIndexChanged
  924. If 首次開啟 = True Then
  925. PA1 = 年份_cb.Text : PA2 = 月份_cb.Text : 讀取日期() : 日曆變動()
  926. End If
  927. End Sub
  928. Private Sub 風格()
  929. If 深色風格 = False Then
  930. Me.BackColor = SystemColors.Control
  931. '----------------黑-------------------------------------------
  932. 星期一_lb.ForeColor = Color.Black : 星期二_lb.ForeColor = Color.Black : 星期三_lb.ForeColor = Color.Black : 星期四_lb.ForeColor = Color.Black
  933. 星期五_lb.ForeColor = Color.Black : 年份_lb.ForeColor = Color.Black : 月份_lb.ForeColor = Color.Black : Label43.ForeColor = Color.Black : Label44.ForeColor = Color.Black
  934. 日期_lb2.ForeColor = Color.Black : 日期_lb3.ForeColor = Color.Black : 日期_lb4.ForeColor = Color.Black : 日期_lb5.ForeColor = Color.Black : 日期_lb6.ForeColor = Color.Black
  935. 日期_lb9.ForeColor = Color.Black : 日期_lb10.ForeColor = Color.Black : 日期_lb11.ForeColor = Color.Black : 日期_lb12.ForeColor = Color.Black : 日期_lb13.ForeColor = Color.Black
  936. 日期_lb16.ForeColor = Color.Black : 日期_lb17.ForeColor = Color.Black : 日期_lb18.ForeColor = Color.Black : 日期_lb19.ForeColor = Color.Black : 日期_lb20.ForeColor = Color.Black
  937. 日期_lb23.ForeColor = Color.Black : 日期_lb24.ForeColor = Color.Black : 日期_lb25.ForeColor = Color.Black : 日期_lb26.ForeColor = Color.Black : 日期_lb27.ForeColor = Color.Black
  938. 日期_lb30.ForeColor = Color.Black : 日期_lb31.ForeColor = Color.Black : 日期_lb32.ForeColor = Color.Black : 日期_lb33.ForeColor = Color.Black : 日期_lb34.ForeColor = Color.Black
  939. 日期_lb37.ForeColor = Color.Black : 日期_lb38.ForeColor = Color.Black : 日期_lb39.ForeColor = Color.Black : 日期_lb40.ForeColor = Color.Black : 日期_lb41.ForeColor = Color.Black
  940. '----------------紅-------------------------------------------
  941. 星期日_lb.ForeColor = Color.Red : 日期_lb1.ForeColor = Color.Red : 日期_lb8.ForeColor = Color.Red : 日期_lb15.ForeColor = Color.Red
  942. 日期_lb22.ForeColor = Color.Red : 日期_lb29.ForeColor = Color.Red : 日期_lb36.ForeColor = Color.Red
  943. '----------------綠-------------------------------------------
  944. 星期六_lb.ForeColor = Color.Green : 日期_lb7.ForeColor = Color.Green : 日期_lb14.ForeColor = Color.Green : 日期_lb21.ForeColor = Color.Green
  945. 日期_lb28.ForeColor = Color.Green : 日期_lb35.ForeColor = Color.Green : 日期_lb42.ForeColor = Color.Green
  946. 語轉扭_bt.BackColor = Color.White : 語轉扭_bt.ForeColor = Color.Black : 年份_cb.BackColor = Color.White : 年份_cb.ForeColor = Color.Black
  947. 月份_cb.BackColor = Color.White : 月份_cb.ForeColor = Color.Black
  948. DGV2.EnableHeadersVisualStyles = True : DGV2.BackgroundColor = Color.White : DGV2.ColumnHeadersDefaultCellStyle.ForeColor = Color.Black
  949. DGV2.DefaultCellStyle.BackColor = Color.White : DGV2.DefaultCellStyle.ForeColor = Color.Black
  950. DGV3.EnableHeadersVisualStyles = True : DGV3.BackgroundColor = Color.White : DGV3.ColumnHeadersDefaultCellStyle.ForeColor = Color.Black
  951. DGV3.DefaultCellStyle.BackColor = Color.White : DGV3.DefaultCellStyle.ForeColor = Color.Black
  952. DGV4.EnableHeadersVisualStyles = True : DGV4.BackgroundColor = Color.White : DGV4.ColumnHeadersDefaultCellStyle.ForeColor = Color.Black
  953. DGV4.DefaultCellStyle.BackColor = Color.White : DGV4.DefaultCellStyle.ForeColor = Color.Black
  954. DGV5.EnableHeadersVisualStyles = True : DGV5.BackgroundColor = Color.White : DGV5.ColumnHeadersDefaultCellStyle.ForeColor = Color.Black
  955. DGV5.DefaultCellStyle.BackColor = Color.White : DGV5.DefaultCellStyle.ForeColor = Color.Black
  956. DGV6.EnableHeadersVisualStyles = True : DGV6.BackgroundColor = Color.White : DGV6.ColumnHeadersDefaultCellStyle.ForeColor = Color.Black
  957. DGV6.DefaultCellStyle.BackColor = Color.White : DGV6.DefaultCellStyle.ForeColor = Color.Black
  958. DGV9.EnableHeadersVisualStyles = True : DGV9.BackgroundColor = Color.White : DGV9.ColumnHeadersDefaultCellStyle.ForeColor = Color.Black
  959. DGV9.DefaultCellStyle.BackColor = Color.White : DGV9.DefaultCellStyle.ForeColor = Color.Black
  960. DGV10.EnableHeadersVisualStyles = True : DGV10.BackgroundColor = Color.White : DGV10.ColumnHeadersDefaultCellStyle.ForeColor = Color.Black
  961. DGV10.DefaultCellStyle.BackColor = Color.White : DGV10.DefaultCellStyle.ForeColor = Color.Black
  962. DGV11.EnableHeadersVisualStyles = True : DGV11.BackgroundColor = Color.White : DGV11.ColumnHeadersDefaultCellStyle.ForeColor = Color.Black
  963. DGV11.DefaultCellStyle.BackColor = Color.White : DGV11.DefaultCellStyle.ForeColor = Color.Black
  964. DGV12.EnableHeadersVisualStyles = True : DGV12.BackgroundColor = Color.White : DGV12.ColumnHeadersDefaultCellStyle.ForeColor = Color.Black
  965. DGV12.DefaultCellStyle.BackColor = Color.White : DGV12.DefaultCellStyle.ForeColor = Color.Black
  966. DGV13.EnableHeadersVisualStyles = True : DGV13.BackgroundColor = Color.White : DGV13.ColumnHeadersDefaultCellStyle.ForeColor = Color.Black
  967. DGV13.DefaultCellStyle.BackColor = Color.White : DGV13.DefaultCellStyle.ForeColor = Color.Black
  968. DGV16.EnableHeadersVisualStyles = True : DGV16.BackgroundColor = Color.White : DGV16.ColumnHeadersDefaultCellStyle.ForeColor = Color.Black
  969. DGV16.DefaultCellStyle.BackColor = Color.White : DGV16.DefaultCellStyle.ForeColor = Color.Black
  970. DGV17.EnableHeadersVisualStyles = True : DGV17.BackgroundColor = Color.White : DGV17.ColumnHeadersDefaultCellStyle.ForeColor = Color.Black
  971. DGV17.DefaultCellStyle.BackColor = Color.White : DGV17.DefaultCellStyle.ForeColor = Color.Black
  972. DGV18.EnableHeadersVisualStyles = True : DGV18.BackgroundColor = Color.White : DGV18.ColumnHeadersDefaultCellStyle.ForeColor = Color.Black
  973. DGV18.DefaultCellStyle.BackColor = Color.White : DGV18.DefaultCellStyle.ForeColor = Color.Black
  974. DGV19.EnableHeadersVisualStyles = True : DGV19.BackgroundColor = Color.White : DGV19.ColumnHeadersDefaultCellStyle.ForeColor = Color.Black
  975. DGV19.DefaultCellStyle.BackColor = Color.White : DGV19.DefaultCellStyle.ForeColor = Color.Black
  976. DGV20.EnableHeadersVisualStyles = True : DGV20.BackgroundColor = Color.White : DGV20.ColumnHeadersDefaultCellStyle.ForeColor = Color.Black
  977. DGV20.DefaultCellStyle.BackColor = Color.White : DGV20.DefaultCellStyle.ForeColor = Color.Black
  978. DGV23.EnableHeadersVisualStyles = True : DGV23.BackgroundColor = Color.White : DGV23.ColumnHeadersDefaultCellStyle.ForeColor = Color.Black
  979. DGV23.DefaultCellStyle.BackColor = Color.White : DGV23.DefaultCellStyle.ForeColor = Color.Black
  980. DGV24.EnableHeadersVisualStyles = True : DGV24.BackgroundColor = Color.White : DGV24.ColumnHeadersDefaultCellStyle.ForeColor = Color.Black
  981. DGV24.DefaultCellStyle.BackColor = Color.White : DGV24.DefaultCellStyle.ForeColor = Color.Black
  982. DGV25.EnableHeadersVisualStyles = True : DGV25.BackgroundColor = Color.White : DGV25.ColumnHeadersDefaultCellStyle.ForeColor = Color.Black
  983. DGV25.DefaultCellStyle.BackColor = Color.White : DGV25.DefaultCellStyle.ForeColor = Color.Black
  984. DGV26.EnableHeadersVisualStyles = True : DGV26.BackgroundColor = Color.White : DGV26.ColumnHeadersDefaultCellStyle.ForeColor = Color.Black
  985. DGV26.DefaultCellStyle.BackColor = Color.White : DGV26.DefaultCellStyle.ForeColor = Color.Black
  986. DGV27.EnableHeadersVisualStyles = True : DGV27.BackgroundColor = Color.White : DGV27.ColumnHeadersDefaultCellStyle.ForeColor = Color.Black
  987. DGV27.DefaultCellStyle.BackColor = Color.White : DGV27.DefaultCellStyle.ForeColor = Color.Black
  988. DGV30.EnableHeadersVisualStyles = True : DGV30.BackgroundColor = Color.White : DGV30.ColumnHeadersDefaultCellStyle.ForeColor = Color.Black
  989. DGV30.DefaultCellStyle.BackColor = Color.White : DGV30.DefaultCellStyle.ForeColor = Color.Black
  990. DGV31.EnableHeadersVisualStyles = True : DGV31.BackgroundColor = Color.White : DGV31.ColumnHeadersDefaultCellStyle.ForeColor = Color.Black
  991. DGV31.DefaultCellStyle.BackColor = Color.White : DGV31.DefaultCellStyle.ForeColor = Color.Black
  992. DGV32.EnableHeadersVisualStyles = True : DGV32.BackgroundColor = Color.White : DGV32.ColumnHeadersDefaultCellStyle.ForeColor = Color.Black
  993. DGV32.DefaultCellStyle.BackColor = Color.White : DGV32.DefaultCellStyle.ForeColor = Color.Black
  994. DGV33.EnableHeadersVisualStyles = True : DGV33.BackgroundColor = Color.White : DGV33.ColumnHeadersDefaultCellStyle.ForeColor = Color.Black
  995. DGV33.DefaultCellStyle.BackColor = Color.White : DGV33.DefaultCellStyle.ForeColor = Color.Black
  996. DGV34.EnableHeadersVisualStyles = True : DGV34.BackgroundColor = Color.White : DGV34.ColumnHeadersDefaultCellStyle.ForeColor = Color.Black
  997. DGV34.DefaultCellStyle.BackColor = Color.White : DGV34.DefaultCellStyle.ForeColor = Color.Black
  998. DGV37.EnableHeadersVisualStyles = True : DGV37.BackgroundColor = Color.White : DGV37.ColumnHeadersDefaultCellStyle.ForeColor = Color.Black
  999. DGV37.DefaultCellStyle.BackColor = Color.White : DGV37.DefaultCellStyle.ForeColor = Color.Black
  1000. DGV38.EnableHeadersVisualStyles = True : DGV38.BackgroundColor = Color.White : DGV38.ColumnHeadersDefaultCellStyle.ForeColor = Color.Black
  1001. DGV38.DefaultCellStyle.BackColor = Color.White : DGV38.DefaultCellStyle.ForeColor = Color.Black
  1002. DGV39.EnableHeadersVisualStyles = True : DGV39.BackgroundColor = Color.White : DGV39.ColumnHeadersDefaultCellStyle.ForeColor = Color.Black
  1003. DGV39.DefaultCellStyle.BackColor = Color.White : DGV39.DefaultCellStyle.ForeColor = Color.Black
  1004. DGV40.EnableHeadersVisualStyles = True : DGV40.BackgroundColor = Color.White : DGV40.ColumnHeadersDefaultCellStyle.ForeColor = Color.Black
  1005. DGV40.DefaultCellStyle.BackColor = Color.White : DGV40.DefaultCellStyle.ForeColor = Color.Black
  1006. DGV41.EnableHeadersVisualStyles = True : DGV41.BackgroundColor = Color.White : DGV41.ColumnHeadersDefaultCellStyle.ForeColor = Color.Black
  1007. DGV41.DefaultCellStyle.BackColor = Color.White : DGV41.DefaultCellStyle.ForeColor = Color.Black
  1008. DGV1.EnableHeadersVisualStyles = True : DGV1.BackgroundColor = Color.White : DGV1.ColumnHeadersDefaultCellStyle.ForeColor = Color.Red
  1009. DGV1.DefaultCellStyle.BackColor = Color.White : DGV1.DefaultCellStyle.ForeColor = Color.Red
  1010. DGV8.EnableHeadersVisualStyles = True : DGV8.BackgroundColor = Color.White : DGV8.ColumnHeadersDefaultCellStyle.ForeColor = Color.Red
  1011. DGV8.DefaultCellStyle.BackColor = Color.White : DGV8.DefaultCellStyle.ForeColor = Color.Red
  1012. DGV15.EnableHeadersVisualStyles = True : DGV15.BackgroundColor = Color.White : DGV15.ColumnHeadersDefaultCellStyle.ForeColor = Color.Red
  1013. DGV15.DefaultCellStyle.BackColor = Color.White : DGV15.DefaultCellStyle.ForeColor = Color.Red
  1014. DGV22.EnableHeadersVisualStyles = True : DGV22.BackgroundColor = Color.White : DGV22.ColumnHeadersDefaultCellStyle.ForeColor = Color.Red
  1015. DGV22.DefaultCellStyle.BackColor = Color.White : DGV22.DefaultCellStyle.ForeColor = Color.Red
  1016. DGV29.EnableHeadersVisualStyles = True : DGV29.BackgroundColor = Color.White : DGV29.ColumnHeadersDefaultCellStyle.ForeColor = Color.Red
  1017. DGV29.DefaultCellStyle.BackColor = Color.White : DGV29.DefaultCellStyle.ForeColor = Color.Red
  1018. DGV36.EnableHeadersVisualStyles = True : DGV36.BackgroundColor = Color.White : DGV36.ColumnHeadersDefaultCellStyle.ForeColor = Color.Red
  1019. DGV36.DefaultCellStyle.BackColor = Color.White : DGV36.DefaultCellStyle.ForeColor = Color.Red
  1020. DGV7.EnableHeadersVisualStyles = True : DGV7.BackgroundColor = Color.White : DGV7.ColumnHeadersDefaultCellStyle.ForeColor = Color.Green
  1021. DGV7.DefaultCellStyle.BackColor = Color.White : DGV7.DefaultCellStyle.ForeColor = Color.Green
  1022. DGV14.EnableHeadersVisualStyles = True : DGV14.BackgroundColor = Color.White : DGV14.ColumnHeadersDefaultCellStyle.ForeColor = Color.Green
  1023. DGV14.DefaultCellStyle.BackColor = Color.White : DGV14.DefaultCellStyle.ForeColor = Color.Green
  1024. DGV21.EnableHeadersVisualStyles = True : DGV21.BackgroundColor = Color.White : DGV21.ColumnHeadersDefaultCellStyle.ForeColor = Color.Green
  1025. DGV21.DefaultCellStyle.BackColor = Color.White : DGV21.DefaultCellStyle.ForeColor = Color.Green
  1026. DGV28.EnableHeadersVisualStyles = True : DGV28.BackgroundColor = Color.White : DGV28.ColumnHeadersDefaultCellStyle.ForeColor = Color.Green
  1027. DGV28.DefaultCellStyle.BackColor = Color.White : DGV28.DefaultCellStyle.ForeColor = Color.Green
  1028. DGV35.EnableHeadersVisualStyles = True : DGV35.BackgroundColor = Color.White : DGV35.ColumnHeadersDefaultCellStyle.ForeColor = Color.Green
  1029. DGV35.DefaultCellStyle.BackColor = Color.White : DGV35.DefaultCellStyle.ForeColor = Color.Green
  1030. DGV42.EnableHeadersVisualStyles = True : DGV42.BackgroundColor = Color.White : DGV42.ColumnHeadersDefaultCellStyle.ForeColor = Color.Green
  1031. DGV42.DefaultCellStyle.BackColor = Color.White : DGV42.DefaultCellStyle.ForeColor = Color.Green
  1032. Else
  1033. Me.BackColor = Color.Black
  1034. '----------------黑-------------------------------------------
  1035. 星期一_lb.ForeColor = Color.White : 星期二_lb.ForeColor = Color.White : 星期三_lb.ForeColor = Color.White : 星期四_lb.ForeColor = Color.White
  1036. 星期五_lb.ForeColor = Color.White : 年份_lb.ForeColor = Color.White : 月份_lb.ForeColor = Color.White : Label43.ForeColor = Color.White : Label44.ForeColor = Color.White
  1037. 日期_lb2.ForeColor = Color.White : 日期_lb3.ForeColor = Color.White : 日期_lb4.ForeColor = Color.White : 日期_lb5.ForeColor = Color.White : 日期_lb6.ForeColor = Color.White
  1038. 日期_lb9.ForeColor = Color.White : 日期_lb10.ForeColor = Color.White : 日期_lb11.ForeColor = Color.White : 日期_lb12.ForeColor = Color.White : 日期_lb13.ForeColor = Color.White
  1039. 日期_lb16.ForeColor = Color.White : 日期_lb17.ForeColor = Color.White : 日期_lb18.ForeColor = Color.White : 日期_lb19.ForeColor = Color.White : 日期_lb20.ForeColor = Color.White
  1040. 日期_lb23.ForeColor = Color.White : 日期_lb24.ForeColor = Color.White : 日期_lb25.ForeColor = Color.White : 日期_lb26.ForeColor = Color.White : 日期_lb27.ForeColor = Color.White
  1041. 日期_lb30.ForeColor = Color.White : 日期_lb31.ForeColor = Color.White : 日期_lb32.ForeColor = Color.White : 日期_lb33.ForeColor = Color.White : 日期_lb34.ForeColor = Color.White
  1042. 日期_lb37.ForeColor = Color.White : 日期_lb38.ForeColor = Color.White : 日期_lb39.ForeColor = Color.White : 日期_lb40.ForeColor = Color.White : 日期_lb41.ForeColor = Color.White
  1043. '----------------紅-------------------------------------------
  1044. 星期日_lb.ForeColor = Color.LightPink : 日期_lb1.ForeColor = Color.LightPink : 日期_lb8.ForeColor = Color.LightPink : 日期_lb15.ForeColor = Color.LightPink
  1045. 日期_lb22.ForeColor = Color.LightPink : 日期_lb29.ForeColor = Color.LightPink : 日期_lb36.ForeColor = Color.LightPink
  1046. '----------------綠-------------------------------------------
  1047. 星期六_lb.ForeColor = Color.LawnGreen : 日期_lb7.ForeColor = Color.LawnGreen : 日期_lb14.ForeColor = Color.LawnGreen : 日期_lb21.ForeColor = Color.LawnGreen
  1048. 日期_lb28.ForeColor = Color.LawnGreen : 日期_lb35.ForeColor = Color.LawnGreen : 日期_lb42.ForeColor = Color.LawnGreen
  1049. 語轉扭_bt.BackColor = Color.DimGray : 語轉扭_bt.ForeColor = Color.White : 年份_cb.BackColor = Color.DimGray : 年份_cb.ForeColor = Color.White
  1050. 月份_cb.BackColor = Color.DimGray : 月份_cb.ForeColor = Color.White
  1051. DGV2.EnableHeadersVisualStyles = False : DGV2.BackgroundColor = Color.DimGray : DGV2.ColumnHeadersDefaultCellStyle.ForeColor = Color.White
  1052. DGV2.ColumnHeadersDefaultCellStyle.BackColor = Color.Black : DGV2.DefaultCellStyle.BackColor = Color.Black : DGV2.DefaultCellStyle.ForeColor = Color.White
  1053. DGV3.EnableHeadersVisualStyles = False : DGV3.BackgroundColor = Color.DimGray : DGV3.ColumnHeadersDefaultCellStyle.ForeColor = Color.White
  1054. DGV3.ColumnHeadersDefaultCellStyle.BackColor = Color.Black : DGV3.DefaultCellStyle.BackColor = Color.Black : DGV3.DefaultCellStyle.ForeColor = Color.White
  1055. DGV4.EnableHeadersVisualStyles = False : DGV4.BackgroundColor = Color.DimGray : DGV4.ColumnHeadersDefaultCellStyle.ForeColor = Color.White
  1056. DGV4.ColumnHeadersDefaultCellStyle.BackColor = Color.Black : DGV4.DefaultCellStyle.BackColor = Color.Black : DGV4.DefaultCellStyle.ForeColor = Color.White
  1057. DGV5.EnableHeadersVisualStyles = False : DGV5.BackgroundColor = Color.DimGray : DGV5.ColumnHeadersDefaultCellStyle.ForeColor = Color.White
  1058. DGV5.ColumnHeadersDefaultCellStyle.BackColor = Color.Black : DGV5.DefaultCellStyle.BackColor = Color.Black : DGV5.DefaultCellStyle.ForeColor = Color.White
  1059. DGV6.EnableHeadersVisualStyles = False : DGV6.BackgroundColor = Color.DimGray : DGV6.ColumnHeadersDefaultCellStyle.ForeColor = Color.White
  1060. DGV6.ColumnHeadersDefaultCellStyle.BackColor = Color.Black : DGV6.DefaultCellStyle.BackColor = Color.Black : DGV6.DefaultCellStyle.ForeColor = Color.White
  1061. DGV9.EnableHeadersVisualStyles = False : DGV9.BackgroundColor = Color.DimGray : DGV9.ColumnHeadersDefaultCellStyle.ForeColor = Color.White
  1062. DGV9.ColumnHeadersDefaultCellStyle.BackColor = Color.Black : DGV9.DefaultCellStyle.BackColor = Color.Black : DGV9.DefaultCellStyle.ForeColor = Color.White
  1063. DGV10.EnableHeadersVisualStyles = False : DGV10.BackgroundColor = Color.DimGray : DGV10.ColumnHeadersDefaultCellStyle.ForeColor = Color.White
  1064. DGV10.ColumnHeadersDefaultCellStyle.BackColor = Color.Black : DGV10.DefaultCellStyle.BackColor = Color.Black : DGV10.DefaultCellStyle.ForeColor = Color.White
  1065. DGV11.EnableHeadersVisualStyles = False : DGV11.BackgroundColor = Color.DimGray : DGV11.ColumnHeadersDefaultCellStyle.ForeColor = Color.White
  1066. DGV11.ColumnHeadersDefaultCellStyle.BackColor = Color.Black : DGV11.DefaultCellStyle.BackColor = Color.Black : DGV11.DefaultCellStyle.ForeColor = Color.White
  1067. DGV12.EnableHeadersVisualStyles = False : DGV12.BackgroundColor = Color.DimGray : DGV12.ColumnHeadersDefaultCellStyle.ForeColor = Color.White
  1068. DGV12.ColumnHeadersDefaultCellStyle.BackColor = Color.Black : DGV12.DefaultCellStyle.BackColor = Color.Black : DGV12.DefaultCellStyle.ForeColor = Color.White
  1069. DGV13.EnableHeadersVisualStyles = False : DGV13.BackgroundColor = Color.DimGray : DGV13.ColumnHeadersDefaultCellStyle.ForeColor = Color.White
  1070. DGV13.ColumnHeadersDefaultCellStyle.BackColor = Color.Black : DGV13.DefaultCellStyle.BackColor = Color.Black : DGV13.DefaultCellStyle.ForeColor = Color.White
  1071. DGV16.EnableHeadersVisualStyles = False : DGV16.BackgroundColor = Color.DimGray : DGV16.ColumnHeadersDefaultCellStyle.ForeColor = Color.White
  1072. DGV16.ColumnHeadersDefaultCellStyle.BackColor = Color.Black : DGV16.DefaultCellStyle.BackColor = Color.Black : DGV16.DefaultCellStyle.ForeColor = Color.White
  1073. DGV17.EnableHeadersVisualStyles = False : DGV17.BackgroundColor = Color.DimGray : DGV17.ColumnHeadersDefaultCellStyle.ForeColor = Color.White
  1074. DGV17.ColumnHeadersDefaultCellStyle.BackColor = Color.Black : DGV17.DefaultCellStyle.BackColor = Color.Black : DGV17.DefaultCellStyle.ForeColor = Color.White
  1075. DGV18.EnableHeadersVisualStyles = False : DGV18.BackgroundColor = Color.DimGray : DGV18.ColumnHeadersDefaultCellStyle.ForeColor = Color.White
  1076. DGV18.ColumnHeadersDefaultCellStyle.BackColor = Color.Black : DGV18.DefaultCellStyle.BackColor = Color.Black : DGV18.DefaultCellStyle.ForeColor = Color.White
  1077. DGV19.EnableHeadersVisualStyles = False : DGV19.BackgroundColor = Color.DimGray : DGV19.ColumnHeadersDefaultCellStyle.ForeColor = Color.White
  1078. DGV19.ColumnHeadersDefaultCellStyle.BackColor = Color.Black : DGV19.DefaultCellStyle.BackColor = Color.Black : DGV19.DefaultCellStyle.ForeColor = Color.White
  1079. DGV20.EnableHeadersVisualStyles = False : DGV20.BackgroundColor = Color.DimGray : DGV20.ColumnHeadersDefaultCellStyle.ForeColor = Color.White
  1080. DGV20.ColumnHeadersDefaultCellStyle.BackColor = Color.Black : DGV20.DefaultCellStyle.BackColor = Color.Black : DGV20.DefaultCellStyle.ForeColor = Color.White
  1081. DGV23.EnableHeadersVisualStyles = False : DGV23.BackgroundColor = Color.DimGray : DGV23.ColumnHeadersDefaultCellStyle.ForeColor = Color.White
  1082. DGV23.ColumnHeadersDefaultCellStyle.BackColor = Color.Black : DGV23.DefaultCellStyle.BackColor = Color.Black : DGV23.DefaultCellStyle.ForeColor = Color.White
  1083. DGV24.EnableHeadersVisualStyles = False : DGV24.BackgroundColor = Color.DimGray : DGV24.ColumnHeadersDefaultCellStyle.ForeColor = Color.White
  1084. DGV24.ColumnHeadersDefaultCellStyle.BackColor = Color.Black : DGV24.DefaultCellStyle.BackColor = Color.Black : DGV24.DefaultCellStyle.ForeColor = Color.White
  1085. DGV25.EnableHeadersVisualStyles = False : DGV25.BackgroundColor = Color.DimGray : DGV25.ColumnHeadersDefaultCellStyle.ForeColor = Color.White
  1086. DGV25.ColumnHeadersDefaultCellStyle.BackColor = Color.Black : DGV25.DefaultCellStyle.BackColor = Color.Black : DGV25.DefaultCellStyle.ForeColor = Color.White
  1087. DGV26.EnableHeadersVisualStyles = False : DGV26.BackgroundColor = Color.DimGray : DGV26.ColumnHeadersDefaultCellStyle.ForeColor = Color.White
  1088. DGV26.ColumnHeadersDefaultCellStyle.BackColor = Color.Black : DGV26.DefaultCellStyle.BackColor = Color.Black : DGV26.DefaultCellStyle.ForeColor = Color.White
  1089. DGV27.EnableHeadersVisualStyles = False : DGV27.BackgroundColor = Color.DimGray : DGV27.ColumnHeadersDefaultCellStyle.ForeColor = Color.White
  1090. DGV27.ColumnHeadersDefaultCellStyle.BackColor = Color.Black : DGV27.DefaultCellStyle.BackColor = Color.Black : DGV27.DefaultCellStyle.ForeColor = Color.White
  1091. DGV30.EnableHeadersVisualStyles = False : DGV30.BackgroundColor = Color.DimGray : DGV30.ColumnHeadersDefaultCellStyle.ForeColor = Color.White
  1092. DGV30.ColumnHeadersDefaultCellStyle.BackColor = Color.Black : DGV30.DefaultCellStyle.BackColor = Color.Black : DGV30.DefaultCellStyle.ForeColor = Color.White
  1093. DGV31.EnableHeadersVisualStyles = False : DGV31.BackgroundColor = Color.DimGray : DGV31.ColumnHeadersDefaultCellStyle.ForeColor = Color.White
  1094. DGV31.ColumnHeadersDefaultCellStyle.BackColor = Color.Black : DGV31.DefaultCellStyle.BackColor = Color.Black : DGV31.DefaultCellStyle.ForeColor = Color.White
  1095. DGV32.EnableHeadersVisualStyles = False : DGV32.BackgroundColor = Color.DimGray : DGV32.ColumnHeadersDefaultCellStyle.ForeColor = Color.White
  1096. DGV32.ColumnHeadersDefaultCellStyle.BackColor = Color.Black : DGV32.DefaultCellStyle.BackColor = Color.Black : DGV32.DefaultCellStyle.ForeColor = Color.White
  1097. DGV33.EnableHeadersVisualStyles = False : DGV33.BackgroundColor = Color.DimGray : DGV33.ColumnHeadersDefaultCellStyle.ForeColor = Color.White
  1098. DGV33.ColumnHeadersDefaultCellStyle.BackColor = Color.Black : DGV33.DefaultCellStyle.BackColor = Color.Black : DGV33.DefaultCellStyle.ForeColor = Color.White
  1099. DGV34.EnableHeadersVisualStyles = False : DGV34.BackgroundColor = Color.DimGray : DGV34.ColumnHeadersDefaultCellStyle.ForeColor = Color.White
  1100. DGV34.ColumnHeadersDefaultCellStyle.BackColor = Color.Black : DGV34.DefaultCellStyle.BackColor = Color.Black : DGV34.DefaultCellStyle.ForeColor = Color.White
  1101. DGV37.EnableHeadersVisualStyles = False : DGV37.BackgroundColor = Color.DimGray : DGV37.ColumnHeadersDefaultCellStyle.ForeColor = Color.White
  1102. DGV37.ColumnHeadersDefaultCellStyle.BackColor = Color.Black : DGV37.DefaultCellStyle.BackColor = Color.Black : DGV37.DefaultCellStyle.ForeColor = Color.White
  1103. DGV38.EnableHeadersVisualStyles = False : DGV38.BackgroundColor = Color.DimGray : DGV38.ColumnHeadersDefaultCellStyle.ForeColor = Color.White
  1104. DGV38.ColumnHeadersDefaultCellStyle.BackColor = Color.Black : DGV38.DefaultCellStyle.BackColor = Color.Black : DGV38.DefaultCellStyle.ForeColor = Color.White
  1105. DGV39.EnableHeadersVisualStyles = False : DGV39.BackgroundColor = Color.DimGray : DGV39.ColumnHeadersDefaultCellStyle.ForeColor = Color.White
  1106. DGV39.ColumnHeadersDefaultCellStyle.BackColor = Color.Black : DGV39.DefaultCellStyle.BackColor = Color.Black : DGV39.DefaultCellStyle.ForeColor = Color.White
  1107. DGV40.EnableHeadersVisualStyles = False : DGV40.BackgroundColor = Color.DimGray : DGV40.ColumnHeadersDefaultCellStyle.ForeColor = Color.White
  1108. DGV40.ColumnHeadersDefaultCellStyle.BackColor = Color.Black : DGV40.DefaultCellStyle.BackColor = Color.Black : DGV40.DefaultCellStyle.ForeColor = Color.White
  1109. DGV41.EnableHeadersVisualStyles = False : DGV41.BackgroundColor = Color.DimGray : DGV41.ColumnHeadersDefaultCellStyle.ForeColor = Color.White
  1110. DGV41.ColumnHeadersDefaultCellStyle.BackColor = Color.Black : DGV41.DefaultCellStyle.BackColor = Color.Black : DGV41.DefaultCellStyle.ForeColor = Color.White
  1111. DGV1.EnableHeadersVisualStyles = False : DGV1.BackgroundColor = Color.DimGray : DGV1.ColumnHeadersDefaultCellStyle.ForeColor = Color.LightPink
  1112. DGV1.ColumnHeadersDefaultCellStyle.BackColor = Color.Black : DGV1.DefaultCellStyle.BackColor = Color.Black : DGV1.DefaultCellStyle.ForeColor = Color.LightPink
  1113. DGV8.EnableHeadersVisualStyles = False : DGV8.BackgroundColor = Color.DimGray : DGV8.ColumnHeadersDefaultCellStyle.ForeColor = Color.LightPink
  1114. DGV8.ColumnHeadersDefaultCellStyle.BackColor = Color.Black : DGV8.DefaultCellStyle.BackColor = Color.Black : DGV8.DefaultCellStyle.ForeColor = Color.LightPink
  1115. DGV15.EnableHeadersVisualStyles = False : DGV15.BackgroundColor = Color.DimGray : DGV15.ColumnHeadersDefaultCellStyle.ForeColor = Color.LightPink
  1116. DGV15.ColumnHeadersDefaultCellStyle.BackColor = Color.Black : DGV15.DefaultCellStyle.BackColor = Color.Black : DGV15.DefaultCellStyle.ForeColor = Color.LightPink
  1117. DGV22.EnableHeadersVisualStyles = False : DGV22.BackgroundColor = Color.DimGray : DGV22.ColumnHeadersDefaultCellStyle.ForeColor = Color.LightPink
  1118. DGV22.ColumnHeadersDefaultCellStyle.BackColor = Color.Black : DGV22.DefaultCellStyle.BackColor = Color.Black : DGV22.DefaultCellStyle.ForeColor = Color.LightPink
  1119. DGV29.EnableHeadersVisualStyles = False : DGV29.BackgroundColor = Color.DimGray : DGV29.ColumnHeadersDefaultCellStyle.ForeColor = Color.LightPink
  1120. DGV29.ColumnHeadersDefaultCellStyle.BackColor = Color.Black : DGV29.DefaultCellStyle.BackColor = Color.Black : DGV29.DefaultCellStyle.ForeColor = Color.LightPink
  1121. DGV36.EnableHeadersVisualStyles = False : DGV36.BackgroundColor = Color.DimGray : DGV36.ColumnHeadersDefaultCellStyle.ForeColor = Color.LightPink
  1122. DGV36.ColumnHeadersDefaultCellStyle.BackColor = Color.Black : DGV36.DefaultCellStyle.BackColor = Color.Black : DGV36.DefaultCellStyle.ForeColor = Color.LightPink
  1123. DGV7.EnableHeadersVisualStyles = False : DGV7.BackgroundColor = Color.DimGray : DGV7.ColumnHeadersDefaultCellStyle.ForeColor = Color.LightGreen
  1124. DGV7.ColumnHeadersDefaultCellStyle.BackColor = Color.Black : DGV7.DefaultCellStyle.BackColor = Color.Black : DGV7.DefaultCellStyle.ForeColor = Color.LightGreen
  1125. DGV14.EnableHeadersVisualStyles = False : DGV14.BackgroundColor = Color.DimGray : DGV14.ColumnHeadersDefaultCellStyle.ForeColor = Color.LightGreen
  1126. DGV14.ColumnHeadersDefaultCellStyle.BackColor = Color.Black : DGV14.DefaultCellStyle.BackColor = Color.Black : DGV14.DefaultCellStyle.ForeColor = Color.LightGreen
  1127. DGV21.EnableHeadersVisualStyles = False : DGV21.BackgroundColor = Color.DimGray : DGV21.ColumnHeadersDefaultCellStyle.ForeColor = Color.LightGreen
  1128. DGV21.ColumnHeadersDefaultCellStyle.BackColor = Color.Black : DGV21.DefaultCellStyle.BackColor = Color.Black : DGV21.DefaultCellStyle.ForeColor = Color.LightGreen
  1129. DGV28.EnableHeadersVisualStyles = False : DGV28.BackgroundColor = Color.DimGray : DGV28.ColumnHeadersDefaultCellStyle.ForeColor = Color.LightGreen
  1130. DGV28.ColumnHeadersDefaultCellStyle.BackColor = Color.Black : DGV28.DefaultCellStyle.BackColor = Color.Black : DGV28.DefaultCellStyle.ForeColor = Color.LightGreen
  1131. DGV35.EnableHeadersVisualStyles = False : DGV35.BackgroundColor = Color.DimGray : DGV35.ColumnHeadersDefaultCellStyle.ForeColor = Color.LightGreen
  1132. DGV35.ColumnHeadersDefaultCellStyle.BackColor = Color.Black : DGV35.DefaultCellStyle.BackColor = Color.Black : DGV35.DefaultCellStyle.ForeColor = Color.LightGreen
  1133. DGV42.EnableHeadersVisualStyles = False : DGV42.BackgroundColor = Color.DimGray : DGV42.ColumnHeadersDefaultCellStyle.ForeColor = Color.LightGreen
  1134. DGV42.ColumnHeadersDefaultCellStyle.BackColor = Color.Black : DGV42.DefaultCellStyle.BackColor = Color.Black : DGV42.DefaultCellStyle.ForeColor = Color.LightGreen
  1135. End If
  1136. End Sub
  1137. End Class