Subversion Repositories DevTools

Rev

Rev 7289 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
119 ghuddy 1
<%
2
'=====================================================
127 ghuddy 3
'               Action Buttons
119 ghuddy 4
'=====================================================
5983 dpurdie 5
Sub Action_Buttons ( SSwithTab )
6
    Call Action_Buttons_State(SSwithTab, TRUE) 
7
End Sub
8
 
9
Sub Action_Buttons_State ( SSwithTab, bState )
6786 dpurdie 10
   Dim isClosed, isSDK, isActive
5178 dpurdie 11
   isClosed = (releaseIsClosed(ReleaseMode))
6786 dpurdie 12
   isActive = TRUE
6788 dpurdie 13
 
4084 dpurdie 14
   Select Case SSwithTab%>
127 ghuddy 15
   <%Case "Build Dependencies"%>
16
      <table width="10" border="0" cellspacing="10">
17
         <tr>
6786 dpurdie 18
            <%  isActive = NOT isClosed AND NOT pkgInfoHash.Item ("is_sdkpkg") AND ( (pkgInfoHash.Item ("dlocked") = "N") OR (pkgInfoHash.Item ("dlocked") = "R") OR criticalSectionIsEditable )
6788 dpurdie 19
                BuildActionButtonLink isActive, "Add", "Add dependency to the list.", _
6786 dpurdie 20
                                         "src='images/i_add_deps.gif' width='22' height='25' align='absmiddle' border='0' hspace='3'", _
21
                                         "form_search_pkgs.asp?pv_id=" & parPv_id & "&rtag_id=" & parRtag_id & "&add_type=" & enum_ADD_DEPENDENCIES
127 ghuddy 22
 
7289 dpurdie 23
                Dim bHasDeps : bHasDeps = (pkgInfoHash.Item ("depCount") > 0)
24
                BuildActionButtonLink isActive AND bHasDeps, "Edit", "Edit dependency list.", _
6786 dpurdie 25
                                         "src='images/i_edit_deps.gif' width='23' height='24' align='absmiddle' border='0' hspace='3'", _
26
                                         "form_edit_deps.asp?pv_id=" & parPv_id & "&rtag_id=" & parRtag_id
127 ghuddy 27
 
6788 dpurdie 28
                BuildActionButtonLink isActive, "Import", "Import dependency list from your build file.", _
6786 dpurdie 29
                                         "src='images/i_import_on.gif' width='22' height='22' align='absmiddle' border='0' hspace='3'", _
30
                                         "form_update_"&Get_Devl_Environment&"_dependencies.asp?pv_id="&parPv_id&"&rtag_id="&parRtag_id
31
 
6788 dpurdie 32
                BuildActionButtonLink TRUE, "Export", "Export this dependency list to be used in your build file.", _
6786 dpurdie 33
                                         "src='images/i_export_on.gif' width='22' height='22' align='absmiddle' border='0' hspace='3'", _
34
                                         "form_export_"&Get_Devl_Environment&"_dependencies.asp?pv_id="&parPv_id&"&rtag_id="&parRtag_id%>
127 ghuddy 35
         </tr>
36
      </table>
37
 
119 ghuddy 38
   <%Case "Runtime Dependencies"%>
6790 dpurdie 39
         <!-- Runtime Dependencies -->
127 ghuddy 40
         <table width="10" border="0" cellspacing="10">
41
            <tr>
6786 dpurdie 42
                <%isActive = IsNull(pkgInfoHash.Item ("is_patch")) AND NOT isClosed AND ((pkgInfoHash.Item ("dlocked") = "N") OR (pkgInfoHash.Item ("dlocked") = "R") OR criticalSectionIsEditable)
43
                  BuildActionButton isActive, "Add", "Add runtime dependency to the list.", _
44
                                         "src='images/i_add_deps.gif' width='22' height='25' align='absmiddle' border='0' hspace='3'", _
45
                                         "form_search_pkgs.asp?pv_id=" & parPv_id & "&rtag_id=" & parRtag_id & "&add_type=" & enum_ADD_RUNTIME_DEPENDENCIES%>
127 ghuddy 46
            </tr>
47
         </table>
