|
|
@@ -514,6 +514,9 @@
|
|
|
<!-- tune -->
|
|
|
<xsl:variable name="bit_max_Pos">
|
|
|
<xsl:choose>
|
|
|
+ <xsl:when test="number(@len_sum) > ( number($PE_Price) div number($Cable_Price) ) and number($bit_max_Pos) < 2">
|
|
|
+ <xsl:value-of select=" round( number(@len_sum)) div ( number($PE_Price) div number($Cable_Price) ) + 1 "/> <!-- jak droga dluzsza od jedn kosztu, to przynajmniej tyle bin_max ile takich odcinkow-->
|
|
|
+ </xsl:when>
|
|
|
<xsl:when test="number($bit_max_Pos) < 1">
|
|
|
<xsl:value-of select="1"/>
|
|
|
</xsl:when>
|
|
|
@@ -733,6 +736,7 @@
|
|
|
<xsl:when test="$bit = $max_possible_bit">
|
|
|
<koniec_wariantow>
|
|
|
<xsl:message>#410 OK - cost:<xsl:value-of select="$best_cost"/>; bit=<xsl:value-of select="$best_variant"/> ( nr <xsl:value-of select="$variant"/>;) </xsl:message>
|
|
|
+ <xsl:if test=" not(contains($best_variant,'1'))"><xsl:message> #739 :-) Prawdopodobnie wykorzystano wezly z poprzedniej grupy lub drogi! </xsl:message></xsl:if>
|
|
|
<xsl:attribute name="best_variant" select="$best_variant"/>
|
|
|
<!-- trzeba przygotowac stary set dla best do pokazania kabli -->
|
|
|
<xsl:variable name="cand_to_calc_best">
|