当前位置: 首页>>代码示例>>C#>>正文


C# SysUserBLL.GetUserByEmployeeID方法代码示例

本文整理汇总了C#中SysUserBLL.GetUserByEmployeeID方法的典型用法代码示例。如果您正苦于以下问题:C# SysUserBLL.GetUserByEmployeeID方法的具体用法?C# SysUserBLL.GetUserByEmployeeID怎么用?C# SysUserBLL.GetUserByEmployeeID使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在SysUserBLL的用法示例。


在下文中一共展示了SysUserBLL.GetUserByEmployeeID方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: GetUserByEmployeeID

        public T_SYS_USER GetUserByEmployeeID(string employeeID)
        {

            using (SysUserBLL bll = new SysUserBLL())
            {
                T_SYS_USER user = bll.GetUserByEmployeeID(employeeID);
                return user;
            }
        }
开发者ID:JuRogn,项目名称:OA,代码行数:9,代码来源:PermissionService.svc.cs

示例2: GetUserByEmployeeID

        public T_SYS_USER GetUserByEmployeeID(string employeeID)
        {

            using (SysUserBLL bll = new SysUserBLL())
            {
                #region 
                T_SYS_USER plist;
                string keyString = "GetUserByEmployeeID" + employeeID;
                if (WCFCache.Current[keyString] == null)
                {


                    plist = bll.GetUserByEmployeeID(employeeID);
                    WCFCache.Current.Insert(keyString, plist, DateTime.Now.AddMinutes(15));


                }
                else
                {
                    plist = (T_SYS_USER)WCFCache.Current[keyString];

                }
                #endregion

                return plist;
            }
        }
开发者ID:fuhongliang,项目名称:oa,代码行数:27,代码来源:PermissionService.svc.cs

示例3: GetUserCacheByEmployee

        /// <summary>
        /// 用户信息缓存
        /// </summary>
        /// <param name="employeeID"></param>
        /// <returns></returns>
        private T_SYS_USER GetUserCacheByEmployee(string employeeID)
        {

            string keyString = "CacheUser" + employeeID;
            if (CacheManager.Current[keyString] == null)
            {
                using (SysUserBLL bll = new SysUserBLL())
                {
                    CacheUser = bll.GetUserByEmployeeID(employeeID);
                    return user;
                }
                CacheManager.Current.Insert(keyString, CacheUser, DateTime.Now.AddMinutes(15));
            }
            else
            {

                CacheUser = (T_SYS_USER)CacheManager.Current[keyString];

            }
            return CacheUser;
        }
开发者ID:JuRogn,项目名称:OA,代码行数:26,代码来源:PermissionUtility.cs


注:本文中的SysUserBLL.GetUserByEmployeeID方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。