6790 dpurdie 48
         <!-- END Runtime Dependencies -->
127 ghuddy 49
 
6790 dpurdie 50
     <%' Not currently used %>
51
     <%Case "Used By"%>
52
         <table width="10" border="0" cellspacing="10">
53
            <tr>
54
                <%isActive = IsNull(pkgInfoHash.Item ("is_patch"))
55
                  BuildActionButton isActive, "Show All", "Show the complete list packages that use this package", _
56
                                         "src='images/i_used_by_large.gif' width='22' height='25' align='absmiddle' border='0' hspace='3'", _
57
                                         "used_by_all.asp?pv_id=" & parPv_id & "&rtag_id=" & parRtag_id
58
 
59
                  BuildActionButton isActive, "Show All Depends", "Show the complete list packages that are requred to build this package", _
60
                                         "src='images/i_used_by_large.gif' width='22' height='25' align='absmiddle' border='0' hspace='3'", _
61
                                         "dependencies_all.asp?pv_id=" & parPv_id & "&rtag_id=" & parRtag_id%>
62
            </tr>
63
         </table>
64
 
119 ghuddy 65
   <%Case "Patches"%>
127 ghuddy 66
      <table width="10" border="0" cellspacing="10">
67
         <tr>
6788 dpurdie 68
            <%If NOT isClosed AND NOT pkgInfoHash.Item ("is_sdkpkg") AND (pkgInfoHash.Item ("dlocked") = "Y") Then
127 ghuddy 69
 
6788 dpurdie 70
                BuildActionButtonClick TRUE, "Add", "Add a patch to this package.", FALSE, _
71
                                             "src='images/i_add_patch.gif' width='23' height='25' align='absmiddle' border='0' hspace='3'", _
72
                                             "MM_openVixIFrame('_wform_new_patch.asp?pv_id="&parPv_id&"&rtag_id="&parRtag_id&"','New Patch')"
127 ghuddy 73
 
6788 dpurdie 74
                BuildActionButtonClick TRUE, "Roll-up Obsolete Patches", "Obsolete patches in one go.", FALSE, _
75
                                             "src='images/abtn_obsolete_patch.gif' width='23' height='25' align='absmiddle' border='0' hspace='3'", _
76
                                             "MM_openVixIFrame('_wform_obsolete_all_patches.asp?pv_id="&parPv_id&"&rtag_id="&parRtag_id&"','Obsolete Patches')"
77
 
78
               If canShowControlInProject("ReleasePatch") Then
79
                    BuildActionButtonClick isActive, "Make Release Bulk Patches", "Make Release patches in one go.", FALSE, _
80
                                             "src='images/abtn_make_release_bulk_patches.gif' width='23' height='25' align='absmiddle' border='0' hspace='3'", _
81
                                             "MM_openVixIFrame('_wform_make_release_bulk_patches.asp?pv_id="&parPv_id&"&rtag_id="&parRtag_id&"','Bulk Patch Release')"
82
               End If
83
            End If%>
127 ghuddy 84
         </tr>
85
      </table>
86
 
119 ghuddy 87
   <%Case "Release Notes"%>
127 ghuddy 88
      <table width="10" border="0" cellspacing="10">
89
         <tr>
6786 dpurdie 90
            <%
91
                IsActive = (pkgInfoHash.Item ("dlocked") = "Y") AND (InStr(pkgInfoHash.Item ("release_notes_info"),"MSG:") < 1) AND NOT IsNull(pkgInfoHash.Item ("release_notes_info"))
6788 dpurdie 92
                BuildActionButtonLink isActive, "Download", "Download full release notes.", _
6786 dpurdie 93
                                             "src='images/btn_download.gif' width='22' height='22' align='absmiddle' border='0' hspace='3'", _
94
                                             HTTP_PKG_ARCHIVE & pkgInfoHash.Item ("release_notes_info")
95
 
96
                IsActive = canActionControlInProject("EditCriticalInfoForLockedPackage") AND NOT isClosed AND ((pkgInfoHash.Item ("dlocked") = "Y") AND (pkgInfoHash.Item ("release_notes_info") <> enum_RELEASE_NOTES_NOT_FOUND_IN_ARCHIVE))
