Commit 6c1730f7 authored by caluka's avatar caluka

xsl updated for Bomcode display in MRP Requirement Wizard[MF3KSUN005]


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@95600 ce508802-f39f-4f6c-b175-0d175dae99d5
parent e006053b
......@@ -104,6 +104,9 @@
</td>
<td width="5PX" class="header_td" nowrap="true" valign="bottom">
<strong>Unit</strong>
</td>
<td width="10PX" class="header_td" nowrap="true" valign="bottom">
<strong>Bom Code</strong>
</td>
<td width="10PX" class="header_td" nowrap="true" valign="bottom">
<strong>No.of Batch</strong>
......@@ -119,6 +122,7 @@
<xsl:variable name="item_code"><xsl:value-of select="item_code"/></xsl:variable>
<xsl:variable name="item_descr"><xsl:value-of select="item_descr"/></xsl:variable>
<xsl:variable name="unit"><xsl:value-of select="unit"/></xsl:variable>
<xsl:variable name="bom_code"><xsl:value-of select="bom_code"/></xsl:variable>
<xsl:variable name="no_of_batch"><xsl:value-of select="no_of_batch"/></xsl:variable>
<xsl:variable name="quantity"><xsl:value-of select="quantity"/></xsl:variable>
<xsl:variable name="dbID"><xsl:value-of select="@domID"/></xsl:variable>
......@@ -164,6 +168,10 @@
<td class="td_leftAlign" align="left" >
<input type="text" name="Detail2.{normalize-space($dbID)}.unit" id="Detail2.{normalize-space($dbID)}.unit" value="{$unit}" size="5" ISCHANGED="true"/>
</td>
<td class="td_leftAlign" align="left" >
<input type="text" name="Detail2.{normalize-space($dbID)}.bom_code" id="Detail2.{normalize-space($dbID)}.bom_code" value="{$bom_code}" size="10" ISCHANGED="true" readonly="readonly"/>
</td>
<td class="td_rightAlign" align="left" >
<input type="text" style="text-align:right" name="Detail2.{normalize-space($dbID)}.no_of_batch" id="Detail2.{normalize-space($dbID)}.no_of_batch" value="{$no_of_batch}" size="10" ISCHANGED="true"/>
......
......@@ -47,9 +47,8 @@ function setItemFromPophelp()
batchreq= document.getElementById("DetailActCode."+dbID+".no_of_batch").value;
quantity1= document.getElementById("DetailActCode."+dbID+".quantity").value;
detail2dom= document.getElementById("DetailActCode."+dbID+".DOMID").value;
bomCode = document.getElementById("DetailActCode."+dbID+".BOM_CODE").value;
}
}
......@@ -64,6 +63,7 @@ function setItemFromPophelp()
window.opener.setUnit(seldbID, unit,detail2dom);
window.opener.setBatchReq(seldbID, batchreq,detail2dom);
window.opener.setQuantity(seldbID, quantity1,detail2dom);
window.opener.setBomCode(seldbID, bomCode,detail2dom);
window.close();
}
......@@ -180,6 +180,9 @@ function setChecked( obj )
<td width="10%" class="header_td" nowrap="true" valign="bottom">
<strong>Quantity</strong>
</td>
<td width="10%" class="header_td" nowrap="true" valign="bottom">
<strong>Bom Code</strong>
</td>
</tr>
......@@ -191,6 +194,7 @@ function setChecked( obj )
<xsl:variable name="no_of_batch"><xsl:value-of select="no_of_batch"/></xsl:variable>
<xsl:variable name="quantity"><xsl:value-of select="quantity"/></xsl:variable>
<xsl:variable name="site_code"><xsl:value-of select="site_code"/></xsl:variable>
<xsl:variable name="BOM_CODE"><xsl:value-of select="BOM_CODE"/></xsl:variable>
<xsl:variable name="dbID"><xsl:value-of select="@domID"/></xsl:variable>
<SCRIPT>
<![CDATA[ var qtyR ; qtyR ="]]> <xsl:value-of select="$dbID"/>
......@@ -237,7 +241,12 @@ function setChecked( obj )
<xsl:value-of select="quantity"/>
<input type="hidden" name="Detail4.{normalize-space($dbID)}.quantity" id = "DetailActCode.{normalize-space($dbID)}.quantity" value="{normalize-space($quantity)}" size="20" class="fieldcell_items" ISCHANGED="false"/>
</td>
</td>
<td class="td_leftAlign">
<xsl:value-of select="BOM_CODE"/>
<input type="hidden" name="Detail4.{normalize-space($dbID)}.BOM_CODE" id = "DetailActCode.{normalize-space($dbID)}.BOM_CODE" value="{normalize-space($BOM_CODE)}" size="20" class="fieldcell_items" ISCHANGED="false"/>
</td>
<input type="hidden" name="Detail4.{normalize-space($dbID)}.DOMID" id = "DetailActCode.{normalize-space($dbID)}.DOMID" value="{normalize-space($DOMID)}" size="20" class="fieldcell_items" ISCHANGED="false"/>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment