|
|
 |
|
<%Call RenderTitleWithoutVersion( objBomCollector )%> |
 |
|
<%
Set objTabControl = New TabControl
objTabControl.TemplateDoc = ReadFile( Server.MapPath("controls/ERGTabStyleWinXP/tab_style.html") ) ' Supply tab style definition
objTabControl.TabStyle = "StyleWinXP"
objTabControl.AddTabDefnition ( arrBomTabDef )
objTabControl.SelectByName("BOM Comparison")
objTabControl.Render ()
%>
|
 |
 |
|
 |
| |
|
<%If Request.Cookies( enumCOOKIE_NAME )( "user_bar" ) = "hide" Then%> <%End If%> |
<%If objBomCollector.Item ("is_rejected") = enumDB_YES Then%>
<%
OraDatabase.Parameters.Add "ENTITY_ID", dbPARbom_id, ORAPARM_INPUT, ORATYPE_NUMBER
OraDatabase.Parameters.Add "ENUM_ENTITY_TYPE", "enumENTITY_TYPE_BOM", ORAPARM_INPUT, ORATYPE_VARCHAR2
Set rsQry = OraDatabase.DbCreateDynaset( GetQuery ("RejectionTrail.sql"), ORADYN_DEFAULT )
sMessage = ""
sMessage = sMessage &""
sMessage = sMessage &"BOM is REJECTED!
| "
sMessage = sMessage &"Create Note"& LIMG_NOTE_NEW &" | "
sMessage = sMessage &" "
While (NOT rsQry.BOF) AND (NOT rsQry.EOF)
sMessage = sMessage & " | "
sMessage = sMessage &""
sMessage = sMessage &""
If rsQry("is_rejected") = enumDB_YES Then
sMessage = sMessage &"BOM is REJECTED! "
Else
sMessage = sMessage &"BOM is Accepted! "
End If
sMessage = sMessage & objFormater.TextToHTML( rsQry("comments") ) &" "& rsQry("creator") &" | "
sMessage = sMessage &"Edit Note"& LIMG_NOTE_EDIT &" | "
sMessage = sMessage &" "
rsQry.MoveNext
WEnd
rsQry.Close
sMessage = sMessage &" "
Call Messenger ( sMessage, "bi_rejected.gif", "100%" )
Response.write " "
OraDatabase.Parameters.Remove "ENTITY_ID"
OraDatabase.Parameters.Remove "ENUM_ENTITY_TYPE"
%>
|
<%End If%>
 |
 |
<%If (objBomCollector.Item("bom_comments") <> "") Then%>
 |
BOM Comments
<%= objFormater.TextToHTML( objBomCollector.Item("bom_comments") )%>
|
<%End If%>
 |
<%
'-- FROM START --------------------------------------------------------------------------------------------------------------
objFormComponent.FormName = "OldVersion"
objFormComponent.Action = SCRIPT_NAME
objFormComponent.Method = "get"
Call objFormComponent.FormStart()
%>
<%Call RenderTitle( objBomCollector )%> compared with <%= GetCompareBomDetails( objFormCollector.Item("compare_bom_id") ) %>
Show changes since BOM version
<%=objFormComponent.Combo ( "compare_bom_id", GetBomTreeList(), False, "class='form_ivalue'" )%>
<%=objPMod.ComposeHiddenTagsWithout("compare_bom_id")%>
<%=objFormComponent.SubmitButton ( "Compare", "class='form_btn'" )%>
Products/Patches Existing in <%= GetCompareBomDetails( objFormCollector.Item("compare_bom_id") ) %> but not yet deployed in Production BOM
Display...
Hide...
|
Version |
Comments |
Approval |
<%
Call GetProductList ( dbPARbom_id, objFormCollector.Item("compare_bom_id"), aProductList, "Less" )
If NOT IsNull( aProductList ) Then
numOfRows = UBound( aProductList, 2 )
For rowNum = 0 To numOfRows
ProdId = aProductList( 0, rowNum )
ChangeType = aProductList( 3, rowNum )
PkgVersion = aProductList( 2, rowNum )
PkgId = aProductList( 6, rowNum )
If ChangeType = "A" or ChangeType = "U" Then
OraDatabase.Parameters.Add "PRODUCTION_BOM", dbPARbom_id, ORAPARM_INPUT, ORATYPE_NUMBER
OraDatabase.Parameters.Add "PKG_ID", PkgId, ORAPARM_INPUT, ORATYPE_NUMBER
Set rsQry = OraDatabase.DbCreateDynaset(GetQuery("ProdVersion.sql"), ORADYN_DEFAULT)
OldProdId = rsQry("prod_id")
CurrentPkgVersion = rsQry("pkg_version")
Comments = rsQry("comments")
OraDatabase.Parameters.Remove "PRODUCTION_BOM"
OraDatabase.Parameters.Remove "PKG_ID"
IsDisplay = True
Dim MajorA, MajorB, MinorA, MinorB, PatchA, PatchB, pos
MajorA = NULL
MajorB = NULL
MinorA = NULL
MinorB = NULL
PatchA = NULL
PatchB = NULL
' Find the first occurence of the dot in package version A
pos = InStr(PkgVersion, ".")
If pos <> 0 Then
' Extract the Major Version for A
MajorA = Mid(PkgVersion, 1, pos - 1)
' Delete the Major Version Value from the string to get the minor and patch version
PkgVersion = Mid(PkgVersion, pos + 1, Len(PkgVersion))
' Find the second occurence of the dot in package version A
pos = InStr(PkgVersion, ".")
' Extract the Minor Version for A
If pos <> 0 Then
MinorA = Mid(PkgVersion, 1, pos - 1)
' Delete the Minor Version value from the string to get the patch version
PkgVersion = Mid(PkgVersion, pos + 1, Len(PkgVersion))
' Find the last occurence of the dot in package version A
pos = InStr(PkgVersion, ".")
If pos <> 0 Then
' Extract the Patch Version for A
PatchA = Mid(PkgVersion, 1, pos - 1)
End If
End If
End If
' Find the first occurence of the dot in package version B
pos = InStr(CurrentPkgVersion, ".")
If pos <> 0 Then
' Extract the Major Version for B
MajorB = Mid(CurrentPkgVersion, 1, pos - 1)
' Delete the Major Version Value from the string to get the minor and patch version
CurrentPkgVersion = Mid(CurrentPkgVersion, pos + 1, Len(CurrentPkgVersion))
' Find the second occurence of the dot in package version B
pos = InStr(CurrentPkgVersion, ".")
' Extract the Minor Version for B
If pos <> 0 Then
MinorB = Mid(CurrentPkgVersion, 1, pos - 1)
' Delete the Minor Version value from the string to get the patch version
CurrentPkgVersion = Mid(CurrentPkgVersion, pos + 1, Len(CurrentPkgVersion))
' Find the last occurence of the dot in package version B
pos = InStr(CurrentPkgVersion, ".")
If pos <> 0 Then
' Extract the Patch Version for B
PatchB = Mid(CurrentPkgVersion, 1, pos - 1)
End If
End If
End If
If NOT isNull(PatchA) AND NOT isNull(PatchB) Then
If len(PatchA) < 4 Then PatchA = AddTrailingZeros(PatchA, 4)
If len(PatchB) < 4 Then PatchB = AddTrailingZeros(PatchB, 4)
End If
If MajorA = MajorB Then
If MinorA = MinorB Then
If IsNumeric(PatchA) AND IsNumeric(PatchB) Then
If CDbl(PatchB) > CDbl(PatchA) Then
IsDisplay = False
Else
IsDisplay = True
End If
End If
Else
If IsNumeric(MinorA) AND IsNumeric(MinorB) Then
If CInt(MinorB) > CInt(MinorA) Then
IsDisplay = False
Else
IsDisplay = True
End If
End If
End If
Else
If IsNumeric(MajorA) AND IsNumeric(MajorB) Then
If CInt(MajorB) > CInt(MajorA) Then
IsDisplay = False
Else
IsDisplay = True
End If
End If
End If
If IsDisplay Then
%>
| <%=aProductList( 2, rowNum )%> |
<%=Comments%> |
<%
Dim rsForm
Set rsForm = OraDatabase.DbCreateDynaset("SELECT * FROM RELEASE_AUTHORISATION WHERE PV_ID="&ProdId&" AND BOM_ID="&Request("bom_id"), ORADYN_DEFAULT)
%>
<%If rsForm.RecordCount = 0 Then%>
Awaiting Approval |
<%ElseIf IsNull(rsForm("is_official")) Then%>
<%If NOT IsNull(rsForm("tester_id"))Then%>
Tester Approved |
<%End If%>
<%Else%>
Approved |
<%End If
rsForm.Close()
Set rsForm = nothing
%>
 |
<%=enumLOADING%>
|
<%If rowNum <> numOfRows Then%>
 |
<%End If%>
<%End If%>
<%
rsQry.Close()
Set rsQry = Nothing
End If
Next
Else%>
| No Changes Found. |
<%End If%>
Products/Patches Existing in <%= GetCompareBomDetails( objFormCollector.Item("compare_bom_id") ) %> And Production BOM
Display...
Hide...
|
Version |
|
<%
Call GetProductList ( dbPARbom_id, objFormCollector.Item("compare_bom_id"), aProductList, "Equal" )
If NOT IsNull( aProductList ) Then'2
numOfRows = UBound( aProductList, 2 )
For rowNum = 0 To numOfRows
ProdId = aProductList( 0, rowNum )
PkgVersion = aProductList( 1, rowNum )
PkgId = aProductList( 2, rowNum )
%>
| <%=aProductList( 1, rowNum )%> |
|
 |
<%=enumLOADING%>
|
<%If rowNum <> numOfRows Then'1%>
 |
