| Line 279... |
Line 279... |
| 279 |
</table>
|
279 |
</table>
|
| 280 |
<%
|
280 |
<%
|
| 281 |
End Sub
|
281 |
End Sub
|
| 282 |
'----------------------------------------------------------------------------------------------------------------------------------------------
|
282 |
'----------------------------------------------------------------------------------------------------------------------------------------------
|
| 283 |
Function RenderActions(nRtagId, sOfficial)
|
283 |
Function RenderActions(nRtagId, sOfficial)
|
| 284 |
Response.Write "<span title='Select operation from dropdown menu' class='select-operation ui-icon ui-icon-triangle-1-s' data-rtag-id='"&nRtagId&"' data-official='"&sOfficial&"'></span>"
|
284 |
Response.Write "<span title='Select operation from dropdown menu' class='select-operation ui-icon ui-icon-triangle-1-s' data-rtag-id='"&nRtagId&"' data-official='"&sOfficial&"' style='display:inline-block'></span>"
|
| 285 |
End Function
|
285 |
End Function
|
| 286 |
'----------------------------------------------------------------------------------------------------------------------------------------------
|
286 |
'----------------------------------------------------------------------------------------------------------------------------------------------
|
| 287 |
Function GetMassRefComments (nRtagId)
|
287 |
Function GetMassRefComments (nRtagId)
|
| 288 |
Dim UsedBy
|
288 |
Dim UsedBy
|
| 289 |
Dim rsQryUse
|
289 |
Dim rsQryUse
|
| Line 427... |
Line 427... |
| 427 |
}
|
427 |
}
|
| 428 |
},
|
428 |
},
|
| 429 |
};
|
429 |
};
|
| 430 |
|
430 |
|
| 431 |
$.miniMenu = {
|
431 |
$.miniMenu = {
|
| - |
|
432 |
// Data
|
| - |
|
433 |
|
| 432 |
// Menu operations
|
434 |
// Menu operations
|
| 433 |
open : function (data, event) {
|
435 |
open : function (data) {
|
| 434 |
//console.log("Opening:", data.rtagid);
|
436 |
//console.log("Opening:", data.rtagid);
|
| 435 |
this.gotoUrl("dependencies.asp", {rtag_id : data.rtagid});
|
437 |
this.gotoUrl("dependencies.asp", {rtag_id : data.rtagid});
|
| 436 |
},
|
438 |
},
|
| 437 |
|
439 |
|
| 438 |
edit : function (data) {
|
440 |
edit : function (data) {
|
| Line 440... |
Line 442... |
| 440 |
this.gotoUrl("form_edit_release.asp", {rtag_id : data.rtagid, rfile : "<%=ScriptName%>"});
|
442 |
this.gotoUrl("form_edit_release.asp", {rtag_id : data.rtagid, rfile : "<%=ScriptName%>"});
|
| 441 |
},
|
443 |
},
|
| 442 |
|
444 |
|
| 443 |
mergeSelect : function (data) {
|
445 |
mergeSelect : function (data) {
|
| 444 |
//console.log("Merge from:", data.rtagid );
|
446 |
//console.log("Merge from:", data.rtagid );
|
| - |
|
447 |
$('#releaseTree .body_row_sel2').removeClass('body_row_sel2');
|
| - |
|
448 |
if (data.mergeLeft != data.rtagid) {
|
| 445 |
data.mergeLeft = data.rtagid;
|
449 |
data.mergeLeft = data.rtagid;
|
| - |
|
450 |
$.miniMenu.currentRow.addClass('body_row_sel2');
|
| - |
|
451 |
} else {
|
| - |
|
452 |
delete(data.mergeLeft);
|
| - |
|
453 |
}
|
| 446 |
},
|
454 |
},
|
| 447 |
|
455 |
|
| 448 |
merge : function (data) {
|
456 |
merge : function (data) {
|
| 449 |
//console.log ("Merge:", data.mergeLeft, data.rtagid);
|
457 |
//console.log ("Merge:", data.mergeLeft, data.rtagid);
|
| 450 |
this.gotoUrl("diff.asp", { rtagA : data.mergeLeft, rtagB : data.rtagid});
|
458 |
this.gotoUrl("diff.asp", { rtagA : data.mergeLeft, rtagB : data.rtagid});
|
| Line 550... |
Line 558... |
| 550 |
});
|
558 |
});
|
| 551 |
},
|
559 |
},
|
| 552 |
|
560 |
|
| 553 |
};
|
561 |
};
|
| 554 |
|
562 |
|
| 555 |
// Hide the Menu
|
563 |
// Create and Hide the Menu
|
| 556 |
$( "#select-menu" ).hide().menu();
|
564 |
$( "#select-menu" ).hide().menu();
|
| 557 |
|
565 |
|
| 558 |
// Register menuselect event handler
|
566 |
// Register menuselect event handler
|
| 559 |
$( "#select-menu" ).on( "menuselect", function( event, ui ) {
|
567 |
$( "#select-menu" ).on( "menuselect", function( event, ui ) {
|
| 560 |
var opr = ui.item.data('opr');
|
568 |
var opr = ui.item.data('opr');
|
| 561 |
|
569 |
|
| 562 |
// Invoke operation within the menu data structure
|
570 |
// Invoke operation within the menu data structure
|
| 563 |
if (typeof $.miniMenu[opr] == 'function' ) {
|
571 |
if (typeof $.miniMenu[opr] == 'function' ) {
|
| 564 |
$.miniMenu[event] = event;
|
572 |
$.miniMenu['event'] = event;
|
| 565 |
$.miniMenu[opr]($.miniMenu);
|
573 |
$.miniMenu[opr]($.miniMenu);
|
| 566 |
return;
|
574 |
return;
|
| 567 |
}
|
575 |
}
|
| 568 |
//console.log ("Menu Operation:", opr, "Not found");
|
576 |
//console.log ("Menu Operation:", opr, "Not found");
|
| 569 |
});
|
577 |
});
|
| 570 |
|
578 |
|
| 571 |
|
579 |
|
| 572 |
// Add menu to all require instances
|
580 |
// Add menu to all require instances
|
| 573 |
$( ".select-operation" ).click(function() {
|
581 |
$( ".select-operation" ).click(function(event) {
|
| 574 |
// When clicked - create and show the menu
|
582 |
// When clicked - create and show the menu
|
| 575 |
// Insert rtag-id
|
583 |
// Insert rtag-id
|
| 576 |
|
584 |
|
| 577 |
// In order to have the menu positioing work correctly
|
585 |
// In order to have the menu positioing work correctly
|
| 578 |
// Create a div that covers the visible screen area
|
586 |
// Create a div that covers the visible screen area
|
| Line 588... |
Line 596... |
| 588 |
});
|
596 |
});
|
| 589 |
positionDiv.appendTo(document.body);
|
597 |
positionDiv.appendTo(document.body);
|
| 590 |
|
598 |
|
| 591 |
// Create the menu
|
599 |
// Create the menu
|
| 592 |
var menu = $("#select-menu").show().position({
|
600 |
var menu = $("#select-menu").show().position({
|
| 593 |
my: "left top",
|
601 |
my: "left top",
|
| 594 |
at: "center bottom",
|
602 |
at: "center bottom",
|
| 595 |
of: this,
|
603 |
of: this,
|
| 596 |
within : positionDiv,
|
604 |
within : positionDiv,
|
| 597 |
});
|
605 |
});
|
| 598 |
|
606 |
|
| 599 |
// Cleanup the poistioning div
|
607 |
// Cleanup the poistioning div
|
| 600 |
positionDiv.remove();
|
608 |
positionDiv.remove();
|
| 601 |
|
609 |
|
| 602 |
// Allow click outside of the menu to close it
|
- |
|
| 603 |
$( document ).one( "click", function() {
|
- |
|
| 604 |
menu.hide();
|
- |
|
| 605 |
});
|
- |
|
| 606 |
|
- |
|
| 607 |
// Setup global data
|
610 |
// Setup global data
|
| 608 |
$.miniMenu.rtagid = $(this).data('rtag-id');
|
611 |
$.miniMenu.rtagid = $(this).data('rtag-id');
|
| 609 |
|
612 |
|
| 610 |
// Set initial menu state - merge target
|
613 |
// Set initial menu state - merge target
|
| 611 |
$('#select-menu-merge').toggleClass('ui-state-disabled',!('mergeLeft' in $.miniMenu ));
|
614 |
$('#select-menu-merge').toggleClass('ui-state-disabled',!('mergeLeft' in $.miniMenu ));
|
| Line 615... |
Line 618... |
| 615 |
var official = $(this).data('official');
|
618 |
var official = $(this).data('official');
|
| 616 |
$('#select-menu-close').toggleClass('ui-state-disabled',! $.mode2access.canAccess(official,0));
|
619 |
$('#select-menu-close').toggleClass('ui-state-disabled',! $.mode2access.canAccess(official,0));
|
| 617 |
$('#select-menu-preserve').toggleClass('ui-state-disabled',!$.mode2access.canAccess(official,1));
|
620 |
$('#select-menu-preserve').toggleClass('ui-state-disabled',!$.mode2access.canAccess(official,1));
|
| 618 |
$('#select-menu-archive').toggleClass('ui-state-disabled',! $.mode2access.canAccess(official,2));
|
621 |
$('#select-menu-archive').toggleClass('ui-state-disabled',! $.mode2access.canAccess(official,2));
|
| 619 |
|
622 |
|
| - |
|
623 |
// Highlight the row selected
|
| - |
|
624 |
$('#releaseTree .body_row_sel').removeClass('body_row_sel');
|
| - |
|
625 |
$.miniMenu.currentRow = $(event.target).closest('tr').addClass('body_row_sel');
|
| - |
|
626 |
|
| - |
|
627 |
// Allow click outside of the menu to close it
|
| - |
|
628 |
$( document ).one( "click", function() {
|
| - |
|
629 |
menu.hide();
|
| - |
|
630 |
$('#releaseTree .body_row_sel').removeClass('body_row_sel');
|
| - |
|
631 |
});
|
| - |
|
632 |
|
| - |
|
633 |
|
| 620 |
// Prevent propagation of event
|
634 |
// Prevent propagation of event
|
| 621 |
return false;
|
635 |
return false;
|
| 622 |
});
|
636 |
});
|
| 623 |
});
|
637 |
});
|
| 624 |
</script>
|
638 |
</script>
|
| Line 720... |
Line 734... |
| 720 |
</td>
|
734 |
</td>
|
| 721 |
</tr>
|
735 |
</tr>
|
| 722 |
</table>
|
736 |
</table>
|
| 723 |
<!-- ACTION BUTTONS END ------------------------------------------>
|
737 |
<!-- ACTION BUTTONS END ------------------------------------------>
|
| 724 |
<!-- RELEASE INFORMATION ----------------------------------------->
|
738 |
<!-- RELEASE INFORMATION ----------------------------------------->
|
| 725 |
<table width="100%" border="0" cellspacing="10" cellpadding="0">
|
739 |
<table id=releaseTree width="100%" border="0" cellspacing="10" cellpadding="0">
|
| 726 |
<tr>
|
740 |
<tr>
|
| 727 |
<td>
|
741 |
<td>
|
| 728 |
<!-- TREE VIEW ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
|
742 |
<!-- TREE VIEW ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
|
| 729 |
<%If bIsaTreeView Then%>
|
743 |
<%If bIsaTreeView Then%>
|
| 730 |
<table width="100%" border="0" cellspacing="1" cellpadding="1">
|
744 |
<table width="100%" border="0" cellspacing="1" cellpadding="1">
|
| 731 |
<tr>
|
745 |
<tr class='form_field_bg'>
|
| 732 |
<td width="25%" bgcolor="#E4E9EC" class="body_txt">Release Name </td>
|
746 |
<td width="25%" class="body_txt">Release Name </td>
|
| 733 |
|
747 |
|
| 734 |
<%If parProjId <> 2 Then %>
|
748 |
<%If parProjId <> 2 Then %>
|
| 735 |
<td width="15%" bgcolor="#E4E9EC" class="body_txt">Created</td>
|
749 |
<td width="15%" class="body_txt">Created</td>
|
| 736 |
<td width="47%" bgcolor="#E4E9EC" class="body_txt">Comments</td>
|
750 |
<td width="47%" class="body_txt">Comments</td>
|
| 737 |
<td width="3%" bgcolor="#E4E9EC" class="body_txt">Daemon Status</td>
|
751 |
<td width="3%" class="body_txt">Daemon Status</td>
|
| 738 |
<%Else%>
|
752 |
<%Else%>
|
| 739 |
<td width="15%" bgcolor="#E4E9EC" class="body_txt">Created</td>
|
753 |
<td width="15%" class="body_txt">Created</td>
|
| 740 |
<td width="25%" bgcolor="#E4E9EC" class="body_txt">Used By </td>
|
754 |
<td width="25%" class="body_txt">Used By </td>
|
| 741 |
<td width="22%" bgcolor="#E4E9EC" class="body_txt">Comments</td>
|
755 |
<td width="22%" class="body_txt">Comments</td>
|
| 742 |
<td width="3%" bgcolor="#E4E9EC" class="body_txt">Daemon Status</td>
|
756 |
<td width="3%" class="body_txt">Daemon Status</td>
|
| 743 |
<%End If%>
|
757 |
<%End If%>
|
| 744 |
</tr>
|
758 |
</tr>
|
| 745 |
<%
|
759 |
<%
|
| 746 |
OraDatabase.Parameters.Add "PROJ_ID", parProjId, ORAPARM_INPUT, ORATYPE_NUMBER
|
760 |
OraDatabase.Parameters.Add "PROJ_ID", parProjId, ORAPARM_INPUT, ORATYPE_NUMBER
|
| 747 |
|
761 |
|
| Line 761... |
Line 775... |
| 761 |
currLevel = CInt(rsQry("hierarchy"))
|
775 |
currLevel = CInt(rsQry("hierarchy"))
|
| 762 |
hoverTitle = "Last change: "& rsQry("OFFICIAL_STAMP") & " by " & rsQry("modifier")
|
776 |
hoverTitle = "Last change: "& rsQry("OFFICIAL_STAMP") & " by " & rsQry("modifier")
|
| 763 |
createdBy = rsQry("created_stamp") & " by " & rsQry("creator")
|
777 |
createdBy = rsQry("created_stamp") & " by " & rsQry("creator")
|
| 764 |
|
778 |
|
| 765 |
%>
|
779 |
%>
|
| 766 |
<tr>
|
780 |
<tr class="body_rowg2">
|
| 767 |
<td nowrap bgcolor="#F5F5F5" class="body_rowg">
|
781 |
<td nowrap>
|
| 768 |
<%Call RenderIndent( lastLevel, currLevel )%>
|
782 |
<%Call RenderIndent( lastLevel, currLevel )%>
|
| 769 |
<%Call RenderActions(rsQry("rtag_id"),rsQry("official"))%>
|
783 |
<%Call RenderActions(rsQry("rtag_id"),rsQry("official"))%>
|
| 770 |
<a href="dependencies.asp?rtag_id=<%=rsQry("rtag_id")%>" class="body_link" title="<%=hoverTitle%>" >
|
784 |
<a href="dependencies.asp?rtag_id=<%=rsQry("rtag_id")%>" class="body_link" title="<%=hoverTitle%>" >
|
| 771 |
<%=ReleaseIcon( rsQry("official") )%> <%=rsQry("rtag_name")%></a>
|
785 |
<%=ReleaseIcon( rsQry("official") )%> <%=rsQry("rtag_name")%></a>
|
| 772 |
</td>
|
786 |
</td>
|
| 773 |
<td nowrap bgcolor="#F5F5F5" class="body_rowg valign=top"><%=createdBy%></td>
|
787 |
<td nowrap valign=top"><%=createdBy%></td>
|
| 774 |
<%
|
788 |
<%
|
| 775 |
If parProjId = 2 Then
|
789 |
If parProjId = 2 Then
|
| 776 |
comment = GetMassRefComments(rsQry("rtag_id"))
|
790 |
comment = GetMassRefComments(rsQry("rtag_id"))
|
| 777 |
If comment = "" Then comment = "None."
|
791 |
If comment = "" Then comment = "None."
|
| 778 |
%>
|
792 |
%>
|
| 779 |
<td bgcolor="#F5F5F5" class="body_rowg"><%=comment%></td>
|
793 |
<td><%=comment%></td>
|
| 780 |
<%End If%>
|
794 |
<%End If%>
|
| 781 |
|
795 |
|
| 782 |
<td bgcolor="#F5F5F5" class="body_rowg"><%=NewLine_To_BR(rsQry("description"))%></td>
|
796 |
<td><%=NewLine_To_BR(rsQry("description"))%></td>
|
| 783 |
<td bgcolor="#F5F5F5" class="body_rowg" valign=top>
|
797 |
<td valign=top>
|
| 784 |
<%Call RenderDaemonStatusConfig(rsQry("rtag_id"))%>
|
798 |
<%Call RenderDaemonStatusConfig(rsQry("rtag_id"))%>
|
| 785 |
</td>
|
799 |
</td>
|
| 786 |
</tr>
|
800 |
</tr>
|
| 787 |
<%
|
801 |
<%
|
| 788 |
lastLevel = currLevel
|
802 |
lastLevel = currLevel
|
| Line 795... |
Line 809... |
| 795 |
%>
|
809 |
%>
|
| 796 |
</table>
|
810 |
</table>
|
| 797 |
<!-- LIST VIEW ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
|
811 |
<!-- LIST VIEW ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
|
| 798 |
<%Else%>
|
812 |
<%Else%>
|
| 799 |
<table width="100%" border="0" cellspacing="1" cellpadding="1">
|
813 |
<table width="100%" border="0" cellspacing="1" cellpadding="1">
|
| 800 |
<tr>
|
814 |
<tr class='form_field_bg'>
|
| 801 |
<td width="1%" bgcolor="#E4E9EC"> </td>
|
815 |
<td width="1%"> </td>
|
| 802 |
<td width="20%" bgcolor="#E4E9EC" class="body_txt">Release Name </td>
|
816 |
<td width="20%" class="body_txt">Release Name </td>
|
| 803 |
<td width="10%" bgcolor="#E4E9EC" class="body_txt">"Created"</td>
|
817 |
<td width="10%" class="body_txt">Created</td>
|
| 804 |
<%If parProjId <> 2 Then %>
|
818 |
<%If parProjId <> 2 Then %>
|
| 805 |
<td width="47%" bgcolor="#E4E9EC" class="body_txt">Comments</td>
|
819 |
<td width="47%" class="body_txt">Comments</td>
|
| 806 |
<%Else%>
|
820 |
<%Else%>
|
| 807 |
<td width="24%" bgcolor="#E4E9EC" class="body_txt">Used By </td>
|
821 |
<td width="24%" class="body_txt">Used By </td>
|
| 808 |
<td width="22%" bgcolor="#E4E9EC" class="body_txt">Comments</td>
|
822 |
<td width="22%" class="body_txt">Comments</td>
|
| 809 |
<%End If%>
|
823 |
<%End If%>
|
| 810 |
<td width="3%" bgcolor="#E4E9EC" class="body_txt">Daemon Status</td>
|
824 |
<td width="3%" class="body_txt">Daemon Status</td>
|
| 811 |
</tr>
|
825 |
</tr>
|
| 812 |
<%
|
826 |
<%
|
| 813 |
OraDatabase.Parameters.Add "PROJ_ID", parProjId, ORAPARM_INPUT, ORATYPE_NUMBER
|
827 |
OraDatabase.Parameters.Add "PROJ_ID", parProjId, ORAPARM_INPUT, ORATYPE_NUMBER
|
| 814 |
|
828 |
|
| 815 |
rsQryStr = GetQuery ("ReleaseVersionList.sql")
|
829 |
rsQryStr = GetQuery ("ReleaseVersionList.sql")
|
| Line 827... |
Line 841... |
| 827 |
While (NOT rsQry.BOF) AND (NOT rsQry.EOF)
|
841 |
While (NOT rsQry.BOF) AND (NOT rsQry.EOF)
|
| 828 |
hoverTitle = "Last change: "& rsQry("OFFICIAL_STAMP") & " by " & rsQry("modifier") & ". " & rsQry("OFFICIAL_STAMP_DAYS")& " Days ago"
|
842 |
hoverTitle = "Last change: "& rsQry("OFFICIAL_STAMP") & " by " & rsQry("modifier") & ". " & rsQry("OFFICIAL_STAMP_DAYS")& " Days ago"
|
| 829 |
createdBy = rsQry("created_stamp") & " by " & rsQry("creator")
|
843 |
createdBy = rsQry("created_stamp") & " by " & rsQry("creator")
|
| 830 |
|
844 |
|
| 831 |
%>
|
845 |
%>
|
| 832 |
<tr>
|
846 |
<tr class="body_rowg2">
|
| 833 |
<td bgcolor="#F5F5F5" class="body_txt" valign="top">
|
847 |
<td valign="top">
|
| 834 |
<%Call RenderActions(rsQry("rtag_id"),rsQry("official"))%>
|
848 |
<%Call RenderActions(rsQry("rtag_id"),rsQry("official"))%>
|
| 835 |
</td>
|
849 |
</td>
|
| 836 |
<td nowrap bgcolor="#F5F5F5" valign="top">
|
850 |
<td nowrap valign="top">
|
| 837 |
<a href="dependencies.asp?rtag_id=<%=rsQry("rtag_id")%>" class="body_link" title="<%=hoverTitle%>">
|
851 |
<a href="dependencies.asp?rtag_id=<%=rsQry("rtag_id")%>" class="body_link" title="<%=hoverTitle%>">
|
| 838 |
<%=ReleaseIcon( rsQry("official"))%> <%=rsQry("rtag_name")%></a>
|
852 |
<%=ReleaseIcon( rsQry("official"))%> <%=rsQry("rtag_name")%></a>
|
| 839 |
</td>
|
853 |
</td>
|
| 840 |
<td nowrap bgcolor="#F5F5F5" class="body_rowg" valign=top><%=createdBy%></td>
|
854 |
<td nowrap valign=top><%=createdBy%></td>
|
| 841 |
<%
|
855 |
<%
|
| 842 |
If parProjId = 2 Then
|
856 |
If parProjId = 2 Then
|
| 843 |
comment = GetMassRefComments(rsQry("rtag_id"))
|
857 |
comment = GetMassRefComments(rsQry("rtag_id"))
|
| 844 |
If comment = "" Then comment = "None."
|
858 |
If comment = "" Then comment = "None."
|
| 845 |
%>
|
859 |
%>
|
| 846 |
<td bgcolor="#F5F5F5" class="body_rowg"><%=comment%></td>
|
860 |
<td><%=comment%></td>
|
| 847 |
<%End If%>
|
861 |
<%End If%>
|
| 848 |
<td bgcolor="#F5F5F5" class="body_rowg"><%=NewLine_To_BR( rsQry("description") )%></td>
|
862 |
<td><%=NewLine_To_BR( rsQry("description") )%></td>
|
| 849 |
<td bgcolor="#F5F5F5" class="body_rowg" valign=top>
|
863 |
<td valign=top>
|
| 850 |
<%Call RenderDaemonStatusConfig(rsQry("rtag_id"))%>
|
864 |
<%Call RenderDaemonStatusConfig(rsQry("rtag_id"))%>
|
| 851 |
</td>
|
865 |
</td>
|
| 852 |
</tr>
|
866 |
</tr>
|
| 853 |
<%
|
867 |
<%
|
| 854 |
rsQry.MoveNext
|
868 |
rsQry.MoveNext
|