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
a51e4ea1
Commit
a51e4ea1
authored
May 18, 2025
by
Krishna Reddy Tamatam
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
to production
parent
d5877f63
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
7 deletions
+8
-7
FTPManagementAPIController.cs
Controllers/FTPManagementAPIController.cs
+2
-2
Program.cs
Program.cs
+1
-1
FTPDataAdapter.cs
Services/FTPDataAdapter.cs
+3
-3
appsettings.json
appsettings.json
+2
-1
No files found.
Controllers/FTPManagementAPIController.cs
View file @
a51e4ea1
...
...
@@ -103,13 +103,13 @@ namespace FTP_Services.Services.Controllers
}
[
HttpGet
(
"GetLocations"
)]
public
IActionResult
GetLocations
(
int
LocationId
,
Boolean
IsLoadAll
)
public
IActionResult
GetLocations
(
Boolean
IsLoadAll
)
//int LocationId,
{
log
.
Debug
(
"GetLocations ==> "
);
try
{
FTPDataAdapter
adapter
=
new
FTPDataAdapter
(
_appSettings
);
List
<
object
>?
RequestsList
=
adapter
.
LoadLocations
(
LocationId
,
IsLoadAll
);
List
<
object
>?
RequestsList
=
adapter
.
LoadLocations
(
IsLoadAll
);
//LocationId,
return
Ok
(
RequestsList
);
}
catch
(
Exception
ex
)
...
...
Program.cs
View file @
a51e4ea1
...
...
@@ -138,7 +138,7 @@ if (app.Environment.IsDevelopment())
}
else
{
//
app.Run(); //For Test Site
app
.
Run
();
//For Test Site
app
.
Run
(
"http://*:4708"
);
// For Production
//app.Run("http://*:4709"); // For Admin
...
...
Services/FTPDataAdapter.cs
View file @
a51e4ea1
...
...
@@ -342,7 +342,7 @@ namespace FTP_Services.Services
}
}
public
List
<
object
>?
LoadLocations
(
int
LocationId
,
Boolean
IsLoadAll
)
public
List
<
object
>?
LoadLocations
(
Boolean
IsLoadAll
)
//int LocationId,
{
List
<
object
>?
LoadLocationsData
=
null
;
try
...
...
@@ -351,10 +351,10 @@ namespace FTP_Services.Services
{
string
sqlQuery
=
$"SELECT * FROM \"SPScanTool_LoadLocations\"(@Parm_Lo
cationId,@Parm_Lo
adAll)"
;
$"SELECT * FROM \"SPScanTool_LoadLocations\"(@Parm_LoadAll)"
;
LoadLocationsData
=
_repository
.
Fetch
<
object
>(
sqlQuery
,
new
{
Parm_Lo
cationId
=
LocationId
,
Parm_LoadAll
=
IsLoadAll
}
new
{
Parm_Lo
adAll
=
IsLoadAll
}
//Parm_LocationId = LocationId,
);
GC
.
Collect
();
tx
.
Complete
();
...
...
appsettings.json
View file @
a51e4ea1
{
"AppSettings"
:
{
"Secret"
:
"A78E-F7FA-B0FD-DAA45BB866CD-AA73D560-DACC-978C-4A9B-9924-5DE7E33F0040-GCD00"
,
"ConnectionString158"
:
"SERVER=10.11.12.158;PORT=5432;UID=himsdbuser;PWD=dbuser@hims123!;Database=FF_TEST_16052025;Timeout=1000"
,
"AdminConnectionString"
:
"SERVER=10.11.12.106;PORT=5432;UID=himsdbuser;PWD=dbuser@hims123!;database=CareaxesAdmin;Timeout=1000"
,
"ConnectionString"
:
"SERVER=10.11.12.106;PORT=5432;UID=himsdbuser;PWD=dbuser@hims123!;Database=fernandez_20241125;Timeout=1000"
,
"ConnectionString207"
:
"SERVER=192.168.7.207;PORT=5432;UID=ff4dbuser;PWD=dbuser4ff123!;Database=fernandez_test_20250409_dev;Timeout=1000"
,
"AdminConnectionString"
:
"SERVER=10.11.12.106;PORT=5432;UID=himsdbuser;PWD=dbuser@hims123!;database=CareaxesAdmin;Timeout=1000"
,
"ConnectionString1"
:
"SERVER=10.11.12.106;PORT=5432;UID=himsdbuser;PWD=dbuser@hims123!;database=fernandez_20241125;Timeout=1000"
,
"AdminConnectionString1"
:
"SERVER=10.11.12.106;PORT=5432;UID=himsdbuser;PWD=dbuser@hims123!;database=fernandez_20241125;Timeout=1000"
,
"FTPConfiguration"
:
{
...
...
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