Esempio n. 1
0
        public List <DmDPC> GetNumberList(string numberType)
        {
            string   dmTableNameSuffix = numberType.GetDmTableSuffix();
            DmDPCBiz Biz = new DmDPCBiz(ConfigHelper.D11x5DmTableConnStringName, dmTableNameSuffix);

            return(Biz.GetAll("Id", "Number"));
        }
Esempio n. 2
0
        public List <string> GetNumbers(string numberType)
        {
            string   dmTableNameSuffix = numberType.GetDmTableSuffix();
            DmDPCBiz Biz = new DmDPCBiz(ConfigHelper.D11x5DmTableConnStringName, dmTableNameSuffix);

            return(Biz.GetAll("Id").Select(x => x.Id).ToList());
        }
Esempio n. 3
0
        private void LoadData()
        {
            this.caching.Clear();

            string[] numberTypes = new string[] { "C2", "C3", "C4", "C5", "C6", "C7", "C8" };
            DmDPCBiz Biz         = new DmDPCBiz(ConfigHelper.D11x5DmTableConnStringName, string.Empty);

            foreach (var numberType in numberTypes)
            {
                Biz.DataAccessor.TableName = ConfigHelper.GetDmTableName(numberType.GetDmTableSuffix());
                List <DmDPC> list = Biz.GetAll("Id", "Number");
                this.FillToDictionary(numberType, list);
            }
        }