예제 #1
0
        public static List <CVRefEntity> GetThirdPartyProviders(int fullList, string ConnectionString)
        {
            List <CVRefEntity> refEntities = new List <CVRefEntity>();
            CVRefFacade        fac         = new CVRefFacade(ConnectionString);

            refEntities = fac.GetThirdPartyProviders(fullList);
            refEntities.RemoveAll(x => x.Value == "DNB" || x.Value == "ORB");
            refEntities.ForEach(x => x.DDValue = x.Value + "::" + x.Code);
            return(refEntities);
        }
예제 #2
0
        public List <CVRefEntity> GetCVRefTypeByTypeCodeAutoAcceptance(int typeCode, string ConnectionString)
        {
            List <CVRefEntity> refEntities = new List <CVRefEntity>();
            CVRefFacade        fac         = new CVRefFacade(ConnectionString);

            refEntities = fac.GetAPItype(typeCode);
            if (typeCode == (int)CVRefTypeCode.THIRD_PARTY_PROVIDER)
            {
                refEntities.RemoveAll(x => x.Value == "DNB" || x.Value == "ORB");
            }
            return(refEntities);
        }
예제 #3
0
        public static SelectList GetFieldsForThirdPartyEnrichment(string ConnectionString, string providerCode = "0")
        {
            int code = 0;
            List <SelectListItem> lstAllFilter = new List <SelectListItem>();
            CVRefFacade           fac          = new CVRefFacade(ConnectionString);

            try
            {
                code = Convert.ToInt32(providerCode);
            }
            catch (Exception)
            {
                code = 0;
            }
            DataTable dt = fac.GetThirdPartyProviderEnrichments(code);

            for (int i = 0; i < dt.Rows.Count; i++)
            {
                lstAllFilter.Add(new SelectListItem {
                    Value = dt.Rows[i]["Description"].ToString(), Text = dt.Rows[i]["Description"].ToString()
                });
            }
            return(new SelectList(lstAllFilter, "Value", "Text"));
        }