コード例 #1
0
        public async Task <List <UserLookupModel> > GetUsersFilteredbyCommitteeTypeId([FromBody] CommitteeUserSearchCriteriaModel userSearchCriteriaModel)
        {
            userSearchCriteriaModel = GetCommitteeUserAgencyTypeAndIdWithFlags(userSearchCriteriaModel);
            if (userSearchCriteriaModel.CommitteeTypeId == (int)Enums.CommitteeType.OpenOfferCommittee)
            {
                userSearchCriteriaModel.RoleNames.Add(RoleNames.OffersOppeningSecretary);
                userSearchCriteriaModel.RoleNames.Add(RoleNames.OffersOppeningManager);
            }
            else if (userSearchCriteriaModel.CommitteeTypeId == (int)Enums.CommitteeType.CheckOfferCommittee)
            {
                userSearchCriteriaModel.RoleNames.Add(RoleNames.OffersCheckSecretary);
                userSearchCriteriaModel.RoleNames.Add(RoleNames.OffersCheckManager);
            }
            else if (userSearchCriteriaModel.CommitteeTypeId == (int)Enums.CommitteeType.PreQualificationCommittee)
            {
                userSearchCriteriaModel.RoleNames.Add(RoleNames.PreQualificationCommitteeSecretary);
                userSearchCriteriaModel.RoleNames.Add(RoleNames.PreQualificationCommitteeManager);
            }
            else if (userSearchCriteriaModel.CommitteeTypeId == (int)Enums.CommitteeType.PurchaseCommittee)
            {
                userSearchCriteriaModel.RoleNames.Add(RoleNames.OffersPurchaseSecretary);
                userSearchCriteriaModel.RoleNames.Add(RoleNames.OffersPurchaseManager);
            }
            else if (userSearchCriteriaModel.CommitteeTypeId == (int)Enums.CommitteeType.TechincalCommittee)
            {
                userSearchCriteriaModel.RoleNames.Add(RoleNames.TechnicalCommitteeUser);
            }
            var usersForCommitteeTypeId = await _iDMAppService.GetUsersbyCommitteeTypeId(userSearchCriteriaModel);

            return(usersForCommitteeTypeId);
        }
コード例 #2
0
        public async Task <List <UserLookupModel> > GetUsersbyCommitteeTypeId(int committeeTypeId, int committeeId)
        {
            UsersSearchCriteriaModel userSearchCriteriaModel = new UsersSearchCriteriaModel();

            userSearchCriteriaModel = GetUserAgencyTypeAndIdWithFlags(userSearchCriteriaModel);
            var usersForCommitteeTypeId = await _iDMAppService.GetUsersbyCommitteeTypeId(userSearchCriteriaModel.AgencyId, committeeId, committeeTypeId, "", "", userSearchCriteriaModel.AgencyType);

            return(usersForCommitteeTypeId);
        }