Blame | Last modification | View Log | RSS feed
<%@LANGUAGE="VBSCRIPT"%><%Option explicitResponse.Expires = 0 ' always load the page, dont store%><%'=====================================================' Ad Hoc Release Notes'=====================================================%><!--#include file="common/conf.asp"--><!--#include file="common/globals.asp"--><!--#include file="common/formating.asp"--><!--#include file="common/qstr.asp"--><!--#include file="common/common_subs.asp"--><!--#include file="common/common_dbedit.asp"--><%'------------ ACCESS CONTROL ------------------%><!--#include file="_access_control_general.asp"--><%'------------ Variable Definition -------------Dim parPv_id'------------ Constants Declaration -----------'------------ Variable Init -------------------parPv_id = Request("pv_id")'----------------------------------------------%><%Sub AdHocReleaseNotes ( PvId )Dim objWSH, fileNameSet objWSH = Server.CreateObject("WScript.Shell")OraSession.BeginTransOraDatabase.ExecuteSQL " UPDATE package_versions "&_" SET release_notes_info = '"& enum_RELEASE_NOTES_GENERATING &"'"&_" WHERE pv_id = "& PvIdOraSession.CommitTransfileName = Replace( PvId &"."& Timer, ".", "_" ) &".html"objWSH.Run "cmd.exe /c cscript.exe //B //NoLogo "& rootPath & SCRIPTS_FOLDER &"\on_Make_Official.wsf //job:GetComponents //job:GenerateReleaseNotes "&_"/pv_id:"& PvId &" /file:"& fileName , _0, True'-- Dispay Relase NotesResponse.write ReadFile( Server.MapPath("temp") &"\"& fileName )'-- Clean UpCall DeleteFile ( Server.MapPath("temp") &"\"& fileName )End Sub%><%'---------------------------------- MAIN LINE ----------------------------------------' REQUREMENTS CHECKCall AdHocReleaseNotes ( parPv_id )%><!-- DESTRUCTOR -------><!--#include file="common/destructor.asp"-->