<%End If'1%>
<%
Next
Else%>
| No Changes Found. |
<%End If'2%>
Products/Patches Existing in <%= GetCompareBomDetails( objFormCollector.Item("compare_bom_id") ) %> but Superceeded in Production BOM
Display...
Hide...
|
Version |
|
<%
Call GetProductList ( dbPARbom_id, objFormCollector.Item("compare_bom_id"), aProductList, "Less" )
If NOT IsNull( aProductList ) Then
numOfRows = UBound( aProductList, 2 )
For rowNum = 0 To numOfRows
ProdId = aProductList( 0, rowNum )
ChangeType = aProductList( 3, rowNum )
PkgVersion = aProductList( 2, rowNum )
PkgId = aProductList( 6, rowNum )
If ChangeType = "A" or ChangeType = "U" Then
OraDatabase.Parameters.Add "PRODUCTION_BOM", dbPARbom_id, ORAPARM_INPUT, ORATYPE_NUMBER
OraDatabase.Parameters.Add "PKG_ID", PkgId, ORAPARM_INPUT, ORATYPE_NUMBER
Set rsQry = OraDatabase.DbCreateDynaset(GetQuery("ProdVersion.sql"), ORADYN_DEFAULT)
OldProdId = rsQry("prod_id")
CurrentPkgVersion = rsQry("pkg_version")
Comments = rsQry("comments")
OraDatabase.Parameters.Remove "PRODUCTION_BOM"
OraDatabase.Parameters.Remove "PKG_ID"
IsDisplay = True
MajorA = NULL
MajorB = NULL
MinorA = NULL
MinorB = NULL
PatchA = NULL
PatchB = NULL
' Find the first occurence of the dot in package version A
pos = InStr(PkgVersion, ".")
If pos <> 0 Then
' Extract the Major Version for A
MajorA = Mid(PkgVersion, 1, pos - 1)
' Delete the Major Version Value from the string to get the minor and patch version
PkgVersion = Mid(PkgVersion, pos + 1, Len(PkgVersion))
' Find the second occurence of the dot in package version A
pos = InStr(PkgVersion, ".")
' Extract the Minor Version for A
If pos <> 0 Then
MinorA = Mid(PkgVersion, 1, pos - 1)
' Delete the Minor Version value from the string to get the patch version
PkgVersion = Mid(PkgVersion, pos + 1, Len(PkgVersion))
' Find the last occurence of the dot in package version A
pos = InStr(PkgVersion, ".")
If pos <> 0 Then
' Extract the Patch Version for A
PatchA = Mid(PkgVersion, 1, pos - 1)
End If
End If
End If
' Find the first occurence of the dot in package version B
pos = InStr(CurrentPkgVersion, ".")
If pos <> 0 Then
' Extract the Major Version for B
MajorB = Mid(CurrentPkgVersion, 1, pos - 1)
' Delete the Major Version Value from the string to get the minor and patch version
CurrentPkgVersion = Mid(CurrentPkgVersion, pos + 1, Len(CurrentPkgVersion))
' Find the second occurence of the dot in package version B
pos = InStr(CurrentPkgVersion, ".")
' Extract the Minor Version for B
If pos <> 0 Then
MinorB = Mid(CurrentPkgVersion, 1, pos - 1)
' Delete the Minor Version value from the string to get the patch version
CurrentPkgVersion = Mid(CurrentPkgVersion, pos + 1, Len(CurrentPkgVersion))
' Find the last occurence of the dot in package version B
pos = InStr(CurrentPkgVersion, ".")
If pos <> 0 Then
' Extract the Patch Version for B
PatchB = Mid(CurrentPkgVersion, 1, pos - 1)
End If
End If
End If
If NOT isNull(PatchA) AND NOT isNull(PatchB) Then
If len(PatchA) < 4 Then PatchA = AddTrailingZeros(PatchA, 4)
If len(PatchB) < 4 Then PatchB = AddTrailingZeros(PatchB, 4)
End If
If MajorA = MajorB Then
If MinorA = MinorB Then
If IsNumeric(PatchA) AND IsNumeric(PatchB) Then
If CDbl(PatchB) > CDbl(PatchA) Then
IsDisplay = False
Else
IsDisplay = True
End If
End If
Else
If IsNumeric(MinorA) AND IsNumeric(MinorB) Then
If CInt(MinorB) > CInt(MinorA) Then
IsDisplay = False
Else
IsDisplay = True
End If
End If
End If
Else
If IsNumeric(MajorA) AND IsNumeric(MajorB) Then
If CInt(MajorB) > CInt(MajorA) Then
IsDisplay = False
Else
IsDisplay = True
End If
End If
End If
If NOT IsDisplay Then
%>
| <%=aProductList( 2, rowNum )%> |
<%=Comments%> |
 |
<%=enumLOADING%>
|
<%If rowNum <> numOfRows Then%>
 |
<%End If%>
<%End If%>
<%
rsQry.Close()
Set rsQry = Nothing
End If
Next
Else%>
| No Changes Found. |
<%End If%>
|
|
<%
Call objFormComponent.FormEnd()
'-- FROM END ----------------------------------------------------------------------------------------------------------------
%>
|
|
<%If Request.Cookies( enumCOOKIE_NAME )( "user_bar" ) <> "hide" Then%>
<%End If%>
|