Commit b7b55585 authored by steurwadkar's avatar steurwadkar

F17ABAS001 GST API integration wizard web part commit

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@172154 ce508802-f39f-4f6c-b175-0d175dae99d5
parent f953ea7d
......@@ -152,42 +152,15 @@
document.getElementById("dataForm").action = url;
document.getElementById("dataForm").submit();
var overlay = document.getElementById( "overlay" );
//Commented on 23/10/2017 for Infinispan lock issue
/* var overlay = document.getElementById( "overlay" );
overlay.setAttribute( "style", "position: fixed; top: 0; right: 0; bottom: 0; left: 0; background-color:#000; opacity: .45; z-index:1003; -webkit-touch-callout: none; -webkit-user-select: none; -khtml-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none;");
document.getElementById("buttonreplacement").style.display = "block";
var siteCode = document.getElementById("siteCode").value;
var key = "GSTR_OFFLINE_FILE:"+siteCode+":"+retPeriod+":"+returnType+":"+random;
hideWaitImg(key);
/* $.ajax({
url : "/ibase/GSTDataSubmitWizServlet",
type : "GET",
data : {
prd_code : retPeriod,
rec_type : returnType,
site_code : "TA821",
action : "GET_OFFLINE_FILE"
},
dataType: "application/excel",
beforeSend: function(xhr){
alert("Display wait image");
},
complete: function(xhr, status){
alert("Hide wait image");
},
success : function(response){
console.log(response);
var blob = new Blob([response], { type: 'application/vnd.ms-excel' });
var downloadUrl = URL.createObjectURL(blob);
var a = document.createElement("a");
a.href = downloadUrl;
a.download = "downloadFile.xlsx";
document.body.appendChild(a);
a.click();
}
}); */
hideWaitImg(key); */
}
function hideWaitImg(key)
{
......
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