Index: BL/Prod/OptiBox/BoxMeta.cls.xml =================================================================== diff -u -r734 -r901 --- BL/Prod/OptiBox/BoxMeta.cls.xml (.../BoxMeta.cls.xml) (revision 734) +++ BL/Prod/OptiBox/BoxMeta.cls.xml (.../BoxMeta.cls.xml) (revision 901) @@ -1,13 +1,13 @@ - + Verwerking van de metadefinitie van een doos. De metadefinitie definieert de BoxSelect van de Optimizer en geeft defaults voor de BoxData BL.Sys.Proxy 1 %RegisteredObject -61058,37088.734543 +62134,40953.742715 60997,54476.978362 0 @@ -23,6 +23,26 @@ Kan het boxmeta-object niet bewaren + + +de UI geeft ALLE boxselects terug bij aanmaak van een nieuwe Meta +PV - 12/02/2011 +D ##class(BL.Prod.OptiBox.BoxMeta).CleanBoxSelect() +1 +MetaID +1 + { + Set sc=bl.oMeta.BoxSelect.RemoveAt(2) + } + Set sc=bl.oMeta.%Save() +]]> + + MetaID:%String="" BL.Sys.Proxy.pxStatus @@ -204,11 +224,11 @@ pxMeta:BL.Prod.OptiBox.sub.pxBoxMeta BL.Sys.Proxy.pxStatus DATA") - d WLIP^vhDBG(15,"=============") - d WXIP^vhDBG(15,pxMeta) - d WLIP^vhDBG(15,"=============") + ;d WLIP^vhDBG(15,"=============") + ;d WLIP^vhDBG(15,"PROXY -> DATA") + ;d WLIP^vhDBG(15,"=============") + ;d WXIP^vhDBG(15,pxMeta) + ;d WLIP^vhDBG(15,"=============") Set ..oMeta.Name=pxMeta.Name Set ..oMeta.ProductGroep=pxMeta.ProductGroep @@ -228,8 +248,11 @@ ; BoxSelect list Do ..oMeta.BoxSelect.Clear() Set Key="" - For Set pxBoxSelect=pxMeta.BoxSelect.GetNext(.Key) Quit:Key="" Do + Set Cnt=0 + For Set pxBoxSelect=pxMeta.BoxSelect.GetNext(.Key) Quit:Key="" Do Quit:Cnt>4 . Set oBoxSelect=..CreateBoxSelectFromProxy(pxBoxSelect) + . Set Cnt=Cnt+1 ; om een fout in de UI op te lossen + . Quit:'$isObject(oBoxSelect) . Do ..oMeta.BoxSelect.Insert(oBoxSelect) ; Param list @@ -262,24 +285,14 @@ pxBoxSelect:BL.Prod.OptiBox.sub.pxemBoxSelect DS.Prod.OptiBox.sub.emBoxSelect - - -d ##class(BL.Prod.OptiBox.BoxMeta).Test() -1 - - - - + +