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