Index: APPS/TRANSP/Transsmart/impl/CommunicatieService/RegistreerLevering.cls.xml =================================================================== diff -u -r59667 -r59728 --- APPS/TRANSP/Transsmart/impl/CommunicatieService/RegistreerLevering.cls.xml (.../RegistreerLevering.cls.xml) (revision 59667) +++ APPS/TRANSP/Transsmart/impl/CommunicatieService/RegistreerLevering.cls.xml (.../RegistreerLevering.cls.xml) (revision 59728) @@ -27,6 +27,8 @@ if IsNieuweVerzendData { set VerzendData.Reference = ..BepaalReference(Request) set VerzendData.Carrier = ..BepaalCarrier(Request) + Set VerzendData.UnitID = VerzendData.Reference + set VerzendData.VerzendWijze = ..VerzendWijze } set VerzendData.LaatsteRequestType = ##class(APPS.TRANSP.Transsmart.enu.RequestType).Registratie() @@ -73,18 +75,16 @@ Set Bericht = "Levering '"_..Levering.GeefID()_"' moet een gewicht hebben om te kunnen verzenden." Do ##class(TECH.ExceptionHandler).Throw(##class(APPS.TRANSP.Transsmart.Exceptions.CommunicatieException).%New(Bericht)) } - - /* ;weet niet of dit van toepassing is. - If (..IsFreightVerzendWijze())&&(..Rit.GeefTransporteur() = ##class(DOM.TRANSP.enu.Transporteur).GLSBelgiumParcel()) { - Set Bericht = "Deze Freight levering '"_..Levering.GeefID()_"' mag niet verzonden worden via GLS Parcel transport." + Do ##class(Tools.Wlip).%New(207).String("Verzendwijze " _ ..VerzendWijze) + If (..IsFreightVerzendWijze())&&(..Rit.GeefTransporteur() = ##class(DOM.TRANSP.enu.Transporteur).DHL()) { + Set Bericht = "Deze Freight levering '"_..Levering.GeefID()_"' mag niet verzonden worden via DHL." Do ##class(TECH.ExceptionHandler).Throw(##class(APPS.TRANSP.GLS.Exceptions.CommunicatieException).%New(Bericht)) } - If (..IsParcelVerzendWijze())&&(..Rit.GeefTransporteur() = ##class(DOM.TRANSP.enu.Transporteur).GLSBelgiumFreight()) { - Set Bericht = "Deze Parcel levering '"_..Levering.GeefID()_"' mag niet verzonden worden via GLS Freight transport." + If (..IsParcelVerzendWijze())&&(..Rit.GeefTransporteur() = ##class(DOM.TRANSP.enu.Transporteur).VRD()) { + Set Bericht = "Deze Parcel levering '"_..Levering.GeefID()_"' mag niet verzonden worden via VRD." Do ##class(TECH.ExceptionHandler).Throw(##class(APPS.TRANSP.GLS.Exceptions.CommunicatieException).%New(Bericht)) } - */ ]]> @@ -96,6 +96,24 @@ Do EtiketService.PrintEtikettenVoorLevering(Levering) ]]> + + +1 +%Boolean + + + + +1 +%Boolean + + Index: APPS/TRANSP/Transsmart/impl/CommunicatieService.cls.xml =================================================================== diff -u -r59667 -r59728 --- APPS/TRANSP/Transsmart/impl/CommunicatieService.cls.xml (.../CommunicatieService.cls.xml) (revision 59667) +++ APPS/TRANSP/Transsmart/impl/CommunicatieService.cls.xml (.../CommunicatieService.cls.xml) (revision 59728) @@ -27,7 +27,7 @@ do ##class(vhLib.Logger).%New().Info(..%ClassName(1)_"::"_$$$CurrentMethod,"RitID " _ RitID _ " LeveringID " _ LeveringID) #dim Rit As DOM.TRANSP.Rit = ##class(DOM.DomeinContext).Instance().GeefTransportAPI().GeefRit(RitID) #dim Levering As DOM.TRANSP.Levering = ##class(DOM.DomeinContext).Instance().GeefTransportAPI().GeefLevering(RitID,LeveringID) - set RegistreerLevering = ##class(APPS.TRANSP.Transsmart.impl.CommunicatieService.RegistreerLevering).%New(,,,,,Rit,Levering) + set RegistreerLevering = ##class(APPS.TRANSP.Transsmart.impl.CommunicatieService.RegistreerLevering).%New(,,,,,,Rit,Levering) do RegistreerLevering.VoerUit() ]]> @@ -39,7 +39,7 @@ do ##class(vhLib.Logger).%New().Info(..%ClassName(1)_"::"_$$$CurrentMethod,"RitID " _ RitID _ " LeveringID " _ LeveringID) #dim Rit As DOM.TRANSP.Rit = ##class(DOM.DomeinContext).Instance().GeefTransportAPI().GeefRit(RitID) #dim Levering As DOM.TRANSP.Levering = ##class(DOM.DomeinContext).Instance().GeefTransportAPI().GeefLevering(RitID,LeveringID) - set AnnuleerLevering = ##class(APPS.TRANSP.Transsmart.impl.CommunicatieService.AnnuleerLevering).%New(,,,,, Rit,Levering) + set AnnuleerLevering = ##class(APPS.TRANSP.Transsmart.impl.CommunicatieService.AnnuleerLevering).%New(,,,,,,Rit,Levering) do AnnuleerLevering.VoerUit() ]]> Index: APPS/TRANSP/Transsmart/impl/CommunicatieService/Template.cls.xml =================================================================== diff -u -r59667 -r59728 --- APPS/TRANSP/Transsmart/impl/CommunicatieService/Template.cls.xml (.../Template.cls.xml) (revision 59667) +++ APPS/TRANSP/Transsmart/impl/CommunicatieService/Template.cls.xml (.../Template.cls.xml) (revision 59728) @@ -18,31 +18,43 @@ 1 + +APPS.TRANSP.Transsmart.enu.VerzendWijze +1 + + APPS.TRANSP.GLS.dto.VerzendDataLijst 1 + +APPS.TRANSP.Transsmart.VerzendWijzeBepaler +1 + + -ConfigMgr:TECH.Config.ConfigMgr="",ProjectSettingsAPI:DOM.common.impl.ProjectSettingsAPI="",TranssmartWSClient:WS.Transsmart.TboxServicePort="",RequestBouwer:APPS.TRANSP.Transsmart.RequestDataBouwer="",ResponseControleur:APPS.TRANSP.Transsmart.impl.ResponseControleur="",Rit:DOM.TRANSP.Rit,Levering:DOM.TRANSP.Levering +ConfigMgr:TECH.Config.ConfigMgr="",ProjectSettingsAPI:DOM.common.impl.ProjectSettingsAPI="",TranssmartWSClient:WS.Transsmart.TboxServicePort="",RequestBouwer:APPS.TRANSP.Transsmart.RequestDataBouwer="",ResponseControleur:APPS.TRANSP.Transsmart.impl.ResponseControleur="",VerzendWijzeBepaler:APPS.TRANSP.Transsmart.VerzendWijzeBepaler="",Rit:DOM.TRANSP.Rit,Levering:DOM.TRANSP.Levering 1 1 %Status 1 VerzendDataID:%String -