/// <summary> /// 数据校验 /// </summary> /// <param name="standardlist"></param> /// <param name="comparelist"></param> /// <returns></returns> public bool Coparedata(List<string> standardlist, List<string> comparelist) { if (standardlist.Count != comparelist.Count) { return false; } else { for (int i = 0; i < standardlist.Count; i++) { if (standardlist[i].Trim() != comparelist[i].Trim()) { return false; } } return true; } }