6788 dpurdie 97
                BuildActionButton isActive, "Regenerate Notes", "Regenerate Release Notes.", _
6786 dpurdie 98
                                             "src='images/i_sync_on.gif' width='22' height='22' align='absmiddle' border='0' hspace='3'", _
99
                                             "fixed_issues.asp?pv_id="&parPv_id&"&rtag_id="&parRtag_id&"&resetNotes=1"%>
127 ghuddy 100
         </tr>
101
      </table>
102
 
119 ghuddy 103
   <%Case "Documentation"%>
127 ghuddy 104
      <table width="10" border="0" cellspacing="10">
105
         <tr>
6786 dpurdie 106
          <%
107
            IsActive = (NOT isClosed AND NOT isSDK) OR canActionControlInProject("EditCriticalInfoForLockedPackage") 
108
            BuildActionButtonClick isActive, "Import From Document Repository", "Import document details from ERG document repository.",FALSE, _
109
                                        "src='images/i_import_on.gif' width='22' height='22' align='absmiddle' border='0' hspace='3'", _
110
                                        "MM_openVixIFrame('_wform_import_docs.asp?pv_id="&parPv_id&"&rtag_id="&parRtag_id&"','Import Documents')"%>
127 ghuddy 111
         </tr>
112
      </table>
113
 
119 ghuddy 114
   <%Case "Add Process"%>
127 ghuddy 115
      <table width="10" border="0" cellspacing="10">
116
         <tr>
6786 dpurdie 117
            <%  isActive = NOT isClosed AND ((pkgInfoHash.Item ("dlocked") = "N") OR (pkgInfoHash.Item ("dlocked") = "R"))  
118
                BuildActionButtonClick isActive, "Add Process", "Insert processes associated with the package.",FALSE, _
119
                                        "src='icons/btn_add.gif' width='13' height='13' align='absmiddle' border='0' hspace='3'", _
120
                                        "MM_openVixIFrame('wAddProc.asp?pv_id="&parPv_id&"&rtag_id="&parRtag_id&"','Add Process')"%>
127 ghuddy 121
         </tr>
122
      </table>
119 ghuddy 123
 
127 ghuddy 124
   <%Case "Add GBE_MACHTYPE"%>
7245 dpurdie 125
      <table width="100%" border="0" cellspacing="0">
127 ghuddy 126
         <tr>
7245 dpurdie 127
            <%BuildActionButtonClick bState, "Add Machine Type", "Insert New GBE_MACHTYPE.",TRUE, _
6786 dpurdie 128
                                     "src='icons/btn_add.gif' width='13' height='13' align='absmiddle' border='0' hspace='3'", _
129
                                     "MM_openVixIFrame('wAddMachtype.asp','Add Machine Type')"%>
127 ghuddy 130
         </tr>
131
      </table>
119 ghuddy 132
 
5122 dpurdie 133
   <%Case "Add GBE_BUILDSTANDARD"%>
7245 dpurdie 134
      <table width="100%" border="0" cellspacing="0">
5122 dpurdie 135
         <tr>
7245 dpurdie 136
            <%BuildActionButtonClick bState, "Add Build Standard", "Insert New Build Standard.",TRUE, _
6786 dpurdie 137
                                     "src='icons/btn_add.gif' width='13' height='13' align='absmiddle' border='0' hspace='3'", _
138
                                     "MM_openVixIFrame('wAddBuildStandard.asp','Add Build Standard')"%>
5122 dpurdie 139
         </tr>
140
      </table>
141
 
142
 
4029 dpurdie 143
   <%Case "Add BM_NAME"%>
7245 dpurdie 144
      <table width="100%" border="0" cellspacing="0">
4029 dpurdie 145
         <tr>
7245 dpurdie 146
            <%BuildActionButtonClick isActive, "Add Machine Class", "Insert New Class of Build Machine.",TRUE, _
6786 dpurdie 147
                                     "src='icons/btn_add.gif' width='13' height='13' align='absmiddle' border='0' hspace='3'", _
148
                                     "MM_openVixIFrame('wAddMachclass.asp','Add New Class of Build Machine')"%>
4029 dpurdie 149
         </tr>
150
      </table>
