Beispiel #1
0
        public override List <Approver> GetApprover(int formNo)
        {
            List <Approver> listApprover = new List <Approver>();

            ParticipantOrgInfo mdOrg = ParticipantDataAccess.GetParticipantOrg(ParticipantId);

            if (mdOrg == null)
            {
                return(listApprover);
            }

            string[] arrUserId = mdOrg.UserId.Split(';');

            for (int i = 0; i < arrUserId.Length; i++)
            {
                User user = new User(arrUserId[i]);

                Approver approver = new Approver();
                approver.ApproverId   = user.UserId;
                approver.ApproverName = user.UserName;
                approver.ApproveRole  = "";
                approver.SequenceNo   = 1;

                listApprover.Add(approver);
            }

            return(listApprover);
        }
Beispiel #2
0
        public override List <Approver> GetApprover(int formNo)
        {
            Object obj = ParticipantDataAccess.GetParticipantField(ParticipantId, formNo);

            List <Approver> listApprover = new List <Approver>();

            if (obj != null)
            {
                User user = new User((string)obj);

                Approver approver = new Approver();
                approver.ApproverId   = user.UserId;
                approver.ApproverName = user.UserName;
                approver.ApproveRole  = "";
                approver.SequenceNo   = 1;

                listApprover.Add(approver);
            }

            return(listApprover);
        }