Commit 9ee0ab0d authored by Krishna Reddy Tamatam's avatar Krishna Reddy Tamatam

* Fixed Saving Patient Documents function Issues.

* Addded new params to Patient Documents function.
* Added New function for Move files from one folder to another.
parent 2edf1dfd
This diff is collapsed.
...@@ -22,7 +22,4 @@ ...@@ -22,7 +22,4 @@
<PackageReference Include="Npgsql" Version="8.0.3" /> <PackageReference Include="Npgsql" Version="8.0.3" />
<PackageReference Include="AspNetCore.HealthChecks.NpgSql" Version="8.0.1" /> <PackageReference Include="AspNetCore.HealthChecks.NpgSql" Version="8.0.1" />
</ItemGroup> </ItemGroup>
<ItemGroup>
<None Include="log4net.config" CopyToOutputDirectory="Always" />
</ItemGroup>
</Project> </Project>
...@@ -12,6 +12,8 @@ namespace FTP_Services.Core.Models ...@@ -12,6 +12,8 @@ namespace FTP_Services.Core.Models
public string DocumentUrl { get; set; } public string DocumentUrl { get; set; }
public string ThumbnailUrl { get; set; } public string ThumbnailUrl { get; set; }
public int SplID { get; set; } public int SplID { get; set; }
public int PatDocId { get; set; }
public string UploadedDate { get; set; }
public PatientDocumentDetailsModel() public PatientDocumentDetailsModel()
{ {
...@@ -25,6 +27,8 @@ namespace FTP_Services.Core.Models ...@@ -25,6 +27,8 @@ namespace FTP_Services.Core.Models
DocumentUrl = ""; DocumentUrl = "";
ThumbnailUrl = ""; ThumbnailUrl = "";
SplID = -1; SplID = -1;
PatDocId = 0;
UploadedDate = "";
} }
} }
...@@ -154,6 +158,9 @@ namespace FTP_Services.Core.Models ...@@ -154,6 +158,9 @@ namespace FTP_Services.Core.Models
public string UploadedByRole { get; set; } public string UploadedByRole { get; set; }
public string FullName { get; set; } public string FullName { get; set; }
public string DocumentUrl { get; set; } public string DocumentUrl { get; set; }
public int SplID { get; set; }
public string ThumbnailUrl { get; set; }
public PatientDocuments() public PatientDocuments()
{ {
...@@ -173,6 +180,8 @@ namespace FTP_Services.Core.Models ...@@ -173,6 +180,8 @@ namespace FTP_Services.Core.Models
UploadedByRole = ""; UploadedByRole = "";
FullName = ""; FullName = "";
DocumentUrl = ""; DocumentUrl = "";
SplID = -1;
ThumbnailUrl ="";
} }
} }
......
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<packageSources>
<add key="nuget.org" value="https://api.nuget.org/v3/index.json" />
</packageSources>
</configuration>
...@@ -132,21 +132,21 @@ app.UseEndpoints(endpoints => ...@@ -132,21 +132,21 @@ app.UseEndpoints(endpoints =>
// }); // });
// }); // });
// if (app.Environment.IsDevelopment())
// {
// app.Run("http://localhost:5603");
// }
// else
// {
// app.Run();
// }
if (app.Environment.IsDevelopment()) if (app.Environment.IsDevelopment())
{ {
app.Run("http://localhost:5603"); app.Run("http://localhost:5603");
} }
else else
{ {
app.Run("http://*:4708"); app.Run();
} }
// if (app.Environment.IsDevelopment())
// {
// app.Run("http://localhost:5603");
// }
// else
// {
// app.Run("http://*:4708");
// }
...@@ -187,11 +187,15 @@ namespace FTP_Services.Services ...@@ -187,11 +187,15 @@ namespace FTP_Services.Services
using (var tx = _repository.GetTransaction()) using (var tx = _repository.GetTransaction())
{ {
string SQLStr = string SQLStr =
"SELECT * FROM \"SPScanTool_SavePatientDocument\"(0, " "SELECT * FROM \"SPScanTool_SavePatientDocument\"("
+ SndPatDocRec.PatDocId
+ ",'"
+ SndPatDocRec.UploadedDate
+"',"
+ SndPatDocRec.PatientId + SndPatDocRec.PatientId
+ ","
+ SndPatDocRec.UploadedBy
+ ",'" + ",'"
+ SndPatDocRec.UploadedBy
+ "','"
+ SndPatDocRec.DocumentName + SndPatDocRec.DocumentName
+ "','" + "','"
+ SndPatDocRec.DocumentType + SndPatDocRec.DocumentType
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment