Commit e826f6af authored by jshaikh's avatar jshaikh

updated as per requirement

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@171742 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 96b0e837
...@@ -3,13 +3,12 @@ ...@@ -3,13 +3,12 @@
<xsl:template match="/"> <xsl:template match="/">
<html> <html>
<head> <head>
<link type="text/css" rel="stylesheet" href="/ibase/E12MOBILE/css/workflowsign.css"></link> <link type="text/css" rel="stylesheet" href="/ibase/E12MOBILE/css/proteusworkflow.css"></link>
<link type="text/css" rel="stylesheet" href="/ibase/E12MOBILE/css/expandy.css"></link> <link type="text/css" rel="stylesheet" href="/ibase/E12MOBILE/css/expandy.css"></link>
<link type="text/css" rel="stylesheet" href="/ibase/webitm/css/fonts.css"/> <link type="text/css" rel="stylesheet" href="/ibase/webitm/css/fonts.css"/>
<link type="text/css" rel="stylesheet" href="/ibase/E12MOBILE/css/hr_portal1.css"></link> <link type="text/css" rel="stylesheet" href="/ibase/E12MOBILE/css/hr_portal1.css"></link>
<style type="text/css"> <style type="text/css">
.tableClass {margin-bottom:10px; width:100%; background-color:#FFF; .tableClass {margin-bottom:10px; width:100%; background-color:#FFF;
...@@ -23,6 +22,9 @@ ...@@ -23,6 +22,9 @@
font-size: 11px; font-size: 11px;
font-weight: normal; font-weight: normal;
} }
td {
padding: 5px;
}
</style> </style>
</head> </head>
...@@ -82,22 +84,22 @@ ...@@ -82,22 +84,22 @@
<tr> <tr>
<td class="tLabelDataD3" width="50%" style="text-align:left;" > <td class="tLabelDataD3" width="50%" style="text-align:left;" >
<font size="2"> <font size="2">
Bill of material Bill of material:
<!--<b><xsl:value-of select="descr" />&#160; <b><xsl:value-of select="descr" />&#160;
(<xsl:value-of select="bom_code" />)</b>--> (<xsl:value-of select="bom_code" />)</b>
</font> </font>
</td> </td>
<td NOWRAP="TRUE" class="tLabelDataD3" width="50%" style="text-align:right;"> <td class="tLabelDataD3" width="50%" style="text-align:right;">
<font size="2"> <font size="2">
Date : <b><xsl:value-of select="chg_date" /></b> Date: <b><xsl:value-of select="chg_date" /></b>
</font> </font>
</td> </td>
</tr> </tr>
<tr> <tr>
<td colspan="3" NOWRAP = "TRUE" class = "tLabelDataD3" > <td colspan="3" class = "tLabelDataD3" >
<div class = "tLabelDataD3" > <div class = "tLabelDataD3" >
<font size="4"> <font size="4">
...@@ -107,7 +109,7 @@ ...@@ -107,7 +109,7 @@
<div class="empInfoDiv" > <div class="empInfoDiv" >
<font size="2"> <font size="3">
<b>(<xsl:value-of select="item_code" />)</b> <b>(<xsl:value-of select="item_code" />)</b>
</font> </font>
</div> </div>
...@@ -118,31 +120,30 @@ ...@@ -118,31 +120,30 @@
<tr> <tr>
<td class="tLabelDataD3" width="50%" style="text-align:left;" > <td class="tLabelDataD3" width="50%" style="text-align:left;" >
<font size="2"> <font size="2">
Site : Site:
<b><xsl:value-of select="site_descr" />&#160; <b><xsl:value-of select="site_descr" />&#160;
(<xsl:value-of select="site_code" />)</b> (<xsl:value-of select="site_code" />)</b>
</font> </font>
</td> </td>
<td NOWRAP="TRUE" class="tLabelDataD3" width="50%" style="text-align:right;"> <td class="tLabelDataD3" width="50%" style="text-align:right;">
<font size="2"> <font size="2">
Material type : Material type:
<b> <b><xsl:choose>
<xsl:choose> <xsl:when test="type='I' ">
<xsl:when test="type='I' "> Ingredents
Ingredents </xsl:when>
</xsl:when> <xsl:when test="type='C' ">
<xsl:when test="type='C' "> Configuration
Configuration </xsl:when>
</xsl:when> <xsl:when test="type='F' ">
<xsl:when test="type='F' "> Formula
Formula </xsl:when>
</xsl:when> <xsl:when test="type='T' ">
<xsl:when test="type='T' "> R and D/Trial
R and D/Trial </xsl:when>
</xsl:when> </xsl:choose></b>
</xsl:choose></b>
</font> </font>
...@@ -152,39 +153,50 @@ ...@@ -152,39 +153,50 @@
</td> </td>
</tr> </tr>
<tr> <tr>
<td colspan="3"> <td colspan="3">
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="tTitleD" > <table width="100%" border="0" cellspacing="0" cellpadding="0" class="tTitleD" >
<tr> <tr>
<td class="cellttl1">Batch quantity : </td> <td class="cellttl1">Batch quantity: </td>
<td class="tLabelDataD1" NOWRAP="TRUE" style="text-align:left"> <td class="tLabelDataD1" style="text-align:left">
<xsl:value-of select= "batch_qty"/> (<xsl:value-of select= "unit"/>) <font size="2">
<xsl:value-of select= "batch_qty"/> (<xsl:value-of select= "unit"/>)
</font>
</td> </td>
</tr> </tr>
<tr> <!--<tr>
<td class="cellttl1">Bill of material : </td> <td class="cellttl1">Bill of material : </td>
<td class="tLabelDataD1" NOWRAP="TRUE" style="text-align:left"> <td class="tLabelDataD1" NOWRAP="TRUE" style="text-align:left">
<xsl:value-of select="descr" />&#160; <font size="2">
(<xsl:value-of select="bom_code" />) <xsl:value-of select="descr" />&#160;
(<xsl:value-of select="bom_code" />)
</font>
</td> </td>
</tr> </tr>-->
<tr> <tr>
<td class="cellttl1">Unit potency : </td> <td class="cellttl1">Unit potency: </td>
<td class="tLabelDataD1" NOWRAP="TRUE" style="text-align:left"> <td class="tLabelDataD1" style="text-align:left">
<xsl:value-of select= "unit__potency"/> <font size="2">
<xsl:value-of select= "unit__potency"/>
</font>
</td> </td>
</tr> </tr>
<tr> <tr>
<td class="cellttl1">Minimum batch quantity : </td> <td class="cellttl1">Minimum batch quantity: </td>
<td class="tLabelDataD1" NOWRAP="TRUE" style="text-align:left"> <td class="tLabelDataD1" style="text-align:left">
<xsl:value-of select= "min_batch_qty"/> <font size="2">
<xsl:value-of select= "min_batch_qty"/>
</font>
</td> </td>
</tr> </tr>
<tr> <tr>
<td class="cellttl1">Maximum batch quantity : </td> <td class="cellttl1">Maximum batch quantity: </td>
<td class="tLabelDataD1" NOWRAP="TRUE" style="text-align:left"> <td class="tLabelDataD1" style="text-align:left">
<xsl:value-of select= "max_batch_qty"/> <font size="2">
<xsl:value-of select= "max_batch_qty"/>
</font>
</td> </td>
</tr> </tr>
</table> </table>
...@@ -192,250 +204,248 @@ ...@@ -192,250 +204,248 @@
</tr> </tr>
</TABLE> </TABLE>
</xsl:for-each> </xsl:for-each>
<br/><br/> <br/>
<div style="overflow-x: scroll; width:100%">
<table class="tableClass" cellSpacing="0" cellPadding="0" width="100%" border="0"> <table class="tableClass" cellSpacing="0" cellPadding="0" width="100%" border="0">
<tbody> <tbody>
<xsl:for-each select="//Detail1"> <xsl:for-each select="//Detail1">
<tr border="1"> <tr border="1">
<td class="editDisplayheaderClass"> <td class="editDisplayheaderClass">
<font face="Times New Roman" size="2">Sr no</font> <font face="Times New Roman" size="2">Sr no</font>
</td> </td>
<td class="editDisplayheaderClass" align="center"> <td class="editDisplayheaderClass">
<font face="Times New Roman" size="2">Item</font> <font face="Times New Roman" size="2">Item</font>
</td> </td>
<td class="editDisplayheaderClass" align="center"> <td class="editDisplayheaderClass">
<font face="Times New Roman" size="2">Item reference</font> <font face="Times New Roman" size="2">Item reference</font>
</td> </td>
<td class="editDisplayheaderClass" align="center"> <td class="editDisplayheaderClass" align="right">
<font face="Times New Roman" size="2">Quantity required</font> <font face="Times New Roman" size="2">Quantity required</font>
</td> </td>
<td class="editDisplayheaderClass" align="center"> <td class="editDisplayheaderClass" align="right">
<font face="Times New Roman" size="2">Operation</font> <font face="Times New Roman" size="2">Operation</font>
</td> </td>
<td class="editDisplayheaderClass" align="center"> <td class="editDisplayheaderClass">
<font face="Times New Roman" size="2">Type</font> <font face="Times New Roman" size="2">Type</font>
</td> </td>
<td class="editDisplayheaderClass" align="center"> <td class="editDisplayheaderClass">
<font face="Times New Roman" size="2">Critical item</font> <font face="Times New Roman" size="2">Critical item</font>
</td> </td>
<!--<td class="editDisplayheaderClass" align="center"> <!--<td class="editDisplayheaderClass" align="center">
<font face="Times New Roman" size="2">Minimum Quantity</font> <font face="Times New Roman" size="2">Minimum Quantity</font>
</td> </td>
<td class="editDisplayheaderClass" align="center"> <td class="editDisplayheaderClass" align="center">
<font face="Times New Roman" size="2">Quantity</font> <font face="Times New Roman" size="2">Quantity</font>
</td>--> </td>-->
<td class="editDisplayheaderClass" align="center"> <td class="editDisplayheaderClass">
<font face="Times New Roman" size="2">Match potency</font> <font face="Times New Roman" size="2">Match potency</font>
</td> </td>
<td class="editDisplayheaderClass" align="center"> <td class="editDisplayheaderClass" align="right">
<font face="Times New Roman" size="2">Min potency</font> <font face="Times New Roman" size="2">Min potency</font>
</td> </td>
<td class="editDisplayheaderClass" align="center"> <td class="editDisplayheaderClass">
<font face="Times New Roman" size="2">Adj potency</font> <font face="Times New Roman" size="2">Adj potency</font>
</td> </td>
<td class="editDisplayheaderClass" align="center"> <td class="editDisplayheaderClass">
<font face="Times New Roman" size="2">Usage type</font> <font face="Times New Roman" size="2">Usage type</font>
</td> </td>
<td class="editDisplayheaderClass" align="center"> <td class="editDisplayheaderClass">
<font face="Times New Roman" size="2">Allocation type</font> <font face="Times New Roman" size="2">Allocation type</font>
</td> </td>
<!--<td class="editDisplayheaderClass"> <!--<td class="editDisplayheaderClass">
<font face="Times New Roman" size="2">Discount</font> <font face="Times New Roman" size="2">Discount</font>
</td> </td>
<td class="editDisplayheaderClass"> <td class="editDisplayheaderClass">
<font face="Times New Roman" size="2">Tax</font> <font face="Times New Roman" size="2">Tax</font>
</td> </td>
<td class="editDisplayheaderClass"> <td class="editDisplayheaderClass">
<font face="Times New Roman" size="2">Net Amount</font> <font face="Times New Roman" size="2">Net Amount</font>
</td>--> </td>-->
<!--<td class="editDisplayheaderClass"> <!--<td class="editDisplayheaderClass">
<font face="Times New Roman" size="2">Valid Upto</font> <font face="Times New Roman" size="2">Valid Upto</font>
</td>--> </td>-->
</tr> </tr>
</xsl:for-each> </xsl:for-each>
<xsl:for-each select="//Detail2"> <xsl:for-each select="//Detail2">
<xsl:sort select="item_code" /> <xsl:sort select="item_code" />
<xsl:variable name="dbID"> <xsl:variable name="dbID">
<xsl:value-of select="@domID" /> <xsl:value-of select="@domID" />
</xsl:variable> </xsl:variable>
<xsl:variable name="line_no"> <xsl:variable name="line_no">
<xsl:value-of select="line_no" /> <xsl:value-of select="line_no" />
</xsl:variable> </xsl:variable>
<xsl:variable name="line_no__inv"> <xsl:variable name="line_no__inv">
<xsl:value-of select="line_no__inv" /> <xsl:value-of select="line_no__inv" />
</xsl:variable> </xsl:variable>
<xsl:variable name="item_descr"> <xsl:variable name="item_descr">
<xsl:value-of select="item_descr" /> <xsl:value-of select="item_descr" />
</xsl:variable> </xsl:variable>
<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="item_ref"> <xsl:variable name="item_ref">
<xsl:value-of select="item_ref" /> <xsl:value-of select="item_ref" />
</xsl:variable> </xsl:variable>
<xsl:variable name="operation"> <xsl:variable name="operation">
<xsl:value-of select="operation" /> <xsl:value-of select="operation" />
</xsl:variable> </xsl:variable>
<xsl:variable name="req_type"> <xsl:variable name="req_type">
<xsl:value-of select="req_type" /> <xsl:value-of select="req_type" />
</xsl:variable> </xsl:variable>
<xsl:variable name="crit_item"> <xsl:variable name="crit_item">
<xsl:value-of select="crit_item" /> <xsl:value-of select="crit_item" />
</xsl:variable> </xsl:variable>
<xsl:variable name="min_qty"> <xsl:variable name="min_qty">
<xsl:value-of select="min_qty" /> <xsl:value-of select="min_qty" />
</xsl:variable> </xsl:variable>
<xsl:variable name="qty_per"> <xsl:variable name="qty_per">
<xsl:value-of select="qty_per" /> <xsl:value-of select="qty_per" />
</xsl:variable> </xsl:variable>
<xsl:variable name="match_potency"> <xsl:variable name="match_potency">
<xsl:value-of select="match_potency" /> <xsl:value-of select="match_potency" />
</xsl:variable> </xsl:variable>
<xsl:variable name="min_potency"> <xsl:variable name="min_potency">
<xsl:value-of select="min_potency" /> <xsl:value-of select="min_potency" />
</xsl:variable> </xsl:variable>
<xsl:variable name="adj_potency"> <xsl:variable name="adj_potency">
<xsl:value-of select="adj_potency" /> <xsl:value-of select="adj_potency" />
</xsl:variable> </xsl:variable>
<xsl:variable name="valid_upto"> <xsl:variable name="valid_upto">
<xsl:value-of select="valid_upto" /> <xsl:value-of select="valid_upto" />
</xsl:variable> </xsl:variable>
<tr> <tr>
<td class="editDisplayColumnClass" style = "padding: 5px;color:#555;"> <td class="editDisplayColumnClass" style = "padding: 5px;color:#555;">
<font face="Times New Roman" size="2"> <font face="Times New Roman" size="2">
<xsl:value-of select="line_no"/> <xsl:value-of select="line_no"/>
</font> </font>
</td> </td>
<td class="editDisplayColumnClass" style = "padding: 5px;color:#555;"> <td class="editDisplayColumnClass" style = "padding: 5px;color:#555;">
<font face="Times New Roman" size="2"> <font face="Times New Roman" size="2">
<xsl:value-of select="item_descr"/>&#160; <xsl:value-of select="item_descr"/>&#160;
(<xsl:value-of select="item_code"/>) (<xsl:value-of select="item_code"/>)
</font> </font>
</td> </td>
<td class="editDisplayColumnClass" style = "padding: 5px;color:#555;"> <td class="editDisplayColumnClass" style = "padding: 5px;color:#555;">
<font face="Times New Roman" size="2"> <font face="Times New Roman" size="2">
<xsl:value-of select="item_ref"/> <xsl:value-of select="item_ref"/>
</font> </font>
</td> </td>
<td class="editDisplayColumnClass" style = "padding: 5px;color:#555;" align="right"> <td class="editDisplayColumnClass" style = "padding: 5px;color:#555;" align="right">
<font face="Times New Roman" size="2"> <font face="Times New Roman" size="2">
<xsl:value-of select="min_req_qty"/> <xsl:value-of select="min_req_qty"/>
</font> </font>
</td> </td>
<td class="editDisplayColumnClass" style = "padding: 5px;color:#555;" align="right"> <td class="editDisplayColumnClass" style = "padding: 5px;color:#555;" align="right">
<font face="Times New Roman" size="2"> <font face="Times New Roman" size="2">
<xsl:value-of select="operation"/> <xsl:value-of select="operation"/>
</font> </font>
</td> </td>
<td class="editDisplayColumnClass" style = "padding: 5px;color:#555;"> <td class="editDisplayColumnClass" style = "padding: 5px;color:#555;">
<font face="Times New Roman" size="2"> <font face="Times New Roman" size="2">
<xsl:for-each select="//Detail2"> <xsl:for-each select="//Detail2">
<xsl:choose> <xsl:choose>
<xsl:when test="req_type='P' "> <xsl:when test="req_type='P' ">
Proportionate Proportionate
</xsl:when> </xsl:when>
<xsl:when test="req_type='S' "> <xsl:when test="req_type='S' ">
Slab Slab
</xsl:when> </xsl:when>
<xsl:when test="req_type='F' "> <xsl:when test="req_type='F' ">
Fixed Fixed
</xsl:when> </xsl:when>
</xsl:choose> </xsl:choose>
</xsl:for-each> </xsl:for-each>
</font> </font>
</td> </td>
<td class="editDisplayColumnClass" style = "padding: 5px;color:#555;"> <td class="editDisplayColumnClass" style = "padding: 5px;color:#555;">
<font face="Times New Roman" size="2"> <font face="Times New Roman" size="2">
<xsl:choose> <xsl:choose>
<xsl:when test="crit_item= 'Y' "> <xsl:when test="crit_item= 'Y' ">
Yes Yes
</xsl:when> </xsl:when>
<xsl:when test="crit_item='N' "> <xsl:when test="crit_item='N' ">
No No
</xsl:when> </xsl:when>
</xsl:choose> </xsl:choose>
</font> </font>
</td> </td>
<!--<td class="editDisplayColumnClass" style = "padding: 5px;color:#555;" align="right"> <!--<td class="editDisplayColumnClass" style = "padding: 5px;color:#555;" align="right">
<font face="Times New Roman" size="2"> <font face="Times New Roman" size="2">
<xsl:value-of select="min_qty"/> <xsl:value-of select="min_qty"/>
</font> </font>
</td> </td>
<td class="editDisplayColumnClass" style = "padding: 5px;color:#555;" align="right"> <td class="editDisplayColumnClass" style = "padding: 5px;color:#555;" align="right">
<font face="Times New Roman" size="2"> <font face="Times New Roman" size="2">
<xsl:value-of select="qty_per"/> <xsl:value-of select="qty_per"/>
</font> </font>
</td>--> </td>-->
<td class="editDisplayColumnClass" style = "padding: 5px;color:#555;"> <td class="editDisplayColumnClass" style = "padding: 5px;color:#555;">
<font face="Times New Roman" size="2"> <font face="Times New Roman" size="2">
<xsl:for-each select="//Detail2"> <xsl:for-each select="//Detail2">
<xsl:choose> <xsl:choose>
<xsl:when test="match_potency='Y' "> <xsl:when test="match_potency='Y' ">
Yes Yes
</xsl:when> </xsl:when>
<xsl:when test="match_potency='N' "> <xsl:when test="match_potency='N' ">
No No
</xsl:when> </xsl:when>
<xsl:when test="match_potency='A' "> <xsl:when test="match_potency='A' ">
Adjust only Adjust only
</xsl:when> </xsl:when>
</xsl:choose> </xsl:choose>
<!--&#160; <!--&#160;
<xsl:value-of select="min_potency_perc" /> <xsl:value-of select="min_potency_perc" />
&#160; &#160;
<xsl:value-of select="adj_potency" />--> <xsl:value-of select="adj_potency" />-->
</xsl:for-each> </xsl:for-each>
</font> </font>
</td> </td>
<td class="editDisplayColumnClass" style = "padding: 5px;color:#555;" align="right"> <td class="editDisplayColumnClass" style = "padding: 5px;color:#555;" align="right">
<font face="Times New Roman" size="2"> <font face="Times New Roman" size="2">
<xsl:value-of select="min_potency_perc" /> <xsl:value-of select="min_potency_perc" />
</font> </font>
</td> </td>
<td class="editDisplayColumnClass" style = "padding: 5px;color:#555;" align="right"> <td class="editDisplayColumnClass" style = "padding: 5px;color:#555;">
<font face="Times New Roman" size="2"> <font face="Times New Roman" size="2">
<xsl:value-of select="adj_potency" /> <xsl:value-of select="adj_potency" />
</font> </font>
</td> </td>
<td class="editDisplayColumnClass" style = "padding: 5px;color:#555;"> <td class="editDisplayColumnClass" style = "padding: 5px;color:#555;">
<font face="Times New Roman" size="2"> <font face="Times New Roman" size="2">
<xsl:for-each select="//Detail2"> <xsl:for-each select="//Detail2">
<xsl:choose> <xsl:choose>
<xsl:when test="usage_type='R' "> <xsl:when test="usage_type='R' ">
Regular Regular
</xsl:when> </xsl:when>
<xsl:when test="usage_type='O' "> <xsl:when test="usage_type='O' ">
On Demand On Demand
</xsl:when> </xsl:when>
</xsl:choose> </xsl:choose>
</xsl:for-each> </xsl:for-each>
</font> </font>
</td> </td>
<td class="editDisplayColumnClass" style = "padding: 5px;color:#555;"> <td class="editDisplayColumnClass" style = "padding: 5px;color:#555;">
<font face="Times New Roman" size="2"> <font face="Times New Roman" size="2">
<xsl:for-each select="//Detail2"> <xsl:for-each select="//Detail2">
<xsl:choose> <xsl:choose>
<xsl:when test="allocate_type='Y' "> <xsl:when test="allocate_type='Y' ">
Allocate Any Stock Allocate Any Stock
</xsl:when> </xsl:when>
<xsl:when test="allocate_type='N' "> <xsl:when test="allocate_type='N' ">
Do Not Allocate Do Not Allocate
</xsl:when> </xsl:when>
<xsl:when test="allocate_type='O' "> <xsl:when test="allocate_type='O' ">
Allocate Original Item Stock Allocate Original Item Stock
</xsl:when> </xsl:when>
</xsl:choose> </xsl:choose>
</xsl:for-each> </xsl:for-each>
</font>
</font> </td>
</td> </tr>
</tr> </xsl:for-each>
</xsl:for-each> </tbody>
</table>
</tbody> </div>
</table>
</body> </body>
</html> </html>
</xsl:template> </xsl:template>
......
...@@ -3,11 +3,10 @@ ...@@ -3,11 +3,10 @@
<xsl:template match="/"> <xsl:template match="/">
<html> <html>
<head> <head>
<link type="text/css" rel="stylesheet" href="css/workflowsign.css"></link> <link type="text/css" rel="stylesheet" href="/ibase/E12MOBILE/css/proteusworkflow.css"></link>
<link type="text/css" rel="stylesheet" href="css/expandy.css"></link> <link type="text/css" rel="stylesheet" href="/ibase/E12MOBILE/css/expandy.css"></link>
<link type="text/css" rel="stylesheet" href="css/fonts.css"/> <link type="text/css" rel="stylesheet" href="/ibase/webitm/css/fonts.css"/>
<link type="text/css" rel="stylesheet" href="css/hr_portal1.css"></link> <link type="text/css" rel="stylesheet" href="/ibase/E12MOBILE/css/hr_portal1.css"></link>
<style type="text/css"> <style type="text/css">
...@@ -23,6 +22,9 @@ ...@@ -23,6 +22,9 @@
font-size: 11px; font-size: 11px;
font-weight: normal; font-weight: normal;
} }
td {
padding: 5px;
}
</style> </style>
</head> </head>
...@@ -75,29 +77,28 @@ ...@@ -75,29 +77,28 @@
<xsl:value-of select="remarks" /> <xsl:value-of select="remarks" />
</xsl:variable> </xsl:variable>
<TABLE name="main" id="main" class="tLabel" style="position:relative; width:100%; border-top: #5fdeb2 3px solid;" cellspacing="0" cellpadding="0" > <TABLE name="main" id="main" class="tLabel" style="position:relative; width:60%; border-top: #5fdeb2 3px solid;" cellspacing="0" cellpadding="0" >
<tr> <tr>
<td colspan="3" > <td colspan="3" >
<TABLE width="100%" border="0" cellspacing="0" cellpadding="0" class="tblenew"> <TABLE width="100%" border="0" cellspacing="0" cellpadding="0" class="tblenew">
<tr> <tr>
<td class="tLabelDataD3" width="50%" style="text-align:left;" > <td class="tLabelDataD3" width="50%" style="text-align:left;" >
<font size="2"> <font size="2">
Bill of material Bill of material:
<!--<b><xsl:value-of select="descr" />&#160; <b><xsl:value-of select="descr" />&#160;
(<xsl:value-of select="bom_code" />)</b>--> (<xsl:value-of select="bom_code" />)</b>
</font>
</font>
</td> </td>
<td NOWRAP="TRUE" class="tLabelDataD3" width="50%" style="text-align:right;"> <td class="tLabelDataD3" width="50%" style="text-align:right;">
<font size="2"> <font size="2">
Date : <b><xsl:value-of select="chg_date" /></b> Date: <b><xsl:value-of select="chg_date" /></b>
</font> </font>
</td> </td>
</tr> </tr>
<tr> <tr>
<td colspan="3" NOWRAP = "TRUE" class = "tLabelDataD3" > <td colspan="3" class = "tLabelDataD3" >
<div class = "tLabelDataD3" > <div class = "tLabelDataD3" >
<font size="4"> <font size="4">
...@@ -107,7 +108,7 @@ ...@@ -107,7 +108,7 @@
<div class="empInfoDiv" > <div class="empInfoDiv" >
<font size="2"> <font size="3">
<b>(<xsl:value-of select="item_code" />)</b> <b>(<xsl:value-of select="item_code" />)</b>
</font> </font>
</div> </div>
...@@ -118,73 +119,81 @@ ...@@ -118,73 +119,81 @@
<tr> <tr>
<td class="tLabelDataD3" width="50%" style="text-align:left;" > <td class="tLabelDataD3" width="50%" style="text-align:left;" >
<font size="2"> <font size="2">
Site : Site:
<b><xsl:value-of select="site_descr" />&#160; <b><xsl:value-of select="site_descr" />&#160;
(<xsl:value-of select="site_code" />)</b> (<xsl:value-of select="site_code" />)</b>
</font> </font>
</td> </td>
<td NOWRAP="TRUE" class="tLabelDataD3" width="50%" style="text-align:right;"> <td class="tLabelDataD3" width="50%" style="text-align:right;">
<font size="2"> <font size="2">
Material type : Material type:
<b> <b><xsl:choose>
<xsl:choose> <xsl:when test="type='I' ">
<xsl:when test="type='I' "> Ingredents
Ingredents </xsl:when>
</xsl:when> <xsl:when test="type='C' ">
<xsl:when test="type='C' "> Configuration
Configuration </xsl:when>
</xsl:when> <xsl:when test="type='F' ">
<xsl:when test="type='F' "> Formula
Formula </xsl:when>
</xsl:when> <xsl:when test="type='T' ">
<xsl:when test="type='T' "> R and D/Trial
R and D/Trial </xsl:when>
</xsl:when> </xsl:choose></b>
</xsl:choose></b> </font>
</font>
</td> </td>
</tr> </tr>
</TABLE> </TABLE>
</td> </td>
</tr> </tr>
<tr> <tr>
<td colspan="3"> <td colspan="3">
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="tTitleD" > <table width="100%" border="0" cellspacing="0" cellpadding="0" class="tTitleD" >
<tr> <tr>
<td class="cellttl1">Batch quantity : </td> <td class="cellttl1">Batch quantity: </td>
<td class="tLabelDataD1" style="text-align:left"> <td class="tLabelDataD1" style="text-align:left">
<xsl:value-of select= "batch_qty"/> (<xsl:value-of select= "unit"/>) <font size="2">
<xsl:value-of select= "batch_qty"/> (<xsl:value-of select= "unit"/>)
</font>
</td> </td>
</tr> </tr>
<tr> <!--<tr>
<td class="cellttl1">Bill of material : </td> <td class="cellttl1">Bill of material : </td>
<td class="tLabelDataD1" style="text-align:left"> <td class="tLabelDataD1" NOWRAP="TRUE" style="text-align:left">
<xsl:value-of select="descr" />&#160; <font size="2">
(<xsl:value-of select="bom_code" />) <xsl:value-of select="descr" />&#160;
(<xsl:value-of select="bom_code" />)
</font>
</td> </td>
</tr> </tr>-->
<tr> <tr>
<td class="cellttl1">Unit potency : </td> <td class="cellttl1">Unit potency: </td>
<td class="tLabelDataD1" style="text-align:left"> <td class="tLabelDataD1" style="text-align:left">
<xsl:value-of select= "unit__potency"/> <font size="2">
<xsl:value-of select= "unit__potency"/>
</font>
</td> </td>
</tr> </tr>
<tr> <tr>
<td class="cellttl1">Minimum batch quantity : </td> <td class="cellttl1">Minimum batch quantity: </td>
<td class="tLabelDataD1" style="text-align:left"> <td class="tLabelDataD1" style="text-align:left">
<xsl:value-of select= "min_batch_qty"/> <font size="2">
<xsl:value-of select= "min_batch_qty"/>
</font>
</td> </td>
</tr> </tr>
<tr> <tr>
<td class="cellttl1">Maximum batch quantity : </td> <td class="cellttl1">Maximum batch quantity: </td>
<td class="tLabelDataD1" style="text-align:left"> <td class="tLabelDataD1" style="text-align:left">
<xsl:value-of select= "max_batch_qty"/> <font size="2">
<xsl:value-of select= "max_batch_qty"/>
</font>
</td> </td>
</tr> </tr>
</table> </table>
...@@ -192,250 +201,248 @@ ...@@ -192,250 +201,248 @@
</tr> </tr>
</TABLE> </TABLE>
</xsl:for-each> </xsl:for-each>
<br/><br/> <br/>
<div style="overflow-x: scroll; width:60%">
<table class="tableClass" cellSpacing="0" cellPadding="0" width="100%" border="0"> <table class="tableClass" cellSpacing="0" cellPadding="0" width="100%" border="0">
<tbody> <tbody>
<xsl:for-each select="//Detail1"> <xsl:for-each select="//Detail1">
<tr border="1"> <tr border="1">
<td class="editDisplayheaderClass"> <td class="editDisplayheaderClass">
<font face="Times New Roman" size="2">Sr no</font> <font face="Times New Roman" size="2">Sr no</font>
</td> </td>
<td class="editDisplayheaderClass" align="center"> <td class="editDisplayheaderClass">
<font face="Times New Roman" size="2">Item</font> <font face="Times New Roman" size="2">Item</font>
</td> </td>
<td class="editDisplayheaderClass" align="center"> <td class="editDisplayheaderClass">
<font face="Times New Roman" size="2">Item reference</font> <font face="Times New Roman" size="2">Item reference</font>
</td> </td>
<td class="editDisplayheaderClass" align="center"> <td class="editDisplayheaderClass" align="right">
<font face="Times New Roman" size="2">Quantity required</font> <font face="Times New Roman" size="2">Quantity required</font>
</td> </td>
<td class="editDisplayheaderClass" align="center"> <td class="editDisplayheaderClass" align="right">
<font face="Times New Roman" size="2">Operation</font> <font face="Times New Roman" size="2">Operation</font>
</td> </td>
<td class="editDisplayheaderClass" align="center"> <td class="editDisplayheaderClass">
<font face="Times New Roman" size="2">Type</font> <font face="Times New Roman" size="2">Type</font>
</td> </td>
<td class="editDisplayheaderClass" align="center"> <td class="editDisplayheaderClass">
<font face="Times New Roman" size="2">Critical item</font> <font face="Times New Roman" size="2">Critical item</font>
</td> </td>
<!--<td class="editDisplayheaderClass" align="center"> <!--<td class="editDisplayheaderClass" align="center">
<font face="Times New Roman" size="2">Minimum Quantity</font> <font face="Times New Roman" size="2">Minimum Quantity</font>
</td> </td>
<td class="editDisplayheaderClass" align="center"> <td class="editDisplayheaderClass" align="center">
<font face="Times New Roman" size="2">Quantity</font> <font face="Times New Roman" size="2">Quantity</font>
</td>--> </td>-->
<td class="editDisplayheaderClass" align="center"> <td class="editDisplayheaderClass">
<font face="Times New Roman" size="2">Match potency</font> <font face="Times New Roman" size="2">Match potency</font>
</td> </td>
<td class="editDisplayheaderClass" align="center"> <td class="editDisplayheaderClass" align="right">
<font face="Times New Roman" size="2">Min potency</font> <font face="Times New Roman" size="2">Min potency</font>
</td> </td>
<td class="editDisplayheaderClass" align="center"> <td class="editDisplayheaderClass">
<font face="Times New Roman" size="2">Adj potency</font> <font face="Times New Roman" size="2">Adj potency</font>
</td> </td>
<td class="editDisplayheaderClass" align="center"> <td class="editDisplayheaderClass">
<font face="Times New Roman" size="2">Usage type</font> <font face="Times New Roman" size="2">Usage type</font>
</td> </td>
<td class="editDisplayheaderClass" align="center"> <td class="editDisplayheaderClass">
<font face="Times New Roman" size="2">Allocation type</font> <font face="Times New Roman" size="2">Allocation type</font>
</td> </td>
<!--<td class="editDisplayheaderClass"> <!--<td class="editDisplayheaderClass">
<font face="Times New Roman" size="2">Discount</font> <font face="Times New Roman" size="2">Discount</font>
</td> </td>
<td class="editDisplayheaderClass"> <td class="editDisplayheaderClass">
<font face="Times New Roman" size="2">Tax</font> <font face="Times New Roman" size="2">Tax</font>
</td> </td>
<td class="editDisplayheaderClass"> <td class="editDisplayheaderClass">
<font face="Times New Roman" size="2">Net Amount</font> <font face="Times New Roman" size="2">Net Amount</font>
</td>--> </td>-->
<!--<td class="editDisplayheaderClass"> <!--<td class="editDisplayheaderClass">
<font face="Times New Roman" size="2">Valid Upto</font> <font face="Times New Roman" size="2">Valid Upto</font>
</td>--> </td>-->
</tr> </tr>
</xsl:for-each> </xsl:for-each>
<xsl:for-each select="//Detail2"> <xsl:for-each select="//Detail2">
<xsl:sort select="item_code" /> <xsl:sort select="item_code" />
<xsl:variable name="dbID"> <xsl:variable name="dbID">
<xsl:value-of select="@domID" /> <xsl:value-of select="@domID" />
</xsl:variable> </xsl:variable>
<xsl:variable name="line_no"> <xsl:variable name="line_no">
<xsl:value-of select="line_no" /> <xsl:value-of select="line_no" />
</xsl:variable> </xsl:variable>
<xsl:variable name="line_no__inv"> <xsl:variable name="line_no__inv">
<xsl:value-of select="line_no__inv" /> <xsl:value-of select="line_no__inv" />
</xsl:variable> </xsl:variable>
<xsl:variable name="item_descr"> <xsl:variable name="item_descr">
<xsl:value-of select="item_descr" /> <xsl:value-of select="item_descr" />
</xsl:variable> </xsl:variable>
<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="item_ref"> <xsl:variable name="item_ref">
<xsl:value-of select="item_ref" /> <xsl:value-of select="item_ref" />
</xsl:variable> </xsl:variable>
<xsl:variable name="operation"> <xsl:variable name="operation">
<xsl:value-of select="operation" /> <xsl:value-of select="operation" />
</xsl:variable> </xsl:variable>
<xsl:variable name="req_type"> <xsl:variable name="req_type">
<xsl:value-of select="req_type" /> <xsl:value-of select="req_type" />
</xsl:variable> </xsl:variable>
<xsl:variable name="crit_item"> <xsl:variable name="crit_item">
<xsl:value-of select="crit_item" /> <xsl:value-of select="crit_item" />
</xsl:variable> </xsl:variable>
<xsl:variable name="min_qty"> <xsl:variable name="min_qty">
<xsl:value-of select="min_qty" /> <xsl:value-of select="min_qty" />
</xsl:variable> </xsl:variable>
<xsl:variable name="qty_per"> <xsl:variable name="qty_per">
<xsl:value-of select="qty_per" /> <xsl:value-of select="qty_per" />
</xsl:variable> </xsl:variable>
<xsl:variable name="match_potency"> <xsl:variable name="match_potency">
<xsl:value-of select="match_potency" /> <xsl:value-of select="match_potency" />
</xsl:variable> </xsl:variable>
<xsl:variable name="min_potency"> <xsl:variable name="min_potency">
<xsl:value-of select="min_potency" /> <xsl:value-of select="min_potency" />
</xsl:variable> </xsl:variable>
<xsl:variable name="adj_potency"> <xsl:variable name="adj_potency">
<xsl:value-of select="adj_potency" /> <xsl:value-of select="adj_potency" />
</xsl:variable> </xsl:variable>
<xsl:variable name="valid_upto"> <xsl:variable name="valid_upto">
<xsl:value-of select="valid_upto" /> <xsl:value-of select="valid_upto" />
</xsl:variable> </xsl:variable>
<tr> <tr>
<td class="editDisplayColumnClass" style = "padding: 5px;color:#555;"> <td class="editDisplayColumnClass" style = "padding: 5px;color:#555;">
<font face="Times New Roman" size="2"> <font face="Times New Roman" size="2">
<xsl:value-of select="line_no"/> <xsl:value-of select="line_no"/>
</font> </font>
</td> </td>
<td class="editDisplayColumnClass" style = "padding: 5px;color:#555;"> <td class="editDisplayColumnClass" style = "padding: 5px;color:#555;">
<font face="Times New Roman" size="2"> <font face="Times New Roman" size="2">
<xsl:value-of select="item_descr"/>&#160; <xsl:value-of select="item_descr"/>&#160;
(<xsl:value-of select="item_code"/>) (<xsl:value-of select="item_code"/>)
</font> </font>
</td> </td>
<td class="editDisplayColumnClass" style = "padding: 5px;color:#555;"> <td class="editDisplayColumnClass" style = "padding: 5px;color:#555;">
<font face="Times New Roman" size="2"> <font face="Times New Roman" size="2">
<xsl:value-of select="item_ref"/> <xsl:value-of select="item_ref"/>
</font> </font>
</td> </td>
<td class="editDisplayColumnClass" style = "padding: 5px;color:#555;" align="right"> <td class="editDisplayColumnClass" style = "padding: 5px;color:#555;" align="right">
<font face="Times New Roman" size="2"> <font face="Times New Roman" size="2">
<xsl:value-of select="min_req_qty"/> <xsl:value-of select="min_req_qty"/>
</font> </font>
</td> </td>
<td class="editDisplayColumnClass" style = "padding: 5px;color:#555;" align="right"> <td class="editDisplayColumnClass" style = "padding: 5px;color:#555;" align="right">
<font face="Times New Roman" size="2"> <font face="Times New Roman" size="2">
<xsl:value-of select="operation"/> <xsl:value-of select="operation"/>
</font> </font>
</td> </td>
<td class="editDisplayColumnClass" style = "padding: 5px;color:#555;"> <td class="editDisplayColumnClass" style = "padding: 5px;color:#555;">
<font face="Times New Roman" size="2"> <font face="Times New Roman" size="2">
<xsl:for-each select="//Detail2"> <xsl:for-each select="//Detail2">
<xsl:choose> <xsl:choose>
<xsl:when test="req_type='P' "> <xsl:when test="req_type='P' ">
Proportionate Proportionate
</xsl:when> </xsl:when>
<xsl:when test="req_type='S' "> <xsl:when test="req_type='S' ">
Slab Slab
</xsl:when> </xsl:when>
<xsl:when test="req_type='F' "> <xsl:when test="req_type='F' ">
Fixed Fixed
</xsl:when> </xsl:when>
</xsl:choose> </xsl:choose>
</xsl:for-each> </xsl:for-each>
</font> </font>
</td> </td>
<td class="editDisplayColumnClass" style = "padding: 5px;color:#555;"> <td class="editDisplayColumnClass" style = "padding: 5px;color:#555;">
<font face="Times New Roman" size="2"> <font face="Times New Roman" size="2">
<xsl:choose> <xsl:choose>
<xsl:when test="crit_item= 'Y' "> <xsl:when test="crit_item= 'Y' ">
Yes Yes
</xsl:when> </xsl:when>
<xsl:when test="crit_item='N' "> <xsl:when test="crit_item='N' ">
No No
</xsl:when> </xsl:when>
</xsl:choose> </xsl:choose>
</font> </font>
</td> </td>
<!--<td class="editDisplayColumnClass" style = "padding: 5px;color:#555;" align="right"> <!--<td class="editDisplayColumnClass" style = "padding: 5px;color:#555;" align="right">
<font face="Times New Roman" size="2"> <font face="Times New Roman" size="2">
<xsl:value-of select="min_qty"/> <xsl:value-of select="min_qty"/>
</font> </font>
</td> </td>
<td class="editDisplayColumnClass" style = "padding: 5px;color:#555;" align="right"> <td class="editDisplayColumnClass" style = "padding: 5px;color:#555;" align="right">
<font face="Times New Roman" size="2"> <font face="Times New Roman" size="2">
<xsl:value-of select="qty_per"/> <xsl:value-of select="qty_per"/>
</font> </font>
</td>--> </td>-->
<td class="editDisplayColumnClass" style = "padding: 5px;color:#555;"> <td class="editDisplayColumnClass" style = "padding: 5px;color:#555;">
<font face="Times New Roman" size="2"> <font face="Times New Roman" size="2">
<xsl:for-each select="//Detail2"> <xsl:for-each select="//Detail2">
<xsl:choose> <xsl:choose>
<xsl:when test="match_potency='Y' "> <xsl:when test="match_potency='Y' ">
Yes Yes
</xsl:when> </xsl:when>
<xsl:when test="match_potency='N' "> <xsl:when test="match_potency='N' ">
No No
</xsl:when> </xsl:when>
<xsl:when test="match_potency='A' "> <xsl:when test="match_potency='A' ">
Adjust only Adjust only
</xsl:when> </xsl:when>
</xsl:choose> </xsl:choose>
<!--&#160; <!--&#160;
<xsl:value-of select="min_potency_perc" /> <xsl:value-of select="min_potency_perc" />
&#160; &#160;
<xsl:value-of select="adj_potency" />--> <xsl:value-of select="adj_potency" />-->
</xsl:for-each> </xsl:for-each>
</font> </font>
</td> </td>
<td class="editDisplayColumnClass" style = "padding: 5px;color:#555;" align="right"> <td class="editDisplayColumnClass" style = "padding: 5px;color:#555;" align="right">
<font face="Times New Roman" size="2"> <font face="Times New Roman" size="2">
<xsl:value-of select="min_potency_perc" /> <xsl:value-of select="min_potency_perc" />
</font> </font>
</td> </td>
<td class="editDisplayColumnClass" style = "padding: 5px;color:#555;" align="right"> <td class="editDisplayColumnClass" style = "padding: 5px;color:#555;">
<font face="Times New Roman" size="2"> <font face="Times New Roman" size="2">
<xsl:value-of select="adj_potency" /> <xsl:value-of select="adj_potency" />
</font> </font>
</td> </td>
<td class="editDisplayColumnClass" style = "padding: 5px;color:#555;"> <td class="editDisplayColumnClass" style = "padding: 5px;color:#555;">
<font face="Times New Roman" size="2"> <font face="Times New Roman" size="2">
<xsl:for-each select="//Detail2"> <xsl:for-each select="//Detail2">
<xsl:choose> <xsl:choose>
<xsl:when test="usage_type='R' "> <xsl:when test="usage_type='R' ">
Regular Regular
</xsl:when> </xsl:when>
<xsl:when test="usage_type='O' "> <xsl:when test="usage_type='O' ">
On Demand On Demand
</xsl:when> </xsl:when>
</xsl:choose> </xsl:choose>
</xsl:for-each> </xsl:for-each>
</font> </font>
</td> </td>
<td class="editDisplayColumnClass" style = "padding: 5px;color:#555;"> <td class="editDisplayColumnClass" style = "padding: 5px;color:#555;">
<font face="Times New Roman" size="2"> <font face="Times New Roman" size="2">
<xsl:for-each select="//Detail2"> <xsl:for-each select="//Detail2">
<xsl:choose> <xsl:choose>
<xsl:when test="allocate_type='Y' "> <xsl:when test="allocate_type='Y' ">
Allocate Any Stock Allocate Any Stock
</xsl:when> </xsl:when>
<xsl:when test="allocate_type='N' "> <xsl:when test="allocate_type='N' ">
Do Not Allocate Do Not Allocate
</xsl:when> </xsl:when>
<xsl:when test="allocate_type='O' "> <xsl:when test="allocate_type='O' ">
Allocate Original Item Stock Allocate Original Item Stock
</xsl:when> </xsl:when>
</xsl:choose> </xsl:choose>
</xsl:for-each> </xsl:for-each>
</font>
</font> </td>
</td> </tr>
</tr> </xsl:for-each>
</xsl:for-each> </tbody>
</table>
</tbody> </div>
</table>
</body> </body>
</html> </html>
</xsl:template> </xsl:template>
......
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