Commit 306bc552 authored by caluka's avatar caluka

updated xsl for Pophelp for requirement wizard transaction


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@95689 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 266b9055
...@@ -162,11 +162,11 @@ ...@@ -162,11 +162,11 @@
</td> </td>
<td class="td_leftAlign" align="left" > <td class="td_leftAlign" align="left" >
<input type="text" name="Detail2.{normalize-space($dbID)}.item_descr" id="Detail2.{normalize-space($dbID)}.item_descr" value="{$item_descr}" size="20" ISCHANGED="true"/> <input type="text" name="Detail2.{normalize-space($dbID)}.item_descr" id="Detail2.{normalize-space($dbID)}.item_descr" value="{$item_descr}" size="20" ISCHANGED="true" readonly="readonly"/>
</td> </td>
<td class="td_leftAlign" align="left" > <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"/> <input type="text" name="Detail2.{normalize-space($dbID)}.unit" id="Detail2.{normalize-space($dbID)}.unit" value="{$unit}" size="5" ISCHANGED="true" readonly="readonly"/>
</td> </td>
<td class="td_leftAlign" align="left" > <td class="td_leftAlign" align="left" >
......
...@@ -136,6 +136,9 @@ ...@@ -136,6 +136,9 @@
<td width="2%" class="header_td" nowrap="true" valign="bottom"> <td width="2%" class="header_td" nowrap="true" valign="bottom">
<strong>Item Code</strong> <strong>Item Code</strong>
</td> </td>
<td width="5%" class="header_td" nowrap="true" valign="bottom">
<strong>Description</strong>
</td>
<td width="4%" class="header_td" nowrap="true" valign="bottom"> <td width="4%" class="header_td" nowrap="true" valign="bottom">
<strong>Supp Source</strong> <strong>Supp Source</strong>
</td> </td>
...@@ -213,9 +216,7 @@ ...@@ -213,9 +216,7 @@
<td width="5%" class="header_td" nowrap="true" valign="bottom"> <td width="5%" class="header_td" nowrap="true" valign="bottom">
<strong>MFG Lead Time</strong> <strong>MFG Lead Time</strong>
</td> </td>
<td width="5%" class="header_td" nowrap="true" valign="bottom">
<strong>Description</strong>
</td>
<td width="5%" class="header_td" nowrap="true" valign="bottom"> <td width="5%" class="header_td" nowrap="true" valign="bottom">
<strong>Stock Qty</strong> <strong>Stock Qty</strong>
</td> </td>
...@@ -253,7 +254,9 @@ ...@@ -253,7 +254,9 @@
<xsl:variable name="item_code"> <xsl:variable name="item_code">
<xsl:value-of select="item_code" /> <xsl:value-of select="item_code" />
</xsl:variable> </xsl:variable>
<xsl:variable name="description">
<xsl:value-of select="description" />
</xsl:variable>
<xsl:variable name="supp_sour"> <xsl:variable name="supp_sour">
<xsl:value-of select="supp_sour" /> <xsl:value-of select="supp_sour" />
</xsl:variable> </xsl:variable>
...@@ -329,9 +332,7 @@ ...@@ -329,9 +332,7 @@
<xsl:variable name="mfg_lead_time"> <xsl:variable name="mfg_lead_time">
<xsl:value-of select="mfg_lead_time" /> <xsl:value-of select="mfg_lead_time" />
</xsl:variable> </xsl:variable>
<xsl:variable name="description">
<xsl:value-of select="description" />
</xsl:variable>
<xsl:variable name="stock_qty"> <xsl:variable name="stock_qty">
<xsl:value-of select="stock_qty" /> <xsl:value-of select="stock_qty" />
</xsl:variable> </xsl:variable>
...@@ -384,7 +385,12 @@ ...@@ -384,7 +385,12 @@
value="{$item_code}" size="10" ISCHANGED="false" /> value="{$item_code}" size="10" ISCHANGED="false" />
<xsl:value-of select="item_code" /> <xsl:value-of select="item_code" />
</td> </td>
<td class="td_leftAlign" align="left">
<input type="hidden"
name="Detail3.{normalize-space($dbID)}.description" id="Detail3.{normalize-space($dbID)}.description"
value="{$description}" size="10" ISCHANGED="false" />
<xsl:value-of select="description" />
</td>
<td class="td_leftAlign" align="left"> <td class="td_leftAlign" align="left">
<input type="hidden" name="Detail3.{normalize-space($dbID)}.supp_sour" <input type="hidden" name="Detail3.{normalize-space($dbID)}.supp_sour"
id="Detail3.{normalize-space($dbID)}.supp_sour" value="{$supp_sour}" id="Detail3.{normalize-space($dbID)}.supp_sour" value="{$supp_sour}"
...@@ -539,12 +545,7 @@ ...@@ -539,12 +545,7 @@
size="04" ISCHANGED="false" /> size="04" ISCHANGED="false" />
<xsl:value-of select="mfg_lead_time" /> <xsl:value-of select="mfg_lead_time" />
</td> </td>
<td class="td_leftAlign" align="left">
<input type="hidden"
name="Detail3.{normalize-space($dbID)}.description" id="Detail3.{normalize-space($dbID)}.description"
value="{$description}" size="10" ISCHANGED="false" />
<xsl:value-of select="description" />
</td>
<td class="td_leftAlign" style="text-align:right"> <td class="td_leftAlign" style="text-align:right">
<input type="hidden" name="Detail3.{normalize-space($dbID)}.stock_qty" <input type="hidden" name="Detail3.{normalize-space($dbID)}.stock_qty"
id="Detail3.{normalize-space($dbID)}.stock_qty" value="{$stock_qty}" id="Detail3.{normalize-space($dbID)}.stock_qty" value="{$stock_qty}"
......
...@@ -44,8 +44,6 @@ function setItemFromPophelp() ...@@ -44,8 +44,6 @@ function setItemFromPophelp()
itemCode = document.getElementById("DetailActCode."+dbID+".ITEM_CODE").value; itemCode = document.getElementById("DetailActCode."+dbID+".ITEM_CODE").value;
itemDescr = document.getElementById("DetailActCode."+dbID+".ITEM_DESCR").value; itemDescr = document.getElementById("DetailActCode."+dbID+".ITEM_DESCR").value;
unit= document.getElementById("DetailActCode."+dbID+".UNIT").value; unit= document.getElementById("DetailActCode."+dbID+".UNIT").value;
batchreq= document.getElementById("DetailActCode."+dbID+".no_of_batch").value;
quantity1= document.getElementById("DetailActCode."+dbID+".quantity").value;
detail2dom= document.getElementById("DetailActCode."+dbID+".DOMID").value; detail2dom= document.getElementById("DetailActCode."+dbID+".DOMID").value;
bomCode = document.getElementById("DetailActCode."+dbID+".BOM_CODE").value; bomCode = document.getElementById("DetailActCode."+dbID+".BOM_CODE").value;
...@@ -61,8 +59,6 @@ function setItemFromPophelp() ...@@ -61,8 +59,6 @@ function setItemFromPophelp()
window.opener.setItemCode(seldbID, itemCode,detail2dom); window.opener.setItemCode(seldbID, itemCode,detail2dom);
window.opener.setItemDescr(seldbID, itemDescr,detail2dom); window.opener.setItemDescr(seldbID, itemDescr,detail2dom);
window.opener.setUnit(seldbID, unit,detail2dom); 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.opener.setBomCode(seldbID, bomCode,detail2dom);
window.close(); window.close();
...@@ -136,7 +132,7 @@ function setChecked( obj ) ...@@ -136,7 +132,7 @@ function setChecked( obj )
<tr> <tr>
<td> <td>
<input type="text" class="input_editable" size="15" name="SEARCH_ITEM" id="SEARCH_ITEM" maxlength="10" ISCHANGED="false" onblur="return upperCase(this.id)" /> <input type="text" class="input_editable" size="10" name="SEARCH_ITEM" id="SEARCH_ITEM" maxlength="10" ISCHANGED="false" onblur="return upperCase(this.id)" />
</td> </td>
...@@ -173,13 +169,6 @@ function setChecked( obj ) ...@@ -173,13 +169,6 @@ function setChecked( obj )
<td class="header_td" nowrap="true" valign="bottom" width="20%"> <td class="header_td" nowrap="true" valign="bottom" width="20%">
<strong>Unit</strong> <strong>Unit</strong>
</td> </td>
<td width="10%" class="header_td" nowrap="true" valign="bottom">
<strong>Batch Req</strong>
</td>
<td width="10%" class="header_td" nowrap="true" valign="bottom">
<strong>Quantity</strong>
</td>
<td width="10%" class="header_td" nowrap="true" valign="bottom"> <td width="10%" class="header_td" nowrap="true" valign="bottom">
<strong>Bom Code</strong> <strong>Bom Code</strong>
</td> </td>
...@@ -191,8 +180,6 @@ function setChecked( obj ) ...@@ -191,8 +180,6 @@ function setChecked( obj )
<xsl:variable name="ITEM_DESCR"><xsl:value-of select="ITEM_DESCR"/></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="UNIT"><xsl:value-of select="UNIT"/></xsl:variable>
<xsl:variable name="DOMID"><xsl:value-of select="DOMID"/></xsl:variable> <xsl:variable name="DOMID"><xsl:value-of select="DOMID"/></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="site_code"><xsl:value-of select="site_code"/></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="BOM_CODE"><xsl:value-of select="BOM_CODE"/></xsl:variable>
<xsl:variable name="dbID"><xsl:value-of select="@domID"/></xsl:variable> <xsl:variable name="dbID"><xsl:value-of select="@domID"/></xsl:variable>
...@@ -232,16 +219,6 @@ function setChecked( obj ) ...@@ -232,16 +219,6 @@ function setChecked( obj )
<xsl:value-of select="UNIT"/> <xsl:value-of select="UNIT"/>
<input type="hidden" name="Detail4.{normalize-space($dbID)}.UNIT" id = "DetailActCode.{normalize-space($dbID)}.UNIT" value="{normalize-space($UNIT)}" size="20" class="fieldcell_items" ISCHANGED="false"/> <input type="hidden" name="Detail4.{normalize-space($dbID)}.UNIT" id = "DetailActCode.{normalize-space($dbID)}.UNIT" value="{normalize-space($UNIT)}" size="20" class="fieldcell_items" ISCHANGED="false"/>
</td> </td>
<td class="td_leftAlign">
<xsl:value-of select="no_of_batch"/>
<input type="hidden" name="Detail4.{normalize-space($dbID)}.no_of_batch" id = "DetailActCode.{normalize-space($dbID)}.no_of_batch" value="{normalize-space($no_of_batch)}" size="20" class="fieldcell_items" ISCHANGED="false"/>
</td>
<td class="td_leftAlign">
<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 class="td_leftAlign"> <td class="td_leftAlign">
<xsl:value-of select="BOM_CODE"/> <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"/> <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"/>
......
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