-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathactivity.cfm
140 lines (140 loc) · 3 KB
/
activity.cfm
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
<cfinclude template="authenticateExe.cfm">
<cfscript>
pageTitle = "Error!";
up2snuff = 0;
em = 'Error!';
// check required variables
if (not isDefined("URL.ActID") or not isNumeric(URL.ActID))
{
em = "Invalid or missing parameters";
}
else
{
ActID = URL.ActID;
up2snuff = 1;
em = 'None';
}
</cfscript>
<cfif not up2snuff>
<cfinclude template="incBegin.cfm">
<cfinclude template="incError.cfm">
<cfelse>
<cfscript>
// initialize variables for uspGetActivity stored procedure
if (SESSION.UserLevelID lt 2)
{
LibID = SESSION.LibID;
}
else
{
LibID = 0;
}
ActID = ActID;
ActTypID = 0;
DelModID = 0;
MatID = 0;
CntctID = 0;
DBRCID = 0;
UID = 0;
sDT = '';
eDT = '';
QuartID = 0;
Yr = 0;
FiscalY = 0;
</cfscript>
<cfinclude template="uspGetActivity.cfm">
<cfif not up2snuff>
<cfinclude template="incBegin.cfm">
<cfinclude template="incError.cfm">
<cfelse>
<cfif Activity.RecordCount eq 0>
<cfinclude template="incActivity.cfm">
<cfelse>
<cfscript>
// initialize variables for uspGetContact stored procedure
LibID = 0;
CntctID = 0;
StatID = 0;
DeptID = 0;
SessID = 0;
ActID = ActID;
MatID = 0;
UID = 0;
sDT = '';
eDT = '';
FiscalY = 0;
Set = '';
</cfscript>
<cfinclude template="uspGetContact.cfm">
<cfif not up2snuff>
<cfinclude template="incBegin.cfm">
<cfinclude template="incError.cfm">
<cfelse>
<cfscript>
// initialize variables for uspGetMaterial stored procedure
MatID = 0;
MatTypID = 0;
LibID = 0;
ActID = ActID;
CntctID = 0;
UID = 0;
sDT = '';
eDT = '';
QuartID = 0;
Yr = 0;
FiscalY = 0;
Set = "";
</cfscript>
<cfinclude template="uspGetMaterial.cfm">
<cfif not up2snuff>
<cfinclude template="incBegin.cfm">
<cfinclude template="incError.cfm">
<cfelse>
<cfscript>
// initialize variables for uspGetSession stored procedure
LibID = 0;
SessID = 0;
sDT = "";
eDT = "";
CntctID = 0;
DeptID = 0;
ActID = ActID;
LrCatID = 0;
AffID = 0;
QuartID = 0;
Yr = 0;
Hr = 0;
UID = 0;
FiscalY = 0;
OutID = 0;
ClassID = 0;
</cfscript>
<cfinclude template="uspGetSession.cfm">
<cfif not up2snuff>
<cfinclude template="incBegin.cfm">
<cfinclude template="incError.cfm">
<cfelse>
<cfscript>
// initialize variables for uspCheckRelationships stored procedure
LibID = SESSION.LibID;
CntctID = 0;
ActID = ActID;
SessID = 0;
MatID = 0;
ClassID = 0;
</cfscript>
<cfinclude template="uspCheckRelationships.cfm">
<cfif not up2snuff>
<cfinclude template="incBegin.cfm">
<cfinclude template="incError.cfm">
<cfelse>
<cfinclude template="incActivity.cfm">
<cfinclude template="incSessions.cfm">
</cfif>
</cfif>
</cfif>
</cfif>
</cfif>
</cfif>
</cfif>
<cfinclude template="incEnd.cfm">