本文整理汇总了C#中SysUserBLL类的典型用法代码示例。如果您正苦于以下问题:C# SysUserBLL类的具体用法?C# SysUserBLL怎么用?C# SysUserBLL使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
SysUserBLL类属于命名空间,在下文中一共展示了SysUserBLL类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: GetUserMenuPermsByUserPermissionBllCommon
public List<V_BllCommonUserPermission> GetUserMenuPermsByUserPermissionBllCommon(string menuCode, string userID, ref string OwnerCompanyIDs, ref string OwnerDepartmentIDs, ref string OwnerPositionIDs)
{
//SysUserBLL bll = new SysUserBLL();
//IQueryable<V_Permission> plist = bll.GetUserMenuPerms(menuCode, userID);
#region 使用缓存
try
{
using (SysUserBLL bll = new SysUserBLL())
{
List<V_BllCommonUserPermission> plist;
IQueryable<V_BllCommonUserPermission> IQlist = bll.GetUserMenuPermsByUserPermisionBllCommon(menuCode, userID, ref OwnerCompanyIDs, ref OwnerDepartmentIDs, ref OwnerPositionIDs);
//if(IQlist != null)
plist = IQlist !=null ? IQlist.ToList() : null;
return plist == null ? null : plist;
}
}
catch (Exception ex)
{
Tracer.Debug("PermissionBllCommon出现错误:" + menuCode + System.DateTime.Now.ToString("d")+" "+ex.ToString());
return null;
}
#endregion
}
示例2: SystemLogin
public V_UserLogin SystemLogin(string userName, string Pwd)
{
using (SysUserBLL bll = new SysUserBLL())
{
return bll.systemUserLogin(userName, Pwd);
}
}
示例3: GetUserPermissionByUserToUI
public List<V_UserPermissionUI> GetUserPermissionByUserToUI(string userID)
{
using (SysUserBLL bll = new SysUserBLL())
{
#region 龙康才新增
List<V_UserPermissionUI> plist;
T_SYS_FBADMIN UserFb = null;
string keyString = "GetUserPermissionByUserToUI" + userID;
if (WCFCache.Current[keyString] == null)
{
if (!string.IsNullOrEmpty(userID))
{
PermissionService p = new PermissionService();
UserFb = p.getFbAdmin(userID);
}
IQueryable<V_UserPermissionUI> IQList = UserFb != null ? bll.GetUserPermissionByUserToUI(userID, "") : bll.GetUserPermissionByUserToUINotForFbAdmin(userID, "");
plist = IQList == null ? null : IQList.ToList();
WCFCache.Current.Insert(keyString, plist, DateTime.Now.AddMinutes(15));
}
else
{
plist = (List<V_UserPermissionUI>)WCFCache.Current[keyString];
}
#endregion
return plist != null ? plist : null;
}
}
示例4: GetEntityPermissionByUser
public List<V_UserPermissionUI> GetEntityPermissionByUser(string userID, string StrMenuId)
{
using (SysUserBLL bll = new SysUserBLL())
{
IQueryable<V_UserPermissionUI> plist;
plist = bll.GetUserPermissionByUserToUI(userID, StrMenuId);
return plist.Count() > 0 ? plist.ToList() : null;
}
}
示例5: UserLoginToTaken
public V_UserLogin UserLoginToTaken(string userName, string Pwd,ref string StrTaken)
{
//using (SysUserBLL bll = new SysUserBLL())
//{
// string Ip = System.Web.HttpContext.Current.Request.UserHostAddress.ToString();
// return bll.GetUserInfoByLogin(userName, Pwd, Ip);
//}
SysUserBLL bll = new SysUserBLL();
string Ip = System.Web.HttpContext.Current.Request.UserHostAddress.ToString();
return bll.GetUserInfoByLoginToTaken(userName, Pwd, Ip, StrTaken);
}
示例6: UserLogin
public V_UserLogin UserLogin(string userName, string Pwd)
{
using (SysUserBLL bll = new SysUserBLL())
{
string Ip = System.Web.HttpContext.Current.Request.UserHostAddress.ToString();
return bll.AddUserLoginHis(userName, Pwd, Ip);
}
//SysUserBLL bll = new SysUserBLL();
// string Ip = System.Web.HttpContext.Current.Request.UserHostAddress.ToString();
// return bll.GetUserInfoByLogin(userName, Pwd, Ip);
}
示例7: GetUserMenuPermsByUserPermissionBllCommon
public List<V_BllCommonUserPermission> GetUserMenuPermsByUserPermissionBllCommon(string menuCode, string userID, ref string OwnerCompanyIDs, ref string OwnerDepartmentIDs, ref string OwnerPositionIDs)
{
//SysUserBLL bll = new SysUserBLL();
//IQueryable<V_Permission> plist = bll.GetUserMenuPerms(menuCode, userID);
#region 使用缓存
try
{
using (SysUserBLL bll = new SysUserBLL())
{
List<V_BllCommonUserPermission> plist;
string keyString = "BllCommonUserMenuPermsstring" + menuCode + userID;
string Companykey = "BllOwnerCompanyIDs" + menuCode + userID;
string Departmentkey = "BllOwnerDepartmentIDs" + menuCode + userID;
string Positionkey = "BllOwnerPositionIDs" + menuCode + userID;
if (WCFCache.Current[keyString] == null)
{
IQueryable<V_BllCommonUserPermission> IQlist = bll.GetUserMenuPermsByUserPermisionBllCommon(menuCode, userID, ref OwnerCompanyIDs, ref OwnerDepartmentIDs, ref OwnerPositionIDs);
//if(IQlist != null)
plist = IQlist !=null ? IQlist.ToList() : null;
WCFCache.Current.Insert(keyString, plist, DateTime.Now.AddMinutes(1));
WCFCache.Current.Insert(Companykey, OwnerCompanyIDs, DateTime.Now.AddMinutes(1));
WCFCache.Current.Insert(Departmentkey, OwnerDepartmentIDs, DateTime.Now.AddMinutes(1));
WCFCache.Current.Insert(Positionkey, OwnerPositionIDs, DateTime.Now.AddMinutes(1));
}
else
{
plist = (List<V_BllCommonUserPermission>)WCFCache.Current[keyString];
OwnerCompanyIDs = (string)WCFCache.Current[Companykey];
OwnerDepartmentIDs = (string)WCFCache.Current[Departmentkey];
OwnerPositionIDs = (string)WCFCache.Current[Positionkey];
}
return plist == null ? null : plist;
}
}
catch (Exception ex)
{
Tracer.Debug("PermissionBllCommon出现错误:" + menuCode + System.DateTime.Now.ToString("d")+" "+ex.ToString());
return null;
}
#endregion
}
示例8: GetUserMenuPermsByUserPermissionBllCommonAddPermissionValue
public List<V_BllCommonUserPermission> GetUserMenuPermsByUserPermissionBllCommonAddPermissionValue(string menuCode, string userID, ref string OwnerCompanyIDs, ref string OwnerDepartmentIDs, ref string OwnerPositionIDs,string StrPermissionValue)
{
try
{
using (SysUserBLL bll = new SysUserBLL())
{
List<V_BllCommonUserPermission> plist;
IQueryable<V_BllCommonUserPermission> IQlist = bll.GetUserMenuPermsByUserPermisionBllCommonAddPermissionValue(menuCode, userID, ref OwnerCompanyIDs, ref OwnerDepartmentIDs, ref OwnerPositionIDs, StrPermissionValue);
plist = IQlist != null ? IQlist.ToList() : null;
return plist == null ? null : plist;
}
}
catch (Exception ex)
{
Tracer.Debug("GetUserMenuPermsByUserPermissionBllCommonAddPermissionValue出现错误:" + menuCode + System.DateTime.Now.ToString("d") + " " + ex.ToString());
return null;
}
}
示例9: UpdatePwdByUserNameAndPwd
public string UpdatePwdByUserNameAndPwd(string UserName, string pwd)
{
using (SysUserBLL bll = new SysUserBLL())
{
string IsReturn = "";
Tracer.Debug(UserName +"开始修改密码,用户密码:" + pwd);
IsReturn = bll.UpdatePwdByUserNameAndPwd(UserName,pwd);
return IsReturn;
}
}
示例10: GetUserByRoleIDAndCompanyID
public List<FlowUserInfo> GetUserByRoleIDAndCompanyID(string roleID, string companyID)
{
using (SysUserBLL bll = new SysUserBLL())
{
Tracer.Debug("流程调用了GetUserByRoleIDAndCompanyID:" + "角色ID:"+ roleID +" 公司ID:"+ companyID);
return bll.GetUserByRoleIDAndCompanyID(roleID,companyID);
}
}
示例11: GetDepartmentHeadByDepartmentID
public List<FlowUserInfo> GetDepartmentHeadByDepartmentID(string departmentID)
{
using (SysUserBLL bll = new SysUserBLL())
{
Tracer.Debug("流程调用了GetDepartmentHeadByDepartmentID:" + departmentID);
return bll.GetDepartmentHeadByDepartmentID(departmentID);
}
}
示例12: GetUserNameIsExistNameAddOne
public string GetUserNameIsExistNameAddOne(string UserName, string employeeid)
{
using (SysUserBLL UserBll = new SysUserBLL())
{
return UserBll.GetUserNameIsExistAddOne(UserName, employeeid);
}
}
示例13: GetCompanyidsAndDepartmentidsByUserid
public List<string> GetCompanyidsAndDepartmentidsByUserid(string userid, ref List<string> lsDepartmentids)
{
using (SysUserBLL UserBll = new SysUserBLL())
{
return UserBll.GetCompanyidsAndDepartmentidsByUserid(userid, ref lsDepartmentids);
}
}
示例14: GetSysUserLoginRecordInfosPaging
//所有用户登录信息 2010-6-10
public List<V_UserLoginRecord> GetSysUserLoginRecordInfosPaging(int pageIndex, int pageSize, string sort, string filterString, object[] paras, ref int pageCount, LoginUserInfo loginUserInfo)
{
using (SysUserLoginRecordBll UserLoginBll = new SysUserLoginRecordBll())
{
IQueryable<V_UserLoginRecord> recordList = UserLoginBll.GetAllUserLoginRecordInfosWithPaging(pageIndex, pageSize, sort, filterString, paras, ref pageCount, loginUserInfo.userID);
SysUserBLL bll = new SysUserBLL();
//string OwnerCompanyIDs = "";
//string OwnerDepartmentIDs = "";
//string OwnerPositionIDs = "";
//IQueryable<V_BllCommonUserPermission> plist;
//plist = bll.GetUserMenuPermsByUserPermisionBllCommon("T_HR_SALARYSOLUTION", "2e41f129-cab4-4864-832e-6a2d6fba2750", ref OwnerCompanyIDs, ref OwnerDepartmentIDs, ref OwnerPositionIDs);
//plist = bll.GetUserMenuPermsByUserPermisionBllCommonAddPermissionValue("T_FB_DEPTBUDGETAPPLYMASTER", "286ab878-be35-4cb9-83d4-51e4f0344637", ref OwnerCompanyIDs, ref OwnerDepartmentIDs, ref OwnerPositionIDs, "0");
//plist = bll.GetUserMenuPermsByUserPermisionBllCommon("T_HR_COMPANY", "2e67b94c-888f-4488-8663-d356740efcc6", ref OwnerCompanyIDs, ref OwnerDepartmentIDs, ref OwnerPositionIDs);
//plist = bll.GetUserMenuPermsByUserPermisionBllCommon("T_OA_WORKRECORD", "5dabd014-e418-4d0e-a88e-440ec012857e", ref OwnerCompanyIDs, ref OwnerDepartmentIDs, ref OwnerPositionIDs);
if (recordList == null)
{
return null;
}
else
{
return recordList.ToList();
}
}
}
示例15: SysUserInfoAddORUpdate
public void SysUserInfoAddORUpdate(T_SYS_USER obj, ref string strMsg)
{
using (SysUserBLL UserBll = new SysUserBLL())
{
//清空即时通讯的缓存
string keyString = "ImInstantLoginUsers";
WCFCache.Current[keyString] = null;
UserBll.SysUserInfoAddORUpdate(obj, ref strMsg);
}
}