Ejemplo n.º 1
0
        public void Operation_SelectedIndexChanged(object sender, EventArgs e)
        {
            var after = (EContentAddAfter)TranslateUtils.ToEnum(typeof(EContentAddAfter), Operation.SelectedValue, EContentAddAfter.ContinueAdd);

            if (after == EContentAddAfter.ContinueAdd)
            {
                PageUtils.Redirect(PageGovPublicContentAdd.GetRedirectUrlOfAdd(PublishmentSystemId, nodeInfo.NodeId, Request.QueryString["ReturnUrl"]));
            }
            else if (after == EContentAddAfter.ManageContents)
            {
                PageUtils.Redirect(returnUrl);
            }
            else if (after == EContentAddAfter.Contribute)
            {
                CrossSiteTransUtility.LoadPublishmentSystemIDDropDownList(PublishmentSystemIDDropDownList, PublishmentSystemInfo, nodeInfo.NodeId);

                if (PublishmentSystemIDDropDownList.Items.Count > 0)
                {
                    PublishmentSystemID_SelectedIndexChanged(sender, e);
                }
                PublishmentSystemIDRow.Visible = NodeIDDropDownListRow.Visible = Submit.Visible = true;
            }
        }