Exemplo n.º 1
0
        public ExceptionTypes GetAllLookups(long?lookupTypeId, out List <DOCMN_LookupMaster> lstDOCMN_LookupMaster)
        {
            retValue = new ExceptionTypes();
            LookupDAL objLookupDAL = new LookupDAL();

            return(retValue = objLookupDAL.GetAllLookups(lookupTypeId, out lstDOCMN_LookupMaster));
        }
Exemplo n.º 2
0
        public static IEnumerable <ZipCountyView> GetZipCodesAndCountyFIPSForState(string StateFIPS)
        {
            List <ZipCountyView> ZipCodesAndCounties = new List <ZipCountyView>();

            System.Data.IDataReader reader = LookupDAL.GetZipCodeForStateFips(StateFIPS);
            //string CountyFIPS = string.Empty;
            while (reader.Read())
            {
                ZipCodesAndCounties.Add(new ZipCountyView(reader.GetString(0), reader.GetString(1), reader.GetString(2)));
            }
            return(ZipCodesAndCounties);
        }
Exemplo n.º 3
0
        //TODO: This is a quick fix to a problem I was having on CCF/Add refactor asap. JP
        public static IEnumerable <KeyValuePair <string, string> > GetZipCodeForCountyFips2(string CountyFips)
        {
            var _zipCodes = new List <KeyValuePair <string, string> >();

            IDataReader rdrZipCodes = LookupDAL.GetZipCodeForCountyFips(CountyFips);

            while (rdrZipCodes.Read())
            {
                _zipCodes.Add(new KeyValuePair <string, string>(rdrZipCodes.GetInt32(0).ToString(), rdrZipCodes.GetString(1)));
            }
            return(_zipCodes);
        }
Exemplo n.º 4
0
        public static IEnumerable <KeyValuePair <string, string> > GetCountiesForZipCode(string ZipCode)
        {
            var _CountyCodes = new List <KeyValuePair <string, string> >();

            IDataReader rdrCounty = LookupDAL.GetCountiesByZipCode(ZipCode);

            while (rdrCounty.Read())
            {
                _CountyCodes.Add(new KeyValuePair <string, string>(rdrCounty.GetString(0), rdrCounty.GetString(1)));
            }
            return(_CountyCodes);
        }
Exemplo n.º 5
0
        public static int GetAgencyID(string AgencyCode, string StateFIPS)
        {
            IDataReader AgencyData = LookupDAL.GetAgencyByCodeState(AgencyCode, StateFIPS);

            try
            {
                AgencyData.Read();
                int AgencyID = int.Parse(AgencyData["AgencyID"].ToString());
                AgencyData.Close();
                return(AgencyID);
            }
            finally
            {
                AgencyData.Close();
            }
        }
Exemplo n.º 6
0
 public static IEnumerable <KeyValuePair <int, string> > GetPresenterForState(string StateFIPS)
 {
     return(LookupDAL.GetPresenterForState(StateFIPS));
 }
Exemplo n.º 7
0
 /// <summary>
 /// Get Supervisors(Reviewers) for State Users in a state.
 /// </summary>
 /// <param name="StateFIPS"></param>
 /// <returns></returns>
 public static IEnumerable <KeyValuePair <int, string> > GetReviewersForStateScope(string StateFIPS)
 {
     return(LookupDAL.GetReviewersForStateScope(StateFIPS));
 }
Exemplo n.º 8
0
 public static IEnumerable <KeyValuePair <int, string> > GetClientContactSubmitterForState(string StateFIPS)
 {
     return(LookupDAL.GetClientContactSubmitterForState(StateFIPS));
 }
Exemplo n.º 9
0
 public static IEnumerable <Agency> GetAgenciesForSubStateRegion(int SubStateRegionId)
 {
     return(LookupDAL.GetAgenciesForSubStateRegion(SubStateRegionId));
 }
Exemplo n.º 10
0
 public static IEnumerable <KeyValuePair <int, string> > GetPresentorsForState(string StateFIPS, bool IsActive)
 {
     return(LookupDAL.GetPresentorsForState(StateFIPS, IsActive));
 }
Exemplo n.º 11
0
        public CustomerBusinessEntity GetCustomerById(int ID)
        {
            LookupDAL lookupDAL = new LookupDAL();

            return(lookupDAL.GetCustomerById(ID));
        }
Exemplo n.º 12
0
 public IEnumerable <KeyValuePair <string, string> > GetZipByAgencyIdForReport(int AgencyId, FormType formType)
 {
     return(LookupDAL.GetZipByAgencyIdForReport(AgencyId, formType));
 }
Exemplo n.º 13
0
 public static IEnumerable <KeyValuePair <string, string> > GetCountyForAgency(int AgencyId)
 {
     return(LookupDAL.GetCountyForAgency(AgencyId));
 }
Exemplo n.º 14
0
 public IEnumerable <KeyValuePair <int, string> > GetAgencies(string stateFIPS, string countyFIPS, string zip)
 {
     return(Mapper.Map <IEnumerable <Agency>, IEnumerable <KeyValuePair <int, string> > >(LookupDAL.GetAgencies(stateFIPS, countyFIPS, zip)));
 }
