Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
Component Sharing
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
CI / CD Analytics
Repository Analytics
Value Stream Analytics
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Gagandeep Singh Bhatia
Component Sharing
Commits
f49a9e9a
Commit
f49a9e9a
authored
Jul 02, 2024
by
Sonawane Amol Madhjuar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replace CustomerExtrenalInfo.jsp
parent
bae16324
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
7 deletions
+9
-7
Amol/VisionDIJSP/CustomerExtrenalInfo.jsp
Amol/VisionDIJSP/CustomerExtrenalInfo.jsp
+9
-7
No files found.
Amol/VisionDIJSP/CustomerExtrenalInfo.jsp
View file @
f49a9e9a
...
@@ -32,11 +32,15 @@
...
@@ -32,11 +32,15 @@
</head>
</head>
<body>
<body>
<%
<%
BaseLogger
.
log
(
"3"
,
null
,
null
,
"Customer External Info "
);
System
.
out
.
println
(
"...@@@@@@@ In CustExtInfo.jsp @@@@@@@@..."
);
String
custCode
=
request
.
getParameter
(
"CUST_CODE"
);
String
custCode
=
request
.
getParameter
(
"CUST_CODE"
);
if
(
custCode
==
null
||
custCode
.
isEmpty
())
{
custCode
=
(
String
)
session
.
getAttribute
(
"CUST_CODE"
);
}
else
{
session
.
setAttribute
(
"CUST_CODE"
,
custCode
);
}
String
selectedOption
=
request
.
getParameter
(
"idType"
);
String
selectedOption
=
request
.
getParameter
(
"idType"
);
BaseLogger
.
log
(
"3"
,
null
,
null
,
"CustCode ["
+
custCode
+
"]"
);
BaseLogger
.
log
(
"3"
,
null
,
null
,
"CustCode ["
+
custCode
+
"]"
);
BaseLogger
.
log
(
"3"
,
null
,
null
,
"Selected Option ["
+
selectedOption
+
"]"
);
BaseLogger
.
log
(
"3"
,
null
,
null
,
"Selected Option ["
+
selectedOption
+
"]"
);
...
@@ -49,14 +53,12 @@
...
@@ -49,14 +53,12 @@
if
(
"pan"
.
equals
(
selectedOption
))
{
if
(
"pan"
.
equals
(
selectedOption
))
{
panNumber
=
dbAccess
.
getDBColumnValue
(
"CUSTOMER"
,
"PAN_NO"
,
"CUST_CODE = '"
+
custCode
+
"'"
,
userInfo
.
getTransDB
());
panNumber
=
dbAccess
.
getDBColumnValue
(
"CUSTOMER"
,
"PAN_NO"
,
"CUST_CODE = '"
+
custCode
+
"'"
,
userInfo
.
getTransDB
());
BaseLogger
.
log
(
"3"
,
null
,
null
,
"PanNumber:: "
+
panNumber
);
if
(
panNumber
!=
null
&&
!
panNumber
.
isEmpty
())
{
if
(
panNumber
!=
null
&&
!
panNumber
.
isEmpty
())
{
panVerificationResponse
=
dbAccess
.
getDBColumnValue
(
"CUST_EXT_INFO"
,
"INFO_RESPONSE"
,
"CUST_CODE = '"
+
custCode
+
"' AND INFO_TYPE = 'Pan Verification'"
,
userInfo
.
getTransDB
());
panVerificationResponse
=
dbAccess
.
getDBColumnValue
(
"CUST_EXT_INFO"
,
"INFO_RESPONSE"
,
"CUST_CODE = '"
+
custCode
+
"' AND INFO_TYPE = 'Pan Verification'"
,
userInfo
.
getTransDB
());
BaseLogger
.
log
(
"3"
,
null
,
null
,
"INFO_RESPONSE Against the Pan:: "
+
panVerificationResponse
);
if
(
panVerificationResponse
==
null
)
{
if
(
panVerificationResponse
==
null
)
{
// Call the API if panVerificationResponse is null
panVerificationResponse
// Call the API if panVerificationResponse is null
try
{
try
{
String
apiUrl
=
"https://sandboxapi.atlas.vayana.com/AtlasApi/v1.0/aadhaar/udyam/verification"
;
String
apiUrl
=
"https://sandboxapi.atlas.vayana.com/AtlasApi/v1.0/aadhaar/udyam/verification"
;
URL
url
=
new
URL
(
apiUrl
);
URL
url
=
new
URL
(
apiUrl
);
...
@@ -133,7 +135,7 @@
...
@@ -133,7 +135,7 @@
<%
if
(
"pan"
.
equals
(
selectedOption
))
{
%>
<%
if
(
"pan"
.
equals
(
selectedOption
))
{
%>
<h2>
PAN Number
</h2>
<h2>
PAN Number
</h2>
<p><%=
panNumber
!=
null
?
panNumber
:
"No PAN number found for the given customer code."
%></p>
<p><%=
panNumber
!=
null
?
panNumber
:
"No PAN number found for the given customer code."
%></p>
<%
if
(
panVerificationResponse
!=
null
&&
!
panVerificationResponse
.
isEmpty
())
{
%>
<%
if
(
panVerificationResponse
!=
null
&&
!
panVerificationResponse
.
isEmpty
())
{
%>
<h2>
Pan Verification Info Response
</h2>
<h2>
Pan Verification Info Response
</h2>
<table
id=
"jsonData"
>
<table
id=
"jsonData"
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment