本文整理汇总了C#中Booking.GetTreatmentNotes方法的典型用法代码示例。如果您正苦于以下问题:C# Booking.GetTreatmentNotes方法的具体用法?C# Booking.GetTreatmentNotes怎么用?C# Booking.GetTreatmentNotes使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Booking
的用法示例。
在下文中一共展示了Booking.GetTreatmentNotes方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: MergeDocument
//.........这里部分代码省略.........
//sourceDataSet.Tables[0].Columns.Add("ref_addr_line1");
//sourceDataSet.Tables[0].Columns.Add("ref_addr_line2");
//sourceDataSet.Tables[0].Columns.Add("ref_addr_street");
//sourceDataSet.Tables[0].Columns.Add("ref_addr_suburb");
//sourceDataSet.Tables[0].Columns.Add("ref_addr_postcode");
//sourceDataSet.Tables[0].Columns.Add("ref_addr_country");
sourceDataSet.Tables[0].Columns.Add("ref_phone");
sourceDataSet.Tables[0].Columns.Add("ref_fax");
sourceDataSet.Tables[0].Columns.Add("bk_date");
sourceDataSet.Tables[0].Columns.Add("bk_time");
sourceDataSet.Tables[0].Columns.Add("bk_length");
sourceDataSet.Tables[0].Columns.Add("bk_prov_name");
sourceDataSet.Tables[0].Columns.Add("bk_prov_title");
sourceDataSet.Tables[0].Columns.Add("bk_prov_firstname");
sourceDataSet.Tables[0].Columns.Add("bk_prov_middlename");
sourceDataSet.Tables[0].Columns.Add("bk_prov_surname");
sourceDataSet.Tables[0].Columns.Add("bk_prov_number");
//sourceDataSet.Tables[0].Columns.Add("bk_prov_gender");
//sourceDataSet.Tables[0].Columns.Add("bk_prov_dob");
sourceDataSet.Tables[0].Columns.Add("bk_treatment_notes");
sourceDataSet.Tables[0].Columns.Add("bk_offering_name");
sourceDataSet.Tables[0].Columns.Add("bk_offering_short_name");
sourceDataSet.Tables[0].Columns.Add("bk_offering_descr");
string bookingNotes = string.Empty;
if (booking != null)
{
if (booking.Patient != null)
{
foreach (Note note in booking.GetTreatmentNotes())
bookingNotes += "Treatment Note:" + Environment.NewLine + Environment.NewLine + note.Text + Environment.NewLine + Environment.NewLine;
}
else if (patient != null) // group bookings - but need patientID
{
BookingPatient bp = BookingPatientDB.GetByBookingAndPatientID(booking.BookingID, patient.PatientID);
if (bp != null)
foreach (Note note in NoteDB.GetByEntityID(bp.EntityID, "252"))
bookingNotes += "Treatment Note:" + Environment.NewLine + Environment.NewLine + note.Text + Environment.NewLine + Environment.NewLine;
}
}
/* -- for testing
string s1 = patient == null ? "No patient found" : patient.Person.FullnameWithTitleWithoutMiddlename;
string s2 = patient == null ? "No patient found" : (patient.Person.Title.ID == 0 ? "" : patient.Person.Title.Descr);
string s3 = patient == null ? "" : patient.Person.Firstname;
string s4 = patient == null ? "" : patient.Person.Middlename;
string s5 = patient == null ? "" : patient.Person.Surname;
string s6 = patient == null ? "" : patient.Person.Gender;
string s7 = patient == null ? "" : patient.Person.Dob == DateTime.MinValue ? "" : patient.Person.Dob.ToString("d MMMM, yyyy");
string s8 = patientAddress == null ? "No address found" : patientAddress.AddrLine1;
string s9 = patientAddress == null ? "" : patientAddress.AddrLine2;
string s10 = patientAddress == null || patientAddress.AddressChannel == null ? "" : (patientAddress.AddressChannel.AddressChannelID == 1 ? "" : patientAddress.AddressChannel.DisplayName);
string s11 = patientAddress == null ? "" : patientAddress.Suburb.Name;
string s12 = patientAddress == null ? "" : patientAddress.Suburb.Postcode;
string s13 = patientAddress == null || patientAddress.Country == null ? "" : patientAddress.Country.Descr;
string s14 = activeHcCard == null ? "No hc card found" : activeHcCard.CardNbr + " - " + activeHcCard.CardFamilyMemberNbr;
string s15 = activeHcCard == null ? "" : activeHcCard.CardName;
string s16 = activeHcCard == null ? "" : activeHcCard.DateReferralSigned.ToString("d MMMM, yyyy");