本文整理汇总了C#中Person.SendOfficerNotice方法的典型用法代码示例。如果您正苦于以下问题:C# Person.SendOfficerNotice方法的具体用法?C# Person.SendOfficerNotice怎么用?C# Person.SendOfficerNotice使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Person
的用法示例。
在下文中一共展示了Person.SendOfficerNotice方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: NotifyAboutLostVolunteer
private void NotifyAboutLostVolunteer (Person oldOwner, Volunteer volunteer, Person viewingPerson)
{
//"A volunteer for officer duty, {0}, was previously assigned to you, but was now taken over by {1} again." +
string mailbody = this.GetLocalResourceObject("RevokedMailMessage").ToString();
string mailSubject = this.GetLocalResourceObject("RevokedMailSubject").ToString();
mailbody = string.Format(mailbody, volunteer.Name, viewingPerson.Name);
oldOwner.SendOfficerNotice(mailSubject, mailbody, Organization.PPSEid);
}
示例2: NotifyAboutAssignedVolunteer
private void NotifyAboutAssignedVolunteer (Person person, Volunteer volunteer)
{
//"A volunteer for officer duty, {0}, was just assigned to you. " +
//"Please check this at https://pirateweb.net/Pages/v4/ListVolunteers.aspx and delegate or " +
//"process as soon as possible. The person volunteers for the following roles:\r\n\r\n "+
//"{1}" +
//"\r\nAs a general rule, leads should be assigned by the lead immediately above " +
//"them in the org, and vices and admins should be assigned by the lead in the same area. " +
//"Delegate the assessment and assignment to the correct person.\r\n";
string mailbody = this.GetLocalResourceObject("AssignmentMailMessage").ToString();
string mailbodyInclusion = this.GetLocalResourceObject("AssignmentMailInclusion").ToString();
string mailSubject = this.GetLocalResourceObject("AssignmentMailSubject").ToString();
VolunteerRoles roles = volunteer.Roles;
string rolesString = "";
foreach (VolunteerRole role in roles)
{
rolesString += string.Format("\r\n" + mailbodyInclusion, role.RoleType.ToString(), role.Geography.Name);
}
mailbody = string.Format(mailbody, volunteer.Name, rolesString);
person.SendOfficerNotice(mailSubject, mailbody, Organization.PPSEid);
}