ServiceBase.cs
资源名称:H3_OA.rar [点击查看]
上传用户:li2971742
上传日期:2021-11-18
资源大小:39096k
文件大小:1k
源码类别:
OA系统
开发平台:
C#
- using System;
- /// <summary>
- /// Summary description for ServiceBase.
- /// </summary>
- public class ServiceBase : System.Web.Services.WebService
- {
- public ServiceBase()
- {
- }
- private OThinker.H3.Portal.UserValidator _UserValidator;
- /// <summary>
- /// 获得当前登陆用户的Principal Name
- /// </summary>
- protected OThinker.H3.Portal.UserValidator UserValidator
- {
- get
- {
- if (this._UserValidator == null)
- {
- string loginName = this.Context.User.Identity.Name;
- string userAlias = null;
- if (loginName != null && loginName.IndexOf("\") != -1)
- {
- userAlias = loginName.Substring(loginName.IndexOf("\") + 1);
- }
- this._UserValidator = OThinker.H3.Portal.UserValidatorFactory.GetUserValidator(this);
- }
- return this._UserValidator;
- }
- }
- }