/// <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;
            }
        }

 

posted on 2018-10-08 10:11  蒙蒙浮霁月  阅读(226)  评论(0编辑  收藏  举报