QAdminBasePageModel Class

QuickAdmin.Net 页面基类,所有需要使用本 RCL 类库内置页面功能的 Razor 页面均要继承自此基类。

Definition

Constructors

QAdminBasePageModelInitializes a new instance of the QAdminBasePageModel class

Properties

Public Properties

AllowAnonymousAccess 指示页面是否允许匿名访问,即不登录就可访问。
AllowRedirectFromLogin 指示页面是否允许从登录页跳转过来。
IsPostBack 指示是否是页面回发。
PageCssUrl 页面 css 资源 Url。
PageJsUrl 页面 js 资源 Url。
PagePath 页面的路径。
PageResFileName 页面对应的静态资源文件的名称。
PageRights 打开此页面所需的权限。
PageTitle 页面标题。
QFObject 页面 JSQFObject 对象。
RenderPageCss 指示是否自动引入页面 css 资源。
RenderPageJs 指示是否自动引入页面 js 资源。
RootBizDeptId 依据 PageRights 权限设置,获取数据对当前登录用户可见的最高层级部门的 Id。
ViewBag 添加页面对 ViewBag 的支持。
ViewportMetaContent 页面 viewport meta 标记内容。

Protected Properties

authService 认证服务。
exService 异常日志服务。

Methods

Public Methods

AlertError(string, bool, string, bool) 在客户端浏览器弹出错误对话框。
AlertError(string, string, bool, string, bool) 在客户端浏览器弹出错误对话框,可指定标题。
AlertMessage(string, bool, string, bool) 在客户端浏览器弹出消息对话框。
AlertMessage(string, string, bool, string, bool) 在客户端浏览器弹出消息对话框,可指定标题。
AlertServiceResultMessage 根据指定的 IServiceResult 服务调用结果,在客户端弹出一个对话框。
CreateAutoRedirectContent 创建一个让浏览器自动跳转到指定 url 的 ContentResult 响应结果。
CreateHtmlContent 创建一个用来在客户端浏览器显示一段 HTML 内容的 ContentResult 响应结果。
GetAlertErrorJs(string, bool, string, bool) 获取用来在客户端浏览器弹出错误对话框的客户端脚本。
GetAlertErrorJs(string, string, bool, string, bool) 获取用来在客户端浏览器弹出错误对话框的客户端脚本,可指定标题。
GetAlertMessageJs(string, bool, string, bool) 获取用来在客户端浏览器弹出消息对话框的客户端脚本。
GetAlertMessageJs(string, string, bool, string, bool) 获取用来在客户端浏览器弹出消息对话框的客户端脚本,可指定标题。
GetRequestEventArgument 用于在 WebForms 开发模式下获取回发的参数。
GetRequestEventArguments 用于在 WebForms 开发模式下获取回发的参数列表。
GetShowConfirmJs(string, string, string, bool, bool) 获取用来在客户端浏览器弹出确认对话框的客户端脚本。
GetShowConfirmJs(string, string, string, string, bool, bool) 获取用来在客户端浏览器弹出确认对话框的客户端脚本,可指定标题。
GetShowErrorJs(string, bool, Position, Position, int, bool) 获取用来在客户端浏览器显示错误提示的客户端脚本。
GetShowErrorJs(string, string, bool, Position, Position, int, bool) 获取用来在客户端浏览器显示错误提示的客户端脚本,可指定标题。
GetShowMessageJs(string, bool, Position, Position, int, bool) 获取用来在客户端浏览器显示消息提示的客户端脚本。
GetShowMessageJs(string, string, bool, Position, Position, int, bool) 获取用来在客户端浏览器显示消息提示的客户端脚本,可指定标题。
OnPageHandlerExecuting 在页面执行处理程序方法之前、模型绑定完成后调用的方法。
(Overrides PageModelOnPageHandlerExecuting(PageHandlerExecutingContext))
RegisterQFObjectCustomData(IDictionarystring, object) 用指定的字典数据往客户端 QF 对象中注册自定义属性。
RegisterQFObjectCustomData(string, object) 往客户端 QF 对象中注册自定义属性。
RegisterStartupScript 用来注册页面脚本。
ShowConfirm(string, string, string, bool, bool) 在客户端浏览器弹出确认对话框。
ShowConfirm(string, string, string, string, bool, bool) 在客户端浏览器弹出确认对话框,可指定标题。
ShowError(string, bool, Position, Position, int, bool) 在客户端浏览器显示错误提示。
ShowError(string, string, bool, Position, Position, int, bool) 在客户端浏览器显示错误提示,可指定标题。
ShowMessage(string, bool, Position, Position, int, bool) 在客户端浏览器显示消息提示。
ShowMessage(string, string, bool, Position, Position, int, bool) 在客户端浏览器显示消息提示,可指定标题。
ShowServiceResultMessage 根据指定的 IServiceResult 服务调用结果,在客户端显示一个提示框。

Protected Methods

BreakPageHandlerExecuting 检查是否要中止当前页面的 OnPageHandlerExecuting(PageHandlerExecutingContext) 的执行。
CheckRights 检查当前登录用户是否有权访问此页面。
CreateFineUINotify(string, MessageBoxIcon, Target, Position, Position, int, bool) 创建 FineUI 提示框对象。
CreateFineUINotify(string, string, MessageBoxIcon, Target, Position, Position, int, bool) 创建 FineUI 提示框对象,可指定标题。
OnAccessDenied 无权访问页面时调用的方法。
OnCheckRequestHash 检查页面请求哈希值。
OnPasswordExpired 当前登录用户密码已过期时调用的方法。
OnRequiresLogin 需要登录时调用的方法。
TryGetFineUIDropDownListUserInputText 当某属性对应的界面上的下拉框为可输入状态时,可调用此方法来获取下拉框的值。

See Also