 |
|
|
 |
|
 |
Hello hope u all having a good time, well i have a sinceario of implementing a webschedular the requirment is i have 3 tables
Tutor Working hours(Master) PK_ID TutorID CourseID StartingDateID
This is table is meant by A teacher can teach a course on a specific starting date marked by the univ
DetailTutorWorking Hours (Detail) PK_ID FK_ID(PK_ID) StartTime EndTime DayofWeek This is the detail table where a tutor can mark its free working hourse now like if i can say :
David(TutorID) teaches CCNA(COurseID) that starts on 3 Nov(StartingDateID) and he marks his available time on 12:00pm(start time) to 1:00pm(end time) on monday and tuesday
now within this interval the student is available and can mark his appointment if the working hour is free he can save his appointment, if it is taken by some one else it is un editable, if it is already his saved then he can edit it, please suggest me what can i do to achieve this, please help me saving my job as i m in very much big depression now days i shall be very very gratefull to you,, regards
Hassan Akhtar
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
 |
|
 |
Wonderful product and thinking to pick the pro solution. I'm thinking to insert the events in other existing pages (with recurring events and so on) and to use it for the superb visaulization. I just can't see any sample of events spanning on more than a day, maybe [hope] acting like outlook do ?
Any detail or link to sample given is appreciated, Fabrizio
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
Thanks. 
The events longer than a day are shown as "event parts" in each day. E.g. event lasting from Thursday 20:00 to Saturday 05:00 will have three pieces: Thursday 20:00 - Thursday 24:00, Friday 00:00 - Friday 24:00, and Saturday 00:00 - 05:00. See "Event 6" on this sample page: http://www.daypilot.org/demo/Horizontal/.
Outlook shows such events in the "All day events" area on the top of the calendar and marks the duration using a blue line on the left side of a day column. DayPilot is making such event more visible.
It's always possible to discuss the features on the roadmap - contact me at daypilot @ annpoint.com if you have any specific requirements .
-- My open-source ASP.NET 2.0 controls: DayPilot - Outlook-like calendar/scheduling control MenuPilot - Hover context menu
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
hi Dan great component i was just reviewing the code and the workings
Some suggestions 1) when we have non business hours it becomes really long maybe a two hour box would help shorten it 2) i use a seven day at a glance view from selected date -3 to seven days ahead maybe an option to highlight a particular date (informing the user which date he has selected)
Thanks again for your efforts on this control. viva la opensource!
http://www.chowknews.com
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
Hi,
Thanks for the nice ideas! I will consider them for the next release.
-- My open-source ASP.NET 2.0 controls: DayPilot - Outlook-like calendar/scheduling control MenuPilot - Hover context menu
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
This is great. But what i was looking is just the dates for tasks and not time.... At this point due to overlapping days every event overlaps on the calendar making it unreadable. Basically, along the Y Axis i would like to see the event wise grouping as opposed to time.. Is that Possible? Can u plz help btw I am using ASP.NET 1.1
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
 |
|
|
 |
|
 |
Clicking on free time entirely covered by an event doesn't seem to be currently possible. In Outlook there is a thin gap at the right of each event box where is it possible to get at the time slot behind the event. This can be achieved with the following one-line code change in the renderEvent method (within DayPilotCalendar.cs) where it has the line:
divMain.AddStyleAttribute("width", e.Column.WidthPct + "%");
...replace this with the following:
divMain.AddStyleAttribute("width", (e.Column.WidthPct - 3) + "%");
...and you will have a small gap to the right of each event box big enough to click in to select a free time.
You may want to use -2 or -4 instead of -3 but I think that gives the best gap balanced for real-estate usage versus click-ability - and looks about the same as the gap in my version of Outlook.
Life in the fast lane is only fun if you live in a country with no speed limits.
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
 |
|
 |
