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
'|			       _ChooseAction.asp		 	 	 |
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 ShiftBulkProducts ()
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 "DIRECTION", 		Request("shift_dir"), 		ORAPARM_INPUT, ORATYPE_CHAR
36
 
37
 
38
	objEH.TryORA ( OraSession )
39
 
40
	OraDatabase.ExecuteSQL _
41
	"BEGIN   pk_Operating_System.Shift_Bulk_Products_SeqNum ( :PROD_ID_LIST, :OS_ID, :DIRECTION );   END;"
42
 
43
	objEH.CatchORA ( OraSession )
44
 
45
	OraDatabase.Parameters.Remove "PROD_ID_LIST"
46
	OraDatabase.Parameters.Remove "OS_ID"
47
	OraDatabase.Parameters.Remove "DIRECTION"
48
 
49
End Sub
50
'--------------------------------------------------------------------------------------------------------------------------
51
%>
52
<%
53
'**************************** M  A  I  N ******************************
54
If Request("action") Then
55
	' --- Form is Valid ---
56
	Select Case Request("action")
57
		Case "btnMoveUpProd"
58
			Call OpenInWindow ( Request("rfile") &"?"& objPMod.ComposeURL() )
59
 
60
	End Select
61
 
62
	'If objEH.Finally Then
63
	'	Call OpenInWindow ( Request("rfile") &"?"& objPMod.ComposeURL() )
64
	'End If
65
 
66
End If
67
'**********************************************************************
68
%>
69
<%
70
'------------ RUN AFTER CODE RUN --------------
71
'----------------------------------------------
72
%><!--#include file="common/globals_destructor.asp"-->