当前位置: 首页>>代码示例>>C#>>正文


C# UI.GetAllRulesets方法代码示例

本文整理汇总了C#中UI.GetAllRulesets方法的典型用法代码示例。如果您正苦于以下问题:C# UI.GetAllRulesets方法的具体用法?C# UI.GetAllRulesets怎么用?C# UI.GetAllRulesets使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在UI的用法示例。


在下文中一共展示了UI.GetAllRulesets方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: Page_Load

    protected override void Page_Load(object sender, System.EventArgs e)
    {
        base.Page_Load(sender, e);
        try
        {
            if (m_refCommon.RequestInformationRef.IsMembershipUser == 1 || m_refCommon.RequestInformationRef.UserId == 0)
            {
                Response.Redirect("../login.aspx?fromLnkPg=1", false);
                return;
            }
            else
            {
                Page.Title = "CMS Business Rulesets";
                msSelectRule.Text = m_refMsg.GetMessage("lbl select rule");
                msRuleToRemove.Text = m_refMsg.GetMessage("lbl select rule to remove");
                noRulesInSet.Text = m_refMsg.GetMessage("lbl no rules in bussiness ruleset");
                ShowHidden();

                m_rulesUI = new Ektron.Cms.RulesEngine.UI(m_refContentApi.RequestInformationRef);
                m_aRuleset = m_rulesUI.GetAllRulesets();

                if (m_sPageAction == "edit")
                {
                    if (!(Page.IsPostBack))
                    {
                        traddruleset.Visible = true;
                        trgrid.Visible = false;
                        GoGet();
                        AddEditRulesetToolBar();
                        RulesJS();
                        AddEditJS("edit");
                    }
                    else
                    {
                        RulesetSaveHandler();
                        Response.Redirect((string)("ruleset.aspx?action=View&id=" + m_iID.ToString()), false);
                    }
                    traddedit.Visible = true;
                    trgrid.Visible = false;
                }
                else if (m_sPageAction == "view")
                {
                    if (!(Page.IsPostBack))
                    {
                        GoGet();
                        ViewRulesetToolBar();
                        RulesJS();
                        AddEditJS("add");
                    }
                    traddedit.Visible = true;
                    trgrid.Visible = false;
                }
                else if (m_sPageAction == "add")
                {
                    SetAction("");
                    if (!(Page.IsPostBack))
                    {
                        AddRulesetToolBar();
                        traddruleset.Visible = true;
                        trgrid.Visible = false;
                        AddJS();
                        if (!string.IsNullOrEmpty(Request.QueryString["identifier"]))
                        {
                            txtIdentifier.Value = EkFunctions.HtmlEncode(Request.QueryString["identifier"]);
                        }
                        else
                        {
                            tridentifier.Visible = false;
                        }
                    }
                    else
                    {
                        m_iID = RulesetAddHandler();
                        Response.Redirect((string)("ruleset.aspx?action=View&id=" + m_iID.ToString()), false);
                    }
                }
                else if (m_sPageAction == "select")
                {
                    SetAction("");
                    if (!(Page.IsPostBack))
                    {
                        traddedit.Visible = true;
                        SelectRulesToolBar();
                        GetSelectableRules();
                        RulesJS();
                        AddEditJS("select");
                    }
                    else
                    {
                        RulesetSelectHandler();
                        Response.Redirect((string)("ruleset.aspx?action=View&id=" + m_iID.ToString()), false);
                    }
                }
                else if (m_sPageAction == "remove")
                {
                    RulesetDeleteHandler();
                    Response.Redirect("ruleset.aspx", false);
                }
                else
                {
//.........这里部分代码省略.........
开发者ID:jaytem,项目名称:minGit,代码行数:101,代码来源:ruleset.aspx.cs


注:本文中的UI.GetAllRulesets方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。