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; }
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); }
public static async Task<int> GetTaCount(TargetAudienceInfo taInfo) { //var model = new ServiceForSei.SpecimenInfo(); return 0; }
public static async Task <int> GetTaCount(TargetAudienceInfo taInfo) { //var model = new ServiceForSei.SpecimenInfo(); return(0); }
private TargetAudienceInfo GetTaInfo() { var taInfo = new TargetAudienceInfo { Age = this.MinAge + "," + this.MaxAge, Gender = this.SelectedGender, Zone = this.SelectedZone, Education = this.SelectedEducation, Marriage = this.SelectedMarriage, Income = this.SelectedIncome }; // taInfo.Gender = taInfo.ToList(this.SelectedGender); // taInfo.Zone = taInfo.ToList(this.SelectedZone); // taInfo.Education = taInfo.ToList(this.SelectedEducation); // taInfo.Marriage = taInfo.ToList(this.SelectedMarriage); // taInfo.Income = taInfo.ToList(this.SelectedIncome); return taInfo; }