Feiertagsberechnung -> die Normalarbeitszeit wird nun ebenfalls veringert, wenn es sich um einen Feiertag in Deutschland handelt (wenn MA = DE).
This commit is contained in:
@@ -3518,7 +3518,7 @@ Public Class cDienstplan
|
||||
Dim d As New cDienstMA
|
||||
|
||||
Using conn As SqlConnection = cSqlDb.GetNewOpenConnection()
|
||||
Using cmd As New SqlCommand(" SELECT dstma_id,dstma_mitId,dstma_kuerzel, dstma_abteilung,dstma_funktion,dstma_arbvh,dstma_wochenStunden,dstma_stammSchicht,dstma_reihenfolge,dstma_farbe,dstma_TageProWoche,dstma_inaktiv,dstma_TzFeiertageStd FROM tblDienstMitarb WHERE dstma_id=" & dstmaId & " ", conn)
|
||||
Using cmd As New SqlCommand(" SELECT dstma_id,dstma_mitId,dstma_kuerzel, dstma_abteilung,dstma_funktion,dstma_arbvh,dstma_wochenStunden,dstma_stammSchicht,dstma_reihenfolge,dstma_farbe,dstma_TageProWoche,dstma_inaktiv,dstma_TzFeiertageStd, dstma_land FROM tblDienstMitarb WHERE dstma_id=" & dstmaId & " ", conn)
|
||||
'cmd.Parameters.AddWithValue("@semi_id", id)
|
||||
Dim dr = cmd.ExecuteReader()
|
||||
While dr.Read
|
||||
@@ -3536,6 +3536,8 @@ Public Class cDienstplan
|
||||
d.dstma_inaktiv = dr.Item("dstma_inaktiv")
|
||||
If Not dr.Item("dstma_TzFeiertageStd") Is DBNull.Value Then d.dstma_TzFeiertageStd = dr.Item("dstma_TzFeiertageStd")
|
||||
|
||||
If Not dr.Item("dstma_land") Is DBNull.Value Then d.dstma_land = dr.Item("dstma_land")
|
||||
|
||||
End While
|
||||
dr.Close()
|
||||
End Using
|
||||
|
||||
Reference in New Issue
Block a user