Commit 2826bb63 authored by sgadve's avatar sgadve

updated xsl for the scheme approval workflow

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@195180 ce508802-f39f-4f6c-b175-0d175dae99d5
parent b83d5459
<?xml version='1.0' encoding='UTF-8'?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<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/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>-->
<link type="text/css" rel="stylesheet" href="/home/base/Jaff/GTPL_WORKFLOW/css/workflowsign.css"></link>
<link type="text/css" rel="stylesheet" href="/home/base/Jaff/GTPL_WORKFLOW/css/expandy.css"></link>
<link type="text/css" rel="stylesheet" href="/home/base/Jaff/GTPL_WORKFLOW/css/fonts.css"/>
<link type="text/css" rel="stylesheet" href="/home/base/Jaff/GTPL_WORKFLOW/css/hr_portal1.css"></link>
<style type="text/css">
.tableClass {margin-bottom:10px; width:100%; background-color:#FFF;
/*padding:10px;*/ border-left: 1px solid #d9d9d9; border-top: 1px
solid #d9d9d9;}
.tableClass td {border-bottom: 1px solid #d9d9d9; border-right: 1px solid
#d9d9d9; font-size:14px;}
.tbletopbrd{border-top:2px solid #5fdeb2;}
.date {
color: #9d9ca2;
font-size: 11px;
font-weight: normal;
}
td {
padding: 5px;
}
</style>
</head>
<body>
<INPUT type="hidden" name="OBJ_NAME" id="OBJ_NAME" value='scheme_apprv'/>
<INPUT type='hidden' name='OBJ_CONTEXT' value='1'/>
<INPUT type='hidden' name='EDIT_FLAG' value='A'/>
<INPUT type='hidden' name='DOM_ID' value='{@domID}'/>
<INPUT type='hidden' name='DB_ID' value='{@dbID}'/>
<xsl:for-each select="//Detail1">
<xsl:variable name="dbID">
<xsl:value-of select="@dbID" />
</xsl:variable>
<xsl:variable name="wf_status">
<xsl:value-of select="wf_status" />
</xsl:variable>
<xsl:variable name="tran_id">
<xsl:value-of select="tran_id" />
</xsl:variable>
<xsl:variable name="tran_date">
<xsl:value-of select="tran_date" />
</xsl:variable>
<xsl:variable name="site_code">
<xsl:value-of select="site_code" />
</xsl:variable>
<xsl:variable name="cust_code">
<xsl:value-of select="cust_code" />
</xsl:variable>
<xsl:variable name="sales_pers">
<xsl:value-of select="sales_pers" />
</xsl:variable>
<xsl:variable name="cust_code__bill">
<xsl:value-of select="cust_code__bill" />
</xsl:variable>
<xsl:variable name="scheme_code">
<xsl:value-of select="scheme_code" />
</xsl:variable>
<xsl:variable name="amount">
<xsl:value-of select="amount" />
</xsl:variable>
<!--<xsl:variable name="work_order">
<xsl:value-of select="work_order" />
</xsl:variable>-->
<xsl:variable name="remarks">
<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" >
<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">
Tran ID:
<b><xsl:value-of select="tran_id" /></b>
</font>
</td>
<td class="tLabelDataD3" width="50%" style="text-align:right;">
<font size="2">
Date:
<b><xsl:value-of select="tran_date" /></b>
</font>
</td>
</tr>
<!-- <tr>
<td class="tLabelDataD3" width="50%" style="text-align:left;" >
<font size="2">
Site:
<b><xsl:value-of select="site_descr" />&#160;
(<xsl:value-of select="site_code__ori" />)</b>
</font>
</td>
<td class="tLabelDataD3" width="50%" style="text-align:right;">
<font size="2">
Item series: <b><xsl:value-of select="item_ser" /></b>
</font>
</td>
</tr>-->
</TABLE>
</td>
</tr>
<!--<tr>
<td colspan="3">
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="AML-NOT-DefN" style='border:1px solid lightgrey;' >
<tr>
<td class="cellttl1">Reference: </td>
<td class="tLabelDataD1" style="text-align:left">
<font size="2">
<xsl:value-of select="ref_no" />
</font>
</td>
</tr>
<tr>
<td class="cellttl1">Delivery to: </td>
<td class="tLabelDataD1" style="text-align:left">
<font size="2">
<xsl:value-of select="site_code__del"/>
</font>
</td>
</tr>
<tr>
<td class="cellttl1">Bill to: </td>
<td class="tLabelDataD1" style="text-align:left">
<font size="2">
<xsl:value-of select="site_code__bil"/>
</font>
</td>
</tr>
<tr>
<td class="cellttl1">Project: </td>
<td class="tLabelDataD1" style="text-align:left">
<font size="2">
<xsl:value-of select="proj_code" />
</font>
</td>
</tr>
<tr>
<td class="cellttl1">Department: </td>
<td class="tLabelDataD1" style="text-align:left">
<font size="2">
<xsl:value-of select="department_descr" />&#160;
(<xsl:value-of select="dept_code" />)
</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>
</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>
</tr>
</table>
</td>
</tr>-->
</TABLE>
</xsl:for-each>
<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">Site</font>
</td>
<td class="editDisplayheaderClass">
<font face="Times New Roman" size="2">Customer</font>
</td>
<td class="editDisplayheaderClass">
<font face="Times New Roman" size="2">Sales Person</font>
</td>
<td class="editDisplayheaderClass">
<font face="Times New Roman" size="2">Stockiest</font>
</td>
<td class="editDisplayheaderClass">
<font face="Times New Roman" size="2">Scheme</font>
</td>
<td class="editDisplayheaderClass">
<font face="Times New Roman" size="2">Amount</font>
</td>
<!--<td class="editDisplayheaderClass">
<font face="Times New Roman" size="2">Expected <br/>consumption date</font>
</td>-->
</tr>
<tr>
<td>
<xsl:value-of select="site_code" />
</td>
<td>
<xsl:value-of select="cust_name" />
(<xsl:value-of select="cust_code" />)
</td>
<td>
<xsl:value-of select="sp_name" />
(<xsl:value-of select="sales_pers" />)
</td>
<td>
<xsl:value-of select="customer_cust_name" />
(<xsl:value-of select="cust_code__bill" />)
</td>
<td>
<xsl:value-of select="scheme_code" />
</td>
<td>
<xsl:value-of select="amount" />
</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>
<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:for-each select="//Detail2">
<xsl:value-of select="item_descr" />&#160;
(<xsl:value-of select="item_code" />)
</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:value-of select="unit" />
</xsl:for-each>
</font>
</td>
<td class="editDisplayColumnClass" style="padding: 5px;color:#555;" align="right">
<font face="Times New Roman" size="2">
<xsl:for-each select="//Detail2">
<xsl:value-of select="quantity" />
</xsl:for-each>
</font>
</td>
<td class="editDisplayColumnClass" style="padding: 5px;color:#555;" align="right">
<font face="Times New Roman" size="2">
<xsl:for-each select="//Detail2">
<xsl:value-of select="purc_rate" />
</xsl:for-each>
</font>
</td>
<td class="editDisplayColumnClass" style="padding: 5px;color:#555;" align="right">
<font face="Times New Roman" size="2">
<xsl:for-each select="//Detail2">
<xsl:value-of select="max_rate" />
</xsl:for-each>
</font>
</td>
<td class="editDisplayColumnClass" style="padding: 5px;color:#555;" align="right">
<font face="Times New Roman" size="2">
<xsl:for-each select="//Detail2">
<xsl:value-of select="last_pur_rate" />
</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:value-of select="req_date" />
</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:value-of select="exp_cons_date" />
</xsl:for-each>
</font>
</td>
</tr>
</xsl:for-each>-->
</tbody>
</table>
</div>
</body>
</html>
</xsl:template>
</xsl:stylesheet>
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