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"/>
<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/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"> <style type="text/css">
.tTitle1
{
text-align:center;
}
.tHeaderD1
{
text-align:right;
}
.tTitleD1
{
text-align:center;
}
.numberData
{
text-align:right;
}
.editDisplayClass
{readOnly:true;border :inset 1;COLOR:BLACK ;BACKGROUND:#FFFFD9; TEXT-ALIGN:left;FONT:
8ptarial; width:auto;};
.editDisplayRemarkClass
{readOnly:true;border :inset 1;COLOR:black ; BACKGROUND:#FFFFD9; TEXT-ALIGN:left;FONT:
7ptarial;};
.editDisplayrightClass
{readOnly:true;border :inset 1;COLOR:black ; TEXT-ALIGN:right;FONT:8ptarial;};
.editDisplayecnterClass
{readOnly:true;border :inset 1;COLOR:white ;
BACKGROUND:#5b7290;TEXT-ALIGN:center;FONT:8ptarial;};
.displayCenterClass
{readOnly:true;border :inset 1;COLOR:#DC143C;
BACKGROUND:#CCCCFF;TEXT-ALIGN:center;FONT:10ptarial;};
.displayCenterClass2
{readOnly:true;border :inset 1;COLOR:#0000CD;
BACKGROUND:#E0FFFF;TEXT-ALIGN:center;FONT:10ptarial;};
.editDisplayColumnClass{readOnly:true;color:#555; TEXT-ALIGN:left;
padding:5px; font-size:16px; font-weight:normal;}
.editDisplayheaderClass{readOnly:true;color:#000; TEXT-ALIGN:left;
padding:5px; font-weight:normal; font-size:14px;
vertical-align:top;}
.editDisplayrightClass{readOnly:true;border :inset 1;COLOR:black ; BACKGROUND:#FFFFD9;TEXT-ALIGN:right;
font-weight:normal;}
.editDisplayecnterClass{readOnly:true; color:#5fdeb2; TEXT-ALIGN:left; font-size:18px; padding:5px 0;
font-weight:normal;}
.editDisplayecnterClass2{readOnly:true;border :inset 1;COLOR:black ; TEXT-ALIGN:center; font-weight:normal;}
.editDisplayClass{background-color: transparent
!important;readOnly:true;color:#555; TEXT-ALIGN:left; padding:5px;
font-weight:normal; font-size:14px;}
.editDisplayecnterClass1 {readOnly:true; color:#5fdeb2; TEXT-ALIGN:left; font-size:16px;
padding:10px 0 0 0;}
.editDisplayecnterClass3 {readOnly:true; color:#5fdeb2; TEXT-ALIGN:left; font-size:16px;
padding:10px 0 0 0;}
.tableClass {margin-bottom:10px; width:100%; background-color:#FFF; .tableClass {margin-bottom:10px; width:100%; background-color:#FFF;
/*padding:10px;*/ border-left: 1px solid #d9d9d9; border-top: 1px /*padding:10px;*/ border-left: 1px solid #d9d9d9; border-top: 1px
solid #d9d9d9;} solid #d9d9d9;}
...@@ -68,41 +23,18 @@ ...@@ -68,41 +23,18 @@
font-size: 11px; font-size: 11px;
font-weight: normal; font-weight: normal;
} }
.tableClass1 {
margin-bottom: 5px;
width: 100%;
background-color: #FFF;
border-LEFT: 1px solid #d9d9d9;
border-top: 1px solid #d9d9d9;
}
.tableClass1 td {
border-bottom: 1px solid #d9d9d9;
border-right: 1px solid #d9d9d9;
font-size: 14px;
line-height: 18px;
padding: 5px;
}
</style> </style>
</head> </head>
<body> <body>
<input type="hidden" value="bom" name="OBJ_NAME" id="OBJ_NAME" /> <INPUT type="hidden" name="OBJ_NAME" id="OBJ_NAME" value='bom'/>
<input type="hidden" value="2" name="PAGE_CONTEXT" id="PAGE_CONTEXT" /> <INPUT type='hidden' name='OBJ_CONTEXT' value='1'/>
<input type="hidden" value="1" name="OBJ_CONTEXT" id="OBJ_CONTEXT" /> <INPUT type='hidden' name='EDIT_FLAG' value='A'/>
<form name="BillOfMaterial"> <INPUT type='hidden' name='DOM_ID' value='{@domID}'/>
<table cellSpacing="0" cellPadding="0" width="100%" border="0"> <INPUT type='hidden' name='DB_ID' value='{@dbID}'/>
<tbody>
<tr>
<td colSpan="4" class="editDisplayColumnClass">
<font size="4">
Bill Of Material
</font>
</td>
</tr>
</tbody>
</table>
<xsl:for-each select="//Detail1"> <xsl:for-each select="//Detail1">
<table class="tableClass tbletopbrd" cellSpacing="0" cellPadding="0" width="100%" border="0">
<TBODY>
<xsl:variable name="dbID"> <xsl:variable name="dbID">
<xsl:value-of select="@dbID" /> <xsl:value-of select="@dbID" />
</xsl:variable> </xsl:variable>
...@@ -112,6 +44,9 @@ ...@@ -112,6 +44,9 @@
<xsl:variable name="bom_code"> <xsl:variable name="bom_code">
<xsl:value-of select="bom_code" /> <xsl:value-of select="bom_code" />
</xsl:variable> </xsl:variable>
<xsl:variable name="type">
<xsl:value-of select="type" />
</xsl:variable>
<xsl:variable name="eff_from"> <xsl:variable name="eff_from">
<xsl:value-of select="eff_from" /> <xsl:value-of select="eff_from" />
</xsl:variable> </xsl:variable>
...@@ -140,99 +75,367 @@ ...@@ -140,99 +75,367 @@
<xsl:value-of select="remarks" /> <xsl:value-of select="remarks" />
</xsl:variable> </xsl:variable>
<TR> <TABLE name="main" id="main" class="tLabel" style="position:relative; width:100%; border-top: #5fdeb2 3px solid;" cellspacing="0" cellpadding="0" >
<td class="editDisplayClass" width="50%"> <tr>
<font face="Times New Roman"> <td colspan="3" >
<font size="2"> <TABLE width="100%" border="0" cellspacing="0" cellpadding="0" class="tblenew">
<strong>Item Code : </strong> <tr>
</font> <td class="tLabelDataD3" width="50%" style="text-align:left;" >
<font size="2"> <font size="2">
<xsl:value-of select="item_code" /> Bill of material
</font> <!--<b><xsl:value-of select="descr" />&#160;
(<xsl:value-of select="bom_code" />)</b>-->
</font> </font>
</td> </td>
<td class="editDisplayClass" style="text-align: right;" width="50%"> <td NOWRAP="TRUE" class="tLabelDataD3" width="50%" style="text-align:right;">
<font face="Times New Roman">
<font size="2"> <font size="2">
<b>Claim Date : </b> Date : <b><xsl:value-of select="chg_date" /></b>
<xsl:value-of select="valid_upto" />
</font> </font>
</font>
</td>
</TR>
<tr>
<td class="editDisplayheaderClass"
style="text-align: center;font-size: 18px;border: 0px;padding-bottom: 0px;" colspan="2">
Bill Of Material No :
<xsl:value-of select="bom_code" />
</td> </td>
</tr> </tr>
<tr> <tr>
<td class="date" style="text-align: center;border: 0px;padding-top: 0px;" width="100%" colspan="2"> <td colspan="3" NOWRAP = "TRUE" class = "tLabelDataD3" >
<xsl:value-of select="eff_from"/>
<div class = "tLabelDataD3" >
<font size="4">
<b><xsl:value-of select="item_descr" /></b>
</font>
</div>
<div class="empInfoDiv" >
<font size="2">
<b>(<xsl:value-of select="item_code" />)</b>
</font>
</div>
</td> </td>
</tr> </tr>
&#160;
<tr> <tr>
<td class="editDisplayClass"> <td class="tLabelDataD3" width="50%" style="text-align:left;" >
<font size="2"> <font size="2">
<strong>Site : </strong> Site :
<xsl:value-of select="site_code" /> <b><xsl:value-of select="site_descr" />&#160;
(<xsl:value-of select="site_code" />)</b>
</font> </font>
</td> </td>
<td class="editDisplayClass" style="text-align: right;"> <td NOWRAP="TRUE" class="tLabelDataD3" width="50%" style="text-align:right;">
<font size="2"> <font size="2">
<strong>Item Series : </strong>&#160;<xsl:value-of select="item_ser" /> 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> </font>
</td> </td>
</tr> </tr>
</TABLE>
</TBODY> </td>
</table> </tr>
<br></br> <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"/>
</td>
</tr>
</xsl:for-each>
<!--<br />
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr> <tr>
<td class="editDisplayheaderClass" width="1%"> <td class="cellttl1">Bill of material : </td>
Bill Of Material Details <td class="tLabelDataD1" NOWRAP="TRUE" style="text-align:left">
<xsl:value-of select="descr" />&#160;
(<xsl:value-of select="bom_code" />)
</td>
</tr>
<tr>
<td class="cellttl1">Unit potency : </td>
<td class="tLabelDataD1" NOWRAP="TRUE" style="text-align:left">
<xsl:value-of select= "unit__potency"/>
</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>
</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> </td>
</tr> </tr>
</table> </table>
</td>
</tr>
</TABLE>
</xsl:for-each>
<br/><br/>
<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"> <td class="editDisplayheaderClass" align="center">
<font face="Times New Roman" size="2">Item Code</font> <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>
<td class="editDisplayheaderClass"> <td class="editDisplayheaderClass">
<font face="Times New Roman" size="2">Description </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">Unit <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> </font>
</td> </td>
<td class="editDisplayheaderClass"> <td class="editDisplayColumnClass" style = "padding: 5px;color:#555;">
<font face="Times New Roman" size="2">Quantity</font> <font face="Times New Roman" size="2">
<xsl:value-of select="item_descr"/>&#160;
(<xsl:value-of select="item_code"/>)
</font>
</td> </td>
<td class="editDisplayheaderClass"> <td class="editDisplayColumnClass" style = "padding: 5px;color:#555;">
<font face="Times New Roman" size="2">Rate <font face="Times New Roman" size="2">
<xsl:value-of select="item_ref"/>
</font> </font>
</td> </td>
<td class="editDisplayheaderClass"> <td class="editDisplayColumnClass" style = "padding: 5px;color:#555;" align="right">
<font face="Times New Roman" size="2">Amount <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> </font>
</td> </td>
</tr> </tr>
</xsl:for-each> </xsl:for-each>
</tbody> </tbody>
</table>--> </table>
</form>
</body> </body>
</html> </html>
</xsl:template> </xsl:template>
......
<?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"/>
<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="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>
<style type="text/css"> <style type="text/css">
.tTitle1
{
text-align:center;
}
.tHeaderD1
{
text-align:right;
}
.tTitleD1
{
text-align:center;
}
.numberData
{
text-align:right;
}
.editDisplayClass
{readOnly:true;border :inset 1;COLOR:BLACK ;BACKGROUND:#FFFFD9; TEXT-ALIGN:left;FONT:
8ptarial; width:auto;};
.editDisplayRemarkClass
{readOnly:true;border :inset 1;COLOR:black ; BACKGROUND:#FFFFD9; TEXT-ALIGN:left;FONT:
7ptarial;};
.editDisplayrightClass
{readOnly:true;border :inset 1;COLOR:black ; TEXT-ALIGN:right;FONT:8ptarial;};
.editDisplayecnterClass
{readOnly:true;border :inset 1;COLOR:white ;
BACKGROUND:#5b7290;TEXT-ALIGN:center;FONT:8ptarial;};
.displayCenterClass
{readOnly:true;border :inset 1;COLOR:#DC143C;
BACKGROUND:#CCCCFF;TEXT-ALIGN:center;FONT:10ptarial;};
.displayCenterClass2
{readOnly:true;border :inset 1;COLOR:#0000CD;
BACKGROUND:#E0FFFF;TEXT-ALIGN:center;FONT:10ptarial;};
.editDisplayColumnClass{readOnly:true;color:#555; TEXT-ALIGN:left;
padding:5px; font-size:16px; font-weight:normal;}
.editDisplayheaderClass{readOnly:true;color:#000; TEXT-ALIGN:left;
padding:5px; font-weight:normal; font-size:14px;
vertical-align:top;}
.editDisplayrightClass{readOnly:true;border :inset 1;COLOR:black ; BACKGROUND:#FFFFD9;TEXT-ALIGN:right;
font-weight:normal;}
.editDisplayecnterClass{readOnly:true; color:#5fdeb2; TEXT-ALIGN:left; font-size:18px; padding:5px 0;
font-weight:normal;}
.editDisplayecnterClass2{readOnly:true;border :inset 1;COLOR:black ; TEXT-ALIGN:center; font-weight:normal;}
.editDisplayClass{background-color: transparent
!important;readOnly:true;color:#555; TEXT-ALIGN:left; padding:5px;
font-weight:normal; font-size:14px;}
.editDisplayecnterClass1 {readOnly:true; color:#5fdeb2; TEXT-ALIGN:left; font-size:16px;
padding:10px 0 0 0;}
.editDisplayecnterClass3 {readOnly:true; color:#5fdeb2; TEXT-ALIGN:left; font-size:16px;
padding:10px 0 0 0;}
.tableClass {margin-bottom:10px; width:100%; background-color:#FFF; .tableClass {margin-bottom:10px; width:100%; background-color:#FFF;
/*padding:10px;*/ border-left: 1px solid #d9d9d9; border-top: 1px /*padding:10px;*/ border-left: 1px solid #d9d9d9; border-top: 1px
solid #d9d9d9;} solid #d9d9d9;}
...@@ -68,41 +23,18 @@ ...@@ -68,41 +23,18 @@
font-size: 11px; font-size: 11px;
font-weight: normal; font-weight: normal;
} }
.tableClass1 {
margin-bottom: 5px;
width: 100%;
background-color: #FFF;
border-LEFT: 1px solid #d9d9d9;
border-top: 1px solid #d9d9d9;
}
.tableClass1 td {
border-bottom: 1px solid #d9d9d9;
border-right: 1px solid #d9d9d9;
font-size: 14px;
line-height: 18px;
padding: 5px;
}
</style> </style>
</head> </head>
<body> <body>
<input type="hidden" value="bom" name="OBJ_NAME" id="OBJ_NAME" /> <INPUT type="hidden" name="OBJ_NAME" id="OBJ_NAME" value='bom'/>
<input type="hidden" value="2" name="PAGE_CONTEXT" id="PAGE_CONTEXT" /> <INPUT type='hidden' name='OBJ_CONTEXT' value='1'/>
<input type="hidden" value="1" name="OBJ_CONTEXT" id="OBJ_CONTEXT" /> <INPUT type='hidden' name='EDIT_FLAG' value='A'/>
<form name="BillOfMaterial"> <INPUT type='hidden' name='DOM_ID' value='{@domID}'/>
<table cellSpacing="0" cellPadding="0" width="100%" border="0"> <INPUT type='hidden' name='DB_ID' value='{@dbID}'/>
<tbody>
<tr>
<td colSpan="4" class="editDisplayColumnClass">
<font size="4">
Bill Of Material
</font>
</td>
</tr>
</tbody>
</table>
<xsl:for-each select="//Detail1"> <xsl:for-each select="//Detail1">
<table class="tableClass tbletopbrd" cellSpacing="0" cellPadding="0" width="100%" border="0">
<TBODY>
<xsl:variable name="dbID"> <xsl:variable name="dbID">
<xsl:value-of select="@dbID" /> <xsl:value-of select="@dbID" />
</xsl:variable> </xsl:variable>
...@@ -112,6 +44,9 @@ ...@@ -112,6 +44,9 @@
<xsl:variable name="bom_code"> <xsl:variable name="bom_code">
<xsl:value-of select="bom_code" /> <xsl:value-of select="bom_code" />
</xsl:variable> </xsl:variable>
<xsl:variable name="type">
<xsl:value-of select="type" />
</xsl:variable>
<xsl:variable name="eff_from"> <xsl:variable name="eff_from">
<xsl:value-of select="eff_from" /> <xsl:value-of select="eff_from" />
</xsl:variable> </xsl:variable>
...@@ -140,99 +75,367 @@ ...@@ -140,99 +75,367 @@
<xsl:value-of select="remarks" /> <xsl:value-of select="remarks" />
</xsl:variable> </xsl:variable>
<TR> <TABLE name="main" id="main" class="tLabel" style="position:relative; width:100%; border-top: #5fdeb2 3px solid;" cellspacing="0" cellpadding="0" >
<td class="editDisplayClass" width="50%"> <tr>
<font face="Times New Roman"> <td colspan="3" >
<font size="2"> <TABLE width="100%" border="0" cellspacing="0" cellpadding="0" class="tblenew">
<strong>Item Code : </strong> <tr>
</font> <td class="tLabelDataD3" width="50%" style="text-align:left;" >
<font size="2"> <font size="2">
<xsl:value-of select="item_code" /> Bill of material
</font> <!--<b><xsl:value-of select="descr" />&#160;
(<xsl:value-of select="bom_code" />)</b>-->
</font> </font>
</td> </td>
<td class="editDisplayClass" style="text-align: right;" width="50%"> <td NOWRAP="TRUE" class="tLabelDataD3" width="50%" style="text-align:right;">
<font face="Times New Roman">
<font size="2"> <font size="2">
<b>Claim Date : </b> Date : <b><xsl:value-of select="chg_date" /></b>
<xsl:value-of select="valid_upto" />
</font> </font>
</font>
</td>
</TR>
<tr>
<td class="editDisplayheaderClass"
style="text-align: center;font-size: 18px;border: 0px;padding-bottom: 0px;" colspan="2">
Bill Of Material No :
<xsl:value-of select="bom_code" />
</td> </td>
</tr> </tr>
<tr> <tr>
<td class="date" style="text-align: center;border: 0px;padding-top: 0px;" width="100%" colspan="2"> <td colspan="3" NOWRAP = "TRUE" class = "tLabelDataD3" >
<xsl:value-of select="eff_from"/>
<div class = "tLabelDataD3" >
<font size="4">
<b><xsl:value-of select="item_descr" /></b>
</font>
</div>
<div class="empInfoDiv" >
<font size="2">
<b>(<xsl:value-of select="item_code" />)</b>
</font>
</div>
</td> </td>
</tr> </tr>
&#160;
<tr> <tr>
<td class="editDisplayClass"> <td class="tLabelDataD3" width="50%" style="text-align:left;" >
<font size="2"> <font size="2">
<strong>Site : </strong> Site :
<xsl:value-of select="site_code" /> <b><xsl:value-of select="site_descr" />&#160;
(<xsl:value-of select="site_code" />)</b>
</font> </font>
</td> </td>
<td class="editDisplayClass" style="text-align: right;"> <td NOWRAP="TRUE" class="tLabelDataD3" width="50%" style="text-align:right;">
<font size="2"> <font size="2">
<strong>Item Series : </strong>&#160;<xsl:value-of select="item_ser" /> 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> </font>
</td> </td>
</tr> </tr>
</TABLE>
</TBODY> </td>
</table> </tr>
<br></br> <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" style="text-align:left">
<xsl:value-of select= "batch_qty"/>
</td>
</tr>
</xsl:for-each>
<!--<br />
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr> <tr>
<td class="editDisplayheaderClass" width="1%"> <td class="cellttl1">Bill of material : </td>
Bill Of Material Details <td class="tLabelDataD1" style="text-align:left">
<xsl:value-of select="descr" />&#160;
(<xsl:value-of select="bom_code" />)
</td>
</tr>
<tr>
<td class="cellttl1">Unit potency : </td>
<td class="tLabelDataD1" style="text-align:left">
<xsl:value-of select= "unit__potency"/>
</td>
</tr>
<tr>
<td class="cellttl1">Minimum batch quantity : </td>
<td class="tLabelDataD1" style="text-align:left">
<xsl:value-of select= "min_batch_qty"/>
</td>
</tr>
<tr>
<td class="cellttl1">Maximum batch quantity : </td>
<td class="tLabelDataD1" style="text-align:left">
<xsl:value-of select= "max_batch_qty"/>
</td> </td>
</tr> </tr>
</table> </table>
</td>
</tr>
</TABLE>
</xsl:for-each>
<br/><br/>
<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"> <td class="editDisplayheaderClass" align="center">
<font face="Times New Roman" size="2">Item Code</font> <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>
<td class="editDisplayheaderClass"> <td class="editDisplayheaderClass">
<font face="Times New Roman" size="2">Description </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">Unit <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> </font>
</td> </td>
<td class="editDisplayheaderClass"> <td class="editDisplayColumnClass" style = "padding: 5px;color:#555;">
<font face="Times New Roman" size="2">Quantity</font> <font face="Times New Roman" size="2">
<xsl:value-of select="item_descr"/>&#160;
(<xsl:value-of select="item_code"/>)
</font>
</td> </td>
<td class="editDisplayheaderClass"> <td class="editDisplayColumnClass" style = "padding: 5px;color:#555;">
<font face="Times New Roman" size="2">Rate <font face="Times New Roman" size="2">
<xsl:value-of select="item_ref"/>
</font> </font>
</td> </td>
<td class="editDisplayheaderClass"> <td class="editDisplayColumnClass" style = "padding: 5px;color:#555;" align="right">
<font face="Times New Roman" size="2">Amount <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> </font>
</td> </td>
</tr> </tr>
</xsl:for-each> </xsl:for-each>
</tbody> </tbody>
</table>--> </table>
</form>
</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