Exemplo n.º 15
0
 /// <summary>
 /// Returns the Sub State Regions for State, returned by Data Layer.
 /// Caching is currently not supported by this method due to pressing importance of doing it.
 /// It is to be noted that each State has its own Sub State Region list and so, once the
 /// Caching requirement hits the priority list, this method will be modified to support it.
 /// </summary>
 /// <param name="StateFIPS"></param>
 /// <returns></returns>
 public static IDictionary <int, string> GetSubStateRegionsForState(string StateFIPS)
 {
     return(LookupDAL.GetSubStateRegionsForState(StateFIPS));
 }
Exemplo n.º 16
0
 /// <summary>
 /// Returns the CMS Regions, returned by Data Layer.
 /// </summary>
 /// <param name="StateFIPS"></param>
 /// <returns></returns>
 public static IDictionary <int, string> GetCMSRegions()
 {
     return(LookupDAL.GetCMSRegions());
 }
Exemplo n.º 17
0
 public IEnumerable <KeyValuePair <string, string> > GetZipCodeForClientResidenceByState(string stateFIPS)
 {
     return(LookupDAL.GetZipForClientResidenceByState(stateFIPS));
 }
Exemplo n.º 18
0
 public IEnumerable <KeyValuePair <string, string> > GetZipCodeForCounselorLocationByState(string stateFIPS, FormType formType)
 {
     return(LookupDAL.GetZipForCounselorLocationByState(stateFIPS, formType));
 }
Exemplo n.º 19
0
 public IEnumerable <KeyValuePair <string, string> > GetZipCodeOfClientResidenceByAgencyIdForReport(int AgencyId)
 {
     return(LookupDAL.GetZipCodeOfClientResidenceByAgencyIdForReport(AgencyId));
 }
Exemplo n.º 20
0
 /// <summary>
 /// Returns Supervisors(Reviewers) for an Agency or Sub State
 /// For State Users, refer to GetReviewersForStateScope.
 /// </summary>
 /// <param name="UserRegionId"></param>
 /// <returns></returns>
 public static IEnumerable <KeyValuePair <int, string> > GetReviewersByUserRegion(int UserRegionId, Scope UserScope)
 {
     return(LookupDAL.GetReviewersByUserRegion(UserRegionId, UserScope));
 }
Exemplo n.º 21
0
        public List <LoanTypeEntity> GetLoanTypes()
        {
            LookupDAL lookupDAL = new LookupDAL();

            return(lookupDAL.GetLoanTypes());
        }
Exemplo n.º 22
0
 public IEnumerable <KeyValuePair <string, string> > GetCounties(string stateFIPS)
 {
     return(LookupDAL.GetCountiesNoMapping(stateFIPS));
 }
Exemplo n.º 23
0
 /// <summary>
 /// Returns ShipDirectorID for a given state.
 /// </summary>
 /// <param name="StateFIPS"></param>
 /// <returns></returns>
 public static int?GetShipDirectorForState(string StateFIPS)
 {
     return(LookupDAL.GetShipDirectorForState(StateFIPS));
 }
Exemplo n.º 24
0
 /// <summary>
 /// Get StateFIPS of all States that belong to a CMS Region
 /// </summary>
 /// <returns></returns>
 public static IEnumerable <string> GetStatesForCMSRegion(int CMSRegionId)
 {
     return(LookupDAL.GetStatesForCMSRegion(CMSRegionId));
 }
Exemplo n.º 25
0
 //most proabably not used now..
 public IEnumerable <KeyValuePair <string, string> > GetCountyForCounselorLocationByAgencyId(int AgencyId)
 {
     return(Mapper.Map <IEnumerable <County>, IEnumerable <KeyValuePair <string, string> > >(LookupDAL.GetCountyForCounselorLocationByAgencyId(AgencyId)));
 }
Exemplo n.º 26
0
        //public static IEnumerable<ZipCountyView> GetSubStateRegionForState(string StateFIPS)
        //{
        //    List<ZipCountyView> ZipCodes = new List<ZipCountyView>();
        //    System.Data.IDataReader reader = LookupDAL.GetZipCodeOfCountyLocationForStateFips(StateFIPS);
        //    while (reader.Read())
        //    {
        //        ZipCodes.Add(new ZipCountyView(reader.GetString(0)));
        //    }
        //    return ZipCodes;
        //}

        public static string GetStateFipsCodeByShortName(string ShortName)
        {
            return(LookupDAL.GetStateFipsCodeByShortName(ShortName));
        }
Exemplo n.º 27
0
 public static IDictionary <Int32, string> GetAgenciesForState(string StateFIPS, bool Inactive)
 {
     return(LookupDAL.GetAgenciesForStateLookup(StateFIPS, Inactive));
 }
Exemplo n.º 28
0
 public LookupBO()
 {
     lookupDAL = new LookupDAL();
 }
Exemplo n.º 29
0
        public List <QuestionEntity> GetQuestions()
        {
            LookupDAL lookupDAL = new LookupDAL();

            return(lookupDAL.GetQuestions());
        }