
<% 

'*****************************************************************************
' Copyright (C) 2001 Microsoft Corporation. All rights reserved.
'
' File:  /SCA/ConfigCache/CNCASPPageUI_LicenseConfig.inc
' Author: Microsoft Corporation
'
' Purpose:
'   Provide functions which creates UI for License Tab and Configuring Diolag for License Tab
'
'Public Methods and Properties Exposed:
'	- Sub Sub InitClass(pASPManager)
'	- Sub DisplayErrorMsgbox()
'	Property Error [ReadOnly, String]
'	Property ErrorDetails [ReadOnly, String]
'*****************************************************************************

		
Class CNCASPPAGEUI_LicenseConfig
		
	'-- Get Product Name, license key and Expiry date
	Public ServerLicenseType 
	Public CompanyName
	Public UserName
	Public ProductKey
	Public ProductExpiryDate
	Public ShowExpirationDate
	Public CorruptEvaluation
	Public Error
	Public ErrorDetails
	
	Private m_pASPPageManager
	
	' ---- [Private] Standard Class_Initialize
	Private Sub Class_Initialize()

		'-- init all member with value
		ServerLicenseType = ""
		CompanyName = ""
		UserName = ""
		ProductKey = ""
		ProductExpiryDate = ""
		Error = IDS_OK_NO_ERROR
		ErrorDetails = ""
		ShowExpirationDate = False
		CorruptEvaluation = False
		
	End Sub
	
	'*************************************************
	'Purpose: Get ASPPgeManager object to process UI
	'         
	'Input:	  m_pASPPageManager
	'
	'Output:  none
	'************************************************* 
	Public Sub InitClass(pASPManager)

		' -- Get ASPPageManger
		Set m_pASPPageManager = pASPManager
		
		' -- Get Company name
		CompanyName = m_pASPPageManager.LicensedCompanyName  
	
		' -- Get User name
		UserName = m_pASPPageManager.LicensedUserName  
	
		' -- Get Product ID 
		ProductKey = m_pASPPageManager.ProductID  
	
		' -- Get LicenseType
		Dim eLicenseType
		eLicenseType = m_pASPPageManager.LicenseType
		ServerLicenseType = ValidateLicenseType(eLicenseType)
		
		' -- Setup Expiration Date indicator
		If (eLicenseType = IDS_CMS_LICENSE_TYPE_EVALUATION) OR _
			(eLicenseType = IDS_CMS_LICENSE_TYPE_CORRUPT_EVALUATION) Then
			ShowExpirationDate = True
		End If			
	
		' -- Setup Corrupt evaluation indicator
		If (eLicenseType = IDS_CMS_LICENSE_TYPE_CORRUPT_EVALUATION) Then
			CorruptEvaluation = True	
		End If
	
		' -- Get Expiry Date if evaluation copy
		If eLicenseType = IDS_CMS_LICENSE_TYPE_EVALUATION Then
			ProductExpiryDate = m_pASPPageManager.ExpiryDate  
		End If
		
		' -- transfer error or error details
		Error = m_pASPPageManager.Error
		ErrorDetails = m_pASPPageManager.ErrorDetail

	End Sub			
	
	
	
End Class  
	

%>