Subversion Repositories DevTools

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
13 rsolanki 1
<%@LANGUAGE="VBSCRIPT"%>
2
<%
3
'=====================================================
4
'|                                                   |
5
'|			      _SetBomOfficial				 	 |
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 SetBomOfficial ()
31
	On Error Resume Next
32
 
33
	OraDatabase.Parameters.Add "BOM_ID_LIST", Request("bom_id_list"), 		ORAPARM_INPUT, ORATYPE_NUMBER
34
	OraDatabase.Parameters.Add "IS_OFFICIAL", Request("is_official"), 		ORAPARM_INPUT, ORATYPE_CHAR
35
	OraDatabase.Parameters.Add "STATE_ID", 	  Request("state_id"), 			ORAPARM_INPUT, ORATYPE_NUMBER
36
	OraDatabase.Parameters.Add "USER_ID", 	  objAccessControl.UserId, 		ORAPARM_INPUT, ORATYPE_NUMBER
37
 
38
 
39
	objEH.TryORA ( OraSession )
40
 
41
	OraDatabase.ExecuteSQL _
42
	"BEGIN   pk_Bom.Set_Bom_Official ( :BOM_ID_LIST, :IS_OFFICIAL, :STATE_ID,  :USER_ID );   END;"
43
 
44
	objEH.CatchORA ( OraSession )
45
 
46
 
47
	OraDatabase.Parameters.Remove "BOM_ID_LIST"
48
	OraDatabase.Parameters.Remove "IS_OFFICIAL"
49
	OraDatabase.Parameters.Remove "STATE_ID"
50
	OraDatabase.Parameters.Remove "USER_ID"
51
 
52
End Sub
53
'--------------------------------------------------------------------------------------------------------------------------
54
%>
55
<%
56
'**************************** M  A  I  N ******************************
57
' --- Form is Valid ---
58
Call SetBomOfficial()
59
 
60
If objEH.Finally Then
61
	Call OpenInWindow ( Request("rfile") &"?DONE=OK"& objPMod.ComposeURLWithout("rfile") )
62
End If
63
'**********************************************************************
64
%>
65
<%
66
'------------ RUN AFTER CODE RUN --------------
67
'----------------------------------------------
68
%><!--#include file="common/globals_destructor.asp"-->