public static bool DoesItNeedToBeRefreshed(int userID)
 {
     BLL.PhysicalStore phyStore = new PhysicalStore();
     phyStore.LoadAll();
     while (!phyStore.EOF)
     {
         BLL.UserPhysicalStore usrPhyStore = new UserPhysicalStore();
         usrPhyStore.LoadAllByUserAndStoreID(userID, phyStore.ID);
         if (usrPhyStore.RowCount == 0)
         {
             return true;
         }
         phyStore.MoveNext();
     }
     return false;
 }
コード例 #2
0
 public static bool DoesItNeedToBeRefreshed(int userID)
 {
     BLL.PhysicalStore phyStore = new PhysicalStore();
     phyStore.LoadAll();
     while (!phyStore.EOF)
     {
         BLL.UserPhysicalStore usrPhyStore = new UserPhysicalStore();
         usrPhyStore.LoadAllByUserAndStoreID(userID, phyStore.ID);
         if (usrPhyStore.RowCount == 0)
         {
             return(true);
         }
         phyStore.MoveNext();
     }
     return(false);
 }