Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
H
HIMSScannerService
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
HIMSScanner
HIMSScannerService
Commits
6fe1a321
Commit
6fe1a321
authored
Jun 12, 2025
by
Krishna Reddy Tamatam
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
for v3.0
parent
e89870e9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
43 additions
and
1 deletion
+43
-1
FTPManagementAPIController.cs
Controllers/FTPManagementAPIController.cs
+16
-0
FTPDataAdapter.cs
Services/FTPDataAdapter.cs
+27
-1
No files found.
Controllers/FTPManagementAPIController.cs
View file @
6fe1a321
...
@@ -136,6 +136,22 @@ namespace FTP_Services.Services.Controllers
...
@@ -136,6 +136,22 @@ namespace FTP_Services.Services.Controllers
}
}
}
}
[
HttpGet
(
"GetUserRights"
)]
public
IActionResult
GetUserRights
(
int
UserId
)
{
log
.
Debug
(
"GetUserRights ==> "
);
try
{
FTPDataAdapter
adapter
=
new
FTPDataAdapter
(
_appSettings
);
List
<
object
>?
RequestsList
=
adapter
.
GetUserRights
(
UserId
);
return
Ok
(
RequestsList
);
}
catch
(
Exception
ex
)
{
log
.
Error
(
"Fail to get data for GetUserRights - Error:"
+
ex
.
Message
);
return
NotFound
(
"No results"
);
}
}
[
HttpGet
(
"GetLocations"
)]
[
HttpGet
(
"GetLocations"
)]
public
IActionResult
GetLocations
(
Boolean
IsLoadAll
,
Boolean
IsOldData
)
//int LocationId,
public
IActionResult
GetLocations
(
Boolean
IsLoadAll
,
Boolean
IsOldData
)
//int LocationId,
{
{
...
...
Services/FTPDataAdapter.cs
View file @
6fe1a321
...
@@ -404,7 +404,7 @@ namespace FTP_Services.Services
...
@@ -404,7 +404,7 @@ namespace FTP_Services.Services
return
null
;
return
null
;
}
}
}
}
public
List
<
object
>?
LoadLocations
(
Boolean
IsLoadAll
,
Boolean
IsOldData
)
//int LocationId,
public
List
<
object
>?
LoadLocations
(
Boolean
IsLoadAll
,
Boolean
IsOldData
)
//int LocationId,
{
{
List
<
object
>?
LoadLocationsData
=
null
;
List
<
object
>?
LoadLocationsData
=
null
;
...
@@ -431,6 +431,32 @@ namespace FTP_Services.Services
...
@@ -431,6 +431,32 @@ namespace FTP_Services.Services
}
}
}
}
public
List
<
object
>?
GetUserRights
(
int
UserId
)
{
List
<
object
>?
UserRightsData
=
null
;
try
{
using
(
var
tx
=
_repository
.
GetTransaction
())
{
string
sqlQuery
=
$"SELECT * FROM \"SPScanTool_GetUserRights\"(@Parm_UserId)"
;
UserRightsData
=
_repository
.
Fetch
<
object
>(
sqlQuery
,
new
{
Parm_UserId
=
UserId
}
);
GC
.
Collect
();
tx
.
Complete
();
}
return
UserRightsData
;
}
catch
(
Exception
ex
)
{
log
.
Error
(
"UserRightsData->Failed to get info from db - "
+
ex
.
Message
);
return
null
;
}
}
public
List
<
DocumentCategories
>?
DocumentCategories
()
public
List
<
DocumentCategories
>?
DocumentCategories
()
{
{
List
<
DocumentCategories
>?
DocumentCategoriesData
=
null
;
List
<
DocumentCategories
>?
DocumentCategoriesData
=
null
;
...
...
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