Quantcast
Channel: SQLServerCentral » SQL Server 2014 » Development - SQL Server 2014 » Latest topics
Viewing all articles
Browse latest Browse all 3145

code handle by UI or other

$
0
0
I have a question about development. We have a .net app that counts student truant days. On UI, we'd like when users dismiss a case, it will auto populated today's date as default case closed date. But they can also change the date to an earlier or possibly later date. The problem is that at background we have a nightly process that creates student truancy cases by count their days of truant, we don't want to count those days prior to closed date for new cases.My question is how we should handle this for UI logic, should we do those in .net code, when click dismiss a case, it will populate the case closed date as default date, and give them a chance also to change the date. and then make the case read only.I don't want them to change the closed date at any other time, for that could mess up the calculation of new case at the backdoor nightly process.Or should we add a trigger for the TruancyCase table?what is the best way to do? thanks

Viewing all articles
Browse latest Browse all 3145

Trending Articles