/// <summary>
        /// 添加/编辑角色
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void btnSave_Click(object sender, System.EventArgs e)
        {
            string roleName = txtName.Text.Trim();

            if (roleName == "")
            {
                AlertBack("请输入角色名称!");
                return;
            }
            Role role = new Role
            {
                ID          = RoleID,
                Description = this.txtDescription.Text,
                Name        = roleName,
                RoleType    = (RoleTypeOptions)Convert.ToInt32(rblRoleTypes.SelectedValue),
                Status      = (StatusOptions)Convert.ToInt32(rblstatus.SelectedValue),
                SystemID    = GetQueryString("sysId").ToInt32(0),
            };

            try
            {
                //添加
                if (RoleID == 0)
                {
                    biService.AddRole(role);
                    Response.Redirect(ReturnUrl);
                }
                else  //修改
                {
                    biService.UpdateRole(role);
                    Response.Redirect(ReturnUrl);
                }
            }
            catch (NotRightException)
            {
                AlertBack("您没有权限执行此操作");
            }
            catch (net91com.Core.ToUserException ex)
            {
                AlertBack(ex.Message);
            }
        }