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

Working with transSave acitivity

parent ef525d68
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html"/>
<!-- Root -->
<xsl:template match="/">
<html>
<head>
<xsl:output method="html"/>
<!-- Root -->
<xsl:template match="/">
<html>
<head>
<LINK type="text/css" rel="stylesheet" href="/ibase/css/display_budget.css"/>
<LINK type="text/css" rel="stylesheet" href="/ibase/css/workflowsign.css"/>
</head>
<body bgcolor="#EEEEEE">
</head>
<body bgcolor="#EEEEEE">
<div class="allDisplayDiv" style="background:#efefef; padding:1px;">
<xsl:apply-templates select="//Detail1"/>
</div>
</body>
</html>
</xsl:template>
<!-- ========================= -->
<!-- RFQ HEADER : Detail1 -->
<!-- ========================= -->
<xsl:template match="Detail1">
</body>
</html>
</xsl:template>
<!-- ========================= -->
<!-- RFQ HEADER : Detail1 -->
<!-- ========================= -->
<xsl:template match="Detail1">
<!-- ========================= -->
<!-- Variables -->
<!-- ========================= -->
......@@ -38,76 +33,89 @@
<xsl:variable name="valid_upto" select="VALID_UPTO"/>
<xsl:variable name="sales_pers" select="SALES_PERS"/>
<xsl:variable name="confirmed" select="CONFIRMED"/>
<!-- ========================= -->
<!-- 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
</div>
<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>
<span class="viewData"><xsl:value-of select="tran_id"/></span>
<span class="viewData">
<xsl:value-of select="tran_id"/>
</span>
</div>
<div class="tdDiv" style="width:50%; margin-bottom:6px;">
<span class="tLabelR" style="display:inline-block; width:140px;">RFQ Date :</span>
<span class="viewData"><xsl:value-of select="tran_date"/></span>
<span class="viewData">
<xsl:value-of select="tran_date"/>
</span>
</div>
<div class="tdDiv" style="width:50%; margin-bottom:6px;">
<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">
<xsl:value-of select="quot_type"/>
</span>
</div>
<div class="tdDiv" style="width:50%; margin-bottom:6px;">
<span class="tLabelR" style="display:inline-block; width:140px;">Customer Code :</span>
<span class="viewData"><xsl:value-of select="cust_code"/></span>
<span class="viewData">
<xsl:value-of select="cust_code"/>
</span>
</div>
<div class="tdDiv" style="width:50%; margin-bottom:6px;">
<span class="tLabelR" style="display:inline-block; width:140px;">Contact Person :</span>
<span class="viewData"><xsl:value-of select="contact_pers"/></span>
<span class="viewData">
<xsl:value-of select="contact_pers"/>
</span>
</div>
<div class="tdDiv" style="width:50%; margin-bottom:6px;">
<span class="tLabelR" style="display:inline-block; width:140px;">Item Series :</span>
<span class="viewData"><xsl:value-of select="item_ser"/></span>
<span class="viewData">
<input class="tInputStyleR"
type="text"
id="Detail1.{normalize-space(@dbID)}.item_ser"
name="Detail1.{normalize-space(@dbID)}.item_ser"
value="{normalize-space(item_ser)}"
ISCHANGED="true"
SRVCALLONCHANGE="true"
isServerCallOnChange="true"
size="10"
title="Item Series"
style="vertical-align: middle; margin-left: 20px; border:0px; background-color: #e8f0f9; outline: none;" />
</span>
</div>
<div class="tdDiv" style="width:50%; margin-bottom:6px;">
<span class="tLabelR" style="display:inline-block; width:140px;">Required Date :</span>
<span class="viewData"><xsl:value-of select="req_date"/></span>
<span class="viewData">
<xsl:value-of select="req_date"/>
</span>
</div>
<div class="tdDiv" style="width:50%; margin-bottom:6px;">
<span class="tLabelR" style="display:inline-block; width:140px;">Valid Upto :</span>
<span class="viewData"><xsl:value-of select="valid_upto"/></span>
<span class="viewData">
<xsl:value-of select="valid_upto"/>
</span>
</div>
<div class="tdDiv" style="width:50%; margin-bottom:6px;">
<span class="tLabelR" style="display:inline-block; width:140px;">Sales Person :</span>
<span class="viewData"><xsl:value-of select="sales_pers"/></span>
<span class="viewData">
<xsl:value-of select="sales_pers"/>
</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>
<span class="viewData">
<xsl:value-of select="confirmed"/>
</span>
</div>
</div>
</div>
</div>
<!-- ========================= -->
<!-- Item Details : Detail2 -->
<!-- ========================= -->
<table width="100%" border="0">
<tr>
<td class="tTitleR" style="background:#fff; border:1px solid #ccc;">
......@@ -115,44 +123,83 @@
</td>
</tr>
</table>
<div style="max-height:400px; overflow:auto;">
<table width="100%" border="1" cellpadding="5" cellspacing="0"
style="border-collapse:collapse; background:#f9f9f9;">
<tr>
<th class="tLabel">Line No</th>
<th class="tLabel">Item Code</th>
<th class="tLabel">Qty</th>
<th class="tLabel">Unit</th>
<th class="tLabel">Pack</th>
<th class="tLabel">Quoted Rate</th>
<th class="tLabel">Special Rate</th>
<th class="tLabel">Approved Rate</th>
<th class="tLabel">Near Expiry</th>
<th class="tLabel">Remarks</th>
</tr>
<xsl:for-each select="//Detail2">
<xsl:variable name="dbID">
<xsl:value-of select="@dbID" />
</xsl:variable>
<xsl:variable name="domID">
<xsl:value-of select="@domID" />
</xsl:variable>
<xsl:variable name="rate_quot">
<xsl:value-of select="rate_quot" />
</xsl:variable>
<tr>
<td><xsl:value-of select="line_no"/></td>
<td><xsl:value-of select="item_code"/></td>
<td style="text-align:right;"><xsl:value-of select="qty_quot"/></td>
<td><xsl:value-of select="unit"/></td>
<td><xsl:value-of select="pack_code"/></td>
<td style="text-align:right;"><xsl:value-of select="rate_quot"/></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>
<td>
<xsl:value-of select="line_no"/>
</td>
<td>
<xsl:value-of select="item_code"/>
</td>
<td style="text-align:right;">
<xsl:value-of select="qty_quot"/>
</td>
<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: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