Esempio n. 1
0
    protected void wzEnterInfo_StepChanged(object sender, EventArgs e)
    {
        switch (wzEnterInfo.ActiveStepIndex)
        {
        // MS-5360
        case 0:
            DeleteCurrentForm();
            break;

        case 1:
            CustomFieldSet1.Harvest();
            // MS-5360
            targetInstance      = APIExtensions.SaveObject(targetInstance);
            CurrentFormID.Value = targetInstance["ID"].ToString();
            CustomFieldSet2.MemberSuiteObject = targetInstance;
            CustomFieldSet2.Bind();
            break;

        case 2:
            SubmitForm();
            if (ConciergeAPI.CurrentEntity == null && targetForm.AnonymousSubmissionCompletionUrl != null)
            {
                wzEnterInfo.FinishDestinationPageUrl = targetForm.AnonymousSubmissionCompletionUrl;
            }

            wzEnterInfo.DisplayCancelButton = false;

            break;
        }
    }
    protected void wzEnterInfo_StepChanged(object sender, EventArgs e)
    {
        switch (wzEnterInfo.ActiveStepIndex)
        {
        case 1:
            CustomFieldSet1.Harvest();
            CustomFieldSet2.MemberSuiteObject = targetRecommendation;
            CustomFieldSet2.Bind();

            break;

        case 2:
            submitForm();

            break;
        }
    }