Commit 409f46cc authored by Ajit Deshmukh's avatar Ajit Deshmukh

Working with transSave acitivity

parent ef525d68
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" <xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html"/>
<xsl:output method="html"/> <!-- Root -->
<xsl:template match="/">
<!-- Root --> <html>
<xsl:template match="/"> <head>
<html> <LINK type="text/css" rel="stylesheet" href="/ibase/css/display_budget.css"/>
<head> <LINK type="text/css" rel="stylesheet" href="/ibase/css/workflowsign.css"/>
<LINK type="text/css" rel="stylesheet" href="/ibase/css/display_budget.css"/> </head>
<LINK type="text/css" rel="stylesheet" href="/ibase/css/workflowsign.css"/> <body bgcolor="#EEEEEE">
</head> <div class="allDisplayDiv" style="background:#efefef; padding:1px;">
<xsl:apply-templates select="//Detail1"/>
<body bgcolor="#EEEEEE"> </div>
<div class="allDisplayDiv" style="background:#efefef; padding:1px;"> </body>
<xsl:apply-templates select="//Detail1"/> </html>
</div> </xsl:template>
</body> <!-- ========================= -->
</html> <!-- RFQ HEADER : Detail1 -->
</xsl:template> <!-- ========================= -->
<xsl:template match="Detail1">
<!-- ========================= --> <!-- ========================= -->
<!-- RFQ HEADER : Detail1 --> <!-- Variables -->
<!-- ========================= --> <!-- ========================= -->
<xsl:template match="Detail1"> <xsl:variable name="tran_id" select="TRAN_ID"/>
<xsl:variable name="tran_date" select="TRAN_DATE"/>
<!-- ========================= --> <xsl:variable name="quot_type" select="QUOT_TYPE"/>
<!-- Variables --> <xsl:variable name="cust_code" select="CUST_CODE"/>
<!-- ========================= --> <xsl:variable name="contact_pers" select="CONTACT_PERS"/>
<xsl:variable name="tran_id" select="TRAN_ID"/> <xsl:variable name="item_ser" select="ITEM_SER"/>
<xsl:variable name="tran_date" select="TRAN_DATE"/> <xsl:variable name="req_date" select="REQ_DATE"/>
<xsl:variable name="quot_type" select="QUOT_TYPE"/> <xsl:variable name="valid_upto" select="VALID_UPTO"/>
<xsl:variable name="cust_code" select="CUST_CODE"/> <xsl:variable name="sales_pers" select="SALES_PERS"/>
<xsl:variable name="contact_pers" select="CONTACT_PERS"/> <xsl:variable name="confirmed" select="CONFIRMED"/>
<xsl:variable name="item_ser" select="ITEM_SER"/> <!-- ========================= -->
<xsl:variable name="req_date" select="REQ_DATE"/> <!-- Header Section -->
<xsl:variable name="valid_upto" select="VALID_UPTO"/> <!-- ========================= -->
<xsl:variable name="sales_pers" select="SALES_PERS"/> <div style="margin:8px; background:#fff; border:1px solid #dcdcdc; border-radius:6px; padding:10px;">
<xsl:variable name="confirmed" select="CONFIRMED"/> <div class="tTitleR" style="margin-bottom:10px; font-weight:bold;">
<!-- ========================= -->
<!-- Header Section -->
<!-- ========================= -->
<div style="margin:8px; background:#fff; border:1px solid #dcdcdc; border-radius:6px; padding:10px;">
<div class="tTitleR" style="margin-bottom:10px; font-weight:bold;">
REQUEST FOR QUOTATION REQUEST FOR QUOTATION
</div> </div>
<div class="headDiv" style="display:flex; flex-wrap:wrap;">
<div class="headDiv" style="display:flex; flex-wrap:wrap;"> <div class="tdDiv" style="width:50%; margin-bottom:6px;">
<span class="tLabelR" style="display:inline-block; width:140px;">RFQ No :</span>
<div class="tdDiv" style="width:50%; margin-bottom:6px;"> <span class="viewData">
<span class="tLabelR" style="display:inline-block; width:140px;">RFQ No :</span> <xsl:value-of select="tran_id"/>
<span class="viewData"><xsl:value-of select="tran_id"/></span> </span>
</div> </div>
<div class="tdDiv" style="width:50%; margin-bottom:6px;">
<div class="tdDiv" style="width:50%; margin-bottom:6px;"> <span class="tLabelR" style="display:inline-block; width:140px;">RFQ Date :</span>
<span class="tLabelR" style="display:inline-block; width:140px;">RFQ Date :</span> <span class="viewData">
<span class="viewData"><xsl:value-of select="tran_date"/></span> <xsl:value-of select="tran_date"/>
</div> </span>
</div>
<div class="tdDiv" style="width:50%; margin-bottom:6px;"> <div class="tdDiv" style="width:50%; margin-bottom:6px;">
<span class="tLabelR" style="display:inline-block; width:140px;">Quotation Type :</span> <span class="tLabelR" style="display:inline-block; width:140px;">Quotation Type :</span>
<span class="viewData"><xsl:value-of select="quot_type"/></span> <span class="viewData">
</div> <xsl:value-of select="quot_type"/>
</span>
<div class="tdDiv" style="width:50%; margin-bottom:6px;"> </div>
<span class="tLabelR" style="display:inline-block; width:140px;">Customer Code :</span> <div class="tdDiv" style="width:50%; margin-bottom:6px;">
<span class="viewData"><xsl:value-of select="cust_code"/></span> <span class="tLabelR" style="display:inline-block; width:140px;">Customer Code :</span>
</div> <span class="viewData">
<xsl:value-of select="cust_code"/>
<div class="tdDiv" style="width:50%; margin-bottom:6px;"> </span>
<span class="tLabelR" style="display:inline-block; width:140px;">Contact Person :</span> </div>
<span class="viewData"><xsl:value-of select="contact_pers"/></span> <div class="tdDiv" style="width:50%; margin-bottom:6px;">
</div> <span class="tLabelR" style="display:inline-block; width:140px;">Contact Person :</span>
<span class="viewData">
<div class="tdDiv" style="width:50%; margin-bottom:6px;"> <xsl:value-of select="contact_pers"/>
<span class="tLabelR" style="display:inline-block; width:140px;">Item Series :</span> </span>
<span class="viewData"><xsl:value-of select="item_ser"/></span> </div>
</div> <div class="tdDiv" style="width:50%; margin-bottom:6px;">
<span class="tLabelR" style="display:inline-block; width:140px;">Item Series :</span>
<div class="tdDiv" style="width:50%; margin-bottom:6px;"> <span class="viewData">
<span class="tLabelR" style="display:inline-block; width:140px;">Required Date :</span> <input class="tInputStyleR"
<span class="viewData"><xsl:value-of select="req_date"/></span> type="text"
</div> id="Detail1.{normalize-space(@dbID)}.item_ser"
name="Detail1.{normalize-space(@dbID)}.item_ser"
<div class="tdDiv" style="width:50%; margin-bottom:6px;"> value="{normalize-space(item_ser)}"
<span class="tLabelR" style="display:inline-block; width:140px;">Valid Upto :</span> ISCHANGED="true"
<span class="viewData"><xsl:value-of select="valid_upto"/></span> SRVCALLONCHANGE="true"
</div> isServerCallOnChange="true"
size="10"
<div class="tdDiv" style="width:50%; margin-bottom:6px;"> title="Item Series"
<span class="tLabelR" style="display:inline-block; width:140px;">Sales Person :</span> style="vertical-align: middle; margin-left: 20px; border:0px; background-color: #e8f0f9; outline: none;" />
<span class="viewData"><xsl:value-of select="sales_pers"/></span> </span>
</div> </div>
<div class="tdDiv" style="width:50%; margin-bottom:6px;">
<div class="tdDiv" style="width:50%; margin-bottom:6px;"> <span class="tLabelR" style="display:inline-block; width:140px;">Required Date :</span>
<span class="tLabelR" style="display:inline-block; width:140px;">Confirmed :</span> <span class="viewData">
<span class="viewData"><xsl:value-of select="confirmed"/></span> <xsl:value-of select="req_date"/>
</div> </span>
</div>
</div> <div class="tdDiv" style="width:50%; margin-bottom:6px;">
</div> <span class="tLabelR" style="display:inline-block; width:140px;">Valid Upto :</span>
<span class="viewData">
<xsl:value-of select="valid_upto"/>
<!-- ========================= --> </span>
<!-- Item Details : Detail2 --> </div>
<!-- ========================= --> <div class="tdDiv" style="width:50%; margin-bottom:6px;">
<span class="tLabelR" style="display:inline-block; width:140px;">Sales Person :</span>
<table width="100%" border="0"> <span class="viewData">
<tr> <xsl:value-of select="sales_pers"/>
<td class="tTitleR" style="background:#fff; border:1px solid #ccc;"> </span>
</div>
<div class="tdDiv" style="width:50%; margin-bottom:6px;">
<span class="tLabelR" style="display:inline-block; width:140px;">Confirmed :</span>
<span class="viewData">
<xsl:value-of select="confirmed"/>
</span>
</div>
</div>
</div>
<!-- ========================= -->
<!-- Item Details : Detail2 -->
<!-- ========================= -->
<table width="100%" border="0">
<tr>
<td class="tTitleR" style="background:#fff; border:1px solid #ccc;">
Item Details Item Details
</td> </td>
</tr> </tr>
</table> </table>
<div style="max-height:400px; overflow:auto;">
<div style="max-height:400px; overflow:auto;"> <table width="100%" border="1" cellpadding="5" cellspacing="0"
<table width="100%" border="1" cellpadding="5" cellspacing="0"
style="border-collapse:collapse; background:#f9f9f9;"> style="border-collapse:collapse; background:#f9f9f9;">
<tr>
<tr> <th class="tLabel">Line No</th>
<th class="tLabel">Line No</th> <th class="tLabel">Item Code</th>
<th class="tLabel">Item Code</th> <th class="tLabel">Qty</th>
<th class="tLabel">Qty</th> <th class="tLabel">Unit</th>
<th class="tLabel">Unit</th> <th class="tLabel">Pack</th>
<th class="tLabel">Pack</th> <th class="tLabel">Special Rate</th>
<th class="tLabel">Quoted Rate</th> <th class="tLabel">Approved Rate</th>
<th class="tLabel">Approved Rate</th> <th class="tLabel">Near Expiry</th>
<th class="tLabel">Near Expiry</th> <th class="tLabel">Remarks</th>
<th class="tLabel">Remarks</th> </tr>
</tr> <xsl:for-each select="//Detail2">
<xsl:variable name="dbID">
<xsl:for-each select="//Detail2"> <xsl:value-of select="@dbID" />
<tr> </xsl:variable>
<td><xsl:value-of select="line_no"/></td> <xsl:variable name="domID">
<td><xsl:value-of select="item_code"/></td> <xsl:value-of select="@domID" />
<td style="text-align:right;"><xsl:value-of select="qty_quot"/></td> </xsl:variable>
<td><xsl:value-of select="unit"/></td> <xsl:variable name="rate_quot">
<td><xsl:value-of select="pack_code"/></td> <xsl:value-of select="rate_quot" />
<td style="text-align:right;"><xsl:value-of select="rate_quot"/></td> </xsl:variable>
<td style="text-align:right;"><xsl:value-of select="rate_apprv"/></td> <tr>
<td><xsl:value-of select="near_expiry"/></td> <td>
<td><xsl:value-of select="remarks"/></td> <xsl:value-of select="line_no"/>
</tr> </td>
</xsl:for-each> <td>
<xsl:value-of select="item_code"/>
</table> </td>
<td style="text-align:right;">
</div> <xsl:value-of select="qty_quot"/>
</td>
</xsl:template> <td>
<xsl:value-of select="unit"/>
</td>
<td>
<xsl:value-of select="pack_code"/>
</td>
<td style="text-align:right;">
<div class="tdDiv" style="width:50%; margin-bottom:6px;">
<span class="viewData">
<input class="tInputStyleR"
id="Detail2.{normalize-space(@domID)}.rate_quot"
name="Detail2.{normalize-space(@domID)}.rate_quot"
POPUPEXISTS="true"
POPUPPARAMETERS=""
ISCHANGED="true"
value="{$rate_quot}"
isServerCallOnChange="true"
onfocus="gotFocus(this)"
onblur="gotBlur(this)"
onkeyup="return autoCaps(this)"
onkeydown="return onKeyDownFun(this,event)"
ispopup="true"
rows="4"
cols="40"
title="Response"
maxlength="1000"
style="resize:vertical; overflow:auto;" />
</span>
</div>
</td>
<td style="text-align:right;">
<xsl:value-of select="rate_apprv"/>
</td>
<td>
<xsl:value-of select="near_expiry"/>
</td>
<td>
<xsl:value-of select="remarks"/>
</td>
</tr>
</xsl:for-each>
</table>
</div>
</xsl:template>
</xsl:stylesheet> </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