Index: APPS/Halux/common/impl/BatchImpl.cls.xml
===================================================================
diff -u -r52134 -r52358
--- APPS/Halux/common/impl/BatchImpl.cls.xml (.../BatchImpl.cls.xml) (revision 52134)
+++ APPS/Halux/common/impl/BatchImpl.cls.xml (.../BatchImpl.cls.xml) (revision 52358)
@@ -519,8 +519,23 @@
%Integer
Index: APPS/VKP/Maatwerk/LadeRegistratie/impl/Registratie.cls.xml
===================================================================
diff -u -r50298 -r52358
--- APPS/VKP/Maatwerk/LadeRegistratie/impl/Registratie.cls.xml (.../Registratie.cls.xml) (revision 50298)
+++ APPS/VKP/Maatwerk/LadeRegistratie/impl/Registratie.cls.xml (.../Registratie.cls.xml) (revision 52358)
@@ -68,6 +68,10 @@
RegistratieCode
+
+PRNr
+
+
Werkpost:%String,Familie:%String
%Status
Index: APPS/Halux/Planning/Pitching/impl/Service.cls.xml
===================================================================
diff -u
--- APPS/Halux/Planning/Pitching/impl/Service.cls.xml (revision 0)
+++ APPS/Halux/Planning/Pitching/impl/Service.cls.xml (revision 52358)
@@ -0,0 +1,58 @@
+
+
+
+TECH.RegisteredObject
+
+
+%String
+array
+
+
+
+BatchVolgorde
+list
+
+
+
+BatchVolgorde
+
+
+
+BatchVolgorde
+
+
+
+%Integer
+
+
+
+
+d ##class(APPS.Halux.Planning.Pitching.impl.Service).%New().ImportEnBereken()
+1
+1
+%Status
+1
+
+
+
+
+
+
+
+
+
+d ##class(APPS.Halux.Planning.Pitching.impl.Service).%New().Bereken()
+
+
+
+
+
+
Index: APPS/Halux/Planning/Pitching/impl/BerekenTijdstippen.cls.xml
===================================================================
diff -u
--- APPS/Halux/Planning/Pitching/impl/BerekenTijdstippen.cls.xml (revision 0)
+++ APPS/Halux/Planning/Pitching/impl/BerekenTijdstippen.cls.xml (revision 52358)
@@ -0,0 +1,304 @@
+
+
+
+TECH.RegisteredObject
+
+
+%String
+array
+
+
+
+BatchVolgorde
+list
+
+
+
+BatchVolgorde
+
+
+
+BatchVolgorde
+
+
+
+%Integer
+
+
+
+
+d ##class(APPS.Halux.Planning.Pitching.impl.BerekenTijdstippen).%New().Bereken()
+1
+1
+%Status
+1
+
+
+
+
+
+
+
+
+Lijn:%Integer
+
+
+
+
+LijnGepland
+
+
+
+
+
+
+
+
+ ..VolgordeBatchInVerwerking)
+ {
+ If ..VorigePitchBatch.Gepland
+ {
+ Set ..PitchBatch.StartTijdstip=..VorigePitchBatch.EindeTijdstip
+ Do ..BepaalEindTijdstip()
+ }
+ Set ..PitchBatch.Status="Toekomst"
+ }
+ Else ;(VolgordeVerwerking < ..VolgordeBatchInVerwerking)
+ {
+ Set ..PitchBatch.Status="Verleden"
+ }
+
+ If ..PitchBatch.%IsModified()
+ {
+ Do ..PitchBatch.Save()
+ }
+ }
+]]>
+
+
+
+= Datum",Planning.Datum," uur:",Planning.Uur," EindMinuut",Werktijd.EindeMinuut,!
+ If Minuut>=Werktijd.EindeMinuut Continue
+ Set Capaciteit=+$J(Werktijd.Capaciteit * $S(Categorie="Tandembox":Werktijd.FactorTBX,1:1),0,0)
+ w " werktijd cap=",Capaciteit
+ If MinuutCapaciteit
+ {
+ Set Aantal=Aantal-Capaciteit
+ Set Minuut=-1 ; van de eerste volgende werktijd de BeginMinuut nemen
+ Write " capaciteit ontoereiken voor aantal, rest aantal",Aantal,!
+ }
+ Else
+ {
+ Set Minuut=+$J(Werktijd.BeginMinuut+((Werktijd.EindeMinuut-Werktijd.BeginMinuut)*Aantal/Capaciteit),0,0)
+ Set EindeTijdstip=$$$Timestamp(Planning.Datum_","_((Planning.Uur*60+Minuut)*60))
+ w " rest van batch past binnen capaciteit Uur:", Planning.Uur ," Min:", Minuut,!
+ Set Aantal=0
+ }
+ }
+ }
+ If EindeTijdstip
+ {
+ Set ..PitchBatch.EindeTijdstip=EindeTijdstip
+ Set ..PitchBatch.Gepland=1
+ }
+ }
+ Else ; geen lade meer te produceren
+ {
+ Set ..PitchBatch.EindeTijdstip=..PitchBatch.StartTijdstip
+ Set ..PitchBatch.Gepland=1
+
+ }
+]]>
+
+
+
+Werktijd)
+ {
+ Continue
+ }
+ If (Datum=Planning.Datum) && (Uur=Planning.Uur) && (Minuut'Werktijd.EindeMinuut)
+ {
+ Set EersteWerktijd=StartTijdstip
+ }
+ Else
+ {
+ Set EersteWerktijd=Planning.Datum_","_((Planning.Uur*60+Werktijd.BeginMinuut)*60)
+ }
+ }
+ }
+
+ Quit $S(EersteWerktijd:$zdt(EersteWerktijd,3,,6),1:"")
+]]>
+
+
+
+Lijn:%Integer,VanafDatum:%Date,VanafUur:%Integer
+=?) or (Datum>?)) order by Datum asc , Uur asc")
+
+ Set sc=rs.Execute(Lijn,VanafDatum,VanafUur,VanafDatum)
+ Set it=##class(TECH.ResultSetIterator).%New(rs)
+ Quit it
+]]>
+
+
+
+TECH.Iterator
+
+
+
+
+Lijn:%Integer
+TECH.Iterator
+
+
+
+
+
+
+
+
+
+
Index: APPS/Halux/Planning/Capaciteit/impl/GeplandeCapaciteitPerWerktijd.cls.xml
===================================================================
diff -u
--- APPS/Halux/Planning/Capaciteit/impl/GeplandeCapaciteitPerWerktijd.cls.xml (revision 0)
+++ APPS/Halux/Planning/Capaciteit/impl/GeplandeCapaciteitPerWerktijd.cls.xml (revision 52358)
@@ -0,0 +1,46 @@
+
+
+
+%SerialObject
+
+
+%Integer
+
+
+
+%Integer
+
+
+
+%Integer
+
+
+
+%Decimal
+
+
+
+%Library.CacheSerialState
+GeplandeCapaciteitPerWerktijdState
+^APPS.Halux8751.GeplandeCap5D44S
+
+listnode
+
+
+BeginMinuut
+
+
+EindeMinuut
+
+
+Capaciteit
+
+
+FactorTBX
+
+
+
+
+
+
+
Index: APPS/Halux/Planning/Capaciteit/impl/BerekenWerktijden.cls.xml
===================================================================
diff -u
--- APPS/Halux/Planning/Capaciteit/impl/BerekenWerktijden.cls.xml (revision 0)
+++ APPS/Halux/Planning/Capaciteit/impl/BerekenWerktijden.cls.xml (revision 52358)
@@ -0,0 +1,127 @@
+
+
+
+TECH.RegisteredObject
+
+
+%Date
+1
+
+
+
+GeplandeCapaciteit
+
+
+
+
+d ##class(APPS.Halux.Planning.Capaciteit.impl.BerekenWerktijden).%New().Bereken()
+Datum:%Date
+1
+1
+%Status
+1
+
+
+
+
+
+
+
+
+
+
+
+
+Start:%Integer,Einde:%Integer,Capaciteit:%Integer=""
+
+
+
+
+%Boolean
+
+
+
+
+
+
+
+
+
+
Index: APPS/Halux/Planning/Pitching/impl/BatchVolgorde.cls.xml
===================================================================
diff -u
--- APPS/Halux/Planning/Pitching/impl/BatchVolgorde.cls.xml (revision 0)
+++ APPS/Halux/Planning/Pitching/impl/BatchVolgorde.cls.xml (revision 52358)
@@ -0,0 +1,150 @@
+
+
+
+persistent
+1
+TECH.Persistent
+
+
+%String
+
+
+
+APPS.Halux.common.impl.BatchImpl
+
+
+
+%Integer
+
+
+
+%Integer
+
+
+
+%Decimal
+
+
+
+
+Na inladen nieuwe pitching worden de oude pitching op nonactief gezet en alleen de nieuwe toegevoegde blijven actief
+%Boolean
+
+
+
+
+Heeft de pichtingberekening voldoende geplande uren om de pitching te bereken
+
+%String
+
+
+
+
+%Boolean
+
+
+
+
+Batch in verwerking op de productielijnen
+%Boolean
+
+
+
+%String
+
+
+
+%String
+
+
+
+%String
+
+
+
+%TimeStamp
+
+
+
+%TimeStamp
+
+
+
+%TimeStamp
+
+
+
+Actief,Lijn,Volgorde
+
+
+
+%Library.CacheStorage
+^APPS.Halux.P1A9E.BatchVolgordeD
+BatchVolgordeDefaultData
+^APPS.Halux.P1A9E.BatchVolgordeD
+^APPS.Halux.P1A9E.BatchVolgordeI
+^APPS.Halux.P1A9E.BatchVolgordeS
+
+
+%%CLASSNAME
+
+
+Batch
+
+
+Lijn
+
+
+Volgorde
+
+
+Actief
+
+
+CreatieTijdstip
+
+
+Opmerking
+
+
+BatchRef
+
+
+BatchLastKar
+
+
+AantalLaden
+
+
+InVerwerking
+
+
+StartTijdstip
+
+
+EindeTijdstip
+
+
+Aantal
+
+
+Gepland
+
+
+Categorie
+
+
+ProductGroep
+
+
+ProductieGroep
+
+
+Status
+
+
+
+
+
+
+
Index: APPS/Halux/Planning/Capaciteit/impl/ImportFromXLS.cls.xml
===================================================================
diff -u
--- APPS/Halux/Planning/Capaciteit/impl/ImportFromXLS.cls.xml (revision 0)
+++ APPS/Halux/Planning/Capaciteit/impl/ImportFromXLS.cls.xml (revision 52358)
@@ -0,0 +1,88 @@
+
+
+
+TECH.RegisteredObject
+
+
+TECH.FileReader
+1
+
+
+
+
+d ##class(APPS.Halux.Planning.Capaciteit.impl.ImportFromXLS).%New().ImportXLS()
+1
+1
+%Status
+1
+
+
+
+
+
+
+
+
+BatchID:TECH.String
+
+
+
+
+Datum:%String,Uur:%Integer,Lijn:%Integer,Capaciteit:%Decimal
+0
+ {
+ Set GeplandeCapaciteit=##class(GeplandeCapaciteit).%New()
+ Set GeplandeCapaciteit.Datum=Datum
+ Set GeplandeCapaciteit.Uur=Uur
+ Set GeplandeCapaciteit.Lijn=Lijn
+ Set GeplandeCapaciteit.Capaciteit=Capaciteit
+ Do GeplandeCapaciteit.Save()
+ }
+]]>
+
+
+
+
+
Index: APPS/Halux/Planning/Pitching/impl/ImportFromXLS.cls.xml
===================================================================
diff -u
--- APPS/Halux/Planning/Pitching/impl/ImportFromXLS.cls.xml (revision 0)
+++ APPS/Halux/Planning/Pitching/impl/ImportFromXLS.cls.xml (revision 52358)
@@ -0,0 +1,122 @@
+
+
+
+TECH.RegisteredObject
+
+
+TECH.FileReader
+1
+
+
+
+%TimeStamp
+1
+
+
+
+
+d ##class(APPS.Halux.Planning.Pitching.impl.ImportFromXLS).%New().ImportXLS()
+1
+1
+%Status
+1
+
+
+
+
+
+
+
+
+BatchID:TECH.String
+
+
+
+
+Lijn:%Integer,Volgorde:%Integer,BatchLastKar:%String,Opmerking:%String
+
+
+
+
+BatchLastKar:%String
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Index: APPS/Halux/Planning/Capaciteit/impl/Werktijd.cls.xml
===================================================================
diff -u
--- APPS/Halux/Planning/Capaciteit/impl/Werktijd.cls.xml (revision 0)
+++ APPS/Halux/Planning/Capaciteit/impl/Werktijd.cls.xml (revision 52358)
@@ -0,0 +1,44 @@
+
+
+
+%SerialObject
+
+
+%Integer
+
+
+
+%Integer
+
+
+
+%Integer
+
+
+
+%Decimal
+
+
+
+%Library.CacheSerialState
+WerktijdState
+^APPS.Halux.Planni8751.WerktijdS
+
+
+BeginMinuut
+
+
+EindeMinuut
+
+
+Capaciteit
+
+
+FactorTBX
+
+
+
+
+
+
+
Index: APPS/Halux/Planning/Capaciteit/impl/GeplandeCapaciteit.cls.xml
===================================================================
diff -u
--- APPS/Halux/Planning/Capaciteit/impl/GeplandeCapaciteit.cls.xml (revision 0)
+++ APPS/Halux/Planning/Capaciteit/impl/GeplandeCapaciteit.cls.xml (revision 52358)
@@ -0,0 +1,58 @@
+
+
+
+persistent
+1
+TECH.Persistent
+
+
+%Date
+
+
+
+%Integer
+
+
+
+Werktijd
+list
+
+
+
+%Integer
+
+
+
+%Decimal
+
+
+
+1
+1
+Datum,Uur,Lijn
+1
+
+
+
+%Library.CacheStorage
+^APPS.Halux8751.GeplandeCap83EFD
+GeplandeCapaciteitDefaultData
+^APPS.Halux8751.GeplandeCap83EFD
+^APPS.Halux8751.GeplandeCap83EFI
+^APPS.Halux8751.GeplandeCap83EFS
+
+
+%%CLASSNAME
+
+
+Capaciteit
+
+
+Werktijden
+
+
+
+
+
+
+