Exemplo n.º 1
0
 private bool IsExists(string billno, QueueInfoOR[] list)
 {
     foreach (QueueInfoOR obj in list)
     {
         if (obj.Billno == billno)
         {
             return true;
         }
     }
     return false;
 }
Exemplo n.º 2
0
 /// <summary>
 /// 判断队列是否改变
 /// </summary>
 /// <param name="list1"></param>
 /// <param name="list2"></param>
 /// <returns></returns>
 private bool isChange(QueueInfoOR[] list1, QueueInfoOR[] list2)
 {
     if (list1 == null && list2 == null)
         return false;
     else if (list1 == null || list1 == null)//两者不同
         return true;
     else if (list1.Count() == 0 && list2.Count() == 0)
         return false;
     else if (list1.Count() != list2.Count())//两者不同
         return true;
     else
     {
         foreach (var v in list1)
         {
             if (!IsExists(v.Billno, list2))//list1 的无素在list2中不存在
             {
                 return true;
             }
         }
     }
     return false;
 }