public async Task<DataSet> GetTaData(string[] programName, string endDate, TargetAudienceInfo taInfo)
        {
            var taConfigDto = new TaConfigDto();
            taConfigDto.ParamModel = new SpecimenModel
            {
                Age = taInfo.Age,
                Gender = taInfo.Gender,
                Education = taInfo.Education,
                Marriage = taInfo.Marriage,
                Income = taInfo.Income,
                City = taInfo.Zone
            };

            taConfigDto.TimeString = endDate;
            taConfigDto.Programs = programName;

            var requestId = this.tcpClient.TaRequest(taConfigDto);
            DataSet dataSet = this.GetGetTaDataSet(requestId);
            return dataSet;
        }
Пример #2
0
        public async Task <DataSet> GetTaData(string[] programName, string endDate, TargetAudienceInfo taInfo)
        {
            var taConfigDto = new TaConfigDto();

            taConfigDto.ParamModel = new SpecimenModel
            {
                Age       = taInfo.Age,
                Gender    = taInfo.Gender,
                Education = taInfo.Education,
                Marriage  = taInfo.Marriage,
                Income    = taInfo.Income,
                City      = taInfo.Zone
            };

            taConfigDto.TimeString = endDate;
            taConfigDto.Programs   = programName;

            var     requestId = this.tcpClient.TaRequest(taConfigDto);
            DataSet dataSet   = this.GetGetTaDataSet(requestId);

            return(dataSet);
        }