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
80fba3be
Commit
80fba3be
authored
Mar 25, 2025
by
Sonawane Amol Madhjuar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replace RetainerContractIC.java
parent
8755be41
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
58 additions
and
3 deletions
+58
-3
Amol/Asset Assign/RetainerContractIC.java
Amol/Asset Assign/RetainerContractIC.java
+58
-3
No files found.
Amol/Asset Assign/RetainerContractIC.java
View file @
80fba3be
...
@@ -788,7 +788,62 @@ public class RetainerContractIC extends ValidatorEJB implements RetainerContract
...
@@ -788,7 +788,62 @@ public class RetainerContractIC extends ValidatorEJB implements RetainerContract
}
}
//Pavan R 17sept19 end[to validate tax environment]
//Pavan R 17sept19 end[to validate tax environment]
}
// for loop end
}
// for loop end
break
;
break
;
//Added new case by amol on 19-March for the validation on assetcode pophelp --start
case
3
:
System
.
out
.
println
(
"----------Detail3 test validation Test 20-03::------------------------"
);
System
.
out
.
println
(
"dom@@@@------->>"
+
genericUtility
.
serializeDom
(
dom
));
System
.
out
.
println
(
"dom@@@@111------->>"
+
genericUtility
.
serializeDom
(
dom1
));
System
.
out
.
println
(
"dom@@@@222------->>"
+
genericUtility
.
serializeDom
(
dom2
));
int
count
=
0
;
String
errorString
=
""
;
parentNodeList
=
dom
.
getElementsByTagName
(
"Detail3"
);
parentNode
=
parentNodeList
.
item
(
0
);
childNodeList
=
parentNode
.
getChildNodes
();
childNodeListLength
=
childNodeList
.
getLength
();
for
(
ctr
=
0
;
ctr
<
childNodeListLength
;
ctr
++)
{
childNode
=
childNodeList
.
item
(
ctr
);
childNodeName
=
childNode
.
getNodeName
();
if
(
childNodeName
.
equalsIgnoreCase
(
"asset_code"
))
{
BaseLogger
.
log
(
"3"
,
null
,
null
,
" Inside the else block-->"
);
System
.
out
.
println
(
"DOM in case 3 :::---->>["
+
genericUtility
.
serializeDom
(
dom
).
toString
()+
"]"
);
String
assetCode
=
checkNull
(
genericUtility
.
getColumnValue
(
"asset_code"
,
dom
));
BaseLogger
.
log
(
"3"
,
null
,
null
,
"Asset Code ---> "
+
assetCode
);
try
{
sql
=
"SELECT COUNT (ASSET_CODE) FROM ASSET_REGISTER WHERE ASSET_CODE = ?"
;
pstmt
=
conn
.
prepareStatement
(
sql
);
pstmt
.
setString
(
1
,
assetCode
);
rs
=
pstmt
.
executeQuery
();
if
(
rs
.
next
())
{
//count = rs.getInt("COUNT");
count
=
rs
.
getInt
(
1
);
}
if
(
count
<=
0
)
{
errorString
=
getErrorString
(
"asset_code"
,
"INVLDASTCD"
,
userId
);
}
}
catch
(
SQLException
e
)
{
BaseLogger
.
log
(
"3"
,
null
,
null
,
"Catch block of asset_code pophelp validation"
+
e
.
getMessage
());
e
.
printStackTrace
();
}
break
;
}
}
return
errorString
;
//Added new case by amol on 19-March for the validation on assetcode pophelp --End
}
// end of switch
}
// end of switch
int
errListSize
=
errList
.
size
();
int
errListSize
=
errList
.
size
();
int
count
=
0
;
int
count
=
0
;
...
@@ -1681,7 +1736,7 @@ public class RetainerContractIC extends ValidatorEJB implements RetainerContract
...
@@ -1681,7 +1736,7 @@ public class RetainerContractIC extends ValidatorEJB implements RetainerContract
valueXmlString
.
append
(
"</Detail2>"
);
valueXmlString
.
append
(
"</Detail2>"
);
break
;
break
;
//Added by Amol S on 20 Feb
-24 to apply itemchane on Asses
_Code Field --START
//Added by Amol S on 20 Feb
-25 to apply item-change on Asset
_Code Field --START
case
3
:
case
3
:
{
{
BaseLogger
.
log
(
"3"
,
null
,
null
,
"Inside the case 3 "
);
BaseLogger
.
log
(
"3"
,
null
,
null
,
"Inside the case 3 "
);
...
@@ -1733,7 +1788,7 @@ public class RetainerContractIC extends ValidatorEJB implements RetainerContract
...
@@ -1733,7 +1788,7 @@ public class RetainerContractIC extends ValidatorEJB implements RetainerContract
valueXmlString
.
append
(
"</Detail3>"
);
valueXmlString
.
append
(
"</Detail3>"
);
}
}
//Added by Amol S on 20
Feb -24 to apply itemchane on Asses
_Code field --END
//Added by Amol S on 20
-Feb-25 to apply item-change on Asset
_Code field --END
}
//switch
}
//switch
valueXmlString
.
append
(
"</Root>"
);
valueXmlString
.
append
(
"</Root>"
);
...
...
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