| 64 |
jtweddle |
1 |
<%
|
|
|
2 |
'===================================================================
|
|
|
3 |
' Bom Common
|
|
|
4 |
'===================================================================
|
|
|
5 |
%>
|
|
|
6 |
<!--#include file="../class/classTemplateManager.asp"-->
|
|
|
7 |
<!--#include file="../class/classCrumbs.asp"-->
|
|
|
8 |
<!--#include file="../class/classTabControl.asp"-->
|
|
|
9 |
<!--#include file="../class/classActionButtonControl.asp"-->
|
|
|
10 |
<!--#include file="../class/classPopupMenuControl.asp"-->
|
|
|
11 |
<!--#include file="../class/classFormater.asp"-->
|
|
|
12 |
<!--#include file="../class/classRepeater.asp"-->
|
|
|
13 |
<%
|
|
|
14 |
'------------ VARIABLE DEFINITION -------------
|
|
|
15 |
Dim objTabControl
|
|
|
16 |
Dim objTemplateManager
|
|
|
17 |
Dim objBomCollector
|
|
|
18 |
Dim objBtnControl
|
|
|
19 |
Dim objFormater
|
|
|
20 |
Dim objRepeater
|
|
|
21 |
Dim aTabBtnsDef
|
|
|
22 |
'------------ CONSTANTS DECLARATION -----------
|
|
|
23 |
Const LIMG_EXPAND = "<img src='icons/i_plus.gif' width='9' height='9' border='0' hspace='2'>"
|
|
|
24 |
Const LIMG_COLLAPSE = "<img src='icons/i_minus.gif' width='9' height='9' border='0' hspace='2'>"
|
|
|
25 |
Const LIMG_EDIT = "<img src='icons/i_edit.gif' width='16' height='16' border='0' hspace='2'>"
|
|
|
26 |
Const LIMG_REMOVE = "<img src='icons/i_remove.gif' width='16' height='16' border='0' hspace='2'>"
|
|
|
27 |
Const LIMG_PRODUCT = "<img src='icons/i_product.gif' width='19' height='19' border='0' hspace='2' align='absmiddle'>"
|
|
|
28 |
'------------ VARIABLE INIT -------------------
|
|
|
29 |
Set objCrumbs = New Crumbs
|
|
|
30 |
Set objPMod = New PersistanceModule
|
|
|
31 |
Set objFormater = New Formater
|
|
|
32 |
Set objRepeater = New Repeater
|
|
|
33 |
Set objBomCollector = CreateObject("Scripting.Dictionary")
|
|
|
34 |
Set objBtnControl = New ActionButtonControl
|
|
|
35 |
'------------ CONDITIONS ----------------------
|
|
|
36 |
'----------------------------------------------
|
|
|
37 |
%>
|
|
|
38 |
<%
|
|
|
39 |
'------------ RUN BEFORE PAGE RENDER ----------
|
|
|
40 |
Call GetMainDBParameters ( dbPARproj_id, dbPARbranch_id, dbPARbom_id, dbPARnode_id, dbPARos_id, dbPARprod_id )
|
|
|
41 |
Call InitialiseCrumbs ( objCrumbs )
|
|
|
42 |
objPMod.PersistInCookie ("bom_browser")
|
|
|
43 |
objPMod.PersistInCookie ("user_bar")
|
|
|
44 |
objPMod.PersistInQryString ( aPersistList(enumPAR_BOM_ID) )
|
|
|
45 |
Call GetBomDetails ( dbPARbom_id, objBomCollector )
|
|
|
46 |
'----------------------------------------------
|
|
|
47 |
%>
|
|
|
48 |
<%
|
|
|
49 |
'-----------------------------------------------------------------------------------------------------------------
|
|
|
50 |
Sub RenderTitle ( objCollector )
|
|
|
51 |
Response.write "<b>"& objCollector.Item("bom_name") &" "& objCollector.Item("bom_version") &"."& objCollector.Item("bom_lifecycle") &"</b>"
|
|
|
52 |
End Sub
|
|
|
53 |
Sub RenderTitleWithoutBold ( objCollector )
|
|
|
54 |
Response.write objCollector.Item("bom_name") &" "& objCollector.Item("bom_version") &"."& objCollector.Item("bom_lifecycle")
|
|
|
55 |
End Sub
|
|
|
56 |
Sub RenderTitleWithoutVersion ( objCollector )
|
|
|
57 |
Response.write "<b>"& objCollector.Item("bom_name") &"</b>"
|
|
|
58 |
End Sub
|
|
|
59 |
'-----------------------------------------------------------------------------------------------------------------
|
|
|
60 |
%>
|