本文整理汇总了C#中Contact.GetFormattedPhoneNumber方法的典型用法代码示例。如果您正苦于以下问题:C# Contact.GetFormattedPhoneNumber方法的具体用法?C# Contact.GetFormattedPhoneNumber怎么用?C# Contact.GetFormattedPhoneNumber使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Contact
的用法示例。
在下文中一共展示了Contact.GetFormattedPhoneNumber方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: MergeDocument
//.........这里部分代码省略.........
string s43 = referrerAddress == null ? "" : referrerAddress.Suburb.Name;
string s44 = referrerAddress == null ? "" : referrerAddress.Suburb.Postcode;
string s45 = referrerAddress == null || referrerAddress.Country == null ? "" : referrerAddress.Country.Descr;
string s46 = booking == null ? "" : booking.DateStart.ToString("d MMMM, yyyy");
string s47 = booking == null ? "" : booking.DateStart.ToString("HH:mm");
string s48 = booking == null || booking.Provider == null ? "" : booking.Provider.Person.FullnameWithTitleWithoutMiddlename;
string s49 = booking == null || booking.Provider == null ? "" : (booking.Provider.Person.Title.ID == 0 ? "" : booking.Provider.Person.Title.Descr);
string s50 = booking == null || booking.Provider == null ? "" : booking.Provider.Person.Firstname;
string s51 = booking == null || booking.Provider == null ? "" : booking.Provider.Person.Middlename;
string s52 = booking == null || booking.Provider == null ? "" : booking.Provider.Person.Surname;
string s53 = booking == null || booking.Provider == null ? "" : booking.Provider.Person.Gender;
string s54 = booking == null || booking.Provider == null ? "" : booking.Provider.Person.Dob.ToString("d MMMM, yyyy");
string s55 = booking == null ? "" : bookingNotes;
string s56 = booking == null || booking.Offering == null ? "" : booking.Offering.Name;
string s57 = booking == null || booking.Offering == null ? "" : booking.Offering.ShortName;
string s58 = booking == null || booking.Offering == null ? "" : booking.Offering.Descr;
*/
string patientAddressText , patientAddressTabbedText , patientPhoneText;
string orgAddressText , orgAddressTabbedText , orgPhoneText , orgFaxText, orgWebText, orgEmailText;
string referrerAddressText , referrerAddressTabbedText , referrerPhoneText, referrerFaxText;
if (Utilities.GetAddressType().ToString() == "Contact")
{
patientAddressText = patientAddress == null ? "No address found" : patientAddress.GetFormattedAddress("No address found");
patientAddressTabbedText = patientAddress == null ? "No address found" : patientAddress.GetFormattedAddress("No address found", 1);
orgAddressText = orgAddress == null ? "No address found" : orgAddress.GetFormattedAddress("No address found");
orgAddressTabbedText = orgAddress == null ? "No address found" : orgAddress.GetFormattedAddress("No address found", 1);
referrerAddressText = orgAddress == null ? "No address found" : referrerAddress.GetFormattedAddress("No address found");
referrerAddressTabbedText = orgAddress == null ? "No address found" : referrerAddress.GetFormattedAddress("No address found", 1);
patientPhoneText = patientPhone == null ? "No phone number found" : patientPhone.GetFormattedPhoneNumber("No phone number found");
orgPhoneText = orgPhone == null ? "No phone number found" : orgPhone.GetFormattedPhoneNumber("No phone number found");
referrerPhoneText = referrerPhone == null ? "No phone number found" : referrerPhone.GetFormattedPhoneNumber("No phone number found");
referrerFaxText = referrerFax == null ? "No fax number found" : referrerFax.GetFormattedPhoneNumber("No fax number found");
orgFaxText = orgFax == null ? "No fax number found" : orgFax.GetFormattedPhoneNumber("No fax number found");
orgWebText = orgWeb == null ? "No website found" : orgWeb.AddrLine1;
orgEmailText = orgEmail == null ? "No email found" : orgEmail.AddrLine1;
}
else if (Utilities.GetAddressType().ToString() == "ContactAus")
{
patientAddressText = patientAddressAus == null ? "No address found" : patientAddressAus.GetFormattedAddress("No address found");
patientAddressTabbedText = patientAddressAus == null ? "No address found" : patientAddressAus.GetFormattedAddress("No address found", 1);
orgAddressText = orgAddressAus == null ? "No address found" : orgAddressAus.GetFormattedAddress("No address found");
orgAddressTabbedText = orgAddressAus == null ? "No address found" : orgAddressAus.GetFormattedAddress("No address found", 1);
referrerAddressText = referrerAddressAus == null ? "No address found" : referrerAddressAus.GetFormattedAddress("No address found");
referrerAddressTabbedText = referrerAddressAus == null ? "No address found" : referrerAddressAus.GetFormattedAddress("No address found", 1);
patientPhoneText = patientPhoneAus == null ? "No phone number found" : patientPhoneAus.GetFormattedPhoneNumber("No phone number found");
orgPhoneText = orgPhoneAus == null ? "No phone number found" : orgPhoneAus.GetFormattedPhoneNumber("No phone number found");
referrerPhoneText = referrerPhoneAus == null ? "No phone number found" : referrerPhoneAus.GetFormattedPhoneNumber("No phone number found");
referrerFaxText = referrerFaxAus == null ? "No fax number found" : referrerFaxAus.GetFormattedPhoneNumber("No fax number found");
orgFaxText = orgFaxAus == null ? "No fax number found" : orgFaxAus.GetFormattedPhoneNumber("No fax number found");
orgWebText = orgWebAus == null ? "No website found" : orgWebAus.AddrLine1;
orgEmailText = orgEmailAus == null ? "No email found" : orgEmailAus.AddrLine1;
}
else
throw new Exception("Unknown AddressType in config: " + Utilities.GetAddressType().ToString().ToString());
string ptConditionsText = string.Empty;
Hashtable selectedConditions = PatientConditionDB.GetHashtable_ByPatientID(patient.PatientID, false);
foreach (Condition condition in ConditionDB.GetAll())
if (selectedConditions[condition.ConditionID] != null)
ptConditionsText += (ptConditionsText.Length == 0 ? "" : Environment.NewLine) + " • " + ((PatientCondition)selectedConditions[condition.ConditionID]).Condition.Descr;
if (ptConditionsText == string.Empty)