Hi,
What is the best way to get all the dates including day of week, times, duration of each recurrence for a particular activity?
Based on the day of the week and the time of the day I need to calculate how much of a resource will cost. For example, Monday to Friday from 8:00 till 17:00 - 15% discount. Monday to Friday from 17:00 to 00:00 10% discount. Saturday and Sunday 5% discout.
As you can see I need this information in order to calculate the cost of using a resource but I could not find any method or property in the WebScheduleInfo object that would give me this information. I also had a look at the SQL database but it does not store this information.
Please can you advise me what I have to do and if possible provide some sample code?
Cheers
CP
Could someone please reply to my post above?
Is there another Infragistics forum where people are more active? It is taking such a long time for a reply!
C
Hello CP,
For a guaranteed response time for any support related questions you may be interested in reviewing our support policies:
http://www.infragistics.com/help/support-policies/
Please note that in order to be able to take advantage of active support subsciptions, product keys should be registered on our website at:
https://www.infragistics.com/my-account/register-product
In WebSchedule, recurrence objects may be accessed through each Activity (after the WebScheduleInfo has been data bound):
scheduleInfo.Activities[8].Recurrence
For an overview of the available properties of the recurrence object, please visit:
http://help.infragistics.com/doc/ASPNET/2013.2/CLR4.0/?page=Infragistics4.WebUI.WebSchedule.v13.2~Infragistics.WebUI.WebSchedule.Recurrence_members.html
Note however that in your scenario it is likely that some custom calculations and checks would need to be done - for instance, if a recurrence is set as daily, the DayOfWeekMask property would be null.
Hope this helps. Please feel free to contact me if you need more information.