phpScheduleIt
June 19, 2013, 11:04:37 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: phpScheduleIt 2.4.2 has been released!
 
   Home   Help Login Register  
Pages: [1]
  Print  
Author Topic: Grouping resources in calendar day view  (Read 684 times)
ylnahar
Newbie
*

Karma: 0
Posts: 9


« on: May 10, 2011, 10:49:23 AM »

We have a unique need to use the scheduler for scheduling OR rooms. We would like the medical staff to basically see the OR room no. (resources) and then the procedures scheduled under them for various times. Therefore all scheduled times for a particular resource should be grouped together for the same resource. This way we want to display 15 resources one after the other.

I feel this would definitely be possible by altering the day view of the calendar. But if someone could give me some info on the modifications and where they need to be applied,  I would greatly appreciate your help.

Thank you.

Yogi
Logged
Nick
Administrator
Hero Member
*****

Karma: 15
Posts: 5506


WWW
« Reply #1 on: May 16, 2011, 01:56:11 PM »

Can you give an example to help me understand?  Are you saying if you have resource 1 booked from 1-2, 2-3, 3-4, and resource 2 booked 12-1, 1-2, 2-3, you want to see

resource 1 1-2
resource 1 2-3
resource 1 3-4
resource 2 12-1
resource 2 1-2
resource 2 2-4
Logged
ylnahar
Newbie
*

Karma: 0
Posts: 9


« Reply #2 on: May 17, 2011, 03:18:08 PM »

Exactly. We would like to re-organize the day/week view like that.

Please advice on how to customize this. Thank you.

Yogi
Logged
Nick
Administrator
Hero Member
*****

Karma: 15
Posts: 5506


WWW
« Reply #3 on: May 20, 2011, 03:22:57 PM »

I'm going to have to think about this one.  You may be able to add a couple of sorts in the lib\mycalendar.class.php or lib\rescalendar.class.php functions that pull or display the reservations.
Logged
ylnahar
Newbie
*

Karma: 0
Posts: 9


« Reply #4 on: May 24, 2011, 11:38:23 AM »

Please let me know if you think this would work with the sorting functions. Thank you.

Yogi
Logged
Nick
Administrator
Hero Member
*****

Karma: 15
Posts: 5506


WWW
« Reply #5 on: June 06, 2011, 01:53:01 PM »

I think this would probably be the simplest option.  As a start, try changing line 62 of lib\db\mycalendardb.class.php to:

$sql .= ' ORDER BY resources.name, res.start_date, res.starttime, res.end_date, res.endtime';

And line 59 of lib\db\rescalendardb.class.php to:

$sql .= ' ORDER BY resources.name, res.start_date, res.starttime, res.end_date, res.endtime';
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2006-2007, Simple Machines Valid XHTML 1.0! Valid CSS!