Index: vhUnitTest/WSimpl/Halux/AAP/AfdrukService/KlantEtiketAfdrukken/Test.cls.xml
===================================================================
diff -u -r61693 -r61704
--- vhUnitTest/WSimpl/Halux/AAP/AfdrukService/KlantEtiketAfdrukken/Test.cls.xml (.../Test.cls.xml) (revision 61693)
+++ vhUnitTest/WSimpl/Halux/AAP/AfdrukService/KlantEtiketAfdrukken/Test.cls.xml (.../Test.cls.xml) (revision 61704)
@@ -3,7 +3,7 @@
vhUnitTest.TestCase
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Index: WSimpl/Halux/AAP/AfdrukService.cls.xml
===================================================================
diff -u -r61693 -r61704
--- WSimpl/Halux/AAP/AfdrukService.cls.xml (.../AfdrukService.cls.xml) (revision 61693)
+++ WSimpl/Halux/AAP/AfdrukService.cls.xml (.../AfdrukService.cls.xml) (revision 61704)
@@ -34,7 +34,7 @@
-DnaCodeRepository:DOM.Halux.AAP.DnaCodeRepository="",DocsV1:BL.PPS.TBX.DocsV1="",EtiketAfdrukkenHelper:WSimpl.Halux.AAP.AfdrukService.EtiketAfdrukkenHelper,BatchService:APPS.Halux.common.impl.BatchService=""
+DnaCodeRepository:DOM.Halux.AAP.DnaCodeRepository="",DocsV1:BL.PPS.TBX.DocsV1="",EtiketAfdrukkenHelper:WSimpl.Halux.AAP.AfdrukService.EtiketAfdrukkenHelper,BatchService:APPS.Halux.common.impl.BatchService="",PrinterFactory:APPS.Halux.PPS.impl.AansturingActie.common.KlantEtiket.PrinterFactory=""
1
1
%Status
@@ -43,8 +43,8 @@
Set ..DnaCodeRepository = $$$Inject(DnaCodeRepository, ##class(DOM.Halux.AAP.DnaCodeRepository).%New())
Set ..DocsV1 = $$$Inject(DocsV1, ##class(BL.PPS.TBX.DocsV1).%New())
Set ..EtiketAfdrukkenHelper = $$$Inject(EtiketAfdrukkenHelper, ##class(WSimpl.Halux.AAP.AfdrukService.EtiketAfdrukkenHelper).%New())
- Set ..BatchService = $$$Inject(BatchService,##class(APPS.Halux.common.impl.BatchService).%New())
- Set ..PrinterFactory = ##class(APPS.Halux.PPS.impl.AansturingActie.common.KlantEtiket.PrinterFactory).%New()
+ Set ..BatchService = $$$Inject(BatchService, ##class(APPS.Halux.common.impl.BatchService).%New())
+ Set ..PrinterFactory = $$$Inject(PrinterFactory, ##class(APPS.Halux.PPS.impl.AansturingActie.common.KlantEtiket.PrinterFactory).%New())
Quit $$$OK
]]>
@@ -135,6 +135,7 @@
Set Response.Header.Status = "200"
} Catch {
#dim Exception As TECH.Exceptions.Exception = ##class(TECH.ExceptionHandler).Catch()
+ Do ##class(Tools.Wlip).%New(127).String(Exception.ToString())
Set Response.Header.Status = Exception.GeefExceptionCode()
Set Response.Header.Omschrijving = Exception.GeefOmschrijving()
}
@@ -179,7 +180,7 @@
Do ##class(TECH.ExceptionHandler).Throw(##class(TECH.Exceptions.InvalidInputException).%New("Batch ("_DnaCode.BatchId_")niet gevonden voor Dnacode ("_DnaCode.DnaCode_")"))
}
- Quit ##class(APPS.Halux.common.impl.BatchService).%New().GeefBatch(BatchId)
+ Quit ..BatchService.GeefBatch(BatchId)
]]>
@@ -235,6 +236,7 @@
Do DnaCodesIteratorLijsten.Insert(KastIterator)
Do DnaCodesIteratorLijsten.Insert(TaorIterator)
Do DnaCodesIteratorLijsten.Insert(MaatwerkDnaCodesIterator)
+ Do ##class(Tools.Wlip).%New(127).String(DnaCodesIteratorLijsten.Count())
#dim IteratorVanDnaCodesIterators As TECH.Iterator = ##class(TECH.ListIterator).%New(DnaCodesIteratorLijsten)
@@ -256,11 +258,11 @@
//Do DnaCodeIterator.Reset()
#dim DnaCode As DOM.Halux.AAP.DnaCode = DnaCodeIterator.Next()
#dim BatchId As %Integer = DnaCode.BatchId
- Set Batch = ##class(APPS.Halux.common.impl.BatchService).%New().GeefBatch(BatchId)
+ #dim Batch As APPS.Halux.common.impl.BatchImpl = ..BatchService.GeefBatch(BatchId)
If $$$Not(Batch.GeefCategorie() = ##class(APPS.Halux.common.enu.Categorie).TAORbox()) {
Set Printer = ..PrinterFactory.GeefKlantEtiketPrinter(Batch)
- Do Printer.PrintKlantEtiket(,,DnaCodeIterator)
+ Do Printer.PrintKlantEtiket(Batch,,DnaCodeIterator)
} Else {
Set LabelPrinter = ##class(BL.Sys.LabelPrinter).%New()
Set BatchService = ##class(APPS.Halux.Planning.impl.BatchService).%New()