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


C# UI.GetAllConditionTemplateParams方法代码示例

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


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

示例1: Page_Load

    protected void Page_Load(object sender, System.EventArgs e)
    {
        m_refMsg = m_refContentApi.EkMsgRef;
        AppImgPath = m_refContentApi.AppImgPath;
        ltr_Title.Text = m_refMsg.GetMessage("lbl cms business rulesets");

        RegisterResources();
        try
        {
            Utilities.ValidateUserLogin();
            if (m_refContentApi.RequestInformationRef.IsMembershipUser == 1 || m_refContentApi.RequestInformationRef.UserId == 0)
            {
                Response.Redirect((string)("../reterror.aspx?info=" + m_refMsg.GetMessage("msg login cms user")), false);
                return;
            }

            if (!string.IsNullOrEmpty(Request.QueryString["action"]))
            {
                m_sPageAction = (string)(Request.QueryString["action"].ToLower());
            }
            else
            {
                m_sPageAction = "";
            }
            if (!string.IsNullOrEmpty(Request.QueryString["id"]))
            {
                m_iRuleID = Convert.ToInt64(Request.QueryString["id"]);
            }
            if (!string.IsNullOrEmpty(Request.QueryString["rulesetid"]))
            {
                m_iID = Convert.ToInt64(Request.QueryString["rulesetid"].ToString());
            }

            m_rulesUI = new Ektron.Cms.RulesEngine.UI(m_refContentApi.RequestInformationRef);
            m_acontem = m_rulesUI.GetAllConditionTemplates();
            m_aacttem = m_rulesUI.GetAllActionTemplates();
            m_tpacondition = m_rulesUI.GetAllConditionTemplateParams();
            m_tpaaction = m_rulesUI.GetAllActionTemplateParams();

            OutputJS();
            ShowHidden();

            if (m_sPageAction == "edit")
            {
                m_aruleparam = m_rulesUI.GetRuleParams(m_iRuleID);
                m_rulesengineRule = new Ektron.Cms.RulesEngine.Rule(m_refContentApi.RequestInformationRef);
                m_rulesengineRule.load(m_iRuleID);
                ruleNameText.Value = m_rulesengineRule.RuleName;
                cmswizard ucWizard;
                ucWizard = (cmswizard)(LoadControl("../controls/wizard/wizard.ascx"));
                ucWizard.AllowSelect = true;
                ucWizard.ID = "ProgressSteps";
                pnlwizard.Controls.Add(ucWizard);
                BuildTemplateJS("edit");
                ShowRuleToolBar();
            }
            else if (m_sPageAction == "view")
            {
                m_aruleparam = m_rulesUI.GetRuleParams(m_iRuleID);
                m_rulesengineRule = new Ektron.Cms.RulesEngine.Rule(m_refContentApi.RequestInformationRef);
                m_rulesengineRule.load(m_iRuleID);
                ruleNameText.Value = m_rulesengineRule.RuleName;
                BuildTemplateJS("view");
                ShowRuleToolBar();
            }
            else if (m_sPageAction == "add")
            {
                BuildTemplateJS("add");
                cmswizard ucWizard;
                ucWizard = (cmswizard)(LoadControl("../controls/wizard/wizard.ascx"));
                ucWizard.AllowSelect = false; // do not allow skip for add
                ucWizard.ID = "ProgressSteps";
                pnlwizard.Controls.Add(ucWizard);
                ShowRuleToolBar();
            }
            else if (m_sPageAction == "process")
            {
                BuildTemplateJS("add");
                ProcessHandler();
            }
        }
        catch (Exception ex)
        {
            //Response.Write(ex.Message & ex.StackTrace)
            Utilities.ShowError(ex.Message);
        }
    }
开发者ID:jaytem,项目名称:minGit,代码行数:87,代码来源:wizard-with-steps.aspx.cs


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