Commit b9c0d6dc authored by steurwadkar's avatar steurwadkar

F17ABAS001 GST API calling web part commit


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@106109 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 2d93f289
......@@ -12,7 +12,7 @@
background-color: white;
}
.detailPage-input-Container{
height : calc(100% - 90px);
height : calc(100% - 100px);
width : 98%;
border : 1px solid lightgray !important;
border-top: 2px solid #7bc6ff !important;
......@@ -94,7 +94,165 @@
.popHelpIconDiv a img{
vertical-align:middle;
}
#titleText
{
#titleText{
display: inline;
}
.show{
margin-bottom: 5px;
border-bottom:none;
padding-top:2px;
}
button.accordion1 {
background-color: white;
border:1px solid #ddd !important;
color: #000;
cursor: pointer;
padding: 6px;
width: 100%;
border: none;
text-align: left;
outline: none;
font-size: 16px !important;
transition: 0.6s;
line-height: 20px;
display: inline-block;
}
button.accordion1.active, button.accordion1:hover {
border : 1px solid #ddd !important;
}
button.accordion1.activeAccor{
background-color: #fdf5ce;
}
button.accordion1.active{
border-bottom : none !important;
}
div.panel1 {
padding:0px;
border:1px solid #ddd !important;
background-color: white;
max-height: 0;
overflow: hidden;
transition: 0.4s ease-in-out;
opacity: 0;
}
div.panel1.show {
border-top:none !important;
opacity: 1;
max-height: 2000px;
}
button.accordion2 {
background-color: white;
border:0px solid #ddd !important;
border-top:1px solid #ddd !important;
border-bottom:0px solid #ddd !important;
border-radius:0px;
padding: 4px;
color: #000;
cursor: pointer;
width: 100%;
border: none;
text-align: left;
outline: none;
font-size: 15px !important;
transition: 0.6s;
line-height: 24px;
}
button.accordion2.active, button.accordion2:hover {
border-top:1px solid #ddd !important;
}
button.accordion2.activeAccor{
border-top:1px solid #ddd !important;
background-color: #fdf5ce;
}
button.accordion2.active{
border-bottom : none !important;
}
div.panel2 {
padding:0px;
border:1px solid #ddd !important;
background-color: white;
max-height: 0;
overflow: hidden;
transition: 0.4s ease-in-out;
opacity: 0;
}
div.panel2.show {
border:none !important;
opacity: 1;
max-height: 2000px;
margin-bottom:0px;
}
button.accordion3 {
background-color: white;
border:0px solid #ddd !important;
border-top:1px solid #ddd !important;
border-bottom:0px solid #ddd !important;
border-radius:0px;
padding: 4px;
color: #000;
cursor: pointer;
width: 100%;
border: none;
text-align: left;
outline: none;
font-size: 13px !important;
transition: 0.6s;
line-height: 20px;
}
button.accordion3.active, button.accordion3:hover {
border-top:1px solid #ddd !important;
}
button.accordion3.activeAccor{
border-top:1px solid #ddd !important;
}
button.accordion3.active{
border-bottom : none !important;
background-color: #eee;
}
div.panel3 {
padding:0px;
border:1px solid #ddd !important;
background-color: white;
max-height: 0;
overflow: hidden;
transition: 0.4s ease-in-out;
opacity: 0;
}
div.panel3.show {
border:none !important;
opacity: 1;
max-height: 2000px;
margin-bottom:0px;
}
.table-body>tr:last-child>td{
border-bottom : none !important;
}
.td_rightAlign{
color: #000000;
}
.iconDiv{
border-radius: 50%;
height: 32px;
width: 32px;
color: #ffffff;
background-color: #cfbebe;
float: left;
line-height: 32px;
font-size: 20px;
margin-right: 5px;
text-align: center;
}
.invTypDiv {
height: 32px;
line-height: 32px;
}
\ No newline at end of file
......@@ -385,7 +385,8 @@ function generateOTP()
document.getElementById("Detail1.1.otp").value = "";
var userName = document.getElementById("Detail1.1.username").value.trim();
var stateCode = document.getElementById("Detail1.1.state_code").value.trim();
var url = "/ibase/GSTDataSubmitWizServlet?action=GENERATE_OTP&user_name="+(userName)+"&state_code="+stateCode+"";
var gstinNo = document.getElementById("Detail1.1.gstin").value.trim();
var url = "/ibase/GSTDataSubmitWizServlet?action=GENERATE_OTP&user_name="+escape(userName)+"&state_code="+stateCode+"&gstin_no="+escape(gstinNo)+"";
makeRequest( url, OTPGenerated);
}
......@@ -397,7 +398,7 @@ function OTPGenerated(retVal)
var xmlDoc = loadXMLString(retVal);
var msgNode = xmlDoc.getElementsByTagName("message")[0];
var msg = msgNode.childNodes[0].nodeValue;
//alert(msg);
alert(msg);
document.getElementById("otpInputDiv").style.display = "block";
document.getElementById("Detail1.1.otp").focus();
if(msg.indexOf("Error") == -1)
......@@ -576,4 +577,116 @@ function setTitlenImg(retVal)
document.getElementById("titleText").innerHTML = title;
document.getElementById("titleImg").setAttribute("src","/ibase/images/menuImages/web/Galaxy/"+img);
}
/*function setSummaryTotal()
{
var totalRecCnt = 0, totalRecValue = 0, totalTaxValue = 0, totalIGST = 0, totalCGST = 0, totalSGST = 0, totalCess = 0;
var summaryTable = document.getElementById("dataSummaryTable");
var dataRows = summaryTable.rows;
for(var i=1; i<dataRows.length-1; i++)
{
var dataCells = summaryTable.rows[i].cells;
for(var j=1; j<dataCells.length; j++)
{
var cellData = parseInt(dataCells[j].innerHTML);
if(j == 1)
{
totalRecCnt += cellData;
}
if(j == 2)
{
totalRecValue += cellData;
}
if(j == 3)
{
totalTaxValue += cellData;
}
if(j == 4)
{
totalIGST += cellData;
}
if(j == 5)
{
totalCGST += cellData;
}
if(j == 6)
{
totalSGST += cellData;
}
if(j == 7)
{
totalCess += cellData;
}
}
}
console.log("totalRecCnt["+totalRecCnt+"] totalRecValue["+totalRecValue+"]totalTaxValue["+totalTaxValue+"]totalIGST["+totalIGST+"]totalCGST["+totalCGST+"]totalSGST["+totalSGST+"]totalCess["+totalCess+"]");
var lastRowCells = summaryTable.rows[dataRows.length-1].cells;console.log(lastRowCells);
for(var i=1; i<lastRowCells.length; i++)
{
if(i == 1)
{
lastRowCells[i].innerHTML = "<b>"+totalRecCnt+"</b>";
}
if(i == 2)
{
lastRowCells[i].innerHTML = "<b>"+totalRecValue+"</b>";
}
if(i == 3)
{
lastRowCells[i].innerHTML = "<b>"+totalTaxValue+"</b>";
}
if(i == 4)
{
lastRowCells[i].innerHTML = "<b>"+totalIGST+"</b>";
}
if(i == 5)
{
lastRowCells[i].innerHTML = "<b>"+totalCGST+"</b>";
}
if(i == 6)
{
lastRowCells[i].innerHTML = "<b>"+totalSGST+"</b>";
}
if(i == 7)
{
lastRowCells[i].innerHTML = "<b>"+totalCess+"</b>";
}
}
}*/
function setSummaryTotal()
{
var totalsByCol = [0, 0, 0, 0, 0, 0, 0];
$(document).ready(function() {
var $dataRows = $("#dataSummaryTable tr:not('.titleRow, .totalRow')");
$dataRows.each(function(i) {
$(this).find('td:not(.titleColumn)').each(function(j) {
totalsByCol[j] += parseInt($(this).html());
});
});
$("#dataSummaryTable td.totalCol").each(function(i) {
$(this).html("<b>"+totalsByCol[i]+"</b>");
});
$dataRows.each(function(i) {
var rowTotal = 0;
$(this).find('td:not(.titleColumn)').each(function() {
rowTotal += parseInt($(this).html());
});
if(rowTotal == 0)
{
$dataRows[i].style.display = "none";
}
});
});
}
\ No newline at end of file
......@@ -111,9 +111,7 @@
<xsl:variable name="state_descr"><xsl:value-of select="state_descr"/></xsl:variable>
<xsl:variable name="otp"><xsl:value-of select="otp"/></xsl:variable>
<xsl:variable name="app_key"><xsl:value-of select="app_key"/></xsl:variable>
<xsl:variable name="returns_type"><xsl:value-of select="returns_type"/></xsl:variable>
<xsl:variable name="gross_turnover"><xsl:value-of select="gross_turnover"/></xsl:variable>
<xsl:variable name="action"><xsl:value-of select="action"/></xsl:variable>
<div class="inputFormDiv">
<div class="eachLineFields">
......@@ -134,10 +132,6 @@
<div class="eachField">
<div class="inputDiv"><input type="text" class="editDisplayClass" value="{$state_descr}" name="Detail1.{normalize-space($dbID)}.state_descr" id="Detail1.{normalize-space($dbID)}.state_descr" tabIndex="-1" readOnly="true" style="width:150px;"/></div>
</div>
<div class="eachField" style="float:right;">
<div class="labelDiv">Gross turnover<span style="color:red;">*</span> : </div>
<div class="inputDiv"><input type="text" class="input_editable" value="{$gross_turnover}" name="Detail1.{normalize-space($dbID)}.gross_turnover" id="Detail1.{normalize-space($dbID)}.gross_turnover" tabIndex="30" style="text-align:right;padding-right:4px;width:120px;" onblur="checkValidInput(this);" onkeypress="return isNumberKey(event);"/></div>
</div>
</div>
<div class="eachLineFields">
<div class="eachField">
......@@ -193,7 +187,7 @@
<input type="hidden" value="1" name="FORM_NO" ID="FORM_NO" />
<input type="hidden" value="gstsalesdata_submit" name="OBJ_NAME" />
<input type="hidden" value="" name="action" id="action" />
<input type="submit" style="cursor:hand;margin-left:20px;" value="Finish" onclick="setActionVal('finish');return validateHeaderForm();displayWaitImg();" class="button" title='Finish' id="finish"/>
<input type="submit" style="cursor:hand;margin-left:20px;" value="Next" onclick="setActionVal('next');displayWaitImg();return validateHeaderForm();" class="button" title='Next' id="next"/>
</div>
</div>
<div id="buttonreplacement">
......
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