Images working
This commit is contained in:
@@ -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 + "'}\"";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user