public override void Load(string CarrierId)
        {
            if (CarrierId == PERSONAL_COLOR && _dataCarriers[PERSONAL_COLOR] == null)
            {
                _personalColorCarrier = newPersonalColorCarrier();
                //"person", set in the ctor
                int    currentPersonId = SuperStateManager.GetCurrentId(PrimaryCurrent);
                string id = Id;

                if (currentPersonId > 0)
                {
                    PersonEntity p = _personAgent.GetPersonEntity(currentPersonId);
                    _dataCarriers[PERSON_CARRIER] = p;

                    if (!string.IsNullOrEmpty(p.UserDefinedFields[UDFieldProgId + ":DisplayText"]))
                    {
                        _personalColorCarrier.SelectedColor = (BasicColor)Enum.Parse(typeof(BasicColor), p.UserDefinedFields[UDFieldProgId + ":DisplayText"]);
                    }

                    _personalColorCarrier.Name      = p.FullName;
                    _personalColorCarrier.BirthDate = p.BirthDate;
                }
                else
                {
                    _personalColorCarrier.SelectedColor = BasicColor.White;
                    _personalColorCarrier.Name          = "";
                    _personalColorCarrier.BirthDate     = DateTime.MinValue;
                }
                _dataCarriers[PERSONAL_COLOR] = _personalColorCarrier;
            }
        }
    public string CreateFollowUp()
    {
        SaleEntity sale = AgentFactory.GetSaleAgent().GetSaleEntity(SuperStateManager.GetCurrentId("sale"));

        if (sale != null)
        {
            AppointmentAgent  agent = new AppointmentAgent();
            AppointmentEntity app   = agent.CreateDefaultAppointmentEntityByType(SuperOffice.Data.TaskType.Appointment);
            app.Contact     = sale.Contact;
            app.Person      = sale.Person;
            app.Associate   = sale.Associate;
            app.Description = "Sample Follow-up from Sale " + sale.SaleId;
            app.StartDate   = DateTime.Today.AddDays(7);
            app.EndDate     = app.StartDate;
            app             = agent.SaveAppointmentEntity(app);
            return(app.AppointmentId.ToString());
        }
        else
        {
            return(String.Empty);
        }
    }