-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy pathCustomerInvoice.aspx.vb
More file actions
43 lines (34 loc) · 1.51 KB
/
CustomerInvoice.aspx.vb
File metadata and controls
43 lines (34 loc) · 1.51 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
'========================================================================
'Kartris - www.kartris.com
'Copyright 2024 CACTUSOFT
'GNU GENERAL PUBLIC LICENSE v2
'This program is free software distributed under the GPL without any
'warranty.
'www.gnu.org/licenses/gpl-2.0.html
'KARTRIS COMMERCIAL LICENSE
'If a valid license.config issued by Cactusoft is present, the KCL
'overrides the GPL v2.
'www.kartris.com/t-Kartris-Commercial-License.aspx
'========================================================================
Partial Class Customer_Invoice
Inherits PageBaseClass
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Dim numOrderID, numCustomerID As Integer
'Bump customer out if not authenticated
If Not (User.Identity.IsAuthenticated) Then
Response.Redirect("~/CustomerAccount.aspx")
Else
numCustomerID = DirectCast(Membership.GetUser(), KartrisMemberShipUser).ID
End If
'Display invoice
Try
numOrderID = CLng(Request.QueryString("O_ID"))
UC_Invoice.CustomerID = numCustomerID
UC_Invoice.OrderID = numOrderID
UC_Invoice.FrontOrBack = "back" 'tell user control is on back end
Catch ex As Exception
CkartrisFormatErrors.ReportHandledError(ex, Reflection.MethodBase.GetCurrentMethod())
HttpContext.Current.Server.Transfer("~/Error.aspx")
End Try
End Sub
End Class