/[H6]/DatabaseLayer.cpp
ViewVC logotype

Diff of /DatabaseLayer.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 31 by torben, Sun Sep 3 10:10:19 2006 UTC revision 36 by torben, Mon Sep 4 08:53:10 2006 UTC
# Line 373  void DatabaseLayer::checkReservations(CS Line 373  void DatabaseLayer::checkReservations(CS
373          }          }
374          rs.Close();          rs.Close();
375    
376            if (reservationCount > 0 && status == "3") {//equipment is available and has at lease one reservation
         if (reservationCount > 0 && status == 3) {//equipment is available and has at lease one reservation  
377                  SQL = "UPDATE Udstyr SET Status = 2 WHERE Stregkode = '" + barcode + "'";                  SQL = "UPDATE Udstyr SET Status = 2 WHERE Stregkode = '" + barcode + "'";
378                  db.ExecuteSQL(SQL);                  db.ExecuteSQL(SQL);
379          }          }

Legend:
Removed from v.31  
changed lines
  Added in v.36

  ViewVC Help
Powered by ViewVC 1.1.20