当前位置: 首页>>代码示例>>C#>>正文


C# Person.SendOfficerNotice方法代码示例

本文整理汇总了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);
    }
开发者ID:SwarmCorp,项目名称:Swarmops,代码行数:12,代码来源:ListVolunteers.aspx.cs

示例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);
    }
开发者ID:SwarmCorp,项目名称:Swarmops,代码行数:25,代码来源:ListVolunteers.aspx.cs


注:本文中的Person.SendOfficerNotice方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。