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

排班明細_參考.vb 143KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947
  1. Option Strict Off
  2. Public Class 排班明細_參考
  3. ReadOnly ds, ds1 As New DataSet
  4. Private X1 As Double
  5. Private XX As Double
  6. Private XXX As Double
  7. Private ReadOnly AA As Double
  8. Dim Q As Integer
  9. Private Sub 讀取人員資料表()
  10. 人員_dgv.DataSource = Nothing : ds.Clear()
  11. 人員_dgv.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
  12. 人員_dgv.ColumnHeadersHeight = 25
  13. 人員_dgv.AllowUserToAddRows = False
  14. If 全_ch.Checked = False Then
  15. SQL_排班系統_班別_人員()
  16. Else
  17. SQL_排班系統_班別_人員_全()
  18. End If
  19. da.Fill(ds) : 人員_dgv.DataSource = ds.Tables(0) : conn.Close()
  20. 人員_dgv.Columns(0).FillWeight = 70 : 人員_dgv.Columns(1).Visible = False : 人員_dgv.Columns(2).FillWeight = 100
  21. For i As Integer = 0 To 人員_dgv.Rows.Count - 1
  22. 人員_dgv.Rows(i).Cells("No.").Value = i + 1
  23. Next
  24. End Sub
  25. Private Sub 讀取排班資料表()
  26. 排班明細_dgv.DataSource = Nothing : ds1.Clear()
  27. 排班明細_dgv.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
  28. 排班明細_dgv.ColumnHeadersHeight = 25
  29. 排班明細_dgv.AllowUserToAddRows = False
  30. SQL_排班系統_班別_排班()
  31. da.Fill(ds1) : 排班明細_dgv.DataSource = ds1.Tables(0) : conn.Close()
  32. End Sub
  33. Private Sub 班別_下拉表單資料載入()
  34. SQL_排班系統_班別_下拉()
  35. 班別_cb1.Items.Clear() : 班別_cb2.Items.Clear() : 班別_cb3.Items.Clear() : 班別_cb4.Items.Clear() : 班別_cb5.Items.Clear() : 班別_cb6.Items.Clear()
  36. 班別_cb7.Items.Clear() : 班別_cb7.Items.Clear() : 班別_cb8.Items.Clear() : 班別_cb9.Items.Clear() : 班別_cb10.Items.Clear() : 班別_cb11.Items.Clear()
  37. 班別_cb12.Items.Clear() : 班別_cb13.Items.Clear() : 班別_cb14.Items.Clear() : 班別_cb15.Items.Clear() : 班別_cb16.Items.Clear() : 班別_cb17.Items.Clear()
  38. 班別_cb18.Items.Clear() : 班別_cb19.Items.Clear() : 班別_cb20.Items.Clear()
  39. While (dr.Read())
  40. 班別_cb1.Items.Add(dr("時段")) : 班別_cb2.Items.Add(dr("時段")) : 班別_cb3.Items.Add(dr("時段")) : 班別_cb4.Items.Add(dr("時段")) : 班別_cb5.Items.Add(dr("時段"))
  41. 班別_cb6.Items.Add(dr("時段")) : 班別_cb7.Items.Add(dr("時段")) : 班別_cb8.Items.Add(dr("時段")) : 班別_cb9.Items.Add(dr("時段")) : 班別_cb10.Items.Add(dr("時段"))
  42. 班別_cb11.Items.Add(dr("時段")) : 班別_cb12.Items.Add(dr("時段")) : 班別_cb13.Items.Add(dr("時段")) : 班別_cb14.Items.Add(dr("時段")) : 班別_cb15.Items.Add(dr("時段"))
  43. 班別_cb16.Items.Add(dr("時段")) : 班別_cb17.Items.Add(dr("時段")) : 班別_cb18.Items.Add(dr("時段")) : 班別_cb19.Items.Add(dr("時段")) : 班別_cb20.Items.Add(dr("時段"))
  44. End While
  45. conn.Close()
  46. End Sub
  47. Private Sub 職務_下拉表單資料載入()
  48. SQL_排班系統_職務_下拉()
  49. ComboBox1.Items.Clear() : ComboBox2.Items.Clear() : ComboBox3.Items.Clear() : ComboBox4.Items.Clear() : ComboBox5.Items.Clear() : ComboBox6.Items.Clear()
  50. ComboBox7.Items.Clear() : ComboBox8.Items.Clear() : ComboBox9.Items.Clear() : ComboBox10.Items.Clear() : ComboBox11.Items.Clear() : ComboBox12.Items.Clear()
  51. ComboBox13.Items.Clear() : ComboBox14.Items.Clear() : ComboBox15.Items.Clear() : ComboBox16.Items.Clear() : ComboBox17.Items.Clear() : ComboBox18.Items.Clear()
  52. ComboBox19.Items.Clear() : ComboBox20.Items.Clear() : ComboBox21.Items.Clear() : ComboBox22.Items.Clear() : ComboBox23.Items.Clear() : ComboBox24.Items.Clear()
  53. ComboBox25.Items.Clear() : ComboBox26.Items.Clear() : ComboBox27.Items.Clear() : ComboBox28.Items.Clear() : ComboBox29.Items.Clear() : ComboBox30.Items.Clear()
  54. ComboBox31.Items.Clear() : ComboBox32.Items.Clear() : ComboBox33.Items.Clear() : ComboBox34.Items.Clear() : ComboBox35.Items.Clear() : ComboBox36.Items.Clear()
  55. ComboBox37.Items.Clear() : ComboBox38.Items.Clear() : ComboBox39.Items.Clear() : ComboBox40.Items.Clear()
  56. While (dr.Read())
  57. ComboBox1.Items.Add(dr("職務")) : ComboBox2.Items.Add(dr("職務")) : ComboBox3.Items.Add(dr("職務")) : ComboBox4.Items.Add(dr("職務")) : ComboBox5.Items.Add(dr("職務"))
  58. ComboBox6.Items.Add(dr("職務")) : ComboBox7.Items.Add(dr("職務")) : ComboBox8.Items.Add(dr("職務")) : ComboBox9.Items.Add(dr("職務")) : ComboBox10.Items.Add(dr("職務"))
  59. ComboBox11.Items.Add(dr("職務")) : ComboBox12.Items.Add(dr("職務")) : ComboBox13.Items.Add(dr("職務")) : ComboBox14.Items.Add(dr("職務")) : ComboBox15.Items.Add(dr("職務"))
  60. ComboBox16.Items.Add(dr("職務")) : ComboBox17.Items.Add(dr("職務")) : ComboBox18.Items.Add(dr("職務")) : ComboBox19.Items.Add(dr("職務")) : ComboBox20.Items.Add(dr("職務"))
  61. ComboBox21.Items.Add(dr("職務")) : ComboBox22.Items.Add(dr("職務")) : ComboBox23.Items.Add(dr("職務")) : ComboBox24.Items.Add(dr("職務")) : ComboBox25.Items.Add(dr("職務"))
  62. ComboBox26.Items.Add(dr("職務")) : ComboBox27.Items.Add(dr("職務")) : ComboBox28.Items.Add(dr("職務")) : ComboBox29.Items.Add(dr("職務")) : ComboBox30.Items.Add(dr("職務"))
  63. ComboBox31.Items.Add(dr("職務")) : ComboBox32.Items.Add(dr("職務")) : ComboBox33.Items.Add(dr("職務")) : ComboBox34.Items.Add(dr("職務")) : ComboBox35.Items.Add(dr("職務"))
  64. ComboBox36.Items.Add(dr("職務")) : ComboBox37.Items.Add(dr("職務")) : ComboBox38.Items.Add(dr("職務")) : ComboBox39.Items.Add(dr("職務")) : ComboBox40.Items.Add(dr("職務"))
  65. End While
  66. conn.Close()
  67. End Sub
  68. Private Sub 班別圖示計算載入()
  69. XX = (XX - 480) * 1.25
  70. End Sub
  71. Private Sub 班表鎖定變化()
  72. If 簽核_bt.Enabled = False Then
  73. 存檔_bt.Enabled = False : 人員_dgv.Enabled = False : 全_ch.Enabled = False
  74. For no As Integer = 1 To 20
  75. Dim 姓名_tbS As TextBox = CType(Me.Controls.Find("姓名_tb" + no.ToString(), True)(0), TextBox)
  76. Dim 班別_cbS As ComboBox = CType(Me.Controls.Find("班別_cb" + no.ToString(), True)(0), ComboBox)
  77. Dim A_lbS As Label = CType(Me.Controls.Find("A_lb" + no.ToString(), True)(0), Label)
  78. Dim CheckBoxS As CheckBox = CType(Me.Controls.Find("CheckBox" + no.ToString(), True)(0), CheckBox)
  79. Dim NumericUpDownS As NumericUpDown = CType(Me.Controls.Find("NumericUpDown" + no.ToString(), True)(0), NumericUpDown)
  80. Dim NUPS As NumericUpDown = CType(Me.Controls.Find("NUP" + no.ToString(), True)(0), NumericUpDown)
  81. 姓名_tbS.Enabled = False : 班別_cbS.Enabled = False : CheckBoxS.Enabled = False : NumericUpDownS.Enabled = False : NUPS.Enabled = False
  82. Next
  83. Else
  84. 存檔_bt.Enabled = True : 人員_dgv.Enabled = True : 全_ch.Enabled = True
  85. For no As Integer = 1 To 20
  86. Dim 姓名_tbS As TextBox = CType(Me.Controls.Find("姓名_tb" + no.ToString(), True)(0), TextBox)
  87. Dim 班別_cbS As ComboBox = CType(Me.Controls.Find("班別_cb" + no.ToString(), True)(0), ComboBox)
  88. Dim A_lbS As Label = CType(Me.Controls.Find("A_lb" + no.ToString(), True)(0), Label)
  89. Dim CheckBoxS As CheckBox = CType(Me.Controls.Find("CheckBox" + no.ToString(), True)(0), CheckBox)
  90. Dim NumericUpDownS As NumericUpDown = CType(Me.Controls.Find("NumericUpDown" + no.ToString(), True)(0), NumericUpDown)
  91. Dim NUPS As NumericUpDown = CType(Me.Controls.Find("NUP" + no.ToString(), True)(0), NumericUpDown)
  92. 姓名_tbS.Enabled = True : 班別_cbS.Enabled = True : CheckBoxS.Enabled = True : NumericUpDownS.Enabled = True : NUPS.Enabled = True
  93. Next
  94. End If
  95. End Sub
  96. Private Sub 班條長度()
  97. '----------一小時47.5
  98. If Do2 = 4 Or Do2 = 6.5 Or Do2 = 7 Or Do2 = 7.5 Or Do2 = 8 Then : XXX = 0
  99. ElseIf Do2 = 2 Then : XXX = -(74.25 * 2)
  100. ElseIf Do2 = 2.5 Then : XXX = -(74.25) + (-(74.25 / 2))
  101. ElseIf Do2 = 3 Then : XXX = -(74.25)
  102. ElseIf Do2 = 3.5 Then : XXX = -(74.25 / 2)
  103. ElseIf Do2 = 4.5 Then : XXX = 74.25 / 2
  104. ElseIf Do2 = 5 Then : XXX = 74.25
  105. ElseIf Do2 = 5.5 Then : XXX = 74.25 + (74.25 / 2)
  106. ElseIf Do2 = 6 Then : XXX = 74.25 * 2
  107. End If
  108. End Sub
  109. Private Sub 休息長度()
  110. X1 = (X1 - 1) * 8.4 * 10
  111. End Sub
  112. Private Sub 進度條變化1()
  113. If 姓名_tb1.Text <> "" Or 班別_cb1.Text <> "休" Then
  114. Do2 = NumericUpDown1.Value : 班條長度()
  115. A_pb1.Size = New Size(297 + XXX, 27) : A_pb2.Size = New Size(297 - XXX, 27)
  116. ComboBox1.Size = New Size(297 + XXX, 32) : ComboBox2.Size = New Size(297 - XXX, 32)
  117. If CheckBox1.Checked = False And Val(Strings.Left(班別_cb1.Text, 2)) < 17 Then : A_pb2.Visible = True : ComboBox2.Visible = True
  118. ElseIf CheckBox1.Checked = False And Val(Strings.Left(班別_cb1.Text, 2)) >= 17 Then : A_pb2.Visible = False : ComboBox2.Visible = False
  119. ElseIf CheckBox1.Checked = True Then : A_pb2.Visible = False : ComboBox2.Visible = False
  120. End If
  121. End If
  122. End Sub
  123. Private Sub 進度條變化2()
  124. Do2 = NumericUpDown2.Value : 班條長度()
  125. If 姓名_tb2.Text <> "" Or 班別_cb2.Text <> "休" Then
  126. A_pb3.Size = New Size(297 + XXX, 27) : A_pb4.Size = New Size(297 - XXX, 27)
  127. ComboBox3.Size = New Size(297 + XXX, 32) : ComboBox4.Size = New Size(297 - XXX, 32)
  128. If CheckBox2.Checked = False And Val(Strings.Left(班別_cb2.Text, 2)) < 17 Then : A_pb4.Visible = True : ComboBox4.Visible = True
  129. ElseIf CheckBox2.Checked = False And Val(Strings.Left(班別_cb2.Text, 2)) >= 17 Then : A_pb4.Visible = False : ComboBox4.Visible = False
  130. ElseIf CheckBox2.Checked = True Then : A_pb4.Visible = False : ComboBox4.Visible = False
  131. End If
  132. End If
  133. End Sub
  134. Private Sub 進度條變化3()
  135. If 姓名_tb3.Text <> "" Or 班別_cb3.Text <> "休" Then
  136. Do2 = NumericUpDown3.Value : 班條長度()
  137. A_pb5.Size = New Size(297 + XXX, 27) : A_pb6.Size = New Size(297 - XXX, 27)
  138. ComboBox5.Size = New Size(297 + XXX, 32) : ComboBox6.Size = New Size(297 - XXX, 32)
  139. If CheckBox3.Checked = False And Val(Strings.Left(班別_cb3.Text, 2)) < 17 Then : A_pb6.Visible = True : ComboBox6.Visible = True
  140. ElseIf CheckBox3.Checked = False And Val(Strings.Left(班別_cb3.Text, 2)) >= 17 Then : A_pb6.Visible = False : ComboBox6.Visible = False
  141. ElseIf CheckBox3.Checked = True Then : A_pb6.Visible = False : ComboBox6.Visible = False
  142. End If
  143. End If
  144. End Sub
  145. Private Sub 進度條變化4()
  146. If 姓名_tb4.Text <> "" Or 班別_cb4.Text <> "休" Then
  147. Do2 = NumericUpDown4.Value : 班條長度()
  148. A_pb7.Size = New Size(297 + XXX, 27) : A_pb8.Size = New Size(297 - XXX, 27)
  149. ComboBox7.Size = New Size(297 + XXX, 32) : ComboBox8.Size = New Size(297 - XXX, 32)
  150. If CheckBox4.Checked = False And Val(Strings.Left(班別_cb4.Text, 2)) < 17 Then : A_pb8.Visible = True : ComboBox8.Visible = True
  151. ElseIf CheckBox4.Checked = False And Val(Strings.Left(班別_cb4.Text, 2)) >= 17 Then : A_pb8.Visible = False : ComboBox8.Visible = False
  152. ElseIf CheckBox4.Checked = True Then : A_pb8.Visible = False : ComboBox8.Visible = False
  153. End If
  154. End If
  155. End Sub
  156. Private Sub 進度條變化5()
  157. If 姓名_tb5.Text <> "" Or 班別_cb5.Text <> "休" Then
  158. Do2 = NumericUpDown5.Value : 班條長度()
  159. A_pb9.Size = New Size(297 + XXX, 27) : A_pb10.Size = New Size(297 - XXX, 27)
  160. ComboBox9.Size = New Size(297 + XXX, 32) : ComboBox10.Size = New Size(297 - XXX, 32)
  161. If CheckBox5.Checked = False And Val(Strings.Left(班別_cb5.Text, 2)) < 17 Then : A_pb10.Visible = True : ComboBox10.Visible = True
  162. ElseIf CheckBox5.Checked = False And Val(Strings.Left(班別_cb5.Text, 2)) >= 17 Then : A_pb10.Visible = False : ComboBox10.Visible = False
  163. ElseIf CheckBox5.Checked = True Then : A_pb10.Visible = False : ComboBox10.Visible = False
  164. End If
  165. End If
  166. End Sub
  167. Private Sub 進度條變化6()
  168. If 姓名_tb6.Text <> "" Or 班別_cb6.Text <> "休" Then
  169. Do2 = NumericUpDown6.Value : 班條長度()
  170. A_pb11.Size = New Size(297 + XXX, 27) : A_pb12.Size = New Size(297 - XXX, 27)
  171. ComboBox11.Size = New Size(297 + XXX, 32) : ComboBox12.Size = New Size(297 - XXX, 32)
  172. If CheckBox6.Checked = False And Val(Strings.Left(班別_cb6.Text, 2)) < 17 Then : A_pb12.Visible = True : ComboBox12.Visible = True
  173. ElseIf CheckBox6.Checked = False And Val(Strings.Left(班別_cb6.Text, 2)) >= 17 Then : A_pb12.Visible = False : ComboBox12.Visible = False
  174. ElseIf CheckBox6.Checked = True Then : A_pb12.Visible = False : ComboBox12.Visible = False
  175. End If
  176. End If
  177. End Sub
  178. Private Sub 進度條變化7()
  179. If 姓名_tb7.Text <> "" Or 班別_cb7.Text <> "休" Then
  180. Do2 = NumericUpDown7.Value : 班條長度()
  181. A_pb13.Size = New Size(297 + XXX, 27) : A_pb14.Size = New Size(297 - XXX, 27)
  182. ComboBox13.Size = New Size(297 + XXX, 32) : ComboBox14.Size = New Size(297 - XXX, 32)
  183. If CheckBox7.Checked = False And Val(Strings.Left(班別_cb7.Text, 2)) < 17 Then : A_pb14.Visible = True : ComboBox14.Visible = True
  184. ElseIf CheckBox7.Checked = False And Val(Strings.Left(班別_cb7.Text, 2)) >= 17 Then : A_pb14.Visible = False : ComboBox14.Visible = False
  185. ElseIf CheckBox7.Checked = True Then : A_pb14.Visible = False : ComboBox14.Visible = False
  186. End If
  187. End If
  188. End Sub
  189. Private Sub 進度條變化8()
  190. If 姓名_tb8.Text <> "" Or 班別_cb8.Text <> "休" Then
  191. Do2 = NumericUpDown8.Value : 班條長度()
  192. A_pb15.Size = New Size(297 + XXX, 27) : A_pb16.Size = New Size(297 - XXX, 27)
  193. ComboBox15.Size = New Size(297 + XXX, 32) : ComboBox16.Size = New Size(297 - XXX, 32)
  194. If CheckBox8.Checked = False And Val(Strings.Left(班別_cb8.Text, 2)) < 17 Then : A_pb16.Visible = True : ComboBox16.Visible = True
  195. ElseIf CheckBox8.Checked = False And Val(Strings.Left(班別_cb8.Text, 2)) >= 17 Then : A_pb16.Visible = False : ComboBox16.Visible = False
  196. ElseIf CheckBox8.Checked = True Then : A_pb16.Visible = False : ComboBox16.Visible = False
  197. End If
  198. End If
  199. End Sub
  200. Private Sub 進度條變化9()
  201. If 姓名_tb9.Text <> "" Or 班別_cb9.Text <> "休" Then
  202. Do2 = NumericUpDown9.Value : 班條長度()
  203. A_pb17.Size = New Size(297 + XXX, 27) : A_pb18.Size = New Size(297 - XXX, 27)
  204. ComboBox17.Size = New Size(297 + XXX, 32) : ComboBox18.Size = New Size(297 - XXX, 32)
  205. If CheckBox9.Checked = False And Val(Strings.Left(班別_cb9.Text, 2)) < 17 Then : A_pb18.Visible = True : ComboBox18.Visible = True
  206. ElseIf CheckBox9.Checked = False And Val(Strings.Left(班別_cb9.Text, 2)) >= 17 Then : A_pb18.Visible = False : ComboBox18.Visible = False
  207. ElseIf CheckBox9.Checked = True Then : A_pb18.Visible = False : ComboBox18.Visible = False
  208. End If
  209. End If
  210. End Sub
  211. Private Sub 進度條變化10()
  212. If 姓名_tb10.Text <> "" Or 班別_cb10.Text <> "休" Then
  213. Do2 = NumericUpDown10.Value : 班條長度()
  214. A_pb19.Size = New Size(297 + XXX, 27) : A_pb20.Size = New Size(297 - XXX, 27)
  215. ComboBox19.Size = New Size(297 + XXX, 32) : ComboBox20.Size = New Size(297 - XXX, 32)
  216. If CheckBox10.Checked = False And Val(Strings.Left(班別_cb10.Text, 2)) < 17 Then : A_pb20.Visible = True : ComboBox20.Visible = True
  217. ElseIf CheckBox10.Checked = False And Val(Strings.Left(班別_cb10.Text, 2)) >= 17 Then : A_pb20.Visible = False : ComboBox20.Visible = False
  218. ElseIf CheckBox10.Checked = True Then : A_pb20.Visible = False : ComboBox20.Visible = False
  219. End If
  220. End If
  221. End Sub
  222. Private Sub 進度條變化11()
  223. If 姓名_tb11.Text <> "" Or 班別_cb11.Text <> "休" Then
  224. Do2 = NumericUpDown11.Value : 班條長度()
  225. A_pb21.Size = New Size(297 + XXX, 27) : A_pb22.Size = New Size(297 - XXX, 27)
  226. ComboBox21.Size = New Size(297 + XXX, 32) : ComboBox22.Size = New Size(297 - XXX, 32)
  227. If CheckBox11.Checked = False And Val(Strings.Left(班別_cb11.Text, 2)) < 17 Then : A_pb22.Visible = True : ComboBox22.Visible = True
  228. ElseIf CheckBox11.Checked = False And Val(Strings.Left(班別_cb11.Text, 2)) >= 17 Then : A_pb22.Visible = False : ComboBox22.Visible = False
  229. ElseIf CheckBox11.Checked = True Then : A_pb22.Visible = False : ComboBox22.Visible = False
  230. End If
  231. End If
  232. End Sub
  233. Private Sub 進度條變化12()
  234. If 姓名_tb12.Text <> "" Or 班別_cb12.Text <> "休" Then
  235. Do2 = NumericUpDown12.Value : 班條長度()
  236. A_pb23.Size = New Size(297 + XXX, 27) : A_pb24.Size = New Size(297 - XXX, 27)
  237. ComboBox23.Size = New Size(297 + XXX, 32) : ComboBox24.Size = New Size(297 - XXX, 32)
  238. If CheckBox12.Checked = False And Val(Strings.Left(班別_cb12.Text, 2)) < 17 Then : A_pb24.Visible = True : ComboBox24.Visible = True
  239. ElseIf CheckBox12.Checked = False And Val(Strings.Left(班別_cb12.Text, 2)) >= 17 Then : A_pb24.Visible = False : ComboBox24.Visible = False
  240. ElseIf CheckBox12.Checked = True Then : A_pb24.Visible = False : ComboBox24.Visible = False
  241. End If
  242. End If
  243. End Sub
  244. Private Sub 進度條變化13()
  245. If 姓名_tb13.Text <> "" Or 班別_cb13.Text <> "休" Then
  246. Do2 = NumericUpDown13.Value : 班條長度()
  247. A_pb25.Size = New Size(297 + XXX, 27) : A_pb26.Size = New Size(297 - XXX, 27)
  248. ComboBox25.Size = New Size(297 + XXX, 32) : ComboBox26.Size = New Size(297 - XXX, 32)
  249. If CheckBox13.Checked = False And Val(Strings.Left(班別_cb13.Text, 2)) < 17 Then : A_pb26.Visible = True : ComboBox26.Visible = True
  250. ElseIf CheckBox13.Checked = False And Val(Strings.Left(班別_cb13.Text, 2)) >= 17 Then : A_pb26.Visible = False : ComboBox26.Visible = False
  251. ElseIf CheckBox13.Checked = True Then : A_pb26.Visible = False : ComboBox26.Visible = False
  252. End If
  253. End If
  254. End Sub
  255. Private Sub 進度條變化14()
  256. If 姓名_tb14.Text <> "" Or 班別_cb14.Text <> "休" Then
  257. Do2 = NumericUpDown14.Value : 班條長度()
  258. A_pb27.Size = New Size(297 + XXX, 27) : A_pb28.Size = New Size(297 - XXX, 27)
  259. ComboBox27.Size = New Size(297 + XXX, 32) : ComboBox28.Size = New Size(297 - XXX, 32)
  260. If CheckBox14.Checked = False And Val(Strings.Left(班別_cb14.Text, 2)) < 17 Then : A_pb28.Visible = True : ComboBox28.Visible = True
  261. ElseIf CheckBox14.Checked = False And Val(Strings.Left(班別_cb14.Text, 2)) >= 17 Then : A_pb28.Visible = False : ComboBox28.Visible = False
  262. ElseIf CheckBox14.Checked = True Then : A_pb28.Visible = False : ComboBox28.Visible = False
  263. End If
  264. End If
  265. End Sub
  266. Private Sub 進度條變化15()
  267. If 姓名_tb15.Text <> "" Or 班別_cb15.Text <> "休" Then
  268. Do2 = NumericUpDown15.Value : 班條長度()
  269. A_pb29.Size = New Size(297 + XXX, 27) : A_pb30.Size = New Size(297 - XXX, 27)
  270. ComboBox29.Size = New Size(297 + XXX, 32) : ComboBox30.Size = New Size(297 - XXX, 32)
  271. If CheckBox15.Checked = False And Val(Strings.Left(班別_cb15.Text, 2)) < 17 Then : A_pb30.Visible = True : ComboBox30.Visible = True
  272. ElseIf CheckBox15.Checked = False And Val(Strings.Left(班別_cb15.Text, 2)) >= 17 Then : A_pb30.Visible = False : ComboBox30.Visible = False
  273. ElseIf CheckBox15.Checked = True Then : A_pb30.Visible = False : ComboBox30.Visible = False
  274. End If
  275. End If
  276. End Sub
  277. Private Sub 進度條變化16()
  278. If 姓名_tb16.Text <> "" Or 班別_cb16.Text <> "休" Then
  279. Do2 = NumericUpDown16.Value : 班條長度()
  280. A_pb31.Size = New Size(297 + XXX, 27) : A_pb32.Size = New Size(297 - XXX, 27)
  281. ComboBox31.Size = New Size(297 + XXX, 32) : ComboBox32.Size = New Size(297 - XXX, 32)
  282. If CheckBox16.Checked = False And Val(Strings.Left(班別_cb16.Text, 2)) < 17 Then : A_pb32.Visible = True : ComboBox32.Visible = True
  283. ElseIf CheckBox16.Checked = False And Val(Strings.Left(班別_cb16.Text, 2)) >= 17 Then : A_pb32.Visible = False : ComboBox32.Visible = False
  284. ElseIf CheckBox16.Checked = True Then : A_pb32.Visible = False : ComboBox32.Visible = False
  285. End If
  286. End If
  287. End Sub
  288. Private Sub 進度條變化17()
  289. If 姓名_tb17.Text <> "" Or 班別_cb17.Text <> "休" Then
  290. Do2 = NumericUpDown17.Value : 班條長度()
  291. A_pb33.Size = New Size(297 + XXX, 27) : A_pb34.Size = New Size(297 - XXX, 27)
  292. ComboBox33.Size = New Size(297 + XXX, 32) : ComboBox34.Size = New Size(297 - XXX, 32)
  293. If CheckBox17.Checked = False And Val(Strings.Left(班別_cb17.Text, 2)) < 17 Then : A_pb34.Visible = True : ComboBox34.Visible = True
  294. ElseIf CheckBox17.Checked = False And Val(Strings.Left(班別_cb17.Text, 2)) >= 17 Then : A_pb34.Visible = False : ComboBox34.Visible = False
  295. ElseIf CheckBox17.Checked = True Then : A_pb34.Visible = False : ComboBox34.Visible = False
  296. End If
  297. End If
  298. End Sub
  299. Private Sub 進度條變化18()
  300. If 姓名_tb18.Text <> "" Or 班別_cb18.Text <> "休" Then
  301. Do2 = NumericUpDown18.Value : 班條長度()
  302. A_pb35.Size = New Size(297 + XXX, 27) : A_pb36.Size = New Size(297 - XXX, 27)
  303. ComboBox35.Size = New Size(297 + XXX, 32) : ComboBox36.Size = New Size(297 - XXX, 32)
  304. If CheckBox18.Checked = False And Val(Strings.Left(班別_cb18.Text, 2)) < 17 Then : A_pb36.Visible = True : ComboBox36.Visible = True
  305. ElseIf CheckBox18.Checked = False And Val(Strings.Left(班別_cb18.Text, 2)) >= 17 Then : A_pb36.Visible = False : ComboBox36.Visible = False
  306. ElseIf CheckBox18.Checked = True Then : A_pb36.Visible = False : ComboBox36.Visible = False
  307. End If
  308. End If
  309. End Sub
  310. Private Sub 進度條變化19()
  311. If 姓名_tb19.Text <> "" Or 班別_cb19.Text <> "休" Then
  312. Do2 = NumericUpDown19.Value : 班條長度()
  313. A_pb37.Size = New Size(297 + XXX, 27) : A_pb38.Size = New Size(297 - XXX, 27)
  314. ComboBox37.Size = New Size(297 + XXX, 32) : ComboBox38.Size = New Size(297 - XXX, 32)
  315. If CheckBox19.Checked = False And Val(Strings.Left(班別_cb19.Text, 2)) < 17 Then : A_pb38.Visible = True : ComboBox38.Visible = True
  316. ElseIf CheckBox19.Checked = False And Val(Strings.Left(班別_cb19.Text, 2)) >= 17 Then : A_pb38.Visible = False : ComboBox38.Visible = False
  317. ElseIf CheckBox19.Checked = True Then : A_pb38.Visible = False : ComboBox38.Visible = False
  318. End If
  319. End If
  320. End Sub
  321. Private Sub 進度條變化20()
  322. If 姓名_tb20.Text <> "" Or 班別_cb20.Text <> "休" Then
  323. Do2 = NumericUpDown20.Value : 班條長度()
  324. A_pb39.Size = New Size(297 + XXX, 27) : A_pb40.Size = New Size(297 - XXX, 27)
  325. ComboBox39.Size = New Size(297 + XXX, 32) : ComboBox40.Size = New Size(297 - XXX, 32)
  326. If CheckBox20.Checked = False And Val(Strings.Left(班別_cb20.Text, 2)) < 17 Then : A_pb40.Visible = True : ComboBox40.Visible = True
  327. ElseIf CheckBox20.Checked = False And Val(Strings.Left(班別_cb20.Text, 2)) >= 17 Then : A_pb40.Visible = False : ComboBox40.Visible = False
  328. ElseIf CheckBox20.Checked = True Then : A_pb40.Visible = False : ComboBox40.Visible = False
  329. End If
  330. End If
  331. End Sub
  332. Private Sub 休息變化1()
  333. XX = Val(Strings.Left(班別_cb1.Text, 2)) * 60 + Val(Strings.Mid(班別_cb1.Text, 4, 2)) : 班別圖示計算載入()
  334. X1 = NUP1.Value : 休息長度() : Do2 = NumericUpDown1.Value : 班條長度()
  335. A_pb1.Location = New Point(615 + XX, 136) : A_pb2.Location = New Point(990 + XX + X1 + XXX, 136)
  336. ComboBox1.Location = New Point(615 + XX, 136) : ComboBox2.Location = New Point(990 + XX + X1 + XXX, 136)
  337. 進度條變化1()
  338. End Sub
  339. Private Sub 休息變化2()
  340. XX = Val(Strings.Left(班別_cb2.Text, 2)) * 60 + Val(Strings.Mid(班別_cb2.Text, 4, 2)) : 班別圖示計算載入()
  341. X1 = NUP2.Value : 休息長度() : Do2 = NumericUpDown2.Value : 班條長度()
  342. A_pb3.Location = New Point(615 + XX, 172) : A_pb4.Location = New Point(990 + XX + X1 + XXX, 172)
  343. ComboBox3.Location = New Point(615 + XX, 172) : ComboBox4.Location = New Point(990 + XX + X1 + XXX, 172)
  344. 進度條變化2()
  345. End Sub
  346. Private Sub 休息變化3()
  347. XX = Val(Strings.Left(班別_cb3.Text, 2)) * 60 + Val(Strings.Mid(班別_cb3.Text, 4, 2)) : 班別圖示計算載入()
  348. X1 = NUP3.Value : 休息長度() : Do2 = NumericUpDown3.Value : 班條長度()
  349. A_pb5.Location = New Point(615 + XX, 208) : A_pb6.Location = New Point(990 + XX + X1 + XXX, 208)
  350. ComboBox5.Location = New Point(615 + XX, 208) : ComboBox6.Location = New Point(990 + XX + X1 + XXX, 208)
  351. 進度條變化3()
  352. End Sub
  353. Private Sub 休息變化4()
  354. XX = Val(Strings.Left(班別_cb4.Text, 2)) * 60 + Val(Strings.Mid(班別_cb4.Text, 4, 2)) : 班別圖示計算載入()
  355. X1 = NUP4.Value : 休息長度() : Do2 = NumericUpDown4.Value : 班條長度()
  356. A_pb7.Location = New Point(615 + XX, 244) : A_pb8.Location = New Point(990 + XX + X1 + XXX, 244)
  357. ComboBox7.Location = New Point(615 + XX, 244) : ComboBox8.Location = New Point(990 + XX + X1 + XXX, 244)
  358. 進度條變化4()
  359. End Sub
  360. Private Sub 休息變化5()
  361. XX = Val(Strings.Left(班別_cb5.Text, 2)) * 60 + Val(Strings.Mid(班別_cb5.Text, 4, 2)) : 班別圖示計算載入()
  362. X1 = NUP5.Value : 休息長度() : Do2 = NumericUpDown5.Value : 班條長度()
  363. A_pb9.Location = New Point(615 + XX, 280) : A_pb10.Location = New Point(990 + XX + X1 + XXX, 280)
  364. ComboBox9.Location = New Point(615 + XX, 280) : ComboBox10.Location = New Point(990 + XX + X1 + XXX, 280)
  365. 進度條變化5()
  366. End Sub
  367. Private Sub 休息變化6()
  368. XX = Val(Strings.Left(班別_cb6.Text, 2)) * 60 + Val(Strings.Mid(班別_cb6.Text, 4, 2)) : 班別圖示計算載入()
  369. X1 = NUP6.Value : 休息長度() : Do2 = NumericUpDown6.Value : 班條長度()
  370. A_pb11.Location = New Point(615 + XX, 316) : A_pb12.Location = New Point(990 + XX + X1 + XXX, 316)
  371. ComboBox11.Location = New Point(615 + XX, 316) : ComboBox12.Location = New Point(990 + XX + X1 + XXX, 316)
  372. 進度條變化6()
  373. End Sub
  374. Private Sub 休息變化7()
  375. XX = Val(Strings.Left(班別_cb7.Text, 2)) * 60 + Val(Strings.Mid(班別_cb7.Text, 4, 2)) : 班別圖示計算載入()
  376. X1 = NUP7.Value : 休息長度() : Do2 = NumericUpDown7.Value : 班條長度()
  377. A_pb13.Location = New Point(615 + XX, 352) : A_pb14.Location = New Point(990 + XX + X1 + XXX, 352)
  378. ComboBox13.Location = New Point(615 + XX, 352) : ComboBox14.Location = New Point(990 + XX + X1 + XXX, 352)
  379. 進度條變化7()
  380. End Sub
  381. Private Sub 休息變化8()
  382. XX = Val(Strings.Left(班別_cb8.Text, 2)) * 60 + Val(Strings.Mid(班別_cb8.Text, 4, 2)) : 班別圖示計算載入()
  383. X1 = NUP8.Value : 休息長度() : Do2 = NumericUpDown8.Value : 班條長度()
  384. A_pb15.Location = New Point(615 + XX, 388) : A_pb16.Location = New Point(990 + XX + X1 + XXX, 388)
  385. ComboBox15.Location = New Point(615 + XX, 388) : ComboBox16.Location = New Point(990 + XX + X1 + XXX, 388)
  386. 進度條變化8()
  387. End Sub
  388. Private Sub 休息變化9()
  389. XX = Val(Strings.Left(班別_cb9.Text, 2)) * 60 + Val(Strings.Mid(班別_cb9.Text, 4, 2)) : 班別圖示計算載入()
  390. X1 = NUP9.Value : 休息長度() : Do2 = NumericUpDown9.Value : 班條長度()
  391. A_pb17.Location = New Point(615 + XX, 424) : A_pb18.Location = New Point(990 + XX + X1 + XXX, 424)
  392. ComboBox17.Location = New Point(615 + XX, 424) : ComboBox18.Location = New Point(990 + XX + X1 + XXX, 424)
  393. 進度條變化9()
  394. End Sub
  395. Private Sub 休息變化10()
  396. XX = Val(Strings.Left(班別_cb10.Text, 2)) * 60 + Val(Strings.Mid(班別_cb10.Text, 4, 2)) : 班別圖示計算載入()
  397. X1 = NUP10.Value : 休息長度() : Do2 = NumericUpDown10.Value : 班條長度()
  398. A_pb19.Location = New Point(615 + XX, 460) : A_pb20.Location = New Point(990 + XX + X1 + XXX, 460)
  399. ComboBox19.Location = New Point(615 + XX, 460) : ComboBox20.Location = New Point(990 + XX + X1 + XXX, 460)
  400. 進度條變化10()
  401. End Sub
  402. Private Sub 休息變化11()
  403. XX = Val(Strings.Left(班別_cb11.Text, 2)) * 60 + Val(Strings.Mid(班別_cb11.Text, 4, 2)) : 班別圖示計算載入()
  404. X1 = NUP11.Value : 休息長度() : Do2 = NumericUpDown11.Value : 班條長度()
  405. A_pb21.Location = New Point(615 + XX, 496) : A_pb22.Location = New Point(990 + XX + X1 + XXX, 496)
  406. ComboBox21.Location = New Point(615 + XX, 496) : ComboBox22.Location = New Point(990 + XX + X1 + XXX, 496)
  407. 進度條變化11()
  408. End Sub
  409. Private Sub 休息變化12()
  410. XX = Val(Strings.Left(班別_cb12.Text, 2)) * 60 + Val(Strings.Mid(班別_cb12.Text, 4, 2)) : 班別圖示計算載入()
  411. X1 = NUP12.Value : 休息長度() : Do2 = NumericUpDown12.Value : 班條長度()
  412. A_pb23.Location = New Point(615 + XX, 532) : A_pb24.Location = New Point(990 + XX + X1 + XXX, 532)
  413. ComboBox23.Location = New Point(615 + XX, 532) : ComboBox24.Location = New Point(990 + XX + X1 + XXX, 532)
  414. 進度條變化12()
  415. End Sub
  416. Private Sub 休息變化13()
  417. XX = Val(Strings.Left(班別_cb13.Text, 2)) * 60 + Val(Strings.Mid(班別_cb13.Text, 4, 2)) : 班別圖示計算載入()
  418. X1 = NUP13.Value : 休息長度() : Do2 = NumericUpDown13.Value : 班條長度()
  419. A_pb25.Location = New Point(615 + XX, 568) : A_pb26.Location = New Point(990 + XX + X1 + XXX, 568)
  420. ComboBox25.Location = New Point(615 + XX, 568) : ComboBox26.Location = New Point(990 + XX + X1 + XXX, 568)
  421. 進度條變化13()
  422. End Sub
  423. Private Sub 休息變化14()
  424. XX = Val(Strings.Left(班別_cb14.Text, 2)) * 60 + Val(Strings.Mid(班別_cb14.Text, 4, 2)) : 班別圖示計算載入()
  425. X1 = NUP14.Value : 休息長度() : Do2 = NumericUpDown14.Value : 班條長度()
  426. A_pb27.Location = New Point(615 + XX, 604) : A_pb28.Location = New Point(990 + XX + X1 + XXX, 604)
  427. ComboBox27.Location = New Point(615 + XX, 604) : ComboBox28.Location = New Point(990 + XX + X1 + XXX, 604)
  428. 進度條變化14()
  429. End Sub
  430. Private Sub 休息變化15()
  431. XX = Val(Strings.Left(班別_cb15.Text, 2)) * 60 + Val(Strings.Mid(班別_cb15.Text, 4, 2)) : 班別圖示計算載入()
  432. X1 = NUP15.Value : 休息長度() : Do2 = NumericUpDown15.Value : 班條長度()
  433. A_pb29.Location = New Point(615 + XX, 640) : A_pb30.Location = New Point(990 + XX + X1 + XXX, 640)
  434. ComboBox29.Location = New Point(615 + XX, 640) : ComboBox30.Location = New Point(990 + XX + X1 + XXX, 640)
  435. 進度條變化15()
  436. End Sub
  437. Private Sub 休息變化16()
  438. XX = Val(Strings.Left(班別_cb16.Text, 2)) * 60 + Val(Strings.Mid(班別_cb16.Text, 4, 2)) : 班別圖示計算載入()
  439. X1 = NUP16.Value : 休息長度() : Do2 = NumericUpDown16.Value : 班條長度()
  440. A_pb31.Location = New Point(615 + XX, 676) : A_pb32.Location = New Point(990 + XX + X1 + XXX, 676)
  441. ComboBox31.Location = New Point(615 + XX, 676) : ComboBox32.Location = New Point(990 + XX + X1 + XXX, 676)
  442. 進度條變化16()
  443. End Sub
  444. Private Sub 休息變化17()
  445. XX = Val(Strings.Left(班別_cb17.Text, 2)) * 60 + Val(Strings.Mid(班別_cb17.Text, 4, 2)) : 班別圖示計算載入()
  446. X1 = NUP17.Value : 休息長度() : Do2 = NumericUpDown17.Value : 班條長度()
  447. A_pb33.Location = New Point(615 + XX, 712) : A_pb34.Location = New Point(990 + XX + X1 + XXX, 712)
  448. ComboBox33.Location = New Point(615 + XX, 712) : ComboBox34.Location = New Point(990 + XX + X1 + XXX, 712)
  449. 進度條變化17()
  450. End Sub
  451. Private Sub 休息變化18()
  452. XX = Val(Strings.Left(班別_cb18.Text, 2)) * 60 + Val(Strings.Mid(班別_cb18.Text, 4, 2)) : 班別圖示計算載入()
  453. X1 = NUP18.Value : 休息長度() : Do2 = NumericUpDown18.Value : 班條長度()
  454. A_pb35.Location = New Point(615 + XX, 748) : A_pb36.Location = New Point(990 + XX + X1 + XXX, 748)
  455. ComboBox35.Location = New Point(615 + XX, 748) : ComboBox36.Location = New Point(990 + XX + X1 + XXX, 748)
  456. 進度條變化18()
  457. End Sub
  458. Private Sub 休息變化19()
  459. XX = Val(Strings.Left(班別_cb19.Text, 2)) * 60 + Val(Strings.Mid(班別_cb19.Text, 4, 2)) : 班別圖示計算載入()
  460. X1 = NUP19.Value : 休息長度() : Do2 = NumericUpDown19.Value : 班條長度()
  461. A_pb37.Location = New Point(615 + XX, 784) : A_pb38.Location = New Point(990 + XX + X1 + XXX, 784)
  462. ComboBox37.Location = New Point(615 + XX, 784) : ComboBox38.Location = New Point(990 + XX + X1 + XXX, 784)
  463. 進度條變化19()
  464. End Sub
  465. Private Sub 休息變化20()
  466. XX = Val(Strings.Left(班別_cb20.Text, 2)) * 60 + Val(Strings.Mid(班別_cb20.Text, 4, 2)) : 班別圖示計算載入()
  467. X1 = NUP20.Value : 休息長度() : Do2 = NumericUpDown20.Value : 班條長度()
  468. A_pb39.Location = New Point(615 + XX, 820) : A_pb40.Location = New Point(990 + XX + X1 + XXX, 820)
  469. ComboBox39.Location = New Point(615 + XX, 820) : ComboBox40.Location = New Point(990 + XX + X1 + XXX, 820)
  470. 進度條變化20()
  471. End Sub
  472. Private Sub 回復預設()
  473. For no As Integer = 1 To 20
  474. Dim NUPS As NumericUpDown = CType(Me.Controls.Find("NUP" + no.ToString(), True)(0), NumericUpDown) : NUPS.Value = 1
  475. Next
  476. XX = 0 : Q = 0
  477. For no As Integer = 1 To 20
  478. Dim 姓名_tbS As TextBox = CType(Me.Controls.Find("姓名_tb" + no.ToString(), True)(0), TextBox)
  479. Dim 班別_cbS As ComboBox = CType(Me.Controls.Find("班別_cb" + no.ToString(), True)(0), ComboBox)
  480. Dim ComboBoxsS1 As ComboBox = CType(Me.Controls.Find("ComboBox" + (no + 40 + Q).ToString(), True)(0), ComboBox)
  481. Dim ComboBoxsS2 As ComboBox = CType(Me.Controls.Find("ComboBox" + (no + 40 + 1 + Q).ToString(), True)(0), ComboBox)
  482. Dim ComboBoxs1 As ComboBox = CType(Me.Controls.Find("ComboBox" + (no + Q).ToString(), True)(0), ComboBox)
  483. Dim ComboBoxs2 As ComboBox = CType(Me.Controls.Find("ComboBox" + (no + 1 + Q).ToString(), True)(0), ComboBox)
  484. Dim A_pbS1 As ProgressBar = CType(Me.Controls.Find("A_pb" + (no + Q).ToString(), True)(0), ProgressBar)
  485. Dim A_pbS2 As ProgressBar = CType(Me.Controls.Find("A_pb" + (no + 1 + Q).ToString(), True)(0), ProgressBar) : Q += 1
  486. 姓名_tbS.Text = "" : 班別_cbS.Text = "休" : ComboBoxsS1.SelectedIndex = 0 : ComboBoxsS2.SelectedIndex = 0
  487. If 姓名_tbS.Text = "" Then
  488. A_pbS1.Visible = False : A_pbS2.Visible = False : ComboBoxs1.Visible = False : ComboBoxs2.Visible = False
  489. Else
  490. A_pbS1.Visible = True : A_pbS2.Visible = True : ComboBoxs1.Visible = True : ComboBoxs2.Visible = True
  491. End If
  492. Next
  493. A_pb1.Location = New Point(615 + XX, 136) : A_pb2.Location = New Point(990 + XX, 136)
  494. ComboBox1.Location = New Point(615 + XX, 136) : ComboBox2.Location = New Point(990 + XX, 136)
  495. A_pb3.Location = New Point(615 + XX, 172) : A_pb4.Location = New Point(990 + XX, 172)
  496. ComboBox3.Location = New Point(615 + XX, 172) : ComboBox4.Location = New Point(990 + XX, 172)
  497. A_pb5.Location = New Point(615 + XX, 208) : A_pb6.Location = New Point(990 + XX, 208)
  498. ComboBox5.Location = New Point(615 + XX, 208) : ComboBox6.Location = New Point(990 + XX, 208)
  499. A_pb7.Location = New Point(615 + XX, 244) : A_pb8.Location = New Point(990 + XX, 244)
  500. ComboBox7.Location = New Point(615 + XX, 244) : ComboBox8.Location = New Point(990 + XX, 244)
  501. A_pb9.Location = New Point(615 + XX, 280) : A_pb10.Location = New Point(990 + XX, 280)
  502. ComboBox9.Location = New Point(615 + XX, 280) : ComboBox10.Location = New Point(990 + XX, 280)
  503. A_pb11.Location = New Point(615 + XX, 316) : A_pb12.Location = New Point(990 + XX, 316)
  504. ComboBox11.Location = New Point(615 + XX, 316) : ComboBox12.Location = New Point(990 + XX, 316)
  505. A_pb13.Location = New Point(615 + XX, 352) : A_pb14.Location = New Point(990 + XX, 352)
  506. ComboBox13.Location = New Point(615 + XX, 352) : ComboBox14.Location = New Point(990 + XX, 352)
  507. A_pb15.Location = New Point(615 + XX, 388) : A_pb16.Location = New Point(990 + XX, 388)
  508. ComboBox15.Location = New Point(615 + XX, 388) : ComboBox16.Location = New Point(990 + XX, 388)
  509. A_pb17.Location = New Point(615 + XX, 424) : A_pb18.Location = New Point(990 + XX, 424)
  510. ComboBox17.Location = New Point(615 + XX, 424) : ComboBox18.Location = New Point(990 + XX, 424)
  511. A_pb19.Location = New Point(615 + XX, 460) : A_pb20.Location = New Point(990 + XX, 460)
  512. ComboBox19.Location = New Point(615 + XX, 460) : ComboBox20.Location = New Point(990 + XX, 460)
  513. A_pb21.Location = New Point(615 + XX, 496) : A_pb22.Location = New Point(990 + XX, 496)
  514. ComboBox21.Location = New Point(615 + XX, 496) : ComboBox22.Location = New Point(990 + XX, 496)
  515. A_pb23.Location = New Point(615 + XX, 532) : A_pb24.Location = New Point(990 + XX, 532)
  516. ComboBox23.Location = New Point(615 + XX, 532) : ComboBox24.Location = New Point(990 + XX, 532)
  517. A_pb25.Location = New Point(615 + XX, 568) : A_pb26.Location = New Point(990 + XX, 568)
  518. ComboBox25.Location = New Point(615 + XX, 568) : ComboBox26.Location = New Point(990 + XX, 568)
  519. A_pb27.Location = New Point(615 + XX, 604) : A_pb28.Location = New Point(990 + XX, 604)
  520. ComboBox27.Location = New Point(615 + XX, 604) : ComboBox28.Location = New Point(990 + XX, 604)
  521. A_pb29.Location = New Point(615 + XX, 640) : A_pb30.Location = New Point(990 + XX, 640)
  522. ComboBox29.Location = New Point(615 + XX, 640) : ComboBox30.Location = New Point(990 + XX, 640)
  523. A_pb31.Location = New Point(615 + XX, 676) : A_pb32.Location = New Point(990 + XX, 676)
  524. ComboBox31.Location = New Point(615 + XX, 676) : ComboBox32.Location = New Point(990 + XX, 676)
  525. A_pb33.Location = New Point(615 + XX, 712) : A_pb34.Location = New Point(990 + XX, 712)
  526. ComboBox33.Location = New Point(615 + XX, 712) : ComboBox34.Location = New Point(990 + 712)
  527. A_pb35.Location = New Point(615 + XX, 748) : A_pb36.Location = New Point(990 + XX, 748)
  528. ComboBox35.Location = New Point(615 + XX, 748) : ComboBox36.Location = New Point(990 + XX, 748)
  529. A_pb37.Location = New Point(615 + XX, 784) : A_pb38.Location = New Point(990 + XX, 784)
  530. ComboBox37.Location = New Point(615 + XX, 784) : ComboBox38.Location = New Point(990 + XX, 784)
  531. A_pb39.Location = New Point(615 + XX, 820) : A_pb40.Location = New Point(990 + XX, 820)
  532. ComboBox39.Location = New Point(615 + XX, 820) : ComboBox40.Location = New Point(990 + XX, 820)
  533. End Sub
  534. Private Sub 重新讀取()
  535. SQL_排班簽核讀取()
  536. If dr.Read Then
  537. 值日生1_bt.Text = dr("值日生1").ToString : 值日生2_bt.Text = dr("值日生2").ToString
  538. If dr("班表簽認") = "Y" Then
  539. 簽核_bt.Enabled = False
  540. Else
  541. 簽核_bt.Enabled = True
  542. End If : Else
  543. 簽核_bt.Enabled = True
  544. End If
  545. 班表鎖定變化()
  546. SQL_排班系統_星期() : If dr.Read Then : 星期_lb.Text = dr("星期") : End If : PA6 = 星期_lb.Text
  547. SQL_門診_健保() : If dr.Read Then : B1_lb.Text = dr("早") : B2_lb.Text = dr("中") : B3_lb.Text = dr("晚") : End If
  548. SQL_門診_美容() : If dr.Read Then : B4_lb.Text = dr("早") : B5_lb.Text = dr("中") : B6_lb.Text = dr("晚") : End If
  549. 讀取排班資料表()
  550. If 排班明細_dgv.Rows.Count > 0 Then
  551. Q = 0
  552. For no As Integer = 1 To 20
  553. Dim 姓名_tbS As TextBox = CType(Me.Controls.Find("姓名_tb" + no.ToString(), True)(0), TextBox)
  554. Dim 班別_cbS As ComboBox = CType(Me.Controls.Find("班別_cb" + no.ToString(), True)(0), ComboBox)
  555. Dim A_lbS As Label = CType(Me.Controls.Find("A_lb" + no.ToString(), True)(0), Label)
  556. Dim CheckBoxS As CheckBox = CType(Me.Controls.Find("CheckBox" + no.ToString(), True)(0), CheckBox)
  557. Dim NumericUpDownS As NumericUpDown = CType(Me.Controls.Find("NumericUpDown" + no.ToString(), True)(0), NumericUpDown)
  558. Dim NUPS As NumericUpDown = CType(Me.Controls.Find("NUP" + no.ToString(), True)(0), NumericUpDown)
  559. Dim ComboBoxsS1 As ComboBox = CType(Me.Controls.Find("ComboBox" + (no + 40 + Q).ToString(), True)(0), ComboBox)
  560. Dim ComboBoxsS2 As ComboBox = CType(Me.Controls.Find("ComboBox" + (no + 40 + 1 + Q).ToString(), True)(0), ComboBox)
  561. Dim ComboBoxs1 As ComboBox = CType(Me.Controls.Find("ComboBox" + (no + Q).ToString(), True)(0), ComboBox)
  562. Dim ComboBoxs2 As ComboBox = CType(Me.Controls.Find("ComboBox" + (no + 1 + Q).ToString(), True)(0), ComboBox) : Q += 1
  563. ComboBoxs1.Text = 排班明細_dgv.Rows(no - 1).Cells("一段").Value
  564. ComboBoxs2.Text = 排班明細_dgv.Rows(no - 1).Cells("二段").Value
  565. ComboBoxsS1.Text = 排班明細_dgv.Rows(no - 1).Cells("顏色1").Value
  566. ComboBoxsS2.Text = 排班明細_dgv.Rows(no - 1).Cells("顏色2").Value
  567. NUPS.Value = 排班明細_dgv.Rows(no - 1).Cells("休息").Value
  568. NumericUpDownS.Value = 排班明細_dgv.Rows(no - 1).Cells("時數").Value
  569. CheckBoxS.Checked = 排班明細_dgv.Rows(no - 1).Cells("半天").Value
  570. 班別_cbS.Text = 排班明細_dgv.Rows(no - 1).Cells("班別").Value.ToString
  571. 姓名_tbS.Text = 排班明細_dgv.Rows(no - 1).Cells("姓名").Value.ToString
  572. Next
  573. End If
  574. End Sub
  575. Private Sub 排班明細_參考_Load(sender As Object, e As EventArgs) Handles MyBase.Load
  576. If BB(17) = False Then
  577. 存檔_bt.Enabled = False : 複製班表_bt.Enabled = False : 人員_dgv.Enabled = False : 全_ch.Enabled = False : 複製班表_bt.Enabled = False
  578. For no As Integer = 1 To 20
  579. Dim 姓名_tbS As TextBox = CType(Me.Controls.Find("姓名_tb" + no.ToString(), True)(0), TextBox)
  580. Dim 班別_cbS As ComboBox = CType(Me.Controls.Find("班別_cb" + no.ToString(), True)(0), ComboBox)
  581. Dim A_lbS As Label = CType(Me.Controls.Find("A_lb" + no.ToString(), True)(0), Label)
  582. Dim CheckBoxS As CheckBox = CType(Me.Controls.Find("CheckBox" + no.ToString(), True)(0), CheckBox)
  583. Dim NumericUpDownS As NumericUpDown = CType(Me.Controls.Find("NumericUpDown" + no.ToString(), True)(0), NumericUpDown)
  584. Dim NUPS As NumericUpDown = CType(Me.Controls.Find("NUP" + no.ToString(), True)(0), NumericUpDown)
  585. 姓名_tbS.Enabled = False : 班別_cbS.Enabled = False : CheckBoxS.Enabled = False : NumericUpDownS.Enabled = False : NUPS.Enabled = False
  586. Next
  587. Else
  588. 存檔_bt.Enabled = True : 複製班表_bt.Enabled = True : 人員_dgv.Enabled = True : 全_ch.Enabled = True : 複製班表_bt.Enabled = True
  589. For no As Integer = 1 To 20
  590. Dim 姓名_tbS As TextBox = CType(Me.Controls.Find("姓名_tb" + no.ToString(), True)(0), TextBox)
  591. Dim 班別_cbS As ComboBox = CType(Me.Controls.Find("班別_cb" + no.ToString(), True)(0), ComboBox)
  592. Dim A_lbS As Label = CType(Me.Controls.Find("A_lb" + no.ToString(), True)(0), Label)
  593. Dim CheckBoxS As CheckBox = CType(Me.Controls.Find("CheckBox" + no.ToString(), True)(0), CheckBox)
  594. Dim NumericUpDownS As NumericUpDown = CType(Me.Controls.Find("NumericUpDown" + no.ToString(), True)(0), NumericUpDown)
  595. Dim NUPS As NumericUpDown = CType(Me.Controls.Find("NUP" + no.ToString(), True)(0), NumericUpDown)
  596. 姓名_tbS.Enabled = True : 班別_cbS.Enabled = True : CheckBoxS.Enabled = True : NumericUpDownS.Enabled = True : NUPS.Enabled = True
  597. Next
  598. End If
  599. 年_lb.Text = PA : 月_lb.Text = PA1
  600. 班別_下拉表單資料載入() : 職務_下拉表單資料載入() : 讀取人員資料表()
  601. If Val(PA2) > 9 Then : 日_lb.Text = PA2 : Else : 日_lb.Text = "0" & PA2 : End If
  602. 回復預設()
  603. PA = 年_lb.Text & "/" & 月_lb.Text & "/" & 日_lb.Text
  604. 重新讀取()
  605. End Sub
  606. Private Sub 人員_dgv_CellContentClick(sender As Object, e As DataGridViewCellEventArgs) Handles 人員_dgv.CellClick
  607. If e.RowIndex = -1 Then : Else
  608. PA = 人員_dgv("編號", e.RowIndex).Value.ToString : PA1 = 人員_dgv("姓名", e.RowIndex).Value.ToString
  609. End If
  610. End Sub
  611. Private Sub 姓名1_tb_TextChanged(sender As Object, e As EventArgs) Handles 姓名_tb1.TextChanged
  612. If 姓名_tb1.Text = "" Or 班別_cb1.Text = "休" Then : A_pb1.Visible = False : A_pb2.Visible = False : ComboBox1.Visible = False : ComboBox2.Visible = False : Else
  613. A_pb1.Visible = True : A_pb2.Visible = True : ComboBox1.Visible = True : ComboBox2.Visible = True : XX = 0
  614. If 班別_cb1.Text = "" Or 班別_cb1.Text = "休" Then
  615. A_pb1.Location = New Point(615 + XX, 136) : A_pb2.Location = New Point(990 + XX, 136)
  616. ComboBox1.Location = New Point(615 + XX, 136) : ComboBox2.Location = New Point(990 + XX, 136)
  617. End If
  618. 休息變化1()
  619. End If
  620. End Sub
  621. Private Sub 姓名2_tb_TextChanged(sender As Object, e As EventArgs) Handles 姓名_tb2.TextChanged
  622. If 姓名_tb2.Text = "" Or 班別_cb2.Text = "休" Then : A_pb3.Visible = False : A_pb4.Visible = False : ComboBox3.Visible = False : ComboBox4.Visible = False : Else
  623. A_pb3.Visible = True : A_pb4.Visible = True : ComboBox3.Visible = True : ComboBox4.Visible = True : XX = 0
  624. If 班別_cb2.Text = "" Or 班別_cb2.Text = "休" Then
  625. A_pb3.Location = New Point(615 + XX, 172) : A_pb4.Location = New Point(990 + XX, 172)
  626. ComboBox3.Location = New Point(615 + XX, 172) : ComboBox4.Location = New Point(990 + XX, 172)
  627. End If
  628. 休息變化2()
  629. End If
  630. End Sub
  631. Private Sub 姓名3_tb_TextChanged(sender As Object, e As EventArgs) Handles 姓名_tb3.TextChanged
  632. If 姓名_tb3.Text = "" Or 班別_cb3.Text = "休" Then : A_pb5.Visible = False : A_pb6.Visible = False : ComboBox5.Visible = False : ComboBox6.Visible = False : Else
  633. A_pb5.Visible = True : A_pb6.Visible = True : ComboBox5.Visible = True : ComboBox6.Visible = True : XX = 0
  634. If 班別_cb3.Text = "" Or 班別_cb3.Text = "休" Then
  635. A_pb5.Location = New Point(615 + XX, 208) : A_pb6.Location = New Point(990 + XX, 208)
  636. ComboBox5.Location = New Point(615 + XX, 120 + 81) : ComboBox6.Location = New Point(990 + XX, 120 + 81)
  637. End If
  638. 休息變化3()
  639. End If
  640. End Sub
  641. Private Sub 姓名4_tb_TextChanged(sender As Object, e As EventArgs) Handles 姓名_tb4.TextChanged
  642. If 姓名_tb4.Text = "" Or 班別_cb4.Text = "休" Then : A_pb7.Visible = False : A_pb8.Visible = False : ComboBox7.Visible = False : ComboBox8.Visible = False : Else
  643. A_pb7.Visible = True : A_pb8.Visible = True : ComboBox7.Visible = True : ComboBox8.Visible = True : XX = 0
  644. If 班別_cb4.Text = "" Or 班別_cb4.Text = "休" Then
  645. A_pb7.Location = New Point(615 + XX, 244) : A_pb8.Location = New Point(990 + XX, 244)
  646. ComboBox7.Location = New Point(615 + XX, 244) : ComboBox8.Location = New Point(990 + XX, 244)
  647. End If
  648. 休息變化4()
  649. End If
  650. End Sub
  651. Private Sub 姓名5_tb_TextChanged(sender As Object, e As EventArgs) Handles 姓名_tb5.TextChanged
  652. If 姓名_tb5.Text = "" Or 班別_cb5.Text = "休" Then : A_pb9.Visible = False : A_pb10.Visible = False : ComboBox9.Visible = False : ComboBox10.Visible = False : Else
  653. A_pb9.Visible = True : A_pb10.Visible = True : ComboBox9.Visible = True : ComboBox10.Visible = True : XX = 0
  654. If 班別_cb5.Text = "" Or 班別_cb5.Text = "休" Then
  655. A_pb9.Location = New Point(615 + XX, 280) : A_pb10.Location = New Point(990 + XX, 280)
  656. ComboBox9.Location = New Point(615 + XX, 280) : ComboBox10.Location = New Point(990 + XX, 280)
  657. End If
  658. 休息變化5()
  659. End If
  660. End Sub
  661. Private Sub 姓名6_tb_TextChanged(sender As Object, e As EventArgs) Handles 姓名_tb6.TextChanged
  662. If 姓名_tb6.Text = "" Or 班別_cb6.Text = "休" Then : A_pb11.Visible = False : A_pb12.Visible = False : ComboBox11.Visible = False : ComboBox12.Visible = False : Else
  663. A_pb11.Visible = True : A_pb12.Visible = True : ComboBox11.Visible = True : ComboBox12.Visible = True : XX = 0
  664. If 班別_cb6.Text = "" Or 班別_cb6.Text = "休" Then
  665. A_pb11.Location = New Point(615 + XX, 316) : A_pb12.Location = New Point(990 + XX, 316)
  666. ComboBox11.Location = New Point(615 + XX, 316) : ComboBox12.Location = New Point(990 + XX, 316)
  667. End If
  668. 休息變化6()
  669. End If
  670. End Sub
  671. Private Sub 姓名7_tb_TextChanged(sender As Object, e As EventArgs) Handles 姓名_tb7.TextChanged
  672. If 姓名_tb7.Text = "" Or 班別_cb7.Text = "休" Then : A_pb13.Visible = False : A_pb14.Visible = False : ComboBox13.Visible = False : ComboBox14.Visible = False : Else
  673. A_pb13.Visible = True : A_pb14.Visible = True : ComboBox13.Visible = True : ComboBox14.Visible = True : XX = 0
  674. If 班別_cb7.Text = "" Or 班別_cb7.Text = "休" Then
  675. A_pb13.Location = New Point(615 + XX, 352) : A_pb14.Location = New Point(990 + XX, 352)
  676. ComboBox13.Location = New Point(615 + XX, 352) : ComboBox14.Location = New Point(990 + XX, 352)
  677. End If
  678. 休息變化7()
  679. End If
  680. End Sub
  681. Private Sub 姓名8_tb_TextChanged(sender As Object, e As EventArgs) Handles 姓名_tb8.TextChanged
  682. If 姓名_tb8.Text = "" Or 班別_cb8.Text = "休" Then : A_pb15.Visible = False : A_pb16.Visible = False : ComboBox15.Visible = False : ComboBox16.Visible = False : Else
  683. A_pb15.Visible = True : A_pb16.Visible = True : ComboBox15.Visible = True : ComboBox16.Visible = True : XX = 0
  684. If 班別_cb8.Text = "" Or 班別_cb8.Text = "休" Then
  685. A_pb15.Location = New Point(615 + XX, 388) : A_pb16.Location = New Point(990 + XX, 388)
  686. ComboBox15.Location = New Point(615 + XX, 388) : ComboBox16.Location = New Point(990 + XX, 388)
  687. End If
  688. 休息變化8()
  689. End If
  690. End Sub
  691. Private Sub 姓名9_tb_TextChanged(sender As Object, e As EventArgs) Handles 姓名_tb9.TextChanged
  692. If 姓名_tb9.Text = "" Or 班別_cb9.Text = "休" Then : A_pb17.Visible = False : A_pb18.Visible = False : ComboBox17.Visible = False : ComboBox18.Visible = False : Else
  693. A_pb17.Visible = True : A_pb18.Visible = True : ComboBox17.Visible = True : ComboBox18.Visible = True : XX = 0
  694. If 班別_cb9.Text = "" Or 班別_cb9.Text = "休" Then
  695. A_pb17.Location = New Point(615 + XX, 424) : A_pb18.Location = New Point(990 + XX, 424)
  696. ComboBox17.Location = New Point(615 + XX, 424) : ComboBox18.Location = New Point(990 + XX, 424)
  697. End If
  698. 休息變化9()
  699. End If
  700. End Sub
  701. Private Sub 姓名10_tb_TextChanged(sender As Object, e As EventArgs) Handles 姓名_tb10.TextChanged
  702. If 姓名_tb10.Text = "" Or 班別_cb10.Text = "休" Then : A_pb19.Visible = False : A_pb20.Visible = False : ComboBox19.Visible = False : ComboBox20.Visible = False : Else
  703. A_pb19.Visible = True : A_pb20.Visible = True : ComboBox19.Visible = True : ComboBox20.Visible = True : XX = 0
  704. If 班別_cb10.Text = "" Or 班別_cb10.Text = "休" Then
  705. A_pb19.Location = New Point(615 + XX, 460) : A_pb20.Location = New Point(990 + XX, 460)
  706. ComboBox19.Location = New Point(615 + XX, 460) : ComboBox20.Location = New Point(990 + XX, 460)
  707. End If
  708. 休息變化10()
  709. End If
  710. End Sub
  711. Private Sub 姓名11_tb_TextChanged(sender As Object, e As EventArgs) Handles 姓名_tb11.TextChanged
  712. If 姓名_tb11.Text = "" Or 班別_cb11.Text = "休" Then : A_pb21.Visible = False : A_pb22.Visible = False : ComboBox21.Visible = False : ComboBox22.Visible = False : Else
  713. A_pb21.Visible = True : A_pb22.Visible = True : ComboBox21.Visible = True : ComboBox22.Visible = True : XX = 0
  714. If 班別_cb11.Text = "" Or 班別_cb11.Text = "休" Then
  715. A_pb21.Location = New Point(615 + XX, 496) : A_pb22.Location = New Point(990 + XX, 496)
  716. ComboBox21.Location = New Point(615 + XX, 496) : ComboBox22.Location = New Point(990 + XX, 496)
  717. End If
  718. 休息變化11()
  719. End If
  720. End Sub
  721. Private Sub 姓名12_tb_TextChanged(sender As Object, e As EventArgs) Handles 姓名_tb12.TextChanged
  722. If 姓名_tb12.Text = "" Or 班別_cb12.Text = "休" Then : A_pb23.Visible = False : A_pb24.Visible = False : ComboBox23.Visible = False : ComboBox24.Visible = False : Else
  723. A_pb23.Visible = True : A_pb24.Visible = True : ComboBox23.Visible = True : ComboBox24.Visible = True : XX = 0
  724. If 班別_cb12.Text = "" Or 班別_cb12.Text = "休" Then
  725. A_pb23.Location = New Point(615 + XX, 532) : A_pb24.Location = New Point(990 + XX, 532)
  726. ComboBox23.Location = New Point(615 + XX, 532) : ComboBox24.Location = New Point(990 + XX, 532)
  727. End If
  728. 休息變化12()
  729. End If
  730. End Sub
  731. Private Sub 姓名13_tb_TextChanged(sender As Object, e As EventArgs) Handles 姓名_tb13.TextChanged
  732. If 姓名_tb13.Text = "" Or 班別_cb13.Text = "休" Then : A_pb25.Visible = False : A_pb26.Visible = False : ComboBox25.Visible = False : ComboBox26.Visible = False : Else
  733. A_pb25.Visible = True : A_pb26.Visible = True : ComboBox25.Visible = True : ComboBox26.Visible = True : XX = 0
  734. If 班別_cb13.Text = "" Or 班別_cb13.Text = "休" Then
  735. A_pb25.Location = New Point(615 + XX, 568) : A_pb26.Location = New Point(990 + XX, 568)
  736. ComboBox25.Location = New Point(615 + XX, 568) : ComboBox26.Location = New Point(990 + XX, 568)
  737. End If
  738. 休息變化13()
  739. End If
  740. End Sub
  741. Private Sub 姓名14_tb_TextChanged(sender As Object, e As EventArgs) Handles 姓名_tb14.TextChanged
  742. If 姓名_tb14.Text = "" Or 班別_cb14.Text = "休" Then : A_pb27.Visible = False : A_pb28.Visible = False : ComboBox27.Visible = False : ComboBox28.Visible = False : Else
  743. A_pb27.Visible = True : A_pb28.Visible = True : ComboBox27.Visible = True : ComboBox28.Visible = True : XX = 0
  744. If 班別_cb14.Text = "" Or 班別_cb14.Text = "休" Then
  745. A_pb27.Location = New Point(615 + XX, 604) : A_pb28.Location = New Point(990 + XX, 604)
  746. ComboBox27.Location = New Point(615 + XX, 604) : ComboBox28.Location = New Point(990 + XX, 604)
  747. End If
  748. 休息變化14()
  749. End If
  750. End Sub
  751. Private Sub 姓名15_tb_TextChanged(sender As Object, e As EventArgs) Handles 姓名_tb15.TextChanged
  752. If 姓名_tb15.Text = "" Or 班別_cb15.Text = "休" Then : A_pb29.Visible = False : A_pb30.Visible = False : ComboBox29.Visible = False : ComboBox30.Visible = False : Else
  753. A_pb29.Visible = True : A_pb30.Visible = True : ComboBox29.Visible = True : ComboBox30.Visible = True : XX = 0
  754. If 班別_cb15.Text = "" Or 班別_cb15.Text = "休" Then
  755. A_pb29.Location = New Point(615 + XX, 640) : A_pb30.Location = New Point(990 + XX, 640)
  756. ComboBox29.Location = New Point(615 + XX, 640) : ComboBox30.Location = New Point(990 + XX, 640)
  757. End If
  758. 休息變化15()
  759. End If
  760. End Sub
  761. Private Sub 姓名16_tb_TextChanged(sender As Object, e As EventArgs) Handles 姓名_tb16.TextChanged
  762. If 姓名_tb16.Text = "" Or 班別_cb16.Text = "休" Then : A_pb31.Visible = False : A_pb32.Visible = False : ComboBox31.Visible = False : ComboBox32.Visible = False : Else
  763. A_pb31.Visible = True : A_pb32.Visible = True : ComboBox31.Visible = True : ComboBox32.Visible = True : XX = 0
  764. If 班別_cb16.Text = "" Or 班別_cb16.Text = "休" Then
  765. A_pb31.Location = New Point(615 + XX, 676) : A_pb32.Location = New Point(990 + XX, 676)
  766. ComboBox31.Location = New Point(615 + XX, 676) : ComboBox32.Location = New Point(990 + XX, 676)
  767. End If
  768. 休息變化16()
  769. End If
  770. End Sub
  771. Private Sub 姓名17_tb_TextChanged(sender As Object, e As EventArgs) Handles 姓名_tb17.TextChanged
  772. If 姓名_tb17.Text = "" Or 班別_cb17.Text = "休" Then : A_pb33.Visible = False : A_pb34.Visible = False : ComboBox33.Visible = False : ComboBox34.Visible = False : Else
  773. A_pb33.Visible = True : A_pb34.Visible = True : ComboBox33.Visible = True : ComboBox34.Visible = True : XX = 0
  774. If 班別_cb17.Text = "" Or 班別_cb17.Text = "休" Then
  775. A_pb33.Location = New Point(615 + XX, 712) : A_pb34.Location = New Point(990 + XX, 712)
  776. ComboBox33.Location = New Point(615 + XX, 712) : ComboBox34.Location = New Point(990 + XX, 712)
  777. End If
  778. 休息變化17()
  779. End If
  780. End Sub
  781. Private Sub 姓名18_tb_TextChanged(sender As Object, e As EventArgs) Handles 姓名_tb18.TextChanged
  782. If 姓名_tb18.Text = "" Or 班別_cb18.Text = "休" Then : A_pb35.Visible = False : A_pb36.Visible = False : ComboBox35.Visible = False : ComboBox36.Visible = False : Else
  783. A_pb35.Visible = True : A_pb36.Visible = True : ComboBox35.Visible = True : ComboBox36.Visible = True : XX = 0
  784. If 班別_cb18.Text = "" Or 班別_cb18.Text = "休" Then
  785. A_pb35.Location = New Point(615 + XX, 748) : A_pb36.Location = New Point(990 + XX, 748)
  786. ComboBox35.Location = New Point(615 + XX, 748) : ComboBox36.Location = New Point(990 + XX, 748)
  787. End If
  788. 休息變化18()
  789. End If
  790. End Sub
  791. Private Sub 姓名19_tb_TextChanged(sender As Object, e As EventArgs) Handles 姓名_tb19.TextChanged
  792. If 姓名_tb19.Text = "" Or 班別_cb19.Text = "休" Then : A_pb37.Visible = False : A_pb38.Visible = False : ComboBox37.Visible = False : ComboBox38.Visible = False : Else
  793. A_pb37.Visible = True : A_pb38.Visible = True : ComboBox37.Visible = True : ComboBox38.Visible = True : XX = 0
  794. If 班別_cb19.Text = "" Or 班別_cb19.Text = "休" Then
  795. A_pb37.Location = New Point(615 + XX, 784) : A_pb38.Location = New Point(990 + XX, 784)
  796. ComboBox37.Location = New Point(615 + XX, 784) : ComboBox38.Location = New Point(990 + XX, 784)
  797. End If
  798. 休息變化19()
  799. End If
  800. End Sub
  801. Private Sub 姓名20_tb_TextChanged(sender As Object, e As EventArgs) Handles 姓名_tb20.TextChanged
  802. If 姓名_tb20.Text = "" Or 班別_cb20.Text = "休" Then : A_pb39.Visible = False : A_pb40.Visible = False : ComboBox39.Visible = False : ComboBox40.Visible = False : Else
  803. A_pb39.Visible = True : A_pb40.Visible = True : ComboBox39.Visible = True : ComboBox40.Visible = True : XX = 0
  804. If 班別_cb20.Text = "" Or 班別_cb20.Text = "休" Then
  805. A_pb39.Location = New Point(615 + XX, 820) : A_pb40.Location = New Point(990 + XX, 820)
  806. ComboBox39.Location = New Point(615 + XX, 820) : ComboBox40.Location = New Point(990 + XX, 820)
  807. End If
  808. 休息變化20()
  809. End If
  810. End Sub
  811. Private Sub 班別01_cb_SelectedIndexChanged(sender As Object, e As EventArgs) Handles 班別_cb1.SelectedIndexChanged
  812. If 班別_cb1.Text <> "休" Then : 休息變化1() : A_pb1.Visible = True : A_pb2.Visible = True : ComboBox1.Visible = True : ComboBox2.Visible = True
  813. Else : A_pb1.Visible = False : A_pb2.Visible = False : ComboBox1.Visible = False : ComboBox2.Visible = False : End If
  814. End Sub
  815. Private Sub 班別02_cb_SelectedIndexChanged(sender As Object, e As EventArgs) Handles 班別_cb2.SelectedIndexChanged
  816. If 班別_cb2.Text <> "休" Then : 休息變化2() : A_pb3.Visible = True : A_pb4.Visible = True : ComboBox3.Visible = True : ComboBox4.Visible = True
  817. Else : A_pb3.Visible = False : A_pb4.Visible = False : ComboBox3.Visible = False : ComboBox4.Visible = False : End If
  818. End Sub
  819. Private Sub 班別03_cb_SelectedIndexChanged(sender As Object, e As EventArgs) Handles 班別_cb3.SelectedIndexChanged
  820. If 班別_cb3.Text <> "休" Then : 休息變化3() : A_pb5.Visible = True : A_pb6.Visible = True : ComboBox5.Visible = True : ComboBox6.Visible = True
  821. Else : A_pb5.Visible = False : A_pb6.Visible = False : ComboBox5.Visible = False : ComboBox6.Visible = False : End If
  822. End Sub
  823. Private Sub 班別04_cb_SelectedIndexChanged(sender As Object, e As EventArgs) Handles 班別_cb4.SelectedIndexChanged
  824. If 班別_cb4.Text <> "休" Then : 休息變化4() : A_pb7.Visible = True : A_pb8.Visible = True : ComboBox7.Visible = True : ComboBox8.Visible = True
  825. Else : A_pb7.Visible = False : A_pb8.Visible = False : ComboBox7.Visible = False : ComboBox8.Visible = False : End If
  826. End Sub
  827. Private Sub 班別05_cb_SelectedIndexChanged(sender As Object, e As EventArgs) Handles 班別_cb5.SelectedIndexChanged
  828. If 班別_cb5.Text <> "休" Then : 休息變化5() : A_pb9.Visible = True : A_pb10.Visible = True : ComboBox9.Visible = True : ComboBox10.Visible = True
  829. Else : A_pb9.Visible = False : A_pb10.Visible = False : ComboBox9.Visible = False : ComboBox10.Visible = False : End If
  830. End Sub
  831. Private Sub 班別06_cb_SelectedIndexChanged(sender As Object, e As EventArgs) Handles 班別_cb6.SelectedIndexChanged
  832. If 班別_cb6.Text <> "休" Then : 休息變化6() : A_pb11.Visible = True : A_pb12.Visible = True : ComboBox11.Visible = True : ComboBox12.Visible = True
  833. Else : A_pb11.Visible = False : A_pb12.Visible = False : ComboBox11.Visible = False : ComboBox12.Visible = False : End If
  834. End Sub
  835. Private Sub 班別07_cb_SelectedIndexChanged(sender As Object, e As EventArgs) Handles 班別_cb7.SelectedIndexChanged
  836. If 班別_cb7.Text <> "休" Then : 休息變化7() : A_pb13.Visible = True : A_pb14.Visible = True : ComboBox13.Visible = True : ComboBox14.Visible = True
  837. Else : A_pb13.Visible = False : A_pb14.Visible = False : ComboBox13.Visible = False : ComboBox14.Visible = False : End If
  838. End Sub
  839. Private Sub 班別08_cb_SelectedIndexChanged(sender As Object, e As EventArgs) Handles 班別_cb8.SelectedIndexChanged
  840. If 班別_cb8.Text <> "休" Then : 休息變化8() : A_pb15.Visible = True : A_pb16.Visible = True : ComboBox15.Visible = True : ComboBox16.Visible = True
  841. Else : A_pb15.Visible = False : A_pb16.Visible = False : ComboBox15.Visible = False : ComboBox16.Visible = False : End If
  842. End Sub
  843. Private Sub 班別09_cb_SelectedIndexChanged(sender As Object, e As EventArgs) Handles 班別_cb9.SelectedIndexChanged
  844. If 班別_cb9.Text <> "休" Then : 休息變化9() : A_pb17.Visible = True : A_pb18.Visible = True : ComboBox17.Visible = True : ComboBox18.Visible = True
  845. Else : A_pb17.Visible = False : A_pb18.Visible = False : ComboBox17.Visible = False : ComboBox18.Visible = False : End If
  846. End Sub
  847. Private Sub 班別10_cb_SelectedIndexChanged(sender As Object, e As EventArgs) Handles 班別_cb10.SelectedIndexChanged
  848. If 班別_cb10.Text <> "休" Then : 休息變化10() : A_pb19.Visible = True : A_pb20.Visible = True : ComboBox19.Visible = True : ComboBox20.Visible = True
  849. Else : A_pb19.Visible = False : A_pb20.Visible = False : ComboBox19.Visible = False : ComboBox20.Visible = False : End If
  850. End Sub
  851. Private Sub 班別11_cb_SelectedIndexChanged(sender As Object, e As EventArgs) Handles 班別_cb11.SelectedIndexChanged
  852. If 班別_cb11.Text <> "休" Then : 休息變化11() : A_pb21.Visible = True : A_pb22.Visible = True : ComboBox21.Visible = True : ComboBox22.Visible = True
  853. Else : A_pb21.Visible = False : A_pb22.Visible = False : ComboBox21.Visible = False : ComboBox22.Visible = False : End If
  854. End Sub
  855. Private Sub 班別12_cb_SelectedIndexChanged(sender As Object, e As EventArgs) Handles 班別_cb12.SelectedIndexChanged
  856. If 班別_cb12.Text <> "休" Then : 休息變化12() : A_pb23.Visible = True : A_pb24.Visible = True : ComboBox23.Visible = True : ComboBox24.Visible = True
  857. Else : A_pb23.Visible = False : A_pb24.Visible = False : ComboBox23.Visible = False : ComboBox24.Visible = False : End If
  858. End Sub
  859. Private Sub 班別13_cb_SelectedIndexChanged(sender As Object, e As EventArgs) Handles 班別_cb13.SelectedIndexChanged
  860. If 班別_cb13.Text <> "休" Then : 休息變化13() : A_pb25.Visible = True : A_pb26.Visible = True : ComboBox25.Visible = True : ComboBox26.Visible = True
  861. Else : A_pb25.Visible = False : A_pb26.Visible = False : ComboBox25.Visible = False : ComboBox26.Visible = False : End If
  862. End Sub
  863. Private Sub 班別14_cb_SelectedIndexChanged(sender As Object, e As EventArgs) Handles 班別_cb14.SelectedIndexChanged
  864. If 班別_cb14.Text <> "休" Then : 休息變化14() : A_pb27.Visible = True : A_pb28.Visible = True : ComboBox27.Visible = True : ComboBox28.Visible = True
  865. Else : A_pb27.Visible = False : A_pb28.Visible = False : ComboBox27.Visible = False : ComboBox28.Visible = False : End If
  866. End Sub
  867. Private Sub 班別15_cb_SelectedIndexChanged(sender As Object, e As EventArgs) Handles 班別_cb15.SelectedIndexChanged
  868. If 班別_cb15.Text <> "休" Then : 休息變化15() : A_pb29.Visible = True : A_pb30.Visible = True : ComboBox29.Visible = True : ComboBox30.Visible = True
  869. Else : A_pb29.Visible = False : A_pb30.Visible = False : ComboBox29.Visible = False : ComboBox30.Visible = False : End If
  870. End Sub
  871. Private Sub 班別16_cb_SelectedIndexChanged(sender As Object, e As EventArgs) Handles 班別_cb16.SelectedIndexChanged
  872. If 班別_cb16.Text <> "休" Then : 休息變化16() : A_pb31.Visible = True : A_pb32.Visible = True : ComboBox31.Visible = True : ComboBox32.Visible = True
  873. Else : A_pb31.Visible = False : A_pb32.Visible = False : ComboBox31.Visible = False : ComboBox32.Visible = False : End If
  874. End Sub
  875. Private Sub 班別17_cb_SelectedIndexChanged(sender As Object, e As EventArgs) Handles 班別_cb17.SelectedIndexChanged
  876. If 班別_cb17.Text <> "休" Then : 休息變化17() : A_pb33.Visible = True : A_pb34.Visible = True : ComboBox33.Visible = True : ComboBox34.Visible = True
  877. Else : A_pb33.Visible = False : A_pb34.Visible = False : ComboBox33.Visible = False : ComboBox34.Visible = False : End If
  878. End Sub
  879. Private Sub 班別18_cb_SelectedIndexChanged(sender As Object, e As EventArgs) Handles 班別_cb18.SelectedIndexChanged
  880. If 班別_cb18.Text <> "休" Then : 休息變化18() : A_pb35.Visible = True : A_pb36.Visible = True : ComboBox35.Visible = True : ComboBox36.Visible = True
  881. Else : A_pb35.Visible = False : A_pb36.Visible = False : ComboBox35.Visible = False : ComboBox36.Visible = False : End If
  882. End Sub
  883. Private Sub 班別19_cb_SelectedIndexChanged(sender As Object, e As EventArgs) Handles 班別_cb19.SelectedIndexChanged
  884. If 班別_cb19.Text <> "休" Then : 休息變化19() : A_pb37.Visible = True : A_pb38.Visible = True : ComboBox37.Visible = True : ComboBox38.Visible = True
  885. Else : A_pb37.Visible = False : A_pb38.Visible = False : ComboBox37.Visible = False : ComboBox38.Visible = False : End If
  886. End Sub
  887. Private Sub 班別20_cb_SelectedIndexChanged(sender As Object, e As EventArgs) Handles 班別_cb20.SelectedIndexChanged
  888. If 班別_cb20.Text <> "休" Then : 休息變化20() : A_pb39.Visible = False : A_pb40.Visible = False : ComboBox39.Visible = False : ComboBox40.Visible = False
  889. Else : A_pb39.Visible = False : A_pb40.Visible = False : ComboBox39.Visible = False : ComboBox40.Visible = False : End If
  890. End Sub
  891. Private Sub CheckBox1_CheckedChanged(sender As Object, e As EventArgs) Handles CheckBox1.CheckedChanged
  892. If 班別_cb1.Text <> "休" Then
  893. 休息變化1()
  894. End If
  895. End Sub
  896. Private Sub CheckBox2_CheckedChanged(sender As Object, e As EventArgs) Handles CheckBox2.CheckedChanged
  897. If 班別_cb2.Text <> "休" Then
  898. 休息變化2()
  899. End If
  900. End Sub
  901. Private Sub CheckBox3_CheckedChanged(sender As Object, e As EventArgs) Handles CheckBox3.CheckedChanged
  902. If 班別_cb3.Text <> "休" Then
  903. 休息變化3()
  904. End If
  905. End Sub
  906. Private Sub CheckBox4_CheckedChanged(sender As Object, e As EventArgs) Handles CheckBox4.CheckedChanged
  907. If 班別_cb4.Text <> "休" Then
  908. 休息變化4()
  909. End If
  910. End Sub
  911. Private Sub CheckBox5_CheckedChanged(sender As Object, e As EventArgs) Handles CheckBox5.CheckedChanged
  912. If 班別_cb5.Text <> "休" Then
  913. 休息變化5()
  914. End If
  915. End Sub
  916. Private Sub CheckBox6_CheckedChanged(sender As Object, e As EventArgs) Handles CheckBox6.CheckedChanged
  917. If 班別_cb6.Text <> "休" Then
  918. 休息變化6()
  919. End If
  920. End Sub
  921. Private Sub CheckBox7_CheckedChanged(sender As Object, e As EventArgs) Handles CheckBox7.CheckedChanged
  922. If 班別_cb7.Text <> "休" Then
  923. 休息變化7()
  924. End If
  925. End Sub
  926. Private Sub CheckBox8_CheckedChanged(sender As Object, e As EventArgs) Handles CheckBox8.CheckedChanged
  927. If 班別_cb8.Text <> "休" Then
  928. 休息變化8()
  929. End If
  930. End Sub
  931. Private Sub CheckBox9_CheckedChanged(sender As Object, e As EventArgs) Handles CheckBox9.CheckedChanged
  932. If 班別_cb9.Text <> "休" Then
  933. 休息變化9()
  934. End If
  935. End Sub
  936. Private Sub CheckBox10_CheckedChanged(sender As Object, e As EventArgs) Handles CheckBox10.CheckedChanged
  937. If 班別_cb10.Text <> "休" Then
  938. 休息變化10()
  939. End If
  940. End Sub
  941. Private Sub CheckBox11_CheckedChanged(sender As Object, e As EventArgs) Handles CheckBox11.CheckedChanged
  942. If 班別_cb11.Text <> "休" Then
  943. 休息變化11()
  944. End If
  945. End Sub
  946. Private Sub CheckBox12_CheckedChanged(sender As Object, e As EventArgs) Handles CheckBox12.CheckedChanged
  947. If 班別_cb12.Text <> "休" Then
  948. 休息變化12()
  949. End If
  950. End Sub
  951. Private Sub CheckBox13_CheckedChanged(sender As Object, e As EventArgs) Handles CheckBox13.CheckedChanged
  952. If 班別_cb13.Text <> "休" Then
  953. 休息變化13()
  954. End If
  955. End Sub
  956. Private Sub CheckBox14_CheckedChanged(sender As Object, e As EventArgs) Handles CheckBox14.CheckedChanged
  957. If 班別_cb14.Text <> "休" Then
  958. 休息變化14()
  959. End If
  960. End Sub
  961. Private Sub CheckBox15_CheckedChanged(sender As Object, e As EventArgs) Handles CheckBox15.CheckedChanged
  962. If 班別_cb15.Text <> "休" Then
  963. 休息變化15()
  964. End If
  965. End Sub
  966. Private Sub CheckBox16_CheckedChanged(sender As Object, e As EventArgs) Handles CheckBox16.CheckedChanged
  967. If 班別_cb16.Text <> "休" Then
  968. 休息變化16()
  969. End If
  970. End Sub
  971. Private Sub CheckBox17_CheckedChanged(sender As Object, e As EventArgs) Handles CheckBox17.CheckedChanged
  972. If 班別_cb17.Text <> "休" Then
  973. 休息變化17()
  974. End If
  975. End Sub
  976. Private Sub CheckBox18_CheckedChanged(sender As Object, e As EventArgs) Handles CheckBox18.CheckedChanged
  977. If 班別_cb18.Text <> "休" Then
  978. 休息變化18()
  979. End If
  980. End Sub
  981. Private Sub CheckBox19_CheckedChanged(sender As Object, e As EventArgs) Handles CheckBox19.CheckedChanged
  982. If 班別_cb19.Text <> "休" Then
  983. 休息變化19()
  984. End If
  985. End Sub
  986. Private Sub CheckBox20_CheckedChanged(sender As Object, e As EventArgs) Handles CheckBox20.CheckedChanged
  987. If 班別_cb20.Text <> "休" Then
  988. 休息變化20()
  989. End If
  990. End Sub
  991. Private Sub NumericUpDown1_ValueChanged(sender As Object, e As EventArgs) Handles NumericUpDown1.ValueChanged
  992. If 班別_cb1.Text <> "休" Then
  993. 休息變化1()
  994. End If
  995. End Sub
  996. Private Sub NumericUpDown2_ValueChanged(sender As Object, e As EventArgs) Handles NumericUpDown2.ValueChanged
  997. If 班別_cb2.Text <> "休" Then
  998. 休息變化2()
  999. End If
  1000. End Sub
  1001. Private Sub NumericUpDown3_ValueChanged(sender As Object, e As EventArgs) Handles NumericUpDown3.ValueChanged
  1002. If 班別_cb3.Text <> "休" Then
  1003. 休息變化3()
  1004. End If
  1005. End Sub
  1006. Private Sub NumericUpDown4_ValueChanged(sender As Object, e As EventArgs) Handles NumericUpDown4.ValueChanged
  1007. If 班別_cb4.Text <> "休" Then
  1008. 休息變化4()
  1009. End If
  1010. End Sub
  1011. Private Sub NumericUpDown5_ValueChanged(sender As Object, e As EventArgs) Handles NumericUpDown5.ValueChanged
  1012. If 班別_cb5.Text <> "休" Then
  1013. 休息變化5()
  1014. End If
  1015. End Sub
  1016. Private Sub NumericUpDown6_ValueChanged(sender As Object, e As EventArgs) Handles NumericUpDown6.ValueChanged
  1017. If 班別_cb6.Text <> "休" Then
  1018. 休息變化6()
  1019. End If
  1020. End Sub
  1021. Private Sub NumericUpDown7_ValueChanged(sender As Object, e As EventArgs) Handles NumericUpDown7.ValueChanged
  1022. If 班別_cb7.Text <> "休" Then
  1023. 休息變化7()
  1024. End If
  1025. End Sub
  1026. Private Sub NumericUpDown8_ValueChanged(sender As Object, e As EventArgs) Handles NumericUpDown8.ValueChanged
  1027. If 班別_cb8.Text <> "休" Then
  1028. 休息變化8()
  1029. End If
  1030. End Sub
  1031. Private Sub NumericUpDown9_ValueChanged(sender As Object, e As EventArgs) Handles NumericUpDown9.ValueChanged
  1032. If 班別_cb9.Text <> "休" Then
  1033. 休息變化9()
  1034. End If
  1035. End Sub
  1036. Private Sub NumericUpDown10_ValueChanged(sender As Object, e As EventArgs) Handles NumericUpDown10.ValueChanged
  1037. If 班別_cb10.Text <> "休" Then
  1038. 休息變化10()
  1039. End If
  1040. End Sub
  1041. Private Sub NumericUpDown11_ValueChanged(sender As Object, e As EventArgs) Handles NumericUpDown11.ValueChanged
  1042. If 班別_cb11.Text <> "休" Then
  1043. 休息變化11()
  1044. End If
  1045. End Sub
  1046. Private Sub NumericUpDown12_ValueChanged(sender As Object, e As EventArgs) Handles NumericUpDown12.ValueChanged
  1047. If 班別_cb12.Text <> "休" Then
  1048. 休息變化12()
  1049. End If
  1050. End Sub
  1051. Private Sub NumericUpDown13_ValueChanged(sender As Object, e As EventArgs) Handles NumericUpDown13.ValueChanged
  1052. If 班別_cb13.Text <> "休" Then
  1053. 休息變化13()
  1054. End If
  1055. End Sub
  1056. Private Sub NumericUpDown14_ValueChanged(sender As Object, e As EventArgs) Handles NumericUpDown14.ValueChanged
  1057. If 班別_cb14.Text <> "休" Then
  1058. 休息變化14()
  1059. End If
  1060. End Sub
  1061. Private Sub NumericUpDown15_ValueChanged(sender As Object, e As EventArgs) Handles NumericUpDown15.ValueChanged
  1062. If 班別_cb15.Text <> "休" Then
  1063. 休息變化15()
  1064. End If
  1065. End Sub
  1066. Private Sub NumericUpDown16_ValueChanged(sender As Object, e As EventArgs) Handles NumericUpDown16.ValueChanged
  1067. If 班別_cb16.Text <> "休" Then
  1068. 休息變化16()
  1069. End If
  1070. End Sub
  1071. Private Sub NumericUpDown17_ValueChanged(sender As Object, e As EventArgs) Handles NumericUpDown17.ValueChanged
  1072. If 班別_cb17.Text <> "休" Then
  1073. 休息變化17()
  1074. End If
  1075. End Sub
  1076. Private Sub NumericUpDown18_ValueChanged(sender As Object, e As EventArgs) Handles NumericUpDown18.ValueChanged
  1077. If 班別_cb18.Text <> "休" Then
  1078. 休息變化18()
  1079. End If
  1080. End Sub
  1081. Private Sub NumericUpDown19_ValueChanged(sender As Object, e As EventArgs) Handles NumericUpDown19.ValueChanged
  1082. If 班別_cb19.Text <> "休" Then
  1083. 休息變化19()
  1084. End If
  1085. End Sub
  1086. Private Sub NumericUpDown20_ValueChanged(sender As Object, e As EventArgs) Handles NumericUpDown20.ValueChanged
  1087. If 班別_cb20.Text <> "休" Then
  1088. 休息變化20()
  1089. End If
  1090. End Sub
  1091. Private Sub NUP1_ValueChanged(sender As Object, e As EventArgs) Handles NUP1.ValueChanged
  1092. If 班別_cb1.Text <> "休" Then : 休息變化1() : A_pb1.Visible = True : A_pb2.Visible = True : ComboBox1.Visible = True : ComboBox2.Visible = True
  1093. Else : A_pb1.Visible = False : A_pb2.Visible = False : ComboBox1.Visible = False : ComboBox2.Visible = False : End If
  1094. End Sub
  1095. Private Sub NUP2_ValueChanged(sender As Object, e As EventArgs) Handles NUP2.ValueChanged
  1096. If 班別_cb2.Text <> "休" Then : 休息變化2() : A_pb3.Visible = True : A_pb4.Visible = True : ComboBox3.Visible = True : ComboBox4.Visible = True
  1097. Else : A_pb3.Visible = False : A_pb4.Visible = False : ComboBox3.Visible = False : ComboBox4.Visible = False : End If
  1098. End Sub
  1099. Private Sub NUP3_ValueChanged(sender As Object, e As EventArgs) Handles NUP3.ValueChanged
  1100. If 班別_cb3.Text <> "休" Then : 休息變化3() : A_pb5.Visible = True : A_pb6.Visible = True : ComboBox5.Visible = True : ComboBox6.Visible = True
  1101. Else : A_pb5.Visible = False : A_pb6.Visible = False : ComboBox5.Visible = False : ComboBox6.Visible = False : End If
  1102. End Sub
  1103. Private Sub NUP4_ValueChanged(sender As Object, e As EventArgs) Handles NUP4.ValueChanged
  1104. If 班別_cb4.Text <> "休" Then : 休息變化4() : A_pb7.Visible = True : A_pb8.Visible = True : ComboBox7.Visible = True : ComboBox8.Visible = True
  1105. Else : A_pb7.Visible = False : A_pb8.Visible = False : ComboBox7.Visible = False : ComboBox8.Visible = False : End If
  1106. End Sub
  1107. Private Sub NUP5_ValueChanged(sender As Object, e As EventArgs) Handles NUP5.ValueChanged
  1108. If 班別_cb5.Text <> "休" Then : 休息變化5() : A_pb9.Visible = True : A_pb10.Visible = True : ComboBox9.Visible = True : ComboBox10.Visible = True
  1109. Else : A_pb9.Visible = False : A_pb10.Visible = False : ComboBox9.Visible = False : ComboBox10.Visible = False : End If
  1110. End Sub
  1111. Private Sub NUP6_ValueChanged(sender As Object, e As EventArgs) Handles NUP6.ValueChanged
  1112. If 班別_cb6.Text <> "休" Then : 休息變化6() : A_pb11.Visible = True : A_pb12.Visible = True : ComboBox11.Visible = True : ComboBox12.Visible = True
  1113. Else : A_pb11.Visible = False : A_pb12.Visible = False : ComboBox11.Visible = False : ComboBox12.Visible = False : End If
  1114. End Sub
  1115. Private Sub NUP7_ValueChanged(sender As Object, e As EventArgs) Handles NUP7.ValueChanged
  1116. If 班別_cb7.Text <> "休" Then : 休息變化7() : A_pb13.Visible = True : A_pb14.Visible = True : ComboBox13.Visible = True : ComboBox14.Visible = True
  1117. Else : A_pb13.Visible = False : A_pb14.Visible = False : ComboBox13.Visible = False : ComboBox14.Visible = False : End If
  1118. End Sub
  1119. Private Sub NUP8_ValueChanged(sender As Object, e As EventArgs) Handles NUP8.ValueChanged
  1120. If 班別_cb8.Text <> "休" Then : 休息變化8() : A_pb15.Visible = True : A_pb16.Visible = True : ComboBox15.Visible = True : ComboBox16.Visible = True
  1121. Else : A_pb15.Visible = False : A_pb16.Visible = False : ComboBox15.Visible = False : ComboBox16.Visible = False : End If
  1122. End Sub
  1123. Private Sub NUP9_ValueChanged(sender As Object, e As EventArgs) Handles NUP9.ValueChanged
  1124. If 班別_cb9.Text <> "休" Then : 休息變化9() : A_pb17.Visible = True : A_pb18.Visible = True : ComboBox17.Visible = True : ComboBox18.Visible = True
  1125. Else : A_pb17.Visible = False : A_pb18.Visible = False : ComboBox17.Visible = False : ComboBox18.Visible = False : End If
  1126. End Sub
  1127. Private Sub NUP10_ValueChanged(sender As Object, e As EventArgs) Handles NUP10.ValueChanged
  1128. If 班別_cb10.Text <> "休" Then : 休息變化10() : A_pb19.Visible = True : A_pb20.Visible = True : ComboBox19.Visible = True : ComboBox20.Visible = True
  1129. Else : A_pb19.Visible = False : A_pb20.Visible = False : ComboBox19.Visible = False : ComboBox20.Visible = False : End If
  1130. End Sub
  1131. Private Sub NUP11_ValueChanged(sender As Object, e As EventArgs) Handles NUP11.ValueChanged
  1132. If 班別_cb11.Text <> "休" Then : 休息變化11() : A_pb21.Visible = True : A_pb22.Visible = True : ComboBox21.Visible = True : ComboBox22.Visible = True
  1133. Else : A_pb21.Visible = False : A_pb22.Visible = False : ComboBox21.Visible = False : ComboBox22.Visible = False : End If
  1134. End Sub
  1135. Private Sub NUP12_ValueChanged(sender As Object, e As EventArgs) Handles NUP12.ValueChanged
  1136. If 班別_cb12.Text <> "休" Then : 休息變化12() : A_pb23.Visible = True : A_pb24.Visible = True : ComboBox23.Visible = True : ComboBox24.Visible = True
  1137. Else : A_pb23.Visible = False : A_pb24.Visible = False : ComboBox23.Visible = False : ComboBox24.Visible = False : End If
  1138. End Sub
  1139. Private Sub NUP13_ValueChanged(sender As Object, e As EventArgs) Handles NUP13.ValueChanged
  1140. If 班別_cb13.Text <> "休" Then : 休息變化13() : A_pb25.Visible = True : A_pb26.Visible = True : ComboBox25.Visible = True : ComboBox26.Visible = True
  1141. Else : A_pb25.Visible = False : A_pb26.Visible = False : ComboBox25.Visible = False : ComboBox26.Visible = False : End If
  1142. End Sub
  1143. Private Sub NUP14_ValueChanged(sender As Object, e As EventArgs) Handles NUP14.ValueChanged
  1144. If 班別_cb14.Text <> "休" Then : 休息變化14() : A_pb27.Visible = True : A_pb28.Visible = True : ComboBox27.Visible = True : ComboBox28.Visible = True
  1145. Else : A_pb27.Visible = False : A_pb28.Visible = False : ComboBox27.Visible = False : ComboBox28.Visible = False : End If
  1146. End Sub
  1147. Private Sub NUP15_ValueChanged(sender As Object, e As EventArgs) Handles NUP15.ValueChanged
  1148. If 班別_cb15.Text <> "休" Then : 休息變化15() : A_pb29.Visible = True : A_pb30.Visible = True : ComboBox29.Visible = True : ComboBox30.Visible = True
  1149. Else : A_pb29.Visible = False : A_pb30.Visible = False : ComboBox29.Visible = False : ComboBox30.Visible = False : End If
  1150. End Sub
  1151. Private Sub NUP16_ValueChanged(sender As Object, e As EventArgs) Handles NUP16.ValueChanged
  1152. If 班別_cb16.Text <> "休" Then : 休息變化16() : A_pb31.Visible = True : A_pb32.Visible = True : ComboBox31.Visible = True : ComboBox32.Visible = True
  1153. Else : A_pb31.Visible = False : A_pb32.Visible = False : ComboBox31.Visible = False : ComboBox32.Visible = False : End If
  1154. End Sub
  1155. Private Sub NUP17_ValueChanged(sender As Object, e As EventArgs) Handles NUP17.ValueChanged
  1156. If 班別_cb17.Text <> "休" Then : 休息變化17() : A_pb33.Visible = True : A_pb34.Visible = True : ComboBox33.Visible = True : ComboBox34.Visible = True
  1157. Else : A_pb33.Visible = False : A_pb34.Visible = False : ComboBox33.Visible = False : ComboBox34.Visible = False : End If
  1158. End Sub
  1159. Private Sub NUP18_ValueChanged(sender As Object, e As EventArgs) Handles NUP18.ValueChanged
  1160. If 班別_cb18.Text <> "休" Then : 休息變化18() : A_pb35.Visible = True : A_pb36.Visible = True : ComboBox35.Visible = True : ComboBox36.Visible = True
  1161. Else : A_pb35.Visible = False : A_pb36.Visible = False : ComboBox35.Visible = False : ComboBox36.Visible = False : End If
  1162. End Sub
  1163. Private Sub NUP19_ValueChanged(sender As Object, e As EventArgs) Handles NUP19.ValueChanged
  1164. If 班別_cb19.Text <> "休" Then : 休息變化19() : A_pb37.Visible = True : A_pb38.Visible = True : ComboBox37.Visible = True : ComboBox38.Visible = True
  1165. Else : A_pb37.Visible = False : A_pb38.Visible = False : ComboBox37.Visible = False : ComboBox38.Visible = False : End If
  1166. End Sub
  1167. Private Sub NUP20_ValueChanged(sender As Object, e As EventArgs) Handles NUP20.ValueChanged
  1168. If 班別_cb20.Text <> "休" Then : 休息變化20() : A_pb39.Visible = False : A_pb40.Visible = False : ComboBox39.Visible = False : ComboBox40.Visible = False
  1169. Else : A_pb39.Visible = False : A_pb40.Visible = False : ComboBox39.Visible = False : ComboBox40.Visible = False : End If
  1170. End Sub
  1171. Private Sub 全_ch_CheckedChanged(sender As Object, e As EventArgs) Handles 全_ch.CheckedChanged
  1172. 讀取人員資料表()
  1173. End Sub
  1174. Private Sub ComboBox1_SelectedIndexChanged(sender As Object, e As EventArgs) Handles ComboBox1.TextChanged
  1175. If ComboBox1.Text = "" Then : ComboBox1.DropDownStyle = 1 : Else : ComboBox1.DropDownStyle = 0 : End If
  1176. End Sub
  1177. Private Sub ComboBox2_SelectedIndexChanged(sender As Object, e As EventArgs) Handles ComboBox2.TextChanged
  1178. If ComboBox2.Text = "" Then : ComboBox2.DropDownStyle = 1 : Else : ComboBox2.DropDownStyle = 0 : End If
  1179. End Sub
  1180. Private Sub ComboBox3_SelectedIndexChanged(sender As Object, e As EventArgs) Handles ComboBox3.TextChanged
  1181. If ComboBox3.Text = "" Then : ComboBox3.DropDownStyle = 1 : Else : ComboBox3.DropDownStyle = 0 : End If
  1182. End Sub
  1183. Private Sub ComboBox4_SelectedIndexChanged(sender As Object, e As EventArgs) Handles ComboBox4.TextChanged
  1184. If ComboBox4.Text = "" Then : ComboBox4.DropDownStyle = 1 : Else : ComboBox4.DropDownStyle = 0 : End If
  1185. End Sub
  1186. Private Sub ComboBox5_SelectedIndexChanged(sender As Object, e As EventArgs) Handles ComboBox5.TextChanged
  1187. If ComboBox5.Text = "" Then : ComboBox5.DropDownStyle = 1 : Else : ComboBox5.DropDownStyle = 0 : End If
  1188. End Sub
  1189. Private Sub ComboBox6_SelectedIndexChanged(sender As Object, e As EventArgs) Handles ComboBox6.TextChanged
  1190. If ComboBox6.Text = "" Then : ComboBox6.DropDownStyle = 1 : Else : ComboBox6.DropDownStyle = 0 : End If
  1191. End Sub
  1192. Private Sub ComboBox7_SelectedIndexChanged(sender As Object, e As EventArgs) Handles ComboBox7.TextChanged
  1193. If ComboBox7.Text = "" Then : ComboBox7.DropDownStyle = 1 : Else : ComboBox7.DropDownStyle = 0 : End If
  1194. End Sub
  1195. Private Sub ComboBox8_SelectedIndexChanged(sender As Object, e As EventArgs) Handles ComboBox8.TextChanged
  1196. If ComboBox8.Text = "" Then : ComboBox8.DropDownStyle = 1 : Else : ComboBox8.DropDownStyle = 0 : End If
  1197. End Sub
  1198. Private Sub ComboBox9_SelectedIndexChanged(sender As Object, e As EventArgs) Handles ComboBox9.TextChanged
  1199. If ComboBox9.Text = "" Then : ComboBox9.DropDownStyle = 1 : Else : ComboBox9.DropDownStyle = 0 : End If
  1200. End Sub
  1201. Private Sub ComboBox10_SelectedIndexChanged(sender As Object, e As EventArgs) Handles ComboBox10.TextChanged
  1202. If ComboBox10.Text = "" Then : ComboBox10.DropDownStyle = 1 : Else : ComboBox10.DropDownStyle = 0 : End If
  1203. End Sub
  1204. Private Sub ComboBox11_SelectedIndexChanged(sender As Object, e As EventArgs) Handles ComboBox11.TextChanged
  1205. If ComboBox11.Text = "" Then : ComboBox11.DropDownStyle = 1 : Else : ComboBox11.DropDownStyle = 0 : End If
  1206. End Sub
  1207. Private Sub ComboBox12_SelectedIndexChanged(sender As Object, e As EventArgs) Handles ComboBox12.TextChanged
  1208. If ComboBox12.Text = "" Then : ComboBox12.DropDownStyle = 1 : Else : ComboBox12.DropDownStyle = 0 : End If
  1209. End Sub
  1210. Private Sub ComboBox13_SelectedIndexChanged(sender As Object, e As EventArgs) Handles ComboBox13.TextChanged
  1211. If ComboBox13.Text = "" Then : ComboBox13.DropDownStyle = 1 : Else : ComboBox13.DropDownStyle = 0 : End If
  1212. End Sub
  1213. Private Sub ComboBox14_SelectedIndexChanged(sender As Object, e As EventArgs) Handles ComboBox14.TextChanged
  1214. If ComboBox14.Text = "" Then : ComboBox14.DropDownStyle = 1 : Else : ComboBox14.DropDownStyle = 0 : End If
  1215. End Sub
  1216. Private Sub ComboBox15_SelectedIndexChanged(sender As Object, e As EventArgs) Handles ComboBox15.TextChanged
  1217. If ComboBox15.Text = "" Then : ComboBox15.DropDownStyle = 1 : Else : ComboBox15.DropDownStyle = 0 : End If
  1218. End Sub
  1219. Private Sub ComboBox16_SelectedIndexChanged(sender As Object, e As EventArgs) Handles ComboBox16.TextChanged
  1220. If ComboBox16.Text = "" Then : ComboBox16.DropDownStyle = 1 : Else : ComboBox16.DropDownStyle = 0 : End If
  1221. End Sub
  1222. Private Sub ComboBox17_SelectedIndexChanged(sender As Object, e As EventArgs) Handles ComboBox17.TextChanged
  1223. If ComboBox17.Text = "" Then : ComboBox17.DropDownStyle = 1 : Else : ComboBox17.DropDownStyle = 0 : End If
  1224. End Sub
  1225. Private Sub ComboBox18_SelectedIndexChanged(sender As Object, e As EventArgs) Handles ComboBox18.TextChanged
  1226. If ComboBox18.Text = "" Then : ComboBox18.DropDownStyle = 1 : Else : ComboBox18.DropDownStyle = 0 : End If
  1227. End Sub
  1228. Private Sub ComboBox19_SelectedIndexChanged(sender As Object, e As EventArgs) Handles ComboBox19.TextChanged
  1229. If ComboBox19.Text = "" Then : ComboBox19.DropDownStyle = 1 : Else : ComboBox19.DropDownStyle = 0 : End If
  1230. End Sub
  1231. Private Sub ComboBox20_SelectedIndexChanged(sender As Object, e As EventArgs) Handles ComboBox20.TextChanged
  1232. If ComboBox20.Text = "" Then : ComboBox20.DropDownStyle = 1 : Else : ComboBox20.DropDownStyle = 0 : End If
  1233. End Sub
  1234. Private Sub ComboBox21_SelectedIndexChanged(sender As Object, e As EventArgs) Handles ComboBox21.TextChanged
  1235. If ComboBox21.Text = "" Then : ComboBox21.DropDownStyle = 1 : Else : ComboBox21.DropDownStyle = 0 : End If
  1236. End Sub
  1237. Private Sub ComboBox22_SelectedIndexChanged(sender As Object, e As EventArgs) Handles ComboBox22.TextChanged
  1238. If ComboBox22.Text = "" Then : ComboBox22.DropDownStyle = 1 : Else : ComboBox22.DropDownStyle = 0 : End If
  1239. End Sub
  1240. Private Sub ComboBox23_SelectedIndexChanged(sender As Object, e As EventArgs) Handles ComboBox23.TextChanged
  1241. If ComboBox23.Text = "" Then : ComboBox23.DropDownStyle = 1 : Else : ComboBox23.DropDownStyle = 0 : End If
  1242. End Sub
  1243. Private Sub ComboBox24_SelectedIndexChanged(sender As Object, e As EventArgs) Handles ComboBox24.TextChanged
  1244. If ComboBox24.Text = "" Then : ComboBox24.DropDownStyle = 1 : Else : ComboBox24.DropDownStyle = 0 : End If
  1245. End Sub
  1246. Private Sub ComboBox25_SelectedIndexChanged(sender As Object, e As EventArgs) Handles ComboBox25.TextChanged
  1247. If ComboBox25.Text = "" Then : ComboBox25.DropDownStyle = 1 : Else : ComboBox25.DropDownStyle = 0 : End If
  1248. End Sub
  1249. Private Sub ComboBox26_SelectedIndexChanged(sender As Object, e As EventArgs) Handles ComboBox26.TextChanged
  1250. If ComboBox26.Text = "" Then : ComboBox26.DropDownStyle = 1 : Else : ComboBox26.DropDownStyle = 0 : End If
  1251. End Sub
  1252. Private Sub ComboBox27_SelectedIndexChanged(sender As Object, e As EventArgs) Handles ComboBox27.TextChanged
  1253. If ComboBox27.Text = "" Then : ComboBox27.DropDownStyle = 1 : Else : ComboBox27.DropDownStyle = 0 : End If
  1254. End Sub
  1255. Private Sub ComboBox28_SelectedIndexChanged(sender As Object, e As EventArgs) Handles ComboBox28.TextChanged
  1256. If ComboBox28.Text = "" Then : ComboBox28.DropDownStyle = 1 : Else : ComboBox28.DropDownStyle = 0 : End If
  1257. End Sub
  1258. Private Sub ComboBox29_SelectedIndexChanged(sender As Object, e As EventArgs) Handles ComboBox29.TextChanged
  1259. If ComboBox29.Text = "" Then : ComboBox29.DropDownStyle = 1 : Else : ComboBox29.DropDownStyle = 0 : End If
  1260. End Sub
  1261. Private Sub ComboBox30_SelectedIndexChanged(sender As Object, e As EventArgs) Handles ComboBox30.TextChanged
  1262. If ComboBox30.Text = "" Then : ComboBox30.DropDownStyle = 1 : Else : ComboBox30.DropDownStyle = 0 : End If
  1263. End Sub
  1264. Private Sub ComboBox31_SelectedIndexChanged(sender As Object, e As EventArgs) Handles ComboBox31.TextChanged
  1265. If ComboBox31.Text = "" Then : ComboBox31.DropDownStyle = 1 : Else : ComboBox31.DropDownStyle = 0 : End If
  1266. End Sub
  1267. Private Sub ComboBox32_SelectedIndexChanged(sender As Object, e As EventArgs) Handles ComboBox32.TextChanged
  1268. If ComboBox32.Text = "" Then : ComboBox32.DropDownStyle = 1 : Else : ComboBox32.DropDownStyle = 0 : End If
  1269. End Sub
  1270. Private Sub ComboBox33_SelectedIndexChanged(sender As Object, e As EventArgs) Handles ComboBox33.TextChanged
  1271. If ComboBox33.Text = "" Then : ComboBox33.DropDownStyle = 1 : Else : ComboBox33.DropDownStyle = 0 : End If
  1272. End Sub
  1273. Private Sub ComboBox34_SelectedIndexChanged(sender As Object, e As EventArgs) Handles ComboBox34.TextChanged
  1274. If ComboBox34.Text = "" Then : ComboBox34.DropDownStyle = 1 : Else : ComboBox34.DropDownStyle = 0 : End If
  1275. End Sub
  1276. Private Sub ComboBox35_SelectedIndexChanged(sender As Object, e As EventArgs) Handles ComboBox35.TextChanged
  1277. If ComboBox35.Text = "" Then : ComboBox35.DropDownStyle = 1 : Else : ComboBox35.DropDownStyle = 0 : End If
  1278. End Sub
  1279. Private Sub ComboBox36_SelectedIndexChanged(sender As Object, e As EventArgs) Handles ComboBox36.TextChanged
  1280. If ComboBox36.Text = "" Then : ComboBox36.DropDownStyle = 1 : Else : ComboBox36.DropDownStyle = 0 : End If
  1281. End Sub
  1282. Private Sub ComboBox37_SelectedIndexChanged(sender As Object, e As EventArgs) Handles ComboBox37.TextChanged
  1283. If ComboBox37.Text = "" Then : ComboBox37.DropDownStyle = 1 : Else : ComboBox37.DropDownStyle = 0 : End If
  1284. End Sub
  1285. Private Sub ComboBox38_SelectedIndexChanged(sender As Object, e As EventArgs) Handles ComboBox38.TextChanged
  1286. If ComboBox38.Text = "" Then : ComboBox38.DropDownStyle = 1 : Else : ComboBox38.DropDownStyle = 0 : End If
  1287. End Sub
  1288. Private Sub ComboBox39_SelectedIndexChanged(sender As Object, e As EventArgs) Handles ComboBox39.TextChanged
  1289. If ComboBox39.Text = "" Then : ComboBox39.DropDownStyle = 1 : Else : ComboBox39.DropDownStyle = 0 : End If
  1290. End Sub
  1291. Private Sub 減一天_bt_Click(sender As Object, e As EventArgs) Handles 減一天_bt.Click
  1292. DTP1.Value = 年_lb.Text & "/" & 月_lb.Text & "/" & 日_lb.Text
  1293. DTP1.Value = DTP1.Value.AddDays(-1)
  1294. PA = Format(DTP1.Value, "yyyy/MM/dd")
  1295. 年_lb.Text = Strings.Left(PA, 4) : 月_lb.Text = Strings.Mid(PA, 6, 2) : PA2 = Strings.Right(PA, 2)
  1296. '----------------回復預設-----------------------------------------------------------------------------------------------
  1297. If Val(PA2) > 9 Then : 日_lb.Text = PA2 : Else : 日_lb.Text = "0" & Val(PA2) : End If
  1298. 回復預設() : 重新讀取()
  1299. End Sub
  1300. Private Sub 加一天_bt1_Click(sender As Object, e As EventArgs) Handles 加一天_bt1.Click
  1301. DTP1.Value = 年_lb.Text & "/" & 月_lb.Text & "/" & 日_lb.Text
  1302. DTP1.Value = DTP1.Value.AddDays(+1)
  1303. PA = Format(DTP1.Value, "yyyy/MM/dd")
  1304. 年_lb.Text = Strings.Left(PA, 4) : 月_lb.Text = Strings.Mid(PA, 6, 2) : PA2 = Strings.Right(PA, 2)
  1305. '----------------回復預設-----------------------------------------------------------------------------------------------
  1306. If Val(PA2) > 9 Then : 日_lb.Text = PA2 : Else : 日_lb.Text = "0" & Val(PA2) : End If
  1307. 回復預設() : 重新讀取()
  1308. End Sub
  1309. Private Sub ComboBox41_SelectedIndexChanged(sender As Object, e As EventArgs) Handles ComboBox41.SelectedIndexChanged
  1310. If ComboBox41.SelectedIndex = 0 Then : ComboBox1.BackColor = Color.LawnGreen
  1311. ElseIf ComboBox41.SelectedIndex = 1 Then : ComboBox1.BackColor = Color.LightBlue
  1312. ElseIf ComboBox41.SelectedIndex = 2 Then : ComboBox1.BackColor = Color.LightCoral
  1313. ElseIf ComboBox41.SelectedIndex = 3 Then : ComboBox1.BackColor = Color.LightCyan
  1314. ElseIf ComboBox41.SelectedIndex = 4 Then : ComboBox1.BackColor = Color.LightGoldenrodYellow
  1315. ElseIf ComboBox41.SelectedIndex = 5 Then : ComboBox1.BackColor = Color.LightGray
  1316. ElseIf ComboBox41.SelectedIndex = 6 Then : ComboBox1.BackColor = Color.LightGreen
  1317. ElseIf ComboBox41.SelectedIndex = 7 Then : ComboBox1.BackColor = Color.LightPink
  1318. ElseIf ComboBox41.SelectedIndex = 8 Then : ComboBox1.BackColor = Color.LightSalmon
  1319. ElseIf ComboBox41.SelectedIndex = 9 Then : ComboBox1.BackColor = Color.Gray
  1320. End If
  1321. End Sub
  1322. Private Sub ComboBox42_SelectedIndexChanged(sender As Object, e As EventArgs) Handles ComboBox42.SelectedIndexChanged
  1323. If ComboBox42.SelectedIndex = 0 Then : ComboBox2.BackColor = Color.LawnGreen
  1324. ElseIf ComboBox42.SelectedIndex = 1 Then : ComboBox2.BackColor = Color.LightBlue
  1325. ElseIf ComboBox42.SelectedIndex = 2 Then : ComboBox2.BackColor = Color.LightCoral
  1326. ElseIf ComboBox42.SelectedIndex = 3 Then : ComboBox2.BackColor = Color.LightCyan
  1327. ElseIf ComboBox42.SelectedIndex = 4 Then : ComboBox2.BackColor = Color.LightGoldenrodYellow
  1328. ElseIf ComboBox42.SelectedIndex = 5 Then : ComboBox2.BackColor = Color.LightGray
  1329. ElseIf ComboBox42.SelectedIndex = 6 Then : ComboBox2.BackColor = Color.LightGreen
  1330. ElseIf ComboBox42.SelectedIndex = 7 Then : ComboBox2.BackColor = Color.LightPink
  1331. ElseIf ComboBox42.SelectedIndex = 8 Then : ComboBox2.BackColor = Color.LightSalmon
  1332. ElseIf ComboBox42.SelectedIndex = 9 Then : ComboBox2.BackColor = Color.Gray
  1333. End If
  1334. End Sub
  1335. Private Sub ComboBox43_SelectedIndexChanged(sender As Object, e As EventArgs) Handles ComboBox43.SelectedIndexChanged
  1336. If ComboBox43.SelectedIndex = 0 Then : ComboBox3.BackColor = Color.LawnGreen
  1337. ElseIf ComboBox43.SelectedIndex = 1 Then : ComboBox3.BackColor = Color.LightBlue
  1338. ElseIf ComboBox43.SelectedIndex = 2 Then : ComboBox3.BackColor = Color.LightCoral
  1339. ElseIf ComboBox43.SelectedIndex = 3 Then : ComboBox3.BackColor = Color.LightCyan
  1340. ElseIf ComboBox43.SelectedIndex = 4 Then : ComboBox3.BackColor = Color.LightGoldenrodYellow
  1341. ElseIf ComboBox43.SelectedIndex = 5 Then : ComboBox3.BackColor = Color.LightGray
  1342. ElseIf ComboBox43.SelectedIndex = 6 Then : ComboBox3.BackColor = Color.LightGreen
  1343. ElseIf ComboBox43.SelectedIndex = 7 Then : ComboBox3.BackColor = Color.LightPink
  1344. ElseIf ComboBox43.SelectedIndex = 8 Then : ComboBox3.BackColor = Color.LightSalmon
  1345. ElseIf ComboBox43.SelectedIndex = 9 Then : ComboBox3.BackColor = Color.Gray
  1346. End If
  1347. End Sub
  1348. Private Sub ComboBox44_SelectedIndexChanged(sender As Object, e As EventArgs) Handles ComboBox44.SelectedIndexChanged
  1349. If ComboBox44.SelectedIndex = 0 Then : ComboBox4.BackColor = Color.LawnGreen
  1350. ElseIf ComboBox44.SelectedIndex = 1 Then : ComboBox4.BackColor = Color.LightBlue
  1351. ElseIf ComboBox44.SelectedIndex = 2 Then : ComboBox4.BackColor = Color.LightCoral
  1352. ElseIf ComboBox44.SelectedIndex = 3 Then : ComboBox4.BackColor = Color.LightCyan
  1353. ElseIf ComboBox44.SelectedIndex = 4 Then : ComboBox4.BackColor = Color.LightGoldenrodYellow
  1354. ElseIf ComboBox44.SelectedIndex = 5 Then : ComboBox4.BackColor = Color.LightGray
  1355. ElseIf ComboBox44.SelectedIndex = 6 Then : ComboBox4.BackColor = Color.LightGreen
  1356. ElseIf ComboBox44.SelectedIndex = 7 Then : ComboBox4.BackColor = Color.LightPink
  1357. ElseIf ComboBox44.SelectedIndex = 8 Then : ComboBox4.BackColor = Color.LightSalmon
  1358. ElseIf ComboBox44.SelectedIndex = 9 Then : ComboBox4.BackColor = Color.Gray
  1359. End If
  1360. End Sub
  1361. Private Sub ComboBox45_SelectedIndexChanged(sender As Object, e As EventArgs) Handles ComboBox45.SelectedIndexChanged
  1362. If ComboBox45.SelectedIndex = 0 Then : ComboBox5.BackColor = Color.LawnGreen
  1363. ElseIf ComboBox45.SelectedIndex = 1 Then : ComboBox5.BackColor = Color.LightBlue
  1364. ElseIf ComboBox45.SelectedIndex = 2 Then : ComboBox5.BackColor = Color.LightCoral
  1365. ElseIf ComboBox45.SelectedIndex = 3 Then : ComboBox5.BackColor = Color.LightCyan
  1366. ElseIf ComboBox45.SelectedIndex = 4 Then : ComboBox5.BackColor = Color.LightGoldenrodYellow
  1367. ElseIf ComboBox45.SelectedIndex = 5 Then : ComboBox5.BackColor = Color.LightGray
  1368. ElseIf ComboBox45.SelectedIndex = 6 Then : ComboBox5.BackColor = Color.LightGreen
  1369. ElseIf ComboBox45.SelectedIndex = 7 Then : ComboBox5.BackColor = Color.LightPink
  1370. ElseIf ComboBox45.SelectedIndex = 8 Then : ComboBox5.BackColor = Color.LightSalmon
  1371. ElseIf ComboBox45.SelectedIndex = 9 Then : ComboBox5.BackColor = Color.Gray
  1372. End If
  1373. End Sub
  1374. Private Sub ComboBox46_SelectedIndexChanged(sender As Object, e As EventArgs) Handles ComboBox46.SelectedIndexChanged
  1375. If ComboBox46.SelectedIndex = 0 Then : ComboBox6.BackColor = Color.LawnGreen
  1376. ElseIf ComboBox46.SelectedIndex = 1 Then : ComboBox6.BackColor = Color.LightBlue
  1377. ElseIf ComboBox46.SelectedIndex = 2 Then : ComboBox6.BackColor = Color.LightCoral
  1378. ElseIf ComboBox46.SelectedIndex = 3 Then : ComboBox6.BackColor = Color.LightCyan
  1379. ElseIf ComboBox46.SelectedIndex = 4 Then : ComboBox6.BackColor = Color.LightGoldenrodYellow
  1380. ElseIf ComboBox46.SelectedIndex = 5 Then : ComboBox6.BackColor = Color.LightGray
  1381. ElseIf ComboBox46.SelectedIndex = 6 Then : ComboBox6.BackColor = Color.LightGreen
  1382. ElseIf ComboBox46.SelectedIndex = 7 Then : ComboBox6.BackColor = Color.LightPink
  1383. ElseIf ComboBox46.SelectedIndex = 8 Then : ComboBox6.BackColor = Color.LightSalmon
  1384. ElseIf ComboBox46.SelectedIndex = 9 Then : ComboBox6.BackColor = Color.Gray
  1385. End If
  1386. End Sub
  1387. Private Sub ComboBox47_SelectedIndexChanged(sender As Object, e As EventArgs) Handles ComboBox47.SelectedIndexChanged
  1388. If ComboBox47.SelectedIndex = 0 Then : ComboBox7.BackColor = Color.LawnGreen
  1389. ElseIf ComboBox47.SelectedIndex = 1 Then : ComboBox7.BackColor = Color.LightBlue
  1390. ElseIf ComboBox47.SelectedIndex = 2 Then : ComboBox7.BackColor = Color.LightCoral
  1391. ElseIf ComboBox47.SelectedIndex = 3 Then : ComboBox7.BackColor = Color.LightCyan
  1392. ElseIf ComboBox47.SelectedIndex = 4 Then : ComboBox7.BackColor = Color.LightGoldenrodYellow
  1393. ElseIf ComboBox47.SelectedIndex = 5 Then : ComboBox7.BackColor = Color.LightGray
  1394. ElseIf ComboBox47.SelectedIndex = 6 Then : ComboBox7.BackColor = Color.LightGreen
  1395. ElseIf ComboBox47.SelectedIndex = 7 Then : ComboBox7.BackColor = Color.LightPink
  1396. ElseIf ComboBox47.SelectedIndex = 8 Then : ComboBox7.BackColor = Color.LightSalmon
  1397. ElseIf ComboBox47.SelectedIndex = 9 Then : ComboBox7.BackColor = Color.Gray
  1398. End If
  1399. End Sub
  1400. Private Sub ComboBox48_SelectedIndexChanged(sender As Object, e As EventArgs) Handles ComboBox48.SelectedIndexChanged
  1401. If ComboBox48.SelectedIndex = 0 Then : ComboBox8.BackColor = Color.LawnGreen
  1402. ElseIf ComboBox48.SelectedIndex = 1 Then : ComboBox8.BackColor = Color.LightBlue
  1403. ElseIf ComboBox48.SelectedIndex = 2 Then : ComboBox8.BackColor = Color.LightCoral
  1404. ElseIf ComboBox48.SelectedIndex = 3 Then : ComboBox8.BackColor = Color.LightCyan
  1405. ElseIf ComboBox48.SelectedIndex = 4 Then : ComboBox8.BackColor = Color.LightGoldenrodYellow
  1406. ElseIf ComboBox48.SelectedIndex = 5 Then : ComboBox8.BackColor = Color.LightGray
  1407. ElseIf ComboBox48.SelectedIndex = 6 Then : ComboBox8.BackColor = Color.LightGreen
  1408. ElseIf ComboBox48.SelectedIndex = 7 Then : ComboBox8.BackColor = Color.LightPink
  1409. ElseIf ComboBox48.SelectedIndex = 8 Then : ComboBox8.BackColor = Color.LightSalmon
  1410. ElseIf ComboBox48.SelectedIndex = 9 Then : ComboBox8.BackColor = Color.Gray
  1411. End If
  1412. End Sub
  1413. Private Sub ComboBox49_SelectedIndexChanged(sender As Object, e As EventArgs) Handles ComboBox49.SelectedIndexChanged
  1414. If ComboBox49.SelectedIndex = 0 Then : ComboBox9.BackColor = Color.LawnGreen
  1415. ElseIf ComboBox49.SelectedIndex = 1 Then : ComboBox9.BackColor = Color.LightBlue
  1416. ElseIf ComboBox49.SelectedIndex = 2 Then : ComboBox9.BackColor = Color.LightCoral
  1417. ElseIf ComboBox49.SelectedIndex = 3 Then : ComboBox9.BackColor = Color.LightCyan
  1418. ElseIf ComboBox49.SelectedIndex = 4 Then : ComboBox9.BackColor = Color.LightGoldenrodYellow
  1419. ElseIf ComboBox49.SelectedIndex = 5 Then : ComboBox9.BackColor = Color.LightGray
  1420. ElseIf ComboBox49.SelectedIndex = 6 Then : ComboBox9.BackColor = Color.LightGreen
  1421. ElseIf ComboBox49.SelectedIndex = 7 Then : ComboBox9.BackColor = Color.LightPink
  1422. ElseIf ComboBox49.SelectedIndex = 8 Then : ComboBox9.BackColor = Color.LightSalmon
  1423. ElseIf ComboBox49.SelectedIndex = 9 Then : ComboBox9.BackColor = Color.Gray
  1424. End If
  1425. End Sub
  1426. Private Sub ComboBox50_SelectedIndexChanged(sender As Object, e As EventArgs) Handles ComboBox50.SelectedIndexChanged
  1427. If ComboBox50.SelectedIndex = 0 Then : ComboBox10.BackColor = Color.LawnGreen
  1428. ElseIf ComboBox50.SelectedIndex = 1 Then : ComboBox10.BackColor = Color.LightBlue
  1429. ElseIf ComboBox50.SelectedIndex = 2 Then : ComboBox10.BackColor = Color.LightCoral
  1430. ElseIf ComboBox50.SelectedIndex = 3 Then : ComboBox10.BackColor = Color.LightCyan
  1431. ElseIf ComboBox50.SelectedIndex = 4 Then : ComboBox10.BackColor = Color.LightGoldenrodYellow
  1432. ElseIf ComboBox50.SelectedIndex = 5 Then : ComboBox10.BackColor = Color.LightGray
  1433. ElseIf ComboBox50.SelectedIndex = 6 Then : ComboBox10.BackColor = Color.LightGreen
  1434. ElseIf ComboBox50.SelectedIndex = 7 Then : ComboBox10.BackColor = Color.LightPink
  1435. ElseIf ComboBox50.SelectedIndex = 8 Then : ComboBox10.BackColor = Color.LightSalmon
  1436. ElseIf ComboBox50.SelectedIndex = 9 Then : ComboBox10.BackColor = Color.Gray
  1437. End If
  1438. End Sub
  1439. Private Sub ComboBox51_SelectedIndexChanged(sender As Object, e As EventArgs) Handles ComboBox51.SelectedIndexChanged
  1440. If ComboBox51.SelectedIndex = 0 Then : ComboBox11.BackColor = Color.LawnGreen
  1441. ElseIf ComboBox51.SelectedIndex = 1 Then : ComboBox11.BackColor = Color.LightBlue
  1442. ElseIf ComboBox51.SelectedIndex = 2 Then : ComboBox11.BackColor = Color.LightCoral
  1443. ElseIf ComboBox51.SelectedIndex = 3 Then : ComboBox11.BackColor = Color.LightCyan
  1444. ElseIf ComboBox51.SelectedIndex = 4 Then : ComboBox11.BackColor = Color.LightGoldenrodYellow
  1445. ElseIf ComboBox51.SelectedIndex = 5 Then : ComboBox11.BackColor = Color.LightGray
  1446. ElseIf ComboBox51.SelectedIndex = 6 Then : ComboBox11.BackColor = Color.LightGreen
  1447. ElseIf ComboBox51.SelectedIndex = 7 Then : ComboBox11.BackColor = Color.LightPink
  1448. ElseIf ComboBox51.SelectedIndex = 8 Then : ComboBox11.BackColor = Color.LightSalmon
  1449. ElseIf ComboBox51.SelectedIndex = 9 Then : ComboBox11.BackColor = Color.Gray
  1450. End If
  1451. End Sub
  1452. Private Sub ComboBox52_SelectedIndexChanged(sender As Object, e As EventArgs) Handles ComboBox52.SelectedIndexChanged
  1453. If ComboBox52.SelectedIndex = 0 Then : ComboBox12.BackColor = Color.LawnGreen
  1454. ElseIf ComboBox52.SelectedIndex = 1 Then : ComboBox12.BackColor = Color.LightBlue
  1455. ElseIf ComboBox52.SelectedIndex = 2 Then : ComboBox12.BackColor = Color.LightCoral
  1456. ElseIf ComboBox52.SelectedIndex = 3 Then : ComboBox12.BackColor = Color.LightCyan
  1457. ElseIf ComboBox52.SelectedIndex = 4 Then : ComboBox12.BackColor = Color.LightGoldenrodYellow
  1458. ElseIf ComboBox52.SelectedIndex = 5 Then : ComboBox12.BackColor = Color.LightGray
  1459. ElseIf ComboBox52.SelectedIndex = 6 Then : ComboBox12.BackColor = Color.LightGreen
  1460. ElseIf ComboBox52.SelectedIndex = 7 Then : ComboBox12.BackColor = Color.LightPink
  1461. ElseIf ComboBox52.SelectedIndex = 8 Then : ComboBox12.BackColor = Color.LightSalmon
  1462. ElseIf ComboBox52.SelectedIndex = 9 Then : ComboBox12.BackColor = Color.Gray
  1463. End If
  1464. End Sub
  1465. Private Sub ComboBox53_SelectedIndexChanged(sender As Object, e As EventArgs) Handles ComboBox53.SelectedIndexChanged
  1466. If ComboBox53.SelectedIndex = 0 Then : ComboBox13.BackColor = Color.LawnGreen
  1467. ElseIf ComboBox53.SelectedIndex = 1 Then : ComboBox13.BackColor = Color.LightBlue
  1468. ElseIf ComboBox53.SelectedIndex = 2 Then : ComboBox13.BackColor = Color.LightCoral
  1469. ElseIf ComboBox53.SelectedIndex = 3 Then : ComboBox13.BackColor = Color.LightCyan
  1470. ElseIf ComboBox53.SelectedIndex = 4 Then : ComboBox13.BackColor = Color.LightGoldenrodYellow
  1471. ElseIf ComboBox53.SelectedIndex = 5 Then : ComboBox13.BackColor = Color.LightGray
  1472. ElseIf ComboBox53.SelectedIndex = 6 Then : ComboBox13.BackColor = Color.LightGreen
  1473. ElseIf ComboBox53.SelectedIndex = 7 Then : ComboBox13.BackColor = Color.LightPink
  1474. ElseIf ComboBox53.SelectedIndex = 8 Then : ComboBox13.BackColor = Color.LightSalmon
  1475. ElseIf ComboBox53.SelectedIndex = 9 Then : ComboBox13.BackColor = Color.Gray
  1476. End If
  1477. End Sub
  1478. Private Sub ComboBox54_SelectedIndexChanged(sender As Object, e As EventArgs) Handles ComboBox54.SelectedIndexChanged
  1479. If ComboBox54.SelectedIndex = 0 Then : ComboBox14.BackColor = Color.LawnGreen
  1480. ElseIf ComboBox54.SelectedIndex = 1 Then : ComboBox14.BackColor = Color.LightBlue
  1481. ElseIf ComboBox54.SelectedIndex = 2 Then : ComboBox14.BackColor = Color.LightCoral
  1482. ElseIf ComboBox54.SelectedIndex = 3 Then : ComboBox14.BackColor = Color.LightCyan
  1483. ElseIf ComboBox54.SelectedIndex = 4 Then : ComboBox14.BackColor = Color.LightGoldenrodYellow
  1484. ElseIf ComboBox54.SelectedIndex = 5 Then : ComboBox14.BackColor = Color.LightGray
  1485. ElseIf ComboBox54.SelectedIndex = 6 Then : ComboBox14.BackColor = Color.LightGreen
  1486. ElseIf ComboBox54.SelectedIndex = 7 Then : ComboBox14.BackColor = Color.LightPink
  1487. ElseIf ComboBox54.SelectedIndex = 8 Then : ComboBox14.BackColor = Color.LightSalmon
  1488. ElseIf ComboBox54.SelectedIndex = 9 Then : ComboBox14.BackColor = Color.Gray
  1489. End If
  1490. End Sub
  1491. Private Sub ComboBox55_SelectedIndexChanged(sender As Object, e As EventArgs) Handles ComboBox55.SelectedIndexChanged
  1492. If ComboBox55.SelectedIndex = 0 Then : ComboBox15.BackColor = Color.LawnGreen
  1493. ElseIf ComboBox55.SelectedIndex = 1 Then : ComboBox15.BackColor = Color.LightBlue
  1494. ElseIf ComboBox55.SelectedIndex = 2 Then : ComboBox15.BackColor = Color.LightCoral
  1495. ElseIf ComboBox55.SelectedIndex = 3 Then : ComboBox15.BackColor = Color.LightCyan
  1496. ElseIf ComboBox55.SelectedIndex = 4 Then : ComboBox15.BackColor = Color.LightGoldenrodYellow
  1497. ElseIf ComboBox55.SelectedIndex = 5 Then : ComboBox15.BackColor = Color.LightGray
  1498. ElseIf ComboBox55.SelectedIndex = 6 Then : ComboBox15.BackColor = Color.LightGreen
  1499. ElseIf ComboBox55.SelectedIndex = 7 Then : ComboBox15.BackColor = Color.LightPink
  1500. ElseIf ComboBox55.SelectedIndex = 8 Then : ComboBox15.BackColor = Color.LightSalmon
  1501. ElseIf ComboBox55.SelectedIndex = 9 Then : ComboBox15.BackColor = Color.Gray
  1502. End If
  1503. End Sub
  1504. Private Sub ComboBox56_SelectedIndexChanged(sender As Object, e As EventArgs) Handles ComboBox56.SelectedIndexChanged
  1505. If ComboBox56.SelectedIndex = 0 Then : ComboBox16.BackColor = Color.LawnGreen
  1506. ElseIf ComboBox56.SelectedIndex = 1 Then : ComboBox16.BackColor = Color.LightBlue
  1507. ElseIf ComboBox56.SelectedIndex = 2 Then : ComboBox16.BackColor = Color.LightCoral
  1508. ElseIf ComboBox56.SelectedIndex = 3 Then : ComboBox16.BackColor = Color.LightCyan
  1509. ElseIf ComboBox56.SelectedIndex = 4 Then : ComboBox16.BackColor = Color.LightGoldenrodYellow
  1510. ElseIf ComboBox56.SelectedIndex = 5 Then : ComboBox16.BackColor = Color.LightGray
  1511. ElseIf ComboBox56.SelectedIndex = 6 Then : ComboBox16.BackColor = Color.LightGreen
  1512. ElseIf ComboBox56.SelectedIndex = 7 Then : ComboBox16.BackColor = Color.LightPink
  1513. ElseIf ComboBox56.SelectedIndex = 8 Then : ComboBox16.BackColor = Color.LightSalmon
  1514. ElseIf ComboBox56.SelectedIndex = 9 Then : ComboBox16.BackColor = Color.Gray
  1515. End If
  1516. End Sub
  1517. Private Sub ComboBox57_SelectedIndexChanged(sender As Object, e As EventArgs) Handles ComboBox57.SelectedIndexChanged
  1518. If ComboBox57.SelectedIndex = 0 Then : ComboBox17.BackColor = Color.LawnGreen
  1519. ElseIf ComboBox57.SelectedIndex = 1 Then : ComboBox17.BackColor = Color.LightBlue
  1520. ElseIf ComboBox57.SelectedIndex = 2 Then : ComboBox17.BackColor = Color.LightCoral
  1521. ElseIf ComboBox57.SelectedIndex = 3 Then : ComboBox17.BackColor = Color.LightCyan
  1522. ElseIf ComboBox57.SelectedIndex = 4 Then : ComboBox17.BackColor = Color.LightGoldenrodYellow
  1523. ElseIf ComboBox57.SelectedIndex = 5 Then : ComboBox17.BackColor = Color.LightGray
  1524. ElseIf ComboBox57.SelectedIndex = 6 Then : ComboBox17.BackColor = Color.LightGreen
  1525. ElseIf ComboBox57.SelectedIndex = 7 Then : ComboBox17.BackColor = Color.LightPink
  1526. ElseIf ComboBox57.SelectedIndex = 8 Then : ComboBox17.BackColor = Color.LightSalmon
  1527. ElseIf ComboBox57.SelectedIndex = 9 Then : ComboBox17.BackColor = Color.Gray
  1528. End If
  1529. End Sub
  1530. Private Sub ComboBox58_SelectedIndexChanged(sender As Object, e As EventArgs) Handles ComboBox58.SelectedIndexChanged
  1531. If ComboBox58.SelectedIndex = 0 Then : ComboBox18.BackColor = Color.LawnGreen
  1532. ElseIf ComboBox58.SelectedIndex = 1 Then : ComboBox18.BackColor = Color.LightBlue
  1533. ElseIf ComboBox58.SelectedIndex = 2 Then : ComboBox18.BackColor = Color.LightCoral
  1534. ElseIf ComboBox58.SelectedIndex = 3 Then : ComboBox18.BackColor = Color.LightCyan
  1535. ElseIf ComboBox58.SelectedIndex = 4 Then : ComboBox18.BackColor = Color.LightGoldenrodYellow
  1536. ElseIf ComboBox58.SelectedIndex = 5 Then : ComboBox18.BackColor = Color.LightGray
  1537. ElseIf ComboBox58.SelectedIndex = 6 Then : ComboBox18.BackColor = Color.LightGreen
  1538. ElseIf ComboBox58.SelectedIndex = 7 Then : ComboBox18.BackColor = Color.LightPink
  1539. ElseIf ComboBox58.SelectedIndex = 8 Then : ComboBox18.BackColor = Color.LightSalmon
  1540. ElseIf ComboBox58.SelectedIndex = 9 Then : ComboBox18.BackColor = Color.Gray
  1541. End If
  1542. End Sub
  1543. Private Sub ComboBox59_SelectedIndexChanged(sender As Object, e As EventArgs) Handles ComboBox59.SelectedIndexChanged
  1544. If ComboBox59.SelectedIndex = 0 Then : ComboBox19.BackColor = Color.LawnGreen
  1545. ElseIf ComboBox59.SelectedIndex = 1 Then : ComboBox19.BackColor = Color.LightBlue
  1546. ElseIf ComboBox59.SelectedIndex = 2 Then : ComboBox19.BackColor = Color.LightCoral
  1547. ElseIf ComboBox59.SelectedIndex = 3 Then : ComboBox19.BackColor = Color.LightCyan
  1548. ElseIf ComboBox59.SelectedIndex = 4 Then : ComboBox19.BackColor = Color.LightGoldenrodYellow
  1549. ElseIf ComboBox59.SelectedIndex = 5 Then : ComboBox19.BackColor = Color.LightGray
  1550. ElseIf ComboBox59.SelectedIndex = 6 Then : ComboBox19.BackColor = Color.LightGreen
  1551. ElseIf ComboBox59.SelectedIndex = 7 Then : ComboBox19.BackColor = Color.LightPink
  1552. ElseIf ComboBox59.SelectedIndex = 8 Then : ComboBox19.BackColor = Color.LightSalmon
  1553. ElseIf ComboBox59.SelectedIndex = 9 Then : ComboBox19.BackColor = Color.Gray
  1554. End If
  1555. End Sub
  1556. Private Sub ComboBox60_SelectedIndexChanged(sender As Object, e As EventArgs) Handles ComboBox60.SelectedIndexChanged
  1557. If ComboBox60.SelectedIndex = 0 Then : ComboBox20.BackColor = Color.LawnGreen
  1558. ElseIf ComboBox60.SelectedIndex = 1 Then : ComboBox20.BackColor = Color.LightBlue
  1559. ElseIf ComboBox60.SelectedIndex = 2 Then : ComboBox20.BackColor = Color.LightCoral
  1560. ElseIf ComboBox60.SelectedIndex = 3 Then : ComboBox20.BackColor = Color.LightCyan
  1561. ElseIf ComboBox60.SelectedIndex = 4 Then : ComboBox20.BackColor = Color.LightGoldenrodYellow
  1562. ElseIf ComboBox60.SelectedIndex = 5 Then : ComboBox20.BackColor = Color.LightGray
  1563. ElseIf ComboBox60.SelectedIndex = 6 Then : ComboBox20.BackColor = Color.LightGreen
  1564. ElseIf ComboBox60.SelectedIndex = 7 Then : ComboBox20.BackColor = Color.LightPink
  1565. ElseIf ComboBox60.SelectedIndex = 8 Then : ComboBox20.BackColor = Color.LightSalmon
  1566. ElseIf ComboBox60.SelectedIndex = 9 Then : ComboBox20.BackColor = Color.Gray
  1567. End If
  1568. End Sub
  1569. Private Sub ComboBox61_SelectedIndexChanged(sender As Object, e As EventArgs) Handles ComboBox61.SelectedIndexChanged
  1570. If ComboBox61.SelectedIndex = 0 Then : ComboBox21.BackColor = Color.LawnGreen
  1571. ElseIf ComboBox61.SelectedIndex = 1 Then : ComboBox21.BackColor = Color.LightBlue
  1572. ElseIf ComboBox61.SelectedIndex = 2 Then : ComboBox21.BackColor = Color.LightCoral
  1573. ElseIf ComboBox61.SelectedIndex = 3 Then : ComboBox21.BackColor = Color.LightCyan
  1574. ElseIf ComboBox61.SelectedIndex = 4 Then : ComboBox21.BackColor = Color.LightGoldenrodYellow
  1575. ElseIf ComboBox61.SelectedIndex = 5 Then : ComboBox21.BackColor = Color.LightGray
  1576. ElseIf ComboBox61.SelectedIndex = 6 Then : ComboBox21.BackColor = Color.LightGreen
  1577. ElseIf ComboBox61.SelectedIndex = 7 Then : ComboBox21.BackColor = Color.LightPink
  1578. ElseIf ComboBox61.SelectedIndex = 8 Then : ComboBox21.BackColor = Color.LightSalmon
  1579. ElseIf ComboBox61.SelectedIndex = 9 Then : ComboBox21.BackColor = Color.Gray
  1580. End If
  1581. End Sub
  1582. Private Sub ComboBox62_SelectedIndexChanged(sender As Object, e As EventArgs) Handles ComboBox62.SelectedIndexChanged
  1583. If ComboBox62.SelectedIndex = 0 Then : ComboBox22.BackColor = Color.LawnGreen
  1584. ElseIf ComboBox62.SelectedIndex = 1 Then : ComboBox22.BackColor = Color.LightBlue
  1585. ElseIf ComboBox62.SelectedIndex = 2 Then : ComboBox22.BackColor = Color.LightCoral
  1586. ElseIf ComboBox62.SelectedIndex = 3 Then : ComboBox22.BackColor = Color.LightCyan
  1587. ElseIf ComboBox62.SelectedIndex = 4 Then : ComboBox22.BackColor = Color.LightGoldenrodYellow
  1588. ElseIf ComboBox62.SelectedIndex = 5 Then : ComboBox22.BackColor = Color.LightGray
  1589. ElseIf ComboBox62.SelectedIndex = 6 Then : ComboBox22.BackColor = Color.LightGreen
  1590. ElseIf ComboBox62.SelectedIndex = 7 Then : ComboBox22.BackColor = Color.LightPink
  1591. ElseIf ComboBox62.SelectedIndex = 8 Then : ComboBox22.BackColor = Color.LightSalmon
  1592. ElseIf ComboBox62.SelectedIndex = 9 Then : ComboBox22.BackColor = Color.Gray
  1593. End If
  1594. End Sub
  1595. Private Sub ComboBox63_SelectedIndexChanged(sender As Object, e As EventArgs) Handles ComboBox63.SelectedIndexChanged
  1596. If ComboBox63.SelectedIndex = 0 Then : ComboBox23.BackColor = Color.LawnGreen
  1597. ElseIf ComboBox63.SelectedIndex = 1 Then : ComboBox23.BackColor = Color.LightBlue
  1598. ElseIf ComboBox63.SelectedIndex = 2 Then : ComboBox23.BackColor = Color.LightCoral
  1599. ElseIf ComboBox63.SelectedIndex = 3 Then : ComboBox23.BackColor = Color.LightCyan
  1600. ElseIf ComboBox63.SelectedIndex = 4 Then : ComboBox23.BackColor = Color.LightGoldenrodYellow
  1601. ElseIf ComboBox63.SelectedIndex = 5 Then : ComboBox23.BackColor = Color.LightGray
  1602. ElseIf ComboBox63.SelectedIndex = 6 Then : ComboBox23.BackColor = Color.LightGreen
  1603. ElseIf ComboBox63.SelectedIndex = 7 Then : ComboBox23.BackColor = Color.LightPink
  1604. ElseIf ComboBox63.SelectedIndex = 8 Then : ComboBox23.BackColor = Color.LightSalmon
  1605. ElseIf ComboBox63.SelectedIndex = 9 Then : ComboBox23.BackColor = Color.Gray
  1606. End If
  1607. End Sub
  1608. Private Sub ComboBox64_SelectedIndexChanged(sender As Object, e As EventArgs) Handles ComboBox64.SelectedIndexChanged
  1609. If ComboBox64.SelectedIndex = 0 Then : ComboBox24.BackColor = Color.LawnGreen
  1610. ElseIf ComboBox64.SelectedIndex = 1 Then : ComboBox24.BackColor = Color.LightBlue
  1611. ElseIf ComboBox64.SelectedIndex = 2 Then : ComboBox24.BackColor = Color.LightCoral
  1612. ElseIf ComboBox64.SelectedIndex = 3 Then : ComboBox24.BackColor = Color.LightCyan
  1613. ElseIf ComboBox64.SelectedIndex = 4 Then : ComboBox24.BackColor = Color.LightGoldenrodYellow
  1614. ElseIf ComboBox64.SelectedIndex = 5 Then : ComboBox24.BackColor = Color.LightGray
  1615. ElseIf ComboBox64.SelectedIndex = 6 Then : ComboBox24.BackColor = Color.LightGreen
  1616. ElseIf ComboBox64.SelectedIndex = 7 Then : ComboBox24.BackColor = Color.LightPink
  1617. ElseIf ComboBox64.SelectedIndex = 8 Then : ComboBox24.BackColor = Color.LightSalmon
  1618. ElseIf ComboBox64.SelectedIndex = 9 Then : ComboBox24.BackColor = Color.Gray
  1619. End If
  1620. End Sub
  1621. Private Sub ComboBox65_SelectedIndexChanged(sender As Object, e As EventArgs) Handles ComboBox65.SelectedIndexChanged
  1622. If ComboBox65.SelectedIndex = 0 Then : ComboBox25.BackColor = Color.LawnGreen
  1623. ElseIf ComboBox65.SelectedIndex = 1 Then : ComboBox25.BackColor = Color.LightBlue
  1624. ElseIf ComboBox65.SelectedIndex = 2 Then : ComboBox25.BackColor = Color.LightCoral
  1625. ElseIf ComboBox65.SelectedIndex = 3 Then : ComboBox25.BackColor = Color.LightCyan
  1626. ElseIf ComboBox65.SelectedIndex = 4 Then : ComboBox25.BackColor = Color.LightGoldenrodYellow
  1627. ElseIf ComboBox65.SelectedIndex = 5 Then : ComboBox25.BackColor = Color.LightGray
  1628. ElseIf ComboBox65.SelectedIndex = 6 Then : ComboBox25.BackColor = Color.LightGreen
  1629. ElseIf ComboBox65.SelectedIndex = 7 Then : ComboBox25.BackColor = Color.LightPink
  1630. ElseIf ComboBox65.SelectedIndex = 8 Then : ComboBox25.BackColor = Color.LightSalmon
  1631. ElseIf ComboBox65.SelectedIndex = 9 Then : ComboBox25.BackColor = Color.Gray
  1632. End If
  1633. End Sub
  1634. Private Sub ComboBox66_SelectedIndexChanged(sender As Object, e As EventArgs) Handles ComboBox66.SelectedIndexChanged
  1635. If ComboBox66.SelectedIndex = 0 Then : ComboBox26.BackColor = Color.LawnGreen
  1636. ElseIf ComboBox66.SelectedIndex = 1 Then : ComboBox26.BackColor = Color.LightBlue
  1637. ElseIf ComboBox66.SelectedIndex = 2 Then : ComboBox26.BackColor = Color.LightCoral
  1638. ElseIf ComboBox66.SelectedIndex = 3 Then : ComboBox26.BackColor = Color.LightCyan
  1639. ElseIf ComboBox66.SelectedIndex = 4 Then : ComboBox26.BackColor = Color.LightGoldenrodYellow
  1640. ElseIf ComboBox66.SelectedIndex = 5 Then : ComboBox26.BackColor = Color.LightGray
  1641. ElseIf ComboBox66.SelectedIndex = 6 Then : ComboBox26.BackColor = Color.LightGreen
  1642. ElseIf ComboBox66.SelectedIndex = 7 Then : ComboBox26.BackColor = Color.LightPink
  1643. ElseIf ComboBox66.SelectedIndex = 8 Then : ComboBox26.BackColor = Color.LightSalmon
  1644. ElseIf ComboBox66.SelectedIndex = 9 Then : ComboBox26.BackColor = Color.Gray
  1645. End If
  1646. End Sub
  1647. Private Sub ComboBox67_SelectedIndexChanged(sender As Object, e As EventArgs) Handles ComboBox67.SelectedIndexChanged
  1648. If ComboBox67.SelectedIndex = 0 Then : ComboBox27.BackColor = Color.LawnGreen
  1649. ElseIf ComboBox67.SelectedIndex = 1 Then : ComboBox27.BackColor = Color.LightBlue
  1650. ElseIf ComboBox67.SelectedIndex = 2 Then : ComboBox27.BackColor = Color.LightCoral
  1651. ElseIf ComboBox67.SelectedIndex = 3 Then : ComboBox27.BackColor = Color.LightCyan
  1652. ElseIf ComboBox67.SelectedIndex = 4 Then : ComboBox27.BackColor = Color.LightGoldenrodYellow
  1653. ElseIf ComboBox67.SelectedIndex = 5 Then : ComboBox27.BackColor = Color.LightGray
  1654. ElseIf ComboBox67.SelectedIndex = 6 Then : ComboBox27.BackColor = Color.LightGreen
  1655. ElseIf ComboBox67.SelectedIndex = 7 Then : ComboBox27.BackColor = Color.LightPink
  1656. ElseIf ComboBox67.SelectedIndex = 8 Then : ComboBox27.BackColor = Color.LightSalmon
  1657. ElseIf ComboBox67.SelectedIndex = 9 Then : ComboBox27.BackColor = Color.Gray
  1658. End If
  1659. End Sub
  1660. Private Sub ComboBox68_SelectedIndexChanged(sender As Object, e As EventArgs) Handles ComboBox68.SelectedIndexChanged
  1661. If ComboBox68.SelectedIndex = 0 Then : ComboBox28.BackColor = Color.LawnGreen
  1662. ElseIf ComboBox68.SelectedIndex = 1 Then : ComboBox28.BackColor = Color.LightBlue
  1663. ElseIf ComboBox68.SelectedIndex = 2 Then : ComboBox28.BackColor = Color.LightCoral
  1664. ElseIf ComboBox68.SelectedIndex = 3 Then : ComboBox28.BackColor = Color.LightCyan
  1665. ElseIf ComboBox68.SelectedIndex = 4 Then : ComboBox28.BackColor = Color.LightGoldenrodYellow
  1666. ElseIf ComboBox68.SelectedIndex = 5 Then : ComboBox28.BackColor = Color.LightGray
  1667. ElseIf ComboBox68.SelectedIndex = 6 Then : ComboBox28.BackColor = Color.LightGreen
  1668. ElseIf ComboBox68.SelectedIndex = 7 Then : ComboBox28.BackColor = Color.LightPink
  1669. ElseIf ComboBox68.SelectedIndex = 8 Then : ComboBox28.BackColor = Color.LightSalmon
  1670. ElseIf ComboBox68.SelectedIndex = 9 Then : ComboBox28.BackColor = Color.Gray
  1671. End If
  1672. End Sub
  1673. Private Sub ComboBox69_SelectedIndexChanged(sender As Object, e As EventArgs) Handles ComboBox69.SelectedIndexChanged
  1674. If ComboBox69.SelectedIndex = 0 Then : ComboBox29.BackColor = Color.LawnGreen
  1675. ElseIf ComboBox69.SelectedIndex = 1 Then : ComboBox29.BackColor = Color.LightBlue
  1676. ElseIf ComboBox69.SelectedIndex = 2 Then : ComboBox29.BackColor = Color.LightCoral
  1677. ElseIf ComboBox69.SelectedIndex = 3 Then : ComboBox29.BackColor = Color.LightCyan
  1678. ElseIf ComboBox69.SelectedIndex = 4 Then : ComboBox29.BackColor = Color.LightGoldenrodYellow
  1679. ElseIf ComboBox69.SelectedIndex = 5 Then : ComboBox29.BackColor = Color.LightGray
  1680. ElseIf ComboBox69.SelectedIndex = 6 Then : ComboBox29.BackColor = Color.LightGreen
  1681. ElseIf ComboBox69.SelectedIndex = 7 Then : ComboBox29.BackColor = Color.LightPink
  1682. ElseIf ComboBox69.SelectedIndex = 8 Then : ComboBox29.BackColor = Color.LightSalmon
  1683. ElseIf ComboBox69.SelectedIndex = 9 Then : ComboBox29.BackColor = Color.Gray
  1684. End If
  1685. End Sub
  1686. Private Sub ComboBox70_SelectedIndexChanged(sender As Object, e As EventArgs) Handles ComboBox70.SelectedIndexChanged
  1687. If ComboBox70.SelectedIndex = 0 Then : ComboBox30.BackColor = Color.LawnGreen
  1688. ElseIf ComboBox70.SelectedIndex = 1 Then : ComboBox30.BackColor = Color.LightBlue
  1689. ElseIf ComboBox70.SelectedIndex = 2 Then : ComboBox30.BackColor = Color.LightCoral
  1690. ElseIf ComboBox70.SelectedIndex = 3 Then : ComboBox30.BackColor = Color.LightCyan
  1691. ElseIf ComboBox70.SelectedIndex = 4 Then : ComboBox30.BackColor = Color.LightGoldenrodYellow
  1692. ElseIf ComboBox70.SelectedIndex = 5 Then : ComboBox30.BackColor = Color.LightGray
  1693. ElseIf ComboBox70.SelectedIndex = 6 Then : ComboBox30.BackColor = Color.LightGreen
  1694. ElseIf ComboBox70.SelectedIndex = 7 Then : ComboBox30.BackColor = Color.LightPink
  1695. ElseIf ComboBox70.SelectedIndex = 8 Then : ComboBox30.BackColor = Color.LightSalmon
  1696. ElseIf ComboBox70.SelectedIndex = 9 Then : ComboBox30.BackColor = Color.Gray
  1697. End If
  1698. End Sub
  1699. Private Sub ComboBox71_SelectedIndexChanged(sender As Object, e As EventArgs) Handles ComboBox71.SelectedIndexChanged
  1700. If ComboBox71.SelectedIndex = 0 Then : ComboBox31.BackColor = Color.LawnGreen
  1701. ElseIf ComboBox71.SelectedIndex = 1 Then : ComboBox31.BackColor = Color.LightBlue
  1702. ElseIf ComboBox71.SelectedIndex = 2 Then : ComboBox31.BackColor = Color.LightCoral
  1703. ElseIf ComboBox71.SelectedIndex = 3 Then : ComboBox31.BackColor = Color.LightCyan
  1704. ElseIf ComboBox71.SelectedIndex = 4 Then : ComboBox31.BackColor = Color.LightGoldenrodYellow
  1705. ElseIf ComboBox71.SelectedIndex = 5 Then : ComboBox31.BackColor = Color.LightGray
  1706. ElseIf ComboBox71.SelectedIndex = 6 Then : ComboBox31.BackColor = Color.LightGreen
  1707. ElseIf ComboBox71.SelectedIndex = 7 Then : ComboBox31.BackColor = Color.LightPink
  1708. ElseIf ComboBox71.SelectedIndex = 8 Then : ComboBox31.BackColor = Color.LightSalmon
  1709. ElseIf ComboBox71.SelectedIndex = 9 Then : ComboBox31.BackColor = Color.Gray
  1710. End If
  1711. End Sub
  1712. Private Sub ComboBox72_SelectedIndexChanged(sender As Object, e As EventArgs) Handles ComboBox72.SelectedIndexChanged
  1713. If ComboBox72.SelectedIndex = 0 Then : ComboBox32.BackColor = Color.LawnGreen
  1714. ElseIf ComboBox72.SelectedIndex = 1 Then : ComboBox32.BackColor = Color.LightBlue
  1715. ElseIf ComboBox72.SelectedIndex = 2 Then : ComboBox32.BackColor = Color.LightCoral
  1716. ElseIf ComboBox72.SelectedIndex = 3 Then : ComboBox32.BackColor = Color.LightCyan
  1717. ElseIf ComboBox72.SelectedIndex = 4 Then : ComboBox32.BackColor = Color.LightGoldenrodYellow
  1718. ElseIf ComboBox72.SelectedIndex = 5 Then : ComboBox32.BackColor = Color.LightGray
  1719. ElseIf ComboBox72.SelectedIndex = 6 Then : ComboBox32.BackColor = Color.LightGreen
  1720. ElseIf ComboBox72.SelectedIndex = 7 Then : ComboBox32.BackColor = Color.LightPink
  1721. ElseIf ComboBox72.SelectedIndex = 8 Then : ComboBox32.BackColor = Color.LightSalmon
  1722. ElseIf ComboBox72.SelectedIndex = 9 Then : ComboBox32.BackColor = Color.Gray
  1723. End If
  1724. End Sub
  1725. Private Sub ComboBox73_SelectedIndexChanged(sender As Object, e As EventArgs) Handles ComboBox73.SelectedIndexChanged
  1726. If ComboBox73.SelectedIndex = 0 Then : ComboBox33.BackColor = Color.LawnGreen
  1727. ElseIf ComboBox73.SelectedIndex = 1 Then : ComboBox33.BackColor = Color.LightBlue
  1728. ElseIf ComboBox73.SelectedIndex = 2 Then : ComboBox33.BackColor = Color.LightCoral
  1729. ElseIf ComboBox73.SelectedIndex = 3 Then : ComboBox33.BackColor = Color.LightCyan
  1730. ElseIf ComboBox73.SelectedIndex = 4 Then : ComboBox33.BackColor = Color.LightGoldenrodYellow
  1731. ElseIf ComboBox73.SelectedIndex = 5 Then : ComboBox33.BackColor = Color.LightGray
  1732. ElseIf ComboBox73.SelectedIndex = 6 Then : ComboBox33.BackColor = Color.LightGreen
  1733. ElseIf ComboBox73.SelectedIndex = 7 Then : ComboBox33.BackColor = Color.LightPink
  1734. ElseIf ComboBox73.SelectedIndex = 8 Then : ComboBox33.BackColor = Color.LightSalmon
  1735. ElseIf ComboBox73.SelectedIndex = 9 Then : ComboBox33.BackColor = Color.Gray
  1736. End If
  1737. End Sub
  1738. Private Sub ComboBox74_SelectedIndexChanged(sender As Object, e As EventArgs) Handles ComboBox74.SelectedIndexChanged
  1739. If ComboBox74.SelectedIndex = 0 Then : ComboBox34.BackColor = Color.LawnGreen
  1740. ElseIf ComboBox74.SelectedIndex = 1 Then : ComboBox34.BackColor = Color.LightBlue
  1741. ElseIf ComboBox74.SelectedIndex = 2 Then : ComboBox34.BackColor = Color.LightCoral
  1742. ElseIf ComboBox74.SelectedIndex = 3 Then : ComboBox34.BackColor = Color.LightCyan
  1743. ElseIf ComboBox74.SelectedIndex = 4 Then : ComboBox34.BackColor = Color.LightGoldenrodYellow
  1744. ElseIf ComboBox74.SelectedIndex = 5 Then : ComboBox34.BackColor = Color.LightGray
  1745. ElseIf ComboBox74.SelectedIndex = 6 Then : ComboBox34.BackColor = Color.LightGreen
  1746. ElseIf ComboBox74.SelectedIndex = 7 Then : ComboBox34.BackColor = Color.LightPink
  1747. ElseIf ComboBox74.SelectedIndex = 8 Then : ComboBox34.BackColor = Color.LightSalmon
  1748. ElseIf ComboBox74.SelectedIndex = 9 Then : ComboBox34.BackColor = Color.Gray
  1749. End If
  1750. End Sub
  1751. Private Sub ComboBox75_SelectedIndexChanged(sender As Object, e As EventArgs) Handles ComboBox75.SelectedIndexChanged
  1752. If ComboBox75.SelectedIndex = 0 Then : ComboBox35.BackColor = Color.LawnGreen
  1753. ElseIf ComboBox75.SelectedIndex = 1 Then : ComboBox35.BackColor = Color.LightBlue
  1754. ElseIf ComboBox75.SelectedIndex = 2 Then : ComboBox35.BackColor = Color.LightCoral
  1755. ElseIf ComboBox75.SelectedIndex = 3 Then : ComboBox35.BackColor = Color.LightCyan
  1756. ElseIf ComboBox75.SelectedIndex = 4 Then : ComboBox35.BackColor = Color.LightGoldenrodYellow
  1757. ElseIf ComboBox75.SelectedIndex = 5 Then : ComboBox35.BackColor = Color.LightGray
  1758. ElseIf ComboBox75.SelectedIndex = 6 Then : ComboBox35.BackColor = Color.LightGreen
  1759. ElseIf ComboBox75.SelectedIndex = 7 Then : ComboBox35.BackColor = Color.LightPink
  1760. ElseIf ComboBox75.SelectedIndex = 8 Then : ComboBox35.BackColor = Color.LightSalmon
  1761. ElseIf ComboBox75.SelectedIndex = 9 Then : ComboBox35.BackColor = Color.Gray
  1762. End If
  1763. End Sub
  1764. Private Sub ComboBox76_SelectedIndexChanged(sender As Object, e As EventArgs) Handles ComboBox76.SelectedIndexChanged
  1765. If ComboBox76.SelectedIndex = 0 Then : ComboBox36.BackColor = Color.LawnGreen
  1766. ElseIf ComboBox76.SelectedIndex = 1 Then : ComboBox36.BackColor = Color.LightBlue
  1767. ElseIf ComboBox76.SelectedIndex = 2 Then : ComboBox36.BackColor = Color.LightCoral
  1768. ElseIf ComboBox76.SelectedIndex = 3 Then : ComboBox36.BackColor = Color.LightCyan
  1769. ElseIf ComboBox76.SelectedIndex = 4 Then : ComboBox36.BackColor = Color.LightGoldenrodYellow
  1770. ElseIf ComboBox76.SelectedIndex = 5 Then : ComboBox36.BackColor = Color.LightGray
  1771. ElseIf ComboBox76.SelectedIndex = 6 Then : ComboBox36.BackColor = Color.LightGreen
  1772. ElseIf ComboBox76.SelectedIndex = 7 Then : ComboBox36.BackColor = Color.LightPink
  1773. ElseIf ComboBox76.SelectedIndex = 8 Then : ComboBox36.BackColor = Color.LightSalmon
  1774. ElseIf ComboBox76.SelectedIndex = 9 Then : ComboBox36.BackColor = Color.Gray
  1775. End If
  1776. End Sub
  1777. Private Sub ComboBox77_SelectedIndexChanged(sender As Object, e As EventArgs) Handles ComboBox77.SelectedIndexChanged
  1778. If ComboBox77.SelectedIndex = 0 Then : ComboBox37.BackColor = Color.LawnGreen
  1779. ElseIf ComboBox77.SelectedIndex = 1 Then : ComboBox37.BackColor = Color.LightBlue
  1780. ElseIf ComboBox77.SelectedIndex = 2 Then : ComboBox37.BackColor = Color.LightCoral
  1781. ElseIf ComboBox77.SelectedIndex = 3 Then : ComboBox37.BackColor = Color.LightCyan
  1782. ElseIf ComboBox77.SelectedIndex = 4 Then : ComboBox37.BackColor = Color.LightGoldenrodYellow
  1783. ElseIf ComboBox77.SelectedIndex = 5 Then : ComboBox37.BackColor = Color.LightGray
  1784. ElseIf ComboBox77.SelectedIndex = 6 Then : ComboBox37.BackColor = Color.LightGreen
  1785. ElseIf ComboBox77.SelectedIndex = 7 Then : ComboBox37.BackColor = Color.LightPink
  1786. ElseIf ComboBox77.SelectedIndex = 8 Then : ComboBox37.BackColor = Color.LightSalmon
  1787. ElseIf ComboBox77.SelectedIndex = 9 Then : ComboBox37.BackColor = Color.Gray
  1788. End If
  1789. End Sub
  1790. Private Sub ComboBox78_SelectedIndexChanged(sender As Object, e As EventArgs) Handles ComboBox78.SelectedIndexChanged
  1791. If ComboBox78.SelectedIndex = 0 Then : ComboBox38.BackColor = Color.LawnGreen
  1792. ElseIf ComboBox78.SelectedIndex = 1 Then : ComboBox38.BackColor = Color.LightBlue
  1793. ElseIf ComboBox78.SelectedIndex = 2 Then : ComboBox38.BackColor = Color.LightCoral
  1794. ElseIf ComboBox78.SelectedIndex = 3 Then : ComboBox38.BackColor = Color.LightCyan
  1795. ElseIf ComboBox78.SelectedIndex = 4 Then : ComboBox38.BackColor = Color.LightGoldenrodYellow
  1796. ElseIf ComboBox78.SelectedIndex = 5 Then : ComboBox38.BackColor = Color.LightGray
  1797. ElseIf ComboBox78.SelectedIndex = 6 Then : ComboBox38.BackColor = Color.LightGreen
  1798. ElseIf ComboBox78.SelectedIndex = 7 Then : ComboBox38.BackColor = Color.LightPink
  1799. ElseIf ComboBox78.SelectedIndex = 8 Then : ComboBox38.BackColor = Color.LightSalmon
  1800. ElseIf ComboBox78.SelectedIndex = 9 Then : ComboBox38.BackColor = Color.Gray
  1801. End If
  1802. End Sub
  1803. Private Sub ComboBox79_SelectedIndexChanged(sender As Object, e As EventArgs) Handles ComboBox79.SelectedIndexChanged
  1804. If ComboBox79.SelectedIndex = 0 Then : ComboBox39.BackColor = Color.LawnGreen
  1805. ElseIf ComboBox79.SelectedIndex = 1 Then : ComboBox39.BackColor = Color.LightBlue
  1806. ElseIf ComboBox79.SelectedIndex = 2 Then : ComboBox39.BackColor = Color.LightCoral
  1807. ElseIf ComboBox79.SelectedIndex = 3 Then : ComboBox39.BackColor = Color.LightCyan
  1808. ElseIf ComboBox79.SelectedIndex = 4 Then : ComboBox39.BackColor = Color.LightGoldenrodYellow
  1809. ElseIf ComboBox79.SelectedIndex = 5 Then : ComboBox39.BackColor = Color.LightGray
  1810. ElseIf ComboBox79.SelectedIndex = 6 Then : ComboBox39.BackColor = Color.LightGreen
  1811. ElseIf ComboBox79.SelectedIndex = 7 Then : ComboBox39.BackColor = Color.LightPink
  1812. ElseIf ComboBox79.SelectedIndex = 8 Then : ComboBox39.BackColor = Color.LightSalmon
  1813. ElseIf ComboBox79.SelectedIndex = 9 Then : ComboBox39.BackColor = Color.Gray
  1814. End If
  1815. End Sub
  1816. Private Sub ComboBox80_SelectedIndexChanged(sender As Object, e As EventArgs) Handles ComboBox80.SelectedIndexChanged
  1817. If ComboBox80.SelectedIndex = 0 Then : ComboBox40.BackColor = Color.LawnGreen
  1818. ElseIf ComboBox80.SelectedIndex = 1 Then : ComboBox40.BackColor = Color.LightBlue
  1819. ElseIf ComboBox80.SelectedIndex = 2 Then : ComboBox40.BackColor = Color.LightCoral
  1820. ElseIf ComboBox80.SelectedIndex = 3 Then : ComboBox40.BackColor = Color.LightCyan
  1821. ElseIf ComboBox80.SelectedIndex = 4 Then : ComboBox40.BackColor = Color.LightGoldenrodYellow
  1822. ElseIf ComboBox80.SelectedIndex = 5 Then : ComboBox40.BackColor = Color.LightGray
  1823. ElseIf ComboBox80.SelectedIndex = 6 Then : ComboBox40.BackColor = Color.LightGreen
  1824. ElseIf ComboBox80.SelectedIndex = 7 Then : ComboBox40.BackColor = Color.LightPink
  1825. ElseIf ComboBox80.SelectedIndex = 8 Then : ComboBox40.BackColor = Color.LightSalmon
  1826. ElseIf ComboBox80.SelectedIndex = 9 Then : ComboBox40.BackColor = Color.Gray
  1827. End If
  1828. End Sub
  1829. Private Sub 簽核_bt_Click(sender As Object, e As EventArgs) Handles 簽核_bt.Click
  1830. PA = 年_lb.Text & "/" & 月_lb.Text & "/" & 日_lb.Text : SQL_排班簽核() : MsgBox("簽核完畢!!!")
  1831. 簽核_bt.Enabled = False
  1832. 班表鎖定變化()
  1833. End Sub
  1834. Private Sub 解鎖_ch_CheckedChanged(sender As Object, e As EventArgs) Handles 解鎖_ch.Click
  1835. If 解鎖_ch.Checked = True Then
  1836. PA = InputBox("修改已鎖定班表請輸入密碼!!")
  1837. If PA = "753582" Then
  1838. 解鎖_ch.Checked = True
  1839. 簽核_bt.Enabled = True
  1840. 班表鎖定變化()
  1841. Else
  1842. MsgBox("密碼錯誤!!")
  1843. 解鎖_ch.Checked = False
  1844. 簽核_bt.Enabled = False
  1845. 班表鎖定變化()
  1846. End If
  1847. ElseIf 解鎖_ch.Checked = False Then
  1848. 解鎖_ch.Checked = False
  1849. 簽核_bt.Enabled = False
  1850. 班表鎖定變化()
  1851. End If
  1852. End Sub
  1853. Private Sub ComboBox40_SelectedIndexChanged(sender As Object, e As EventArgs) Handles ComboBox40.TextChanged
  1854. If ComboBox40.Text = "" Then : ComboBox40.DropDownStyle = 1 : Else : ComboBox40.DropDownStyle = 0 : End If
  1855. End Sub
  1856. Private Sub 存檔_bt_Click(sender As Object, e As EventArgs) Handles 存檔_bt.Click
  1857. PA = 年_lb.Text & "/" & 月_lb.Text & "/" & 日_lb.Text
  1858. SQL_排班明細_判斷是否有資料()
  1859. If dr.Read() Then
  1860. SQL_排班明細_刪除當天()
  1861. End If
  1862. Q = 0
  1863. For no As Integer = 1 To 20
  1864. Dim 姓名_tbS As TextBox = CType(Me.Controls.Find("姓名_tb" + no.ToString(), True)(0), TextBox)
  1865. Dim 班別_cbS As ComboBox = CType(Me.Controls.Find("班別_cb" + no.ToString(), True)(0), ComboBox)
  1866. Dim A_lbS As Label = CType(Me.Controls.Find("A_lb" + no.ToString(), True)(0), Label)
  1867. Dim CheckBoxS As CheckBox = CType(Me.Controls.Find("CheckBox" + no.ToString(), True)(0), CheckBox)
  1868. Dim NumericUpDownS As NumericUpDown = CType(Me.Controls.Find("NumericUpDown" + no.ToString(), True)(0), NumericUpDown)
  1869. Dim NUPS As NumericUpDown = CType(Me.Controls.Find("NUP" + no.ToString(), True)(0), NumericUpDown)
  1870. Dim ComboBoxsS1 As ComboBox = CType(Me.Controls.Find("ComboBox" + (no + 40 + Q).ToString(), True)(0), ComboBox)
  1871. Dim ComboBoxsS2 As ComboBox = CType(Me.Controls.Find("ComboBox" + (no + 40 + 1 + Q).ToString(), True)(0), ComboBox)
  1872. Dim ComboBoxs1 As ComboBox = CType(Me.Controls.Find("ComboBox" + (no + Q).ToString(), True)(0), ComboBox)
  1873. Dim ComboBoxs2 As ComboBox = CType(Me.Controls.Find("ComboBox" + (no + 1 + Q).ToString(), True)(0), ComboBox) : Q += 1
  1874. PA1 = A_lbS.Text : PA2 = 姓名_tbS.Text : PA3 = 班別_cbS.Text : BL1 = CheckBoxS.Checked : Do1 = NUPS.Value
  1875. PA5 = ComboBoxs1.Text : PA6 = ComboBoxs2.Text : PA7 = ComboBoxsS1.Text : PA8 = ComboBoxsS2.Text
  1876. SQL_排班明細_上午上班()
  1877. If dr.Read() Then : PA4 = dr("上午上班") : End If
  1878. If CheckBoxS.Checked = False Then
  1879. Do3 = 8
  1880. Else
  1881. Do3 = NumericUpDownS.Value
  1882. End If
  1883. Do2 = NumericUpDownS.Value
  1884. SQL_排班明細_新增當天()
  1885. Next
  1886. PA = 年_lb.Text & "/" & 月_lb.Text & "/" & 日_lb.Text : PA13 = 值日生1_bt.Text : PA14 = 值日生2_bt.Text
  1887. SQL_值日生存檔()
  1888. 解鎖_ch.Checked = False : 重新讀取()
  1889. MsgBox("存檔完成!!")
  1890. End Sub
  1891. Private Sub 複製班表_bt_Click(sender As Object, e As EventArgs) Handles 複製班表_bt.Click
  1892. Dim FF = MsgBox("確定要已該班表做模板複製到 " & Format(指定日期_dtp.Value, "yyyy/MM/dd") & " 去嗎 ?", MsgBoxStyle.OkCancel)
  1893. If FF = MsgBoxResult.Ok Then
  1894. PA = Format(指定日期_dtp.Value, "yyyy/MM/dd")
  1895. SQL_排班明細_判斷是否有資料()
  1896. If dr.Read() Then
  1897. SQL_排班明細_刪除當天()
  1898. End If
  1899. Q = 0
  1900. For no As Integer = 1 To 20
  1901. Dim 姓名_tbS As TextBox = CType(Me.Controls.Find("姓名_tb" + no.ToString(), True)(0), TextBox)
  1902. Dim 班別_cbS As ComboBox = CType(Me.Controls.Find("班別_cb" + no.ToString(), True)(0), ComboBox)
  1903. Dim A_lbS As Label = CType(Me.Controls.Find("A_lb" + no.ToString(), True)(0), Label)
  1904. Dim CheckBoxS As CheckBox = CType(Me.Controls.Find("CheckBox" + no.ToString(), True)(0), CheckBox)
  1905. Dim NumericUpDownS As NumericUpDown = CType(Me.Controls.Find("NumericUpDown" + no.ToString(), True)(0), NumericUpDown)
  1906. Dim NUPS As NumericUpDown = CType(Me.Controls.Find("NUP" + no.ToString(), True)(0), NumericUpDown)
  1907. Dim ComboBoxsS1 As ComboBox = CType(Me.Controls.Find("ComboBox" + (no + 40 + Q).ToString(), True)(0), ComboBox)
  1908. Dim ComboBoxsS2 As ComboBox = CType(Me.Controls.Find("ComboBox" + (no + 40 + 1 + Q).ToString(), True)(0), ComboBox)
  1909. Dim ComboBoxs1 As ComboBox = CType(Me.Controls.Find("ComboBox" + (no + Q).ToString(), True)(0), ComboBox)
  1910. Dim ComboBoxs2 As ComboBox = CType(Me.Controls.Find("ComboBox" + (no + 1 + Q).ToString(), True)(0), ComboBox) : Q += 1
  1911. PA1 = A_lbS.Text : PA2 = 姓名_tbS.Text : PA3 = 班別_cbS.Text : BL1 = CheckBoxS.Checked : Do1 = NUPS.Value
  1912. PA5 = ComboBoxs1.Text : PA6 = ComboBoxs2.Text : PA7 = ComboBoxsS1.Text : PA8 = ComboBoxsS2.Text
  1913. SQL_排班明細_上午上班()
  1914. If dr.Read() Then : PA4 = dr("上午上班") : End If
  1915. If CheckBoxS.Checked = False Then
  1916. Do3 = 8
  1917. Else
  1918. Do3 = NumericUpDownS.Value
  1919. End If
  1920. Do2 = NumericUpDownS.Value
  1921. SQL_排班明細_新增當天()
  1922. Next : MsgBox("存檔完成,請切換到指定日期去查看!!")
  1923. End If
  1924. End Sub
  1925. Private Sub 人員_dgv_CellContentClick_1(sender As Object, e As DataGridViewCellEventArgs) Handles 人員_dgv.CellDoubleClick
  1926. If e.RowIndex = -1 Then : Else
  1927. PA = 人員_dgv("編號", e.RowIndex).Value.ToString : PA1 = 人員_dgv("姓名", e.RowIndex).Value.ToString
  1928. End If
  1929. For no As Integer = 1 To 20
  1930. Dim 姓名_tbS As TextBox = CType(Me.Controls.Find("姓名_tb" + no.ToString(), True)(0), TextBox)
  1931. If 姓名_tbS.Text = PA1 Then
  1932. MsgBox("該人員已在班表內,無須再新增!!") : Exit Sub
  1933. End If
  1934. Next
  1935. For no As Integer = 1 To 20
  1936. Dim 姓名_tbS As TextBox = CType(Me.Controls.Find("姓名_tb" + no.ToString(), True)(0), TextBox)
  1937. If 姓名_tbS.Text <> "" Then
  1938. Else
  1939. 姓名_tbS.Text = PA1 : Exit For
  1940. End If
  1941. Next
  1942. End Sub
  1943. End Class