Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Resource Groups & restricted Hours (Read 5054 times)
ldwater
YaBB Newbies
*
Offline



Posts: 5
Joined: Dec 14th, 2009
Resource Groups & restricted Hours
Dec 14th, 2009 at 12:57pm
Print Post  
Hey all,

I'm new to Planner.NET and looking for some help or advice on a few issues.

I am from a company that has written our own scheduling facility and we are planning to use Planner.NET as our drag & drop interface.

Since most of our customers are manufacturers we use the 'resource view' to display each resource / machine the customer has and the jobs that have been scheduled for them.

So my questions (as the title would suggest) is:

1) Does Planner.NET allow for resource groups

Alot of our customers have machines / resources that are similar or interchangable.  They would put them into a resource group with the idea of saying "Put this job onto ANY resource within the same group".

I've looked at locations & contacts but they seem more of a lateral relation rather than a 'parent / child' relationship.

The idea is to allow the user to 'expand' a resource group, and then see each resource within that group.  The control of moving the job between resources within the group will be controlled programmatically but the user view of a parent group is what we need and can't seem to find.

2) Set hours within a day as 'out of bounds'

Within our system we allow the user to specify the resource capacity in the number of hours in a day / shift.  In planner.NET each day is 24hrs but I can't seem to find anyway to say for 'x' day only allow between '6am - 6pm' and on 'y' day to only allow '6am - 1pm' etc. 

This would also apply to weekends etc and prevent the user from dragging & dropping onto the 'restricted' areas of the schedule - preferably with a colour change or some UI indication of the restricted nature of that time block.

3) Move resource override.

I have found that there is a keypress that the user needs to press to allow a job to be dragged to a different resource.  Is there anyway to disable this so that the user DOESN'T have to press the key in order to allow a resource change?

Thanks in advance!
  
Back to top
 
IP Logged
 
Meppy
God Member
*****
Offline


MindFusion support

Posts: 1783
Joined: Jul 20th, 2005
Re: Resource Groups & restricted Hours
Reply #1 - Dec 14th, 2009 at 1:31pm
Print Post  
Hello,

Here are the answers to your questions:

1) Unfortunately Planner.NET does not currently support hierarchical resource grouping. You can group by one resource only.

2) You can perform validation of item modifications through the ItemModifying event. The restricted cells can be visually indicated using custom drawing. I can prepare a sample application illustrating both techniques if you want.

3. Set Calendar.ItemChangeReferenceKey to Keys.None to achieve this.

Let me know if you have any further questions.

Regards,
Meppy
  
Back to top
 
IP Logged
 
ldwater
YaBB Newbies
*
Offline



Posts: 5
Joined: Dec 14th, 2009
Re: Resource Groups & restricted Hours
Reply #2 - Dec 14th, 2009 at 1:35pm
Print Post  
Thanks Meppy.

1) Thats a shame, but thanks for giving me an answer (at least I can pass it on to my bosses to shut them up Cheesy

2) I am already using some code with the 'ItemModifying' event so I am fine with that, but I would like to see how I could change the colour / layout of the schedule to show 'disabled' areas. Is it possible to change the item colour by hour? (Just an example code will be fine, no need to bother with a full blown application Smiley

I would imagine the only way I could provide this information would be to check everytime a user moves into a 'restricted' area and prevent the move?

(Edit: Hmmm.. thinking about it if I load up the 'capacity' information I can check if the 'hour' section is a selected 'out of bounds' colour and stop the move?)

3) Thanks - I will change my code Cheesy
  
Back to top
 
IP Logged
 
ldwater
YaBB Newbies
*
Offline



Posts: 5
Joined: Dec 14th, 2009
Re: Resource Groups & restricted Hours
Reply #3 - Dec 14th, 2009 at 2:19pm
Print Post  
Sorry, I know I might be answering my own question here but I have found the "MindFusion.Scheduling.WinForms.DateStyle" class which by the looks of it I can use to select an entire date as 'out of bounds'.

This is great for global overrides for things like xmas & new year etc.

My question now would be is there anything like this that I could use that would be at resource ONLY level so that for example 1 resource could be set as 'off limits' for a day for repairs but the rest of the resources are still active.
  
Back to top
 
IP Logged
 
Meppy
God Member
*****
Offline


MindFusion support

Posts: 1783
Joined: Jul 20th, 2005
Re: Resource Groups & restricted Hours
Reply #4 - Dec 14th, 2009 at 3:14pm
Print Post  
The DateStyle can indeed be used for validation and coloring but only in day-based views such as WeekRange and SingleMonth, it is not supported in the Resource view. A small application illustrating how to perform resource-based coloring and interaction validation in Resource view can be downloaded from here:

https://mindfusion.eu/_samples/_sample_Resources.zip

The application uses very simple definition for the restricted hours.

Regards,
Meppy
  
Back to top
 
IP Logged
 
ldwater
YaBB Newbies
*
Offline



Posts: 5
Joined: Dec 14th, 2009
Re: Resource Groups & restricted Hours
Reply #5 - Dec 14th, 2009 at 3:48pm
Print Post  
Thanks for that, I think I get the idea behind what is being done (although I'm not an expert in C# tbh Tongue)

One thing that I am using with my implementation is the ability to switch from 'Month / days' view and then 'days / hours' view.

This example seems fine for the 'days / hours' view as each cell within the 'drawEventArgs' class is one hour. 

If I then change the view to be 'Month / days' the cell size (from 'e.startTime' and 'e.EndTime') then becomes a full day.

Is there anyway I can change the accuracy of the timespan in this example so that in a 'day' view I can colour code part(s) of that day cell to show capacity?
  
Back to top
 
IP Logged
 
Meppy
God Member
*****
Offline


MindFusion support

Posts: 1783
Joined: Jul 20th, 2005
Re: Resource Groups & restricted Hours
Reply #6 - Dec 15th, 2009 at 7:56am
Print Post  
Here is an updated version of the sample which handles partial cell coloring:

https://mindfusion.eu/_samples/_sample_ResourcesVB.zip

The new version is also written in VB (which I presume you are more proficient with).

Regards,
Meppy
  
Back to top
 
IP Logged
 
ldwater
YaBB Newbies
*
Offline



Posts: 5
Joined: Dec 14th, 2009
Re: Resource Groups & restricted Hours
Reply #7 - Dec 15th, 2009 at 9:03am
Print Post  
Thanks again Meppy.

I had figured that I would have to colour 1 24th of the cell when its in 'month / day' view for each hour.

I will take a look at trying to add this into my application Cheesy

PS. I'm better with C# than I am with VB, It's just that C# isn't my primary language Tongue  The VB example if fine though, at least I will understand the concept behind how to make it work Cheesy
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint