protected void btnAdd_Click(object sender, EventArgs e)
    {
        string sSelectedRuleGroupIDs = this.hdnSelectedRuleGroupIDs.Value;

        // update
        Template_RuleGroups RuleGroupManager = new Template_RuleGroups();

        RuleGroupManager.AddGlobalRuleGroups(sSelectedRuleGroupIDs);

        PageCommon.WriteJsEnd(this, "Added global rule group successfully.", "window.parent.location.href=window.parent.location.href;");
    }
    protected void Page_Load(object sender, EventArgs e)
    {
        #region 初始化Rule列表

        Template_RuleGroups RuleGroupManager = new Template_RuleGroups();
        DataTable           RuleGroupList    = RuleGroupManager.GetNonGlobalRuleGroupList();
        this.gridRuleGroupList.DataSource = RuleGroupList;
        this.gridRuleGroupList.DataBind();

        #endregion
    }