Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
B
business-java
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
0
Merge Requests
0
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
Proteus
business-java
Commits
24f9e315
Commit
24f9e315
authored
Apr 24, 2020
by
CORP\prumde
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated for default value changes
parent
4cad2ffa
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
14 deletions
+8
-14
webitm-dashboard/ibase/dashboard/common/hibernate/dao/DashboardUtil.java
...d/ibase/dashboard/common/hibernate/dao/DashboardUtil.java
+8
-14
No files found.
webitm-dashboard/ibase/dashboard/common/hibernate/dao/DashboardUtil.java
View file @
24f9e315
...
@@ -76,6 +76,7 @@ public class DashboardUtil
...
@@ -76,6 +76,7 @@ public class DashboardUtil
userSite
=
userInfo
.
getSiteCode
();
userSite
=
userInfo
.
getSiteCode
();
empCode
=
userInfo
.
getEmpCode
();
empCode
=
userInfo
.
getEmpCode
();
profileId
=
userInfo
.
getProfileId
();
profileId
=
userInfo
.
getProfileId
();
loginCode
=
userInfo
.
getLoginCode
();
}
}
System
.
out
.
println
(
"userTranDB ="
+
userTranDB
);
System
.
out
.
println
(
"userTranDB ="
+
userTranDB
);
CommonConstants
.
setIBASEHOME
();
CommonConstants
.
setIBASEHOME
();
...
@@ -988,31 +989,24 @@ public class DashboardUtil
...
@@ -988,31 +989,24 @@ public class DashboardUtil
}
}
//TO FETCH SITECODE OF USER LOGGED IN
//TO FETCH SITECODE OF USER LOGGED IN
else
if
(
defaultValue
!=
null
&&
"CURRENT_SITE"
.
equalsIgnoreCase
(
defaultValue
.
toString
()))
{
else
if
(
defaultValue
!=
null
&&
"CURRENT_SITE"
.
equalsIgnoreCase
(
defaultValue
.
toString
()))
{
filterObj
.
put
(
"default_value"
,
checkNull
(
userSite
)
.
trim
()+
","
);
filterObj
.
put
(
"default_value"
,
checkNull
(
userSite
));
System
.
out
.
println
(
"toget user site code => "
+
filterObj
);
System
.
out
.
println
(
"toget user site code => "
+
filterObj
);
}
}
//TO FETCH EMPCODE OF USER LOGGED IN
//TO FETCH EMPCODE OF USER LOGGED IN
else
if
(
defaultValue
!=
null
&&
"EMP_CODE"
.
equalsIgnoreCase
(
defaultValue
.
toString
()))
{
else
if
(
defaultValue
!=
null
&&
"EMP_CODE"
.
equalsIgnoreCase
(
defaultValue
.
toString
()))
{
filterObj
.
put
(
"default_value"
,
checkNull
(
empCode
)
.
trim
()+
","
);
filterObj
.
put
(
"default_value"
,
checkNull
(
empCode
));
System
.
out
.
println
(
"toget user emp_code => "
+
filterObj
);
System
.
out
.
println
(
"toget user emp_code => "
+
filterObj
);
}
}
//TO FETCH PERIOD CODE OF USER LOGGED IN
//TO FETCH PERIOD CODE OF USER LOGGED IN
else
if
(
defaultValue
!=
null
&&
"CURRENT_PERIOD"
.
equalsIgnoreCase
(
defaultValue
.
toString
()))
{
else
if
(
defaultValue
!=
null
&&
"CURRENT_PERIOD"
.
equalsIgnoreCase
(
defaultValue
.
toString
()))
{
filterObj
.
put
(
"default_value"
,
checkNull
(
prd_code
)
.
trim
()+
","
);
filterObj
.
put
(
"default_value"
,
checkNull
(
prd_code
));
System
.
out
.
println
(
"toget user prd_code
prd_code
=> "
+
filterObj
);
System
.
out
.
println
(
"toget user prd_code => "
+
filterObj
);
}
}
//TO FETCH LOGIN_CODE OF USER LOGGED IN
//TO FETCH EMPCODE CODE OF USER LOGGED IN
else
if
(
defaultValue
!=
null
&&
"EMP_CODE"
.
equalsIgnoreCase
(
defaultValue
.
toString
()))
{
filterObj
.
put
(
"default_value"
,
checkNull
(
empCode
).
trim
()+
","
);
System
.
out
.
println
(
"toget user emp_code => "
+
filterObj
);
}
else
if
(
defaultValue
!=
null
&&
"LOGIN_CODE"
.
equalsIgnoreCase
(
defaultValue
.
toString
()))
else
if
(
defaultValue
!=
null
&&
"LOGIN_CODE"
.
equalsIgnoreCase
(
defaultValue
.
toString
()))
{
{
System
.
out
.
println
(
"LOGIN_CODE for column value in hcp Cals => "
+
this
.
loginCode
);
System
.
out
.
println
(
"LOGIN_CODE for column value in hcp Cals => "
+
loginCode
);
filterObj
.
put
(
"default_value"
,
this
.
loginCode
.
trim
()
+
","
);
filterObj
.
put
(
"default_value"
,
loginCode
);
System
.
out
.
println
(
"toget user login code in hcp calls ["
+
filterObj
+
"]"
);
System
.
out
.
println
(
"toget user login code in hcp calls ["
+
filterObj
+
"]"
);
}
}
...
...
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