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


C# SysUserBLL.GetFlowUserInfoByRoleID方法代码示例

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


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

示例1: GetFlowUserInfoByRoleID

 public List<FlowUserInfo> GetFlowUserInfoByRoleID(string roleID)
 {
     using (SysUserBLL bll = new SysUserBLL())
     {
         Tracer.Debug("流程调用了GetFlowUserInfoByRoleID:"+ roleID);
         return bll.GetFlowUserInfoByRoleID(roleID);
     }
 }
开发者ID:fuhongliang,项目名称:oa,代码行数:8,代码来源:PermissionService.svc.cs

示例2: TmGetUserByRoleId

        /// <summary>
        /// 通过状态代码查询下一处理人(对服务操作)
        /// </summary>
        /// <param name="RoleId">状态代码(角色ID(RoleName))</param>
        /// <returns></returns>
        private List<UserInfo> TmGetUserByRoleId(string RoleId, string UserID, string PostID, ref bool isHigher)
        {
            try
            {

                string CurrentRoleId = RoleId == "EndFlow" ? "End" : RoleId; //取得当前状态
                List<UserInfo> listUser = new List<UserInfo>();
                if (CurrentRoleId != "End")
                {
                    string WFCurrentRoleId = "";
                    int isDirect = 0;
                    #region 是否是直接上级,隔级上级,部门负责人
                    foreach (Higher c in Enum.GetValues(typeof(Higher)))
                    {
                        if (CurrentRoleId.ToUpper() == c.ToString().ToUpper())
                        {
                            isDirect = (int)c;//== 1 ? true : false;

                            WFCurrentRoleId = CurrentRoleId;
                            isHigher = true;
                        }
                    }
                    #endregion

                    if (WFCurrentRoleId != "")
                    {
                        //PermissionService
                        #region 如果是直接上级,隔级上级,部门负责人
                        Tracer.Debug("UserID=" + UserID + " 开始调用 直接上级,隔级上级,部门负责人:WcfPersonnel.GetEmployeeLeaders(岗位ID=" + PostID + ", isDirect=" + isDirect + ")");

                        List<SMT.HRM.CustomModel.V_EMPLOYEEVIEW> User = new List<SMT.HRM.CustomModel.V_EMPLOYEEVIEW>();
                        using (EmployeeBLL bll = new EmployeeBLL())
                        {
                            User = bll.GetEmployeeLeaders(PostID, isDirect);
                        }

                        //V_EMPLOYEEVIEW[] User = WcfPersonnel.GetEmployeeLeaders(PostID, isDirect);
                        string strtemp = "UserID=" + UserID + " 结束调用 直接上级,隔级上级,部门负责人:WcfPersonnel.GetEmployeeLeaders(岗位ID=" + PostID + ", isDirect=" + isDirect + ")";
                        if (User != null && User.Count > 0)
                        {
                            for (int i = 0; i < User.Count; i++)
                            {
                                UserInfo tmp = new UserInfo();
                                tmp.UserID = User[i].EMPLOYEEID;
                                tmp.UserName = User[i].EMPLOYEECNAME;
                                tmp.CompanyID = User[i].OWNERCOMPANYID;
                                tmp.DepartmentID = User[i].OWNERDEPARTMENTID;
                                tmp.PostID = User[i].OWNERPOSTID;

                                tmp.CompanyName = User[i].COMPANYNAME;
                                tmp.DepartmentName = User[i].DEPARTMENTNAME;
                                tmp.PostName = User[i].POSTNAME;
                                tmp.Roles = new List<TM_SaaS_OA_EFModel.T_SYS_ROLE>();
                                listUser.Add(tmp);
                                strtemp += "公司ID   = " + User[i].EMPLOYEEID + "\r\n";
                                strtemp += "部门ID   = " + User[i].OWNERDEPARTMENTID + "\r\n";
                                strtemp += "岗位ID   = " + User[i].OWNERPOSTID + "\r\n";
                                strtemp += "员工ID   = " + User[i].EMPLOYEEID + "\r\n";

                                strtemp += "公司名称 = " + User[i].COMPANYNAME + "\r\n";
                                strtemp += "部门名称 = " + User[i].DEPARTMENTNAME + "\r\n";
                                strtemp += "岗位名称 = " + User[i].POSTNAME + "\r\n";
                                strtemp += "员工姓名 = " + User[i].EMPLOYEECNAME + "\r\n";
                            }
                        }
                        #endregion
                        Tracer.Debug(strtemp);
                    }
                    else
                    {
                        #region 根据角色ID查找人
                        Tracer.Debug("UserID=" + UserID + " 开始调用 检索本状态(角色)对应用户:WcfPermissionService.GetFlowUserInfoByRoleID(角色ID=" + WFCurrentRoleId + ")");
                        WFCurrentRoleId = new Guid(CurrentRoleId).ToString("D");

                        try
                        {
                            List<SMT.HRM.CustomModel.Permission.FlowUserInfo> User = new List<HRM.CustomModel.Permission.FlowUserInfo>();//新的接口
                            using (SysUserBLL bll = new SysUserBLL())
                            {
                                User= bll.GetFlowUserInfoByRoleID(WFCurrentRoleId);
                            }

                            string strRole = "UserID=" + UserID + " 结束调用 检索本状态(角色)对应用户:WcfPermissionService.GetFlowUserInfoByRoleID(角色ID=" + WFCurrentRoleId + ")\r\n";

                            if (User != null && User.Count > 0)
                            {
                                for (int i = 0; i < User.Count; i++)
                                {
                                    #region
                                    UserInfo tmp = new UserInfo();
                                    strRole += "公司ID   = " + User[i].CompayID + "\r\n";
                                    strRole += "部门ID   = " + User[i].DepartmentID + "\r\n";
                                    strRole += "岗位ID   = " + User[i].PostID + "\r\n";
                                    strRole += "员工ID   = " + User[i].UserID + "\r\n";

//.........这里部分代码省略.........
开发者ID:SaintLoong,项目名称:TMFlow,代码行数:101,代码来源:FlowBLL.cs


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