如何使用Calendar Reminder [英] How to use Calendar Reminder

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

问题描述

Hello Experts,



我开发了一个asp.net应用程序,我们可以使用日历创建提醒。



将有一个startdate文本框,我们可以使用日历扩展程序选择startdate ..



现在在文本框中我们编写任务说明..



接下来我们从每周,每月,每年,每日,今天的下拉列表项中选择任务类型..



根据所选的任务类型,我们得到了结束日期。



现在我的疑问是如何在达到enddate后用enddate替换startdate并将enddate值延长为每个在tasktype中选择的值..



例如,如果开始日期是2013年12月12日,任务类型是每周,那么enddate将是08/19/2013 ..现在到达终止日期(2013年8月19日)..我需要保持startdate(08/12/2013)相同,并且enddate值应该延长到2013年8月26日,它应该是contiuned ..

解决方案

如果使用sql server数据库,则可以使用SQL Server Agent Job.For参考,请参考以下链接:



在sql server 2008中创建作业 [ ^ ]



< a href =http://msdn.microsoft.com/en-us/library/ms181153(v=sql.105).aspx>如何:创建SQL Server代理作业 [ ^ ]



SQL Server代理作业 [ ^ ]



< big>如何:在这种情况下实现工作?



分配完所有值后,首先将它们存储在数据库中。根据您的标准创建适当的工作。例如。对于每周更新,让你的工作分配你期望的所有值。



问候..:)






你必须为此写一个数据库触发器。



我假设你正在使用SQL Server 2008作为数据库。



在表中,你必须有两个不同的字段用于Start数据和EndDate。



你应该根据StarDate Feild + 7天计算EndDate费用。



你应该写出系统数据时的触发器等于StartDate,

在startdate feild中添加7天,enddate feild将自动更新。



这可以帮到你。



谢谢..



来自,

Dhiraj Luhana

Hello Experts,

I have developed an asp.net application where we can create reminders using calendar.

There will be a startdate textbox where we can select startdate using calendar extender..

Now in the textbox we write the task description..

next we select the tasktype from drop down list items Weekly,Monthly,Yearly,Daily,Today..

as per the selected tasktype we get the enddate..

Now my doubt is how to replace the startdate with the enddate after the enddate is reached and extend the enddate value as per the value selected in the tasktype..

for example if the start date is 08/12/2013 and tasktype is weekly then enddate will be 08/19/2013.. now when the enddate is reached(08/19/2013).. i need to keep startdate(08/12/2013) as same and enddate value should be extended that is to 08/26/2013 and it should be contiuned..

解决方案

If you use sql server database,then you can make use of SQL Server Agent Job.For reference,refer to below links:

Creating job in sql server 2008[^]

How to: Create a SQL Server Agent Job[^]

SQL Server Agent Jobs[^]

How to: Implement job in this scenario?

Once you assigned all the values,first store them in database. Create appropriate job for your criteria. E.g. for weekly update,make your job such that it assigns all the values where you expected.

Regards.. :)


Hi,

You have to write a database trigger for that.

I assumes that you are using the SQL Server 2008 as a database.

In that , in table you must had the two different fields for Start data and EndDate.

you should put the EndDate feild caluculated based on the StarDate Feild + 7 days.

And you should write the trigger that when system data is equal the StartDate ,
add 7 days in the startdate feild and the enddate feild will automatically be updated.

May this helps you.

Thanks ..

From,
Dhiraj Luhana


这篇关于如何使用Calendar Reminder的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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