如何创建动态日历 [英] How to Create Dynamic Calendar

查看:110
本文介绍了如何创建动态日历的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发请假管理系统,因此在日历中,如果当天有任何员工请假,则该日历应显示不同的颜色,在右侧应显示该假的所有员工姓名一天,假设我单击另一天,它应该显示该天缺勤的员工姓名.

I am developing the Leave Management system, so in the calendar it should show different color if any employee(s) on Leave on that day, and the right side it should show all the employee names those who are on Leave on that day, suppose if i click another day it should show that day absence employees names.

推荐答案

此链接可能满足您的要求.
完整日历 [ ^ ]
This link may fulfill your requirement.
Full Calendar[^]


嗨..
您可以做的是可以在左侧创建一个表格,比方说6 * 6,您可以在其中输入(1st-31st)或(1st-30th)的日期.每个列代表一个日期,您必须在某个后端存储员工的请假和活动数据,以便您可以获取该数据并将其添加到特定列.
现在要注意的是,您可以通过编程动态创建此表.
这是一个动态添加行及其单元格的链接

http://msdn.microsoft.com/en-us/library/7bewx260.aspx [ ^ ]

您还可以将控件添加到此表格单元格.
对于员工列表,您可以使用网格或任何其他控件来显示数据,并将网格或控件与数据库绑定...

这是使用Sql数据源将数据绑定到网格的链接
http://msdn.microsoft.com/en-us/library/orm- 9780596529567-04-07.aspx [ ^ ]

并且在绑定时,您可以查询显示所有在选定日期缺席的雇员的详细信息.要显示日期,您可以使用压延机控制


希望您对此有所了解.
hi..
what you can do is you can create one table on the left side lets say of 6*6 in which you can enter the dates from (1st-31st) or (1st-30th). each column represnt one date, you must be storing data of leave and activities of employee in some back-end, so you can fetch that data and add it to particular column.
Now catch here is that you can create this table dynamically through programming.
here is a link to add rows and its cells dynamically

http://msdn.microsoft.com/en-us/library/7bewx260.aspx[^]

you can also add control to this table cell.
and for list of employees you can use grid or any other control for displaying data and bind the grid or control with your database...

here is a link for binding data to grid using Sql Data Source
http://msdn.microsoft.com/en-us/library/orm-9780596529567-04-07.aspx[^]

and while binding you can give query that display details of all that employees which are absent on the date whcih is selected.. For showing dates you have calender control


I hope you''ve got an idea to it.


这篇关于如何创建动态日历的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