Ejemplo n.º 1
0
 private IEnumerable <KeyValuePair <int, string> > GetCounselors(int AgencyId)
 {
     //Populate Counselors from DB
     CCFBLL.CCCounselorsFilterCriteria criteria = new CCFBLL.CCCounselorsFilterCriteria();
     criteria.StateFIPS = ViewData.AgencyState.Code;
     criteria.scope     = this.AccountInfo.Scope;
     criteria.UserId    = this.AccountInfo.UserId;
     criteria.AgencyId  = AgencyId;
     return(Logic.GetClientContactCounselorsForCCForm(criteria, false));
 }
Ejemplo n.º 2
0
        //protected bool IsDescriptor(Descriptor type)
        //{
        //    if (ActiveAgencyDescriptors == null) return false;

        //    foreach (var activeAgencyDescriptor in ActiveAgencyDescriptors)
        //    {
        //        foreach (var descriptor in activeAgencyDescriptor.Value)
        //        {
        //            if (descriptor != 0 && (Descriptor)descriptor == type)
        //                return true;
        //        }
        //    }

        //    return false;
        //}

        //protected IList<int> GetAgencies(Descriptor type)
        //{
        //    var agencies = new List<int>();

        //    if (ActiveAgencyDescriptors == null) return agencies;

        //    foreach (var activeAgencyDescriptor in ActiveAgencyDescriptors)
        //    {
        //        foreach (var descriptor in activeAgencyDescriptor.Value)
        //        {
        //            if (descriptor != 0 && (Descriptor)descriptor == type)
        //                agencies.Add(activeAgencyDescriptor.Key);
        //        }
        //    }

        //    return agencies;
        //}

        private IEnumerable <KeyValuePair <int, string> > GetCounselors(int?AgencyId)
        {
            //Populate Counselors from DB
            CCFBLL.CCCounselorsFilterCriteria criteria = new CCFBLL.CCCounselorsFilterCriteria();
            criteria.StateFIPS = AccountInfo.IsCMSLevel ? State.GetCode(dropDownListState.SelectedValue) : AccountInfo.StateFIPS;
            criteria.scope     = this.AccountInfo.Scope;
            criteria.UserId    = this.AccountInfo.UserId;
            criteria.AgencyId  = AgencyId;
            return(Logic.GetClientContactCounselors(criteria));
        }