Subversion Repositories DevTools

Rev

Rev 62 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
62 rsolanki 1
<%@LANGUAGE="VBSCRIPT"%>
2
<%
3
'=====================================================
4
'|                                                   |
5
'|			      _RemoveProdFromOs				 	 |
6
'|                                                   |
7
'=====================================================
8
%>
9
<%
10
Option explicit
11
Response.Expires = 0
12
%>
13
<!--#include file="common/globals.asp"-->
14
<!--#include file="common/config.asp"-->
15
<!--#include file="common/common_subs.asp"-->
16
<!--#include file="common/_code_behind_common.asp"-->
17
<%
18
'------------ ACCESS CONTROL ------------------
19
%>
20
<!--#include file="_access_control_general.asp"-->
21
<%
22
'------------ VARIABLE DEFINITION -------------
23
'------------ CONSTANTS DECLARATION -----------
24
'------------ VARIABLE INIT -------------------
25
'------------ CONDITIONS ----------------------
26
'----------------------------------------------
27
%>
28
<%
29
'--------------------------------------------------------------------------------------------------------------------------
30
Sub AddProductFromOs ()
31
	On Error Resume Next
32
 
33
	OraDatabase.Parameters.Add "PROD_ID_LIST", 		Request("prod_id_list"), 	ORAPARM_INPUT, ORATYPE_VARCHAR2 
34
	OraDatabase.Parameters.Add "OS_ID", 			Request("os_id"), 			ORAPARM_INPUT, ORATYPE_NUMBER 
35
	OraDatabase.Parameters.Add "USER_ID", 			objAccessControl.UserId, 	ORAPARM_INPUT, ORATYPE_NUMBER 
36
 
37
	objEH.TryORA ( OraSession )
38
 
39
	OraDatabase.ExecuteSQL _
40
	"BEGIN   pk_Product.Add_Products_NodeSpec ( :PROD_ID_LIST, :OS_ID, :USER_ID );   END;"
41
 
42
	'--- Log Action ---
43
	objEH.LogAction  _
44
	objAccessControl.UserId, _
45
	enumAT_EVENT_COMMENT, _
46
	"Sub AddProductFromOs PROD_ID_LIST="& Request("prod_id_list") &", OS_ID="& Request("os_id") , _
47
	SCRIPT_NAME, _
48
	"Added Products from OS to Node Spec File.", _
49
	OraDatabase 
50
 
51
	objEH.CatchORA ( OraSession )
52
 
53
	OraDatabase.Parameters.Remove "PROD_ID_LIST"
54
	OraDatabase.Parameters.Remove "OS_ID"
55
	OraDatabase.Parameters.Remove "USER_ID"
56
 
57
End Sub
58
'--------------------------------------------------------------------------------------------------------------------------
59
%>
60
<%
61
'**************************** M  A  I  N ******************************
62
' --- Form is Valid ---
63
Call AddProductFromOs()
64
 
65
If objEH.Finally Then
66
	Call OpenInWindow ( Request("rfile") &"?DONE=OK"& objPMod.ComposeURLWithout("rfile") )
67
End If
68
'**********************************************************************
69
%>
70
<%
71
'------------ RUN AFTER CODE RUN --------------
72
'----------------------------------------------
73
%><!--#include file="common/globals_destructor.asp"-->