Index: APPS/Halux/Planning/Capaciteit/impl/WerktijdCalculator.cls.xml
===================================================================
diff -u -r57301 -r57446
--- APPS/Halux/Planning/Capaciteit/impl/WerktijdCalculator.cls.xml (.../WerktijdCalculator.cls.xml) (revision 57301)
+++ APPS/Halux/Planning/Capaciteit/impl/WerktijdCalculator.cls.xml (.../WerktijdCalculator.cls.xml) (revision 57446)
@@ -19,7 +19,7 @@
%Decimal
-
+
%String
@@ -32,7 +32,7 @@
-APPS.Halux.Planning.Pitching.impl.ResourcePitched
+APPS.Halux.Planning.Pitching.dto.ResourcePitched
@@ -48,15 +48,15 @@
%Status
1
-ResourceId
+Resource
%Date
-ResourcePitched:APPS.Halux.Planning.Pitching.impl.ResourcePitched
+ResourcePitched:APPS.Halux.Planning.Pitching.dto.ResourcePitched
-ResourcePitched:APPS.Halux.Planning.Pitching.impl.ResourcePitched
+ResourcePitched:APPS.Halux.Planning.Pitching.dto.ResourcePitched
..RefTijd) ; valt in een pauze of na einde werkdag
+ Set ..CapEindTijd=$O(^Halux.GeplandeCapaciteit(..NodeVroeger,..Resource,..RefDatum,..RefTijd),+1) ;eerst latere
+ If (..CapEindTijd="") || ($LI(^Halux.GeplandeCapaciteit(..NodeVroeger,..Resource,..RefDatum,..CapEindTijd),1)>..RefTijd) ; valt in een pauze of na einde werkdag
{ ; niet binnen een tijdslot
- Set ..CapEindTijd=$O(^Halux.GeplandeCapaciteit(..NodeVroeger,..ResourceId,..RefDatum,..RefTijd),-1) ; eerst vroegere tijdslot
+ Set ..CapEindTijd=$O(^Halux.GeplandeCapaciteit(..NodeVroeger,..Resource,..RefDatum,..RefTijd),-1) ; eerst vroegere tijdslot
If (..CapEindTijd="") ; er zijn geen latere
{
w:..Debug 4,"volgende datum",!
- Set ..RefDatum=$O(^Halux.GeplandeCapaciteit(..NodeVroeger,..ResourceId,..RefDatum),-1) ; eerst vorige datum
- Set:..RefDatum ..CapEindTijd=$O(^Halux.GeplandeCapaciteit(..NodeVroeger,..ResourceId,..RefDatum,""),-1)
+ Set ..RefDatum=$O(^Halux.GeplandeCapaciteit(..NodeVroeger,..Resource,..RefDatum),-1) ; eerst vorige datum
+ Set:..RefDatum ..CapEindTijd=$O(^Halux.GeplandeCapaciteit(..NodeVroeger,..Resource,..RefDatum,""),-1)
Set ..RefTijd=..CapEindTijd
}
Else
@@ -195,22 +195,22 @@
Set ..CapStartTijd=""
Set ..CapEindTijd=""
- If $D(^Halux.GeplandeCapaciteit(..ResourceId,..RefDatum,..RefTijd))
+ If $D(^Halux.GeplandeCapaciteit(..Resource,..RefDatum,..RefTijd))
{
w:..Debug 1,"bingo",!
Set ..CapStartTijd=..RefTijd
}
Else
{
- Set ..CapStartTijd=$O(^Halux.GeplandeCapaciteit(..NodeLater,..ResourceId,..RefDatum,..RefTijd),-1) ;eerst vroegere
- If (..CapStartTijd="") || ($LI(^Halux.GeplandeCapaciteit(..NodeLater,..ResourceId,..RefDatum,..CapStartTijd),1)<..RefTijd) ; valt in een pauze of na einde werkdag
+ Set ..CapStartTijd=$O(^Halux.GeplandeCapaciteit(..NodeLater,..Resource,..RefDatum,..RefTijd),-1) ;eerst vroegere
+ If (..CapStartTijd="") || ($LI(^Halux.GeplandeCapaciteit(..NodeLater,..Resource,..RefDatum,..CapStartTijd),1)<..RefTijd) ; valt in een pauze of na einde werkdag
{ ; niet binnen een tijdslot
- Set ..CapStartTijd=$O(^Halux.GeplandeCapaciteit(..NodeLater,..ResourceId,..RefDatum,..RefTijd)) ; eerst latere tijdslot
+ Set ..CapStartTijd=$O(^Halux.GeplandeCapaciteit(..NodeLater,..Resource,..RefDatum,..RefTijd)) ; eerst latere tijdslot
If (..CapStartTijd="") ; er zijn geen latere
{
w:..Debug 4,"vorige datum",!
- Set ..RefDatum=$O(^Halux.GeplandeCapaciteit(..NodeLater,..ResourceId,..RefDatum)) ; eerst volgende datum
- Set:..RefDatum ..CapStartTijd=$O(^Halux.GeplandeCapaciteit(..NodeLater,..ResourceId,..RefDatum,""))
+ Set ..RefDatum=$O(^Halux.GeplandeCapaciteit(..NodeLater,..Resource,..RefDatum)) ; eerst volgende datum
+ Set:..RefDatum ..CapStartTijd=$O(^Halux.GeplandeCapaciteit(..NodeLater,..Resource,..RefDatum,""))
Set ..RefTijd=..CapStartTijd
}
Else
@@ -235,8 +235,8 @@
1
%Decimal
@@ -259,7 +259,7 @@
Datum,Tijd