/// <summary>
    /// 保存按钮事件
    /// </summary>
    /// <param name="sender"></param>
    /// <param name="e"></param>
    protected void ButtonSave_Click(object sender, EventArgs e)
    {
        if (String.IsNullOrEmpty(TextBoxProirotyLevel.Text.Trim()))
        {
            Show(Page, "请输入优先级");
            return;
        }
        int proirotyLevel;

        if (!int.TryParse(TextBoxProirotyLevel.Text.Trim(), out proirotyLevel))
        {
            Show(Page, "优先级输入不正确,请输入整数");
            return;
        }
        string type = "0";

        switch (DropDownListStatus.SelectedValue)
        {
        case "-1":
            type = "-1";
            break;

        case "0":
            type = "1";
            break;

        default:
            type = "0";
            break;
        }
        try
        {
            WebBean bean = WebBean.GetInstance();
            bean.SavePermission(UrlGuid, GroupGuid, proirotyLevel, type);
            Show(Page, "保存成功!");
        }
        catch (Exception ex)
        {
            Show(Page, "保存失败!");
            WriteLog.WriteExceptionLog(ex.ToString());
        }
    }