Index: APPS/Halux/Opvolging/ProductieStap/dto/ProductieStapLogItem.cls.xml
===================================================================
diff -u -r39939 -r50244
--- APPS/Halux/Opvolging/ProductieStap/dto/ProductieStapLogItem.cls.xml (.../ProductieStapLogItem.cls.xml) (revision 39939)
+++ APPS/Halux/Opvolging/ProductieStap/dto/ProductieStapLogItem.cls.xml (.../ProductieStapLogItem.cls.xml) (revision 50244)
@@ -6,7 +6,7 @@
Tevens worden er bij reworks de rework gelogged en worden de reeds geregistreerde stappen van het werkstuk op non actief gezet
persistent
1
-APPS.Halux.PPS.dto.ProductGebaseerdeUitvoeringInfo
+TECH.Persistent
MachineID
@@ -28,6 +28,34 @@
SequentieNummer
+
+VerwerkingID
+
+
+
+ProductID
+
+
+
+DossierCode
+
+
+
+
+De dossiercode van het product (uit MaatwerkProduct).
+%String
+1
+
+
+
+DOM.common.ProductID
+1
+
+
+
+%String
+
+
De BatchID waar het item toe hoort.
@@ -63,19 +91,25 @@
1
-
+
+%String
+
+
+
+
+Geeft aan of dit rework vertegenwoordigt of niet.
%Boolean
0
1
-
-%String
-
-
%Library.CacheStorage
+^APPS.HaluxBF30.ProductieSt53EBD
ProductieStapLogItemDefaultData
+^APPS.HaluxBF30.ProductieSt53EBD
+^APPS.HaluxBF30.ProductieSt53EBI
+^APPS.HaluxBF30.ProductieSt53EBS
listnode
"ProductieStapLogItem"
@@ -109,6 +143,21 @@
TijdstipProductie
+
+%%CLASSNAME
+
+
+DossierCode
+
+
+ProductID
+
+
+VerwerkingID
+
+
+IsRework
+
Index: APPS/Halux/Opvolging/ProductieStap/TAOR/impl/ProductieStapLogger.cls.xml
===================================================================
diff -u -r39992 -r50244
--- APPS/Halux/Opvolging/ProductieStap/TAOR/impl/ProductieStapLogger.cls.xml (.../ProductieStapLogger.cls.xml) (revision 39992)
+++ APPS/Halux/Opvolging/ProductieStap/TAOR/impl/ProductieStapLogger.cls.xml (.../ProductieStapLogger.cls.xml) (revision 50244)
@@ -52,7 +52,6 @@
Set ..LogItem.TijdstipCreatie=$$$Timestamp($H)
Set ..LogItem.TijdstipProductie=..LogItem.TijdstipCreatie
Set ..LogItem.StapNummer=..BepaalStapNummer()
- Set ..LogItem.LaatstToegevoegd=0
]]>
@@ -70,10 +69,13 @@
0 AND TijdstipProductie>:LaatsteTijdstip)
+ &SQL(UPDATE APPS_Halux_Opvolging_ProductieStap_TAOR_dto.ProductieStapLogItem SET StapNummer=-StapNummer WHERE VerwerkingID=:VerwerkingID and StapNummer>0 AND TijdstipProductie<:LaatsteReworkTijdstip)
}
]]>
Index: APPS/Halux/Opvolging/ProductieStap/TAOR/impl/ArdisOptimalisatie.cls.xml
===================================================================
diff -u -r39992 -r50244
--- APPS/Halux/Opvolging/ProductieStap/TAOR/impl/ArdisOptimalisatie.cls.xml (.../ArdisOptimalisatie.cls.xml) (revision 39992)
+++ APPS/Halux/Opvolging/ProductieStap/TAOR/impl/ArdisOptimalisatie.cls.xml (.../ArdisOptimalisatie.cls.xml) (revision 50244)
@@ -40,7 +40,6 @@
%Status
@@ -55,14 +54,14 @@
While it.HasNext()
{
Set rs=it.Next()
- Set ..MachineTijdstip=$P(rs.Data("LastChanged"),".") ; geen milliseconde
+ Set ..MachineTijdstip=$P(rs.Data("Inserted"),".") ; geen milliseconde
Continue:$$DIFFTIME^vhLib.DataTypes(..StartTijdstip,$ZDTH(..MachineTijdstip,3,,6))'>0
#dim Barcode as %String=$ZSTRIP(rs.Data("VerwerkingID"),">W")
Set ..Rework=$ZSTRIP(rs.Data("Rework"),">W")
Set ..Status=rs.Data("Status")
- If (..Status=0) || (..Status=2)
+ If (..Status=0) || (..Status=2) || (..Status=4)
{
;w Barcode," ",..MachineTijdstip," ",..Status," ",..Rework,!
Do ..VoegToeProductieStap(Barcode)
@@ -98,19 +97,18 @@
Set ..LogItem.TijdstipProductie=..MachineTijdstip
Set ..LogItem.StapNummer=..BepaalStapNummer()
Set ..LogItem.IsRework=..BepaalRework()
- Set ..LogItem.LaatstToegevoegd=0
]]>
1
-
1
-
Index: APPS/Halux/Opvolging/ProductieStap/TAOR/impl/CopieerBatch.cls.xml
===================================================================
diff -u -r40519 -r50244
--- APPS/Halux/Opvolging/ProductieStap/TAOR/impl/CopieerBatch.cls.xml (.../CopieerBatch.cls.xml) (revision 40519)
+++ APPS/Halux/Opvolging/ProductieStap/TAOR/impl/CopieerBatch.cls.xml (.../CopieerBatch.cls.xml) (revision 50244)
@@ -89,12 +89,11 @@
Set ..LogItem.SequentieNummer=..InfoItem.SequentieNummer
Set ..LogItem.MachineID=..Machine
Set ..LogItem.TijdstipCreatie=$$$Timestamp($H)
- Set ..LogItem.TijdstipProductie=$$$Timestamp($H-10) ;..LogItem.TijdstipCreatie
+ Set ..LogItem.TijdstipProductie=..LogItem.TijdstipCreatie
Set ..LogItem.Onderdeel=..BepaalOnderdeel()
Set ..LogItem.StapNummer=..BepaalStapNummer()
Set ..LogItem.Kar=..BepaalKar()
Set ..LogItem.DueOut=..BepaalDueOut()
- Set ..LogItem.LaatstToegevoegd=1
;Do DumpObject^%apiOBJ(..LogItem)
Do:..ToegelatenVerwerkingID(..LogItem.BatchID,..LogItem.VerwerkingID) ..LogItem.Save()
]]>
Index: APPS/Halux/Opvolging/ProductieStap/impl/StatusOpvragen.cls.xml
===================================================================
diff -u -r39939 -r50244
--- APPS/Halux/Opvolging/ProductieStap/impl/StatusOpvragen.cls.xml (.../StatusOpvragen.cls.xml) (revision 39939)
+++ APPS/Halux/Opvolging/ProductieStap/impl/StatusOpvragen.cls.xml (.../StatusOpvragen.cls.xml) (revision 50244)
@@ -11,15 +11,15 @@
%SQLQuery
BatchId:%String
-select BatchID, ToeleveringID, Klant.naam,VerwerkingID, Onderdeel,TijdstipCreatie, MachineID,StapNummer, IsRework,LaatstToegevoegd,Kar,DueOut from APPS_Halux_Opvolging_ProductieStap_TAOR_dto.ProductieStapLogItem log
+select BatchID, ToeleveringID, Klant.naam,VerwerkingID, Onderdeel,TijdstipCreatie, MachineID,StapNummer, IsRework,Kar,DueOut from APPS_Halux_Opvolging_ProductieStap_TAOR_dto.ProductieStapLogItem log
join Derde_Klant.Klant klant on $Piece(log.PartijID,'||',2)=klant.ID
where log.batchid=?
%SQLQuery
ToeLeveringID:%String
-select BatchID, ToeleveringID, Klant.naam,VerwerkingID, Onderdeel,TijdstipCreatie, MachineID,StapNummer, IsRework, LaatstToegevoegd,Kar,DueOut from APPS_Halux_Opvolging_ProductieStap_TAOR_dto.ProductieStapLogItem log
+select BatchID, ToeleveringID, Klant.naam,VerwerkingID, Onderdeel,TijdstipCreatie, MachineID,StapNummer, IsRework,Kar,DueOut from APPS_Halux_Opvolging_ProductieStap_TAOR_dto.ProductieStapLogItem log
join Derde_Klant.Klant klant on $Piece(log.PartijID,'||',2)=klant.ID
where log.toeleveringid=?
Index: APPS/Halux/Opvolging/ProductieStap/TAOR/impl/ProductieZijkantFrees.cls.xml
===================================================================
diff -u -r39992 -r50244
--- APPS/Halux/Opvolging/ProductieStap/TAOR/impl/ProductieZijkantFrees.cls.xml (.../ProductieZijkantFrees.cls.xml) (revision 39992)
+++ APPS/Halux/Opvolging/ProductieStap/TAOR/impl/ProductieZijkantFrees.cls.xml (.../ProductieZijkantFrees.cls.xml) (revision 50244)
@@ -82,7 +82,6 @@
Set ..LogItem.TijdstipCreatie=$$$Timestamp($H)
Set ..LogItem.TijdstipProductie=..MachineTijdstip
Set ..LogItem.StapNummer=..BepaalStapNummer()
- Set ..LogItem.LaatstToegevoegd=0
]]>
Index: APPS/Halux/Opvolging/ProductieStap/TAOR/dto/ProductieStapLogItem.cls.xml
===================================================================
diff -u -r39872 -r50244
--- APPS/Halux/Opvolging/ProductieStap/TAOR/dto/ProductieStapLogItem.cls.xml (.../ProductieStapLogItem.cls.xml) (revision 39872)
+++ APPS/Halux/Opvolging/ProductieStap/TAOR/dto/ProductieStapLogItem.cls.xml (.../ProductieStapLogItem.cls.xml) (revision 50244)
@@ -7,10 +7,6 @@
APPS.Halux.Opvolging.ProductieStap.TAOR.enu.Onderdeel
-
-%String
-
-
APPS.Halux.Opvolging.ProductieStap.TAOR.enu.StapNummer
@@ -23,9 +19,9 @@
%String
-
-VerwerkingID
-
+
+%String
+
%Library.CacheStorage
@@ -51,6 +47,9 @@
Kar
+
+ReworkReden
+
Index: APPS/Halux/Opvolging/ProductieStap/TAOR/impl/StemasLastCodeReadParser.cls.xml
===================================================================
diff -u -r39872 -r50244
--- APPS/Halux/Opvolging/ProductieStap/TAOR/impl/StemasLastCodeReadParser.cls.xml (.../StemasLastCodeReadParser.cls.xml) (revision 39872)
+++ APPS/Halux/Opvolging/ProductieStap/TAOR/impl/StemasLastCodeReadParser.cls.xml (.../StemasLastCodeReadParser.cls.xml) (revision 50244)
@@ -11,6 +11,7 @@
Bericht:%String,MachineID:%String,Label:%String
8) && ($L(Barcode)<20)
{
@@ -19,6 +20,17 @@
}
]]>
+
+
+
+d ##class(APPS.Halux.Opvolging.ProductieStap.TAOR.impl.StemasLastCodeReadParser).Test("ZCW35L48876","Prof Z")
+1
+VerwerkingID:%String,MachineID:%String,Label:%String
+
+
Index: APPS/Halux/Opvolging/ProductieStap/TAOR/impl/ProductieAfkanter.cls.xml
===================================================================
diff -u -r39992 -r50244
--- APPS/Halux/Opvolging/ProductieStap/TAOR/impl/ProductieAfkanter.cls.xml (.../ProductieAfkanter.cls.xml) (revision 39992)
+++ APPS/Halux/Opvolging/ProductieStap/TAOR/impl/ProductieAfkanter.cls.xml (.../ProductieAfkanter.cls.xml) (revision 50244)
@@ -83,7 +83,6 @@
Set ..LogItem.TijdstipCreatie=$$$Timestamp($H)
Set ..LogItem.TijdstipProductie=..MachineTijdstip
Set ..LogItem.StapNummer=..BepaalStapNummer()
- Set ..LogItem.LaatstToegevoegd=0
]]>