Nessuna descrizione
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

個人班表.vb 121KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686
  1. Option Strict Off
  2. Imports System.Drawing.Imaging
  3. Imports System.IO
  4. Public Class 個人班表
  5. ReadOnly ds, ds1 As New DataSet
  6. Dim X1, XX, XXX, AA As Double
  7. Dim Q, 開始位置1, 開始位置2, 標準長度, 行(31) As Integer
  8. Private Sub 讀取排班()
  9. Dim ds43 As New DataSet
  10. 人員彙總_dgv.DataSource = Nothing : ds43.Clear()
  11. 人員彙總_dgv.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
  12. 人員彙總_dgv.ColumnHeadersHeight = 40 : 人員彙總_dgv.AllowUserToAddRows = False
  13. SQL_排班系統_人員排班()
  14. da.Fill(ds43) : 人員彙總_dgv.DataSource = ds43.Tables(0) : conn.Close()
  15. 人員彙總_dgv.Columns(0).ReadOnly = True : 人員彙總_dgv.Columns(1).ReadOnly = True : 人員彙總_dgv.Columns(2).ReadOnly = True
  16. 人員彙總_dgv.Columns(3).ReadOnly = True : 人員彙總_dgv.Columns(4).ReadOnly = True
  17. 人員彙總_dgv.Columns(3).DefaultCellStyle.Format = "#,##0.0"
  18. 人員彙總_dgv.Columns(4).DefaultCellStyle.Format = "#,##0.0"
  19. End Sub
  20. Private Sub 讀取排班資料表()
  21. 排班明細_dgv.DataSource = Nothing : ds1.Clear()
  22. 排班明細_dgv.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
  23. 排班明細_dgv.ColumnHeadersHeight = 25
  24. 排班明細_dgv.AllowUserToAddRows = False
  25. SQL_排班系統_個人整月排班()
  26. da.Fill(ds1) : 排班明細_dgv.DataSource = ds1.Tables(0) : conn.Close()
  27. End Sub
  28. Private Sub 讀取星期()
  29. 星期_dgv.DataSource = Nothing : ds.Clear()
  30. 星期_dgv.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
  31. 星期_dgv.ColumnHeadersHeight = 25
  32. 星期_dgv.AllowUserToAddRows = False
  33. SQL_排班系統_個人整月星期()
  34. da.Fill(ds) : 星期_dgv.DataSource = ds.Tables(0) : conn.Close()
  35. End Sub
  36. Private Sub 進度條變化1()
  37. If 姓名_tb1.Text <> "" Or 班別_cb1.Text <> "休" Then
  38. Do2 = NumericUpDown1.Value : 班條長度()
  39. ComboBox1.Size = New Size(340 + XXX, 25) : ComboBox2.Size = New Size(340 - XXX, 25)
  40. Do2 = BUP1.Value : 班條長度1() : ComboBox2.Size = New Size(ComboBox2.Size.Width + XXX, 25)
  41. If CheckBox1.Checked = False And Val(Strings.Left(班別_cb1.Text, 2)) < 17 Then : ComboBox2.Visible = True
  42. ElseIf CheckBox1.Checked = False And Val(Strings.Left(班別_cb1.Text, 2)) >= 17 Then : ComboBox2.Visible = False
  43. ElseIf CheckBox1.Checked = True Then : ComboBox2.Visible = False : End If
  44. End If
  45. End Sub
  46. Private Sub 進度條變化2()
  47. If 姓名_tb2.Text <> "" Or 班別_cb2.Text <> "休" Then
  48. Do2 = NumericUpDown2.Value : 班條長度()
  49. ComboBox3.Size = New Size(340 + XXX, 25) : ComboBox4.Size = New Size(340 - XXX, 25)
  50. Do2 = BUP2.Value : 班條長度1() : ComboBox4.Size = New Size(ComboBox4.Size.Width + XXX, 25)
  51. If CheckBox2.Checked = False And Val(Strings.Left(班別_cb2.Text, 2)) < 17 Then : ComboBox4.Visible = True
  52. ElseIf CheckBox2.Checked = False And Val(Strings.Left(班別_cb2.Text, 2)) >= 17 Then : ComboBox4.Visible = False
  53. ElseIf CheckBox2.Checked = True Then : ComboBox4.Visible = False : End If
  54. End If
  55. End Sub
  56. Private Sub 進度條變化3()
  57. If 姓名_tb3.Text <> "" Or 班別_cb3.Text <> "休" Then
  58. Do2 = NumericUpDown3.Value : 班條長度()
  59. ComboBox5.Size = New Size(340 + XXX, 25) : ComboBox6.Size = New Size(340 - XXX, 25)
  60. Do2 = BUP3.Value : 班條長度1() : ComboBox6.Size = New Size(ComboBox6.Size.Width + XXX, 25)
  61. If CheckBox3.Checked = False And Val(Strings.Left(班別_cb3.Text, 2)) < 17 Then : ComboBox6.Visible = True
  62. ElseIf CheckBox3.Checked = False And Val(Strings.Left(班別_cb3.Text, 2)) >= 17 Then : ComboBox6.Visible = False
  63. ElseIf CheckBox3.Checked = True Then : ComboBox6.Visible = False
  64. End If
  65. End If
  66. End Sub
  67. Private Sub 進度條變化4()
  68. If 姓名_tb4.Text <> "" Or 班別_cb4.Text <> "休" Then
  69. Do2 = NumericUpDown4.Value : 班條長度()
  70. ComboBox7.Size = New Size(340 + XXX, 25) : ComboBox8.Size = New Size(340 - XXX, 25)
  71. Do2 = BUP4.Value : 班條長度1() : ComboBox8.Size = New Size(ComboBox8.Size.Width + XXX, 25)
  72. If CheckBox4.Checked = False And Val(Strings.Left(班別_cb4.Text, 2)) < 17 Then : ComboBox8.Visible = True
  73. ElseIf CheckBox4.Checked = False And Val(Strings.Left(班別_cb4.Text, 2)) >= 17 Then : ComboBox8.Visible = False
  74. ElseIf CheckBox4.Checked = True Then : ComboBox8.Visible = False
  75. End If
  76. End If
  77. End Sub
  78. Private Sub 進度條變化5()
  79. If 姓名_tb5.Text <> "" Or 班別_cb5.Text <> "休" Then
  80. Do2 = NumericUpDown5.Value : 班條長度()
  81. ComboBox9.Size = New Size(340 + XXX, 25) : ComboBox10.Size = New Size(340 - XXX, 25)
  82. Do2 = BUP5.Value : 班條長度1() : ComboBox10.Size = New Size(ComboBox10.Size.Width + XXX, 25)
  83. If CheckBox5.Checked = False And Val(Strings.Left(班別_cb5.Text, 2)) < 17 Then : ComboBox10.Visible = True
  84. ElseIf CheckBox5.Checked = False And Val(Strings.Left(班別_cb5.Text, 2)) >= 17 Then : ComboBox10.Visible = False
  85. ElseIf CheckBox5.Checked = True Then : ComboBox10.Visible = False : End If
  86. End If
  87. End Sub
  88. Private Sub 進度條變化6()
  89. If 姓名_tb6.Text <> "" Or 班別_cb6.Text <> "休" Then
  90. Do2 = NumericUpDown6.Value : 班條長度()
  91. ComboBox11.Size = New Size(340 + XXX, 25) : ComboBox12.Size = New Size(340 - XXX, 25)
  92. Do2 = BUP6.Value : 班條長度1() : ComboBox12.Size = New Size(ComboBox12.Size.Width + XXX, 25)
  93. If CheckBox6.Checked = False And Val(Strings.Left(班別_cb6.Text, 2)) < 17 Then : ComboBox12.Visible = True
  94. ElseIf CheckBox6.Checked = False And Val(Strings.Left(班別_cb6.Text, 2)) >= 17 Then : ComboBox12.Visible = False
  95. ElseIf CheckBox6.Checked = True Then : ComboBox12.Visible = False : End If
  96. End If
  97. End Sub
  98. Private Sub 進度條變化7()
  99. If 姓名_tb7.Text <> "" Or 班別_cb7.Text <> "休" Then
  100. Do2 = NumericUpDown7.Value : 班條長度()
  101. ComboBox13.Size = New Size(340 + XXX, 25) : ComboBox14.Size = New Size(340 - XXX, 25)
  102. Do2 = BUP7.Value : 班條長度1() : ComboBox14.Size = New Size(ComboBox14.Size.Width + XXX, 25)
  103. If CheckBox7.Checked = False And Val(Strings.Left(班別_cb7.Text, 2)) < 17 Then : ComboBox14.Visible = True
  104. ElseIf CheckBox7.Checked = False And Val(Strings.Left(班別_cb7.Text, 2)) >= 17 Then : ComboBox14.Visible = False
  105. ElseIf CheckBox7.Checked = True Then : ComboBox14.Visible = False : End If
  106. End If
  107. End Sub
  108. Private Sub 進度條變化8()
  109. If 姓名_tb8.Text <> "" Or 班別_cb8.Text <> "休" Then
  110. Do2 = NumericUpDown8.Value : 班條長度()
  111. ComboBox15.Size = New Size(340 + XXX, 25) : ComboBox16.Size = New Size(340 - XXX, 25)
  112. Do2 = BUP8.Value : 班條長度1() : ComboBox16.Size = New Size(ComboBox16.Size.Width + XXX, 25)
  113. If CheckBox8.Checked = False And Val(Strings.Left(班別_cb8.Text, 2)) < 17 Then : ComboBox16.Visible = True
  114. ElseIf CheckBox8.Checked = False And Val(Strings.Left(班別_cb8.Text, 2)) >= 17 Then : ComboBox16.Visible = False
  115. ElseIf CheckBox8.Checked = True Then : ComboBox16.Visible = False : End If
  116. End If
  117. End Sub
  118. Private Sub 進度條變化9()
  119. If 姓名_tb9.Text <> "" Or 班別_cb9.Text <> "休" Then
  120. Do2 = NumericUpDown9.Value : 班條長度()
  121. ComboBox17.Size = New Size(340 + XXX, 25) : ComboBox18.Size = New Size(340 - XXX, 25)
  122. Do2 = BUP9.Value : 班條長度1() : ComboBox18.Size = New Size(ComboBox18.Size.Width + XXX, 25)
  123. If CheckBox9.Checked = False And Val(Strings.Left(班別_cb9.Text, 2)) < 17 Then : ComboBox18.Visible = True
  124. ElseIf CheckBox9.Checked = False And Val(Strings.Left(班別_cb9.Text, 2)) >= 17 Then : ComboBox18.Visible = False
  125. ElseIf CheckBox9.Checked = True Then : ComboBox18.Visible = False : End If
  126. End If
  127. End Sub
  128. Private Sub 進度條變化10()
  129. If 姓名_tb10.Text <> "" Or 班別_cb10.Text <> "休" Then
  130. Do2 = NumericUpDown10.Value : 班條長度()
  131. ComboBox19.Size = New Size(340 + XXX, 25) : ComboBox20.Size = New Size(340 - XXX, 25)
  132. Do2 = BUP10.Value : 班條長度1() : ComboBox20.Size = New Size(ComboBox20.Size.Width + XXX, 25)
  133. If CheckBox10.Checked = False And Val(Strings.Left(班別_cb10.Text, 2)) < 17 Then : ComboBox20.Visible = True
  134. ElseIf CheckBox10.Checked = False And Val(Strings.Left(班別_cb10.Text, 2)) >= 17 Then : ComboBox20.Visible = False
  135. ElseIf CheckBox10.Checked = True Then : ComboBox20.Visible = False : End If
  136. End If
  137. End Sub
  138. Private Sub 進度條變化11()
  139. If 姓名_tb11.Text <> "" Or 班別_cb11.Text <> "休" Then
  140. Do2 = NumericUpDown11.Value : 班條長度()
  141. ComboBox21.Size = New Size(340 + XXX, 25) : ComboBox22.Size = New Size(340 - XXX, 25)
  142. Do2 = BUP11.Value : 班條長度1() : ComboBox22.Size = New Size(ComboBox22.Size.Width + XXX, 25)
  143. If CheckBox11.Checked = False And Val(Strings.Left(班別_cb11.Text, 2)) < 17 Then : ComboBox22.Visible = True
  144. ElseIf CheckBox11.Checked = False And Val(Strings.Left(班別_cb11.Text, 2)) >= 17 Then : ComboBox22.Visible = False
  145. ElseIf CheckBox11.Checked = True Then : ComboBox22.Visible = False : End If
  146. End If
  147. End Sub
  148. Private Sub 進度條變化12()
  149. If 姓名_tb12.Text <> "" Or 班別_cb12.Text <> "休" Then
  150. Do2 = NumericUpDown12.Value : 班條長度()
  151. ComboBox23.Size = New Size(340 + XXX, 25) : ComboBox24.Size = New Size(340 - XXX, 25)
  152. Do2 = BUP12.Value : 班條長度1() : ComboBox24.Size = New Size(ComboBox24.Size.Width + XXX, 25)
  153. If CheckBox12.Checked = False And Val(Strings.Left(班別_cb12.Text, 2)) < 17 Then : ComboBox24.Visible = True
  154. ElseIf CheckBox12.Checked = False And Val(Strings.Left(班別_cb12.Text, 2)) >= 17 Then : ComboBox24.Visible = False
  155. ElseIf CheckBox12.Checked = True Then : ComboBox24.Visible = False : End If
  156. End If
  157. End Sub
  158. Private Sub 進度條變化13()
  159. If 姓名_tb13.Text <> "" Or 班別_cb13.Text <> "休" Then
  160. Do2 = NumericUpDown13.Value : 班條長度()
  161. ComboBox25.Size = New Size(340 + XXX, 25) : ComboBox26.Size = New Size(340 - XXX, 25)
  162. Do2 = BUP13.Value : 班條長度1() : ComboBox26.Size = New Size(ComboBox26.Size.Width + XXX, 25)
  163. If CheckBox13.Checked = False And Val(Strings.Left(班別_cb13.Text, 2)) < 17 Then : ComboBox26.Visible = True
  164. ElseIf CheckBox13.Checked = False And Val(Strings.Left(班別_cb13.Text, 2)) >= 17 Then : ComboBox26.Visible = False
  165. ElseIf CheckBox13.Checked = True Then : ComboBox26.Visible = False : End If
  166. End If
  167. End Sub
  168. Private Sub 進度條變化14()
  169. If 姓名_tb14.Text <> "" Or 班別_cb14.Text <> "休" Then
  170. Do2 = NumericUpDown14.Value : 班條長度()
  171. ComboBox27.Size = New Size(340 + XXX, 25) : ComboBox28.Size = New Size(340 - XXX, 25)
  172. Do2 = BUP14.Value : 班條長度1() : ComboBox28.Size = New Size(ComboBox28.Size.Width + XXX, 25)
  173. If CheckBox14.Checked = False And Val(Strings.Left(班別_cb14.Text, 2)) < 17 Then : ComboBox28.Visible = True
  174. ElseIf CheckBox14.Checked = False And Val(Strings.Left(班別_cb14.Text, 2)) >= 17 Then : ComboBox28.Visible = False
  175. ElseIf CheckBox14.Checked = True Then : ComboBox28.Visible = False
  176. End If
  177. End If
  178. End Sub
  179. Private Sub 進度條變化15()
  180. If 姓名_tb15.Text <> "" Or 班別_cb15.Text <> "休" Then
  181. Do2 = NumericUpDown15.Value : 班條長度()
  182. ComboBox29.Size = New Size(340 + XXX, 25) : ComboBox30.Size = New Size(340 - XXX, 25)
  183. Do2 = BUP15.Value : 班條長度1() : ComboBox30.Size = New Size(ComboBox30.Size.Width + XXX, 25)
  184. If CheckBox15.Checked = False And Val(Strings.Left(班別_cb15.Text, 2)) < 17 Then : ComboBox30.Visible = True
  185. ElseIf CheckBox15.Checked = False And Val(Strings.Left(班別_cb15.Text, 2)) >= 17 Then : ComboBox30.Visible = False
  186. ElseIf CheckBox15.Checked = True Then : ComboBox30.Visible = False : End If
  187. End If
  188. End Sub
  189. Private Sub 進度條變化16()
  190. If 姓名_tb16.Text <> "" Or 班別_cb16.Text <> "休" Then
  191. Do2 = NumericUpDown16.Value : 班條長度()
  192. ComboBox31.Size = New Size(340 + XXX, 25) : ComboBox32.Size = New Size(340 - XXX, 25)
  193. Do2 = BUP16.Value : 班條長度1() : ComboBox32.Size = New Size(ComboBox32.Size.Width + XXX, 25)
  194. If CheckBox16.Checked = False And Val(Strings.Left(班別_cb16.Text, 2)) < 17 Then : ComboBox32.Visible = True
  195. ElseIf CheckBox16.Checked = False And Val(Strings.Left(班別_cb16.Text, 2)) >= 17 Then : ComboBox32.Visible = False
  196. ElseIf CheckBox16.Checked = True Then : ComboBox32.Visible = False : End If
  197. End If
  198. End Sub
  199. Private Sub 進度條變化17()
  200. If 姓名_tb17.Text <> "" Or 班別_cb17.Text <> "休" Then
  201. Do2 = NumericUpDown17.Value : 班條長度()
  202. ComboBox33.Size = New Size(340 + XXX, 25) : ComboBox34.Size = New Size(340 - XXX, 25)
  203. Do2 = BUP17.Value : 班條長度1() : ComboBox34.Size = New Size(ComboBox34.Size.Width + XXX, 25)
  204. If CheckBox17.Checked = False And Val(Strings.Left(班別_cb17.Text, 2)) < 17 Then : ComboBox34.Visible = True
  205. ElseIf CheckBox17.Checked = False And Val(Strings.Left(班別_cb17.Text, 2)) >= 17 Then : ComboBox34.Visible = False
  206. ElseIf CheckBox17.Checked = True Then : ComboBox34.Visible = False : End If
  207. End If
  208. End Sub
  209. Private Sub 進度條變化18()
  210. If 姓名_tb18.Text <> "" Or 班別_cb18.Text <> "休" Then
  211. Do2 = NumericUpDown18.Value : 班條長度()
  212. ComboBox35.Size = New Size(340 + XXX, 25) : ComboBox36.Size = New Size(340 - XXX, 25)
  213. Do2 = BUP18.Value : 班條長度1() : ComboBox36.Size = New Size(ComboBox36.Size.Width + XXX, 25)
  214. If CheckBox18.Checked = False And Val(Strings.Left(班別_cb18.Text, 2)) < 17 Then : ComboBox36.Visible = True
  215. ElseIf CheckBox18.Checked = False And Val(Strings.Left(班別_cb18.Text, 2)) >= 17 Then : ComboBox36.Visible = False
  216. ElseIf CheckBox18.Checked = True Then : ComboBox36.Visible = False : End If
  217. End If
  218. End Sub
  219. Private Sub 進度條變化19()
  220. If 姓名_tb19.Text <> "" Or 班別_cb19.Text <> "休" Then
  221. Do2 = NumericUpDown19.Value : 班條長度()
  222. ComboBox37.Size = New Size(340 + XXX, 25) : ComboBox38.Size = New Size(340 - XXX, 25)
  223. Do2 = BUP19.Value : 班條長度1() : ComboBox38.Size = New Size(ComboBox38.Size.Width + XXX, 25)
  224. If CheckBox19.Checked = False And Val(Strings.Left(班別_cb19.Text, 2)) < 17 Then : ComboBox38.Visible = True
  225. ElseIf CheckBox19.Checked = False And Val(Strings.Left(班別_cb19.Text, 2)) >= 17 Then : ComboBox38.Visible = False
  226. ElseIf CheckBox19.Checked = True Then : ComboBox38.Visible = False : End If
  227. End If
  228. End Sub
  229. Private Sub 進度條變化20()
  230. If 姓名_tb20.Text <> "" Or 班別_cb20.Text <> "休" Then
  231. Do2 = NumericUpDown20.Value : 班條長度()
  232. ComboBox39.Size = New Size(340 + XXX, 25) : ComboBox40.Size = New Size(340 - XXX, 25)
  233. Do2 = BUP20.Value : 班條長度1() : ComboBox40.Size = New Size(ComboBox40.Size.Width + XXX, 25)
  234. If CheckBox20.Checked = False And Val(Strings.Left(班別_cb20.Text, 2)) < 17 Then : ComboBox40.Visible = True
  235. ElseIf CheckBox20.Checked = False And Val(Strings.Left(班別_cb20.Text, 2)) >= 17 Then : ComboBox40.Visible = False
  236. ElseIf CheckBox20.Checked = True Then : ComboBox40.Visible = False : End If
  237. End If
  238. End Sub
  239. Private Sub 進度條變化21()
  240. If 姓名_tb21.Text <> "" Or 班別_cb21.Text <> "休" Then
  241. Do2 = NumericUpDown21.Value : 班條長度()
  242. ComboBox41.Size = New Size(340 + XXX, 25) : ComboBox42.Size = New Size(340 - XXX, 25)
  243. Do2 = BUP21.Value : 班條長度1() : ComboBox42.Size = New Size(ComboBox42.Size.Width + XXX, 25)
  244. If CheckBox21.Checked = False And Val(Strings.Left(班別_cb21.Text, 2)) < 17 Then : ComboBox42.Visible = True
  245. ElseIf CheckBox21.Checked = False And Val(Strings.Left(班別_cb21.Text, 2)) >= 17 Then : ComboBox42.Visible = False
  246. ElseIf CheckBox21.Checked = True Then : ComboBox42.Visible = False : End If
  247. End If
  248. End Sub
  249. Private Sub 進度條變化22()
  250. If 姓名_tb22.Text <> "" Or 班別_cb22.Text <> "休" Then
  251. Do2 = NumericUpDown22.Value : 班條長度()
  252. ComboBox43.Size = New Size(340 + XXX, 25) : ComboBox44.Size = New Size(340 - XXX, 25)
  253. Do2 = BUP22.Value : 班條長度1() : ComboBox44.Size = New Size(ComboBox44.Size.Width + XXX, 25)
  254. If CheckBox22.Checked = False And Val(Strings.Left(班別_cb22.Text, 2)) < 17 Then : ComboBox44.Visible = True
  255. ElseIf CheckBox22.Checked = False And Val(Strings.Left(班別_cb22.Text, 2)) >= 17 Then : ComboBox44.Visible = False
  256. ElseIf CheckBox22.Checked = True Then : ComboBox44.Visible = False : End If
  257. End If
  258. End Sub
  259. Private Sub 進度條變化23()
  260. If 姓名_tb23.Text <> "" Or 班別_cb23.Text <> "休" Then
  261. Do2 = NumericUpDown23.Value : 班條長度()
  262. ComboBox45.Size = New Size(340 + XXX, 25) : ComboBox46.Size = New Size(340 - XXX, 25)
  263. Do2 = BUP23.Value : 班條長度1() : ComboBox46.Size = New Size(ComboBox46.Size.Width + XXX, 25)
  264. If CheckBox23.Checked = False And Val(Strings.Left(班別_cb23.Text, 2)) < 17 Then : ComboBox46.Visible = True
  265. ElseIf CheckBox23.Checked = False And Val(Strings.Left(班別_cb23.Text, 2)) >= 17 Then : ComboBox46.Visible = False
  266. ElseIf CheckBox23.Checked = True Then : ComboBox46.Visible = False : End If
  267. End If
  268. End Sub
  269. Private Sub 進度條變化24()
  270. If 姓名_tb24.Text <> "" Or 班別_cb24.Text <> "休" Then
  271. Do2 = NumericUpDown24.Value : 班條長度()
  272. ComboBox47.Size = New Size(340 + XXX, 25) : ComboBox48.Size = New Size(340 - XXX, 25)
  273. Do2 = BUP24.Value : 班條長度1() : ComboBox48.Size = New Size(ComboBox48.Size.Width + XXX, 25)
  274. If CheckBox24.Checked = False And Val(Strings.Left(班別_cb24.Text, 2)) < 17 Then : ComboBox48.Visible = True
  275. ElseIf CheckBox24.Checked = False And Val(Strings.Left(班別_cb24.Text, 2)) >= 17 Then : ComboBox48.Visible = False
  276. ElseIf CheckBox24.Checked = True Then : ComboBox48.Visible = False : End If
  277. End If
  278. End Sub
  279. Private Sub 進度條變化25()
  280. If 姓名_tb25.Text <> "" Or 班別_cb25.Text <> "休" Then
  281. Do2 = NumericUpDown25.Value : 班條長度()
  282. ComboBox49.Size = New Size(340 + XXX, 25) : ComboBox50.Size = New Size(340 - XXX, 25)
  283. Do2 = BUP25.Value : 班條長度1() : ComboBox50.Size = New Size(ComboBox50.Size.Width + XXX, 25)
  284. If CheckBox25.Checked = False And Val(Strings.Left(班別_cb25.Text, 2)) < 17 Then : ComboBox50.Visible = True
  285. ElseIf CheckBox25.Checked = False And Val(Strings.Left(班別_cb25.Text, 2)) >= 17 Then : ComboBox50.Visible = False
  286. ElseIf CheckBox25.Checked = True Then : ComboBox50.Visible = False : End If
  287. End If
  288. End Sub
  289. Private Sub 進度條變化26()
  290. If 姓名_tb26.Text <> "" Or 班別_cb26.Text <> "休" Then
  291. Do2 = NumericUpDown26.Value : 班條長度()
  292. ComboBox51.Size = New Size(340 + XXX, 25) : ComboBox52.Size = New Size(340 - XXX, 25)
  293. Do2 = BUP26.Value : 班條長度1() : ComboBox52.Size = New Size(ComboBox52.Size.Width + XXX, 25)
  294. If CheckBox26.Checked = False And Val(Strings.Left(班別_cb26.Text, 2)) < 17 Then : ComboBox52.Visible = True
  295. ElseIf CheckBox26.Checked = False And Val(Strings.Left(班別_cb26.Text, 2)) >= 17 Then : ComboBox52.Visible = False
  296. ElseIf CheckBox26.Checked = True Then : ComboBox52.Visible = False : End If
  297. End If
  298. End Sub
  299. Private Sub 進度條變化27()
  300. If 姓名_tb27.Text <> "" Or 班別_cb27.Text <> "休" Then
  301. Do2 = NumericUpDown27.Value : 班條長度()
  302. ComboBox53.Size = New Size(340 + XXX, 25) : ComboBox54.Size = New Size(340 - XXX, 25)
  303. Do2 = BUP27.Value : 班條長度1() : ComboBox54.Size = New Size(ComboBox54.Size.Width + XXX, 25)
  304. If CheckBox27.Checked = False And Val(Strings.Left(班別_cb27.Text, 2)) < 17 Then : ComboBox54.Visible = True
  305. ElseIf CheckBox27.Checked = False And Val(Strings.Left(班別_cb27.Text, 2)) >= 17 Then : ComboBox54.Visible = False
  306. ElseIf CheckBox27.Checked = True Then : ComboBox54.Visible = False : End If
  307. End If
  308. End Sub
  309. Private Sub 進度條變化28()
  310. If 姓名_tb28.Text <> "" Or 班別_cb28.Text <> "休" Then
  311. Do2 = NumericUpDown28.Value : 班條長度()
  312. ComboBox55.Size = New Size(340 + XXX, 25) : ComboBox56.Size = New Size(340 - XXX, 25)
  313. Do2 = BUP28.Value : 班條長度1() : ComboBox56.Size = New Size(ComboBox56.Size.Width + XXX, 25)
  314. If CheckBox28.Checked = False And Val(Strings.Left(班別_cb28.Text, 2)) < 17 Then : ComboBox56.Visible = True
  315. ElseIf CheckBox28.Checked = False And Val(Strings.Left(班別_cb28.Text, 2)) >= 17 Then : ComboBox56.Visible = False
  316. ElseIf CheckBox28.Checked = True Then : ComboBox56.Visible = False : End If
  317. End If
  318. End Sub
  319. Private Sub 進度條變化29()
  320. If 姓名_tb29.Text <> "" Or 班別_cb29.Text <> "休" Then
  321. Do2 = NumericUpDown29.Value : 班條長度()
  322. ComboBox57.Size = New Size(340 + XXX, 25) : ComboBox58.Size = New Size(340 - XXX, 25)
  323. Do2 = BUP29.Value : 班條長度1() : ComboBox58.Size = New Size(ComboBox58.Size.Width + XXX, 25)
  324. If CheckBox29.Checked = False And Val(Strings.Left(班別_cb29.Text, 2)) < 17 Then : ComboBox58.Visible = True
  325. ElseIf CheckBox29.Checked = False And Val(Strings.Left(班別_cb29.Text, 2)) >= 17 Then : ComboBox58.Visible = False
  326. ElseIf CheckBox29.Checked = True Then : ComboBox58.Visible = False : End If
  327. End If
  328. End Sub
  329. Private Sub 進度條變化30()
  330. If 姓名_tb30.Text <> "" Or 班別_cb30.Text <> "休" Then
  331. Do2 = NumericUpDown30.Value : 班條長度()
  332. ComboBox59.Size = New Size(340 + XXX, 25) : ComboBox60.Size = New Size(340 - XXX, 25)
  333. Do2 = BUP30.Value : 班條長度1() : ComboBox60.Size = New Size(ComboBox60.Size.Width + XXX, 25)
  334. If CheckBox30.Checked = False And Val(Strings.Left(班別_cb30.Text, 2)) < 17 Then : ComboBox60.Visible = True
  335. ElseIf CheckBox30.Checked = False And Val(Strings.Left(班別_cb30.Text, 2)) >= 17 Then : ComboBox60.Visible = False
  336. ElseIf CheckBox30.Checked = True Then : ComboBox60.Visible = False : End If
  337. End If
  338. End Sub
  339. Private Sub 進度條變化31()
  340. If 姓名_tb31.Text <> "" Or 班別_cb31.Text <> "休" Then
  341. Do2 = NumericUpDown31.Value : 班條長度()
  342. ComboBox61.Size = New Size(340 + XXX, 25) : ComboBox62.Size = New Size(340 - XXX, 25)
  343. Do2 = BUP31.Value : 班條長度1() : ComboBox62.Size = New Size(ComboBox62.Size.Width + XXX, 25)
  344. If CheckBox31.Checked = False And Val(Strings.Left(班別_cb31.Text, 2)) < 17 Then : ComboBox62.Visible = True
  345. ElseIf CheckBox31.Checked = False And Val(Strings.Left(班別_cb31.Text, 2)) >= 17 Then : ComboBox62.Visible = False
  346. ElseIf CheckBox31.Checked = True Then : ComboBox62.Visible = False : End If
  347. End If
  348. End Sub
  349. Private Sub 休息變化1()
  350. XX = Val(Strings.Left(班別_cb1.Text, 2)) * 60 + Val(Strings.Mid(班別_cb1.Text, 4, 2)) : 班別圖示計算載入()
  351. X1 = NUP1.Value : 休息長度() : Do2 = NumericUpDown1.Value : 班條長度()
  352. ComboBox1.Location = New Point(開始位置1 + XX, 行(1)) : ComboBox2.Location = New Point(開始位置2 + XX + X1 + XXX, 行(1)) : 進度條變化1()
  353. End Sub
  354. Private Sub 休息變化2()
  355. XX = Val(Strings.Left(班別_cb2.Text, 2)) * 60 + Val(Strings.Mid(班別_cb2.Text, 4, 2)) : 班別圖示計算載入()
  356. X1 = NUP2.Value : 休息長度() : Do2 = NumericUpDown2.Value : 班條長度()
  357. ComboBox3.Location = New Point(開始位置1 + XX, 行(2)) : ComboBox4.Location = New Point(開始位置2 + XX + X1 + XXX, 行(2)) : 進度條變化2()
  358. End Sub
  359. Private Sub 休息變化3()
  360. XX = Val(Strings.Left(班別_cb3.Text, 2)) * 60 + Val(Strings.Mid(班別_cb3.Text, 4, 2)) : 班別圖示計算載入()
  361. X1 = NUP3.Value : 休息長度() : Do2 = NumericUpDown3.Value : 班條長度()
  362. ComboBox5.Location = New Point(開始位置1 + XX, 行(3)) : ComboBox6.Location = New Point(開始位置2 + XX + X1 + XXX, 行(3)) : 進度條變化3()
  363. End Sub
  364. Private Sub 休息變化4()
  365. XX = Val(Strings.Left(班別_cb4.Text, 2)) * 60 + Val(Strings.Mid(班別_cb4.Text, 4, 2)) : 班別圖示計算載入()
  366. X1 = NUP4.Value : 休息長度() : Do2 = NumericUpDown4.Value : 班條長度()
  367. ComboBox7.Location = New Point(開始位置1 + XX, 行(4)) : ComboBox8.Location = New Point(開始位置2 + XX + X1 + XXX, 行(4)) : 進度條變化4()
  368. End Sub
  369. Private Sub 休息變化5()
  370. XX = Val(Strings.Left(班別_cb5.Text, 2)) * 60 + Val(Strings.Mid(班別_cb5.Text, 4, 2)) : 班別圖示計算載入()
  371. X1 = NUP5.Value : 休息長度() : Do2 = NumericUpDown5.Value : 班條長度()
  372. ComboBox9.Location = New Point(開始位置1 + XX, 行(5)) : ComboBox10.Location = New Point(開始位置2 + XX + X1 + XXX, 行(5)) : 進度條變化5()
  373. End Sub
  374. Private Sub 休息變化6()
  375. XX = Val(Strings.Left(班別_cb6.Text, 2)) * 60 + Val(Strings.Mid(班別_cb6.Text, 4, 2)) : 班別圖示計算載入()
  376. X1 = NUP6.Value : 休息長度() : Do2 = NumericUpDown6.Value : 班條長度()
  377. ComboBox11.Location = New Point(開始位置1 + XX, 行(6)) : ComboBox12.Location = New Point(開始位置2 + XX + X1 + XXX, 行(6)) : 進度條變化6()
  378. End Sub
  379. Private Sub 休息變化7()
  380. XX = Val(Strings.Left(班別_cb7.Text, 2)) * 60 + Val(Strings.Mid(班別_cb7.Text, 4, 2)) : 班別圖示計算載入()
  381. X1 = NUP7.Value : 休息長度() : Do2 = NumericUpDown7.Value : 班條長度()
  382. ComboBox13.Location = New Point(開始位置1 + XX, 行(7)) : ComboBox14.Location = New Point(開始位置2 + XX + X1 + XXX, 行(7)) : 進度條變化7()
  383. End Sub
  384. Private Sub 休息變化8()
  385. XX = Val(Strings.Left(班別_cb8.Text, 2)) * 60 + Val(Strings.Mid(班別_cb8.Text, 4, 2)) : 班別圖示計算載入()
  386. X1 = NUP8.Value : 休息長度() : Do2 = NumericUpDown8.Value : 班條長度()
  387. ComboBox15.Location = New Point(開始位置1 + XX, 行(8)) : ComboBox16.Location = New Point(開始位置2 + XX + X1 + XXX, 行(8)) : 進度條變化8()
  388. End Sub
  389. Private Sub 休息變化9()
  390. XX = Val(Strings.Left(班別_cb9.Text, 2)) * 60 + Val(Strings.Mid(班別_cb9.Text, 4, 2)) : 班別圖示計算載入()
  391. X1 = NUP9.Value : 休息長度() : Do2 = NumericUpDown9.Value : 班條長度()
  392. ComboBox17.Location = New Point(開始位置1 + XX, 行(9)) : ComboBox18.Location = New Point(開始位置2 + XX + X1 + XXX, 行(9)) : 進度條變化9()
  393. End Sub
  394. Private Sub 休息變化10()
  395. XX = Val(Strings.Left(班別_cb10.Text, 2)) * 60 + Val(Strings.Mid(班別_cb10.Text, 4, 2)) : 班別圖示計算載入()
  396. X1 = NUP10.Value : 休息長度() : Do2 = NumericUpDown10.Value : 班條長度()
  397. ComboBox19.Location = New Point(開始位置1 + XX, 行(10)) : ComboBox20.Location = New Point(開始位置2 + XX + X1 + XXX, 行(10)) : 進度條變化10()
  398. End Sub
  399. Private Sub 休息變化11()
  400. XX = Val(Strings.Left(班別_cb11.Text, 2)) * 60 + Val(Strings.Mid(班別_cb11.Text, 4, 2)) : 班別圖示計算載入()
  401. X1 = NUP11.Value : 休息長度() : Do2 = NumericUpDown11.Value : 班條長度()
  402. ComboBox21.Location = New Point(開始位置1 + XX, 行(11)) : ComboBox22.Location = New Point(開始位置2 + XX + X1 + XXX, 行(11)) : 進度條變化11()
  403. End Sub
  404. Private Sub 休息變化12()
  405. XX = Val(Strings.Left(班別_cb12.Text, 2)) * 60 + Val(Strings.Mid(班別_cb12.Text, 4, 2)) : 班別圖示計算載入()
  406. X1 = NUP12.Value : 休息長度() : Do2 = NumericUpDown12.Value : 班條長度()
  407. ComboBox23.Location = New Point(開始位置1 + XX, 行(12)) : ComboBox24.Location = New Point(開始位置2 + XX + X1 + XXX, 行(12)) : 進度條變化12()
  408. End Sub
  409. Private Sub 休息變化13()
  410. XX = Val(Strings.Left(班別_cb13.Text, 2)) * 60 + Val(Strings.Mid(班別_cb13.Text, 4, 2)) : 班別圖示計算載入()
  411. X1 = NUP13.Value : 休息長度() : Do2 = NumericUpDown13.Value : 班條長度()
  412. ComboBox25.Location = New Point(開始位置1 + XX, 行(13)) : ComboBox26.Location = New Point(開始位置2 + XX + X1 + XXX, 行(13)) : 進度條變化13()
  413. End Sub
  414. Private Sub 休息變化14()
  415. XX = Val(Strings.Left(班別_cb14.Text, 2)) * 60 + Val(Strings.Mid(班別_cb14.Text, 4, 2)) : 班別圖示計算載入()
  416. X1 = NUP14.Value : 休息長度() : Do2 = NumericUpDown14.Value : 班條長度()
  417. ComboBox27.Location = New Point(開始位置1 + XX, 行(14)) : ComboBox28.Location = New Point(開始位置2 + XX + X1 + XXX, 行(14)) : 進度條變化14()
  418. End Sub
  419. Private Sub 休息變化15()
  420. XX = Val(Strings.Left(班別_cb15.Text, 2)) * 60 + Val(Strings.Mid(班別_cb15.Text, 4, 2)) : 班別圖示計算載入()
  421. X1 = NUP15.Value : 休息長度() : Do2 = NumericUpDown15.Value : 班條長度()
  422. ComboBox29.Location = New Point(開始位置1 + XX, 行(15)) : ComboBox30.Location = New Point(開始位置2 + XX + X1 + XXX, 行(15)) : 進度條變化15()
  423. End Sub
  424. Private Sub 休息變化16()
  425. XX = Val(Strings.Left(班別_cb16.Text, 2)) * 60 + Val(Strings.Mid(班別_cb16.Text, 4, 2)) : 班別圖示計算載入()
  426. X1 = NUP16.Value : 休息長度() : Do2 = NumericUpDown16.Value : 班條長度()
  427. ComboBox31.Location = New Point(開始位置1 + XX, 行(16)) : ComboBox32.Location = New Point(開始位置2 + XX + X1 + XXX, 行(16)) : 進度條變化16()
  428. End Sub
  429. Private Sub 休息變化17()
  430. XX = Val(Strings.Left(班別_cb17.Text, 2)) * 60 + Val(Strings.Mid(班別_cb17.Text, 4, 2)) : 班別圖示計算載入()
  431. X1 = NUP17.Value : 休息長度() : Do2 = NumericUpDown17.Value : 班條長度()
  432. ComboBox33.Location = New Point(開始位置1 + XX, 行(17)) : ComboBox34.Location = New Point(開始位置2 + XX + X1 + XXX, 行(17)) : 進度條變化17()
  433. End Sub
  434. Private Sub 休息變化18()
  435. XX = Val(Strings.Left(班別_cb18.Text, 2)) * 60 + Val(Strings.Mid(班別_cb18.Text, 4, 2)) : 班別圖示計算載入()
  436. X1 = NUP18.Value : 休息長度() : Do2 = NumericUpDown18.Value : 班條長度()
  437. ComboBox35.Location = New Point(開始位置1 + XX, 行(18)) : ComboBox36.Location = New Point(開始位置2 + XX + X1 + XXX, 行(18)) : 進度條變化18()
  438. End Sub
  439. Private Sub 休息變化19()
  440. XX = Val(Strings.Left(班別_cb19.Text, 2)) * 60 + Val(Strings.Mid(班別_cb19.Text, 4, 2)) : 班別圖示計算載入()
  441. X1 = NUP19.Value : 休息長度() : Do2 = NumericUpDown19.Value : 班條長度()
  442. ComboBox37.Location = New Point(開始位置1 + XX, 行(19)) : ComboBox38.Location = New Point(開始位置2 + XX + X1 + XXX, 行(19)) : 進度條變化19()
  443. End Sub
  444. Private Sub 休息變化20()
  445. XX = Val(Strings.Left(班別_cb20.Text, 2)) * 60 + Val(Strings.Mid(班別_cb20.Text, 4, 2)) : 班別圖示計算載入()
  446. X1 = NUP20.Value : 休息長度() : Do2 = NumericUpDown20.Value : 班條長度()
  447. ComboBox39.Location = New Point(開始位置1 + XX, 行(20)) : ComboBox40.Location = New Point(開始位置2 + XX + X1 + XXX, 行(20)) : 進度條變化20()
  448. End Sub
  449. Private Sub 休息變化21()
  450. XX = Val(Strings.Left(班別_cb21.Text, 2)) * 60 + Val(Strings.Mid(班別_cb21.Text, 4, 2)) : 班別圖示計算載入()
  451. X1 = NUP21.Value : 休息長度() : Do2 = NumericUpDown21.Value : 班條長度()
  452. ComboBox41.Location = New Point(開始位置1 + XX, 行(21)) : ComboBox42.Location = New Point(開始位置2 + XX + X1 + XXX, 行(21)) : 進度條變化21()
  453. End Sub
  454. Private Sub 休息變化22()
  455. XX = Val(Strings.Left(班別_cb22.Text, 2)) * 60 + Val(Strings.Mid(班別_cb22.Text, 4, 2)) : 班別圖示計算載入()
  456. X1 = NUP22.Value : 休息長度() : Do2 = NumericUpDown22.Value : 班條長度()
  457. ComboBox43.Location = New Point(開始位置1 + XX, 行(22)) : ComboBox44.Location = New Point(開始位置2 + XX + X1 + XXX, 行(22)) : 進度條變化22()
  458. End Sub
  459. Private Sub 休息變化23()
  460. XX = Val(Strings.Left(班別_cb23.Text, 2)) * 60 + Val(Strings.Mid(班別_cb23.Text, 4, 2)) : 班別圖示計算載入()
  461. X1 = NUP23.Value : 休息長度() : Do2 = NumericUpDown23.Value : 班條長度()
  462. ComboBox45.Location = New Point(開始位置1 + XX, 行(23)) : ComboBox46.Location = New Point(開始位置2 + XX + X1 + XXX, 行(23)) : 進度條變化23()
  463. End Sub
  464. Private Sub 休息變化24()
  465. XX = Val(Strings.Left(班別_cb24.Text, 2)) * 60 + Val(Strings.Mid(班別_cb24.Text, 4, 2)) : 班別圖示計算載入()
  466. X1 = NUP24.Value : 休息長度() : Do2 = NumericUpDown24.Value : 班條長度()
  467. ComboBox47.Location = New Point(開始位置1 + XX, 行(24)) : ComboBox48.Location = New Point(開始位置2 + XX + X1 + XXX, 行(24)) : 進度條變化24()
  468. End Sub
  469. Private Sub 休息變化25()
  470. XX = Val(Strings.Left(班別_cb25.Text, 2)) * 60 + Val(Strings.Mid(班別_cb25.Text, 4, 2)) : 班別圖示計算載入()
  471. X1 = NUP25.Value : 休息長度() : Do2 = NumericUpDown25.Value : 班條長度()
  472. ComboBox49.Location = New Point(開始位置1 + XX, 行(25)) : ComboBox50.Location = New Point(開始位置2 + XX + X1 + XXX, 行(25)) : 進度條變化25()
  473. End Sub
  474. Private Sub 休息變化26()
  475. XX = Val(Strings.Left(班別_cb26.Text, 2)) * 60 + Val(Strings.Mid(班別_cb26.Text, 4, 2)) : 班別圖示計算載入()
  476. X1 = NUP26.Value : 休息長度() : Do2 = NumericUpDown26.Value : 班條長度()
  477. ComboBox51.Location = New Point(開始位置1 + XX, 行(26)) : ComboBox52.Location = New Point(開始位置2 + XX + X1 + XXX, 行(26)) : 進度條變化26()
  478. End Sub
  479. Private Sub 休息變化27()
  480. XX = Val(Strings.Left(班別_cb27.Text, 2)) * 60 + Val(Strings.Mid(班別_cb27.Text, 4, 2)) : 班別圖示計算載入()
  481. X1 = NUP27.Value : 休息長度() : Do2 = NumericUpDown27.Value : 班條長度()
  482. ComboBox53.Location = New Point(開始位置1 + XX, 行(27)) : ComboBox54.Location = New Point(開始位置2 + XX + X1 + XXX, 行(27)) : 進度條變化27()
  483. End Sub
  484. Private Sub 休息變化28()
  485. XX = Val(Strings.Left(班別_cb28.Text, 2)) * 60 + Val(Strings.Mid(班別_cb28.Text, 4, 2)) : 班別圖示計算載入()
  486. X1 = NUP28.Value : 休息長度() : Do2 = NumericUpDown28.Value : 班條長度()
  487. ComboBox55.Location = New Point(開始位置1 + XX, 行(28)) : ComboBox56.Location = New Point(開始位置2 + XX + X1 + XXX, 行(28)) : 進度條變化28()
  488. End Sub
  489. Private Sub 休息變化29()
  490. XX = Val(Strings.Left(班別_cb29.Text, 2)) * 60 + Val(Strings.Mid(班別_cb29.Text, 4, 2)) : 班別圖示計算載入()
  491. X1 = NUP29.Value : 休息長度() : Do2 = NumericUpDown29.Value : 班條長度()
  492. ComboBox57.Location = New Point(開始位置1 + XX, 行(29)) : ComboBox58.Location = New Point(開始位置2 + XX + X1 + XXX, 行(29)) : 進度條變化29()
  493. End Sub
  494. Private Sub 休息變化30()
  495. XX = Val(Strings.Left(班別_cb30.Text, 2)) * 60 + Val(Strings.Mid(班別_cb30.Text, 4, 2)) : 班別圖示計算載入()
  496. X1 = NUP30.Value : 休息長度() : Do2 = NumericUpDown30.Value : 班條長度()
  497. ComboBox59.Location = New Point(開始位置1 + XX, 行(30)) : ComboBox60.Location = New Point(開始位置2 + XX + X1 + XXX, 行(30)) : 進度條變化30()
  498. End Sub
  499. Private Sub 休息變化31()
  500. XX = Val(Strings.Left(班別_cb31.Text, 2)) * 60 + Val(Strings.Mid(班別_cb31.Text, 4, 2)) : 班別圖示計算載入()
  501. X1 = NUP31.Value : 休息長度() : Do2 = NumericUpDown31.Value : 班條長度()
  502. ComboBox61.Location = New Point(開始位置1 + XX, 行(31)) : ComboBox62.Location = New Point(開始位置2 + XX + X1 + XXX, 行(31)) : 進度條變化31()
  503. End Sub
  504. Private Sub 班別_下拉表單資料載入()
  505. SQL_排班系統_班別_下拉()
  506. For no As Integer = 1 To 31
  507. Dim 班別_cbS As ComboBox = CType(Me.Controls.Find("班別_cb" + no.ToString(), True)(0), ComboBox)
  508. 班別_cbS.Items.Clear()
  509. Next
  510. While (dr.Read())
  511. For no As Integer = 1 To 31
  512. Dim 班別_cbS As ComboBox = CType(Me.Controls.Find("班別_cb" + no.ToString(), True)(0), ComboBox)
  513. 班別_cbS.Items.Add(dr("時段"))
  514. Next
  515. End While
  516. conn.Close()
  517. End Sub
  518. Private Sub 班別圖示計算載入()
  519. XX = (XX - 480) * 1.41666
  520. End Sub
  521. Private Sub 班條長度()
  522. If Do2 = 4 Or Do2 = 6.5 Or Do2 = 7 Or Do2 = 7.5 Or Do2 = 8 Then : XXX = 0
  523. ElseIf Do2 = 2 Then : XXX = -(85 * 2)
  524. ElseIf Do2 = 2.5 Then : XXX = -(85) + (-(85 / 2))
  525. ElseIf Do2 = 3 Then : XXX = -(85)
  526. ElseIf Do2 = 3.5 Then : XXX = -(85 / 2)
  527. ElseIf Do2 = 4.5 Then : XXX = 85 / 2
  528. ElseIf Do2 = 5 Then : XXX = 85
  529. ElseIf Do2 = 5.5 Then : XXX = 85 + (85 / 2)
  530. ElseIf Do2 = 6 Then : XXX = 85 * 2
  531. End If
  532. End Sub
  533. Private Sub 班條長度1()
  534. Dim 小時 As Double = 80
  535. If Do2 = 4 Or Do2 = 6.5 Or Do2 = 7 Or Do2 = 7.5 Or Do2 = 8 Then : XXX = 0
  536. ElseIf Do2 = 1 Then : XXX = -(小時 * 3)
  537. ElseIf Do2 = 2 Then : XXX = -(小時 * 2)
  538. ElseIf Do2 = 2.5 Then : XXX = -(小時) + (-(小時 / 2))
  539. ElseIf Do2 = 3 Then : XXX = -(小時)
  540. ElseIf Do2 = 3.5 Then : XXX = -(小時 / 2)
  541. ElseIf Do2 = 4.5 Then : XXX = 小時 / 2
  542. ElseIf Do2 = 5 Then : XXX = 小時
  543. ElseIf Do2 = 5.5 Then : XXX = 小時 + (小時 / 2)
  544. ElseIf Do2 = 6 Then : XXX = 小時 * 2
  545. End If
  546. End Sub
  547. Private Sub 休息長度()
  548. X1 = (X1 - 1) * 8.4 * 10
  549. End Sub
  550. Private Sub 個人班表_Load(sender As Object, e As EventArgs) Handles MyBase.Load
  551. '--------------坐標系設定---------------------------
  552. 開始位置1 = 460 : 開始位置2 = 885 : 行(0) = 27 : 標準長度 = 297
  553. 行(1) = 44 : 行(2) = 行(1) + 行(0) : 行(3) = 行(2) + 行(0) : 行(4) = 行(3) + 行(0) : 行(5) = 行(4) + 行(0) : 行(6) = 行(5) + 行(0) : 行(7) = 行(6) + 行(0) : 行(8) = 行(7) + 行(0)
  554. 行(9) = 行(8) + 行(0) : 行(10) = 行(9) + 行(0) : 行(11) = 行(10) + 行(0) : 行(12) = 行(11) + 行(0) : 行(13) = 行(12) + 行(0) : 行(14) = 行(13) + 行(0) : 行(15) = 行(14) + 行(0)
  555. 行(16) = 行(15) + 行(0) : 行(17) = 行(16) + 行(0) : 行(18) = 行(17) + 行(0) : 行(19) = 行(18) + 行(0) : 行(20) = 行(19) + 行(0) : 行(21) = 行(20) + 行(0) : 行(22) = 行(21) + 行(0)
  556. 行(23) = 行(22) + 行(0) : 行(24) = 行(23) + 行(0) : 行(25) = 行(24) + 行(0) : 行(26) = 行(25) + 行(0) : 行(27) = 行(26) + 行(0) : 行(28) = 行(27) + 行(0) : 行(29) = 行(28) + 行(0)
  557. 行(30) = 行(29) + 行(0) : 行(31) = 行(30) + 行(0)
  558. 人員彙總_dgv.SendToBack()
  559. 年_lb.Text = PA : 月_lb.Text = PA1
  560. 班別_下拉表單資料載入() : 個人班表預設()
  561. End Sub
  562. Private Sub 個人班表預設()
  563. XX = 0 : Dim Q As Integer
  564. For no As Integer = 1 To 31
  565. Dim 姓名_tbS As TextBox = CType(Me.Controls.Find("姓名_tb" + no.ToString(), True)(0), TextBox)
  566. Dim 班別_cbS As ComboBox = CType(Me.Controls.Find("班別_cb" + no.ToString(), True)(0), ComboBox)
  567. Dim ComboBoxsS1 As ComboBox = CType(Me.Controls.Find("ComboBox" + (no + 62 + Q).ToString(), True)(0), ComboBox)
  568. Dim ComboBoxsS2 As ComboBox = CType(Me.Controls.Find("ComboBox" + (no + 62 + 1 + Q).ToString(), True)(0), ComboBox)
  569. Dim ComboBoxs1 As ComboBox = CType(Me.Controls.Find("ComboBox" + (no + Q).ToString(), True)(0), ComboBox)
  570. Dim ComboBoxs2 As ComboBox = CType(Me.Controls.Find("ComboBox" + (no + 1 + Q).ToString(), True)(0), ComboBox)
  571. Q += 1 : 姓名_tbS.Text = "" : 班別_cbS.Text = "休"
  572. ComboBoxs1.Visible = False : ComboBoxs2.Visible = False
  573. ComboBoxsS1.SelectedIndex = 0 : ComboBoxsS2.SelectedIndex = 0
  574. Next
  575. ComboBox1.Location = New Point(開始位置1 + XX, 行(1)) : ComboBox2.Location = New Point(開始位置2 + XX, 行(1))
  576. ComboBox3.Location = New Point(開始位置1 + XX, 行(2)) : ComboBox4.Location = New Point(開始位置2 + XX, 行(2))
  577. ComboBox5.Location = New Point(開始位置1 + XX, 行(3)) : ComboBox6.Location = New Point(開始位置2 + XX, 行(3))
  578. ComboBox7.Location = New Point(開始位置1 + XX, 行(4)) : ComboBox8.Location = New Point(開始位置2 + XX, 行(4))
  579. ComboBox9.Location = New Point(開始位置1 + XX, 行(5)) : ComboBox10.Location = New Point(開始位置2 + XX, 行(5))
  580. ComboBox11.Location = New Point(開始位置1 + XX, 行(6)) : ComboBox12.Location = New Point(開始位置2 + XX, 行(6))
  581. ComboBox13.Location = New Point(開始位置1 + XX, 行(7)) : ComboBox14.Location = New Point(開始位置2 + XX, 行(7))
  582. ComboBox15.Location = New Point(開始位置1 + XX, 行(8)) : ComboBox16.Location = New Point(開始位置2 + XX, 行(8))
  583. ComboBox17.Location = New Point(開始位置1 + XX, 行(9)) : ComboBox18.Location = New Point(開始位置2 + XX, 行(9))
  584. ComboBox19.Location = New Point(開始位置1 + XX, 行(10)) : ComboBox20.Location = New Point(開始位置2 + XX, 行(10))
  585. ComboBox21.Location = New Point(開始位置1 + XX, 行(11)) : ComboBox22.Location = New Point(開始位置2 + XX, 行(11))
  586. ComboBox23.Location = New Point(開始位置1 + XX, 行(12)) : ComboBox24.Location = New Point(開始位置2 + XX, 行(12))
  587. ComboBox25.Location = New Point(開始位置1 + XX, 行(13)) : ComboBox26.Location = New Point(開始位置2 + XX, 行(13))
  588. ComboBox27.Location = New Point(開始位置1 + XX, 行(14)) : ComboBox28.Location = New Point(開始位置2 + XX, 行(14))
  589. ComboBox29.Location = New Point(開始位置1 + XX, 行(15)) : ComboBox30.Location = New Point(開始位置2 + XX, 行(15))
  590. ComboBox31.Location = New Point(開始位置1 + XX, 行(16)) : ComboBox32.Location = New Point(開始位置2 + XX, 行(16))
  591. ComboBox33.Location = New Point(開始位置1 + XX, 行(17)) : ComboBox34.Location = New Point(開始位置2 + XX, 行(17))
  592. ComboBox35.Location = New Point(開始位置1 + XX, 行(18)) : ComboBox36.Location = New Point(開始位置2 + XX, 行(18))
  593. ComboBox37.Location = New Point(開始位置1 + XX, 行(19)) : ComboBox38.Location = New Point(開始位置2 + XX, 行(19))
  594. ComboBox39.Location = New Point(開始位置1 + XX, 行(20)) : ComboBox40.Location = New Point(開始位置2 + XX, 行(20))
  595. ComboBox41.Location = New Point(開始位置1 + XX, 行(21)) : ComboBox42.Location = New Point(開始位置2 + XX, 行(21))
  596. ComboBox43.Location = New Point(開始位置1 + XX, 行(22)) : ComboBox44.Location = New Point(開始位置2 + XX, 行(22))
  597. ComboBox45.Location = New Point(開始位置1 + XX, 行(23)) : ComboBox46.Location = New Point(開始位置2 + XX, 行(23))
  598. ComboBox47.Location = New Point(開始位置1 + XX, 行(24)) : ComboBox48.Location = New Point(開始位置2 + XX, 行(24))
  599. ComboBox49.Location = New Point(開始位置1 + XX, 行(25)) : ComboBox50.Location = New Point(開始位置2 + XX, 行(25))
  600. ComboBox51.Location = New Point(開始位置1 + XX, 行(26)) : ComboBox52.Location = New Point(開始位置2 + XX, 行(26))
  601. ComboBox53.Location = New Point(開始位置1 + XX, 行(27)) : ComboBox54.Location = New Point(開始位置2 + XX, 行(27))
  602. ComboBox55.Location = New Point(開始位置1 + XX, 行(28)) : ComboBox56.Location = New Point(開始位置2 + XX, 行(28))
  603. ComboBox57.Location = New Point(開始位置1 + XX, 行(29)) : ComboBox58.Location = New Point(開始位置2 + XX, 行(29))
  604. ComboBox59.Location = New Point(開始位置1 + XX, 行(30)) : ComboBox60.Location = New Point(開始位置2 + XX, 行(30))
  605. ComboBox61.Location = New Point(開始位置1 + XX, 行(31)) : ComboBox62.Location = New Point(開始位置2 + XX, 行(31))
  606. End Sub
  607. Private Sub 個人班表_Shown(sender As Object, e As EventArgs) Handles MyBase.Shown
  608. PA = 年_lb.Text & "/" & 月_lb.Text : 人員_tb.Text = PA2 : 讀取排班() : 個人班表讀取()
  609. End Sub
  610. Private Sub 個人班表讀取()
  611. 讀取排班資料表() : 讀取星期()
  612. If 排班明細_dgv.Rows.Count > 0 Then : 個人班表預設()
  613. Q = 0 : Dim WW As Integer = 0
  614. For no As Integer = 1 To 31
  615. Dim TextBoxS As TextBox = CType(Me.Controls.Find("TextBox" + no.ToString(), True)(0), TextBox)
  616. Dim TextBoxS1 As TextBox = CType(Me.Controls.Find("TextBox" + (no + 31).ToString(), True)(0), TextBox)
  617. Dim 姓名_tbS As TextBox = CType(Me.Controls.Find("姓名_tb" + no.ToString(), True)(0), TextBox)
  618. Dim 班別_cbS As ComboBox = CType(Me.Controls.Find("班別_cb" + no.ToString(), True)(0), ComboBox)
  619. Dim A_lbS As Label = CType(Me.Controls.Find("A_lb" + no.ToString(), True)(0), Label)
  620. Dim CheckBoxS As CheckBox = CType(Me.Controls.Find("CheckBox" + no.ToString(), True)(0), CheckBox)
  621. Dim NumericUpDownS As NumericUpDown = CType(Me.Controls.Find("NumericUpDown" + no.ToString(), True)(0), NumericUpDown)
  622. Dim NUPS As NumericUpDown = CType(Me.Controls.Find("NUP" + no.ToString(), True)(0), NumericUpDown)
  623. Dim BUPS As NumericUpDown = CType(Me.Controls.Find("BUP" + no.ToString(), True)(0), NumericUpDown)
  624. Dim ComboBoxsS1 As ComboBox = CType(Me.Controls.Find("ComboBox" + (no + 62 + Q).ToString(), True)(0), ComboBox)
  625. Dim ComboBoxsS2 As ComboBox = CType(Me.Controls.Find("ComboBox" + (no + 62 + 1 + Q).ToString(), True)(0), ComboBox)
  626. Dim ComboBoxs1 As ComboBox = CType(Me.Controls.Find("ComboBox" + (no + Q).ToString(), True)(0), ComboBox)
  627. Dim ComboBoxs2 As ComboBox = CType(Me.Controls.Find("ComboBox" + (no + 1 + Q).ToString(), True)(0), ComboBox) : Q += 1
  628. If no - 1 <= 星期_dgv.Rows.Count - 1 Then '班表簽認
  629. TextBoxS.Text = 星期_dgv.Rows(no - 1).Cells("星期").Value
  630. If 星期_dgv.Rows(no - 1).Cells("班表簽認").Value.ToString = "Y" Then : TextBoxS1.Text = "已鎖定" : TextBoxS1.BackColor = Color.PaleGreen
  631. Else : TextBoxS1.Text = "會變動" : TextBoxS1.BackColor = Color.Pink : End If
  632. Else : TextBoxS.Text = "" : End If
  633. If WW <= 排班明細_dgv.Rows.Count - 1 Then
  634. If Val(排班明細_dgv.Rows(WW).Cells("項次").Value.ToString) = Val(A_lbS.Text) Then
  635. If 排班明細_dgv.Rows(WW).Cells("班別").Value.ToString <> "休" Then
  636. ComboBoxs1.Text = 排班明細_dgv.Rows(WW).Cells("一段").Value : ComboBoxs2.Text = 排班明細_dgv.Rows(WW).Cells("二段").Value
  637. ComboBoxsS1.Text = 排班明細_dgv.Rows(WW).Cells("顏色1").Value : ComboBoxsS2.Text = 排班明細_dgv.Rows(WW).Cells("顏色2").Value
  638. NUPS.Value = 排班明細_dgv.Rows(WW).Cells("休息").Value : NumericUpDownS.Value = 排班明細_dgv.Rows(WW).Cells("時數").Value
  639. 姓名_tbS.Text = 排班明細_dgv.Rows(WW).Cells("姓名").Value.ToString : 班別_cbS.Text = 排班明細_dgv.Rows(WW).Cells("班別").Value.ToString
  640. BUPS.Value = 排班明細_dgv.Rows(WW).Cells("後段").Value : CheckBoxS.Checked = 排班明細_dgv.Rows(WW).Cells("半天").Value : WW += 1
  641. Else
  642. ComboBoxs1.Text = "" : ComboBoxs2.Text = "" : NUPS.Value = 0.5 : NumericUpDownS.Value = 4 : 姓名_tbS.Text = "" : 班別_cbS.Text = "休" : CheckBoxS.Checked = False : WW += 1
  643. End If
  644. Else
  645. ComboBoxs1.Text = "" : ComboBoxs2.Text = "" : NUPS.Value = 0.5 : NumericUpDownS.Value = 4 : 姓名_tbS.Text = "" : 班別_cbS.Text = "休" : CheckBoxS.Checked = False
  646. End If
  647. Else
  648. ComboBoxs1.Text = "" : ComboBoxs2.Text = "" : NUPS.Value = 0.5 : NumericUpDownS.Value = 4 : 姓名_tbS.Text = "" : 班別_cbS.Text = "休" : CheckBoxS.Checked = False
  649. End If
  650. Next
  651. Else : 個人班表預設() : End If
  652. End Sub
  653. Private Sub 截圖_bt_Click(sender As Object, e As EventArgs) Handles 截圖_bt.Click
  654. Dim bm = New Bitmap(Panel1.Width, Panel1.Height) : Panel1.Controls.SetChildIndex(PictureBox1, 0)
  655. Panel1.DrawToBitmap(bm, Panel1.ClientRectangle) : My.Computer.Clipboard.SetImage(bm) : PictureBox1.SendToBack()
  656. If 存檔_ch.Checked = True Then ' 保存圖片到桌面
  657. Dim desktopPath As String = Environment.GetFolderPath(Environment.SpecialFolder.Desktop)
  658. Dim filePath As String = Path.Combine(desktopPath, 年_lb.Text & 月_lb.Text & 人員_tb.Text & ".png")
  659. bm.Save(filePath, ImageFormat.Png) : MsgBox("已將圖片存檔到桌面!!")
  660. End If
  661. End Sub
  662. Private Sub 日期上移_bt_Click(sender As Object, e As EventArgs) Handles 日期上移_bt.Click
  663. If 月_lb.Text <> 1 Then
  664. 月_lb.Text = CInt(月_lb.Text) - 1
  665. If CInt(月_lb.Text) < 10 Then : 月_lb.Text = "0" & 月_lb.Text : End If
  666. Else
  667. 年_lb.Text = CInt(年_lb.Text) - 1 : 月_lb.Text = 12
  668. If CInt(月_lb.Text) < 10 Then : 月_lb.Text = "0" & 月_lb.Text : End If
  669. End If : PA = 年_lb.Text & "/" & 月_lb.Text : PA2 = 人員_tb.Text : 個人班表讀取()
  670. End Sub
  671. Private Sub 日期下移_bt_Click(sender As Object, e As EventArgs) Handles 日期下移_bt.Click
  672. If 月_lb.Text <> 12 Then
  673. 月_lb.Text = CInt(月_lb.Text) + 1
  674. If CInt(月_lb.Text) < 10 Then : 月_lb.Text = "0" & 月_lb.Text : End If
  675. Else
  676. 年_lb.Text = CInt(年_lb.Text) + 1 : 月_lb.Text = 1
  677. If CInt(月_lb.Text) < 10 Then : 月_lb.Text = "0" & 月_lb.Text : End If
  678. End If : PA = 年_lb.Text & "/" & 月_lb.Text : PA2 = 人員_tb.Text : 個人班表讀取()
  679. End Sub
  680. Private Sub 人員向前_bt_Click(sender As Object, e As EventArgs) Handles 人員向前_bt.Click
  681. For I As Integer = 0 To 人員彙總_dgv.Rows.Count - 1
  682. If 人員_tb.Text = 人員彙總_dgv.Rows(I).Cells("姓名").Value.ToString() Then
  683. If I = 0 Then : MsgBox("已經是第一筆人員資料!!") : Else
  684. 人員_tb.Text = 人員彙總_dgv.Rows(I - 1).Cells("姓名").Value.ToString()
  685. PA = 年_lb.Text & "/" & 月_lb.Text : PA2 = 人員_tb.Text : 個人班表讀取() : Exit Sub
  686. End If
  687. End If
  688. If I = 人員彙總_dgv.Rows.Count - 1 Then
  689. 人員_tb.Text = 人員彙總_dgv.Rows(0).Cells("姓名").Value.ToString()
  690. PA = 年_lb.Text & "/" & 月_lb.Text : PA2 = 人員_tb.Text : 個人班表讀取() : Exit Sub
  691. End If
  692. Next
  693. End Sub
  694. Private Sub 人員向後_bt_Click(sender As Object, e As EventArgs) Handles 人員向後_bt.Click
  695. For I As Integer = 0 To 人員彙總_dgv.Rows.Count - 1
  696. If 人員_tb.Text = 人員彙總_dgv.Rows(I).Cells("姓名").Value.ToString() Then
  697. If I = 人員彙總_dgv.Rows.Count - 1 Then : MsgBox("已經是最後一筆人員資料!!") : Else
  698. 人員_tb.Text = 人員彙總_dgv.Rows(I + 1).Cells("姓名").Value.ToString()
  699. PA = 年_lb.Text & "/" & 月_lb.Text : PA2 = 人員_tb.Text : 個人班表讀取() : Exit Sub
  700. End If
  701. End If
  702. If I = 人員彙總_dgv.Rows.Count - 1 Then
  703. 人員_tb.Text = 人員彙總_dgv.Rows(I).Cells("姓名").Value.ToString()
  704. PA = 年_lb.Text & "/" & 月_lb.Text : PA2 = 人員_tb.Text : 個人班表讀取() : Exit Sub
  705. End If
  706. Next
  707. End Sub
  708. Private Sub 姓名1_tb_TextChanged(sender As Object, e As EventArgs) Handles 姓名_tb1.TextChanged
  709. If 姓名_tb1.Text = "" Or 班別_cb1.Text = "休" Then : ComboBox1.Visible = False : ComboBox2.Visible = False : Else
  710. ComboBox1.Visible = True : ComboBox2.Visible = True : XX = 0
  711. If 班別_cb1.Text = "" Or 班別_cb1.Text = "休" Then
  712. ComboBox1.Location = New Point(開始位置1 + XX, 行(1)) : ComboBox2.Location = New Point(開始位置2 + XX, 行(1))
  713. End If : 進度條變化1()
  714. End If
  715. End Sub
  716. Private Sub 姓名2_tb_TextChanged(sender As Object, e As EventArgs) Handles 姓名_tb2.TextChanged
  717. If 姓名_tb2.Text = "" Or 班別_cb2.Text = "休" Then : ComboBox3.Visible = False : ComboBox4.Visible = False : Else
  718. ComboBox3.Visible = True : ComboBox4.Visible = True : XX = 0
  719. If 班別_cb2.Text = "" Or 班別_cb2.Text = "休" Then
  720. ComboBox3.Location = New Point(開始位置1 + XX, 行(2)) : ComboBox4.Location = New Point(開始位置2 + XX, 行(2))
  721. End If : 進度條變化2()
  722. End If
  723. End Sub
  724. Private Sub 姓名3_tb_TextChanged(sender As Object, e As EventArgs) Handles 姓名_tb3.TextChanged
  725. If 姓名_tb3.Text = "" Or 班別_cb3.Text = "休" Then : ComboBox5.Visible = False : ComboBox6.Visible = False : Else
  726. ComboBox5.Visible = True : ComboBox6.Visible = True : XX = 0
  727. If 班別_cb3.Text = "" Or 班別_cb3.Text = "休" Then
  728. ComboBox5.Location = New Point(開始位置1 + XX, 行(3)) : ComboBox6.Location = New Point(開始位置2 + XX, 行(3))
  729. End If : 進度條變化3()
  730. End If
  731. End Sub
  732. Private Sub 姓名4_tb_TextChanged(sender As Object, e As EventArgs) Handles 姓名_tb4.TextChanged
  733. If 姓名_tb4.Text = "" Or 班別_cb4.Text = "休" Then : ComboBox7.Visible = False : ComboBox8.Visible = False : Else
  734. ComboBox7.Visible = True : ComboBox8.Visible = True : XX = 0
  735. If 班別_cb4.Text = "" Or 班別_cb4.Text = "休" Then
  736. ComboBox7.Location = New Point(開始位置1 + XX, 行(4)) : ComboBox8.Location = New Point(開始位置2 + XX, 行(4))
  737. End If : 進度條變化4()
  738. End If
  739. End Sub
  740. Private Sub 姓名5_tb_TextChanged(sender As Object, e As EventArgs) Handles 姓名_tb5.TextChanged
  741. If 姓名_tb5.Text = "" Or 班別_cb5.Text = "休" Then : ComboBox9.Visible = False : ComboBox10.Visible = False : Else
  742. ComboBox9.Visible = True : ComboBox10.Visible = True : XX = 0
  743. If 班別_cb5.Text = "" Or 班別_cb5.Text = "休" Then
  744. ComboBox9.Location = New Point(開始位置1 + XX, 行(5)) : ComboBox10.Location = New Point(開始位置2 + XX, 行(5))
  745. End If : 進度條變化5()
  746. End If
  747. End Sub
  748. Private Sub 姓名6_tb_TextChanged(sender As Object, e As EventArgs) Handles 姓名_tb6.TextChanged
  749. If 姓名_tb6.Text = "" Or 班別_cb6.Text = "休" Then : ComboBox11.Visible = False : ComboBox12.Visible = False : Else
  750. ComboBox11.Visible = True : ComboBox12.Visible = True : XX = 0
  751. If 班別_cb6.Text = "" Or 班別_cb6.Text = "休" Then
  752. ComboBox11.Location = New Point(開始位置1 + XX, 行(6)) : ComboBox12.Location = New Point(開始位置2 + XX, 行(6))
  753. End If : 進度條變化6()
  754. End If
  755. End Sub
  756. Private Sub 姓名7_tb_TextChanged(sender As Object, e As EventArgs) Handles 姓名_tb7.TextChanged
  757. If 姓名_tb7.Text = "" Or 班別_cb7.Text = "休" Then : ComboBox13.Visible = False : ComboBox14.Visible = False : Else
  758. ComboBox13.Visible = True : ComboBox14.Visible = True : XX = 0
  759. If 班別_cb7.Text = "" Or 班別_cb7.Text = "休" Then
  760. ComboBox13.Location = New Point(開始位置1 + XX, 行(7)) : ComboBox14.Location = New Point(開始位置2 + XX, 行(7))
  761. End If : 進度條變化7()
  762. End If
  763. End Sub
  764. Private Sub 姓名8_tb_TextChanged(sender As Object, e As EventArgs) Handles 姓名_tb8.TextChanged
  765. If 姓名_tb8.Text = "" Or 班別_cb8.Text = "休" Then : ComboBox15.Visible = False : ComboBox16.Visible = False : Else
  766. ComboBox15.Visible = True : ComboBox16.Visible = True : XX = 0
  767. If 班別_cb8.Text = "" Or 班別_cb8.Text = "休" Then
  768. ComboBox15.Location = New Point(開始位置1 + XX, 行(8)) : ComboBox16.Location = New Point(開始位置2 + XX, 行(8))
  769. End If : 進度條變化8()
  770. End If
  771. End Sub
  772. Private Sub 姓名9_tb_TextChanged(sender As Object, e As EventArgs) Handles 姓名_tb9.TextChanged
  773. If 姓名_tb9.Text = "" Or 班別_cb9.Text = "休" Then : ComboBox17.Visible = False : ComboBox18.Visible = False : Else
  774. ComboBox17.Visible = True : ComboBox18.Visible = True : XX = 0
  775. If 班別_cb9.Text = "" Or 班別_cb9.Text = "休" Then
  776. ComboBox17.Location = New Point(開始位置1 + XX, 行(9)) : ComboBox18.Location = New Point(開始位置2 + XX, 行(9))
  777. End If : 進度條變化9()
  778. End If
  779. End Sub
  780. Private Sub 姓名10_tb_TextChanged(sender As Object, e As EventArgs) Handles 姓名_tb10.TextChanged
  781. If 姓名_tb10.Text = "" Or 班別_cb10.Text = "休" Then : ComboBox19.Visible = False : ComboBox20.Visible = False : Else
  782. ComboBox19.Visible = True : ComboBox20.Visible = True : XX = 0
  783. If 班別_cb10.Text = "" Or 班別_cb10.Text = "休" Then
  784. ComboBox19.Location = New Point(開始位置1 + XX, 行(10)) : ComboBox20.Location = New Point(開始位置2 + XX, 行(10))
  785. End If : 進度條變化10()
  786. End If
  787. End Sub
  788. Private Sub 姓名11_tb_TextChanged(sender As Object, e As EventArgs) Handles 姓名_tb11.TextChanged
  789. If 姓名_tb11.Text = "" Or 班別_cb11.Text = "休" Then : ComboBox21.Visible = False : ComboBox22.Visible = False : Else
  790. ComboBox21.Visible = True : ComboBox22.Visible = True : XX = 0
  791. If 班別_cb11.Text = "" Or 班別_cb11.Text = "休" Then
  792. ComboBox21.Location = New Point(開始位置1 + XX, 行(11)) : ComboBox22.Location = New Point(開始位置2 + XX, 行(11))
  793. End If : 進度條變化11()
  794. End If
  795. End Sub
  796. Private Sub 姓名12_tb_TextChanged(sender As Object, e As EventArgs) Handles 姓名_tb12.TextChanged
  797. If 姓名_tb12.Text = "" Or 班別_cb12.Text = "休" Then : ComboBox23.Visible = False : ComboBox24.Visible = False : Else
  798. ComboBox23.Visible = True : ComboBox24.Visible = True : XX = 0
  799. If 班別_cb12.Text = "" Or 班別_cb12.Text = "休" Then
  800. ComboBox23.Location = New Point(開始位置1 + XX, 行(12)) : ComboBox24.Location = New Point(開始位置2 + XX, 行(12))
  801. End If : 進度條變化12()
  802. End If
  803. End Sub
  804. Private Sub 姓名13_tb_TextChanged(sender As Object, e As EventArgs) Handles 姓名_tb13.TextChanged
  805. If 姓名_tb13.Text = "" Or 班別_cb13.Text = "休" Then : ComboBox25.Visible = False : ComboBox26.Visible = False : Else
  806. ComboBox25.Visible = True : ComboBox26.Visible = True : XX = 0
  807. If 班別_cb13.Text = "" Or 班別_cb13.Text = "休" Then
  808. ComboBox25.Location = New Point(開始位置1 + XX, 行(13)) : ComboBox26.Location = New Point(開始位置2 + XX, 行(13))
  809. End If : 進度條變化13()
  810. End If
  811. End Sub
  812. Private Sub 姓名14_tb_TextChanged(sender As Object, e As EventArgs) Handles 姓名_tb14.TextChanged
  813. If 姓名_tb14.Text = "" Or 班別_cb14.Text = "休" Then : ComboBox27.Visible = False : ComboBox28.Visible = False : Else
  814. ComboBox27.Visible = True : ComboBox28.Visible = True : XX = 0
  815. If 班別_cb14.Text = "" Or 班別_cb14.Text = "休" Then
  816. ComboBox27.Location = New Point(開始位置1 + XX, 行(14)) : ComboBox28.Location = New Point(開始位置2 + XX, 行(14))
  817. End If : 進度條變化14()
  818. End If
  819. End Sub
  820. Private Sub 姓名15_tb_TextChanged(sender As Object, e As EventArgs) Handles 姓名_tb15.TextChanged
  821. If 姓名_tb15.Text = "" Or 班別_cb15.Text = "休" Then : ComboBox29.Visible = False : ComboBox30.Visible = False : Else
  822. ComboBox29.Visible = True : ComboBox30.Visible = True : XX = 0
  823. If 班別_cb15.Text = "" Or 班別_cb15.Text = "休" Then
  824. ComboBox29.Location = New Point(開始位置1 + XX, 行(15)) : ComboBox30.Location = New Point(開始位置2 + XX, 行(15))
  825. End If : 進度條變化15()
  826. End If
  827. End Sub
  828. Private Sub 姓名16_tb_TextChanged(sender As Object, e As EventArgs) Handles 姓名_tb16.TextChanged
  829. If 姓名_tb16.Text = "" Or 班別_cb16.Text = "休" Then : ComboBox31.Visible = False : ComboBox32.Visible = False : Else
  830. ComboBox31.Visible = True : ComboBox32.Visible = True : XX = 0
  831. If 班別_cb16.Text = "" Or 班別_cb16.Text = "休" Then
  832. ComboBox31.Location = New Point(開始位置1 + XX, 行(16)) : ComboBox32.Location = New Point(開始位置2 + XX, 行(16))
  833. End If : 進度條變化16()
  834. End If
  835. End Sub
  836. Private Sub 姓名17_tb_TextChanged(sender As Object, e As EventArgs) Handles 姓名_tb17.TextChanged
  837. If 姓名_tb17.Text = "" Or 班別_cb17.Text = "休" Then : ComboBox33.Visible = False : ComboBox34.Visible = False : Else
  838. ComboBox33.Visible = True : ComboBox34.Visible = True : XX = 0
  839. If 班別_cb17.Text = "" Or 班別_cb17.Text = "休" Then
  840. ComboBox33.Location = New Point(開始位置1 + XX, 行(17)) : ComboBox34.Location = New Point(開始位置2 + XX, 行(17))
  841. End If : 進度條變化17()
  842. End If
  843. End Sub
  844. Private Sub 姓名18_tb_TextChanged(sender As Object, e As EventArgs) Handles 姓名_tb18.TextChanged
  845. If 姓名_tb18.Text = "" Or 班別_cb18.Text = "休" Then : ComboBox35.Visible = False : ComboBox36.Visible = False : Else
  846. ComboBox35.Visible = True : ComboBox36.Visible = True : XX = 0
  847. If 班別_cb18.Text = "" Or 班別_cb18.Text = "休" Then
  848. ComboBox35.Location = New Point(開始位置1 + XX, 行(18)) : ComboBox36.Location = New Point(開始位置2 + XX, 行(18))
  849. End If : 進度條變化18()
  850. End If
  851. End Sub
  852. Private Sub 姓名19_tb_TextChanged(sender As Object, e As EventArgs) Handles 姓名_tb19.TextChanged
  853. If 姓名_tb19.Text = "" Or 班別_cb19.Text = "休" Then : ComboBox37.Visible = False : ComboBox38.Visible = False : Else
  854. ComboBox37.Visible = True : ComboBox38.Visible = True : XX = 0
  855. If 班別_cb19.Text = "" Or 班別_cb19.Text = "休" Then
  856. ComboBox37.Location = New Point(開始位置1 + XX, 行(19)) : ComboBox38.Location = New Point(開始位置2 + XX, 行(19))
  857. End If : 進度條變化19()
  858. End If
  859. End Sub
  860. Private Sub 姓名20_tb_TextChanged(sender As Object, e As EventArgs) Handles 姓名_tb20.TextChanged
  861. If 姓名_tb20.Text = "" Or 班別_cb20.Text = "休" Then : ComboBox39.Visible = False : ComboBox40.Visible = False : Else
  862. ComboBox39.Visible = True : ComboBox40.Visible = True : XX = 0
  863. If 班別_cb20.Text = "" Or 班別_cb20.Text = "休" Then
  864. ComboBox39.Location = New Point(開始位置1 + XX, 行(20)) : ComboBox40.Location = New Point(開始位置2 + XX, 行(20))
  865. End If : 進度條變化20()
  866. End If
  867. End Sub
  868. Private Sub 姓名21_tb_TextChanged(sender As Object, e As EventArgs) Handles 姓名_tb21.TextChanged
  869. If 姓名_tb21.Text = "" Or 姓名_tb21.Text = "休" Then : ComboBox41.Visible = False : ComboBox42.Visible = False : Else
  870. ComboBox41.Visible = True : ComboBox42.Visible = True : XX = 0
  871. If 姓名_tb21.Text = "" Or 姓名_tb21.Text = "休" Then
  872. ComboBox41.Location = New Point(開始位置1 + XX, 行(21)) : ComboBox42.Location = New Point(開始位置2 + XX, 行(21))
  873. End If : 進度條變化21()
  874. End If
  875. End Sub
  876. Private Sub 姓名22_tb_TextChanged(sender As Object, e As EventArgs) Handles 姓名_tb22.TextChanged
  877. If 姓名_tb22.Text = "" Or 姓名_tb22.Text = "休" Then : ComboBox43.Visible = False : ComboBox44.Visible = False : Else
  878. ComboBox43.Visible = True : ComboBox44.Visible = True : XX = 0
  879. If 姓名_tb22.Text = "" Or 姓名_tb22.Text = "休" Then
  880. ComboBox43.Location = New Point(開始位置1 + XX, 行(22)) : ComboBox44.Location = New Point(開始位置2 + XX, 行(22))
  881. End If : 進度條變化22()
  882. End If
  883. End Sub
  884. Private Sub 姓名23_tb_TextChanged(sender As Object, e As EventArgs) Handles 姓名_tb23.TextChanged
  885. If 姓名_tb23.Text = "" Or 姓名_tb23.Text = "休" Then : ComboBox45.Visible = False : ComboBox46.Visible = False : Else
  886. ComboBox45.Visible = True : ComboBox46.Visible = True : XX = 0
  887. If 姓名_tb23.Text = "" Or 姓名_tb23.Text = "休" Then
  888. ComboBox45.Location = New Point(開始位置1 + XX, 行(23)) : ComboBox46.Location = New Point(開始位置2 + XX, 行(23))
  889. End If : 進度條變化23()
  890. End If
  891. End Sub
  892. Private Sub 姓名24_tb_TextChanged(sender As Object, e As EventArgs) Handles 姓名_tb24.TextChanged
  893. If 姓名_tb24.Text = "" Or 姓名_tb24.Text = "休" Then : ComboBox47.Visible = False : ComboBox48.Visible = False : Else
  894. ComboBox47.Visible = True : ComboBox48.Visible = True : XX = 0
  895. If 姓名_tb24.Text = "" Or 姓名_tb24.Text = "休" Then
  896. ComboBox47.Location = New Point(開始位置1 + XX, 行(24)) : ComboBox48.Location = New Point(開始位置2 + XX, 行(24))
  897. End If : 進度條變化24()
  898. End If
  899. End Sub
  900. Private Sub 姓名25_tb_TextChanged(sender As Object, e As EventArgs) Handles 姓名_tb25.TextChanged
  901. If 姓名_tb25.Text = "" Or 姓名_tb25.Text = "休" Then : ComboBox49.Visible = False : ComboBox50.Visible = False : Else
  902. ComboBox49.Visible = True : ComboBox50.Visible = True : XX = 0
  903. If 姓名_tb25.Text = "" Or 姓名_tb25.Text = "休" Then
  904. ComboBox49.Location = New Point(開始位置1 + XX, 行(25)) : ComboBox50.Location = New Point(開始位置2 + XX, 行(25))
  905. End If : 進度條變化25()
  906. End If
  907. End Sub
  908. Private Sub 姓名26_tb_TextChanged(sender As Object, e As EventArgs) Handles 姓名_tb26.TextChanged
  909. If 姓名_tb26.Text = "" Or 姓名_tb26.Text = "休" Then : ComboBox51.Visible = False : ComboBox52.Visible = False : Else
  910. ComboBox51.Visible = True : ComboBox52.Visible = True : XX = 0
  911. If 姓名_tb26.Text = "" Or 姓名_tb26.Text = "休" Then
  912. ComboBox51.Location = New Point(開始位置1 + XX, 行(26)) : ComboBox52.Location = New Point(開始位置2 + XX, 行(26))
  913. End If : 進度條變化26()
  914. End If
  915. End Sub
  916. Private Sub 姓名27_tb_TextChanged(sender As Object, e As EventArgs) Handles 姓名_tb27.TextChanged
  917. If 姓名_tb27.Text = "" Or 姓名_tb27.Text = "休" Then : ComboBox53.Visible = False : ComboBox54.Visible = False : Else
  918. ComboBox53.Visible = True : ComboBox54.Visible = True : XX = 0
  919. If 姓名_tb27.Text = "" Or 姓名_tb27.Text = "休" Then
  920. ComboBox53.Location = New Point(開始位置1 + XX, 行(27)) : ComboBox54.Location = New Point(開始位置2 + XX, 行(27))
  921. End If : 進度條變化27()
  922. End If
  923. End Sub
  924. Private Sub 姓名28_tb_TextChanged(sender As Object, e As EventArgs) Handles 姓名_tb28.TextChanged
  925. If 姓名_tb28.Text = "" Or 姓名_tb28.Text = "休" Then : ComboBox55.Visible = False : ComboBox56.Visible = False : Else
  926. ComboBox55.Visible = True : ComboBox56.Visible = True : XX = 0
  927. If 姓名_tb28.Text = "" Or 姓名_tb28.Text = "休" Then
  928. ComboBox55.Location = New Point(開始位置1 + XX, 行(28)) : ComboBox56.Location = New Point(開始位置2 + XX, 行(28))
  929. End If : 進度條變化28()
  930. End If
  931. End Sub
  932. Private Sub 姓名29_tb_TextChanged(sender As Object, e As EventArgs) Handles 姓名_tb29.TextChanged
  933. If 姓名_tb29.Text = "" Or 姓名_tb29.Text = "休" Then : ComboBox57.Visible = False : ComboBox58.Visible = False : Else
  934. ComboBox57.Visible = True : ComboBox58.Visible = True : XX = 0
  935. If 姓名_tb29.Text = "" Or 姓名_tb29.Text = "休" Then
  936. ComboBox57.Location = New Point(開始位置1 + XX, 行(29)) : ComboBox58.Location = New Point(開始位置2 + XX, 行(29))
  937. End If : 進度條變化29()
  938. End If
  939. End Sub
  940. Private Sub 姓名30_tb_TextChanged(sender As Object, e As EventArgs) Handles 姓名_tb30.TextChanged
  941. If 姓名_tb30.Text = "" Or 姓名_tb30.Text = "休" Then : ComboBox59.Visible = False : ComboBox60.Visible = False : Else
  942. ComboBox59.Visible = True : ComboBox60.Visible = True : XX = 0
  943. If 姓名_tb30.Text = "" Or 姓名_tb30.Text = "休" Then
  944. ComboBox59.Location = New Point(開始位置1 + XX, 行(30)) : ComboBox60.Location = New Point(開始位置2 + XX, 行(30))
  945. End If : 進度條變化30()
  946. End If
  947. End Sub
  948. Private Sub 姓名31_tb_TextChanged(sender As Object, e As EventArgs) Handles 姓名_tb31.TextChanged
  949. If 姓名_tb31.Text = "" Or 姓名_tb31.Text = "休" Then : ComboBox61.Visible = False : ComboBox62.Visible = False : Else
  950. ComboBox61.Visible = True : ComboBox62.Visible = True : XX = 0
  951. If 姓名_tb31.Text = "" Or 姓名_tb31.Text = "休" Then
  952. ComboBox61.Location = New Point(開始位置1 + XX, 行(31)) : ComboBox62.Location = New Point(開始位置2 + XX, 行(31))
  953. End If : 進度條變化31()
  954. End If
  955. End Sub
  956. Private Sub 班別01_cb_SelectedIndexChanged(sender As Object, e As EventArgs) Handles 班別_cb1.SelectedIndexChanged
  957. If 班別_cb1.Text <> "休" Then : ComboBox1.Visible = True : ComboBox2.Visible = True : 休息變化1()
  958. Else : ComboBox1.Visible = False : ComboBox2.Visible = False : End If
  959. End Sub
  960. Private Sub 班別02_cb_SelectedIndexChanged(sender As Object, e As EventArgs) Handles 班別_cb2.SelectedIndexChanged
  961. If 班別_cb2.Text <> "休" Then : ComboBox3.Visible = True : ComboBox4.Visible = True : 休息變化2()
  962. Else : ComboBox3.Visible = False : ComboBox4.Visible = False : End If
  963. End Sub
  964. Private Sub 班別03_cb_SelectedIndexChanged(sender As Object, e As EventArgs) Handles 班別_cb3.SelectedIndexChanged
  965. If 班別_cb3.Text <> "休" Then : ComboBox5.Visible = True : ComboBox6.Visible = True : 休息變化3()
  966. Else : ComboBox5.Visible = False : ComboBox6.Visible = False : End If
  967. End Sub
  968. Private Sub 班別04_cb_SelectedIndexChanged(sender As Object, e As EventArgs) Handles 班別_cb4.SelectedIndexChanged
  969. If 班別_cb4.Text <> "休" Then : ComboBox7.Visible = True : ComboBox8.Visible = True : 休息變化4()
  970. Else : ComboBox7.Visible = False : ComboBox8.Visible = False : End If
  971. End Sub
  972. Private Sub 班別05_cb_SelectedIndexChanged(sender As Object, e As EventArgs) Handles 班別_cb5.SelectedIndexChanged
  973. If 班別_cb5.Text <> "休" Then : ComboBox9.Visible = True : ComboBox10.Visible = True : 休息變化5()
  974. Else : ComboBox9.Visible = False : ComboBox10.Visible = False : End If
  975. End Sub
  976. Private Sub 班別06_cb_SelectedIndexChanged(sender As Object, e As EventArgs) Handles 班別_cb6.SelectedIndexChanged
  977. If 班別_cb6.Text <> "休" Then : ComboBox11.Visible = True : ComboBox12.Visible = True : 休息變化6()
  978. Else : ComboBox11.Visible = False : ComboBox12.Visible = False : End If
  979. End Sub
  980. Private Sub 班別07_cb_SelectedIndexChanged(sender As Object, e As EventArgs) Handles 班別_cb7.SelectedIndexChanged
  981. If 班別_cb7.Text <> "休" Then : ComboBox13.Visible = True : ComboBox14.Visible = True : 休息變化7()
  982. Else : ComboBox13.Visible = False : ComboBox14.Visible = False : End If
  983. End Sub
  984. Private Sub 班別08_cb_SelectedIndexChanged(sender As Object, e As EventArgs) Handles 班別_cb8.SelectedIndexChanged
  985. If 班別_cb8.Text <> "休" Then : ComboBox15.Visible = True : ComboBox16.Visible = True : 休息變化8()
  986. Else : ComboBox15.Visible = False : ComboBox16.Visible = False : End If
  987. End Sub
  988. Private Sub 班別09_cb_SelectedIndexChanged(sender As Object, e As EventArgs) Handles 班別_cb9.SelectedIndexChanged
  989. If 班別_cb9.Text <> "休" Then : ComboBox17.Visible = True : ComboBox18.Visible = True : 休息變化9()
  990. Else : ComboBox17.Visible = False : ComboBox18.Visible = False : End If
  991. End Sub
  992. Private Sub 班別10_cb_SelectedIndexChanged(sender As Object, e As EventArgs) Handles 班別_cb10.SelectedIndexChanged
  993. If 班別_cb10.Text <> "休" Then : ComboBox19.Visible = True : ComboBox20.Visible = True : 休息變化10()
  994. Else : ComboBox19.Visible = False : ComboBox20.Visible = False : End If
  995. End Sub
  996. Private Sub 班別11_cb_SelectedIndexChanged(sender As Object, e As EventArgs) Handles 班別_cb11.SelectedIndexChanged
  997. If 班別_cb11.Text <> "休" Then : ComboBox21.Visible = True : ComboBox22.Visible = True : 休息變化11()
  998. Else : ComboBox21.Visible = False : ComboBox22.Visible = False : End If
  999. End Sub
  1000. Private Sub 班別12_cb_SelectedIndexChanged(sender As Object, e As EventArgs) Handles 班別_cb12.SelectedIndexChanged
  1001. If 班別_cb12.Text <> "休" Then : ComboBox23.Visible = True : ComboBox24.Visible = True : 休息變化12()
  1002. Else : ComboBox23.Visible = False : ComboBox24.Visible = False : End If
  1003. End Sub
  1004. Private Sub 班別13_cb_SelectedIndexChanged(sender As Object, e As EventArgs) Handles 班別_cb13.SelectedIndexChanged
  1005. If 班別_cb13.Text <> "休" Then : ComboBox25.Visible = True : ComboBox26.Visible = True : 休息變化13()
  1006. Else : ComboBox25.Visible = False : ComboBox26.Visible = False : End If
  1007. End Sub
  1008. Private Sub 班別14_cb_SelectedIndexChanged(sender As Object, e As EventArgs) Handles 班別_cb14.SelectedIndexChanged
  1009. If 班別_cb14.Text <> "休" Then : ComboBox27.Visible = True : ComboBox28.Visible = True : 休息變化14()
  1010. Else : ComboBox27.Visible = False : ComboBox28.Visible = False : End If
  1011. End Sub
  1012. Private Sub 班別15_cb_SelectedIndexChanged(sender As Object, e As EventArgs) Handles 班別_cb15.SelectedIndexChanged
  1013. If 班別_cb15.Text <> "休" Then : ComboBox29.Visible = True : ComboBox30.Visible = True : 休息變化15()
  1014. Else : ComboBox29.Visible = False : ComboBox30.Visible = False : End If
  1015. End Sub
  1016. Private Sub 班別16_cb_SelectedIndexChanged(sender As Object, e As EventArgs) Handles 班別_cb16.SelectedIndexChanged
  1017. If 班別_cb16.Text <> "休" Then : ComboBox31.Visible = True : ComboBox32.Visible = True : 休息變化16()
  1018. Else : ComboBox31.Visible = False : ComboBox32.Visible = False : End If
  1019. End Sub
  1020. Private Sub 班別17_cb_SelectedIndexChanged(sender As Object, e As EventArgs) Handles 班別_cb17.SelectedIndexChanged
  1021. If 班別_cb17.Text <> "休" Then : ComboBox33.Visible = True : ComboBox34.Visible = True : 休息變化17()
  1022. Else : ComboBox33.Visible = False : ComboBox34.Visible = False : End If
  1023. End Sub
  1024. Private Sub 班別18_cb_SelectedIndexChanged(sender As Object, e As EventArgs) Handles 班別_cb18.SelectedIndexChanged
  1025. If 班別_cb18.Text <> "休" Then : ComboBox35.Visible = True : ComboBox36.Visible = True : 休息變化18()
  1026. Else : ComboBox35.Visible = False : ComboBox36.Visible = False : End If
  1027. End Sub
  1028. Private Sub 班別19_cb_SelectedIndexChanged(sender As Object, e As EventArgs) Handles 班別_cb19.SelectedIndexChanged
  1029. If 班別_cb19.Text <> "休" Then : ComboBox37.Visible = True : ComboBox38.Visible = True : 休息變化19()
  1030. Else : ComboBox37.Visible = False : ComboBox38.Visible = False : End If
  1031. End Sub
  1032. Private Sub 班別20_cb_SelectedIndexChanged(sender As Object, e As EventArgs) Handles 班別_cb20.SelectedIndexChanged
  1033. If 班別_cb20.Text <> "休" Then : ComboBox39.Visible = True : ComboBox40.Visible = True : 休息變化20()
  1034. Else : ComboBox39.Visible = False : ComboBox40.Visible = False : End If
  1035. End Sub
  1036. Private Sub 班別21_cb_SelectedIndexChanged(sender As Object, e As EventArgs) Handles 班別_cb21.SelectedIndexChanged
  1037. If 班別_cb21.Text <> "休" Then : ComboBox41.Visible = True : ComboBox42.Visible = True : 休息變化21()
  1038. Else : ComboBox41.Visible = False : ComboBox42.Visible = False : End If
  1039. End Sub
  1040. Private Sub 班別22_cb_SelectedIndexChanged(sender As Object, e As EventArgs) Handles 班別_cb22.SelectedIndexChanged
  1041. If 班別_cb22.Text <> "休" Then : ComboBox43.Visible = True : ComboBox44.Visible = True : 休息變化22()
  1042. Else : ComboBox43.Visible = False : ComboBox44.Visible = False : End If
  1043. End Sub
  1044. Private Sub 班別23_cb_SelectedIndexChanged(sender As Object, e As EventArgs) Handles 班別_cb23.SelectedIndexChanged
  1045. If 班別_cb23.Text <> "休" Then : ComboBox45.Visible = True : ComboBox46.Visible = True : 休息變化23()
  1046. Else : ComboBox45.Visible = False : ComboBox46.Visible = False : End If
  1047. End Sub
  1048. Private Sub 班別24_cb_SelectedIndexChanged(sender As Object, e As EventArgs) Handles 班別_cb24.SelectedIndexChanged
  1049. If 班別_cb24.Text <> "休" Then : ComboBox47.Visible = True : ComboBox48.Visible = True : 休息變化24()
  1050. Else : ComboBox47.Visible = False : ComboBox48.Visible = False : End If
  1051. End Sub
  1052. Private Sub 班別25_cb_SelectedIndexChanged(sender As Object, e As EventArgs) Handles 班別_cb25.SelectedIndexChanged
  1053. If 班別_cb25.Text <> "休" Then : ComboBox49.Visible = True : ComboBox50.Visible = True : 休息變化25()
  1054. Else : ComboBox49.Visible = False : ComboBox50.Visible = False : End If
  1055. End Sub
  1056. Private Sub 班別26_cb_SelectedIndexChanged(sender As Object, e As EventArgs) Handles 班別_cb26.SelectedIndexChanged
  1057. If 班別_cb26.Text <> "休" Then : ComboBox51.Visible = True : ComboBox52.Visible = True : 休息變化26()
  1058. Else : ComboBox51.Visible = False : ComboBox52.Visible = False : End If
  1059. End Sub
  1060. Private Sub 班別27_cb_SelectedIndexChanged(sender As Object, e As EventArgs) Handles 班別_cb27.SelectedIndexChanged
  1061. If 班別_cb27.Text <> "休" Then : ComboBox53.Visible = True : ComboBox54.Visible = True : 休息變化27()
  1062. Else : ComboBox53.Visible = False : ComboBox54.Visible = False : End If
  1063. End Sub
  1064. Private Sub 班別28_cb_SelectedIndexChanged(sender As Object, e As EventArgs) Handles 班別_cb28.SelectedIndexChanged
  1065. If 班別_cb28.Text <> "休" Then : ComboBox55.Visible = True : ComboBox56.Visible = True : 休息變化28()
  1066. Else : ComboBox55.Visible = False : ComboBox56.Visible = False : End If
  1067. End Sub
  1068. Private Sub 班別29_cb_SelectedIndexChanged(sender As Object, e As EventArgs) Handles 班別_cb29.SelectedIndexChanged
  1069. If 班別_cb29.Text <> "休" Then : ComboBox57.Visible = True : ComboBox58.Visible = True : 休息變化29()
  1070. Else : ComboBox57.Visible = False : ComboBox58.Visible = False : End If
  1071. End Sub
  1072. Private Sub 班別30_cb_SelectedIndexChanged(sender As Object, e As EventArgs) Handles 班別_cb30.SelectedIndexChanged
  1073. If 班別_cb30.Text <> "休" Then : ComboBox59.Visible = True : ComboBox60.Visible = True : 休息變化30()
  1074. Else : ComboBox59.Visible = False : ComboBox60.Visible = False : End If
  1075. End Sub
  1076. Private Sub 班別31_cb_SelectedIndexChanged(sender As Object, e As EventArgs) Handles 班別_cb31.SelectedIndexChanged
  1077. If 班別_cb31.Text <> "休" Then : ComboBox61.Visible = True : ComboBox62.Visible = True : 休息變化31()
  1078. Else : ComboBox61.Visible = False : ComboBox62.Visible = False : End If
  1079. End Sub
  1080. Private Sub CheckBox1_CheckedChanged(sender As Object, e As EventArgs) Handles CheckBox1.CheckedChanged
  1081. If 班別_cb1.Text <> "休" Then : 休息變化1() : End If
  1082. End Sub
  1083. Private Sub CheckBox2_CheckedChanged(sender As Object, e As EventArgs) Handles CheckBox2.CheckedChanged
  1084. If 班別_cb2.Text <> "休" Then : 休息變化2() : End If
  1085. End Sub
  1086. Private Sub CheckBox3_CheckedChanged(sender As Object, e As EventArgs) Handles CheckBox3.CheckedChanged
  1087. If 班別_cb3.Text <> "休" Then : 休息變化3() : End If
  1088. End Sub
  1089. Private Sub CheckBox4_CheckedChanged(sender As Object, e As EventArgs) Handles CheckBox4.CheckedChanged
  1090. If 班別_cb4.Text <> "休" Then : 休息變化4() : End If
  1091. End Sub
  1092. Private Sub CheckBox5_CheckedChanged(sender As Object, e As EventArgs) Handles CheckBox5.CheckedChanged
  1093. If 班別_cb5.Text <> "休" Then : 休息變化5() : End If
  1094. End Sub
  1095. Private Sub CheckBox6_CheckedChanged(sender As Object, e As EventArgs) Handles CheckBox6.CheckedChanged
  1096. If 班別_cb6.Text <> "休" Then : 休息變化6() : End If
  1097. End Sub
  1098. Private Sub CheckBox7_CheckedChanged(sender As Object, e As EventArgs) Handles CheckBox7.CheckedChanged
  1099. If 班別_cb7.Text <> "休" Then : 休息變化7() : End If
  1100. End Sub
  1101. Private Sub CheckBox8_CheckedChanged(sender As Object, e As EventArgs) Handles CheckBox8.CheckedChanged
  1102. If 班別_cb8.Text <> "休" Then : 休息變化8() : End If
  1103. End Sub
  1104. Private Sub CheckBox9_CheckedChanged(sender As Object, e As EventArgs) Handles CheckBox9.CheckedChanged
  1105. If 班別_cb9.Text <> "休" Then : 休息變化9() : End If
  1106. End Sub
  1107. Private Sub CheckBox10_CheckedChanged(sender As Object, e As EventArgs) Handles CheckBox10.CheckedChanged
  1108. If 班別_cb10.Text <> "休" Then : 休息變化10() : End If
  1109. End Sub
  1110. Private Sub CheckBox11_CheckedChanged(sender As Object, e As EventArgs) Handles CheckBox11.CheckedChanged
  1111. If 班別_cb11.Text <> "休" Then : 休息變化11() : End If
  1112. End Sub
  1113. Private Sub CheckBox12_CheckedChanged(sender As Object, e As EventArgs) Handles CheckBox12.CheckedChanged
  1114. If 班別_cb12.Text <> "休" Then : 休息變化12() : End If
  1115. End Sub
  1116. Private Sub CheckBox13_CheckedChanged(sender As Object, e As EventArgs) Handles CheckBox13.CheckedChanged
  1117. If 班別_cb13.Text <> "休" Then : 休息變化13() : End If
  1118. End Sub
  1119. Private Sub CheckBox14_CheckedChanged(sender As Object, e As EventArgs) Handles CheckBox14.CheckedChanged
  1120. If 班別_cb14.Text <> "休" Then : 休息變化14() : End If
  1121. End Sub
  1122. Private Sub CheckBox15_CheckedChanged(sender As Object, e As EventArgs) Handles CheckBox15.CheckedChanged
  1123. If 班別_cb15.Text <> "休" Then : 休息變化15() : End If
  1124. End Sub
  1125. Private Sub CheckBox16_CheckedChanged(sender As Object, e As EventArgs) Handles CheckBox16.CheckedChanged
  1126. If 班別_cb16.Text <> "休" Then : 休息變化16() : End If
  1127. End Sub
  1128. Private Sub CheckBox17_CheckedChanged(sender As Object, e As EventArgs) Handles CheckBox17.CheckedChanged
  1129. If 班別_cb17.Text <> "休" Then : 休息變化17() : End If
  1130. End Sub
  1131. Private Sub CheckBox18_CheckedChanged(sender As Object, e As EventArgs) Handles CheckBox18.CheckedChanged
  1132. If 班別_cb18.Text <> "休" Then : 休息變化18() : End If
  1133. End Sub
  1134. Private Sub CheckBox19_CheckedChanged(sender As Object, e As EventArgs) Handles CheckBox19.CheckedChanged
  1135. If 班別_cb19.Text <> "休" Then : 休息變化19() : End If
  1136. End Sub
  1137. Private Sub CheckBox20_CheckedChanged(sender As Object, e As EventArgs) Handles CheckBox20.CheckedChanged
  1138. If 班別_cb20.Text <> "休" Then : 休息變化20() : End If
  1139. End Sub
  1140. Private Sub CheckBox21_CheckedChanged(sender As Object, e As EventArgs) Handles CheckBox21.CheckedChanged
  1141. If 班別_cb21.Text <> "休" Then : 休息變化21() : End If
  1142. End Sub
  1143. Private Sub CheckBox22_CheckedChanged(sender As Object, e As EventArgs) Handles CheckBox22.CheckedChanged
  1144. If 班別_cb22.Text <> "休" Then : 休息變化22() : End If
  1145. End Sub
  1146. Private Sub CheckBox23_CheckedChanged(sender As Object, e As EventArgs) Handles CheckBox23.CheckedChanged
  1147. If 班別_cb23.Text <> "休" Then : 休息變化23() : End If
  1148. End Sub
  1149. Private Sub CheckBox24_CheckedChanged(sender As Object, e As EventArgs) Handles CheckBox24.CheckedChanged
  1150. If 班別_cb24.Text <> "休" Then : 休息變化24() : End If
  1151. End Sub
  1152. Private Sub CheckBox25_CheckedChanged(sender As Object, e As EventArgs) Handles CheckBox25.CheckedChanged
  1153. If 班別_cb25.Text <> "休" Then : 休息變化25() : End If
  1154. End Sub
  1155. Private Sub CheckBox26_CheckedChanged(sender As Object, e As EventArgs) Handles CheckBox26.CheckedChanged
  1156. If 班別_cb26.Text <> "休" Then : 休息變化26() : End If
  1157. End Sub
  1158. Private Sub CheckBox27_CheckedChanged(sender As Object, e As EventArgs) Handles CheckBox27.CheckedChanged
  1159. If 班別_cb27.Text <> "休" Then : 休息變化27() : End If
  1160. End Sub
  1161. Private Sub CheckBox28_CheckedChanged(sender As Object, e As EventArgs) Handles CheckBox28.CheckedChanged
  1162. If 班別_cb28.Text <> "休" Then : 休息變化28() : End If
  1163. End Sub
  1164. Private Sub CheckBox29_CheckedChanged(sender As Object, e As EventArgs) Handles CheckBox29.CheckedChanged
  1165. If 班別_cb29.Text <> "休" Then : 休息變化29() : End If
  1166. End Sub
  1167. Private Sub CheckBox30_CheckedChanged(sender As Object, e As EventArgs) Handles CheckBox30.CheckedChanged
  1168. If 班別_cb30.Text <> "休" Then : 休息變化30() : End If
  1169. End Sub
  1170. Private Sub CheckBox31_CheckedChanged(sender As Object, e As EventArgs) Handles CheckBox31.CheckedChanged
  1171. If 班別_cb31.Text <> "休" Then : 休息變化31() : End If
  1172. End Sub
  1173. Private Sub NumericUpDown1_ValueChanged(sender As Object, e As EventArgs) Handles NumericUpDown1.ValueChanged
  1174. If 班別_cb1.Text <> "休" Then : 休息變化1() : End If
  1175. End Sub
  1176. Private Sub NumericUpDown2_ValueChanged(sender As Object, e As EventArgs) Handles NumericUpDown2.ValueChanged
  1177. If 班別_cb2.Text <> "休" Then : 休息變化2() : End If
  1178. End Sub
  1179. Private Sub NumericUpDown3_ValueChanged(sender As Object, e As EventArgs) Handles NumericUpDown3.ValueChanged
  1180. If 班別_cb3.Text <> "休" Then : 休息變化3() : End If
  1181. End Sub
  1182. Private Sub NumericUpDown4_ValueChanged(sender As Object, e As EventArgs) Handles NumericUpDown4.ValueChanged
  1183. If 班別_cb4.Text <> "休" Then : 休息變化4() : End If
  1184. End Sub
  1185. Private Sub NumericUpDown5_ValueChanged(sender As Object, e As EventArgs) Handles NumericUpDown5.ValueChanged
  1186. If 班別_cb5.Text <> "休" Then : 休息變化5() : End If
  1187. End Sub
  1188. Private Sub NumericUpDown6_ValueChanged(sender As Object, e As EventArgs) Handles NumericUpDown6.ValueChanged
  1189. If 班別_cb6.Text <> "休" Then : 休息變化6() : End If
  1190. End Sub
  1191. Private Sub NumericUpDown7_ValueChanged(sender As Object, e As EventArgs) Handles NumericUpDown7.ValueChanged
  1192. If 班別_cb7.Text <> "休" Then : 休息變化7() : End If
  1193. End Sub
  1194. Private Sub NumericUpDown8_ValueChanged(sender As Object, e As EventArgs) Handles NumericUpDown8.ValueChanged
  1195. If 班別_cb8.Text <> "休" Then : 休息變化8() : End If
  1196. End Sub
  1197. Private Sub NumericUpDown9_ValueChanged(sender As Object, e As EventArgs) Handles NumericUpDown9.ValueChanged
  1198. If 班別_cb9.Text <> "休" Then : 休息變化9() : End If
  1199. End Sub
  1200. Private Sub NumericUpDown10_ValueChanged(sender As Object, e As EventArgs) Handles NumericUpDown10.ValueChanged
  1201. If 班別_cb10.Text <> "休" Then : 休息變化10() : End If
  1202. End Sub
  1203. Private Sub NumericUpDown11_ValueChanged(sender As Object, e As EventArgs) Handles NumericUpDown11.ValueChanged
  1204. If 班別_cb11.Text <> "休" Then : 休息變化11() : End If
  1205. End Sub
  1206. Private Sub NumericUpDown12_ValueChanged(sender As Object, e As EventArgs) Handles NumericUpDown12.ValueChanged
  1207. If 班別_cb12.Text <> "休" Then : 休息變化12() : End If
  1208. End Sub
  1209. Private Sub NumericUpDown13_ValueChanged(sender As Object, e As EventArgs) Handles NumericUpDown13.ValueChanged
  1210. If 班別_cb13.Text <> "休" Then : 休息變化13() : End If
  1211. End Sub
  1212. Private Sub NumericUpDown14_ValueChanged(sender As Object, e As EventArgs) Handles NumericUpDown14.ValueChanged
  1213. If 班別_cb14.Text <> "休" Then : 休息變化14() : End If
  1214. End Sub
  1215. Private Sub NumericUpDown15_ValueChanged(sender As Object, e As EventArgs) Handles NumericUpDown15.ValueChanged
  1216. If 班別_cb15.Text <> "休" Then : 休息變化15() : End If
  1217. End Sub
  1218. Private Sub NumericUpDown16_ValueChanged(sender As Object, e As EventArgs) Handles NumericUpDown16.ValueChanged
  1219. If 班別_cb16.Text <> "休" Then : 休息變化16() : End If
  1220. End Sub
  1221. Private Sub NumericUpDown17_ValueChanged(sender As Object, e As EventArgs) Handles NumericUpDown17.ValueChanged
  1222. If 班別_cb17.Text <> "休" Then : 休息變化17() : End If
  1223. End Sub
  1224. Private Sub NumericUpDown18_ValueChanged(sender As Object, e As EventArgs) Handles NumericUpDown18.ValueChanged
  1225. If 班別_cb18.Text <> "休" Then : 休息變化18() : End If
  1226. End Sub
  1227. Private Sub NumericUpDown19_ValueChanged(sender As Object, e As EventArgs) Handles NumericUpDown19.ValueChanged
  1228. If 班別_cb19.Text <> "休" Then : 休息變化19() : End If
  1229. End Sub
  1230. Private Sub NumericUpDown20_ValueChanged(sender As Object, e As EventArgs) Handles NumericUpDown20.ValueChanged
  1231. If 班別_cb20.Text <> "休" Then : 休息變化20() : End If
  1232. End Sub
  1233. Private Sub NumericUpDown21_ValueChanged(sender As Object, e As EventArgs) Handles NumericUpDown21.ValueChanged
  1234. If 班別_cb21.Text <> "休" Then : 休息變化21() : End If
  1235. End Sub
  1236. Private Sub NumericUpDown22_ValueChanged(sender As Object, e As EventArgs) Handles NumericUpDown22.ValueChanged
  1237. If 班別_cb22.Text <> "休" Then : 休息變化22() : End If
  1238. End Sub
  1239. Private Sub NumericUpDown23_ValueChanged(sender As Object, e As EventArgs) Handles NumericUpDown23.ValueChanged
  1240. If 班別_cb23.Text <> "休" Then : 休息變化23() : End If
  1241. End Sub
  1242. Private Sub NumericUpDown24_ValueChanged(sender As Object, e As EventArgs) Handles NumericUpDown24.ValueChanged
  1243. If 班別_cb24.Text <> "休" Then : 休息變化24() : End If
  1244. End Sub
  1245. Private Sub NumericUpDown25_ValueChanged(sender As Object, e As EventArgs) Handles NumericUpDown25.ValueChanged
  1246. If 班別_cb25.Text <> "休" Then : 休息變化25() : End If
  1247. End Sub
  1248. Private Sub NumericUpDown26_ValueChanged(sender As Object, e As EventArgs) Handles NumericUpDown26.ValueChanged
  1249. If 班別_cb26.Text <> "休" Then : 休息變化26() : End If
  1250. End Sub
  1251. Private Sub NumericUpDown27_ValueChanged(sender As Object, e As EventArgs) Handles NumericUpDown27.ValueChanged
  1252. If 班別_cb27.Text <> "休" Then : 休息變化27() : End If
  1253. End Sub
  1254. Private Sub NumericUpDown28_ValueChanged(sender As Object, e As EventArgs) Handles NumericUpDown28.ValueChanged
  1255. If 班別_cb28.Text <> "休" Then : 休息變化28() : End If
  1256. End Sub
  1257. Private Sub NumericUpDown29_ValueChanged(sender As Object, e As EventArgs) Handles NumericUpDown29.ValueChanged
  1258. If 班別_cb29.Text <> "休" Then : 休息變化29() : End If
  1259. End Sub
  1260. Private Sub NumericUpDown30_ValueChanged(sender As Object, e As EventArgs) Handles NumericUpDown30.ValueChanged
  1261. If 班別_cb30.Text <> "休" Then : 休息變化30() : End If
  1262. End Sub
  1263. Private Sub NumericUpDown31_ValueChanged(sender As Object, e As EventArgs) Handles NumericUpDown31.ValueChanged
  1264. If 班別_cb31.Text <> "休" Then : 休息變化31() : End If
  1265. End Sub
  1266. Private Sub NUP1_ValueChanged(sender As Object, e As EventArgs) Handles NUP1.ValueChanged
  1267. If 班別_cb1.Text <> "休" Then : 休息變化1() : ComboBox1.Visible = True : ComboBox2.Visible = True
  1268. Else : ComboBox1.Visible = False : ComboBox2.Visible = False : End If
  1269. End Sub
  1270. Private Sub NUP2_ValueChanged(sender As Object, e As EventArgs) Handles NUP2.ValueChanged
  1271. If 班別_cb2.Text <> "休" Then : 休息變化2() : ComboBox3.Visible = True : ComboBox4.Visible = True
  1272. Else : ComboBox3.Visible = False : ComboBox4.Visible = False : End If
  1273. End Sub
  1274. Private Sub NUP3_ValueChanged(sender As Object, e As EventArgs) Handles NUP3.ValueChanged
  1275. If 班別_cb3.Text <> "休" Then : 休息變化3() : ComboBox5.Visible = True : ComboBox6.Visible = True
  1276. Else : ComboBox5.Visible = False : ComboBox6.Visible = False : End If
  1277. End Sub
  1278. Private Sub NUP4_ValueChanged(sender As Object, e As EventArgs) Handles NUP4.ValueChanged
  1279. If 班別_cb4.Text <> "休" Then : 休息變化4() : ComboBox7.Visible = True : ComboBox8.Visible = True
  1280. Else : ComboBox7.Visible = False : ComboBox8.Visible = False : End If
  1281. End Sub
  1282. Private Sub NUP5_ValueChanged(sender As Object, e As EventArgs) Handles NUP5.ValueChanged
  1283. If 班別_cb5.Text <> "休" Then : 休息變化5() : ComboBox9.Visible = True : ComboBox10.Visible = True
  1284. Else : ComboBox9.Visible = False : ComboBox10.Visible = False : End If
  1285. End Sub
  1286. Private Sub NUP6_ValueChanged(sender As Object, e As EventArgs) Handles NUP6.ValueChanged
  1287. If 班別_cb6.Text <> "休" Then : 休息變化6() : ComboBox11.Visible = True : ComboBox12.Visible = True
  1288. Else : ComboBox11.Visible = False : ComboBox12.Visible = False : End If
  1289. End Sub
  1290. Private Sub NUP7_ValueChanged(sender As Object, e As EventArgs) Handles NUP7.ValueChanged
  1291. If 班別_cb7.Text <> "休" Then : 休息變化7() : ComboBox13.Visible = True : ComboBox14.Visible = True
  1292. Else : ComboBox13.Visible = False : ComboBox14.Visible = False : End If
  1293. End Sub
  1294. Private Sub NUP8_ValueChanged(sender As Object, e As EventArgs) Handles NUP8.ValueChanged
  1295. If 班別_cb8.Text <> "休" Then : 休息變化8() : ComboBox15.Visible = True : ComboBox16.Visible = True
  1296. Else : ComboBox15.Visible = False : ComboBox16.Visible = False : End If
  1297. End Sub
  1298. Private Sub NUP9_ValueChanged(sender As Object, e As EventArgs) Handles NUP9.ValueChanged
  1299. If 班別_cb9.Text <> "休" Then : 休息變化9() : ComboBox17.Visible = True : ComboBox18.Visible = True
  1300. Else : ComboBox17.Visible = False : ComboBox18.Visible = False : End If
  1301. End Sub
  1302. Private Sub NUP10_ValueChanged(sender As Object, e As EventArgs) Handles NUP10.ValueChanged
  1303. If 班別_cb10.Text <> "休" Then : 休息變化10() : ComboBox19.Visible = True : ComboBox20.Visible = True
  1304. Else : ComboBox19.Visible = False : ComboBox20.Visible = False : End If
  1305. End Sub
  1306. Private Sub NUP11_ValueChanged(sender As Object, e As EventArgs) Handles NUP11.ValueChanged
  1307. If 班別_cb11.Text <> "休" Then : 休息變化11() : ComboBox21.Visible = True : ComboBox22.Visible = True
  1308. Else : ComboBox21.Visible = False : ComboBox22.Visible = False : End If
  1309. End Sub
  1310. Private Sub NUP12_ValueChanged(sender As Object, e As EventArgs) Handles NUP12.ValueChanged
  1311. If 班別_cb12.Text <> "休" Then : 休息變化12() : ComboBox23.Visible = True : ComboBox24.Visible = True
  1312. Else : ComboBox23.Visible = False : ComboBox24.Visible = False : End If
  1313. End Sub
  1314. Private Sub NUP13_ValueChanged(sender As Object, e As EventArgs) Handles NUP13.ValueChanged
  1315. If 班別_cb13.Text <> "休" Then : 休息變化13() : ComboBox25.Visible = True : ComboBox26.Visible = True
  1316. Else : ComboBox25.Visible = False : ComboBox26.Visible = False : End If
  1317. End Sub
  1318. Private Sub NUP14_ValueChanged(sender As Object, e As EventArgs) Handles NUP14.ValueChanged
  1319. If 班別_cb14.Text <> "休" Then : 休息變化14() : ComboBox27.Visible = True : ComboBox28.Visible = True
  1320. Else : ComboBox27.Visible = False : ComboBox28.Visible = False : End If
  1321. End Sub
  1322. Private Sub NUP15_ValueChanged(sender As Object, e As EventArgs) Handles NUP15.ValueChanged
  1323. If 班別_cb15.Text <> "休" Then : 休息變化15() : ComboBox29.Visible = True : ComboBox30.Visible = True
  1324. Else : ComboBox29.Visible = False : ComboBox30.Visible = False : End If
  1325. End Sub
  1326. Private Sub NUP16_ValueChanged(sender As Object, e As EventArgs) Handles NUP16.ValueChanged
  1327. If 班別_cb16.Text <> "休" Then : 休息變化16() : ComboBox31.Visible = True : ComboBox32.Visible = True
  1328. Else : ComboBox31.Visible = False : ComboBox32.Visible = False : End If
  1329. End Sub
  1330. Private Sub NUP17_ValueChanged(sender As Object, e As EventArgs) Handles NUP17.ValueChanged
  1331. If 班別_cb17.Text <> "休" Then : 休息變化17() : ComboBox33.Visible = True : ComboBox34.Visible = True
  1332. Else : ComboBox33.Visible = False : ComboBox34.Visible = False : End If
  1333. End Sub
  1334. Private Sub NUP18_ValueChanged(sender As Object, e As EventArgs) Handles NUP18.ValueChanged
  1335. If 班別_cb18.Text <> "休" Then : 休息變化18() : ComboBox35.Visible = True : ComboBox36.Visible = True
  1336. Else : ComboBox35.Visible = False : ComboBox36.Visible = False : End If
  1337. End Sub
  1338. Private Sub NUP19_ValueChanged(sender As Object, e As EventArgs) Handles NUP19.ValueChanged
  1339. If 班別_cb19.Text <> "休" Then : 休息變化19() : ComboBox37.Visible = True : ComboBox38.Visible = True
  1340. Else : ComboBox37.Visible = False : ComboBox38.Visible = False : End If
  1341. End Sub
  1342. Private Sub NUP20_ValueChanged(sender As Object, e As EventArgs) Handles NUP20.ValueChanged
  1343. If 班別_cb20.Text <> "休" Then : 休息變化20() : ComboBox39.Visible = True : ComboBox40.Visible = True
  1344. Else : ComboBox39.Visible = False : ComboBox40.Visible = False : End If
  1345. End Sub
  1346. Private Sub NUP21_ValueChanged(sender As Object, e As EventArgs) Handles NUP21.ValueChanged
  1347. If 班別_cb21.Text <> "休" Then : 休息變化21() : ComboBox42.Visible = True
  1348. Else : ComboBox41.Visible = False : ComboBox42.Visible = False : End If
  1349. End Sub
  1350. Private Sub NUP22_ValueChanged(sender As Object, e As EventArgs) Handles NUP22.ValueChanged
  1351. If 班別_cb22.Text <> "休" Then : 休息變化22() : ComboBox43.Visible = True : ComboBox44.Visible = True
  1352. Else : ComboBox43.Visible = False : ComboBox44.Visible = False : End If
  1353. End Sub
  1354. Private Sub NUP23_ValueChanged(sender As Object, e As EventArgs) Handles NUP23.ValueChanged
  1355. If 班別_cb23.Text <> "休" Then : 休息變化23() : ComboBox45.Visible = True : ComboBox46.Visible = True
  1356. Else : ComboBox45.Visible = False : ComboBox46.Visible = False : End If
  1357. End Sub
  1358. Private Sub NUP24_ValueChanged(sender As Object, e As EventArgs) Handles NUP24.ValueChanged
  1359. If 班別_cb24.Text <> "休" Then : 休息變化24() : ComboBox47.Visible = True : ComboBox48.Visible = True
  1360. Else : ComboBox47.Visible = False : ComboBox48.Visible = False : End If
  1361. End Sub
  1362. Private Sub NUP25_ValueChanged(sender As Object, e As EventArgs) Handles NUP25.ValueChanged
  1363. If 班別_cb25.Text <> "休" Then : 休息變化25() : ComboBox49.Visible = True : ComboBox50.Visible = True
  1364. Else : ComboBox49.Visible = False : ComboBox50.Visible = False : End If
  1365. End Sub
  1366. Private Sub NUP26_ValueChanged(sender As Object, e As EventArgs) Handles NUP26.ValueChanged
  1367. If 班別_cb26.Text <> "休" Then : 休息變化26() : ComboBox51.Visible = True : ComboBox52.Visible = True
  1368. Else : ComboBox51.Visible = False : ComboBox52.Visible = False : End If
  1369. End Sub
  1370. Private Sub NUP27_ValueChanged(sender As Object, e As EventArgs) Handles NUP27.ValueChanged
  1371. If 班別_cb27.Text <> "休" Then : 休息變化27() : ComboBox53.Visible = True : ComboBox54.Visible = True
  1372. Else : ComboBox53.Visible = False : ComboBox54.Visible = False : End If
  1373. End Sub
  1374. Private Sub NUP28_ValueChanged(sender As Object, e As EventArgs) Handles NUP28.ValueChanged
  1375. If 班別_cb28.Text <> "休" Then : 休息變化28() : ComboBox55.Visible = True : ComboBox56.Visible = True
  1376. Else : ComboBox55.Visible = False : ComboBox56.Visible = False : End If
  1377. End Sub
  1378. Private Sub NUP29_ValueChanged(sender As Object, e As EventArgs) Handles NUP29.ValueChanged
  1379. If 班別_cb29.Text <> "休" Then : 休息變化29() : ComboBox57.Visible = True : ComboBox58.Visible = True
  1380. Else : ComboBox57.Visible = False : ComboBox58.Visible = False : End If
  1381. End Sub
  1382. Private Sub NUP30_ValueChanged(sender As Object, e As EventArgs) Handles NUP30.ValueChanged
  1383. If 班別_cb30.Text <> "休" Then : 休息變化30() : ComboBox59.Visible = True : ComboBox60.Visible = True
  1384. Else : ComboBox59.Visible = False : ComboBox60.Visible = False : End If
  1385. End Sub
  1386. Private Sub NUP31_ValueChanged(sender As Object, e As EventArgs) Handles NUP31.ValueChanged
  1387. If 班別_cb31.Text <> "休" Then : 休息變化31() : ComboBox61.Visible = True : ComboBox62.Visible = True
  1388. Else : ComboBox61.Visible = False : ComboBox62.Visible = False : End If
  1389. End Sub
  1390. Private Sub BUP1_ValueChanged(sender As Object, e As EventArgs) Handles BUP1.ValueChanged
  1391. If 姓名_tb1.Text = "" Or 班別_cb1.Text = "休" Then : Else : 進度條變化1() : End If
  1392. End Sub
  1393. Private Sub BUP2_ValueChanged(sender As Object, e As EventArgs) Handles BUP2.ValueChanged
  1394. If 姓名_tb2.Text = "" Or 班別_cb2.Text = "休" Then : Else : 進度條變化2() : End If
  1395. End Sub
  1396. Private Sub BUP3_ValueChanged(sender As Object, e As EventArgs) Handles BUP3.ValueChanged
  1397. If 姓名_tb3.Text = "" Or 班別_cb3.Text = "休" Then : Else : 進度條變化3() : End If
  1398. End Sub
  1399. Private Sub BUP4_ValueChanged(sender As Object, e As EventArgs) Handles BUP4.ValueChanged
  1400. If 姓名_tb4.Text = "" Or 班別_cb4.Text = "休" Then : Else : 進度條變化4() : End If
  1401. End Sub
  1402. Private Sub BUP5_ValueChanged(sender As Object, e As EventArgs) Handles BUP5.ValueChanged
  1403. If 姓名_tb5.Text = "" Or 班別_cb5.Text = "休" Then : Else : 進度條變化5() : End If
  1404. End Sub
  1405. Private Sub BUP6_ValueChanged(sender As Object, e As EventArgs) Handles BUP6.ValueChanged
  1406. If 姓名_tb6.Text = "" Or 班別_cb6.Text = "休" Then : Else : 進度條變化6() : End If
  1407. End Sub
  1408. Private Sub BUP7_ValueChanged(sender As Object, e As EventArgs) Handles BUP7.ValueChanged
  1409. If 姓名_tb7.Text = "" Or 班別_cb7.Text = "休" Then : Else : 進度條變化7() : End If
  1410. End Sub
  1411. Private Sub BUP8_ValueChanged(sender As Object, e As EventArgs) Handles BUP8.ValueChanged
  1412. If 姓名_tb8.Text = "" Or 班別_cb8.Text = "休" Then : Else : 進度條變化8() : End If
  1413. End Sub
  1414. Private Sub BUP9_ValueChanged(sender As Object, e As EventArgs) Handles BUP9.ValueChanged
  1415. If 姓名_tb9.Text = "" Or 班別_cb9.Text = "休" Then : Else : 進度條變化9() : End If
  1416. End Sub
  1417. Private Sub BUP10_ValueChanged(sender As Object, e As EventArgs) Handles BUP10.ValueChanged
  1418. If 姓名_tb10.Text = "" Or 班別_cb10.Text = "休" Then : Else : 進度條變化10() : End If
  1419. End Sub
  1420. Private Sub BUP11_ValueChanged(sender As Object, e As EventArgs) Handles BUP11.ValueChanged
  1421. If 姓名_tb11.Text = "" Or 班別_cb11.Text = "休" Then : Else : 進度條變化11() : End If
  1422. End Sub
  1423. Private Sub BUP12_ValueChanged(sender As Object, e As EventArgs) Handles BUP12.ValueChanged
  1424. If 姓名_tb12.Text = "" Or 班別_cb12.Text = "休" Then : Else : 進度條變化12() : End If
  1425. End Sub
  1426. Private Sub BUP13_ValueChanged(sender As Object, e As EventArgs) Handles BUP13.ValueChanged
  1427. If 姓名_tb13.Text = "" Or 班別_cb13.Text = "休" Then : Else : 進度條變化13() : End If
  1428. End Sub
  1429. Private Sub BUP14_ValueChanged(sender As Object, e As EventArgs) Handles BUP14.ValueChanged
  1430. If 姓名_tb14.Text = "" Or 班別_cb14.Text = "休" Then : Else : 進度條變化14() : End If
  1431. End Sub
  1432. Private Sub BUP15_ValueChanged(sender As Object, e As EventArgs) Handles BUP15.ValueChanged
  1433. If 姓名_tb15.Text = "" Or 班別_cb15.Text = "休" Then : Else : 進度條變化15() : End If
  1434. End Sub
  1435. Private Sub BUP16_ValueChanged(sender As Object, e As EventArgs) Handles BUP16.ValueChanged
  1436. If 姓名_tb16.Text = "" Or 班別_cb16.Text = "休" Then : Else : 進度條變化16() : End If
  1437. End Sub
  1438. Private Sub BUP17_ValueChanged(sender As Object, e As EventArgs) Handles BUP17.ValueChanged
  1439. If 姓名_tb17.Text = "" Or 班別_cb17.Text = "休" Then : Else : 進度條變化17() : End If
  1440. End Sub
  1441. Private Sub BUP18_ValueChanged(sender As Object, e As EventArgs) Handles BUP18.ValueChanged
  1442. If 姓名_tb18.Text = "" Or 班別_cb18.Text = "休" Then : Else : 進度條變化18() : End If
  1443. End Sub
  1444. Private Sub BUP19_ValueChanged(sender As Object, e As EventArgs) Handles BUP19.ValueChanged
  1445. If 姓名_tb19.Text = "" Or 班別_cb19.Text = "休" Then : Else : 進度條變化19() : End If
  1446. End Sub
  1447. Private Sub BUP20_ValueChanged(sender As Object, e As EventArgs) Handles BUP20.ValueChanged
  1448. If 姓名_tb20.Text = "" Or 班別_cb20.Text = "休" Then : Else : 進度條變化20() : End If
  1449. End Sub
  1450. Private Sub BUP21_ValueChanged(sender As Object, e As EventArgs) Handles BUP21.ValueChanged
  1451. If 姓名_tb21.Text = "" Or 班別_cb21.Text = "休" Then : Else : 進度條變化21() : End If
  1452. End Sub
  1453. Private Sub BUP22_ValueChanged(sender As Object, e As EventArgs) Handles BUP22.ValueChanged
  1454. If 姓名_tb22.Text = "" Or 班別_cb22.Text = "休" Then : Else : 進度條變化22() : End If
  1455. End Sub
  1456. Private Sub BUP23_ValueChanged(sender As Object, e As EventArgs) Handles BUP23.ValueChanged
  1457. If 姓名_tb23.Text = "" Or 班別_cb23.Text = "休" Then : Else : 進度條變化23() : End If
  1458. End Sub
  1459. Private Sub BUP24_ValueChanged(sender As Object, e As EventArgs) Handles BUP24.ValueChanged
  1460. If 姓名_tb24.Text = "" Or 班別_cb24.Text = "休" Then : Else : 進度條變化24() : End If
  1461. End Sub
  1462. Private Sub BUP25_ValueChanged(sender As Object, e As EventArgs) Handles BUP25.ValueChanged
  1463. If 姓名_tb25.Text = "" Or 班別_cb25.Text = "休" Then : Else : 進度條變化25() : End If
  1464. End Sub
  1465. Private Sub BUP26_ValueChanged(sender As Object, e As EventArgs) Handles BUP26.ValueChanged
  1466. If 姓名_tb26.Text = "" Or 班別_cb26.Text = "休" Then : Else : 進度條變化26() : End If
  1467. End Sub
  1468. Private Sub BUP27_ValueChanged(sender As Object, e As EventArgs) Handles BUP27.ValueChanged
  1469. If 姓名_tb27.Text = "" Or 班別_cb27.Text = "休" Then : Else : 進度條變化27() : End If
  1470. End Sub
  1471. Private Sub BUP28_ValueChanged(sender As Object, e As EventArgs) Handles BUP28.ValueChanged
  1472. If 姓名_tb28.Text = "" Or 班別_cb28.Text = "休" Then : Else : 進度條變化28() : End If
  1473. End Sub
  1474. Private Sub BUP29_ValueChanged(sender As Object, e As EventArgs) Handles BUP29.ValueChanged
  1475. If 姓名_tb29.Text = "" Or 班別_cb29.Text = "休" Then : Else : 進度條變化29() : End If
  1476. End Sub
  1477. Private Sub BUP30_ValueChanged(sender As Object, e As EventArgs) Handles BUP30.ValueChanged
  1478. If 姓名_tb30.Text = "" Or 班別_cb30.Text = "休" Then : Else : 進度條變化30() : End If
  1479. End Sub
  1480. Private Sub BUP31_ValueChanged(sender As Object, e As EventArgs) Handles BUP31.ValueChanged
  1481. If 姓名_tb31.Text = "" Or 班別_cb31.Text = "休" Then : Else : 進度條變化31() : End If
  1482. End Sub
  1483. Private Sub SetComboBoxBackColor(comboBox As ComboBox, selectedIndex As Integer)
  1484. Select Case selectedIndex
  1485. Case 1 : comboBox.BackColor = Color.LawnGreen
  1486. Case 2 : comboBox.BackColor = Color.LightBlue
  1487. Case 3 : comboBox.BackColor = Color.LightCoral
  1488. Case 4 : comboBox.BackColor = Color.LightCyan
  1489. Case 5 : comboBox.BackColor = Color.LightGoldenrodYellow
  1490. Case 6 : comboBox.BackColor = Color.LightGray
  1491. Case 7 : comboBox.BackColor = Color.LightGreen
  1492. Case 8 : comboBox.BackColor = Color.LightPink
  1493. Case 9 : comboBox.BackColor = Color.LightSalmon
  1494. Case 0 : comboBox.BackColor = Color.Gray
  1495. End Select
  1496. End Sub
  1497. Private Sub ComboBox63_SelectedIndexChanged(sender As Object, e As EventArgs) Handles ComboBox63.SelectedIndexChanged
  1498. SetComboBoxBackColor(ComboBox1, ComboBox63.SelectedIndex)
  1499. End Sub
  1500. Private Sub ComboBox64_SelectedIndexChanged(sender As Object, e As EventArgs) Handles ComboBox64.SelectedIndexChanged
  1501. SetComboBoxBackColor(ComboBox2, ComboBox64.SelectedIndex)
  1502. End Sub
  1503. Private Sub ComboBox65_SelectedIndexChanged(sender As Object, e As EventArgs) Handles ComboBox65.SelectedIndexChanged
  1504. SetComboBoxBackColor(ComboBox3, ComboBox65.SelectedIndex)
  1505. End Sub
  1506. Private Sub ComboBox66_SelectedIndexChanged(sender As Object, e As EventArgs) Handles ComboBox66.SelectedIndexChanged
  1507. SetComboBoxBackColor(ComboBox4, ComboBox66.SelectedIndex)
  1508. End Sub
  1509. Private Sub ComboBox67_SelectedIndexChanged(sender As Object, e As EventArgs) Handles ComboBox67.SelectedIndexChanged
  1510. SetComboBoxBackColor(ComboBox5, ComboBox67.SelectedIndex)
  1511. End Sub
  1512. Private Sub ComboBox68_SelectedIndexChanged(sender As Object, e As EventArgs) Handles ComboBox68.SelectedIndexChanged
  1513. SetComboBoxBackColor(ComboBox6, ComboBox68.SelectedIndex)
  1514. End Sub
  1515. Private Sub ComboBox69_SelectedIndexChanged(sender As Object, e As EventArgs) Handles ComboBox69.SelectedIndexChanged
  1516. SetComboBoxBackColor(ComboBox7, ComboBox69.SelectedIndex)
  1517. End Sub
  1518. Private Sub ComboBox70_SelectedIndexChanged(sender As Object, e As EventArgs) Handles ComboBox70.SelectedIndexChanged
  1519. SetComboBoxBackColor(ComboBox8, ComboBox70.SelectedIndex)
  1520. End Sub
  1521. Private Sub ComboBox71_SelectedIndexChanged(sender As Object, e As EventArgs) Handles ComboBox71.SelectedIndexChanged
  1522. SetComboBoxBackColor(ComboBox9, ComboBox71.SelectedIndex)
  1523. End Sub
  1524. Private Sub ComboBox72_SelectedIndexChanged(sender As Object, e As EventArgs) Handles ComboBox72.SelectedIndexChanged
  1525. SetComboBoxBackColor(ComboBox10, ComboBox72.SelectedIndex)
  1526. End Sub
  1527. Private Sub ComboBox73_SelectedIndexChanged(sender As Object, e As EventArgs) Handles ComboBox73.SelectedIndexChanged
  1528. SetComboBoxBackColor(ComboBox11, ComboBox73.SelectedIndex)
  1529. End Sub
  1530. Private Sub ComboBox74_SelectedIndexChanged(sender As Object, e As EventArgs) Handles ComboBox74.SelectedIndexChanged
  1531. SetComboBoxBackColor(ComboBox12, ComboBox74.SelectedIndex)
  1532. End Sub
  1533. Private Sub ComboBox75_SelectedIndexChanged(sender As Object, e As EventArgs) Handles ComboBox75.SelectedIndexChanged
  1534. SetComboBoxBackColor(ComboBox13, ComboBox75.SelectedIndex)
  1535. End Sub
  1536. Private Sub ComboBox76_SelectedIndexChanged(sender As Object, e As EventArgs) Handles ComboBox76.SelectedIndexChanged
  1537. SetComboBoxBackColor(ComboBox14, ComboBox76.SelectedIndex)
  1538. End Sub
  1539. Private Sub ComboBox77_SelectedIndexChanged(sender As Object, e As EventArgs) Handles ComboBox77.SelectedIndexChanged
  1540. SetComboBoxBackColor(ComboBox15, ComboBox77.SelectedIndex)
  1541. End Sub
  1542. Private Sub ComboBox78_SelectedIndexChanged(sender As Object, e As EventArgs) Handles ComboBox78.SelectedIndexChanged
  1543. SetComboBoxBackColor(ComboBox16, ComboBox78.SelectedIndex)
  1544. End Sub
  1545. Private Sub ComboBox79_SelectedIndexChanged(sender As Object, e As EventArgs) Handles ComboBox79.SelectedIndexChanged
  1546. SetComboBoxBackColor(ComboBox17, ComboBox79.SelectedIndex)
  1547. End Sub
  1548. Private Sub ComboBox80_SelectedIndexChanged(sender As Object, e As EventArgs) Handles ComboBox80.SelectedIndexChanged
  1549. SetComboBoxBackColor(ComboBox18, ComboBox80.SelectedIndex)
  1550. End Sub
  1551. Private Sub ComboBox81_SelectedIndexChanged(sender As Object, e As EventArgs) Handles ComboBox81.SelectedIndexChanged
  1552. SetComboBoxBackColor(ComboBox19, ComboBox81.SelectedIndex)
  1553. End Sub
  1554. Private Sub ComboBox82_SelectedIndexChanged(sender As Object, e As EventArgs) Handles ComboBox82.SelectedIndexChanged
  1555. SetComboBoxBackColor(ComboBox20, ComboBox82.SelectedIndex)
  1556. End Sub
  1557. Private Sub ComboBox83_SelectedIndexChanged(sender As Object, e As EventArgs) Handles ComboBox83.SelectedIndexChanged
  1558. SetComboBoxBackColor(ComboBox21, ComboBox83.SelectedIndex)
  1559. End Sub
  1560. Private Sub ComboBox84_SelectedIndexChanged(sender As Object, e As EventArgs) Handles ComboBox84.SelectedIndexChanged
  1561. SetComboBoxBackColor(ComboBox22, ComboBox84.SelectedIndex)
  1562. End Sub
  1563. Private Sub ComboBox85_SelectedIndexChanged(sender As Object, e As EventArgs) Handles ComboBox85.SelectedIndexChanged
  1564. SetComboBoxBackColor(ComboBox23, ComboBox85.SelectedIndex)
  1565. End Sub
  1566. Private Sub ComboBox86_SelectedIndexChanged(sender As Object, e As EventArgs) Handles ComboBox86.SelectedIndexChanged
  1567. SetComboBoxBackColor(ComboBox24, ComboBox86.SelectedIndex)
  1568. End Sub
  1569. Private Sub ComboBox87_SelectedIndexChanged(sender As Object, e As EventArgs) Handles ComboBox87.SelectedIndexChanged
  1570. SetComboBoxBackColor(ComboBox25, ComboBox87.SelectedIndex)
  1571. End Sub
  1572. Private Sub ComboBox88_SelectedIndexChanged(sender As Object, e As EventArgs) Handles ComboBox88.SelectedIndexChanged
  1573. SetComboBoxBackColor(ComboBox26, ComboBox88.SelectedIndex)
  1574. End Sub
  1575. Private Sub ComboBox89_SelectedIndexChanged(sender As Object, e As EventArgs) Handles ComboBox89.SelectedIndexChanged
  1576. SetComboBoxBackColor(ComboBox27, ComboBox89.SelectedIndex)
  1577. End Sub
  1578. Private Sub ComboBox90_SelectedIndexChanged(sender As Object, e As EventArgs) Handles ComboBox90.SelectedIndexChanged
  1579. SetComboBoxBackColor(ComboBox28, ComboBox90.SelectedIndex)
  1580. End Sub
  1581. Private Sub ComboBox91_SelectedIndexChanged(sender As Object, e As EventArgs) Handles ComboBox91.SelectedIndexChanged
  1582. SetComboBoxBackColor(ComboBox29, ComboBox91.SelectedIndex)
  1583. End Sub
  1584. Private Sub ComboBox92_SelectedIndexChanged(sender As Object, e As EventArgs) Handles ComboBox92.SelectedIndexChanged
  1585. SetComboBoxBackColor(ComboBox30, ComboBox92.SelectedIndex)
  1586. End Sub
  1587. Private Sub ComboBox93_SelectedIndexChanged(sender As Object, e As EventArgs) Handles ComboBox93.SelectedIndexChanged
  1588. SetComboBoxBackColor(ComboBox31, ComboBox93.SelectedIndex)
  1589. End Sub
  1590. Private Sub ComboBox94_SelectedIndexChanged(sender As Object, e As EventArgs) Handles ComboBox94.SelectedIndexChanged
  1591. SetComboBoxBackColor(ComboBox32, ComboBox94.SelectedIndex)
  1592. End Sub
  1593. Private Sub ComboBox95_SelectedIndexChanged(sender As Object, e As EventArgs) Handles ComboBox95.SelectedIndexChanged
  1594. SetComboBoxBackColor(ComboBox33, ComboBox95.SelectedIndex)
  1595. End Sub
  1596. Private Sub ComboBox96_SelectedIndexChanged(sender As Object, e As EventArgs) Handles ComboBox96.SelectedIndexChanged
  1597. SetComboBoxBackColor(ComboBox34, ComboBox96.SelectedIndex)
  1598. End Sub
  1599. Private Sub ComboBox97_SelectedIndexChanged(sender As Object, e As EventArgs) Handles ComboBox97.SelectedIndexChanged
  1600. SetComboBoxBackColor(ComboBox35, ComboBox97.SelectedIndex)
  1601. End Sub
  1602. Private Sub ComboBox98_SelectedIndexChanged(sender As Object, e As EventArgs) Handles ComboBox98.SelectedIndexChanged
  1603. SetComboBoxBackColor(ComboBox36, ComboBox98.SelectedIndex)
  1604. End Sub
  1605. Private Sub ComboBox99_SelectedIndexChanged(sender As Object, e As EventArgs) Handles ComboBox99.SelectedIndexChanged
  1606. SetComboBoxBackColor(ComboBox37, ComboBox99.SelectedIndex)
  1607. End Sub
  1608. Private Sub ComboBox100_SelectedIndexChanged(sender As Object, e As EventArgs) Handles ComboBox100.SelectedIndexChanged
  1609. SetComboBoxBackColor(ComboBox38, ComboBox100.SelectedIndex)
  1610. End Sub
  1611. Private Sub ComboBox101_SelectedIndexChanged(sender As Object, e As EventArgs) Handles ComboBox101.SelectedIndexChanged
  1612. SetComboBoxBackColor(ComboBox39, ComboBox101.SelectedIndex)
  1613. End Sub
  1614. Private Sub ComboBox102_SelectedIndexChanged(sender As Object, e As EventArgs) Handles ComboBox102.SelectedIndexChanged
  1615. SetComboBoxBackColor(ComboBox40, ComboBox102.SelectedIndex)
  1616. End Sub
  1617. Private Sub ComboBox103_SelectedIndexChanged(sender As Object, e As EventArgs) Handles ComboBox103.SelectedIndexChanged
  1618. SetComboBoxBackColor(ComboBox41, ComboBox103.SelectedIndex)
  1619. End Sub
  1620. Private Sub ComboBox104_SelectedIndexChanged(sender As Object, e As EventArgs) Handles ComboBox104.SelectedIndexChanged
  1621. SetComboBoxBackColor(ComboBox42, ComboBox104.SelectedIndex)
  1622. End Sub
  1623. Private Sub ComboBox105_SelectedIndexChanged(sender As Object, e As EventArgs) Handles ComboBox105.SelectedIndexChanged
  1624. SetComboBoxBackColor(ComboBox43, ComboBox105.SelectedIndex)
  1625. End Sub
  1626. Private Sub ComboBox106_SelectedIndexChanged(sender As Object, e As EventArgs) Handles ComboBox106.SelectedIndexChanged
  1627. SetComboBoxBackColor(ComboBox44, ComboBox106.SelectedIndex)
  1628. End Sub
  1629. Private Sub ComboBox107_SelectedIndexChanged(sender As Object, e As EventArgs) Handles ComboBox107.SelectedIndexChanged
  1630. SetComboBoxBackColor(ComboBox45, ComboBox107.SelectedIndex)
  1631. End Sub
  1632. Private Sub ComboBox108_SelectedIndexChanged(sender As Object, e As EventArgs) Handles ComboBox108.SelectedIndexChanged
  1633. SetComboBoxBackColor(ComboBox46, ComboBox108.SelectedIndex)
  1634. End Sub
  1635. Private Sub ComboBox109_SelectedIndexChanged(sender As Object, e As EventArgs) Handles ComboBox109.SelectedIndexChanged
  1636. SetComboBoxBackColor(ComboBox47, ComboBox109.SelectedIndex)
  1637. End Sub
  1638. Private Sub ComboBox110_SelectedIndexChanged(sender As Object, e As EventArgs) Handles ComboBox110.SelectedIndexChanged
  1639. SetComboBoxBackColor(ComboBox48, ComboBox110.SelectedIndex)
  1640. End Sub
  1641. Private Sub ComboBox111_SelectedIndexChanged(sender As Object, e As EventArgs) Handles ComboBox111.SelectedIndexChanged
  1642. SetComboBoxBackColor(ComboBox49, ComboBox111.SelectedIndex)
  1643. End Sub
  1644. Private Sub ComboBox112_SelectedIndexChanged(sender As Object, e As EventArgs) Handles ComboBox112.SelectedIndexChanged
  1645. SetComboBoxBackColor(ComboBox50, ComboBox112.SelectedIndex)
  1646. End Sub
  1647. Private Sub ComboBox113_SelectedIndexChanged(sender As Object, e As EventArgs) Handles ComboBox113.SelectedIndexChanged
  1648. SetComboBoxBackColor(ComboBox51, ComboBox113.SelectedIndex)
  1649. End Sub
  1650. Private Sub ComboBox114_SelectedIndexChanged(sender As Object, e As EventArgs) Handles ComboBox114.SelectedIndexChanged
  1651. SetComboBoxBackColor(ComboBox52, ComboBox114.SelectedIndex)
  1652. End Sub
  1653. Private Sub ComboBox115_SelectedIndexChanged(sender As Object, e As EventArgs) Handles ComboBox115.SelectedIndexChanged
  1654. SetComboBoxBackColor(ComboBox53, ComboBox115.SelectedIndex)
  1655. End Sub
  1656. Private Sub ComboBox116_SelectedIndexChanged(sender As Object, e As EventArgs) Handles ComboBox116.SelectedIndexChanged
  1657. SetComboBoxBackColor(ComboBox54, ComboBox116.SelectedIndex)
  1658. End Sub
  1659. Private Sub ComboBox117_SelectedIndexChanged(sender As Object, e As EventArgs) Handles ComboBox117.SelectedIndexChanged
  1660. SetComboBoxBackColor(ComboBox55, ComboBox117.SelectedIndex)
  1661. End Sub
  1662. Private Sub ComboBox118_SelectedIndexChanged(sender As Object, e As EventArgs) Handles ComboBox118.SelectedIndexChanged
  1663. SetComboBoxBackColor(ComboBox56, ComboBox118.SelectedIndex)
  1664. End Sub
  1665. Private Sub ComboBox119_SelectedIndexChanged(sender As Object, e As EventArgs) Handles ComboBox119.SelectedIndexChanged
  1666. SetComboBoxBackColor(ComboBox57, ComboBox119.SelectedIndex)
  1667. End Sub
  1668. Private Sub ComboBox120_SelectedIndexChanged(sender As Object, e As EventArgs) Handles ComboBox120.SelectedIndexChanged
  1669. SetComboBoxBackColor(ComboBox58, ComboBox120.SelectedIndex)
  1670. End Sub
  1671. Private Sub ComboBox121_SelectedIndexChanged(sender As Object, e As EventArgs) Handles ComboBox121.SelectedIndexChanged
  1672. SetComboBoxBackColor(ComboBox59, ComboBox121.SelectedIndex)
  1673. End Sub
  1674. Private Sub ComboBox122_SelectedIndexChanged(sender As Object, e As EventArgs) Handles ComboBox122.SelectedIndexChanged
  1675. SetComboBoxBackColor(ComboBox60, ComboBox122.SelectedIndex)
  1676. End Sub
  1677. Private Sub ComboBox123_SelectedIndexChanged(sender As Object, e As EventArgs) Handles ComboBox123.SelectedIndexChanged
  1678. SetComboBoxBackColor(ComboBox61, ComboBox123.SelectedIndex)
  1679. End Sub
  1680. Private Sub ComboBox124_SelectedIndexChanged(sender As Object, e As EventArgs) Handles ComboBox124.SelectedIndexChanged
  1681. SetComboBoxBackColor(ComboBox62, ComboBox124.SelectedIndex)
  1682. End Sub
  1683. End Class