本文整理汇总了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;
}
}
示例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;
}
}
示例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;
}