Jump to content

Recommended Posts

Posted

Hi All,

 

Just a quick one regarding the booking system - When staff try to book a room we have UNAVAILABLE (systemadmin) during lesson time but before it will be a break time/lunch time.

 

How can I remove the systemadmin for lessons? The charging at break times is fine..

 

Could you point us to the file/folders i need to edit?

 

I have also attached a picture to show you. (CHARGING is at break time and the UNAVAILABLE system admin is lesson 2)

 

Thanks in advance

Manny

1.PNG

Posted (edited)

Erm, I think it's in the bookingrules.xml file


  
    bookcharging(booking.NextLesson(),Resource.ChargingPeriods)
  
  
    
    
    bookcharging(booking.NextLesson(),Resource.ChargingPeriods)
    bookunavailable(booking.PreviousLesson(),-1))
  

 

I think you can add another condition, booking.NextLesson().Name Not "Break"

Edited by nickbro
Posted

Hi Nick,

 

Thanks for getting back to me, here is what we have in the bookingrules.xml file:

 

-

-

bookcharging(booking.NextLesson(),Resource.ChargingPeriods)

-

bookcharging(booking.NextLesson(),Resource.ChargingPeriods)

bookunavailable(booking.PreviousLesson(),-1))

 

----

 

So where could i add this condition you was talking about ? i can see action bookingcharging & the booking unavailable under that, thats what we are having trouble with. Could we remove it completely so it doesn't have charging at all? if so what would the text be within this file..

 

I want to be 100% sure i do the correct thing here as this system is already live and in use all day!

 

Cheers,

Manny

  • 2 months later...
  • 2 weeks later...
Posted

Manny,

 

Assuming you are on the lates version, the rule file I use is:

 

busy(UNAVAILABLE)

busy(Lunch)

busy(Not Available)

bookcharging(booking.NextLesson(),Resource.ChargingPeriods)

bookcharging(booking.NextLesson(),Resource.ChargingPeriods)

bookunavailable(booking.PreviousLesson(),-1))

 

Let me just explain what that does for me:

 

There's 3 "PreProcess" rules - these control when people are allowed to book without having to put a booking the xml file.

 

Rule 1: Don't allow bookings on the same day i.e. BookingData is Now and if the resource is a laptop trolley. This stops a teacher booking a trolley of laptops once the IT team have planned their day.

Rule 2: Don't allow laptops to be booked when everyone is eating lunch

Rule 3: Don't allow laptops to be booked when everyone has gone home

 

The 4th rule is a default rule for loan objects - we don't use this so not sure why I tweaked from default.

 

The 5th rule is a booking rule and puts stuff in the XML file. If someone books a chargable device, and it's not a loan, the book the next lesson as a charging period, and mark the previous lesson as unavailable - in our case, give us time to move trolley into place and equally, make sure we don't run out of charge mid lesson by having a break. We have 40 minute lessons, so works in our case.

 

So the question is what you need to achieve:

 

What is the structure of your school day - e.g. : P1,2, Break, P3, P4, Lunch, P5, after school

When would you want staff to be able to book laptops ? i.e. if they book P2, would you want to not allow P1, but allow P3?

Do you have 'double' lessons?

Posted (edited)

Hi Minimoo,

 

Thanks for the reply & message much appreciated :)

 

Sorry for the late reply i've had a busy week!

 

Answering your questions :

 

1) the structure is P1 Break p2,p3 lunch, p4, p5 (no bookings after school)

2) we want staff to book any time but not break or lunch

3) we have no double lessons (all classed as separate)

 

as i stated in the previous messages we sometimes see lessons are unavailable and set as charging but how would we remove that? It only happens on one though (we have 3 sets of laptop trolleys) .

 

Also this is a live environment so i dont want to make a change when it might not work!

 

Any suggestions?

 

Cheers,

Manny

Edited by Manny21555
Posted

In terms of 2:

 

you should be able to add:

 

a) check Lessons for break lunch are named exactly as i've got (or change) i.e. condition2="Break" . I think resource.Type Laptops is built in.

 

busy(Break)

busy(Lunch)

 

The above 2 rules there are 'preprocessing' so don't change the xml file of bookings, but should put in a 'dummy' busy booking for break / lunch periods for laptops only. As they don't change the bookings.xml, you should be able to take a quick backup of the xml files, apply it live and hit refresh and see it straight away.

 

 

And in terms of your other bit - as Nick implies, do you have a mismatch going on here that 2 of the trolleys are set to EnableCharging=False and one the other way around or vice versa

Posted

Hi Nick/Minimoo,

 

First of all thanks for the replies - i have looked on the hapconfig.xml file and i have found these lines:

 

 

 

 

--

 

We also have ICT Rooms and another line saying library but we can ignore them as we are only having issues with the PT1 one, so my question is this.

 

1) I will make a backup of this file first of all so if i make any changes i can easily put this back in place.

2) could i just copy one of pt-2 or pt-3 line and paste that to where number pt1 is ? (change the names of course) this should fix the issue we are having ? (i'm no programmer as you guys can see!)

 

Regards to what minimoo - I think the fix from nick would be enough to fix the charging problem ? as it takes the next available time away (see above - pt-1 line)

 

What you guys think?

 

I don't want to make a change straight away and loose the booking system as again its live and this week students have some exams (they are using the laptops) I dont want my head on a stick that's for sure!

 

Cheers,

Manny

Posted

Hi Paul,

 

So i don't need to change anything else on that line?

 

I think that will solve the issue hopefully it does anyway! I will try it later - if this doesn't work i will post back

 

Cheers,

Manny

Posted

Hi Guys,

 

Just to say i have changed the enable charging as "False" but it still saying charging on the same day/next day etc.

 

Is it worth me copying the pt2 line for example pasting that into PT1 line? (obviously change the names)

 

Cheers,

Manny

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...