Index: development/models/ink/INK Configurator,1.0.0.xml =================================================================== diff -u -r3492 -r3493 --- development/models/ink/INK Configurator,1.0.0.xml (.../INK Configurator,1.0.0.xml) (revision 3492) +++ development/models/ink/INK Configurator,1.0.0.xml (.../INK Configurator,1.0.0.xml) (revision 3493) @@ -1,5 +1,5 @@ - + @@ -13,24 +13,24 @@ - + - + - + - + - + - + - + - + - + - + @@ -75,30 +75,30 @@ - + - + - + - + - + @@ -111,10 +111,10 @@ - + - + - + - + - + - + @@ -159,22 +159,22 @@ - + - + - + - + @@ -183,7 +183,7 @@ - + @@ -194,7 +194,7 @@ - + @@ -208,47 +208,47 @@ - + - + - + - + - + - + - + - + - + - + - + - + - + @@ -279,21 +279,21 @@ - + - + - + - + @@ -304,51 +304,51 @@ - + - + - + - + - + - + - + - + - + - + @@ -364,7 +364,7 @@ - + @@ -377,105 +377,105 @@ - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + @@ -1131,8 +1131,7 @@ true -UI.Kenmerken.Product@options = GetOptions(UI.Kenmerken.Product@localname; true; GetSetting("data.navision.connectionstring"); "Item"; - "ItemId"; "="; "0.924.*"); +UI.Kenmerken.Product@options = GetOptions(UI.Kenmerken.Product@localname; true; GetSetting("data.navision.connectionstring"); "Item"; "VH_IsInkortbaar"; "="; "true"); UI waarde instellen ;ui.kenmerken.product@options; @@ -1149,12 +1148,17 @@ ;ui.kenmerken.productafbeelding@visible; - true + DATA.Kenmerken.ItemId <> "") -//local string _ImageUrl = "./images/Vanhoecke/lbx/UitsparingData/LBX_Toepassing_" + ".png"; -local string _ImageUrl = "./images/help" + ".png"; +local string ImageUrl = ""; +local string strConnectionString = GetSetting("data.navision.connectionstring"); +local string ValueRecId = "" +ValueRecId = GetStringValue(strConnectionString; "DocuRef"; "ValueRecId"; "RefRecId"; "="; UI.Kenmerken.Product.ItemRecId); -UI.Kenmerken.ProductAfbeelding@default = _ImageUrl; +ImageUrl = GetStringValue(strConnectionString; "DocuValue"; "Path"; "RecId"; "="; ValueRecId ); +ImageUrl = ImageUrl + GetStringValue(strConnectionString; "DocuValue"; "OriginalFileName"; "RecId"; "="; ValueRecId ); + +UI.Kenmerken.ProductAfbeelding@default = ImageUrl; UI waarde instellen ;ui.kenmerken.productafbeelding@default; @@ -1163,7 +1167,7 @@ true - local double _Minimum = 2; + local double _Minimum = 1; local string _InputValidation = ""; _InputValidation = "min:" + _Minimum + ";multiplication:1;maxdecimals:0;"; @@ -1258,10 +1262,31 @@ + + STATE.ValidationNeeded + local double _Minimum = 1; +local string _InputValidation = ""; + +_InputValidation = "min:" + _Minimum + ";multiplication:1;maxdecimals:0;"; + +index i of UI.Kenmerken.Lengtes + UI.Kenmerken.Lengtes(i).Lengte@inputvalidation = _InputValidation; +end index; + + + + + Validatie + ; + true -UI.Kenmerken.Lengtes@length = DATA.Kenmerken.AantalLengtes; +If (DATA.Kenmerken.IdentiekeLengtes) then + UI.Kenmerken.Lengtes@length = 1; +else + UI.Kenmerken.Lengtes@length = DATA.Kenmerken.AantalLengtes; +end if; Visible ; @@ -1302,17 +1327,10 @@ true - -local double Zaagverlies = 3; - -index i of UI.Kenmerken.Lengtes - if (DATA.Kenmerken.IdentiekeLengtes) then - UI.Kenmerken.Lengtes(i).Lengte = (UI.Kenmerken.LengteProduct - ((DATA.Kenmerken.AantalLengtes - 1) * Zaagverlies)) / DATA.Kenmerken.AantalLengtes; - end if; -end index; - + + UI waarde instellen - ;ui.kenmerken.lengtes[1].lengte@value; + ; @@ -1321,11 +1339,8 @@ local double _VerwachteBreedte = UI.Kenmerken.LengteProduct; local string _InputValidation = ""; -// opgelet: kommagetallen worden niet aanvaard bij min/max, puntgetallen wel -// m.a.w. 200,5 wordt aanzien als 2005 ///// 200.5 wordt aanzien als 200.5 of 200,5 - local string _strVerwachteBreedte = Replace(CStr(_VerwachteBreedte); ","; "."); -_InputValidation = "min:" + _strVerwachteBreedte + ";max:" + _strVerwachteBreedte + ";multiplication:0.1;maxdecimals:1;"; +_InputValidation = "max:" + _strVerwachteBreedte + ";multiplication:1;maxdecimals:0;"; UI.Kenmerken.TotaleIngegevenLengte@inputvalidation = _InputValidation; @@ -1339,9 +1354,13 @@ local double Zaagverlies = 3; local double TotaalIngegevenLengte = 0; -index i of UI.Kenmerken.Lengtes - TotaalIngegevenLengte = TotaalIngegevenLengte + UI.Kenmerken.Lengtes(i).Lengte; -end index; +if (DATA.Kenmerken.IdentiekeLengtes) then + TotaalIngegevenLengte = UI.Kenmerken.Lengtes(1).Lengte * DATA.Kenmerken.AantalLengtes; +else + index i of UI.Kenmerken.Lengtes + TotaalIngegevenLengte = TotaalIngegevenLengte + UI.Kenmerken.Lengtes(i).Lengte; + end index; +end if; if (TotaalIngegevenLengte == 0) then GebruikerHeeftNogNietsIngegeven = true;