151
 
3959 dpurdie 152
   <%Case "Add Project Extension"%>
5983 dpurdie 153
      <table width="100%" border="0" cellspacing="0" ID="Table1">
3959 dpurdie 154
         <tr>
6786 dpurdie 155
            <%BuildActionButtonClick bState, "Add Project Extension", "Insert New Project Extension",TRUE, _
156
                                     "src='icons/btn_add.gif' width='13' height='13' align='absmiddle' border='0' hspace='3'", _
157
                                     "MM_openVixIFrame('wAddProjectExtension.asp','Add Project Extension')"%>
3959 dpurdie 158
         </tr>
159
      </table>
160
 
6770 dpurdie 161
   <%Case "Add Package Replica"%>
162
      <table width="10" border="0" cellspacing="0" ID="Table1">
163
         <tr>
6786 dpurdie 164
            <%BuildActionButtonClick bState, "Add Package Replica", "Insert New Package Replica.", TRUE, _
165
                                        "src='icons/btn_add.gif' width='13' height='13' align='absmiddle' border='0' hspace='3'", _
166
                                        "MM_openVixIFrame('wAddPkgReplica.asp','Add Package Replica')"%>
6770 dpurdie 167
         </tr>
168
      </table>
169
 
127 ghuddy 170
   <%Case "Add Licence"%>
5983 dpurdie 171
      <table width="100%" border="0" cellspacing="0">
127 ghuddy 172
         <tr>
6786 dpurdie 173
            <%BuildActionButtonClick bState, "Add Licence", "Insert New Licence",TRUE, _
174
                                     "src='icons/btn_add.gif' width='13' height='13' align='absmiddle' border='0' hspace='3'", _
175
                                     "MM_openVixIFrame('wAddLicence.asp','Add Licence')"%>
127 ghuddy 176
         </tr>
177
      </table>
178
 
5983 dpurdie 179
   <%Case "Add VCS"%>
180
      <table width="100%" border="0" cellspacing="0">
181
         <tr>
6786 dpurdie 182
            <%BuildActionButtonClick bState, "Add VCS", "Insert New VCS",TRUE, _
183
                                     "src='icons/btn_add.gif' width='13' height='13' align='absmiddle' border='0' hspace='3'", _
184
                                     "MM_openVixIFrame('wAddVCS.asp','Add New VCS')"%>
5983 dpurdie 185
         </tr>
186
      </table>
187
 
127 ghuddy 188
   <%Case "Add Schedule"%>
5123 dpurdie 189
      <table width="10" border="0" cellspacing="0">
127 ghuddy 190
         <tr>
6786 dpurdie 191
            <%BuildActionButtonClick bState, "Add Schedule", "Insert New Schedule",TRUE, _
192
                                     "src='icons/btn_add.gif' width='13' height='13' align='absmiddle' border='0' hspace='3'", _
193
                                     "MM_openVixIFrame('wAddSchedule.asp','Add a new Schedule')" %>
127 ghuddy 194
         </tr>
195
      </table>
196
 
197
   <%Case "Indefinite Pause"%>
5123 dpurdie 198
      <table width="10" border="0" cellspacing="0">
127 ghuddy 199
         <tr>
6786 dpurdie 200
            <%BuildActionButtonClick bState, "Set Indefinite Pause", "Indefinite Pause",TRUE, _
201
                                     "src='icons/tpause.gif' width='16' height='16' align='absmiddle' border='0' hspace='3'", _
7337 dpurdie 202
                                     "showGlobalProgress();location.href='_setInfinitePause.asp';" %>
127 ghuddy 203
         </tr>
204
      </table>
205
 
206
   <%Case "Resume"%>
5157 dpurdie 207
      <table width="10" border="0" cellspacing="0">
127 ghuddy 208
         <tr>
6786 dpurdie 209
            <%BuildActionButtonClick bState, "Set Resume", "Resume Processing",TRUE, _
210
                                     "src='icons/tplay.gif' width='16' height='16' align='absmiddle' border='0' hspace='3'", _
7337 dpurdie 211
                                     "showGlobalProgress();location.href='_setResume.asp';" %>
171 brianf 212
         </tr>
213
      </table>
5982 dpurdie 214
 
6788 dpurdie 215
   <%Case "Add Daemon Instruction"%>
216
      <table width="10" border="0" cellspacing="10">
217
         <tr>
218
            <%BuildActionButtonClick bState, "Add Daemon Instruction", "Insert New Daemon Instruction.", TRUE, _
219
                                        "src='icons/btn_add.gif' width='13' height='13' align='absmiddle' border='0' hspace='3'", _
220
                                        "MM_openVixIFrame('wAddDaemonInstruction.asp','Insert New Daemon Instruction')"%>
221
         </tr>
222
      </table>
223
 
171 brianf 224
   <%Case "Daemon Start"%>
173 brianf 225
      <table border="0" cellspacing="0" cellpadding="0">
6786 dpurdie 226
         <!-- Daemon Start -->
171 brianf 227
         <tr>
173 brianf 228
            <td valign=top>
5623 dpurdie 229
               <img src="icons/tstopped.gif" width="16" height="16" border="0" vspace=2 hspace="5" title="Disabled">
173 brianf 230
            </td>
6788 dpurdie 231
            <%BuildActionButtonClick bState, "", "Enable Daemon", FALSE, _
6786 dpurdie 232
                                     "src='icons/tplay.gif' width='16' height='16' border='0' vspace='2' hspace='0'", _
6788 dpurdie 233
                                     "location.href='_setDaemonResume.asp?rcon_id="&rcon_id&"&rtag_id="&parRtagId&"&rfile="&scriptName&"'"%>
127 ghuddy 234
 
6786 dpurdie 235
            <%BuildActionButton FALSE, "", "Pause Daemon", "src='icons/tpause.gif' width='16' height='16' border='0' vspace='2' hspace='0'",""%>
236
 
237
            <%BuildActionButton FALSE, "", "Disable Daemon", "src='icons/tstop.gif' width='16' height='16' border='0' vspace='2' hspace='0'",""%>
171 brianf 238
         </tr>
239
      </table>
240
 
127 ghuddy 241
   <%Case "Daemon Pause"%>
173 brianf 242
      <table border="0" cellspacing="0" cellpadding="0">
6786 dpurdie 243
         <!-- Daemon Pause -->
127 ghuddy 244
         <tr>
173 brianf 245
            <td valign=top>
5623 dpurdie 246
               <img src="icons/tplayed.gif" width="16" height="16" border="0" vspace=2 hspace="5" title="Enabled">
173 brianf 247
            </td>
6786 dpurdie 248
            <%BuildActionButton FALSE, "", "Enable Daemon", "src='icons/tplay.gif' width='16' height='16' border='0' vspace='2' hspace='0'", ""%>
127 ghuddy 249
 
6788 dpurdie 250
            <%BuildActionButtonClick bState, "", "Pause Daemon", FALSE, _
6786 dpurdie 251
                                     "src='icons/tpause.gif' width='16' height='16' border='0' vspace='2' hspace='0'", _
6788 dpurdie 252
                                     "location.href='_setDaemonPause.asp?rcon_id="&rcon_id&"&rtag_id="&parRtagId&"&rfile="&scriptName&"'"%>
6786 dpurdie 253
 
6788 dpurdie 254
            <%BuildActionButtonClick bState, "", "Disable Daemon", FALSE, _
6786 dpurdie 255
                                     "src='icons/tstop.gif' width='16' height='16' border='0' vspace='2' hspace='0'", _
6788 dpurdie 256
                                     "location.href='_setDaemonDisable.asp?rcon_id="&rcon_id&"&rtag_id="&parRtagId&"&rfile="&scriptName&"'"%>
127 ghuddy 257
         </tr>
258
      </table>
259
 
260
   <%Case "Daemon Resume"%>
173 brianf 261
      <table border="0" cellspacing="0" cellpadding="0">
6786 dpurdie 262
         <!-- Daemon Resume -->
127 ghuddy 263
         <tr>
173 brianf 264
            <td valign=top>
5623 dpurdie 265
               <img src="icons/tpaused.gif" width="16" height="16" border="0" vspace=2 hspace="5" title="Paused">
173 brianf 266
            </td>
6788 dpurdie 267
            <%BuildActionButtonClick bState, "", "Enable Daemon", FALSE, _
6786 dpurdie 268
                                     "src='icons/tplay.gif' width='16' height='16' border='0' vspace='2' hspace='0'", _
6788 dpurdie 269
                                     "location.href='_setDaemonResume.asp?rcon_id="&rcon_id&"&rtag_id="&parRtagId&"&rfile="&scriptName &"'"%>
127 ghuddy 270
 
6786 dpurdie 271
            <%BuildActionButton FALSE, "", "Pause Daemon", "src='icons/tpause.gif' width='16' height='16' border='0' vspace='2' hspace='0'",""%>
272
 
6788 dpurdie 273
            <%BuildActionButtonClick bState, "", "Disable Daemon", FALSE, _
6786 dpurdie 274
                                     "src='icons/tstop.gif' width='16' height='16' border='0' vspace='2' hspace='0'", _
6788 dpurdie 275
                                     "location.href='_setDaemonDisable.asp?rcon_id="&rcon_id&"&rtag_id="&parRtagId&"&rfile="&scriptName&"'"%>
127 ghuddy 276
         </tr>
277
      </table>
278
 
171 brianf 279
   <%Case "Daemon Control All"%>
173 brianf 280
      <table border="0" cellspacing="0" cellpadding="0">
6788 dpurdie 281
         <!-- Daemon Control All -->
171 brianf 282
         <tr>
173 brianf 283
            <td valign=top>
5623 dpurdie 284
               <img src=icons/tpaused.gif width="16" height="16" border="0" vspace=2 hspace="5" style="visibility:hidden">
173 brianf 285
            </td>
6788 dpurdie 286
            <%BuildActionButtonClick bState, "", "Enable Daemons", FALSE, _
6786 dpurdie 287
                                     "src='icons/tplay.gif' width='16' height='16' border='0' vspace='2' hspace='0'", _
6788 dpurdie 288
                                     "location.href='_setDaemonResume.asp?rtag_id="&parRtagId&"&rfile="&scriptName&"'"%>
5983 dpurdie 289
 
6788 dpurdie 290
            <%BuildActionButtonClick bState, "", "Pause Daemons", FALSE, _
6786 dpurdie 291
                                     "src='icons/tpause.gif' width='16' height='16' border='0' vspace='2' hspace='0'", _
6788 dpurdie 292
                                     "location.href='_setDaemonPause.asp?rtag_id="&parRtagId&"&rfile="&scriptName&"'"%>
6786 dpurdie 293
 
6788 dpurdie 294
            <%BuildActionButtonClick bState, "", "Disable Daemons", FALSE, _
6786 dpurdie 295
                                     "src='icons/tstop.gif' width='16' height='16' border='0' vspace='2' hspace='0'", _
6788 dpurdie 296
                                     "location.href='_setDaemonDisable.asp?rtag_id="&parRtagId&"&rfile="&scriptName&"'"%>
171 brianf 297
         </tr>
298
      </table>
299
 
6267 dpurdie 300
   <%Case "Daemon Unavailable"%>
301
      <table border="0" cellspacing="0" cellpadding="0">
6786 dpurdie 302
         <!-- Daemon StartUnavailable -->
6267 dpurdie 303
         <tr>
304
            <td valign=top>
305
               <img src=icons/tpaused_notfound.gif width="16" height="16" border="0" vspace=2 hspace="5">
306
            </td>
6786 dpurdie 307
            <%BuildActionButton FALSE, "", "Enable Daemons",  "src='icons/tplay.gif' width='16' height='16' border='0' vspace='2' hspace='0'", ""%>
308
            <%BuildActionButton FALSE, "", "Pause Daemons",   "src='icons/tpause.gif' width='16' height='16' border='0' vspace='2' hspace='0'",""%>
309
            <%BuildActionButton FALSE, "", "Disable Daemons", "src='icons/tstop.gif' width='16' height='16' border='0' vspace='2' hspace='0'","" %>
6267 dpurdie 310
         </tr>
311
      </table>
312
 
119 ghuddy 313
   <%End Select%>
314
<%End Sub%>
6786 dpurdie 315
 
316