public List<string> Handle(ActivityAuth auth)
 {
     //var user = userbll.GetCurrentUser();
     //string userid = user.User.ID;
     string userid = "13";
     UserleaderWorkflowAuthority authority = new UserleaderWorkflowAuthority();
     return authority.GetUserIDs(userid, Convert.ToInt32(auth.Value));
 }
示例#2
0
        public List <string> Handle(ActivityAuth auth)
        {
            //var user = userbll.GetCurrentUser();
            //string userid = user.User.ID;
            string userid = "13";
            UserleaderWorkflowAuthority authority = new UserleaderWorkflowAuthority();

            return(authority.GetUserIDs(userid, Convert.ToInt32(auth.Value)));
        }
 public List<string> Handle(ActivityAuth auth)
 {
     ISqlMapper mapper = Common.GetMapperFromSession();
     WorkflowDao dao = new WorkflowDao(mapper);
     Workflow wf = dao.Query(new WorkflowQueryForm { ID = auth.WorkflowID }).FirstOrDefault();
     string userid = wf.Creator;
     UserleaderWorkflowAuthority authority = new UserleaderWorkflowAuthority();
     return authority.GetUserIDs(userid, Convert.ToInt32(auth.Value));
 }
        public List <string> Handle(ActivityAuth auth)
        {
            ISqlMapper  mapper = Common.GetMapperFromSession();
            WorkflowDao dao    = new WorkflowDao(mapper);
            Workflow    wf     = dao.Query(new WorkflowQueryForm {
                ID = auth.WorkflowID
            }).FirstOrDefault();
            string userid = wf.Creator;
            UserleaderWorkflowAuthority authority = new UserleaderWorkflowAuthority();

            return(authority.GetUserIDs(userid, Convert.ToInt32(auth.Value)));
        }