-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #329 from gaepdit/309-create-a-pending-report-and-…
…add-a-button Create Pending Report and add button on Facility Search page
- Loading branch information
Showing
5 changed files
with
83 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
using ClosedXML.Attributes; | ||
using FMS.Domain.Dto; | ||
using System; | ||
|
||
namespace FMS.Helpers | ||
{ | ||
public class FacilityPendingDtoScalar | ||
{ | ||
public FacilityPendingDtoScalar(FacilityDetailDto facility) | ||
{ | ||
FacilityNumber = facility.FacilityNumber.Substring(2); | ||
Name = facility.Name; | ||
OrganizationalUnit = facility.OrganizationalUnit?.Name; | ||
HistoricalUnit = facility.HistoricalUnit; | ||
ComplianceOfficer = facility.ComplianceOfficer?.Name; | ||
RNDateReceived = facility.RNDateReceived; | ||
Comments = facility.Comments; | ||
} | ||
|
||
[XLColumn(Header = "Facility Number")] | ||
public string FacilityNumber { get; } | ||
|
||
[XLColumn(Header = "Facility Name")] | ||
public string Name { get; } | ||
|
||
[XLColumn(Header = "Organizational Unit")] | ||
public string OrganizationalUnit { get; } | ||
|
||
[XLColumn(Header = "Compliance Officer")] | ||
public string ComplianceOfficer { get; } | ||
|
||
[XLColumn(Header = "Historical Unit")] | ||
public string HistoricalUnit { get; set; } | ||
|
||
[XLColumn(Header = "Date Received")] | ||
public DateOnly? RNDateReceived { get; set; } | ||
|
||
[XLColumn(Header = "Comments")] | ||
public string Comments { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters