public void updateHIDZoneQueue_Pasue(string car_id, string entry_sec_id, bool isPasue) { using (DBConnection_EF con = DBConnection_EF.GetUContext()) { AHIDZONEQUEUE hidObj = HIDQueueDao.getHIDZoneQueue(con, car_id, entry_sec_id); if (hidObj != null) { hidObj.IS_PASUE = isPasue; con.Entry(hidObj).Property(p => p.IS_PASUE).IsModified = true; HIDQueueDao.Update(con, hidObj); } } }
public bool updateHIDZoneQueue_ReleasTime(string car_id, string entry_sec_id) { bool isSeccess = true; using (DBConnection_EF con = DBConnection_EF.GetUContext()) { AHIDZONEQUEUE hidObj = HIDQueueDao.getHIDZoneQueue(con, car_id, entry_sec_id); if (hidObj != null) { hidObj.RELEASE_TIME = DateTime.Now; hidObj.STATUS = E_HIDQueueStatus.Release; con.Entry(hidObj).Property(p => p.RELEASE_TIME).IsModified = true; con.Entry(hidObj).Property(p => p.STATUS).IsModified = true; HIDQueueDao.Update(con, hidObj); } } return(isSeccess); }
public bool updateHIDZoneQueue_BlockingTime(string vh_id, string current_sec_id) { bool isSeccess = true; using (DBConnection_EF con = DBConnection_EF.GetUContext()) { AHIDZONEQUEUE hidObj = HIDQueueDao.getHIDZoneQueue(con, vh_id, current_sec_id); if (hidObj != null) { hidObj.BLOCK_TIME = DateTime.Now; hidObj.STATUS = E_HIDQueueStatus.Blocking; con.Entry(hidObj).Property(p => p.BLOCK_TIME).IsModified = true; con.Entry(hidObj).Property(p => p.STATUS).IsModified = true; HIDQueueDao.Update(con, hidObj); } } return(isSeccess); }