| Line 12... |
Line 12... |
| 12 |
Dim parOLshow ' show/hide outer-latest
|
12 |
Dim parOLshow ' show/hide outer-latest
|
| 13 |
Dim parBshow ' expand/collapse base views
|
13 |
Dim parBshow ' expand/collapse base views
|
| 14 |
Dim parPshow ' expand/collapse personal views
|
14 |
Dim parPshow ' expand/collapse personal views
|
| 15 |
Dim parPview ' enable/disable all personal views
|
15 |
Dim parPview ' enable/disable all personal views
|
| 16 |
Dim parDview ' enable/disable deployment view.
|
16 |
Dim parDview ' enable/disable deployment view.
|
| - |
|
17 |
Dim hasPview ' Has Personal View
|
| 17 |
Dim IMG_locked
|
18 |
Dim IMG_locked
|
| 18 |
Dim rsEnvQry
|
19 |
Dim rsEnvQry
|
| 19 |
Dim pvIdInList
|
20 |
Dim pvIdInList
|
| 20 |
Dim checked
|
21 |
Dim checked
|
| 21 |
Dim disabled
|
22 |
Dim disabled
|
| Line 33... |
Line 34... |
| 33 |
parOLshow = QStrPar("OLshow")
|
34 |
parOLshow = QStrPar("OLshow")
|
| 34 |
parBshow = QStrPar("Bshow")
|
35 |
parBshow = QStrPar("Bshow")
|
| 35 |
parPshow = QStrPar("Pshow")
|
36 |
parPshow = QStrPar("Pshow")
|
| 36 |
parPview = QStrPar("Pview")
|
37 |
parPview = QStrPar("Pview")
|
| 37 |
parDview = QStrPar("Dview")
|
38 |
parDview = QStrPar("Dview")
|
| - |
|
39 |
hasPview = hasPersonalViews()
|
| - |
|
40 |
If NOT hasPview Then parPview = "disable"
|
| 38 |
'----------------------------------------------
|
41 |
'----------------------------------------------
|
| 39 |
%>
|
42 |
%>
|
| 40 |
|
43 |
|
| 41 |
<script language="JavaScript" type="text/javascript">
|
44 |
<script language="JavaScript" type="text/javascript">
|
| 42 |
<!--
|
45 |
<!--
|
| Line 635... |
Line 638... |
| 635 |
Dim qstrPar
|
638 |
Dim qstrPar
|
| 636 |
Dim nViewType
|
639 |
Dim nViewType
|
| 637 |
Dim nTrueRecordCount
|
640 |
Dim nTrueRecordCount
|
| 638 |
Dim nOperation
|
641 |
Dim nOperation
|
| 639 |
Dim relContentsSTR, viewCollapsed, curr_view_id, view_name
|
642 |
Dim relContentsSTR, viewCollapsed, curr_view_id, view_name
|
| - |
|
643 |
Dim canBeEmpty
|
| 640 |
|
644 |
|
| 641 |
If isDefined("allowNoPackage") Then
|
645 |
If isDefined("allowNoPackage") Then
|
| 642 |
SSscript = "dependencies.asp"
|
646 |
SSscript = "dependencies.asp"
|
| 643 |
Else
|
647 |
Else
|
| 644 |
SSscript = scriptName
|
648 |
SSscript = scriptName
|
| Line 649... |
Line 653... |
| 649 |
qstrPar = "Bshow"
|
653 |
qstrPar = "Bshow"
|
| 650 |
ElseIf SSviewtype = "personal" Then
|
654 |
ElseIf SSviewtype = "personal" Then
|
| 651 |
nViewType = 2
|
655 |
nViewType = 2
|
| 652 |
qstrPar = "Pshow"
|
656 |
qstrPar = "Pshow"
|
| 653 |
End If
|
657 |
End If
|
| - |
|
658 |
canBeEmpty = false
|
| - |
|
659 |
|
| 654 |
'rmDebug = rmDebug & " ,NNEnvTab[" & NNEnvTab & "," & CInt(NNEnvTab) & "]"
|
660 |
'rmDebug = rmDebug & " ,NNEnvTab[" & NNEnvTab & "," & CInt(NNEnvTab) & "]"
|
| 655 |
OraDatabase.Parameters.Add "VIEW_TYPE", nViewType, ORAPARM_INPUT, ORATYPE_NUMBER
|
661 |
OraDatabase.Parameters.Add "VIEW_TYPE", nViewType, ORAPARM_INPUT, ORATYPE_NUMBER
|
| 656 |
'OraDatabase.Parameters.Add "VIEW_ID_SHOW_LIST", ShowView( Pipes2Commas( SSshowviews ), SSviewtype ), ORAPARM_INPUT, ORATYPE_VARCHAR2
|
662 |
'OraDatabase.Parameters.Add "VIEW_ID_SHOW_LIST", ShowView( Pipes2Commas( SSshowviews ), SSviewtype ), ORAPARM_INPUT, ORATYPE_VARCHAR2
|
| 657 |
OraDatabase.Parameters.Add "VIEW_ID_SHOW_LIST", GetShowViewList(), ORAPARM_INPUT, ORATYPE_VARCHAR2
|
663 |
OraDatabase.Parameters.Add "VIEW_ID_SHOW_LIST", GetShowViewList(), ORAPARM_INPUT, ORATYPE_VARCHAR2
|
| 658 |
OraDatabase.Parameters.Add "RTAG_ID", NNrtag_id, ORAPARM_INPUT, ORATYPE_NUMBER
|
664 |
OraDatabase.Parameters.Add "RTAG_ID", NNrtag_id, ORAPARM_INPUT, ORATYPE_NUMBER
|
| Line 684... |
Line 690... |
| 684 |
Else
|
690 |
Else
|
| 685 |
' Decide which environment list is to be displayed
|
691 |
' Decide which environment list is to be displayed
|
| 686 |
Select Case CInt( NNEnvTab )
|
692 |
Select Case CInt( NNEnvTab )
|
| 687 |
Case enumENVTAB_WORK_IN_PROGRESS
|
693 |
Case enumENVTAB_WORK_IN_PROGRESS
|
| 688 |
OraDatabase.ExecuteSQL "BEGIN PK_ENVIRONMENT.GET_WORK_IN_PROGRESS_ITEMS ( :VIEW_TYPE, :USER_ID, :RTAG_ID, :VIEW_ID_SHOW_LIST, :TRUE_RECORD_COUNT, :RECORD_SET ); END;"
|
694 |
OraDatabase.ExecuteSQL "BEGIN PK_ENVIRONMENT.GET_WORK_IN_PROGRESS_ITEMS ( :VIEW_TYPE, :USER_ID, :RTAG_ID, :VIEW_ID_SHOW_LIST, :TRUE_RECORD_COUNT, :RECORD_SET ); END;"
|
| - |
|
695 |
canBeEmpty = true
|
| 689 |
|
696 |
|
| 690 |
Case enumENVTAB_PLANNED
|
697 |
Case enumENVTAB_PLANNED
|
| 691 |
OraDatabase.ExecuteSQL "BEGIN PK_ENVIRONMENT.GET_PENDING_ITEMS ( :VIEW_TYPE, :USER_ID, :RTAG_ID, :VIEW_ID_SHOW_LIST, :TRUE_RECORD_COUNT, :RECORD_SET ); END;"
|
698 |
OraDatabase.ExecuteSQL "BEGIN PK_ENVIRONMENT.GET_PENDING_ITEMS ( :VIEW_TYPE, :USER_ID, :RTAG_ID, :VIEW_ID_SHOW_LIST, :TRUE_RECORD_COUNT, :RECORD_SET ); END;"
|
| - |
|
699 |
canBeEmpty = true
|
| 692 |
|
700 |
|
| 693 |
Case enumENVTAB_RELEASED
|
701 |
Case enumENVTAB_RELEASED
|
| 694 |
OraDatabase.ExecuteSQL "BEGIN PK_ENVIRONMENT.GET_RELEASED_ITEMS ( :VIEW_TYPE, :USER_ID, :RTAG_ID, :VIEW_ID_SHOW_LIST, :TRUE_RECORD_COUNT, :RECORD_SET ); END;"
|
702 |
OraDatabase.ExecuteSQL "BEGIN PK_ENVIRONMENT.GET_RELEASED_ITEMS ( :VIEW_TYPE, :USER_ID, :RTAG_ID, :VIEW_ID_SHOW_LIST, :TRUE_RECORD_COUNT, :RECORD_SET ); END;"
|
| 695 |
|
703 |
|
| 696 |
Case Else
|
704 |
Case Else
|
| Line 836... |
Line 844... |
| 836 |
' 'Release is empty. Draw default box for Base view
|
844 |
' 'Release is empty. Draw default box for Base view
|
| 837 |
' Call DisplayInfo ( "EMPTY_RELEASE_CONTENTS", "100%" )
|
845 |
' Call DisplayInfo ( "EMPTY_RELEASE_CONTENTS", "100%" )
|
| 838 |
'
|
846 |
'
|
| 839 |
'End If
|
847 |
'End If
|
| 840 |
|
848 |
|
| 841 |
If qstrPar = "Pshow" Then
|
849 |
If qstrPar = "Pshow" AND hasPview AND NOT canBeEmpty Then
|
| 842 |
'Release is empty. Draw default box for Personal view
|
850 |
'Release is empty. Draw default box for Personal view
|
| 843 |
Call DisplayInfo ( "PERSONAL_VIEW_NOT_SETUP", "100%" )
|
851 |
Call DisplayInfo ( "PERSONAL_VIEW_NOT_SETUP", "100%" )
|
| 844 |
End If
|
852 |
End If
|
| 845 |
|
853 |
|
| 846 |
End If
|
854 |
End If
|
| Line 849... |
Line 857... |
| 849 |
' Destroy
|
857 |
' Destroy
|
| 850 |
rsView.Close
|
858 |
rsView.Close
|
| 851 |
Set rsView = nothing
|
859 |
Set rsView = nothing
|
| 852 |
End Sub
|
860 |
End Sub
|
| 853 |
'------------------------------------------------------------------------------------------------------------------------------------------------
|
861 |
'------------------------------------------------------------------------------------------------------------------------------------------------
|
| - |
|
862 |
' Detect the presence of a Personal View so that the controls can be disabled if the user does
|
| - |
|
863 |
' not have any.
|
| - |
|
864 |
'
|
| 854 |
Sub PopulateGetShowViews ( ByRef outShowView )
|
865 |
Function hasPersonalViews ( )
|
| - |
|
866 |
Dim rsTemp, Query_String
|
| - |
|
867 |
hasPersonalViews = false
|
| 855 |
|
868 |
|
| 856 |
If Session(SESSION_SHOW_BASE_VIEW) <> "" Then
|
869 |
If objAccessControl.UserLogedIn Then
|
| 857 |
Set outShowView = Session(SESSION_SHOW_BASE_VIEW)
|
870 |
Query_String = "select count(*) from views where owner_id = " & objAccessControl.UserId
|
| 858 |
|
871 |
|
| - |
|
872 |
Set rsTemp = OraDatabase.DbCreateDynaset( Query_String, cint(0))
|
| - |
|
873 |
If ((NOT rsTemp.BOF) AND (NOT rsTemp.EOF)) Then
|
| - |
|
874 |
If rsTemp.Fields(0) > 0 Then
|
| - |
|
875 |
hasPersonalViews = true
|
| - |
|
876 |
End If
|
| - |
|
877 |
End If
|
| - |
|
878 |
|
| - |
|
879 |
rsTemp.Close
|
| - |
|
880 |
Set rsTemp = nothing
|
| 859 |
End If
|
881 |
End If
|
| 860 |
End Sub
|
882 |
End Function
|
| - |
|
883 |
|
| 861 |
'------------------------------------------------------------------------------------------------------------------------------------------------
|
884 |
'------------------------------------------------------------------------------------------------------------------------------------------------
|
| 862 |
Function GetShowViewList ()
|
885 |
Function GetShowViewList ()
|
| 863 |
'If SSparshow <> "" Then
|
886 |
'If SSparshow <> "" Then
|
| 864 |
' ' get list from query string
|
887 |
' ' get list from query string
|
| 865 |
' ShowView = SSparshow
|
888 |
' ShowView = SSparshow
|
| Line 883... |
Line 906... |
| 883 |
GetShowViewList = Request.Cookies(COOKIE_RELMGR_SHOW_VIEW)
|
906 |
GetShowViewList = Request.Cookies(COOKIE_RELMGR_SHOW_VIEW)
|
| 884 |
End If
|
907 |
End If
|
| 885 |
|
908 |
|
| 886 |
End Function
|
909 |
End Function
|
| 887 |
|
910 |
|
| 888 |
|
- |
|
| 889 |
|
- |
|
| 890 |
'------------------------------------------------------------------------------------------------------------------------------------------------
|
911 |
'------------------------------------------------------------------------------------------------------------------------------------------------
|
| 891 |
' This function forms a URL to use for refreshing the current dependencies.asp based page using the settings that are in effect at the time.
|
912 |
' This function forms a URL to use for refreshing the current dependencies.asp based page using the settings that are in effect at the time.
|
| 892 |
' Most importantly, it filters out the pv_id parameter if it is null (which otherwise would cause the page to be rendered incorreclty for an
|
913 |
' Most importantly, it filters out the pv_id parameter if it is null (which otherwise would cause the page to be rendered incorreclty for an
|
| 893 |
' as yet, unknown reason).
|
914 |
' as yet, unknown reason).
|
| 894 |
'
|
915 |
'
|
| Line 941... |
Line 962... |
| 941 |
' Anybody can view properties
|
962 |
' Anybody can view properties
|
| 942 |
Response.write "<td width='1'><a href='form_edit_release.asp?rtag_id="&parRtag_id&"' title='Release properties'><img src='images/abtn_release_properties.gif' width='25' height='25' hspace='1' border='0'></a></td>"
|
963 |
Response.write "<td width='1'><a href='form_edit_release.asp?rtag_id="&parRtag_id&"' title='Release properties'><img src='images/abtn_release_properties.gif' width='25' height='25' hspace='1' border='0'></a></td>"
|
| 943 |
|
964 |
|
| 944 |
Response.write "<td width='1'><img src='images/spacer.gif' width='7' height='25'></td>"
|
965 |
Response.write "<td width='1'><img src='images/spacer.gif' width='7' height='25'></td>"
|
| 945 |
If objAccessControl.UserLogedIn Then
|
966 |
If objAccessControl.UserLogedIn Then
|
| - |
|
967 |
If hasPview Then
|
| 946 |
If QStrPar("Pview") = "disable" Then
|
968 |
If parPview = "disable" Then
|
| 947 |
Dim ref : ref = RefreshedURL(QStrPar("Dview"), "", Request("pv_id"), Request("rtag_id"))
|
969 |
Dim ref : ref = RefreshedURL(parDview, "", Request("pv_id"), Request("rtag_id"))
|
| 948 |
Response.write "<td width='1'><a href='"& RefreshedURL(QStrPar("Dview"), "", Request("pv_id"), Request("rtag_id")) &"' title='Personal view disabled. Click to enable."&ref&"'><img src='images/abtn_base_view.gif' width='25' height='25' hspace='1' border='0'></a></td>"
|
970 |
Response.write "<td width='1'><a href='"&ref&"' title='Personal view disabled. Click to enable.'><img src='images/abtn_base_view.gif' width='25' height='25' hspace='1' border='0'></a></td>"
|
| 949 |
Else
|
971 |
Else
|
| 950 |
ref = RefreshedURL(QStrPar("Dview"), "disable", Request("pv_id"), Request("rtag_id"))
|
972 |
ref = RefreshedURL(parDview, "disable", Request("pv_id"), Request("rtag_id"))
|
| 951 |
Response.write "<td width='1'><a href='"& RefreshedURL(QStrPar("Dview"), "disable", Request("pv_id"), Request("rtag_id")) &"' title='Personal view enabled. Click for full view."&ref&"'><img src='images/abtn_personal_view.gif' width='25' height='25' hspace='1' border='0'></a></td>"
|
973 |
Response.write "<td width='1'><a href='"&ref&"' title='Personal view enabled. Click for full view.'><img src='images/abtn_personal_view.gif' width='25' height='25' hspace='1' border='0'></a></td>"
|
| - |
|
974 |
End If
|
| - |
|
975 |
Else
|
| - |
|
976 |
Response.write "<td width='1'><span title='No Personal View configured.'><img src='images/abtn_personal_view_off.gif' width='26' height='26' hspace='1' border='0'></span></td>"
|
| 952 |
End If
|
977 |
End If
|
| 953 |
Else
|
978 |
Else
|
| 954 |
Response.write "<td width='1'><img src='images/abtn_personal_view_off.gif' width='26' height='26' hspace='1' border='0'></td>"
|
979 |
Response.write "<td width='1'><img src='images/abtn_personal_view_off.gif' width='26' height='26' hspace='1' border='0'></td>"
|
| 955 |
End If
|
980 |
End If
|
| 956 |
|
981 |
|
| 957 |
If QStrPar("Dview") = "enable" Then
|
982 |
If parDview = "enable" Then
|
| 958 |
Response.write "<td width='1'><a href='"& RefreshedURL("", QStrPar("Pview"), Request("pv_id"), Request("rtag_id")) &"' title='Click to switch to Release View'><img src='icons/ReleaseView.gif' width='25' height='25' hspace='1' border='0'></a></td>"
|
983 |
Response.write "<td width='1'><a href='"& RefreshedURL("", parPview, Request("pv_id"), Request("rtag_id")) &"' title='Click to switch to Release View'><img src='icons/ReleaseView.gif' width='25' height='25' hspace='1' border='0'></a></td>"
|
| 959 |
Else
|
984 |
Else
|
| 960 |
Response.write "<td width='1'><a href='"& RefreshedURL("enable", QStrPar("Pview"), Request("pv_id"), Request("rtag_id")) &"' title='Click to switch to Deployment View'><img src='icons/DeploymentView.gif' width='25' height='25' hspace='1' border='0'></a></td>"
|
985 |
Response.write "<td width='1'><a href='"& RefreshedURL("enable", parPview, Request("pv_id"), Request("rtag_id")) &"' title='Click to switch to Deployment View'><img src='icons/DeploymentView.gif' width='25' height='25' hspace='1' border='0'></a></td>"
|
| 961 |
End If
|
986 |
End If
|
| 962 |
|
987 |
|
| 963 |
Response.write "<td width='1'><img src='images/spacer.gif' width='7' height='25'></td>"
|
988 |
Response.write "<td width='1'><img src='images/spacer.gif' width='7' height='25'></td>"
|
| 964 |
|
989 |
|
| 965 |
Response.write "<td width='1'><a href='javascript:;' title='SDK Managment' onClick='ToggleDisplay(""DIV_RELEASE_SDK"",""SPAN_RELEASE_SDK"",""SPAN_RELEASE_SDK_ON""); ' ><SPAN name='SPAN_RELEASE_SDK' id='SPAN_RELEASE_SDK' style='display:block;'><img src='images/abtn_link_release.gif' width='25' height='25' border='0' hspace='1' ></SPAN><SPAN name='SPAN_RELEASE_SDK_ON' id='SPAN_RELEASE_SDK_ON' style='display:none;'><img src='images/abtn_link_release_on.gif' width='25' height='25' border='0' hspace='1' ></SPAN></a></td>"
|
990 |
Response.write "<td width='1'><a href='javascript:;' title='SDK Managment' onClick='ToggleDisplay(""DIV_RELEASE_SDK"",""SPAN_RELEASE_SDK"",""SPAN_RELEASE_SDK_ON""); ' ><SPAN name='SPAN_RELEASE_SDK' id='SPAN_RELEASE_SDK' style='display:block;'><img src='images/abtn_link_release.gif' width='25' height='25' border='0' hspace='1' ></SPAN><SPAN name='SPAN_RELEASE_SDK_ON' id='SPAN_RELEASE_SDK_ON' style='display:none;'><img src='images/abtn_link_release_on.gif' width='25' height='25' border='0' hspace='1' ></SPAN></a></td>"
|
| 966 |
|
991 |
|
| 967 |
Response.write "<td width='1'><img src='images/spacer.gif' width='7' height='25'></td>"
|
992 |
Response.write "<td width='1'><img src='images/spacer.gif' width='7' height='25'></td>"
|
| 968 |
|
993 |
|
| 969 |
Response.write "<td width='1'><a href='javascript:;' title='Advanced Search...' onClick='ToggleAdvancedSearch(); ' ><SPAN name='SPAN_ADVANCED_SEARCH' id='SPAN_ADVANCED_SEARCH' style='display:block;'><img src='images/abtn_advanced_search.gif' width='25' height='25' border='0' hspace='1' ></SPAN><SPAN name='SPAN_ADVANCED_SEARCH_ON' id='SPAN_ADVANCED_SEARCH_ON' style='display:none;'><img src='images/abtn_advanced_search_on.gif' width='25' height='25' border='0' hspace='1' ></SPAN></a></td>"
|
994 |
Response.write "<td width='1'><a href='javascript:;' title='Advanced Search...' onClick='ToggleAdvancedSearch(); ' ><SPAN name='SPAN_ADVANCED_SEARCH' id='SPAN_ADVANCED_SEARCH' style='display:block;'><img src='images/abtn_advanced_search.gif' width='25' height='25' border='0' hspace='1' ></SPAN><SPAN name='SPAN_ADVANCED_SEARCH_ON' id='SPAN_ADVANCED_SEARCH_ON' style='display:none;'><img src='images/abtn_advanced_search_on.gif' width='25' height='25' border='0' hspace='1' ></SPAN></a></td>"
|
| 970 |
|
995 |
|
| 971 |
If ( (QStrPar("Dview") <> "enable") AND ( (CInt(nEnvTab) = enumENVTAB_PLANNED) OR (Request("envtab") = enumENVTAB_PLANNED) ) ) Then
|
996 |
If ( (parDview <> "enable") AND ( (CInt(nEnvTab) = enumENVTAB_PLANNED) OR (Request("envtab") = enumENVTAB_PLANNED) ) ) Then
|
| 972 |
If objAccessControl.UserLogedIn Then
|
997 |
If objAccessControl.UserLogedIn Then
|
| 973 |
If ( ReleaseMode = enumDB_RELEASE_IN_OPEN_MODE ) OR _
|
998 |
If ( ReleaseMode = enumDB_RELEASE_IN_OPEN_MODE ) OR _
|
| 974 |
canActionControlInProject("ApproveForAutoBuild") OR _
|
999 |
canActionControlInProject("ApproveForAutoBuild") OR _
|
| 975 |
canActionControlInProject("ApproveForManualBuild") Then
|
1000 |
canActionControlInProject("ApproveForManualBuild") Then
|
| 976 |
Response.write "<td width='1'><a href='#' onClick='makeBulkRelease();'><img src='images/abtn_make_release_bulk.gif' title='Make Bulk Release...'></td>"
|
1001 |
Response.write "<td width='1'><a href='#' onClick='makeBulkRelease();'><img src='images/abtn_make_release_bulk.gif' title='Make Bulk Release...'></td>"
|
| Line 1141... |
Line 1166... |
| 1141 |
<!-- TAB CONTROLS ++++++++++++++++++++++ -->
|
1166 |
<!-- TAB CONTROLS ++++++++++++++++++++++ -->
|
| 1142 |
<%
|
1167 |
<%
|
| 1143 |
Set objTabControl = New TabControl
|
1168 |
Set objTabControl = New TabControl
|
| 1144 |
objTabControl.TemplateDoc = ReadFile( Server.MapPath("controls/ERGTabStyleDreamWeaver/dreamweaver_style.html") ) ' Supply tab style definition
|
1169 |
objTabControl.TemplateDoc = ReadFile( Server.MapPath("controls/ERGTabStyleDreamWeaver/dreamweaver_style.html") ) ' Supply tab style definition
|
| 1145 |
objTabControl.TabStyle = "StyleDreamWeaver"
|
1170 |
objTabControl.TabStyle = "StyleDreamWeaver"
|
| 1146 |
If QStrPar("Dview") = "enable" Then
|
1171 |
If parDview = "enable" Then
|
| 1147 |
objTabControl.AddTabDefnition ( arrProductEnv ) '- Integration/Test/Deploy
|
1172 |
objTabControl.AddTabDefnition ( arrProductEnv ) '- Integration/Test/Deploy
|
| 1148 |
Else
|
1173 |
Else
|
| 1149 |
objTabControl.AddTabDefnition ( arrEnv )
|
1174 |
objTabControl.AddTabDefnition ( arrEnv )
|
| 1150 |
End If
|
1175 |
End If
|
| 1151 |
objTabControl.SelectByIndex ( nEnvTab )
|
1176 |
objTabControl.SelectByIndex ( nEnvTab )
|