Exemplo n.º 1
0
        protected override void OnPreRender(EventArgs e)
        {
            base.OnPreRender(e);
            if (string.IsNullOrEmpty(this.Page.Request["dialPlanId"]))
            {
                throw new BadQueryParameterException("dialPlanId");
            }
            EcpSingleSelect ecpSingleSelect = (EcpSingleSelect)base.ContentContainer.FindControl("pickerUMDialPlan");

            ecpSingleSelect.PickerFormUrl = EcpUrl.AppendQueryParameter(ecpSingleSelect.PickerFormUrl, "dialPlanId", this.Page.Request["dialPlanId"]);
        }
        protected override void BuildScriptDescriptor(ScriptComponentDescriptor descriptor)
        {
            descriptor.AddComponentProperty("ListView", this.complianceProgramListView.ClientID, true);
            descriptor.AddElementProperty("DistributionGroupPanel", this.pnlDistributionGroup.ClientID);
            descriptor.AddElementProperty("IncidentManagementPanel", this.pnlIncidentMailbox.ClientID);
            EcpSingleSelect ecpSingleSelect  = (EcpSingleSelect)this.pnlIncidentMailbox.FindControl("chooseIncidentManagementBox");
            EcpSingleSelect ecpSingleSelect2 = (EcpSingleSelect)this.pnlDistributionGroup.FindControl("chooseDistributionGroup");

            descriptor.AddComponentProperty("IncidentMailboxPicker", ecpSingleSelect.ClientID, true);
            descriptor.AddComponentProperty("DistibutionGroupPicker", ecpSingleSelect2.ClientID, true);
            base.BuildScriptDescriptor(descriptor);
        }