예제 #1
0
        /// <summary>
        /// 添加工作流节点的角色审核权限
        /// </summary>
        /// <param name="inn"></param>
        /// <param name="id"></param>
        /// <param name="roleName"></param>
        /// <param name="region"></param>
        /// <param name="activityName"></param>
        /// <param name="tableName"></param>
        public static void AddWorkFlowRoleAuditByRegion(Innovator inn, string id, string roleName, string region, string activityName, string tableName)
        {
            List <string> activityNames = new List <string> {
                activityName
            };

            if (!string.IsNullOrEmpty(region))
            {
                region = "OASystem;" + region;
            }
            //获取财务分析员
            Item identity = IdentityDA.GetIdentityByParam(inn, roleName, region);

            if (!identity.isError() && identity.getItemCount() > 0)
            {
                string identityid = identity.getProperty("id");
                ActivityBll.AddActivityAuth(inn, id, identityid, activityNames, tableName);
            }
        }