Exemplo n.º 1
0
 public ChildController(
     ILogger <BaseController> logger,
     VVDCCore.Tools.Interfaces.IResourceManager resxManager,
     ResourceServiceFactory factory) : base(logger, resxManager)
 {
     _factory = factory;
 }
Exemplo n.º 2
0
        /// <summary>
        /// 构造方法
        /// </summary>
        public WorkflowService()
        {
            //设置当前数据为 ORACLE
            //DBTypeExtenstions.SetDBType(DBTypeEnum.ORACLE);

            //资源接口组件
            ResourceService = ResourceServiceFactory.Create();
        }
Exemplo n.º 3
0
        /// <summary>
        /// 构造方法
        /// </summary>
        public WorkflowService()
        {
            //设置当前数据为 ORACLE
            //DBTypeExtenstions.SetDBType(DBTypeEnum.ORACLE, new OracleWfDataProvider());

            //资源接口组件
            ResourceService = ResourceServiceFactory.Create();
        }
Exemplo n.º 4
0
        /// <summary>
        /// 创建活动节点执行者列表
        /// </summary>
        /// <param name="roleList">角色列表</param>
        /// <returns></returns>
        internal static PerformerList CreatePerformerList(IList <Role> roleList)
        {
            var roleIDs         = roleList.Select(x => x.ID).ToArray();
            var resourceService = ResourceServiceFactory.Create();
            var userList        = resourceService.GetUserListByRoles(roleIDs);
            var performerList   = new PerformerList();

            foreach (var user in userList)
            {
                var performer = new Performer(user.UserID.ToString(), user.UserName);

                performerList.Add(performer);
            }
            return(performerList);
        }