Hi I followed the 5 steps in the databinding portion of the tutorial on daypilot.org and my events don't appear. I used Visual Web Developer to set data related properties and bind on page_load.Here's my code, do I need additional code to show the events? Thanks.
<%@ Page Language="VB" %>
<%@ Register Assembly="DayPilot" Namespace="DayPilot.Web.Ui" TagPrefix="DayPilot" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<script runat="server">
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) If IsPostBack Then DataBind() End If
End Sub </script>
<html xmlns="http://www.w3.org/1999/xhtml" > <head runat="server"> <title>FRC Calendar</title> </head> <body> <form id="form1" runat="server"> <daypilot:daypilotcalendar id="Calendar1" runat="server" backcolor="#FFFFD5" bordercolor="Black" dataendfield="edate" datasourceid="FRCCalendar" datastartfield="sdate" datatextfield="EDescr" datavaluefield="Eventid" dayfontfamily="Tahoma" dayfontsize="10pt" days="3" eventbackcolor="White" eventbordercolor="Black" eventfontfamily="Tahoma" eventfontsize="8pt" eventhovercolor="Gainsboro" eventleftbarcolor="Blue" hourbordercolor="#EAD098" hourfontfamily="Tahoma" hourfontsize="16pt" hourhalfbordercolor="#F3E4B1" hournamebackcolor="#ECE9D8" hournamebordercolor="#ACA899" hovercolor="#FFED95" nonbusinessbackcolor="#FFF4BC" startdate="2007-01-03" style="position: static"> <asp:AccessDataSource ID="FRCCalendar" runat="server" DataFile="~/App_Data/frccalendar.mdb" SelectCommand="SELECT [Eventid], [sdate], [edate], [stime], [etime], [CategoryID], [EDescr] FROM [qryeventdump] ORDER BY [sdate]">
</form> </body> </html>
MaryFRC
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
If there are no events visible you should check whether DayPilotCalendar.StartDate is set to the right date. Check if there are any events returned for 2007-01-03 (see your code) by your select command.
Moreover, I recommend limiting the number of events in the SELECT command to only the relevant ones (i.e. visible on the calendar). DayPilot will still work correctly but there will be too much stuff in ViewState and it can become slow.
-- My sites for smart .NET developers: DayPilot - Open-source Outlook-like calendar control for ASP.NET DotLucene - The fastest open source fulltext search engine for .NET MenuPilot - Open-source task menu for ASP.NET 2.0 Seekafile Server - Flexible open-source search server DotNetFirebird
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
Hi i am using DayPilot 2.0.1 (.NET Framework 1.1) ,bcoz i cann't use .NET 2.0 in my server right now.
When user change the date using .NET calender,the events corresponding to the selected date should be loaded in outlook calender(DayPilot control).But that is not happening.i have given all code which i have put in page.IF any thing missing me please guide me.l what code i need to write to achieve it .plz tell me how to load events of selected date selected by user.if no event is there for selected date,let it show nothing in outlook calender(DayPilot control).How to achieve it..?
and also how do these events beneficial to users : clicking a free time clicking an event
a) When i click on any free time column,a pop message box with date and time will be showed. -- is it possible to add new event in free time sections from user interface(not from database)...? b) when i click on any existing event , a pop message box with event id will displayed. -- is it possible to show the all Event details ("name","start","End" columns values) in small pop up window (instead of pop up message box with event id) ...? -- i want to open a ssmall window instead of pop up message box. please help regarding this.
Thank U Deepak
CODE i have used as below :
table : "tblCalender"
ID Name start End
1 BreakFast 11/20/2006 9:00 AM 11/20/2006 9.30 AM 2 Lunch 11/20/2006 1:00 PM 11/20/2006 1:30 PM 3 Dinner 11/20/2006 9:00 PM 11/20/2006 9:30 PM
<DayPilot:DayPilotCalendar id="DayPilotCalendar1" runat="server" EndColumnName="end" NameColumnName="Name" BeginColumnName="start" PkColumnName="ID" TimeFormat="Clock12Hours" EndDate="2006-11-24" StartDate="2006-11-20">
Private Sub CalenderDataBind() Dim calenderTable As New DataTable Dim sqlQry As String = "SELECT * FROM tblCalender" Dim conStr As String = System.Configuration.ConfigurationSettings.AppSettings.Get("supportDB") Dim sqlAdp As New SqlClient.SqlDataAdapter(sqlQry, conStr) sqlAdp.Fill(calenderTable) DayPilotCalendar1.DataSource = calenderTable DayPilotCalendar1.DataBind() End Sub
i have .NET calender control
<asp:Calendar id="Calendar1" style="Z-INDEX: 101; LEFT: 448px; POSITION: absolute; TOP: 16px" runat="server">
IT is very urgent,plz give me soultion
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
Hi i am using DayPilot 2.0.1 (.NET Framework 1.1) ,bcoz i cann't use .NET 2.0 in my server right now.
When user change the date using .NET calender,the events corresponding to the selected date should be loaded in outlook calender(DayPilot control).But that is not happening.i have given all code which i have put in page.IF any thing missing me please guide me.l what code i need to write to achieve it .plz tell me how to load events of selected date selected by user.if no event is there for selected date,let it show nothing in outlook calender(DayPilot control).How to achieve it..?
and also how do these events beneficial to users : clicking a free time clicking an event
a) When i click on any free time column,a pop message box with date and time will be showed. -- is it possible to add new event in free time sections from user interface(not from database)...? b) when i click on any existing event , a pop message box with event id will displayed. -- is it possible to show the all Event details ("name","start","End" columns values) in small pop up window (instead of pop up message box with event id) ...? -- i want to open a ssmall window instead of pop up message box. please help regarding this.
Thank U Deepak deepak.ramaiah@vertscape.net
CODE i have used as below :
table : "tblCalender"
ID Name start End
1 BreakFast 11/20/2006 9:00 AM 11/20/2006 9.30 AM 2 Lunch 11/20/2006 1:00 PM 11/20/2006 1:30 PM 3 Dinner 11/20/2006 9:00 PM 11/20/2006 9:30 PM
<DayPilot:DayPilotCalendar id="DayPilotCalendar1" runat="server" EndColumnName="end" NameColumnName="Name" BeginColumnName="start" PkColumnName="ID" TimeFormat="Clock12Hours" EndDate="2006-11-24" StartDate="2006-11-20">
Private Sub CalenderDataBind() Dim calenderTable As New DataTable Dim sqlQry As String = "SELECT * FROM tblCalender" Dim conStr As String = System.Configuration.ConfigurationSettings.AppSettings.Get("supportDB") Dim sqlAdp As New SqlClient.SqlDataAdapter(sqlQry, conStr) sqlAdp.Fill(calenderTable) DayPilotCalendar1.DataSource = calenderTable DayPilotCalendar1.DataBind() End Sub
i have .NET calender control
<asp:Calendar id="Calendar1" style="Z-INDEX: 101; LEFT: 448px; POSITION: absolute; TOP: 16px" runat="server">
IT is very urgent,plz give me soultion
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
To have the DayPilot change for the date
protected void Calendar1_SelectionChanged(object sender, EventArgs e) { DayPilotCalendar1.StartDate = Calendar1.SelectedDate; }
Keith L Lang
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
How do you implement the method isThereEvent, I have implemented the getData pls help
private bool isThereEvent(DateTime date) { //help me pls }
protected DataTable getData { get { DataTable dt; dt = new DataTable(); dt.Columns.Add("start", typeof(DateTime)); dt.Columns.Add("end", typeof(DateTime)); dt.Columns.Add("name", typeof(string)); dt.Columns.Add("id", typeof(string)); DataRow dr; DateTime myDate; string myStrDate = Request.QueryString["day"].ToString(); myDate = Convert.ToDateTime(myStrDate);
Response.Write(" Well we have " + myStrDate); SqlConnection myConnection = new SqlConnection(); myConnection.ConnectionString = "Data Source=SQL01;Initial Catalog=POMACS;Integrated Security=True"; SqlCommand myCommand = new SqlCommand();
myCommand.Parameters.Add(new SqlParameter("@startDate", SqlDbType.NVarChar,41)); myCommand.Parameters.Add(new SqlParameter("@endDate", SqlDbType.NVarChar,40)); myCommand.Parameters["@startDate"].Value = myStrDate; myCommand.Parameters["@EndDate"].Value = myStrDate; myCommand.CommandType = CommandType.StoredProcedure; myCommand.CommandText = "MyDumbProc"; myConnection.Open(); myCommand.Connection = myConnection;
SqlDataReader myReader = myCommand.ExecuteReader(); try { while (myReader.Read()) { dr = dt.NewRow(); Response.Write(" Start " + myReader["starttime"].ToString()); Response.Write(" End " + myReader["endtime"].ToString()); Response.Write(" Sub " + myReader["subject"].ToString());
dr["start"] = Convert.ToDateTime(myReader["starttime"].ToString()); dr["end"] = Convert.ToDateTime(myReader["endtime"].ToString()); dr["name"] = myReader["subject"].ToString(); dt.Rows.Add(dr); } } catch (System.Exception ex) { Response.Write(ex.ToString()); } finally { myReader.Close(); myConnection.Close(); } return dt;
}
}
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
This is what I have in the sample:
private bool isThereEvent(DateTime date) { DateTime today = DateTime.Now; DateTime tomorrow = today.AddDays(1); DateTime anotherDay = today.AddDays(3);
// there are events today if ((date.DayOfYear == today.DayOfYear) && (date.Year == today.Year)) return true;
// there are events tomorrow if ((date.DayOfYear == tomorrow.DayOfYear) && (date.Year == tomorrow.Year)) return true;
// there are events on another day if ((date.DayOfYear == anotherDay.DayOfYear) && (date.Year == anotherDay.Year)) return true;
return false; }
But it's just a quick and dirty solution for my case. You will typically want to load the data from a database (just event counts for each day) and check all the days against this list.
-- My sites for smart .NET developers: DayPilot - Open-source Outlook-like calendar control for ASP.NET DotLucene - The fastest open source fulltext search engine for .NET MenuPilot - Open-source task menu for ASP.NET 2.0 Seekafile Server - Flexible open-source search server DotNetFirebird
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
 |
|
 |
It's so easy to use it makes me jealous I didn't think of this when I developped mine.
It would be nice to have a simple feature to configure the colors though, just a suggestion.
Are you planning to do a monthview like Outlook someday? This is actually the one I did.
I will start to play with this one, I hope I'll be able to add small images before tasks and to give a task a color, I guess I'll need to override a few things to do that, but that should be fine. "All day events" would be a really nice addition like other said before.
Congrats!
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
I would also be interested in the Event/task coloring (assign color to event/task background), all day events, and "Monthview"... any hope of this in the NEAR future?
|
| Sign In·View Thread·PermaLink | 2.00/5 |
|
|
|
 |
|
|
 |
|
|
 |
|
 |
I was almost ready to give up on this since I couldn't get it to work out of the box. Actually, this is the only application of yours that I got to work. The index server search engine wouldn't work no matter what I tried. For this one, I realized I had to change the ASP .NET version in IIS from 1.4 to 2.0, and that finally got it to work. Didn't read the article to see if it was mentioned. Great job. One request, will you be adding a way to add daily, weekly or any repeating events? Also, all day events need to appear at the top. If you could add that functionality it would be great.
There are II kinds of people in the world, those who understand binary and those who understand Roman numerals. Web - Blog - RSS - Math
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |