Commit 61da3592 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@106021 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 815d55db
......@@ -29,6 +29,10 @@
{
text-indent: 3px;
}
.eachLineFields
{
height: 28px;
}
.eachLineFields div
{
display: inline-block;
......@@ -68,8 +72,8 @@
z-index:1005;
display:none;
position: fixed;
top: 200px;
left: 450px;
top: 40%;
left: 40%;
}
#buttonreplacement>img{
margin-top:15px;
......@@ -89,4 +93,8 @@
}
.popHelpIconDiv a img{
vertical-align:middle;
}
#titleText
{
display: inline;
}
\ No newline at end of file
......@@ -133,7 +133,6 @@ function getListOfValues(fieldName,fieldId,siteCode)
function assignValue(value)
{
document.getElementById(popHelpId).value = value;
//document.getElementById(popHelpId).focus();
callItemChange(popHelpId);
}
......@@ -374,13 +373,22 @@ function showAutoSerach(element)
}
function generateOTP()
{
displayWaitImg();
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+"";
if(document.getElementById("Detail1.1.period_code").value == undefined || document.getElementById("Detail1.1.period_code").value == null || document.getElementById("Detail1.1.period_code").value.trim() == "" )
{
alert("Please enter period code.");
document.getElementById("Detail1.1.period_code").value = document.getElementById("Detail1.1.period_code").value.trim();
document.getElementById("Detail1.1.period_code").focus();
}
else
{
displayWaitImg();
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+"";
makeRequest( url, OTPGenerated);
makeRequest( url, OTPGenerated);
}
}
function OTPGenerated(retVal)
......@@ -551,4 +559,21 @@ function startTimer(mintues)
}
}
tick();
}
function getTitlenImg(objName)
{
var url = "/ibase/GSTWizUtilServlet?action=GET_ITM2MENU_DTLS&objName="+objName+"";
makeRequest( url, setTitlenImg);
}
function setTitlenImg(retVal)
{
var xmlDoc = loadXMLString(retVal);
var title = xmlDoc.getElementsByTagName("title")[0].childNodes[0].nodeValue;
var img = xmlDoc.getElementsByTagName("img")[0].childNodes[0].nodeValue;
document.getElementById("titleText").innerHTML = title;
document.getElementById("titleImg").setAttribute("src","/ibase/images/menuImages/web/Galaxy/"+img);
}
\ No newline at end of file
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