Commit 8358aac4 authored by jshaikh's avatar jshaikh

update important information to be displayed

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@171371 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 789c8920
<?xml version='1.0' encoding='utf-8'?> <?xml version='1.0' encoding='UTF-8'?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html"/> <xsl:template match="/">
<xsl:decimal-format NaN="0"/> <html>
<head>
<xsl:template match="/"> <link type="text/css" rel="stylesheet" href="/ibase/E12MOBILE/css/workflowsign.css"></link>
<html> <link type="text/css" rel="stylesheet" href="/ibase/E12MOBILE/css/expandy.css"></link>
<head> <link type="text/css" rel="stylesheet" href="/ibase/webitm/css/fonts.css"/>
<style type="text/css"> <link type="text/css" rel="stylesheet" href="/ibase/E12MOBILE/css/hr_portal1.css"></link>
.tTitle1
{
text-align:center;
} <style type="text/css">
.tHeaderD1
{ .tableClass {margin-bottom:10px; width:100%; background-color:#FFF;
text-align:right; /*padding:10px;*/ border-left: 1px solid #d9d9d9; border-top: 1px
} solid #d9d9d9;}
.tTitleD1 .tableClass td {border-bottom: 1px solid #d9d9d9; border-right: 1px solid
{ #d9d9d9; font-size:14px;}
text-align:center; .tbletopbrd{border-top:2px solid #5fdeb2;}
} .date {
.numberData color: #9d9ca2;
{ font-size: 11px;
text-align:right; font-weight: normal;
} }
.editDisplayClass
{readOnly:true;border :inset 1;COLOR:BLACK ;BACKGROUND:#FFFFD9; TEXT-ALIGN:left;FONT: </style>
8ptarial; width:auto;}; </head>
.editDisplayRemarkClass
{readOnly:true;border :inset 1;COLOR:black ; BACKGROUND:#FFFFD9; TEXT-ALIGN:left;FONT: <body>
7ptarial;}; <INPUT type="hidden" name="OBJ_NAME" id="OBJ_NAME" value='bom'/>
.editDisplayrightClass <INPUT type='hidden' name='OBJ_CONTEXT' value='1'/>
{readOnly:true;border :inset 1;COLOR:black ; TEXT-ALIGN:right;FONT:8ptarial;}; <INPUT type='hidden' name='EDIT_FLAG' value='A'/>
.editDisplayecnterClass <INPUT type='hidden' name='DOM_ID' value='{@domID}'/>
{readOnly:true;border :inset 1;COLOR:white ; <INPUT type='hidden' name='DB_ID' value='{@dbID}'/>
BACKGROUND:#5b7290;TEXT-ALIGN:center;FONT:8ptarial;};
.displayCenterClass <xsl:for-each select="//Detail1">
{readOnly:true;border :inset 1;COLOR:#DC143C; <xsl:variable name="dbID">
BACKGROUND:#CCCCFF;TEXT-ALIGN:center;FONT:10ptarial;}; <xsl:value-of select="@dbID" />
.displayCenterClass2 </xsl:variable>
{readOnly:true;border :inset 1;COLOR:#0000CD; <xsl:variable name="wf_status">
BACKGROUND:#E0FFFF;TEXT-ALIGN:center;FONT:10ptarial;}; <xsl:value-of select="wf_status" />
.editDisplayColumnClass{readOnly:true;color:#555; TEXT-ALIGN:left; </xsl:variable>
padding:5px; font-size:16px; font-weight:normal;} <xsl:variable name="bom_code">
.editDisplayheaderClass{readOnly:true;color:#000; TEXT-ALIGN:left; <xsl:value-of select="bom_code" />
padding:5px; font-weight:normal; font-size:14px; </xsl:variable>
vertical-align:top;} <xsl:variable name="type">
.editDisplayrightClass{readOnly:true;border :inset 1;COLOR:black ; BACKGROUND:#FFFFD9;TEXT-ALIGN:right; <xsl:value-of select="type" />
font-weight:normal;} </xsl:variable>
.editDisplayecnterClass{readOnly:true; color:#5fdeb2; TEXT-ALIGN:left; font-size:18px; padding:5px 0; <xsl:variable name="eff_from">
font-weight:normal;} <xsl:value-of select="eff_from" />
.editDisplayecnterClass2{readOnly:true;border :inset 1;COLOR:black ; TEXT-ALIGN:center; font-weight:normal;} </xsl:variable>
.editDisplayClass{background-color: transparent <xsl:variable name="valid_upto">
!important;readOnly:true;color:#555; TEXT-ALIGN:left; padding:5px; <xsl:value-of select="valid_upto" />
font-weight:normal; font-size:14px;} </xsl:variable>
.editDisplayecnterClass1 {readOnly:true; color:#5fdeb2; TEXT-ALIGN:left; font-size:16px; <xsl:variable name="item_code">
padding:10px 0 0 0;} <xsl:value-of select="item_code" />
.editDisplayecnterClass3 {readOnly:true; color:#5fdeb2; TEXT-ALIGN:left; font-size:16px; </xsl:variable>
padding:10px 0 0 0;} <xsl:variable name="descr">
.tableClass {margin-bottom:10px; width:100%; background-color:#FFF; <xsl:value-of select="descr" />
/*padding:10px;*/ border-left: 1px solid #d9d9d9; border-top: 1px </xsl:variable>
solid #d9d9d9;} <xsl:variable name="item_ref">
.tableClass td {border-bottom: 1px solid #d9d9d9; border-right: 1px solid <xsl:value-of select="item_ref" />
#d9d9d9; font-size:14px;} </xsl:variable>
.tbletopbrd{border-top:2px solid #5fdeb2;} <xsl:variable name="item_descr">
.date { <xsl:value-of select="item_descr" />
color: #9d9ca2; </xsl:variable>
font-size: 11px; <xsl:variable name="emp_code__aprv">
font-weight: normal; <xsl:value-of select="emp_code__aprv" />
} </xsl:variable>
.tableClass1 { <xsl:variable name="site_code">
margin-bottom: 5px; <xsl:value-of select="site_code" />
width: 100%; </xsl:variable>
background-color: #FFF; <xsl:variable name="remarks">
border-LEFT: 1px solid #d9d9d9; <xsl:value-of select="remarks" />
border-top: 1px solid #d9d9d9; </xsl:variable>
}
.tableClass1 td { <TABLE name="main" id="main" class="tLabel" style="position:relative; width:100%; border-top: #5fdeb2 3px solid;" cellspacing="0" cellpadding="0" >
border-bottom: 1px solid #d9d9d9; <tr>
border-right: 1px solid #d9d9d9; <td colspan="3" >
font-size: 14px; <TABLE width="100%" border="0" cellspacing="0" cellpadding="0" class="tblenew">
line-height: 18px; <tr>
padding: 5px; <td class="tLabelDataD3" width="50%" style="text-align:left;" >
} <font size="2">
</style> Bill of material
</head> <!--<b><xsl:value-of select="descr" />&#160;
<body> (<xsl:value-of select="bom_code" />)</b>-->
<input type="hidden" value="bom" name="OBJ_NAME" id="OBJ_NAME" />
<input type="hidden" value="2" name="PAGE_CONTEXT" id="PAGE_CONTEXT" /> </font>
<input type="hidden" value="1" name="OBJ_CONTEXT" id="OBJ_CONTEXT" />
<form name="BillOfMaterial"> </td>
<table cellSpacing="0" cellPadding="0" width="100%" border="0"> <td NOWRAP="TRUE" class="tLabelDataD3" width="50%" style="text-align:right;">
<tbody> <font size="2">
<tr> Date : <b><xsl:value-of select="chg_date" /></b>
<td colSpan="4" class="editDisplayColumnClass"> </font>
<font size="4">
Bill Of Material </td>
</font> </tr>
</td> <tr>
</tr> <td colspan="3" NOWRAP = "TRUE" class = "tLabelDataD3" >
</tbody>
</table> <div class = "tLabelDataD3" >
<xsl:for-each select="//Detail1"> <font size="4">
<table class="tableClass tbletopbrd" cellSpacing="0" cellPadding="0" width="100%" border="0"> <b><xsl:value-of select="item_descr" /></b>
<TBODY> </font>
<xsl:variable name="dbID"> </div>
<xsl:value-of select="@dbID" />
</xsl:variable>
<xsl:variable name="wf_status"> <div class="empInfoDiv" >
<xsl:value-of select="wf_status" /> <font size="2">
</xsl:variable> <b>(<xsl:value-of select="item_code" />)</b>
<xsl:variable name="bom_code"> </font>
<xsl:value-of select="bom_code" /> </div>
</xsl:variable>
<xsl:variable name="eff_from"> </td>
<xsl:value-of select="eff_from" /> </tr>
</xsl:variable> &#160;
<xsl:variable name="valid_upto"> <tr>
<xsl:value-of select="valid_upto" /> <td class="tLabelDataD3" width="50%" style="text-align:left;" >
</xsl:variable> <font size="2">
<xsl:variable name="item_code"> Site :
<xsl:value-of select="item_code" /> <b><xsl:value-of select="site_descr" />&#160;
</xsl:variable> (<xsl:value-of select="site_code" />)</b>
<xsl:variable name="descr">
<xsl:value-of select="descr" /> </font>
</xsl:variable>
<xsl:variable name="item_ref"> </td>
<xsl:value-of select="item_ref" /> <td NOWRAP="TRUE" class="tLabelDataD3" width="50%" style="text-align:right;">
</xsl:variable> <font size="2">
<xsl:variable name="item_descr"> Material type :
<xsl:value-of select="item_descr" /> <b>
</xsl:variable> <xsl:choose>
<xsl:variable name="emp_code__aprv"> <xsl:when test="type='I' ">
<xsl:value-of select="emp_code__aprv" /> Ingredents
</xsl:variable> </xsl:when>
<xsl:variable name="site_code"> <xsl:when test="type='C' ">
<xsl:value-of select="site_code" /> Configuration
</xsl:variable> </xsl:when>
<xsl:variable name="remarks"> <xsl:when test="type='F' ">
<xsl:value-of select="remarks" /> Formula
</xsl:variable> </xsl:when>
<xsl:when test="type='T' ">
<TR> R and D/Trial
<td class="editDisplayClass" width="50%"> </xsl:when>
<font face="Times New Roman"> </xsl:choose></b>
<font size="2">
<strong>Item Code : </strong> </font>
</font>
<font size="2"> </td>
<xsl:value-of select="item_code" /> </tr>
</font> </TABLE>
</font>
</td> </td>
<td class="editDisplayClass" style="text-align: right;" width="50%"> </tr>
<font face="Times New Roman"> <tr>
<font size="2"> <td colspan="3">
<b>Claim Date : </b> <table width="100%" border="0" cellspacing="0" cellpadding="0" class="tTitleD" >
<xsl:value-of select="valid_upto" /> <tr>
</font> <td class="cellttl1">Batch quantity : </td>
</font> <td class="tLabelDataD1" NOWRAP="TRUE" style="text-align:left">
</td> <xsl:value-of select= "batch_qty"/>
</TR> </td>
<tr> </tr>
<td class="editDisplayheaderClass"
style="text-align: center;font-size: 18px;border: 0px;padding-bottom: 0px;" colspan="2"> <tr>
Bill Of Material No : <td class="cellttl1">Bill of material : </td>
<xsl:value-of select="bom_code" /> <td class="tLabelDataD1" NOWRAP="TRUE" style="text-align:left">
</td> <xsl:value-of select="descr" />&#160;
</tr> (<xsl:value-of select="bom_code" />)
<tr> </td>
<td class="date" style="text-align: center;border: 0px;padding-top: 0px;" width="100%" colspan="2"> </tr>
<xsl:value-of select="eff_from"/> <tr>
</td> <td class="cellttl1">Unit potency : </td>
</tr> <td class="tLabelDataD1" NOWRAP="TRUE" style="text-align:left">
<tr> <xsl:value-of select= "unit__potency"/>
<td class="editDisplayClass"> </td>
<font size="2"> </tr>
<strong>Site : </strong> <tr>
<xsl:value-of select="site_code" /> <td class="cellttl1">Minimum batch quantity : </td>
</font> <td class="tLabelDataD1" NOWRAP="TRUE" style="text-align:left">
</td> <xsl:value-of select= "min_batch_qty"/>
<td class="editDisplayClass" style="text-align: right;"> </td>
<font size="2"> </tr>
<strong>Item Series : </strong>&#160;<xsl:value-of select="item_ser" /> <tr>
</font> <td class="cellttl1">Maximum batch quantity : </td>
</td> <td class="tLabelDataD1" NOWRAP="TRUE" style="text-align:left">
</tr> <xsl:value-of select= "max_batch_qty"/>
</td>
</TBODY> </tr>
</table> </table>
<br></br> </td>
</tr>
</xsl:for-each> </TABLE>
<!--<br /> </xsl:for-each>
<table width="100%" border="0" cellspacing="0" cellpadding="0"> <br/><br/>
<tr> <table class="tableClass" cellSpacing="0" cellPadding="0" width="100%" border="0">
<td class="editDisplayheaderClass" width="1%"> <tbody>
Bill Of Material Details <xsl:for-each select="//Detail1">
</td> <tr border="1">
</tr> <td class="editDisplayheaderClass">
</table> <font face="Times New Roman" size="2">Sr no</font>
<table class="tableClass" cellSpacing="0" cellPadding="0" width="100%" border="0"> </td>
<tbody> <td class="editDisplayheaderClass" align="center">
<xsl:for-each select="//Detail1"> <font face="Times New Roman" size="2">Item</font>
<tr border="1"> </td>
<td class="editDisplayheaderClass"> <td class="editDisplayheaderClass" align="center">
<font face="Times New Roman" size="2">Sr No</font> <font face="Times New Roman" size="2">Item reference</font>
</td> </td>
<td class="editDisplayheaderClass"> <td class="editDisplayheaderClass" align="center">
<font face="Times New Roman" size="2">Item Code</font> <font face="Times New Roman" size="2">Quantity required</font>
</td> </td>
<td class="editDisplayheaderClass"> <td class="editDisplayheaderClass" align="center">
<font face="Times New Roman" size="2">Description </font> <font face="Times New Roman" size="2">Operation</font>
</td> </td>
<td class="editDisplayheaderClass"> <td class="editDisplayheaderClass" align="center">
<font face="Times New Roman" size="2">Unit <font face="Times New Roman" size="2">Type</font>
</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">Quantity</font> </td>
</td> <!--<td class="editDisplayheaderClass" align="center">
<td class="editDisplayheaderClass"> <font face="Times New Roman" size="2">Minimum Quantity</font>
<font face="Times New Roman" size="2">Rate </td>
</font> <td class="editDisplayheaderClass" align="center">
</td> <font face="Times New Roman" size="2">Quantity</font>
<td class="editDisplayheaderClass"> </td>-->
<font face="Times New Roman" size="2">Amount <td class="editDisplayheaderClass" align="center">
</font> <font face="Times New Roman" size="2">Match potency</font>
</td> </td>
</tr> <td class="editDisplayheaderClass" align="center">
</xsl:for-each> <font face="Times New Roman" size="2">Min potency</font>
</td>
</tbody> <td class="editDisplayheaderClass" align="center">
</table>--> <font face="Times New Roman" size="2">Adj potency</font>
</form> </td>
</body> <td class="editDisplayheaderClass" align="center">
</html> <font face="Times New Roman" size="2">Usage type</font>
</xsl:template> </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>
</body>
</html>
</xsl:template>
</xsl:stylesheet> </xsl:stylesheet>
\ No newline at end of file
<?xml version='1.0' encoding='utf-8'?> <?xml version='1.0' encoding='UTF-8'?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html"/> <xsl:template match="/">
<xsl:decimal-format NaN="0"/> <html>
<head>
<xsl:template match="/"> <link type="text/css" rel="stylesheet" href="css/workflowsign.css"></link>
<html> <link type="text/css" rel="stylesheet" href="css/expandy.css"></link>
<head> <link type="text/css" rel="stylesheet" href="css/fonts.css"/>
<style type="text/css"> <link type="text/css" rel="stylesheet" href="css/hr_portal1.css"></link>
.tTitle1
{
text-align:center;
} <style type="text/css">
.tHeaderD1
{ .tableClass {margin-bottom:10px; width:100%; background-color:#FFF;
text-align:right; /*padding:10px;*/ border-left: 1px solid #d9d9d9; border-top: 1px
} solid #d9d9d9;}
.tTitleD1 .tableClass td {border-bottom: 1px solid #d9d9d9; border-right: 1px solid
{ #d9d9d9; font-size:14px;}
text-align:center; .tbletopbrd{border-top:2px solid #5fdeb2;}
} .date {
.numberData color: #9d9ca2;
{ font-size: 11px;
text-align:right; font-weight: normal;
} }
.editDisplayClass
{readOnly:true;border :inset 1;COLOR:BLACK ;BACKGROUND:#FFFFD9; TEXT-ALIGN:left;FONT: </style>
8ptarial; width:auto;}; </head>
.editDisplayRemarkClass
{readOnly:true;border :inset 1;COLOR:black ; BACKGROUND:#FFFFD9; TEXT-ALIGN:left;FONT: <body>
7ptarial;}; <INPUT type="hidden" name="OBJ_NAME" id="OBJ_NAME" value='bom'/>
.editDisplayrightClass <INPUT type='hidden' name='OBJ_CONTEXT' value='1'/>
{readOnly:true;border :inset 1;COLOR:black ; TEXT-ALIGN:right;FONT:8ptarial;}; <INPUT type='hidden' name='EDIT_FLAG' value='A'/>
.editDisplayecnterClass <INPUT type='hidden' name='DOM_ID' value='{@domID}'/>
{readOnly:true;border :inset 1;COLOR:white ; <INPUT type='hidden' name='DB_ID' value='{@dbID}'/>
BACKGROUND:#5b7290;TEXT-ALIGN:center;FONT:8ptarial;};
.displayCenterClass <xsl:for-each select="//Detail1">
{readOnly:true;border :inset 1;COLOR:#DC143C; <xsl:variable name="dbID">
BACKGROUND:#CCCCFF;TEXT-ALIGN:center;FONT:10ptarial;}; <xsl:value-of select="@dbID" />
.displayCenterClass2 </xsl:variable>
{readOnly:true;border :inset 1;COLOR:#0000CD; <xsl:variable name="wf_status">
BACKGROUND:#E0FFFF;TEXT-ALIGN:center;FONT:10ptarial;}; <xsl:value-of select="wf_status" />
.editDisplayColumnClass{readOnly:true;color:#555; TEXT-ALIGN:left; </xsl:variable>
padding:5px; font-size:16px; font-weight:normal;} <xsl:variable name="bom_code">
.editDisplayheaderClass{readOnly:true;color:#000; TEXT-ALIGN:left; <xsl:value-of select="bom_code" />
padding:5px; font-weight:normal; font-size:14px; </xsl:variable>
vertical-align:top;} <xsl:variable name="type">
.editDisplayrightClass{readOnly:true;border :inset 1;COLOR:black ; BACKGROUND:#FFFFD9;TEXT-ALIGN:right; <xsl:value-of select="type" />
font-weight:normal;} </xsl:variable>
.editDisplayecnterClass{readOnly:true; color:#5fdeb2; TEXT-ALIGN:left; font-size:18px; padding:5px 0; <xsl:variable name="eff_from">
font-weight:normal;} <xsl:value-of select="eff_from" />
.editDisplayecnterClass2{readOnly:true;border :inset 1;COLOR:black ; TEXT-ALIGN:center; font-weight:normal;} </xsl:variable>
.editDisplayClass{background-color: transparent <xsl:variable name="valid_upto">
!important;readOnly:true;color:#555; TEXT-ALIGN:left; padding:5px; <xsl:value-of select="valid_upto" />
font-weight:normal; font-size:14px;} </xsl:variable>
.editDisplayecnterClass1 {readOnly:true; color:#5fdeb2; TEXT-ALIGN:left; font-size:16px; <xsl:variable name="item_code">
padding:10px 0 0 0;} <xsl:value-of select="item_code" />
.editDisplayecnterClass3 {readOnly:true; color:#5fdeb2; TEXT-ALIGN:left; font-size:16px; </xsl:variable>
padding:10px 0 0 0;} <xsl:variable name="descr">
.tableClass {margin-bottom:10px; width:100%; background-color:#FFF; <xsl:value-of select="descr" />
/*padding:10px;*/ border-left: 1px solid #d9d9d9; border-top: 1px </xsl:variable>
solid #d9d9d9;} <xsl:variable name="item_ref">
.tableClass td {border-bottom: 1px solid #d9d9d9; border-right: 1px solid <xsl:value-of select="item_ref" />
#d9d9d9; font-size:14px;} </xsl:variable>
.tbletopbrd{border-top:2px solid #5fdeb2;} <xsl:variable name="item_descr">
.date { <xsl:value-of select="item_descr" />
color: #9d9ca2; </xsl:variable>
font-size: 11px; <xsl:variable name="emp_code__aprv">
font-weight: normal; <xsl:value-of select="emp_code__aprv" />
} </xsl:variable>
.tableClass1 { <xsl:variable name="site_code">
margin-bottom: 5px; <xsl:value-of select="site_code" />
width: 100%; </xsl:variable>
background-color: #FFF; <xsl:variable name="remarks">
border-LEFT: 1px solid #d9d9d9; <xsl:value-of select="remarks" />
border-top: 1px solid #d9d9d9; </xsl:variable>
}
.tableClass1 td { <TABLE name="main" id="main" class="tLabel" style="position:relative; width:100%; border-top: #5fdeb2 3px solid;" cellspacing="0" cellpadding="0" >
border-bottom: 1px solid #d9d9d9; <tr>
border-right: 1px solid #d9d9d9; <td colspan="3" >
font-size: 14px; <TABLE width="100%" border="0" cellspacing="0" cellpadding="0" class="tblenew">
line-height: 18px; <tr>
padding: 5px; <td class="tLabelDataD3" width="50%" style="text-align:left;" >
} <font size="2">
</style> Bill of material
</head> <!--<b><xsl:value-of select="descr" />&#160;
<body> (<xsl:value-of select="bom_code" />)</b>-->
<input type="hidden" value="bom" name="OBJ_NAME" id="OBJ_NAME" />
<input type="hidden" value="2" name="PAGE_CONTEXT" id="PAGE_CONTEXT" /> </font>
<input type="hidden" value="1" name="OBJ_CONTEXT" id="OBJ_CONTEXT" />
<form name="BillOfMaterial"> </td>
<table cellSpacing="0" cellPadding="0" width="100%" border="0"> <td NOWRAP="TRUE" class="tLabelDataD3" width="50%" style="text-align:right;">
<tbody> <font size="2">
<tr> Date : <b><xsl:value-of select="chg_date" /></b>
<td colSpan="4" class="editDisplayColumnClass"> </font>
<font size="4">
Bill Of Material </td>
</font> </tr>
</td> <tr>
</tr> <td colspan="3" NOWRAP = "TRUE" class = "tLabelDataD3" >
</tbody>
</table> <div class = "tLabelDataD3" >
<xsl:for-each select="//Detail1"> <font size="4">
<table class="tableClass tbletopbrd" cellSpacing="0" cellPadding="0" width="100%" border="0"> <b><xsl:value-of select="item_descr" /></b>
<TBODY> </font>
<xsl:variable name="dbID"> </div>
<xsl:value-of select="@dbID" />
</xsl:variable>
<xsl:variable name="wf_status"> <div class="empInfoDiv" >
<xsl:value-of select="wf_status" /> <font size="2">
</xsl:variable> <b>(<xsl:value-of select="item_code" />)</b>
<xsl:variable name="bom_code"> </font>
<xsl:value-of select="bom_code" /> </div>
</xsl:variable>
<xsl:variable name="eff_from"> </td>
<xsl:value-of select="eff_from" /> </tr>
</xsl:variable> &#160;
<xsl:variable name="valid_upto"> <tr>
<xsl:value-of select="valid_upto" /> <td class="tLabelDataD3" width="50%" style="text-align:left;" >
</xsl:variable> <font size="2">
<xsl:variable name="item_code"> Site :
<xsl:value-of select="item_code" /> <b><xsl:value-of select="site_descr" />&#160;
</xsl:variable> (<xsl:value-of select="site_code" />)</b>
<xsl:variable name="descr">
<xsl:value-of select="descr" /> </font>
</xsl:variable>
<xsl:variable name="item_ref"> </td>
<xsl:value-of select="item_ref" /> <td NOWRAP="TRUE" class="tLabelDataD3" width="50%" style="text-align:right;">
</xsl:variable> <font size="2">
<xsl:variable name="item_descr"> Material type :
<xsl:value-of select="item_descr" /> <b>
</xsl:variable> <xsl:choose>
<xsl:variable name="emp_code__aprv"> <xsl:when test="type='I' ">
<xsl:value-of select="emp_code__aprv" /> Ingredents
</xsl:variable> </xsl:when>
<xsl:variable name="site_code"> <xsl:when test="type='C' ">
<xsl:value-of select="site_code" /> Configuration
</xsl:variable> </xsl:when>
<xsl:variable name="remarks"> <xsl:when test="type='F' ">
<xsl:value-of select="remarks" /> Formula
</xsl:variable> </xsl:when>
<xsl:when test="type='T' ">
<TR> R and D/Trial
<td class="editDisplayClass" width="50%"> </xsl:when>
<font face="Times New Roman"> </xsl:choose></b>
<font size="2">
<strong>Item Code : </strong> </font>
</font>
<font size="2"> </td>
<xsl:value-of select="item_code" /> </tr>
</font> </TABLE>
</font>
</td> </td>
<td class="editDisplayClass" style="text-align: right;" width="50%"> </tr>
<font face="Times New Roman"> <tr>
<font size="2"> <td colspan="3">
<b>Claim Date : </b> <table width="100%" border="0" cellspacing="0" cellpadding="0" class="tTitleD" >
<xsl:value-of select="valid_upto" /> <tr>
</font> <td class="cellttl1">Batch quantity : </td>
</font> <td class="tLabelDataD1" style="text-align:left">
</td> <xsl:value-of select= "batch_qty"/>
</TR> </td>
<tr> </tr>
<td class="editDisplayheaderClass"
style="text-align: center;font-size: 18px;border: 0px;padding-bottom: 0px;" colspan="2"> <tr>
Bill Of Material No : <td class="cellttl1">Bill of material : </td>
<xsl:value-of select="bom_code" /> <td class="tLabelDataD1" style="text-align:left">
</td> <xsl:value-of select="descr" />&#160;
</tr> (<xsl:value-of select="bom_code" />)
<tr> </td>
<td class="date" style="text-align: center;border: 0px;padding-top: 0px;" width="100%" colspan="2"> </tr>
<xsl:value-of select="eff_from"/> <tr>
</td> <td class="cellttl1">Unit potency : </td>
</tr> <td class="tLabelDataD1" style="text-align:left">
<tr> <xsl:value-of select= "unit__potency"/>
<td class="editDisplayClass"> </td>
<font size="2"> </tr>
<strong>Site : </strong> <tr>
<xsl:value-of select="site_code" /> <td class="cellttl1">Minimum batch quantity : </td>
</font> <td class="tLabelDataD1" style="text-align:left">
</td> <xsl:value-of select= "min_batch_qty"/>
<td class="editDisplayClass" style="text-align: right;"> </td>
<font size="2"> </tr>
<strong>Item Series : </strong>&#160;<xsl:value-of select="item_ser" /> <tr>
</font> <td class="cellttl1">Maximum batch quantity : </td>
</td> <td class="tLabelDataD1" style="text-align:left">
</tr> <xsl:value-of select= "max_batch_qty"/>
</td>
</TBODY> </tr>
</table> </table>
<br></br> </td>
</tr>
</xsl:for-each> </TABLE>
<!--<br /> </xsl:for-each>
<table width="100%" border="0" cellspacing="0" cellpadding="0"> <br/><br/>
<tr> <table class="tableClass" cellSpacing="0" cellPadding="0" width="100%" border="0">
<td class="editDisplayheaderClass" width="1%"> <tbody>
Bill Of Material Details <xsl:for-each select="//Detail1">
</td> <tr border="1">
</tr> <td class="editDisplayheaderClass">
</table> <font face="Times New Roman" size="2">Sr no</font>
<table class="tableClass" cellSpacing="0" cellPadding="0" width="100%" border="0"> </td>
<tbody> <td class="editDisplayheaderClass" align="center">
<xsl:for-each select="//Detail1"> <font face="Times New Roman" size="2">Item</font>
<tr border="1"> </td>
<td class="editDisplayheaderClass"> <td class="editDisplayheaderClass" align="center">
<font face="Times New Roman" size="2">Sr No</font> <font face="Times New Roman" size="2">Item reference</font>
</td> </td>
<td class="editDisplayheaderClass"> <td class="editDisplayheaderClass" align="center">
<font face="Times New Roman" size="2">Item Code</font> <font face="Times New Roman" size="2">Quantity required</font>
</td> </td>
<td class="editDisplayheaderClass"> <td class="editDisplayheaderClass" align="center">
<font face="Times New Roman" size="2">Description </font> <font face="Times New Roman" size="2">Operation</font>
</td> </td>
<td class="editDisplayheaderClass"> <td class="editDisplayheaderClass" align="center">
<font face="Times New Roman" size="2">Unit <font face="Times New Roman" size="2">Type</font>
</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">Quantity</font> </td>
</td> <!--<td class="editDisplayheaderClass" align="center">
<td class="editDisplayheaderClass"> <font face="Times New Roman" size="2">Minimum Quantity</font>
<font face="Times New Roman" size="2">Rate </td>
</font> <td class="editDisplayheaderClass" align="center">
</td> <font face="Times New Roman" size="2">Quantity</font>
<td class="editDisplayheaderClass"> </td>-->
<font face="Times New Roman" size="2">Amount <td class="editDisplayheaderClass" align="center">
</font> <font face="Times New Roman" size="2">Match potency</font>
</td> </td>
</tr> <td class="editDisplayheaderClass" align="center">
</xsl:for-each> <font face="Times New Roman" size="2">Min potency</font>
</td>
</tbody> <td class="editDisplayheaderClass" align="center">
</table>--> <font face="Times New Roman" size="2">Adj potency</font>
</form> </td>
</body> <td class="editDisplayheaderClass" align="center">
</html> <font face="Times New Roman" size="2">Usage type</font>
</xsl:template> </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>
</body>
</html>
</xsl:template>
</xsl:stylesheet> </xsl:stylesheet>
\ No newline at end of file
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