Index: WSimpl/Halux/PPS/ProductieStap/LoggerService.cls.xml =================================================================== diff -u -r39903 -r39939 --- WSimpl/Halux/PPS/ProductieStap/LoggerService.cls.xml (.../LoggerService.cls.xml) (revision 39903) +++ WSimpl/Halux/PPS/ProductieStap/LoggerService.cls.xml (.../LoggerService.cls.xml) (revision 39939) @@ -27,6 +27,7 @@ %String 1 1 - + %TimeStamp 1 - -%Integer -0 + +%TimeStamp 1 @@ -107,6 +106,9 @@ HerwerkAantal + +TijdstipProductie + Index: APPS/Halux/Opvolging/ProductieStap/TAOR/impl/ProductieZijkantFrees.cls.xml =================================================================== diff -u -r39903 -r39939 --- APPS/Halux/Opvolging/ProductieStap/TAOR/impl/ProductieZijkantFrees.cls.xml (.../ProductieZijkantFrees.cls.xml) (revision 39903) +++ APPS/Halux/Opvolging/ProductieStap/TAOR/impl/ProductieZijkantFrees.cls.xml (.../ProductieZijkantFrees.cls.xml) (revision 39939) @@ -12,22 +12,22 @@ APPS.Halux.Opvolging.ProductieStap.TAOR.dto.ProductieStapLogItem - -APPS.Halux.Opvolging.ProductieStap.TAOR.enu.Machines - - %TimeStamp - + %TimeStamp + +ZijkantFrees + + %Status @@ -40,22 +40,23 @@ While it.HasNext() { Set rs=it.Next() - Set ..ZijkantFreesTijdstip=rs.Data("PickTimeStamp") + Set ..MachineTijdstip=$P(rs.Data("PickTimeStamp") ,".") ; top op de seconde, geen milliseconde #dim BarcodeLeft as %String=rs.Data("PrintBarcodeLeft") #dim BarcodeRight as %String=rs.Data("PrintBarcodeRight") Do ..VoegToeProductieStap(BarcodeLeft) Do ..VoegToeProductieStap(BarcodeRight) - Set:..ZijkantFreesTijdstip>..VanafTijdstip ..VanafTijdstip=..ZijkantFreesTijdstip + Set:$$DIFFTIME^vhLib.DataTypes($zdth(..VanafTijdstip,3,,6),$zdth(..MachineTijdstip,3,,6)) ..VanafTijdstip=..MachineTijdstip } + Do ##class(APPS.Halux.Opvolging.ProductieStap.TAOR.dto.LaatsteUpdate).OpslaanLaatsteUpdateVoorMachine(..#MachineID,..VanafTijdstip) ]]> 1 ? ") + Do rs.Prepare("Select PickTimeStamp, PrintBarcodeLeft,PrintBarcodeRight from APPS_Halux_Machine_ZijkantFrees_data.ZijkantFreesHistoriekRemote where PickTimeStamp>? ") Set sc=rs.Execute(..VanafTijdstip) Set it=##class(TECH.ResultSetIterator).%New(rs) Quit it @@ -66,30 +67,15 @@ 1 - - -vermits de SQL verwerking maar om de X minuten wordt uitgevoerd met er getest worden of er reeds andere triggers zijn uitgevoerd (rework of -1 - - - - - - 1 @@ -73,7 +73,7 @@ ]]> - + 1 APPS.Halux.Opvolging.ProductieStap.enu.Machines -,Prof R+B+F,Prof Z,Prof B slice,Ardis +,Prof R+B+F,Prof Z,Prof B slice,Ardis,ZijkantFrees,Afkanter Index: WS/Halux/Opvolging/ProductieStap/LoggerService.cls.xml =================================================================== diff -u --- WS/Halux/Opvolging/ProductieStap/LoggerService.cls.xml (revision 0) +++ WS/Halux/Opvolging/ProductieStap/LoggerService.cls.xml (revision 39939) @@ -0,0 +1,99 @@ + + + + +1 +WS.OngeauthenticeerdeWebService + + +0 + + + + +Name of the WebService. +ProcessData + + + + +TODO: change this to actual SOAP namespace. +SOAP Namespace for the WebService +http://cache01.vanhoecke.be/taor + + + +Data:%String="",ExtraData:%String="" +%String +1 + + + + +VerwerkingID:%String="",NewVerwerkingID:%String="" +%String +1 + + + + +Label:%String +1 +APPS.Halux.Opvolging.ProductieStap.enu.Machines + + + + +Machine:%String,Label:%String +1 +APPS.Halux.Opvolging.ProductieStap.TAOR.impl.StemasLastCodeReadParser + + + + + +d ##class(WSimpl.Halux.PPS.ProductieStap.LoggerService).test() +1 + + + + + + Index: APPS/Halux/Opvolging/ProductieStap/TAOR/impl/ProductieAfkanter.cls.xml =================================================================== diff -u --- APPS/Halux/Opvolging/ProductieStap/TAOR/impl/ProductieAfkanter.cls.xml (revision 0) +++ APPS/Halux/Opvolging/ProductieStap/TAOR/impl/ProductieAfkanter.cls.xml (revision 39939) @@ -0,0 +1,98 @@ + + + +vhLib.Macro +APPS.Halux.Opvolging.ProductieStap.TAOR.impl.ProductieStapLogger + + +APPS.Halux.Opvolging.ProductieStap.TAOR.dto.ProductieStapLogItem + + + +APPS.Halux.Opvolging.ProductieStap.TAOR.dto.ProductieStapLogItem + + + +%TimeStamp + + + +%Date + + + +%TimeStamp + + + +Afkanter + + + +%Status + + + + + +Do ##class(APPS.Halux.Opvolging.ProductieStap.TAOR.impl.ProductieAfkanter).%New().VerwerkRecente() +0 + + Set ..MachineTijdstip=$$$Timestamp(Tijdstip) + #dim Barcode as %String=rs.Data("ID") + w Barcode," ",..MachineTijdstip," ",..VanafTijdstip,! + Do ..VoegToeProductieStap(Barcode) + + Set:$$DIFFTIME^vhLib.DataTypes($zdth(..VanafTijdstip,3,,6),$zdth(..MachineTijdstip,3,,6)) ..VanafTijdstip=..MachineTijdstip + } + Do ##class(APPS.Halux.Opvolging.ProductieStap.TAOR.dto.LaatsteUpdate).OpslaanLaatsteUpdateVoorMachine(..#MachineID,..VanafTijdstip) +]]> + + + +1 +0 and isnull(EndTime,'')<>'' ") + Set sc=rs.Execute(..VanafTijdstip) + Set it=##class(TECH.ResultSetIterator).%New(rs) + Quit it +]]> + + + +1 + + + + +1 + + + + + + Index: APPS/Halux/Opvolging/ProductieStap/TAOR/dto/LaatsteUpdate.cls.xml =================================================================== diff -u --- APPS/Halux/Opvolging/ProductieStap/TAOR/dto/LaatsteUpdate.cls.xml (revision 0) +++ APPS/Halux/Opvolging/ProductieStap/TAOR/dto/LaatsteUpdate.cls.xml (revision 39939) @@ -0,0 +1,77 @@ + + + +persistent +vhLib.Macro +1 +TECH.Persistent + + +APPS.Halux.Opvolging.ProductieStap.TAOR.enu.Machines + + + +%TimeStamp + + + +1 +1 +MachineID +1 + + + +1 +MachineID:APPS.Halux.Opvolging.ProductieStap.TAOR.enu.Machines + + + + +1 +MachineID:APPS.Halux.Opvolging.ProductieStap.TAOR.enu.Machines,LaatsteUpdate:%TimeStamp + + + + +%Library.CacheStorage +^APPS.Halux.OB092.LaatsteUpdateD +LaatsteUpdateDefaultData +^APPS.Halux.OB092.LaatsteUpdateD +^APPS.Halux.OB092.LaatsteUpdateI +^APPS.Halux.OB092.LaatsteUpdateS + +listnode + + +%%CLASSNAME + + +LaatsteUpdate + + +LaatsteTijdstip + + + + + + + Index: APPS/Halux/Opvolging/ProductieStap/TAOR/impl/ProductieStapLogger.cls.xml =================================================================== diff -u -r39903 -r39939 --- APPS/Halux/Opvolging/ProductieStap/TAOR/impl/ProductieStapLogger.cls.xml (.../ProductieStapLogger.cls.xml) (revision 39903) +++ APPS/Halux/Opvolging/ProductieStap/TAOR/impl/ProductieStapLogger.cls.xml (.../ProductieStapLogger.cls.xml) (revision 39939) @@ -47,10 +47,12 @@ 1 @@ -63,14 +65,12 @@ ]]> - + 1 0) + &SQL(UPDATE APPS_Halux_Opvolging_ProductieStap_TAOR_dto.ProductieStapLogItem SET LaatstToegevoegd=1 WHERE VerwerkingID=:VerwerkingID and LaatstToegevoegd=0 and ID = (SELECT TOP 1 ID from APPS_Halux_Opvolging_ProductieStap_TAOR_dto.ProductieStapLogItem WHERE VerwerkingID=:VerwerkingID ORDER BY TijdstipProductie DESC) ) ]]> Index: APPS/Halux/Opvolging/ProductieStap/impl/StatusOpvragen.cls.xml =================================================================== diff -u -r39904 -r39939 --- APPS/Halux/Opvolging/ProductieStap/impl/StatusOpvragen.cls.xml (.../StatusOpvragen.cls.xml) (revision 39904) +++ APPS/Halux/Opvolging/ProductieStap/impl/StatusOpvragen.cls.xml (.../StatusOpvragen.cls.xml) (revision 39939) @@ -11,15 +11,15 @@ %SQLQuery BatchId:%String -select BatchID, ToeleveringID, Klant.naam,VerwerkingID, Onderdeel,TijdstipCreatie, MachineID,StapNummer,HerwerkAantal , LaatstToegevoegd,Kar,DueOut from APPS_Halux_Opvolging_ProductieStap_TAOR_dto.ProductieStapLogItem log +select BatchID, ToeleveringID, Klant.naam,VerwerkingID, Onderdeel,TijdstipCreatie, MachineID,StapNummer, IsRework,LaatstToegevoegd,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,HerwerkAantal , LaatstToegevoegd,Kar,DueOut from APPS_Halux_Opvolging_ProductieStap_TAOR_dto.ProductieStapLogItem log +select BatchID, ToeleveringID, Klant.naam,VerwerkingID, Onderdeel,TijdstipCreatie, MachineID,StapNummer, IsRework, LaatstToegevoegd,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/HerwerkLogger.cls.xml =================================================================== diff -u -r39903 -r39939 --- APPS/Halux/Opvolging/ProductieStap/TAOR/impl/HerwerkLogger.cls.xml (.../HerwerkLogger.cls.xml) (revision 39903) +++ APPS/Halux/Opvolging/ProductieStap/TAOR/impl/HerwerkLogger.cls.xml (.../HerwerkLogger.cls.xml) (revision 39939) @@ -21,9 +21,11 @@ Set ..LogItem=..VorigLogItem.%ConstructClone() Set ..LogItem.MachineID=..Machine Set ..LogItem.TijdstipCreatie=$$$Timestamp($H) + Set ..LogItem.TijdstipProductie=..LogItem.TijdstipCreatie Set ..LogItem.StapNummer=..BepaalStapNummer() - Set ..LogItem.LaatstToegevoegd=1 - Set ..LogItem.HerwerkAantal=..LogItem.HerwerkAantal+1 + Set ..LogItem.LaatstToegevoegd=0 + Set ..LogItem.IsRework=1 + ;d DumpObject^%apiOBJ(..LogItem) ]]> Index: APPS/Halux/Opvolging/ProductieStap/TAOR/impl/CopieerBatch.cls.xml =================================================================== diff -u -r39903 -r39939 --- APPS/Halux/Opvolging/ProductieStap/TAOR/impl/CopieerBatch.cls.xml (.../CopieerBatch.cls.xml) (revision 39903) +++ APPS/Halux/Opvolging/ProductieStap/TAOR/impl/CopieerBatch.cls.xml (.../CopieerBatch.cls.xml) (revision 39939) @@ -84,6 +84,7 @@ Set ..LogItem.SequentieNummer=..InfoItem.SequentieNummer Set ..LogItem.MachineID=..Machine Set ..LogItem.TijdstipCreatie=$$$Timestamp($H) + Set ..LogItem.TijdstipProductie=$$$Timestamp($H-10) ;..LogItem.TijdstipCreatie Set ..LogItem.Onderdeel=..BepaalOnderdeel() Set ..LogItem.StapNummer=..BepaalStapNummer() Set ..LogItem.Kar=..BepaalKar()