This project has moved and is read-only. For the latest updates, please go here.

Task Sheduler Sinlge page web application

May 7, 2015 at 7:56 AM
Edited May 7, 2015 at 7:58 AM
I created console application that call asmx web services. For example we give it a name "CallWebService".
Now, I am creating single page web application for create, read, update, and delete tasks. I use Ext JS. When user create task, user choose(with checkboxes) web methods. Web Methods with parameters stored in ms sql database. For task action we set "CallWebService" path. For arguments of action i will write methods id. When task start, "CallWebService" will take arguments(method's id), then get method's parameters(web service url, namespace etc) and call specefic web methods.
My questions :
1) How i can set task settings programmatically like :
wTrigger.DaysOfWeek = DaysOfTheWeek.Monday | DaysOfTheWeek.Friday;
mTrigger.DaysOfMonth = new int[] { 3, 6, 10, 18 };
if i can get only string variables(string Friday = "Friday") from CRUD web application ?

2) How can i get all task parameters and save it to
List<Dictionary<string, object>> result = new List<Dictionary<string, object>>() ?
This way i will display it in user intarface.
May 10, 2015 at 8:41 PM
1) I would say you'll have to convert strings to the enum or date or TimeSpan using the appropriate parse or Convert methods.
2) Reflection (Type.GetProperty) and recursion (get type of property and recurse if a class).
Marked as answer by dahall on 9/1/2015 at 10:00 AM