本文整理汇总了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
{
//.........这里部分代码省略.........