+ Post New Thread
Page 1 of 8 12345 ... LastLast
Results 1 to 15 of 109
Home Access Plus+ Thread, Booking System: Split Resources in Projects:; Home Access Plus+ is amazing! The file manager functionality is excellent and the end-user interface looks clean and polished. I ...
  1. #1

    Join Date
    May 2013
    Posts
    65
    Thank Post
    0
    Thanked 1 Time in 1 Post
    Rep Power
    0

    Booking System: Split Resources

    Home Access Plus+ is amazing! The file manager functionality is excellent and the end-user interface looks clean and polished. I can't believe you offer this for free; it's much appreciated! Do you accept donations?

    In the booking system, it looks like you might be in the early stages of implementing this with the "Laptop" resource type, but do you plan on allowing multiple users to split resources within the same lesson? I have a couple computer labs that may be reserved for multiple classes within the same time slot because there are more than enough workstations to accommodate them. This same concept goes for a couple of my laptop carts as well. I've attached an (edited) screenshot that will hopefully convey my thoughts.

    Booking System: Split Resources-split-resources.png

  2. #2
    nickbro's Avatar
    Join Date
    Jul 2010
    Location
    Gilwern, Wales
    Posts
    3,550
    Thank Post
    38
    Thanked 505 Times in 436 Posts
    Rep Power
    114
    Donations can be made, if willing, either in the form of sugar gifts or Paypal monetary transfers, pm for either address.

    Unfortunately I think that will be a bit difficult to implement.

    Setting a quantity required outside of a Laptop resource is coming in the next release (see checking: 83787). This should show to staff if there is a partially free booking which they 'could' share. It would then be a discussion with that member of staff to see if a share is possible.
    Last edited by nickbro; 25th May 2013 at 01:25 AM.

  3. #3

    Join Date
    May 2013
    Posts
    65
    Thank Post
    0
    Thanked 1 Time in 1 Post
    Rep Power
    0
    Quote Originally Posted by nickbro View Post
    Donations can be made, if willing, either in the form of sugar gifts or Paypal monetary transfers, pm for either address.

    Unfortunately I think that will be a bit difficult to implement.

    Setting a quantity required outside of a Laptop resource is coming in the next release (see checking: 83787). This should show to staff if there is a partially free booking which they 'could' share. It would then be a discussion with that member of staff to see if a share is possible.
    Have a pub night on me!

    I'm glad to hear you're working on booking system improvements!

    Ha! It's less like a discussion and more like a brawl.

    I'm definitely no developer, but I'm sometimes capable enough to hack other brilliant developers' code to get it to do what I want (as long as it's a minor change). Of course I'm more comfortable with PHP and VB than C#...and it looks like most of the logic is compiled into binaries so I wouldn't know where to start with that, heh.

    If this were PHP/MySQL (not C#/XML), I figure the simplest way to do this would add a "maxresourcecount" field for the booking system resource and do something like this. Obviously, it's more difficult than I make it sound...especially when you already have a day job!

    PHP Code:
    //pull max resource count from configuration
    $intMaxResourceCount mysql_query"SELECT `maxresourcecount` FROM `bookingsystem_resources` WHERE name='$strResourceName'" );

    //calculate resource count already booked (an alternative would be to loop through the records and add them up)
    $intBookedResourceCount mysql_query"SELECT SUM(`bookedresourcecount`) FROM `bookings` WHERE (name='$strResourceName') AND (`date`='$strDate') AND (`lesson`='$strLesson')" );

    //determine whether or not to allow booking
    if($intBookedResourceCount $intMaxResourceCount){
        
    //allow booking if requested quantity is less than or equal to: $intMaxResourceCount - $intBookedResourceCount
    }else{
        
    //don't allow booking


  4. #4
    nickbro's Avatar
    Join Date
    Jul 2010
    Location
    Gilwern, Wales
    Posts
    3,550
    Thank Post
    38
    Thanked 505 Times in 436 Posts
    Rep Power
    114
    It's coming, I had ideas overnight on how we could do it, render it anyhow

  5. #5
    nickbro's Avatar
    Join Date
    Jul 2010
    Location
    Gilwern, Wales
    Posts
    3,550
    Thank Post
    38
    Thanked 505 Times in 436 Posts
    Rep Power
    114
    A hint of things to come: https://twitter.com/techienickb/stat...14657192738817

    Attachment 18382Attachment 18383
    Testers needed. The booking system display gets cocked up by this, but hopefully can be fixed

  6. #6

    Join Date
    Apr 2012
    Posts
    417
    Thank Post
    39
    Thanked 35 Times in 28 Posts
    Rep Power
    15
    Happy to volunteer to help test.

  7. #7

    Join Date
    May 2013
    Posts
    65
    Thank Post
    0
    Thanked 1 Time in 1 Post
    Rep Power
    0
    Holy cow, Nick; you're incredible! I am definitely interested in testing this for you.

    If the display issues are just a matter of changing some HTML/CSS markup, hell, I am more than happy to contribute to allow you to focus on the more difficult tasks.
    Last edited by Arkaine; 25th May 2013 at 11:28 PM.

  8. #8
    nickbro's Avatar
    Join Date
    Jul 2010
    Location
    Gilwern, Wales
    Posts
    3,550
    Thank Post
    38
    Thanked 505 Times in 436 Posts
    Rep Power
    114
    I wont be able to fix the display screen issue (i.e. /hap/bookingsystem/Resource/Display) until next weekend (need my site's bs to move onto the next week (half term for us this week coming))

    Attached is the v9.2 ALPHA release, it contains this as well as the fix for the Password box on the Home Screen

    Note: The settings page hasn't been tested, if someone would test it that would be great. It `should` work.

  9. #9

    Join Date
    May 2013
    Posts
    65
    Thank Post
    0
    Thanked 1 Time in 1 Post
    Rep Power
    0
    Quote Originally Posted by nickbro View Post
    Note: The settings page hasn't been tested, if someone would test it that would be great. It `should` work.
    You get the following error if the "canshare" XML attribute for the resource doesn't already exist. Manually adding the attribute resolves the issue.


    Object reference not set to an instance of an object.
    This error has been logged on the server's event log

  10. #10
    nickbro's Avatar
    Join Date
    Jul 2010
    Location
    Gilwern, Wales
    Posts
    3,550
    Thank Post
    38
    Thanked 505 Times in 436 Posts
    Rep Power
    114
    Ah, ok good catch, will add that to an upgrade script
    Last edited by nickbro; 26th May 2013 at 12:36 AM.

  11. #11

    Join Date
    May 2013
    Posts
    65
    Thank Post
    0
    Thanked 1 Time in 1 Post
    Rep Power
    0
    Nick, thank you! It's amazing that you've done this so quickly!

    It works great for up to two bookings per lesson, but at the third (and any subsequent) booking, the quantity requested is always recorded as "0" regardless of what the user selects when making it.

    Bookings.xml
    HTML Code:
    <?xml version="1.0" encoding="utf-8"?><Bookings>
       <Booking date="27/05/2013" lesson="Period 1" room="High School Media Center" uid="teststaff20130526T002654Z" username="teststaff" name="High School Life Management" count="15" />
       <Booking date="27/05/2013" lesson="Period 1" room="High School Media Center" uid="teststaff220130526T002712Z" username="teststaff2" name="High School Science" count="10" />
       <Booking date="27/05/2013" lesson="Period 1" room="High School Media Center" uid="teststaff320130526T004220Z" username="teststaff3" name="Central Office Central Office" count="0" />
    </Bookings>
    hapconfig.xml
    HTML Code:
    <resources>
      <resource name="High School Media Center" type="Other" admins="testadmin" enabled="True" emailadmins="False" enablecharging="False" showto="Staff" hidefrom="" years="High School,Central Office" quantities="30" readonlyto="" readwriteto="" disclaimer="" canshare="True" />
    </resources>
    Last edited by Arkaine; 26th May 2013 at 06:07 AM.

  12. #12

    Join Date
    May 2013
    Posts
    65
    Thank Post
    0
    Thanked 1 Time in 1 Post
    Rep Power
    0
    I take that back, it seems to be random rather than on the third booking.

    Also, is this what you meant by "cocked up display?"

    Example:

    Booking System: Split Resources-shared-booking-prob.png
    Last edited by Arkaine; 26th May 2013 at 08:14 AM.

  13. #13
    nickbro's Avatar
    Join Date
    Jul 2010
    Location
    Gilwern, Wales
    Posts
    3,550
    Thank Post
    38
    Thanked 505 Times in 436 Posts
    Rep Power
    114
    @Arkaine do you get any javascript errors? It should render the free for booking

  14. #14
    nickbro's Avatar
    Join Date
    Jul 2010
    Location
    Gilwern, Wales
    Posts
    3,550
    Thank Post
    38
    Thanked 505 Times in 436 Posts
    Rep Power
    114
    Ok, I think I've fixed the issue, DOH moment.

    You need to move
    Code:
    var xy = 0;
    from line 176 to line 177.

    It should look like
    Code:
                    var h1 = "";
                    for (var x = 0; x < this.Data.length; x++) {
                        var xy = 0;
    Last edited by nickbro; 26th May 2013 at 08:50 PM.

  15. #15

    Join Date
    May 2013
    Posts
    65
    Thank Post
    0
    Thanked 1 Time in 1 Post
    Rep Power
    0
    Quote Originally Posted by nickbro View Post
    Ok, I think I've fixed the issue, DOH moment.

    You need to move
    Code:
    var xy = 0;
    from line 176 to line 177.

    It should look like
    Code:
                    var h1 = "";
                    for (var x = 0; x < this.Data.length; x++) {
                        var xy = 0;
    Oh, wow, I think that did it! I'll try to break it some more for you.

SHARE:
+ Post New Thread
Page 1 of 8 12345 ... LastLast

Similar Threads

  1. ICT Resource booking system
    By lew_bob in forum AV and Multimedia Related
    Replies: 8
    Last Post: 19th May 2011, 10:09 AM
  2. Online Resource Booking System
    By SimpleSi in forum Web Development
    Replies: 14
    Last Post: 29th October 2008, 08:34 PM
  3. Online Parental Booking System
    By robknowles in forum MIS Systems
    Replies: 4
    Last Post: 3rd July 2007, 07:52 PM
  4. pc booking systems including my-pc
    By in forum Network and Classroom Management
    Replies: 8
    Last Post: 9th March 2007, 07:28 PM
  5. Online Booking System
    By imullings in forum Educational Software
    Replies: 2
    Last Post: 5th September 2006, 08:10 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •