| 13 |
rsolanki |
1 |
<%
|
|
|
2 |
'===================================================================
|
|
|
3 |
' OS 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="../controls/ERGFormComponent/classFormComponent.asp"-->
|
|
|
13 |
<%
|
|
|
14 |
'------------ VARIABLE DEFINITION -------------
|
|
|
15 |
Dim objTabControl
|
|
|
16 |
Dim objTemplateManager
|
|
|
17 |
Dim objOsCollector
|
|
|
18 |
Dim objBomCollector
|
|
|
19 |
Dim objBtnControl
|
|
|
20 |
Dim objFormater
|
|
|
21 |
Dim objFormComponent
|
|
|
22 |
Dim aTabBtnsDef
|
|
|
23 |
'------------ CONSTANTS DECLARATION -----------
|
|
|
24 |
Const LIMG_EDIT = "<img src='icons/i_edit.gif' width='16' height='16' border='0' hspace='2'>"
|
|
|
25 |
Const LIMG_REMOVE = "<img src='icons/i_remove.gif' width='16' height='16' border='0' hspace='2'>"
|
|
|
26 |
Const LIMG_PRODUCT = "<img src='icons/i_product.gif' width='19' height='19' border='0' hspace='2' align='absmiddle'>"
|
|
|
27 |
Const LIMG_PROCESS = "<img src='icons/i_process_2.gif' border='0' hspace='2' align='absmiddle'>"
|
|
|
28 |
'------------ VARIABLE INIT -------------------
|
|
|
29 |
Set objCrumbs = New Crumbs
|
|
|
30 |
Set objPMod = New PersistanceModule
|
|
|
31 |
Set objOsCollector = CreateObject("Scripting.Dictionary")
|
|
|
32 |
Set objBomCollector = CreateObject("Scripting.Dictionary")
|
|
|
33 |
Set objBtnControl = New ActionButtonControl
|
|
|
34 |
Set objFormater = New Formater
|
|
|
35 |
Set objFormComponent = New FormComponent
|
|
|
36 |
'------------ CONDITIONS ----------------------
|
|
|
37 |
'----------------------------------------------
|
|
|
38 |
%>
|
|
|
39 |
<%
|
|
|
40 |
'------------ RUN BEFORE PAGE RENDER ----------
|
|
|
41 |
Call GetMainDBParameters ( dbPARproj_id, dbPARbranch_id, dbPARbom_id, dbPARnode_id, dbPARos_id, dbPARprod_id )
|
|
|
42 |
Call InitialiseCrumbs ( objCrumbs )
|
|
|
43 |
objPMod.PersistInCookie ("bom_browser")
|
|
|
44 |
objPMod.PersistInCookie ("user_bar")
|
|
|
45 |
objPMod.PersistInQryString ( aPersistList(enumPAR_BOM_ID) )
|
|
|
46 |
objPMod.PersistInQryString ( aPersistList(enumPAR_OS_ID) )
|
|
|
47 |
Call GetBomDetails ( dbPARbom_id, objBomCollector )
|
|
|
48 |
Call GetOsDetails ( dbPARos_id, objOsCollector )
|
|
|
49 |
'----------------------------------------------
|
|
|
50 |
%>
|
|
|
51 |
<%
|
|
|
52 |
'-----------------------------------------------------------------------------------------------------------------
|
|
|
53 |
Sub GetOsDetails ( nOs_id, ByRef outobjDetails )
|
|
|
54 |
Dim rsQry, query
|
| 5961 |
dpurdie |
55 |
|
| 13 |
rsolanki |
56 |
OraDatabase.Parameters.Add "OS_ID", nOs_id, ORAPARM_INPUT, ORATYPE_NUMBER
|
|
|
57 |
Set rsQry = OraDatabase.DbCreateDynaset( GetQuery("OsDetails.sql") , ORADYN_DEFAULT )
|
| 5961 |
dpurdie |
58 |
OraDatabase.Parameters.Remove "OS_ID"
|
| 13 |
rsolanki |
59 |
|
|
|
60 |
If ((NOT rsQry.BOF) AND (NOT rsQry.EOF)) Then
|
|
|
61 |
outobjDetails.Item ("os_id") = rsQry("os_id")
|
|
|
62 |
outobjDetails.Item ("os_name") = rsQry("os_name")
|
|
|
63 |
outobjDetails.Item ("base_env_id") = rsQry("base_env_id")
|
|
|
64 |
outobjDetails.Item ("base_env_name") = rsQry("base_env_name")
|
|
|
65 |
|
|
|
66 |
Else
|
|
|
67 |
Err.Raise 8, "Sub GetOsDetails", "Empty record set returned. nOs_id="& nOs_id
|
|
|
68 |
|
|
|
69 |
End If
|
|
|
70 |
|
|
|
71 |
rsQry.Close
|
|
|
72 |
Set rsQry = Nothing
|
|
|
73 |
End Sub
|
|
|
74 |
'-----------------------------------------------------------------------------------------------------------------
|
|
|
75 |
Sub RenderTitle ( objCollector )
|
|
|
76 |
Response.write "<b>"& objCollector.Item("os_name") &"</b>"
|
|
|
77 |
End Sub
|
|
|
78 |
'-----------------------------------------------------------------------------------------------------------------
|
|
|
79 |
%>
|