Images working

This commit is contained in:
Matthew Burke
2023-07-27 18:59:51 -04:00
parent 1b65e9bb83
commit 09d86b86c2
7 changed files with 300 additions and 12 deletions
+10 -3
View File
@@ -20,7 +20,9 @@ namespace PWAPPv2.Source.DataObjects
RichTextBox RemarksBox;
CheckBox ContactBox;
public Referral(APICredentials apiCredentials, Patient patient, ReferralTypeBox referralType, ReferToBox referTo, ReferFromBox referFrom, RichTextBox remarksBox, CheckBox contactBox)
bool Attachments;
public Referral(APICredentials apiCredentials, Patient patient, ReferralTypeBox referralType, ReferToBox referTo, ReferFromBox referFrom, RichTextBox remarksBox, CheckBox contactBox, bool attachments)
{
ApiCredentials = apiCredentials;
PatientData = patient;
@@ -29,6 +31,7 @@ namespace PWAPPv2.Source.DataObjects
ReferFrom = referFrom;
RemarksBox = remarksBox;
ContactBox = contactBox;
Attachments = attachments;
}
public string ToJsonString()
@@ -41,7 +44,11 @@ namespace PWAPPv2.Source.DataObjects
{
contact = 1;
}
string attachmentsText = "False";
if (Attachments)
attachmentsText = "True";
try
{
return "\"{" + ApiCredentials.BuildJsonBodyContents() + "," +
@@ -61,7 +68,7 @@ namespace PWAPPv2.Source.DataObjects
"'SubmittedBy':'" + ReferFrom.GetSelectedID() + "'," +
"'ToPracticeId':'" + ReferTo.GetSelectedPracticeID() + "'," +
"'ToDoctorID':'" + ReferTo.GetSelectedDoctorID() + "'," +
"'Attachments':'False'," +
"'Attachments':'" + attachmentsText + "'," +
"'Remarks':'" + RemarksText + "'," +
"'Contact':'" + contact + "'}\"";
}