123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820 |
- Option Strict Off
- Public Class 排班資料
- ReadOnly ds, ds1, ds2, ds3, ds4, ds5, ds6, ds7, ds8, ds9, ds10, ds11, ds12, ds13, ds14, ds15, ds16, ds17, ds18, ds19, ds20, ds21, ds22, ds23, ds24, ds25, ds26, ds27, ds28, ds29, ds30, ds31,
- ds32, ds33, ds34, ds35, ds36, ds37, ds38, ds39, ds40, ds41, ds42, ds43 As New DataSet
- Dim 星期 As String : Dim 天數, 總時數, 列高, 列高1 As Integer
- Dim 首次開啟 As Boolean
- Private Sub 年份_下拉表單資料載入()
- SQL_考勤明細表_年份_下拉()
- 年份_cb.Items.Clear()
- While (dr.Read()) : 年份_cb.Items.Add(dr("年份")) : End While
- conn.Close()
- End Sub
- Private Sub 讀取排班()
- 人員彙總_dgv.DataSource = Nothing : ds43.Clear()
- 人員彙總_dgv.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
- 人員彙總_dgv.ColumnHeadersHeight = 40 : 人員彙總_dgv.AllowUserToAddRows = False
- SQL_排班系統_人員排班()
- da.Fill(ds43) : 人員彙總_dgv.DataSource = ds43.Tables(0) : conn.Close()
- 人員彙總_dgv.Columns(0).ReadOnly = True : 人員彙總_dgv.Columns(1).ReadOnly = True : 人員彙總_dgv.Columns(2).ReadOnly = True
- 人員彙總_dgv.Columns(3).ReadOnly = True : 人員彙總_dgv.Columns(4).ReadOnly = True
- 人員彙總_dgv.Columns(3).DefaultCellStyle.Format = "#,##0.0"
- 人員彙總_dgv.Columns(4).DefaultCellStyle.Format = "#,##0.0"
- End Sub
- Private Sub 讀取日期()
- 日期_dgv.DataSource = Nothing : ds.Clear()
- 日期_dgv.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
- 日期_dgv.ColumnHeadersHeight = 25 : 日期_dgv.AllowUserToAddRows = False
- SQL_排班系統_月份()
- da.Fill(ds) : 日期_dgv.DataSource = ds.Tables(0) : conn.Close()
- End Sub
- Private Sub 讀取班別1()
- DataGridView1.DataSource = Nothing : ds1.Clear()
- DataGridView1.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
- DataGridView1.ColumnHeadersHeight = 列高1 : DataGridView1.AllowUserToAddRows = False : DataGridView1.RowTemplate.Height = 列高
- SQL_排班系統_當天排班()
- da.Fill(ds1) : DataGridView1.DataSource = ds1.Tables(0) : conn.Close()
- End Sub
- Private Sub 讀取班別2()
- DataGridView2.DataSource = Nothing : ds2.Clear()
- DataGridView2.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
- DataGridView2.ColumnHeadersHeight = 列高1 : DataGridView2.AllowUserToAddRows = False : DataGridView2.RowTemplate.Height = 列高
- SQL_排班系統_當天排班()
- da.Fill(ds2) : DataGridView2.DataSource = ds2.Tables(0) : conn.Close()
- End Sub
- Private Sub 讀取班別3()
- DataGridView3.DataSource = Nothing : ds3.Clear()
- DataGridView3.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
- DataGridView3.ColumnHeadersHeight = 列高1 : DataGridView3.AllowUserToAddRows = False : DataGridView3.RowTemplate.Height = 列高
- SQL_排班系統_當天排班()
- da.Fill(ds3) : DataGridView3.DataSource = ds3.Tables(0) : conn.Close()
- End Sub
- Private Sub 讀取班別4()
- DataGridView4.DataSource = Nothing : ds4.Clear()
- DataGridView4.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
- DataGridView4.ColumnHeadersHeight = 列高1 : DataGridView4.AllowUserToAddRows = False : DataGridView4.RowTemplate.Height = 列高
- SQL_排班系統_當天排班()
- da.Fill(ds4) : DataGridView4.DataSource = ds4.Tables(0) : conn.Close()
- End Sub
- Private Sub 讀取班別5()
- DataGridView5.DataSource = Nothing : ds5.Clear()
- DataGridView5.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
- DataGridView5.ColumnHeadersHeight = 列高1 : DataGridView5.AllowUserToAddRows = False : DataGridView5.RowTemplate.Height = 列高
- SQL_排班系統_當天排班()
- da.Fill(ds5) : DataGridView5.DataSource = ds5.Tables(0) : conn.Close()
- End Sub
- Private Sub 讀取班別6()
- DataGridView6.DataSource = Nothing : ds6.Clear()
- DataGridView6.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
- DataGridView6.ColumnHeadersHeight = 列高1 : DataGridView6.AllowUserToAddRows = False : DataGridView6.RowTemplate.Height = 列高
- SQL_排班系統_當天排班()
- da.Fill(ds6) : DataGridView6.DataSource = ds6.Tables(0) : conn.Close()
- End Sub
- Private Sub 讀取班別7()
- DataGridView7.DataSource = Nothing : ds7.Clear()
- DataGridView7.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
- DataGridView7.ColumnHeadersHeight = 列高1 : DataGridView7.AllowUserToAddRows = False : DataGridView7.RowTemplate.Height = 列高
- SQL_排班系統_當天排班()
- da.Fill(ds7) : DataGridView7.DataSource = ds7.Tables(0) : conn.Close()
- End Sub
- Private Sub 讀取班別8()
- DataGridView8.DataSource = Nothing : ds8.Clear()
- DataGridView8.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
- DataGridView8.ColumnHeadersHeight = 列高1 : DataGridView8.AllowUserToAddRows = False : DataGridView8.RowTemplate.Height = 列高
- SQL_排班系統_當天排班()
- da.Fill(ds8) : DataGridView8.DataSource = ds8.Tables(0) : conn.Close()
- End Sub
- Private Sub 讀取班別9()
- DataGridView9.DataSource = Nothing : ds9.Clear()
- DataGridView9.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
- DataGridView9.ColumnHeadersHeight = 列高1 : DataGridView9.AllowUserToAddRows = False : DataGridView9.RowTemplate.Height = 列高
- SQL_排班系統_當天排班()
- da.Fill(ds9) : DataGridView9.DataSource = ds9.Tables(0) : conn.Close()
- End Sub
- Private Sub 讀取班別10()
- DataGridView10.DataSource = Nothing : ds10.Clear()
- DataGridView10.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
- DataGridView10.ColumnHeadersHeight = 列高1 : DataGridView10.AllowUserToAddRows = False : DataGridView10.RowTemplate.Height = 列高
- SQL_排班系統_當天排班()
- da.Fill(ds10) : DataGridView10.DataSource = ds10.Tables(0) : conn.Close()
- End Sub
- Private Sub 讀取班別11()
- DataGridView11.DataSource = Nothing : ds11.Clear()
- DataGridView11.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
- DataGridView11.ColumnHeadersHeight = 列高1 : DataGridView11.AllowUserToAddRows = False : DataGridView11.RowTemplate.Height = 列高
- SQL_排班系統_當天排班()
- da.Fill(ds11) : DataGridView11.DataSource = ds11.Tables(0) : conn.Close()
- End Sub
- Private Sub 讀取班別12()
- DataGridView12.DataSource = Nothing : ds12.Clear()
- DataGridView12.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
- DataGridView12.ColumnHeadersHeight = 列高1 : DataGridView12.AllowUserToAddRows = False : DataGridView12.RowTemplate.Height = 列高
- SQL_排班系統_當天排班()
- da.Fill(ds12) : DataGridView12.DataSource = ds12.Tables(0) : conn.Close()
- End Sub
- Private Sub 讀取班別13()
- DataGridView13.DataSource = Nothing : ds13.Clear()
- DataGridView13.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
- DataGridView13.ColumnHeadersHeight = 列高1 : DataGridView13.AllowUserToAddRows = False : DataGridView13.RowTemplate.Height = 列高
- SQL_排班系統_當天排班()
- da.Fill(ds13) : DataGridView13.DataSource = ds13.Tables(0) : conn.Close()
- End Sub
- Private Sub 讀取班別14()
- DataGridView14.DataSource = Nothing : ds14.Clear()
- DataGridView14.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
- DataGridView14.ColumnHeadersHeight = 列高1 : DataGridView14.AllowUserToAddRows = False : DataGridView14.RowTemplate.Height = 列高
- SQL_排班系統_當天排班()
- da.Fill(ds14) : DataGridView14.DataSource = ds14.Tables(0) : conn.Close()
- End Sub
- Private Sub 讀取班別15()
- DataGridView15.DataSource = Nothing : ds15.Clear()
- DataGridView15.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
- DataGridView15.ColumnHeadersHeight = 列高1 : DataGridView15.AllowUserToAddRows = False : DataGridView15.RowTemplate.Height = 列高
- SQL_排班系統_當天排班()
- da.Fill(ds15) : DataGridView15.DataSource = ds15.Tables(0) : conn.Close()
- End Sub
- Private Sub 讀取班別16()
- DataGridView16.DataSource = Nothing : ds16.Clear()
- DataGridView16.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
- DataGridView16.ColumnHeadersHeight = 列高1 : DataGridView16.AllowUserToAddRows = False : DataGridView16.RowTemplate.Height = 列高
- SQL_排班系統_當天排班()
- da.Fill(ds16) : DataGridView16.DataSource = ds16.Tables(0) : conn.Close()
- End Sub
- Private Sub 讀取班別17()
- DataGridView17.DataSource = Nothing : ds17.Clear()
- DataGridView17.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
- DataGridView17.ColumnHeadersHeight = 列高1 : DataGridView17.AllowUserToAddRows = False : DataGridView17.RowTemplate.Height = 列高
- SQL_排班系統_當天排班()
- da.Fill(ds17) : DataGridView17.DataSource = ds17.Tables(0) : conn.Close()
- End Sub
- Private Sub 讀取班別18()
- DataGridView18.DataSource = Nothing : ds18.Clear()
- DataGridView18.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
- DataGridView18.ColumnHeadersHeight = 列高1 : DataGridView18.AllowUserToAddRows = False : DataGridView18.RowTemplate.Height = 列高
- SQL_排班系統_當天排班()
- da.Fill(ds18) : DataGridView18.DataSource = ds18.Tables(0) : conn.Close()
- End Sub
- Private Sub 讀取班別19()
- DataGridView19.DataSource = Nothing : ds19.Clear()
- DataGridView19.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
- DataGridView19.ColumnHeadersHeight = 列高1 : DataGridView19.AllowUserToAddRows = False : DataGridView19.RowTemplate.Height = 列高
- SQL_排班系統_當天排班()
- da.Fill(ds19) : DataGridView19.DataSource = ds19.Tables(0) : conn.Close()
- End Sub
- Private Sub 讀取班別20()
- DataGridView20.DataSource = Nothing : ds20.Clear()
- DataGridView20.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
- DataGridView20.ColumnHeadersHeight = 列高1 : DataGridView20.AllowUserToAddRows = False : DataGridView20.RowTemplate.Height = 列高
- SQL_排班系統_當天排班()
- da.Fill(ds20) : DataGridView20.DataSource = ds20.Tables(0) : conn.Close()
- End Sub
- Private Sub 讀取班別21()
- DataGridView21.DataSource = Nothing : ds21.Clear()
- DataGridView21.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
- DataGridView21.ColumnHeadersHeight = 列高1 : DataGridView21.AllowUserToAddRows = False : DataGridView21.RowTemplate.Height = 列高
- SQL_排班系統_當天排班()
- da.Fill(ds21) : DataGridView21.DataSource = ds21.Tables(0) : conn.Close()
- End Sub
- Private Sub 讀取班別22()
- DataGridView22.DataSource = Nothing : ds22.Clear()
- DataGridView22.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
- DataGridView22.ColumnHeadersHeight = 列高1 : DataGridView22.AllowUserToAddRows = False : DataGridView22.RowTemplate.Height = 列高
- SQL_排班系統_當天排班()
- da.Fill(ds22) : DataGridView22.DataSource = ds22.Tables(0) : conn.Close()
- End Sub
- Private Sub 讀取班別23()
- DataGridView23.DataSource = Nothing : ds23.Clear()
- DataGridView23.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
- DataGridView23.ColumnHeadersHeight = 列高1 : DataGridView23.AllowUserToAddRows = False : DataGridView23.RowTemplate.Height = 列高
- SQL_排班系統_當天排班()
- da.Fill(ds23) : DataGridView23.DataSource = ds23.Tables(0) : conn.Close()
- End Sub
- Private Sub 讀取班別24()
- DataGridView24.DataSource = Nothing : ds24.Clear()
- DataGridView24.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
- DataGridView24.ColumnHeadersHeight = 列高1 : DataGridView24.AllowUserToAddRows = False : DataGridView24.RowTemplate.Height = 列高
- SQL_排班系統_當天排班()
- da.Fill(ds24) : DataGridView24.DataSource = ds24.Tables(0) : conn.Close()
- End Sub
- Private Sub 讀取班別25()
- DataGridView25.DataSource = Nothing : ds25.Clear()
- DataGridView25.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
- DataGridView25.ColumnHeadersHeight = 列高1 : DataGridView25.AllowUserToAddRows = False : DataGridView25.RowTemplate.Height = 列高
- SQL_排班系統_當天排班()
- da.Fill(ds25) : DataGridView25.DataSource = ds25.Tables(0) : conn.Close()
- End Sub
- Private Sub 讀取班別26()
- DataGridView26.DataSource = Nothing : ds26.Clear()
- DataGridView26.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
- DataGridView26.ColumnHeadersHeight = 列高1 : DataGridView26.AllowUserToAddRows = False : DataGridView26.RowTemplate.Height = 列高
- SQL_排班系統_當天排班()
- da.Fill(ds26) : DataGridView26.DataSource = ds26.Tables(0) : conn.Close()
- End Sub
- Private Sub 讀取班別27()
- DataGridView27.DataSource = Nothing : ds27.Clear()
- DataGridView27.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
- DataGridView27.ColumnHeadersHeight = 列高 : DataGridView27.AllowUserToAddRows = False : DataGridView27.RowTemplate.Height = 列高
- SQL_排班系統_當天排班()
- da.Fill(ds27) : DataGridView27.DataSource = ds27.Tables(0) : conn.Close()
- End Sub
- Private Sub 讀取班別28()
- DataGridView28.DataSource = Nothing : ds28.Clear()
- DataGridView28.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
- DataGridView28.ColumnHeadersHeight = 列高1 : DataGridView28.AllowUserToAddRows = False : DataGridView28.RowTemplate.Height = 列高
- SQL_排班系統_當天排班()
- da.Fill(ds28) : DataGridView28.DataSource = ds28.Tables(0) : conn.Close()
- End Sub
- Private Sub 讀取班別29()
- DataGridView29.DataSource = Nothing : ds29.Clear()
- DataGridView29.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
- DataGridView29.ColumnHeadersHeight = 列高1 : DataGridView29.AllowUserToAddRows = False : DataGridView29.RowTemplate.Height = 列高
- SQL_排班系統_當天排班()
- da.Fill(ds29) : DataGridView29.DataSource = ds29.Tables(0) : conn.Close()
- End Sub
- Private Sub 讀取班別30()
- DataGridView30.DataSource = Nothing : ds30.Clear()
- DataGridView30.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
- DataGridView30.ColumnHeadersHeight = 列高1 : DataGridView30.AllowUserToAddRows = False : DataGridView30.RowTemplate.Height = 列高
- SQL_排班系統_當天排班()
- da.Fill(ds30) : DataGridView30.DataSource = ds30.Tables(0) : conn.Close()
- End Sub
- Private Sub 讀取班別31()
- DataGridView31.DataSource = Nothing : ds31.Clear()
- DataGridView31.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
- DataGridView31.ColumnHeadersHeight = 列高1 : DataGridView31.AllowUserToAddRows = False : DataGridView31.RowTemplate.Height = 列高
- SQL_排班系統_當天排班()
- da.Fill(ds31) : DataGridView31.DataSource = ds31.Tables(0) : conn.Close()
- End Sub
- Private Sub 讀取班別32()
- DataGridView32.DataSource = Nothing : ds32.Clear()
- DataGridView32.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
- DataGridView32.ColumnHeadersHeight = 列高1 : DataGridView32.AllowUserToAddRows = False : DataGridView32.RowTemplate.Height = 列高
- SQL_排班系統_當天排班()
- da.Fill(ds32) : DataGridView32.DataSource = ds32.Tables(0) : conn.Close()
- End Sub
- Private Sub 讀取班別33()
- DataGridView33.DataSource = Nothing : ds33.Clear()
- DataGridView33.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
- DataGridView33.ColumnHeadersHeight = 列高1 : DataGridView33.AllowUserToAddRows = False : DataGridView33.RowTemplate.Height = 列高
- SQL_排班系統_當天排班()
- da.Fill(ds33) : DataGridView33.DataSource = ds33.Tables(0) : conn.Close()
- End Sub
- Private Sub 讀取班別34()
- DataGridView34.DataSource = Nothing : ds34.Clear()
- DataGridView34.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
- DataGridView34.ColumnHeadersHeight = 列高1 : DataGridView34.AllowUserToAddRows = False : DataGridView34.RowTemplate.Height = 列高
- SQL_排班系統_當天排班()
- da.Fill(ds34) : DataGridView34.DataSource = ds34.Tables(0) : conn.Close()
- End Sub
- Private Sub 讀取班別35()
- DataGridView35.DataSource = Nothing : ds35.Clear()
- DataGridView35.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
- DataGridView35.ColumnHeadersHeight = 列高1 : DataGridView35.AllowUserToAddRows = False : DataGridView35.RowTemplate.Height = 列高
- SQL_排班系統_當天排班()
- da.Fill(ds35) : DataGridView35.DataSource = ds35.Tables(0) : conn.Close()
- End Sub
- Private Sub 讀取班別36()
- DataGridView36.DataSource = Nothing : ds36.Clear()
- DataGridView36.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
- DataGridView36.ColumnHeadersHeight = 列高1 : DataGridView36.AllowUserToAddRows = False : DataGridView36.RowTemplate.Height = 列高
- SQL_排班系統_當天排班()
- da.Fill(ds36) : DataGridView36.DataSource = ds36.Tables(0) : conn.Close()
- End Sub
- Private Sub 讀取班別37()
- DataGridView37.DataSource = Nothing : ds37.Clear()
- DataGridView37.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
- DataGridView37.ColumnHeadersHeight = 列高1 : DataGridView37.AllowUserToAddRows = False : DataGridView37.RowTemplate.Height = 列高
- SQL_排班系統_當天排班()
- da.Fill(ds37) : DataGridView37.DataSource = ds37.Tables(0) : conn.Close()
- End Sub
- Private Sub 讀取班別38()
- DataGridView38.DataSource = Nothing : ds38.Clear()
- DataGridView38.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
- DataGridView38.ColumnHeadersHeight = 列高1 : DataGridView38.AllowUserToAddRows = False : DataGridView38.RowTemplate.Height = 列高
- SQL_排班系統_當天排班()
- da.Fill(ds38) : DataGridView38.DataSource = ds38.Tables(0) : conn.Close()
- End Sub
- Private Sub 讀取班別39()
- DataGridView39.DataSource = Nothing : ds39.Clear()
- DataGridView39.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
- DataGridView39.ColumnHeadersHeight = 列高1 : DataGridView39.AllowUserToAddRows = False : DataGridView39.RowTemplate.Height = 列高
- SQL_排班系統_當天排班()
- da.Fill(ds39) : DataGridView39.DataSource = ds39.Tables(0) : conn.Close()
- End Sub
- Private Sub 讀取班別40()
- DataGridView40.DataSource = Nothing : ds40.Clear()
- DataGridView40.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
- DataGridView40.ColumnHeadersHeight = 列高1 : DataGridView40.AllowUserToAddRows = False : DataGridView40.RowTemplate.Height = 列高
- SQL_排班系統_當天排班()
- da.Fill(ds40) : DataGridView40.DataSource = ds40.Tables(0) : conn.Close()
- End Sub
- Private Sub 讀取班別41()
- DataGridView41.DataSource = Nothing : ds41.Clear()
- DataGridView41.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
- DataGridView41.ColumnHeadersHeight = 列高1 : DataGridView41.AllowUserToAddRows = False : DataGridView41.RowTemplate.Height = 列高
- SQL_排班系統_當天排班()
- da.Fill(ds41) : DataGridView41.DataSource = ds41.Tables(0) : conn.Close()
- End Sub
- Private Sub 讀取班別42()
- DataGridView42.DataSource = Nothing : ds42.Clear()
- DataGridView42.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
- DataGridView42.ColumnHeadersHeight = 列高1 : DataGridView42.AllowUserToAddRows = False : DataGridView42.RowTemplate.Height = 列高
- SQL_排班系統_當天排班()
- da.Fill(ds42) : DataGridView42.DataSource = ds42.Tables(0) : conn.Close()
- End Sub
- Private Sub 日曆變動()
- 總時數 = 0
- For no As Integer = 1 To 42
- Dim Panels As Panel = CType(Me.Controls.Find("Panel" + no.ToString(), True)(0), Panel) : Panels.Visible = True
- Next
- Dim Q As Integer = 0
- 星期 = 日期_dgv.Rows(0).Cells("星期").Value.ToString : 天數 = 日期_dgv.Rows.Count
- If 星期 = "星期日" Then
- For no As Integer = 1 To 42
- If no > 天數 Then : Dim Panels As Panel = CType(Me.Controls.Find("Panel" + no.ToString(), True)(0), Panel) : Panels.Visible = False : End If
- Dim 日期_lb As Label = CType(Me.Controls.Find("日期_lb" + no.ToString(), True)(0), Label) : 日期_lb.Text = no
- If IsNumeric(Val(日期_lb.Text)) = True Then
- If no < 10 Then : PA = "0" & no : Else : PA = no : End If : PA = 年份_cb.Text & "/" & 月份_cb.Text & "/" & PA
- If no = 1 Then : 讀取班別1() : ElseIf no = 2 Then : 讀取班別2() : ElseIf no = 3 Then : 讀取班別3() : ElseIf no = 4 Then : 讀取班別4()
- ElseIf no = 5 Then : 讀取班別5() : ElseIf no = 6 Then : 讀取班別6() : ElseIf no = 7 Then : 讀取班別7() : ElseIf no = 8 Then : 讀取班別8()
- ElseIf no = 9 Then : 讀取班別9() : ElseIf no = 10 Then : 讀取班別10() : ElseIf no = 11 Then : 讀取班別11() : ElseIf no = 12 Then : 讀取班別12()
- ElseIf no = 13 Then : 讀取班別13() : ElseIf no = 14 Then : 讀取班別14() : ElseIf no = 15 Then : 讀取班別15() : ElseIf no = 16 Then : 讀取班別16()
- ElseIf no = 17 Then : 讀取班別17() : ElseIf no = 18 Then : 讀取班別18() : ElseIf no = 19 Then : 讀取班別19() : ElseIf no = 20 Then : 讀取班別20()
- ElseIf no = 21 Then : 讀取班別21() : ElseIf no = 22 Then : 讀取班別22() : ElseIf no = 23 Then : 讀取班別23() : ElseIf no = 24 Then : 讀取班別24()
- ElseIf no = 25 Then : 讀取班別25() : ElseIf no = 26 Then : 讀取班別26() : ElseIf no = 27 Then : 讀取班別27() : ElseIf no = 28 Then : 讀取班別28()
- ElseIf no = 29 Then : 讀取班別29() : ElseIf no = 30 Then : 讀取班別30() : ElseIf no = 31 Then : 讀取班別31() : ElseIf no = 32 Then : 讀取班別32()
- ElseIf no = 33 Then : 讀取班別33() : ElseIf no = 34 Then : 讀取班別34() : ElseIf no = 35 Then : 讀取班別35() : ElseIf no = 36 Then : 讀取班別36()
- ElseIf no = 37 Then : 讀取班別37() : ElseIf no = 38 Then : 讀取班別38() : ElseIf no = 39 Then : 讀取班別39() : ElseIf no = 40 Then : 讀取班別40()
- ElseIf no = 41 Then : 讀取班別41() : ElseIf no = 42 Then : 讀取班別42() : End If
- End If
- If no >= 1 And no <= 天數 Then
- Dim Labels As Label = CType(Me.Controls.Find("Label" + no.ToString(), True)(0), Label) : Labels.Text = 日期_dgv.Rows(Q).Cells("休假").Value.ToString
- If 日期_dgv.Rows(Q).Cells("休假").Value.ToString <> "國定假日" And 日期_dgv.Rows(Q).Cells("星期").Value.ToString <> "星期日" And
- 日期_dgv.Rows(Q).Cells("星期").Value.ToString <> "星期六" Then
- 總時數 += 8
- End If : Q += 1
- End If
- Next
- End If
- If 星期 = "星期一" Then
- For no As Integer = 1 To 42
- If no = 1 Then
- Dim Panels As Panel = CType(Me.Controls.Find("Panel" + no.ToString(), True)(0), Panel) : Panels.Visible = False : End If
- If no > 天數 + 1 Then : Dim Panels As Panel = CType(Me.Controls.Find("Panel" + no.ToString(), True)(0), Panel) : Panels.Visible = False : End If
- Dim 日期_lb As Label = CType(Me.Controls.Find("日期_lb" + no.ToString(), True)(0), Label) : 日期_lb.Text = no - 1
- If IsNumeric(Val(日期_lb.Text)) = True Then
- If no - 1 < 10 Then : PA = "0" & no - 1 : Else : PA = no - 1 : End If : PA = 年份_cb.Text & "/" & 月份_cb.Text & "/" & PA
- If no = 1 Then : 讀取班別1() : ElseIf no = 2 Then : 讀取班別2() : ElseIf no = 3 Then : 讀取班別3() : ElseIf no = 4 Then : 讀取班別4()
- ElseIf no = 5 Then : 讀取班別5() : ElseIf no = 6 Then : 讀取班別6() : ElseIf no = 7 Then : 讀取班別7() : ElseIf no = 8 Then : 讀取班別8()
- ElseIf no = 9 Then : 讀取班別9() : ElseIf no = 10 Then : 讀取班別10() : ElseIf no = 11 Then : 讀取班別11() : ElseIf no = 12 Then : 讀取班別12()
- ElseIf no = 13 Then : 讀取班別13() : ElseIf no = 14 Then : 讀取班別14() : ElseIf no = 15 Then : 讀取班別15() : ElseIf no = 16 Then : 讀取班別16()
- ElseIf no = 17 Then : 讀取班別17() : ElseIf no = 18 Then : 讀取班別18() : ElseIf no = 19 Then : 讀取班別19() : ElseIf no = 20 Then : 讀取班別20()
- ElseIf no = 21 Then : 讀取班別21() : ElseIf no = 22 Then : 讀取班別22() : ElseIf no = 23 Then : 讀取班別23() : ElseIf no = 24 Then : 讀取班別24()
- ElseIf no = 25 Then : 讀取班別25() : ElseIf no = 26 Then : 讀取班別26() : ElseIf no = 27 Then : 讀取班別27() : ElseIf no = 28 Then : 讀取班別28()
- ElseIf no = 29 Then : 讀取班別29() : ElseIf no = 30 Then : 讀取班別30() : ElseIf no = 31 Then : 讀取班別31() : ElseIf no = 32 Then : 讀取班別32()
- ElseIf no = 33 Then : 讀取班別33() : ElseIf no = 34 Then : 讀取班別34() : ElseIf no = 35 Then : 讀取班別35() : ElseIf no = 36 Then : 讀取班別36()
- ElseIf no = 37 Then : 讀取班別37() : ElseIf no = 38 Then : 讀取班別38() : ElseIf no = 39 Then : 讀取班別39() : ElseIf no = 40 Then : 讀取班別40()
- ElseIf no = 41 Then : 讀取班別41() : ElseIf no = 42 Then : 讀取班別42() : End If
- End If
- If no >= 2 And no <= 天數 + 1 Then
- Dim Labels As Label = CType(Me.Controls.Find("Label" + no.ToString(), True)(0), Label) : Labels.Text = 日期_dgv.Rows(Q).Cells("休假").Value.ToString
- If 日期_dgv.Rows(Q).Cells("休假").Value.ToString <> "國定假日" And 日期_dgv.Rows(Q).Cells("星期").Value.ToString <> "星期日" And
- 日期_dgv.Rows(Q).Cells("星期").Value.ToString <> "星期六" Then
- 總時數 += 8
- End If : Q += 1
- End If
- Next
- End If
- If 星期 = "星期二" Then
- For no As Integer = 1 To 42
- If no = 1 Or no = 2 Then
- Dim Panels As Panel = CType(Me.Controls.Find("Panel" + no.ToString(), True)(0), Panel) : Panels.Visible = False : End If
- If no > 天數 + 2 Then : Dim Panels As Panel = CType(Me.Controls.Find("Panel" + no.ToString(), True)(0), Panel) : Panels.Visible = False : End If
- Dim 日期_lb As Label = CType(Me.Controls.Find("日期_lb" + no.ToString(), True)(0), Label) : 日期_lb.Text = no - 2
- If IsNumeric(Val(日期_lb.Text)) = True Then
- If no - 2 < 10 Then : PA = "0" & no - 2 : Else : PA = no - 2 : End If : PA = 年份_cb.Text & "/" & 月份_cb.Text & "/" & PA
- If no = 1 Then : 讀取班別1() : ElseIf no = 2 Then : 讀取班別2() : ElseIf no = 3 Then : 讀取班別3() : ElseIf no = 4 Then : 讀取班別4()
- ElseIf no = 5 Then : 讀取班別5() : ElseIf no = 6 Then : 讀取班別6() : ElseIf no = 7 Then : 讀取班別7() : ElseIf no = 8 Then : 讀取班別8()
- ElseIf no = 9 Then : 讀取班別9() : ElseIf no = 10 Then : 讀取班別10() : ElseIf no = 11 Then : 讀取班別11() : ElseIf no = 12 Then : 讀取班別12()
- ElseIf no = 13 Then : 讀取班別13() : ElseIf no = 14 Then : 讀取班別14() : ElseIf no = 15 Then : 讀取班別15() : ElseIf no = 16 Then : 讀取班別16()
- ElseIf no = 17 Then : 讀取班別17() : ElseIf no = 18 Then : 讀取班別18() : ElseIf no = 19 Then : 讀取班別19() : ElseIf no = 20 Then : 讀取班別20()
- ElseIf no = 21 Then : 讀取班別21() : ElseIf no = 22 Then : 讀取班別22() : ElseIf no = 23 Then : 讀取班別23() : ElseIf no = 24 Then : 讀取班別24()
- ElseIf no = 25 Then : 讀取班別25() : ElseIf no = 26 Then : 讀取班別26() : ElseIf no = 27 Then : 讀取班別27() : ElseIf no = 28 Then : 讀取班別28()
- ElseIf no = 29 Then : 讀取班別29() : ElseIf no = 30 Then : 讀取班別30() : ElseIf no = 31 Then : 讀取班別31() : ElseIf no = 32 Then : 讀取班別32()
- ElseIf no = 33 Then : 讀取班別33() : ElseIf no = 34 Then : 讀取班別34() : ElseIf no = 35 Then : 讀取班別35() : ElseIf no = 36 Then : 讀取班別36()
- ElseIf no = 37 Then : 讀取班別37() : ElseIf no = 38 Then : 讀取班別38() : ElseIf no = 39 Then : 讀取班別39() : ElseIf no = 40 Then : 讀取班別40()
- ElseIf no = 41 Then : 讀取班別41() : ElseIf no = 42 Then : 讀取班別42() : End If
- End If
- If no >= 3 And no <= 天數 + 2 Then
- Dim Labels As Label = CType(Me.Controls.Find("Label" + no.ToString(), True)(0), Label) : Labels.Text = 日期_dgv.Rows(Q).Cells("休假").Value.ToString
- If 日期_dgv.Rows(Q).Cells("休假").Value.ToString <> "國定假日" And 日期_dgv.Rows(Q).Cells("星期").Value.ToString <> "星期日" And
- 日期_dgv.Rows(Q).Cells("星期").Value.ToString <> "星期六" Then
- 總時數 += 8
- End If : Q += 1
- End If
- Next
- End If
- If 星期 = "星期三" Then
- For no As Integer = 1 To 42
- If no = 1 Or no = 2 Or no = 3 Then
- Dim Panels As Panel = CType(Me.Controls.Find("Panel" + no.ToString(), True)(0), Panel) : Panels.Visible = False : End If
- If no > 天數 + 3 Then : Dim Panels As Panel = CType(Me.Controls.Find("Panel" + no.ToString(), True)(0), Panel) : Panels.Visible = False : End If
- Dim 日期_lb As Label = CType(Me.Controls.Find("日期_lb" + no.ToString(), True)(0), Label) : 日期_lb.Text = no - 3
- If IsNumeric(Val(日期_lb.Text)) = True Then
- If no - 3 < 10 Then : PA = "0" & no - 3 : Else : PA = no - 3 : End If : PA = 年份_cb.Text & "/" & 月份_cb.Text & "/" & PA
- If no = 1 Then : 讀取班別1() : ElseIf no = 2 Then : 讀取班別2() : ElseIf no = 3 Then : 讀取班別3() : ElseIf no = 4 Then : 讀取班別4()
- ElseIf no = 5 Then : 讀取班別5() : ElseIf no = 6 Then : 讀取班別6() : ElseIf no = 7 Then : 讀取班別7() : ElseIf no = 8 Then : 讀取班別8()
- ElseIf no = 9 Then : 讀取班別9() : ElseIf no = 10 Then : 讀取班別10() : ElseIf no = 11 Then : 讀取班別11() : ElseIf no = 12 Then : 讀取班別12()
- ElseIf no = 13 Then : 讀取班別13() : ElseIf no = 14 Then : 讀取班別14() : ElseIf no = 15 Then : 讀取班別15() : ElseIf no = 16 Then : 讀取班別16()
- ElseIf no = 17 Then : 讀取班別17() : ElseIf no = 18 Then : 讀取班別18() : ElseIf no = 19 Then : 讀取班別19() : ElseIf no = 20 Then : 讀取班別20()
- ElseIf no = 21 Then : 讀取班別21() : ElseIf no = 22 Then : 讀取班別22() : ElseIf no = 23 Then : 讀取班別23() : ElseIf no = 24 Then : 讀取班別24()
- ElseIf no = 25 Then : 讀取班別25() : ElseIf no = 26 Then : 讀取班別26() : ElseIf no = 27 Then : 讀取班別27() : ElseIf no = 28 Then : 讀取班別28()
- ElseIf no = 29 Then : 讀取班別29() : ElseIf no = 30 Then : 讀取班別30() : ElseIf no = 31 Then : 讀取班別31() : ElseIf no = 32 Then : 讀取班別32()
- ElseIf no = 33 Then : 讀取班別33() : ElseIf no = 34 Then : 讀取班別34() : ElseIf no = 35 Then : 讀取班別35() : ElseIf no = 36 Then : 讀取班別36()
- ElseIf no = 37 Then : 讀取班別37() : ElseIf no = 38 Then : 讀取班別38() : ElseIf no = 39 Then : 讀取班別39() : ElseIf no = 40 Then : 讀取班別40()
- ElseIf no = 41 Then : 讀取班別41() : ElseIf no = 42 Then : 讀取班別42() : End If
- End If
- If no >= 4 And no <= 天數 + 3 Then
- Dim Labels As Label = CType(Me.Controls.Find("Label" + no.ToString(), True)(0), Label) : Labels.Text = 日期_dgv.Rows(Q).Cells("休假").Value.ToString
- If 日期_dgv.Rows(Q).Cells("休假").Value.ToString <> "國定假日" And 日期_dgv.Rows(Q).Cells("星期").Value.ToString <> "星期日" And
- 日期_dgv.Rows(Q).Cells("星期").Value.ToString <> "星期六" Then
- 總時數 += 8
- End If : Q += 1
- End If
- Next
- End If
- If 星期 = "星期四" Then
- For no As Integer = 1 To 42
- If no = 1 Or no = 2 Or no = 3 Or no = 4 Then
- Dim Panels As Panel = CType(Me.Controls.Find("Panel" + no.ToString(), True)(0), Panel) : Panels.Visible = False : End If
- If no > 天數 + 4 Then : Dim Panels As Panel = CType(Me.Controls.Find("Panel" + no.ToString(), True)(0), Panel) : Panels.Visible = False : End If
- Dim 日期_lb As Label = CType(Me.Controls.Find("日期_lb" + no.ToString(), True)(0), Label) : 日期_lb.Text = no - 4
- If IsNumeric(Val(日期_lb.Text)) = True Then
- If no - 4 < 10 Then : PA = "0" & no - 4 : Else : PA = no - 4 : End If : PA = 年份_cb.Text & "/" & 月份_cb.Text & "/" & PA
- If no = 1 Then : 讀取班別1() : ElseIf no = 2 Then : 讀取班別2() : ElseIf no = 3 Then : 讀取班別3() : ElseIf no = 4 Then : 讀取班別4()
- ElseIf no = 5 Then : 讀取班別5() : ElseIf no = 6 Then : 讀取班別6() : ElseIf no = 7 Then : 讀取班別7() : ElseIf no = 8 Then : 讀取班別8()
- ElseIf no = 9 Then : 讀取班別9() : ElseIf no = 10 Then : 讀取班別10() : ElseIf no = 11 Then : 讀取班別11() : ElseIf no = 12 Then : 讀取班別12()
- ElseIf no = 13 Then : 讀取班別13() : ElseIf no = 14 Then : 讀取班別14() : ElseIf no = 15 Then : 讀取班別15() : ElseIf no = 16 Then : 讀取班別16()
- ElseIf no = 17 Then : 讀取班別17() : ElseIf no = 18 Then : 讀取班別18() : ElseIf no = 19 Then : 讀取班別19() : ElseIf no = 20 Then : 讀取班別20()
- ElseIf no = 21 Then : 讀取班別21() : ElseIf no = 22 Then : 讀取班別22() : ElseIf no = 23 Then : 讀取班別23() : ElseIf no = 24 Then : 讀取班別24()
- ElseIf no = 25 Then : 讀取班別25() : ElseIf no = 26 Then : 讀取班別26() : ElseIf no = 27 Then : 讀取班別27() : ElseIf no = 28 Then : 讀取班別28()
- ElseIf no = 29 Then : 讀取班別29() : ElseIf no = 30 Then : 讀取班別30() : ElseIf no = 31 Then : 讀取班別31() : ElseIf no = 32 Then : 讀取班別32()
- ElseIf no = 33 Then : 讀取班別33() : ElseIf no = 34 Then : 讀取班別34() : ElseIf no = 35 Then : 讀取班別35() : ElseIf no = 36 Then : 讀取班別36()
- ElseIf no = 37 Then : 讀取班別37() : ElseIf no = 38 Then : 讀取班別38() : ElseIf no = 39 Then : 讀取班別39() : ElseIf no = 40 Then : 讀取班別40()
- ElseIf no = 41 Then : 讀取班別41() : ElseIf no = 42 Then : 讀取班別42() : End If
- End If
- If no >= 5 And no <= 天數 + 4 Then
- Dim Labels As Label = CType(Me.Controls.Find("Label" + no.ToString(), True)(0), Label) : Labels.Text = 日期_dgv.Rows(Q).Cells("休假").Value.ToString
- If 日期_dgv.Rows(Q).Cells("休假").Value.ToString <> "國定假日" And 日期_dgv.Rows(Q).Cells("星期").Value.ToString <> "星期日" And
- 日期_dgv.Rows(Q).Cells("星期").Value.ToString <> "星期六" Then
- 總時數 += 8
- End If : Q += 1
- End If
- Next
- End If
- If 星期 = "星期五" Then
- For no As Integer = 1 To 42
- If no = 1 Or no = 2 Or no = 3 Or no = 4 Or no = 5 Then
- Dim Panels As Panel = CType(Me.Controls.Find("Panel" + no.ToString(), True)(0), Panel) : Panels.Visible = False : End If
- If no > 天數 + 5 Then : Dim Panels As Panel = CType(Me.Controls.Find("Panel" + no.ToString(), True)(0), Panel) : Panels.Visible = False : End If
- Dim 日期_lb As Label = CType(Me.Controls.Find("日期_lb" + no.ToString(), True)(0), Label) : 日期_lb.Text = no - 5
- If IsNumeric(Val(日期_lb.Text)) = True Then
- If no - 5 < 10 Then : PA = "0" & no - 5 : Else : PA = no - 5 : End If : PA = 年份_cb.Text & "/" & 月份_cb.Text & "/" & PA
- If no = 1 Then : 讀取班別1() : ElseIf no = 2 Then : 讀取班別2() : ElseIf no = 3 Then : 讀取班別3() : ElseIf no = 4 Then : 讀取班別4()
- ElseIf no = 5 Then : 讀取班別5() : ElseIf no = 6 Then : 讀取班別6() : ElseIf no = 7 Then : 讀取班別7() : ElseIf no = 8 Then : 讀取班別8()
- ElseIf no = 9 Then : 讀取班別9() : ElseIf no = 10 Then : 讀取班別10() : ElseIf no = 11 Then : 讀取班別11() : ElseIf no = 12 Then : 讀取班別12()
- ElseIf no = 13 Then : 讀取班別13() : ElseIf no = 14 Then : 讀取班別14() : ElseIf no = 15 Then : 讀取班別15() : ElseIf no = 16 Then : 讀取班別16()
- ElseIf no = 17 Then : 讀取班別17() : ElseIf no = 18 Then : 讀取班別18() : ElseIf no = 19 Then : 讀取班別19() : ElseIf no = 20 Then : 讀取班別20()
- ElseIf no = 21 Then : 讀取班別21() : ElseIf no = 22 Then : 讀取班別22() : ElseIf no = 23 Then : 讀取班別23() : ElseIf no = 24 Then : 讀取班別24()
- ElseIf no = 25 Then : 讀取班別25() : ElseIf no = 26 Then : 讀取班別26() : ElseIf no = 27 Then : 讀取班別27() : ElseIf no = 28 Then : 讀取班別28()
- ElseIf no = 29 Then : 讀取班別29() : ElseIf no = 30 Then : 讀取班別30() : ElseIf no = 31 Then : 讀取班別31() : ElseIf no = 32 Then : 讀取班別32()
- ElseIf no = 33 Then : 讀取班別33() : ElseIf no = 34 Then : 讀取班別34() : ElseIf no = 35 Then : 讀取班別35() : ElseIf no = 36 Then : 讀取班別36()
- ElseIf no = 37 Then : 讀取班別37() : ElseIf no = 38 Then : 讀取班別38() : ElseIf no = 39 Then : 讀取班別39() : ElseIf no = 40 Then : 讀取班別40()
- ElseIf no = 41 Then : 讀取班別41() : ElseIf no = 42 Then : 讀取班別42() : End If
- End If
- If no >= 6 And no <= 天數 + 5 Then
- Dim Labels As Label = CType(Me.Controls.Find("Label" + no.ToString(), True)(0), Label) : Labels.Text = 日期_dgv.Rows(Q).Cells("休假").Value.ToString
- If 日期_dgv.Rows(Q).Cells("休假").Value.ToString <> "國定假日" And 日期_dgv.Rows(Q).Cells("星期").Value.ToString <> "星期日" And
- 日期_dgv.Rows(Q).Cells("星期").Value.ToString <> "星期六" Then
- 總時數 += 8
- End If : Q += 1
- End If
- Next
- End If
- If 星期 = "星期六" Then
- For no As Integer = 1 To 42
- If no = 1 Or no = 2 Or no = 3 Or no = 4 Or no = 5 Or no = 6 Then
- Dim Panels As Panel = CType(Me.Controls.Find("Panel" + no.ToString(), True)(0), Panel) : Panels.Visible = False : End If
- If no > 天數 + 6 Then : Dim Panels As Panel = CType(Me.Controls.Find("Panel" + no.ToString(), True)(0), Panel) : Panels.Visible = False : End If
- Dim 日期_lb As Label = CType(Me.Controls.Find("日期_lb" + no.ToString(), True)(0), Label) : 日期_lb.Text = no - 6
- If IsNumeric(Val(日期_lb.Text)) = True Then
- If no - 6 < 10 Then : PA = "0" & no - 6 : Else : PA = no - 6 : End If : PA = 年份_cb.Text & "/" & 月份_cb.Text & "/" & PA
- If no = 1 Then : 讀取班別1() : ElseIf no = 2 Then : 讀取班別2() : ElseIf no = 3 Then : 讀取班別3() : ElseIf no = 4 Then : 讀取班別4()
- ElseIf no = 5 Then : 讀取班別5() : ElseIf no = 6 Then : 讀取班別6() : ElseIf no = 7 Then : 讀取班別7() : ElseIf no = 8 Then : 讀取班別8()
- ElseIf no = 9 Then : 讀取班別9() : ElseIf no = 10 Then : 讀取班別10() : ElseIf no = 11 Then : 讀取班別11() : ElseIf no = 12 Then : 讀取班別12()
- ElseIf no = 13 Then : 讀取班別13() : ElseIf no = 14 Then : 讀取班別14() : ElseIf no = 15 Then : 讀取班別15() : ElseIf no = 16 Then : 讀取班別16()
- ElseIf no = 17 Then : 讀取班別17() : ElseIf no = 18 Then : 讀取班別18() : ElseIf no = 19 Then : 讀取班別19() : ElseIf no = 20 Then : 讀取班別20()
- ElseIf no = 21 Then : 讀取班別21() : ElseIf no = 22 Then : 讀取班別22() : ElseIf no = 23 Then : 讀取班別23() : ElseIf no = 24 Then : 讀取班別24()
- ElseIf no = 25 Then : 讀取班別25() : ElseIf no = 26 Then : 讀取班別26() : ElseIf no = 27 Then : 讀取班別27() : ElseIf no = 28 Then : 讀取班別28()
- ElseIf no = 29 Then : 讀取班別29() : ElseIf no = 30 Then : 讀取班別30() : ElseIf no = 31 Then : 讀取班別31() : ElseIf no = 32 Then : 讀取班別32()
- ElseIf no = 33 Then : 讀取班別33() : ElseIf no = 34 Then : 讀取班別34() : ElseIf no = 35 Then : 讀取班別35() : ElseIf no = 36 Then : 讀取班別36()
- ElseIf no = 37 Then : 讀取班別37() : ElseIf no = 38 Then : 讀取班別38() : ElseIf no = 39 Then : 讀取班別39() : ElseIf no = 40 Then : 讀取班別40()
- ElseIf no = 41 Then : 讀取班別41() : ElseIf no = 42 Then : 讀取班別42() : End If
- End If
- If no >= 7 And no <= 天數 + 6 Then
- Dim Labels As Label = CType(Me.Controls.Find("Label" + no.ToString(), True)(0), Label) : Labels.Text = 日期_dgv.Rows(Q).Cells("休假").Value.ToString
- If 日期_dgv.Rows(Q).Cells("休假").Value.ToString <> "國定假日" And 日期_dgv.Rows(Q).Cells("星期").Value.ToString <> "星期日" And
- 日期_dgv.Rows(Q).Cells("星期").Value.ToString <> "星期六" Then
- 總時數 += 8
- End If : Q += 1
- End If
- Next
- End If
- End Sub
- Private Sub 排班資料_Load(sender As Object, e As EventArgs) Handles MyBase.Load
- Me.MdiParent = GCM_ERP_SYS : Me.WindowState = 2 : Me.AutoScroll = True
- 列高 = 17 : 列高1 = 22
- 年份_下拉表單資料載入() : 日期_dgv.Visible = False
-
- 首次開啟 = False
- 年份_cb.Text = Year(Today) : 月份_cb.SelectedIndex = Month(Today) - 1
- PA1 = 年份_cb.Text : PA2 = 月份_cb.Text
- 首次開啟 = True
-
- 讀取日期() : 日曆變動()
- PA = 年份_cb.Text & "/" & 月份_cb.Text
- 讀取排班()
- For i As Integer = 0 To 人員彙總_dgv.Rows.Count - 1
- 人員彙總_dgv.Rows(i).Cells("本月應上時數").Value = 總時數
- 人員彙總_dgv.Rows(i).Cells("未排班時數").Value = 人員彙總_dgv.Rows(i).Cells("本月應上時數").Value - 人員彙總_dgv.Rows(i).Cells("已排班時數").Value
- Next
- End Sub
- Private Sub 人員彙總_dgv_CellClick(sender As Object, e As DataGridViewCellEventArgs) Handles 人員彙總_dgv.CellClick
- PA = 年份_cb.Text : PA1 = 月份_cb.Text : PA2 = 人員彙總_dgv.Rows(e.RowIndex).Cells("姓名").Value : 個人班表.Close() : 個人班表.ShowDialog()
- End Sub
- Private Sub 月份_cb_SelectedIndexChanged(sender As Object, e As EventArgs) Handles 月份_cb.SelectedIndexChanged
- If 首次開啟 = True Then
- PA1 = 年份_cb.Text : PA2 = 月份_cb.Text : 讀取日期() : 日曆變動()
- PA = 年份_cb.Text & "/" & 月份_cb.Text : 讀取排班()
- For i As Integer = 0 To 人員彙總_dgv.Rows.Count - 1
- 人員彙總_dgv.Rows(i).Cells("本月應上時數").Value = 總時數
- 人員彙總_dgv.Rows(i).Cells("未排班時數").Value = 人員彙總_dgv.Rows(i).Cells("本月應上時數").Value - 人員彙總_dgv.Rows(i).Cells("已排班時數").Value
- Next
- End If
- End Sub
- Private Sub 個人_bt_Click(sender As Object, e As EventArgs) Handles 個人_bt.Click
- 個人班表.Close() : 個人班表.Show()
- End Sub
- Private Sub B01_tb_Click(sender As Object, e As EventArgs) Handles B01_tb.Click
- PA = 年份_cb.Text : PA1 = 月份_cb.Text : PA2 = 日期_lb1.Text : 排班明細.Show()
- End Sub
- Private Sub B02_tb_Click(sender As Object, e As EventArgs) Handles B02_tb.Click
- PA = 年份_cb.Text : PA1 = 月份_cb.Text : PA2 = 日期_lb2.Text : 排班明細.Show()
- End Sub
- Private Sub B03_tb_Click(sender As Object, e As EventArgs) Handles B03_tb.Click
- PA = 年份_cb.Text : PA1 = 月份_cb.Text : PA2 = 日期_lb3.Text : 排班明細.Show()
- End Sub
- Private Sub B04_tb_Click(sender As Object, e As EventArgs) Handles B04_tb.Click
- PA = 年份_cb.Text : PA1 = 月份_cb.Text : PA2 = 日期_lb4.Text : 排班明細.Show()
- End Sub
- Private Sub B05_tb_Click(sender As Object, e As EventArgs) Handles B05_tb.Click
- PA = 年份_cb.Text : PA1 = 月份_cb.Text : PA2 = 日期_lb5.Text : 排班明細.Show()
- End Sub
- Private Sub B06_tb_Click(sender As Object, e As EventArgs) Handles B06_tb.Click
- PA = 年份_cb.Text : PA1 = 月份_cb.Text : PA2 = 日期_lb6.Text : 排班明細.Show()
- End Sub
- Private Sub B07_tb_Click(sender As Object, e As EventArgs) Handles B07_tb.Click
- PA = 年份_cb.Text : PA1 = 月份_cb.Text : PA2 = 日期_lb7.Text : 排班明細.Show()
- End Sub
- Private Sub B08_tb_Click(sender As Object, e As EventArgs) Handles B08_tb.Click
- PA = 年份_cb.Text : PA1 = 月份_cb.Text : PA2 = 日期_lb8.Text : 排班明細.Show()
- End Sub
- Private Sub B09_tb_Click(sender As Object, e As EventArgs) Handles B09_tb.Click
- PA = 年份_cb.Text : PA1 = 月份_cb.Text : PA2 = 日期_lb9.Text : 排班明細.Show()
- End Sub
- Private Sub B10_tb_Click(sender As Object, e As EventArgs) Handles B10_tb.Click
- PA = 年份_cb.Text : PA1 = 月份_cb.Text : PA2 = 日期_lb10.Text : 排班明細.Show()
- End Sub
- Private Sub B11_tb_Click(sender As Object, e As EventArgs) Handles B11_tb.Click
- PA = 年份_cb.Text : PA1 = 月份_cb.Text : PA2 = 日期_lb11.Text : 排班明細.Show()
- End Sub
- Private Sub B12_tb_Click(sender As Object, e As EventArgs) Handles B12_tb.Click
- PA = 年份_cb.Text : PA1 = 月份_cb.Text : PA2 = 日期_lb12.Text : 排班明細.Show()
- End Sub
- Private Sub B13_tb_Click(sender As Object, e As EventArgs) Handles B13_tb.Click
- PA = 年份_cb.Text : PA1 = 月份_cb.Text : PA2 = 日期_lb13.Text : 排班明細.Show()
- End Sub
- Private Sub B14_tb_Click(sender As Object, e As EventArgs) Handles B14_tb.Click
- PA = 年份_cb.Text : PA1 = 月份_cb.Text : PA2 = 日期_lb14.Text : 排班明細.Show()
- End Sub
- Private Sub B15_tb_Click(sender As Object, e As EventArgs) Handles B15_tb.Click
- PA = 年份_cb.Text : PA1 = 月份_cb.Text : PA2 = 日期_lb15.Text : 排班明細.Show()
- End Sub
- Private Sub B16_tb_Click(sender As Object, e As EventArgs) Handles B16_tb.Click
- PA = 年份_cb.Text : PA1 = 月份_cb.Text : PA2 = 日期_lb16.Text : 排班明細.Show()
- End Sub
- Private Sub B17_tb_Click(sender As Object, e As EventArgs) Handles B17_tb.Click
- PA = 年份_cb.Text : PA1 = 月份_cb.Text : PA2 = 日期_lb17.Text : 排班明細.Show()
- End Sub
- Private Sub B18_tb_Click(sender As Object, e As EventArgs) Handles B18_tb.Click
- PA = 年份_cb.Text : PA1 = 月份_cb.Text : PA2 = 日期_lb18.Text : 排班明細.Show()
- End Sub
- Private Sub B19_tb_Click(sender As Object, e As EventArgs) Handles B19_tb.Click
- PA = 年份_cb.Text : PA1 = 月份_cb.Text : PA2 = 日期_lb19.Text : 排班明細.Show()
- End Sub
- Private Sub B20_tb_Click(sender As Object, e As EventArgs) Handles B20_tb.Click
- PA = 年份_cb.Text : PA1 = 月份_cb.Text : PA2 = 日期_lb20.Text : 排班明細.Show()
- End Sub
- Private Sub B21_tb_Click(sender As Object, e As EventArgs) Handles B21_tb.Click
- PA = 年份_cb.Text : PA1 = 月份_cb.Text : PA2 = 日期_lb21.Text : 排班明細.Show()
- End Sub
- Private Sub B22_tb_Click(sender As Object, e As EventArgs) Handles B22_tb.Click
- PA = 年份_cb.Text : PA1 = 月份_cb.Text : PA2 = 日期_lb22.Text : 排班明細.Show()
- End Sub
- Private Sub B23_tb_Click(sender As Object, e As EventArgs) Handles B23_tb.Click
- PA = 年份_cb.Text : PA1 = 月份_cb.Text : PA2 = 日期_lb23.Text : 排班明細.Show()
- End Sub
- Private Sub B24_tb_Click(sender As Object, e As EventArgs) Handles B24_tb.Click
- PA = 年份_cb.Text : PA1 = 月份_cb.Text : PA2 = 日期_lb24.Text : 排班明細.Show()
- End Sub
- Private Sub B25_tb_Click(sender As Object, e As EventArgs) Handles B25_tb.Click
- PA = 年份_cb.Text : PA1 = 月份_cb.Text : PA2 = 日期_lb25.Text : 排班明細.Show()
- End Sub
- Private Sub B26_tb_Click(sender As Object, e As EventArgs) Handles B26_tb.Click
- PA = 年份_cb.Text : PA1 = 月份_cb.Text : PA2 = 日期_lb26.Text : 排班明細.Show()
- End Sub
- Private Sub B27_tb_Click(sender As Object, e As EventArgs) Handles B27_tb.Click
- PA = 年份_cb.Text : PA1 = 月份_cb.Text : PA2 = 日期_lb27.Text : 排班明細.Show()
- End Sub
- Private Sub B28_tb_Click(sender As Object, e As EventArgs) Handles B28_tb.Click
- PA = 年份_cb.Text : PA1 = 月份_cb.Text : PA2 = 日期_lb28.Text : 排班明細.Show()
- End Sub
- Private Sub B29_tb_Click(sender As Object, e As EventArgs) Handles B29_tb.Click
- PA = 年份_cb.Text : PA1 = 月份_cb.Text : PA2 = 日期_lb29.Text : 排班明細.Show()
- End Sub
- Private Sub B30_tb_Click(sender As Object, e As EventArgs) Handles B30_tb.Click
- PA = 年份_cb.Text : PA1 = 月份_cb.Text : PA2 = 日期_lb30.Text : 排班明細.Show()
- End Sub
- Private Sub B31_tb_Click(sender As Object, e As EventArgs) Handles B31_tb.Click
- PA = 年份_cb.Text : PA1 = 月份_cb.Text : PA2 = 日期_lb31.Text : 排班明細.Show()
- End Sub
- Private Sub B32_tb_Click(sender As Object, e As EventArgs) Handles B32_tb.Click
- PA = 年份_cb.Text : PA1 = 月份_cb.Text : PA2 = 日期_lb32.Text : 排班明細.Show()
- End Sub
- Private Sub B33_tb_Click(sender As Object, e As EventArgs) Handles B33_tb.Click
- PA = 年份_cb.Text : PA1 = 月份_cb.Text : PA2 = 日期_lb33.Text : 排班明細.Show()
- End Sub
- Private Sub B34_tb_Click(sender As Object, e As EventArgs) Handles B34_tb.Click
- PA = 年份_cb.Text : PA1 = 月份_cb.Text : PA2 = 日期_lb34.Text : 排班明細.Show()
- End Sub
- Private Sub B35_tb_Click(sender As Object, e As EventArgs) Handles B35_tb.Click
- PA = 年份_cb.Text : PA1 = 月份_cb.Text : PA2 = 日期_lb35.Text : 排班明細.Show()
- End Sub
- Private Sub B36_tb_Click(sender As Object, e As EventArgs) Handles B36_tb.Click
- PA = 年份_cb.Text : PA1 = 月份_cb.Text : PA2 = 日期_lb36.Text : 排班明細.Show()
- End Sub
- Private Sub B37_tb_Click(sender As Object, e As EventArgs) Handles B37_tb.Click
- PA = 年份_cb.Text : PA1 = 月份_cb.Text : PA2 = 日期_lb37.Text : 排班明細.Show()
- End Sub
- Private Sub B38_tb_Click(sender As Object, e As EventArgs) Handles B38_tb.Click
- PA = 年份_cb.Text : PA1 = 月份_cb.Text : PA2 = 日期_lb38.Text : 排班明細.Show()
- End Sub
- Private Sub B39_tb_Click(sender As Object, e As EventArgs) Handles B39_tb.Click
- PA = 年份_cb.Text : PA1 = 月份_cb.Text : PA2 = 日期_lb39.Text : 排班明細.Show()
- End Sub
- Private Sub B40_tb_Click(sender As Object, e As EventArgs) Handles B40_tb.Click
- PA = 年份_cb.Text : PA1 = 月份_cb.Text : PA2 = 日期_lb40.Text : 排班明細.Show()
- End Sub
- Private Sub B41_tb_Click(sender As Object, e As EventArgs) Handles B41_tb.Click
- PA = 年份_cb.Text : PA1 = 月份_cb.Text : PA2 = 日期_lb41.Text : 排班明細.Show()
- End Sub
- Private Sub B42_tb_Click(sender As Object, e As EventArgs) Handles B42_tb.Click
- PA = 年份_cb.Text : PA1 = 月份_cb.Text : PA2 = 日期_lb42.Text : 排班明細.Show()
- End Sub
- Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
- PA = 年份_cb.Text : PA1 = 月份_cb.Text : PA2 = 日期_lb1.Text : 排班明細_參考.Show()
- End Sub
- Private Sub Button2_Click(sender As Object, e As EventArgs) Handles Button2.Click
- PA = 年份_cb.Text : PA1 = 月份_cb.Text : PA2 = 日期_lb2.Text : 排班明細_參考.Show()
- End Sub
- Private Sub Button3_Click(sender As Object, e As EventArgs) Handles Button3.Click
- PA = 年份_cb.Text : PA1 = 月份_cb.Text : PA2 = 日期_lb3.Text : 排班明細_參考.Show()
- End Sub
- Private Sub Button4_Click(sender As Object, e As EventArgs) Handles Button4.Click
- PA = 年份_cb.Text : PA1 = 月份_cb.Text : PA2 = 日期_lb4.Text : 排班明細_參考.Show()
- End Sub
- Private Sub Button5_Click(sender As Object, e As EventArgs) Handles Button5.Click
- PA = 年份_cb.Text : PA1 = 月份_cb.Text : PA2 = 日期_lb5.Text : 排班明細_參考.Show()
- End Sub
- Private Sub Button6_Click(sender As Object, e As EventArgs) Handles Button6.Click
- PA = 年份_cb.Text : PA1 = 月份_cb.Text : PA2 = 日期_lb6.Text : 排班明細_參考.Show()
- End Sub
- Private Sub Button7_Click(sender As Object, e As EventArgs) Handles Button7.Click
- PA = 年份_cb.Text : PA1 = 月份_cb.Text : PA2 = 日期_lb7.Text : 排班明細_參考.Show()
- End Sub
- Private Sub Button8_Click(sender As Object, e As EventArgs) Handles Button8.Click
- PA = 年份_cb.Text : PA1 = 月份_cb.Text : PA2 = 日期_lb8.Text : 排班明細_參考.Show()
- End Sub
- Private Sub Button9_Click(sender As Object, e As EventArgs) Handles Button9.Click
- PA = 年份_cb.Text : PA1 = 月份_cb.Text : PA2 = 日期_lb9.Text : 排班明細_參考.Show()
- End Sub
- Private Sub Button10_Click(sender As Object, e As EventArgs) Handles Button10.Click
- PA = 年份_cb.Text : PA1 = 月份_cb.Text : PA2 = 日期_lb10.Text : 排班明細_參考.Show()
- End Sub
- Private Sub Button11_Click(sender As Object, e As EventArgs) Handles Button11.Click
- PA = 年份_cb.Text : PA1 = 月份_cb.Text : PA2 = 日期_lb11.Text : 排班明細_參考.Show()
- End Sub
- Private Sub Button12_Click(sender As Object, e As EventArgs) Handles Button12.Click
- PA = 年份_cb.Text : PA1 = 月份_cb.Text : PA2 = 日期_lb12.Text : 排班明細_參考.Show()
- End Sub
- Private Sub Button13_Click(sender As Object, e As EventArgs) Handles Button13.Click
- PA = 年份_cb.Text : PA1 = 月份_cb.Text : PA2 = 日期_lb13.Text : 排班明細_參考.Show()
- End Sub
- Private Sub Button14_Click(sender As Object, e As EventArgs) Handles Button14.Click
- PA = 年份_cb.Text : PA1 = 月份_cb.Text : PA2 = 日期_lb14.Text : 排班明細_參考.Show()
- End Sub
- Private Sub Button15_Click(sender As Object, e As EventArgs) Handles Button15.Click
- PA = 年份_cb.Text : PA1 = 月份_cb.Text : PA2 = 日期_lb15.Text : 排班明細_參考.Show()
- End Sub
- Private Sub Button16_Click(sender As Object, e As EventArgs) Handles Button16.Click
- PA = 年份_cb.Text : PA1 = 月份_cb.Text : PA2 = 日期_lb16.Text : 排班明細_參考.Show()
- End Sub
- Private Sub Button17_Click(sender As Object, e As EventArgs) Handles Button17.Click
- PA = 年份_cb.Text : PA1 = 月份_cb.Text : PA2 = 日期_lb17.Text : 排班明細_參考.Show()
- End Sub
- Private Sub Button18_Click(sender As Object, e As EventArgs) Handles Button18.Click
- PA = 年份_cb.Text : PA1 = 月份_cb.Text : PA2 = 日期_lb18.Text : 排班明細_參考.Show()
- End Sub
- Private Sub Button19_Click(sender As Object, e As EventArgs) Handles Button19.Click
- PA = 年份_cb.Text : PA1 = 月份_cb.Text : PA2 = 日期_lb19.Text : 排班明細_參考.Show()
- End Sub
- Private Sub Button20_Click(sender As Object, e As EventArgs) Handles Button20.Click
- PA = 年份_cb.Text : PA1 = 月份_cb.Text : PA2 = 日期_lb20.Text : 排班明細_參考.Show()
- End Sub
- Private Sub Button21_Click(sender As Object, e As EventArgs) Handles Button21.Click
- PA = 年份_cb.Text : PA1 = 月份_cb.Text : PA2 = 日期_lb21.Text : 排班明細_參考.Show()
- End Sub
- Private Sub Button22_Click(sender As Object, e As EventArgs) Handles Button22.Click
- PA = 年份_cb.Text : PA1 = 月份_cb.Text : PA2 = 日期_lb22.Text : 排班明細_參考.Show()
- End Sub
- Private Sub Button23_Click(sender As Object, e As EventArgs) Handles Button23.Click
- PA = 年份_cb.Text : PA1 = 月份_cb.Text : PA2 = 日期_lb23.Text : 排班明細_參考.Show()
- End Sub
- Private Sub Button24_Click(sender As Object, e As EventArgs) Handles Button24.Click
- PA = 年份_cb.Text : PA1 = 月份_cb.Text : PA2 = 日期_lb24.Text : 排班明細_參考.Show()
- End Sub
- Private Sub Button25_Click(sender As Object, e As EventArgs) Handles Button25.Click
- PA = 年份_cb.Text : PA1 = 月份_cb.Text : PA2 = 日期_lb25.Text : 排班明細_參考.Show()
- End Sub
- Private Sub Button26_Click(sender As Object, e As EventArgs) Handles Button26.Click
- PA = 年份_cb.Text : PA1 = 月份_cb.Text : PA2 = 日期_lb26.Text : 排班明細_參考.Show()
- End Sub
- Private Sub Button27_Click(sender As Object, e As EventArgs) Handles Button27.Click
- PA = 年份_cb.Text : PA1 = 月份_cb.Text : PA2 = 日期_lb27.Text : 排班明細_參考.Show()
- End Sub
- Private Sub Button28_Click(sender As Object, e As EventArgs) Handles Button28.Click
- PA = 年份_cb.Text : PA1 = 月份_cb.Text : PA2 = 日期_lb28.Text : 排班明細_參考.Show()
- End Sub
- Private Sub Button29_Click(sender As Object, e As EventArgs) Handles Button29.Click
- PA = 年份_cb.Text : PA1 = 月份_cb.Text : PA2 = 日期_lb29.Text : 排班明細_參考.Show()
- End Sub
- Private Sub Button30_Click(sender As Object, e As EventArgs) Handles Button30.Click
- PA = 年份_cb.Text : PA1 = 月份_cb.Text : PA2 = 日期_lb30.Text : 排班明細_參考.Show()
- End Sub
- Private Sub Button31_Click(sender As Object, e As EventArgs) Handles Button31.Click
- PA = 年份_cb.Text : PA1 = 月份_cb.Text : PA2 = 日期_lb31.Text : 排班明細_參考.Show()
- End Sub
- Private Sub Button32_Click(sender As Object, e As EventArgs) Handles Button32.Click
- PA = 年份_cb.Text : PA1 = 月份_cb.Text : PA2 = 日期_lb32.Text : 排班明細_參考.Show()
- End Sub
- Private Sub Button33_Click(sender As Object, e As EventArgs) Handles Button33.Click
- PA = 年份_cb.Text : PA1 = 月份_cb.Text : PA2 = 日期_lb33.Text : 排班明細_參考.Show()
- End Sub
- Private Sub Button34_Click(sender As Object, e As EventArgs) Handles Button34.Click
- PA = 年份_cb.Text : PA1 = 月份_cb.Text : PA2 = 日期_lb34.Text : 排班明細_參考.Show()
- End Sub
- Private Sub Button35_Click(sender As Object, e As EventArgs) Handles Button35.Click
- PA = 年份_cb.Text : PA1 = 月份_cb.Text : PA2 = 日期_lb35.Text : 排班明細_參考.Show()
- End Sub
- Private Sub Button36_Click(sender As Object, e As EventArgs) Handles Button36.Click
- PA = 年份_cb.Text : PA1 = 月份_cb.Text : PA2 = 日期_lb36.Text : 排班明細_參考.Show()
- End Sub
- Private Sub Button37_Click(sender As Object, e As EventArgs) Handles Button37.Click
- PA = 年份_cb.Text : PA1 = 月份_cb.Text : PA2 = 日期_lb37.Text : 排班明細_參考.Show()
- End Sub
- Private Sub Button38_Click(sender As Object, e As EventArgs) Handles Button38.Click
- PA = 年份_cb.Text : PA1 = 月份_cb.Text : PA2 = 日期_lb38.Text : 排班明細_參考.Show()
- End Sub
- Private Sub Button39_Click(sender As Object, e As EventArgs) Handles Button39.Click
- PA = 年份_cb.Text : PA1 = 月份_cb.Text : PA2 = 日期_lb39.Text : 排班明細_參考.Show()
- End Sub
- Private Sub Button40_Click(sender As Object, e As EventArgs) Handles Button40.Click
- PA = 年份_cb.Text : PA1 = 月份_cb.Text : PA2 = 日期_lb40.Text : 排班明細_參考.Show()
- End Sub
- Private Sub Button41_Click(sender As Object, e As EventArgs) Handles Button41.Click
- PA = 年份_cb.Text : PA1 = 月份_cb.Text : PA2 = 日期_lb41.Text : 排班明細_參考.Show()
- End Sub
- Private Sub Button42_Click(sender As Object, e As EventArgs) Handles Button42.Click
- PA = 年份_cb.Text : PA1 = 月份_cb.Text : PA2 = 日期_lb42.Text : 排班明細_參考.Show()
- End Sub
- End Class
|