Imports MyCompany.Data
Imports System
Imports System.Collections.Generic
Imports System.Data
Imports System.Linq
Imports System.Text.RegularExpressions
Imports System.Web
Namespace Rules
Partial Public Class DataBusinessRules
Inherits MyCompany.Rules.SharedBusinessRules
<RowBuilder("Data", RowKind.New)> _
Public Sub BuildNewData()
UpdateFieldValue("Total_Duration", "(datediff(HOUR,[TimeIN],[TimeOUT]))")
End Sub
End Class
End Namespace
ASKER
ASKER
Imports MyCompany.Data
Imports System
Imports System.Collections.Generic
Imports System.Data
Imports System.Linq
Imports System.Text.RegularExpressions
Imports System.Web
Namespace Rules
Partial Public Class timeBusinessRules
Inherits MyCompany.Rules.SharedBusinessRules
<ControllerAction("time", "Calculate", "Total_Duration")> _
Public Sub Calculatetime(ByVal time_ID As Nullable(Of Integer), ByVal [date] As Nullable(Of DateTime), ByVal timeIN As Nullable(Of System.TimeSpan), ByVal timeOUT As Nullable(Of System.TimeSpan), ByVal total_Duration As Nullable(Of Integer))
UpdateFieldValue("Total_Duration", "(datediff(HOUR,[TimeIN],[TimeOUT]))")
End Sub
End Class
End Namespace
ASKER
The successor to Active Server Pages, ASP.NET websites utilize the .NET framework to produce dynamic, data and content-driven web applications and services. ASP.NET code can be written using any .NET supported language. As of 2009, ASP.NET can also apply the Model-View-Controller (MVC) pattern to web applications
TRUSTED BY
What is the data type for Time_Duration?