%@LANGUAGE="VBSCRIPT"%>
<%
'=====================================================
'| |
'| BomStates |
'| |
'=====================================================
%>
<%
Option explicit
Response.Expires = 0
%>
<%
'------------ ACCESS CONTROL ------------------
%>
<%
'------------ VARIABLE DEFINITION -------------
Dim rsQry
Dim StateId, StateTypeEnum
Dim objFormCollector
Dim parState_id
Dim RowColor
'------------ CONSTANTS DECLARATION -----------
'------------ VARIABLE INIT -------------------
Set objFormCollector = CreateObject("Scripting.Dictionary")
parState_id = Request("state_id")
RowColor = NULL
'------------ CONDITIONS ----------------------
'----------------------------------------------
%>
<%
'--------------------------------------------------------------------------------------------------------------------------
Function GetIsDisplayedIcon ( cIsDisplayed )
If cIsDisplayed = enumDB_YES Then
GetIsDisplayedIcon = ""
Else
GetIsDisplayedIcon = ""
End If
End Function
'--------------------------------------------------------------------------------------------------------------------------
Sub GetFormDetails ( nState_id, ByRef outobjDetails )
Dim rsQry, query
OraDatabase.Parameters.Add "STATE_ID", nState_id, ORAPARM_INPUT, ORATYPE_NUMBER
Set rsQry = OraDatabase.DbCreateDynaset( GetQuery ("StateDetails.sql"), ORADYN_DEFAULT )
If rsQry.RecordCount > 0 Then
outobjDetails.Item ("state_id") = rsQry("state_id")
outobjDetails.Item ("state_name") = rsQry("state_name").Value
outobjDetails.Item ("state_type_enum") = rsQry("state_type_enum")
End If
OraDatabase.Parameters.Remove "STATE_ID"
rsQry.Close
Set rsQry = Nothing
End Sub
'----------------------------------------------------------------------------------------------------------------------------------------------
Sub NewBOMList ( rsQry )
%>
BOM Name
Version
Bom Comments
Released By
Arrived
Hide
<%
While ((NOT rsQry.BOF) AND (NOT rsQry.EOF) AND (NOT IsNull(rsQry("bom_id"))))
If IsNull( RowColor ) Then
RowColor = "bgcolor='#F5F5F5'"
Else
RowColor = NULL
End If
%>
<%
End Sub
'----------------------------------------------------------------------------------------------------------------------------------------------
Sub NewState ( rsQry )
%>
<%=objFormCollector.Item("state_name")%>
<%
End Sub
'----------------------------------------------------------------------------------------------------------------------------------------------
%>
<%
'------------ RUN BEFORE PAGE RENDER ----------
Call objPMod.PersistInQryString ( aPersistList(enumPAR_STATE_ID) )
Call GetFormDetails ( parState_id, objFormCollector )
If (Request("action") <> "") Then
'-- Select Action
Call ActionRedirection ( Request("action") )
End If
'----------------------------------------------
%>
Deployment Manager