示例#1
0
    protected override void InstantiateCustomFields(IConciergeAPIService proxy)
    {
        cfsAbstractCustomFields.MemberSuiteObject        = targetAbstract;
        cfsAbstractCustomFieldsConfirm.MemberSuiteObject = targetAbstract;

        var pageLayout = targetAbstract.GetAppropriatePageLayout();

        divAdditionalInfo.Visible = false;

        if ((pageLayout == null || pageLayout.Metadata == null || pageLayout.Metadata.IsEmpty()))
        {
            return;
        }

        divAdditionalInfoConfirm.Visible = divAdditionalInfo.Visible = true;

        // setup the metadata
        cfsAbstractCustomFields.Metadata   = targetAbstract.DescribeObject();
        cfsAbstractCustomFields.PageLayout = pageLayout.Metadata;

        cfsAbstractCustomFields.Render();

        //The lifecycle here is a little strange because of the wizard.  Force a bind/harvest at this point to set the confirm fields
        cfsAbstractCustomFieldsConfirm.Metadata   = cfsAbstractCustomFields.Metadata;
        cfsAbstractCustomFieldsConfirm.PageLayout = cfsAbstractCustomFields.PageLayout;

        cfsAbstractCustomFieldsConfirm.AddReferenceNamesToTargetObject(proxy);

        cfsAbstractCustomFieldsConfirm.Render();
    }
示例#2
0
    protected override void InstantiateCustomFields(IConciergeAPIService proxy)
    {
        cfsAbstractCustomFields.MemberSuiteObject = targetAbstract;

        var pageLayout = targetAbstract.GetAppropriatePageLayout();

        divAdditionalInfo.Visible =
            !(pageLayout == null || pageLayout.Metadata == null || pageLayout.Metadata.IsEmpty());

        if (!divAdditionalInfo.Visible)
        {
            return;
        }

        // setup the metadata
        cfsAbstractCustomFields.Metadata   = targetAbstract.DescribeObject();
        cfsAbstractCustomFields.PageLayout = pageLayout.Metadata;

        cfsAbstractCustomFields.AddReferenceNamesToTargetObject(proxy);

        cfsAbstractCustomFields.Render();
    }