public List <ShopScoreBodyDto> SearchBodyData(string projectCode, string shopCode, bool lossCheck, bool recheck, bool all) { DataSet ds = webService.SearchBodyData(projectCode, shopCode, lossCheck, recheck, all); List <ShopScoreBodyDto> shopScoreBodyList = new List <ShopScoreBodyDto>(); if (ds.Tables.Count > 0 && ds.Tables[0].Rows.Count > 0) { for (int i = 0; i < ds.Tables[0].Rows.Count; i++) { ShopScoreBodyDto info = new ShopScoreBodyDto(); info.Column1 = Convert.ToString(ds.Tables[0].Rows[i]["Column1"]); info.Column2 = Convert.ToString(ds.Tables[0].Rows[i]["Column2"]); info.SubjectCode = Convert.ToString(ds.Tables[0].Rows[i]["SubjectCode"]); if (ds.Tables[0].Rows[i]["Value"] != DBNull.Value) { info.Value = Convert.ToString(ds.Tables[0].Rows[i]["Value"]); if (info.Value.ToString().Contains("9999.00")) { info.Value = info.Value.ToString().Replace("9999.00", "."); } if (info.Value == null || Convert.ToString(info.Value) == "") { info.Value = "@@"; } } else { info.Value = "@@"; } shopScoreBodyList.Add(info); } } return(shopScoreBodyList); }
public List <ShopScoreBodyDto> SearchBodyData(string projectCode, string shopCode, string province, string city, string groupName, string salesOrAftersales, string carType, bool lossChk, bool score, bool photoScore, bool mscore) { DataSet ds = webService.SearchBodyData(projectCode, shopCode, province, city, groupName, salesOrAftersales, carType, lossChk, score, photoScore, mscore); List <ShopScoreBodyDto> shopScoreBodyList = new List <ShopScoreBodyDto>(); if (ds.Tables.Count > 0 && ds.Tables[0].Rows.Count > 0) { for (int i = 0; i < ds.Tables[0].Rows.Count; i++) { ShopScoreBodyDto info = new ShopScoreBodyDto(); info.Column1 = Convert.ToString(ds.Tables[0].Rows[i]["Column1"]); info.Column2 = Convert.ToString(ds.Tables[0].Rows[i]["Column2"]); info.SubjectCode = Convert.ToString(ds.Tables[0].Rows[i]["SubjectCode"]); if (ds.Tables[0].Rows[i]["Value"] != DBNull.Value) { info.Value = Convert.ToString(ds.Tables[0].Rows[i]["Value"]); if (info.Value.ToString().Contains("9999.00")) { info.Value = info.Value.ToString().Replace("9999.00", "."); } if ((info.Value == null || Convert.ToString(info.Value) == "")) { info.Value = "@@"; } } else { info.Value = "@@"; } shopScoreBodyList.Add(info); } } return(shopScoreBodyList); }