Subversion Repositories DevTools

Rev

Rev 5176 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 5176 Rev 5338
Line 702... Line 702...
702
         '/* Log Action */
702
         '/* Log Action */
703
         Call Log_Action ( nPvId, "reason_for_release", nReason )
703
         Call Log_Action ( nPvId, "reason_for_release", nReason )
704
      End If
704
      End If
705
   End If
705
   End If
706
End Sub
706
End Sub
-
 
707
 
-
 
708
'------------------------------------------------------------------------------------------------------------------
-
 
709
' Currently used to specify non-vix licence when creating the first veersion of a new package
-
 
710
' Negative nLicence iis used to indicate that the user selected 100% vix. This is not stored. It is assumed
-
 
711
Sub UpdateLicenceInfo (nPvId, nLicence)
-
 
712
   Dim rsTemp, logMsg
-
 
713
 
-
 
714
   On Error Resume Next
-
 
715
   If (NOT IsNull(nLicence)) AND (nLicence <> "") AND (nLicence > 0) AND (NOT IsNull(nPvId)) AND (nPvId <> "") Then
-
 
716
 
-
 
717
      OraDatabase.Parameters.Add "PV_ID",    nPvId,     ORAPARM_INPUT, ORATYPE_NUMBER
-
 
718
      OraDatabase.Parameters.Add "LICENCE", nLicence,   ORAPARM_INPUT, ORATYPE_NUMBER
-
 
719
 
-
 
720
      objEH.TryORA ( OraSession )
-
 
721
      On Error Resume Next
-
 
722
 
-
 
723
      OraDatabase.ExecuteSQL "insert into licencing (pv_id,licence ) values (:PV_ID,:LICENCE)"
-
 
724
 
-
 
725
      objEH.CatchORA ( OraSession )
-
 
726
 
-
 
727
      OraDatabase.Parameters.Remove "PV_ID"
-
 
728
      OraDatabase.Parameters.Remove "LICENCE"
-
 
729
 
-
 
730
      If objEH.LastOraFailed = FALSE Then
-
 
731
        OraDatabase.Parameters.Add "LICENCE", nLicence,   ORAPARM_INPUT, ORATYPE_NUMBER
-
 
732
        Set rsTemp = OraDatabase.DbCreateDynaset("select name from licences where licence = :LICENCE", cint(0))
-
 
733
        If ((NOT rsTemp.BOF) AND (NOT rsTemp.EOF)) Then
-
 
734
            logMsg = "Set to " & rsTemp("name")
-
 
735
        Else
-
 
736
            logMsg = "Set to unknown(" & nPvId & ")"
-
 
737
        End If
-
 
738
        rsTemp.Close()
-
 
739
        Set rsTemp = nothing
-
 
740
        OraDatabase.Parameters.Remove "LICENCE"
-
 
741
 
-
 
742
        '/* Log Action */
-
 
743
        Call Log_Action ( nPvId, "software_licence", logMsg )
-
 
744
      End If
-
 
745
 
-
 
746
   End If
-
 
747
End Sub
-
 
748
 
707
'------------------------------------------------------------------------------------------------------------------
749
'------------------------------------------------------------------------------------------------------------------
708
 
750
 
709
%>
751
%>