public static List <DTO.EwavFrequencyControlDto> FrequencyOutputList(System.Data.DataTable dt, EwavGadgetParameters ewavGadgetParameters) { List <EwavFrequencyControlDto> fdsList = new List <EwavFrequencyControlDto>(); for (int x = 0; x < dt.Rows.Count; x++) { for (int i = 1; i < dt.Columns.Count; i++) { Dictionary <string, double> dic = GetConfLimit((double)dt.Rows[x][i], (double)dt.Compute(string.Format("SUM([{0}])", dt.Columns[i].ColumnName), "")); EwavFrequencyControlDto frequencyItem = new EwavFrequencyControlDto { FrequencyColumn = dt.Rows[x][i].ToString(), FreqVariable = dt.Rows[x][ewavGadgetParameters.MainVariableName].ToString(), Perc95ClLowerColumn = dic["lower"].ToString(), //dtDataSources.Rows[x]["freq"].ToString(), // dtDataSources.Rows[x][ewavGadgetParameters.MainVariableName].ToString(), Perc95ClUpperColumn = dic["upper"].ToString(), //dtDataSources.Rows[x]["freq"].ToString(), //dtDataSources.Rows[x][ewavGadgetParameters.MainVariableName].ToString(), PercentColumn = dt.Rows[x][i].ToString(), //dtDataSources.Rows[x][ewavGadgetParameters.MainVariableName].ToString(), NameOfDtoList = dt.TableName.ToString() }; if (frequencyItem.NameOfDtoList.Trim().IndexOf("=") > 0) { switch (frequencyItem.NameOfDtoList.ToString().Substring(frequencyItem.NameOfDtoList.Trim().IndexOf("=") + 1)) { case " 0": frequencyItem.NameOfDtoList = frequencyItem.NameOfDtoList.Replace(frequencyItem.NameOfDtoList.ToString().Substring(frequencyItem.NameOfDtoList.Trim().IndexOf("=") + 1), " No"); break; case " false": frequencyItem.NameOfDtoList = frequencyItem.NameOfDtoList.Replace(frequencyItem.NameOfDtoList.ToString().Substring(frequencyItem.NameOfDtoList.Trim().IndexOf("=") + 1), " No"); break; case " 1": frequencyItem.NameOfDtoList = frequencyItem.NameOfDtoList.Replace(frequencyItem.NameOfDtoList.ToString().Substring(frequencyItem.NameOfDtoList.Trim().IndexOf("=") + 1), " Yes"); break; case " true": frequencyItem.NameOfDtoList = frequencyItem.NameOfDtoList.Replace(frequencyItem.NameOfDtoList.ToString().Substring(frequencyItem.NameOfDtoList.Trim().IndexOf("=") + 1), " Yes"); break; case " ": frequencyItem.NameOfDtoList = string.Format("{0}Missing", frequencyItem.NameOfDtoList); break; default: break; } } fdsList.Add(frequencyItem); } } return(fdsList); }
public void PortClassToClient7(EwavFrequencyControlDto gp) { }