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
'|			          wRemoveBulkNodes			 	 |
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/_popup_window_common.asp"-->
17
<%
18
'------------ ACCESS CONTROL ------------------
19
%>
20
<!--#include file="_access_control_general.asp"-->
21
<%
22
'------------ VARIABLE DEFINITION -------------
23
Dim rsQry
24
'------------ CONSTANTS DECLARATION -----------
25
'------------ VARIABLE INIT -------------------
26
parBom_id = Request("bom_id")
27
'------------ CONDITIONS ----------------------
28
'----------------------------------------------
29
%>
30
<%
31
'--------------------------------------------------------------------------------------------------------------------------
32
Sub RemoveNodeList ()
33
	On Error Resume Next
34
 
35
	OraDatabase.Parameters.Add "NODE_ID_LIST", 		Request("node_id_list"), 	ORAPARM_INPUT, ORATYPE_STRING
36
	OraDatabase.Parameters.Add "BOM_ID", 			Request("bom_id"), 		ORAPARM_INPUT, ORATYPE_NUMBER
37
 
38
 
39
	objEH.TryORA ( OraSession )
40
 
41
	OraDatabase.ExecuteSQL _
42
	"BEGIN pk_Network_Node.Remove_Node ( :NODE_ID_LIST,  :BOM_ID ); END;"	
43
 
44
	objEH.CatchORA ( OraSession )
45
 
46
 
47
	OraDatabase.Parameters.Remove "NODE_IDS"
48
	OraDatabase.Parameters.Remove "BOM_ID"
49
 
50
End Sub
51
'--------------------------------------------------------------------------------------------------------------------------
52
%>
53
<%
54
'------------ RUN BEFORE PAGE RENDER ----------
55
 
56
If Request("action") Then
57
	' --- Form is Valid ---
58
	Call RemoveNodeList()
59
 
60
	If objEH.Finally Then
61
		Call OpenInParentWindow ( Request("rfile") &"?"& objPMod.ComposeURL() )
62
		Call CloseWindow()
63
	End If
64
Else
65
	Session( enumVALIDATION_CONTROL_SESSION ) = NULL	' Clean session for usage
66
End If
67
'----------------------------------------------
68
%>
69
<html>
70
<head>
71
<title>Deployment Manager</title>
72
<meta HTTP-EQUIV="Pragma" CONTENT="no-cache">
73
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
74
<link href="scripts/deployment_manager.css" rel="stylesheet" type="text/css">
75
<script language="JavaScript" src="scripts/common.js"></script>
76
</head>
77
 
78
<body background="images/bg_form.gif" leftmargin="0" topmargin="0" onLoad="self.focus()">
79
<table width="100%"  border="0" cellspacing="0" cellpadding="10">
80
  <form name="FormName" method="post" action="<%=SCRIPT_NAME%>">
81
  <tr>
82
    <td background="images/bg_login.gif"><table width="100%"  border="0" cellspacing="0" cellpadding="0">
83
      <tr>
84
        <td>&nbsp;</td>
85
        <td align="right"><input name="btn" type="submit" class="form_btn" value="Remove">
86
          <input name="btn" type="reset" class="form_btn" value="Cancel" onClick="self.close();"></td>
87
      </tr>
88
    </table></td>
89
  </tr>
90
  <tr>
91
    <td class="body_txt"><span class="body_h1">Remove Network Node</span> <br>
92
    Select one or more Network Nodes.
93
      <hr width="100%" size="1" noshade color="#ACA899"></td>
94
  </tr>
95
  <tr>
96
    <td>
97
 
98
	    <table width="100%"  border="0" cellspacing="3" cellpadding="0">
99
		<!-- MESSAGE +++++++++++++++++++++++++++++++++++++++++++++++++++ -->	
100
	 	<%If NOT objEH.Finally Then%>
101
		  <tr>
102
		  	<td><img src="images/spacer.gif" width="1" height="1"></td>
103
            <td colspan="2">
104
			<%objEH.DisplayMessage()%>
105
			</td>
106
          </tr>
107
		<%End If%>
108
	    <!-- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
109
          <tr>
110
		  	<td width="1" background="images/bg_table_col.gif"><img src="images/spacer.gif" width="1" height="1"></td>
111
            <td width="30%" background="images/bg_table_border.gif"><table width="100%"  border="0" cellspacing="1" cellpadding="2">
112
              <tr>
113
                <td align="right" nowrap background="images/bg_table_col.gif" class="body_col">Network Node</td>
114
              </tr>
115
            </table></td>
116
			<td width="70%" align="right" background="images/bg_table_col.gif" class="body_col"></td>
117
          </tr>
118
		  <%
119
		  OraDatabase.Parameters.Add "BOM_ID", parBom_id,		ORAPARM_INPUT, ORATYPE_NUMBER 
120
 
121
		  Set rsQry = OraDatabase.DbCreateDynaset( GetQuery ("NetworkNodeList.sql"), ORADYN_DEFAULT )
122
		  While (NOT rsQry.BOF) AND (NOT rsQry.EOF)
123
		  %>
124
		  <tr>
125
	        <td nowrap class="form_iname"><input type="checkbox" name="node_id_list" value="<%=rsQry("node_id")%>"></td>
126
	        <td valign="top" nowrap class="body_txt"><img src="icons/<%=rsQry("node_icon")%>" hspace="2" align="absmiddle"><%=rsQry("node_name")%></td>
127
	        <td valign="top">&nbsp;</td>
128
	      </tr>
129
		  <%rsQry.MoveNext%>
130
 
131
		  <%If (NOT rsQry.BOF) AND (NOT rsQry.EOF) Then%>
132
          <tr>
133
            <td colspan="3" background="images/bg_table_border.gif"><img src="images/spacer.gif" width="1" height="1"></td>
134
          </tr>
135
		  <%End If%>
136
 
137
		  <%
138
		  WEnd
139
 
140
		  OraDatabase.Parameters.Remove "BOM_ID"
141
		  %>
142
          <tr>
143
            <td colspan="3" background="images/bg_table_border.gif">
144
			 <table width="100%"  border="0" cellspacing="1" cellpadding="2">
145
              <tr>
146
                <td nowrap background="images/bg_table_col.gif"><img src="images/spacer.gif" width="1" height="1"></td>
147
              </tr>
148
             </table>
149
			</td>
150
          </tr>
151
         </table>	
152
 
153
	</td>
154
  </tr>
155
  <%=objPMod.ComposeHiddenTags ()%>
156
  <input type="hidden" name="action" value="true">
157
  </form>
158
</table>
159
 
160
 
161
</body>
162
</html>
163
<%
164
'------------ RUN AFTER PAGE RENDER -----------
165
'----------------------------------------------
166
%><!--#include file="common/globals_destructor.asp"-->