-
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.
- Loading branch information
1 parent
31dcb81
commit d402ab8
Showing
13 changed files
with
111 additions
and
16 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
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,18 @@ | ||
using Dapper; | ||
using Microsoft.Data.SqlClient; | ||
|
||
namespace Danielson.Data.PortalTranslator { | ||
|
||
public class FormExport { | ||
private readonly string _connectionString; | ||
|
||
public FormExport(string? connectionString) { | ||
_connectionString = connectionString ?? ""; | ||
} | ||
|
||
public FormExportInformation Get(int id) { | ||
using var connection = new SqlConnection(_connectionString); | ||
return connection.QuerySingle<FormExportInformation>("[danielson].usp_get_evaluation @evaluation_id", new { evaluation_id = id }); | ||
} | ||
} | ||
} |
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 |
---|---|---|
@@ -1,7 +1,18 @@ | ||
namespace Danielson.Data.PortalTranslator { | ||
|
||
public class FormExportInformation { | ||
public string EvaluatedBy { get; set; } = ""; | ||
public string EvaluatedBy => $"{EvaluatorFirstName} {EvaluatorLastName}"; | ||
public string EvaluatorFirstName { get; set; } = ""; | ||
public string EvaluatorLastName { get; set; } = ""; | ||
public string FormTemplateInternalLookupString { get; set; } = ""; | ||
public bool IsMidterm { get; set; } | ||
public string PlacementType { get; set; } = ""; | ||
public string Position { get; set; } = ""; | ||
public string Semester { get; set; } = ""; | ||
public bool ShowComponents { get; set; } | ||
public bool ShowNotObserved { get; set; } | ||
public bool ShowQuantitativeAnswer { get; set; } | ||
public string StudentName { get; set; } = ""; | ||
public string Title { 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
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
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