Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

App - Implement TestResults viewmodels and save functionality #21

Open
durkc opened this issue Oct 9, 2017 · 1 comment
Open

App - Implement TestResults viewmodels and save functionality #21

durkc opened this issue Oct 9, 2017 · 1 comment

Comments

@durkc
Copy link
Contributor

durkc commented Oct 9, 2017

No description provided.

@Saurutobi Saurutobi changed the title UI - Implement TestResults viewmodels and save functionality App - Implement TestResults viewmodels and save functionality Nov 12, 2017
@durkc
Copy link
Contributor Author

durkc commented Nov 12, 2017

The app is currently retrieving read-only data and it allows the user to page through the test and answer questions.

ViewModels are most likely out of sync with the current database schema and models.

Existing UI code needs to be code reviewed.

Save functionality needs to be implemented. It will call CloudStore like the other methods. The proc is built to accept a single json object with nested TestResults, TestResultsSections, and TestResultsAnswers.

Here is an example:

/* SAMPLE JSON:
declare @JSON varchar(max) = '{
"Id": "5CB0E06A-C72D-4AF0-AAE0-18888EBD5A7E",
"Test": "2BA84E43-7C86-4D58-AC06-72C861169B81",
"Handler": "107b9dee-b6ca-49ad-b9da-28f827865bbc",
"Dog": "32b0270b-bdc0-4f2f-9bbf-71dbbb2d3c99",
"PassedTest": 0,
"ReasonForFailure": "Bit handler",
"Notes": "Bad doggy",
"PassedConnectingCanines": 0,
"ShadowVisitRequirement": 0,
"EligibleToRetest": 0,
"TestDate": "11/11/2017",
"ScoringExaminer": "50c112b0-488c-4a63-ab6c-3df970f5beb8",
"HandsOnExaminer": "50c112b0-488c-4a63-ab6c-3df970f5beb8",
"CertificationType": "1147053c-5b8b-4aba-b125-0af472eb8f80",
"EquipmentRestrictions": "647ef84c-c927-4066-be03-848bfa4cb1fa",
"OtherRestrictions": "Not allowed near children",
"PracticeLabRequirement": 0,
"TestResultsSections": [
{
"Id": "17014543-4D0E-4C22-A403-95A3F5932F9A",
"TestResult": "5CB0E06A-C72D-4AF0-AAE0-18888EBD5A7E",
"Section": "A3D63308-8192-478D-9C99-686150DD9F0A",
"Notes": "Section1 notes",
"TestResultsAnswers": [
{
"Id": "63908682-B030-419F-83FF-DCDF05A53F25",
"TestResult": "5CB0E06A-C72D-4AF0-AAE0-18888EBD5A7E",
"Question": "1E609E2D-D6E2-42EB-BCEB-C88A3D0F1371",
"Answer": "P",
"YesNo": 0
},
{
"Id": "1C8C30B2-65EA-4835-87F0-64D57C7940D8",
"TestResult": "5CB0E06A-C72D-4AF0-AAE0-18888EBD5A7E",
"Question": "590A640C-C9B1-4996-AA47-E72BA3EAB0D8",
"Answer": "P",
"YesNo": 0
}
]
},
{
"Id": "5F80ACA0-BA26-4122-AA7F-85F31A089D04",
"TestResult": "5CB0E06A-C72D-4AF0-AAE0-18888EBD5A7E",
"Section": "FB2A5FE8-E52D-4A99-9C2E-13B29A810811",
"Notes": "Section2 notes"
}
]
}';
*/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants