| Line 129... |
Line 129... |
| 129 |
Response.write "<b>Status:</b> Released<br>"
|
129 |
Response.write "<b>Status:</b> Released<br>"
|
| 130 |
Else
|
130 |
Else
|
| 131 |
Response.write "<b>Status: </b>Not released<br>"
|
131 |
Response.write "<b>Status: </b>Not released<br>"
|
| 132 |
End If
|
132 |
End If
|
| 133 |
End Sub
|
133 |
End Sub
|
| 134 |
'-----------------------------------------------------------------------------------------------------------------------------
|
- |
|
| 135 |
Sub Print_Pkg_Info()
|
- |
|
| 136 |
|
134 |
|
| 137 |
' Status:
|
- |
|
| 138 |
If IsNull(pkgInfoHash.Item ("is_patch")) Then
|
- |
|
| 139 |
Call RenderPackageState ()
|
- |
|
| 140 |
Else
|
- |
|
| 141 |
If objAccessControl.IsDataActive ("PROJECTS", DB_PROJ_ID, "EditProjects") AND (objAccessControl.IsActive("UnlockPatch")) Then
|
- |
|
| 142 |
If (pkgInfoHash.Item ("dlocked") = "Y") Then
|
- |
|
| 143 |
' Unlock patch.
|
- |
|
| 144 |
Response.write "<a href='_s_unlock_package.asp?pv_id="& parPv_id &"&rtag_id="& parRtag_id &"' class='body_txt' title='Unlock the patch.'><b>Status:</b><img src='images/i_edit.gif' width='12' height='12' border='0' ></a> Released<br>"
|
- |
|
| 145 |
ElseIf (pkgInfoHash.Item ("dlocked") = "N") Then
|
- |
|
| 146 |
' Lock Patch
|
- |
|
| 147 |
Response.write "<a href='_s_lock_package.asp?pv_id="& parPv_id &"&rtag_id="& parRtag_id &"' class='body_txt' title='Lock the patch. Release requirements are not applied.'><b>Status:</b><img src='images/i_edit.gif' width='12' height='12' border='0'></a> Not Released<br>"
|
- |
|
| 148 |
End If
|
- |
|
| 149 |
Else
|
- |
|
| 150 |
Call RenderPackageState ()
|
- |
|
| 151 |
End If
|
- |
|
| 152 |
End If
|
- |
|
| 153 |
|
- |
|
| 154 |
' Base View:
|
- |
|
| 155 |
Response.write "<b>Base View: </b>"& Get_Pkg_Base_View ( parPv_id, parRtag_id ) &"<br>"
|
- |
|
| 156 |
|
- |
|
| 157 |
' Previous Version:
|
- |
|
| 158 |
If IsNull(pkgInfoHash.Item ("is_patch")) Then
|
- |
|
| 159 |
If objAccessControl.IsActive("ChangePreviousVersion") Then
|
- |
|
| 160 |
If IsNull(pkgInfoHash.Item ("previous_version")) Then
|
- |
|
| 161 |
Response.write "<a href='javascript:;' onClick='MM_openBrWindow(""_wform_change_previous_version.asp?rfile="& scriptName &"&pv_id="& parPv_id &"&rtag_id="& parRtag_id &""",""ChangeOwner"",""resizable=yes,width=400,height=200"")' class='body_txt'><b>Previous Version:</b><img src='images/i_edit.gif' width='12' height='12' border='0' alt='Edit'></a> Unknown!<br>"
|
- |
|
| 162 |
Else
|
- |
|
| 163 |
Response.write "<a href='javascript:;' onClick='MM_openBrWindow(""_wform_change_previous_version.asp?rfile="& scriptName &"&pv_id="& parPv_id &"&rtag_id="& parRtag_id &""",""ChangeOwner"",""resizable=yes,width=400,height=200"")' class='body_txt'><b>Previous Version:</b><img src='images/i_edit.gif' width='12' height='12' border='0' alt='Edit'> "& pkgInfoHash.Item ("previous_version") &"</a><br>"
|
- |
|
| 164 |
End If
|
- |
|
| 165 |
Else
|
- |
|
| 166 |
If IsNull(pkgInfoHash.Item ("previous_version")) Then
|
- |
|
| 167 |
Response.write "<b>Previous Version:</b><img src='images/i_edit_disable.gif' width='12' height='12' border='0' alt='Edit'></a> Unknown!<br>"
|
- |
|
| 168 |
Else
|
- |
|
| 169 |
Response.write "<b>Previous Version:</b><img src='images/i_edit_disable.gif' width='12' height='12' border='0' alt='Edit'> "& pkgInfoHash.Item ("previous_version") &"</a><br>"
|
- |
|
| 170 |
End If
|
- |
|
| 171 |
End If
|
- |
|
| 172 |
End If
|
- |
|
| 173 |
Response.write "<br>"
|
- |
|
| 174 |
|
- |
|
| 175 |
Response.write "<table width='100' border='0' cellspacing='0' cellpadding='1'>"
|
- |
|
| 176 |
|
- |
|
| 177 |
' Owner:
|
- |
|
| 178 |
Response.write "<tr>"
|
- |
|
| 179 |
If objAccessControl.UserLogedIn() Then
|
- |
|
| 180 |
Response.write "<td nowrap><a href='javascript:;' onClick='MM_openBrWindow(""_wform_change_owner.asp?pv_id="& parPv_id &"&rtag_id="& parRtag_id &""",""ChangeOwner"",""resizable=yes,width=400,height=200"")' class='body_txt'><b>Owner:</b><img src='images/i_edit.gif' width='12' height='12' border='0' alt='Change owner'></a> </td>"
|
- |
|
| 181 |
Else
|
- |
|
| 182 |
Response.write "<td nowrap class='body_txt'><b>Owner:</b><img src='images/i_edit_disable.gif' width='12' height='12' border='0' alt='Change owner'></td>"
|
- |
|
| 183 |
End If
|
- |
|
| 184 |
Response.write "<td nowrap class='body_txt'>"& pkgInfoHash.Item ("owner") &"</td>"
|
- |
|
| 185 |
Response.write "<td><a href='mailto:"& pkgInfoHash.Item ("owner_email") &"' class='txt_linked'><img src='images/bt_send_email.gif' width='36' height='13' hspace='3' border='0' align='absmiddle' alt='"& pkgInfoHash.Item ("owner_email") &"'></a></td>"
|
- |
|
| 186 |
Response.write "</tr>"
|
- |
|
| 187 |
|
- |
|
| 188 |
' Created:
|
- |
|
| 189 |
Response.write "<tr>"
|
- |
|
| 190 |
Response.write "<td nowrap class='body_txt'><b>Created: </b></td>"
|
- |
|
| 191 |
Response.write "<td nowrap class='body_txt'>"& EuroDate(pkgInfoHash.Item ("created_stamp")) &" by "& pkgInfoHash.Item ("creator") &"</td>"
|
- |
|
| 192 |
Response.write "<td><a href='mailto:"& pkgInfoHash.Item ("creator_email") &"' class='txt_linked'><img src='images/bt_send_email.gif' width='36' height='13' hspace='3' border='0' align='absmiddle' alt='"& pkgInfoHash.Item ("creator_email") &"'></a></td>"
|
- |
|
| 193 |
Response.write "</tr>"
|
- |
|
| 194 |
|
- |
|
| 195 |
' Last Modified:
|
- |
|
| 196 |
Response.write "<tr>"
|
- |
|
| 197 |
Response.write "<td nowrap class='body_txt'><b>Last Modified: </b></td>"
|
- |
|
| 198 |
Response.write "<td nowrap class='body_txt'>"& EuroDateTime(pkgInfoHash.Item ("modified_stamp")) &" by "& pkgInfoHash.Item ("modifier") &"</td>"
|
- |
|
| 199 |
Response.write "<td><a href='mailto:"& pkgInfoHash.Item ("modifier_email") &"' class='txt_linked'><img src='images/bt_send_email.gif' width='36' height='13' hspace='3' border='0' align='absmiddle' alt='"& pkgInfoHash.Item ("modifier_email") &"'></a></td>"
|
- |
|
| 200 |
Response.write "</tr>"
|
- |
|
| 201 |
If IsNull(pkgInfoHash.Item ("is_patch")) AND (Request("rtag_id") <> "") Then
|
- |
|
| 202 |
Response.write "<tr>"
|
- |
|
| 203 |
If pkgInfoHash.Item ("insertor") <> "" Then
|
- |
|
| 204 |
Response.write "<td nowrap class='body_txt'><b>Added to Release: </b></td>"
|
- |
|
| 205 |
Response.write "<td nowrap class='body_txt'>"& EuroDate(pkgInfoHash.Item ("insert_stamp")) &" by "& pkgInfoHash.Item ("insertor") &"</td>"
|
- |
|
| 206 |
Response.write "<td><a href='mailto:"& pkgInfoHash.Item ("insertor_email") &"' class='txt_linked'><img src='images/bt_send_email.gif' width='36' height='13' hspace='3' border='0' align='absmiddle' alt='"& pkgInfoHash.Item ("insertor_email") &"'></a></td>"
|
- |
|
| 207 |
End If
|
- |
|
| 208 |
Response.write "</tr>"
|
- |
|
| 209 |
End If
|
- |
|
| 210 |
|
- |
|
| 211 |
' Config Specs:
|
- |
|
| 212 |
Call Config_Spec (Request("rtag_id"), Request("pv_id"))
|
- |
|
| 213 |
Call Config_Spec_Template (pkgInfoHash.Item("dlocked"), rsQry("config_spec_branch"), rsQry("pkg_label"), rsQry("src_path"))
|
- |
|
| 214 |
|
- |
|
| 215 |
' Jats commands
|
- |
|
| 216 |
Call Jats_Commands (pkgInfoHash.Item("dlocked"), rsQry("config_spec_branch"), rsQry("pkg_label"), rsQry("src_path"))
|
- |
|
| 217 |
|
- |
|
| 218 |
rsQry.Close()
|
- |
|
| 219 |
Set rsQry = nothing
|
- |
|
| 220 |
Response.write "</table>"
|
- |
|
| 221 |
|
- |
|
| 222 |
End Sub
|
- |
|
| 223 |
'---------------------------------------------------------------
|
135 |
'---------------------------------------------------------------
|
| 224 |
Sub Config_Spec (NNRtag_id, NNPv_id)
|
136 |
Sub Config_Spec (NNRtag_id, NNPv_id)
|
| 225 |
OraDatabase.Parameters.Add "RTAG_ID", NNRtag_id, ORAPARM_INPUT, ORATYPE_NUMBER
|
137 |
OraDatabase.Parameters.Add "RTAG_ID", NNRtag_id, ORAPARM_INPUT, ORATYPE_NUMBER
|
| 226 |
OraDatabase.Parameters.Add "PV_ID", NNPv_id, ORAPARM_INPUT, ORATYPE_NUMBER
|
138 |
OraDatabase.Parameters.Add "PV_ID", NNPv_id, ORAPARM_INPUT, ORATYPE_NUMBER
|
| 227 |
|
139 |
|