| Line 1... |
Line 1... |
| 1 |
<%@LANGUAGE="VBSCRIPT"%>
|
1 |
<%@LANGUAGE="VBSCRIPT"%>
|
| 2 |
<%
|
2 |
<%
|
| 3 |
'=====================================================
|
3 |
'=====================================================
|
| 4 |
'| |
|
4 |
'| |
|
| 5 |
'| NewBom |
|
5 |
'| NewBom |
|
| 6 |
'| |
|
6 |
'| |
|
| 7 |
'=====================================================
|
7 |
'=====================================================
|
| 8 |
%>
|
8 |
%>
|
| 9 |
<%
|
9 |
<%
|
| 10 |
Option explicit
|
10 |
Option explicit
|
| 11 |
Response.Expires = 0
|
11 |
Response.Expires = 0
|
| 12 |
%>
|
12 |
%>
|
| 13 |
<!--#include file="common/globals.asp"-->
|
13 |
<!--#include file="common/globals.asp"-->
|
| 14 |
<!--#include file="common/config.asp"-->
|
14 |
<!--#include file="common/config.asp"-->
|
| 15 |
<!--#include file="common/common_subs.asp"-->
|
15 |
<!--#include file="common/common_subs.asp"-->
|
| 16 |
<!--#include file="common/_form_window_common.asp"-->
|
16 |
<!--#include file="common/_form_window_common.asp"-->
|
| 17 |
<%
|
17 |
<%
|
| 18 |
'------------ ACCESS CONTROL ------------------
|
18 |
'------------ ACCESS CONTROL ------------------
|
| 19 |
%>
|
19 |
%>
|
| 20 |
<!--#include file="_access_control_general.asp"-->
|
20 |
<!--#include file="_access_control_general.asp"-->
|
| 21 |
<%
|
21 |
<%
|
| 22 |
'------------ VARIABLE DEFINITION -------------
|
22 |
'------------ VARIABLE DEFINITION -------------
|
| 23 |
Dim rsQry
|
23 |
Dim rsQry
|
| 24 |
Dim isSelectDisabled
|
24 |
Dim isSelectDisabled
|
| 25 |
'------------ CONSTANTS DECLARATION -----------
|
25 |
'------------ CONSTANTS DECLARATION -----------
|
| 26 |
Const enumBOM_EDITMODE = "<img src='icons/bi_edit.gif' width='20' height='16' border='0' align='absmiddle' hspace='5' vspace='3' title='BOM is in edit mode.'>"
|
26 |
Const enumBOM_EDITMODE = "<img src='icons/bi_edit.gif' width='20' height='16' border='0' align='absmiddle' hspace='5' vspace='3' title='BOM is in edit mode.'>"
|
| 27 |
Const enumBOM_NEW = "<img src='icons/bi_new.gif' width='20' height='16' border='0' align='absmiddle' hspace='5' vspace='3' title='New BOM available.'>"
|
27 |
Const enumBOM_NEW = "<img src='icons/bi_new.gif' width='20' height='16' border='0' align='absmiddle' hspace='5' vspace='3' title='New BOM available.'>"
|
| 28 |
Const enumBOM_ACCEPTED = "<img src='icons/bi_accepted.gif' width='20' height='16' border='0' align='absmiddle' hspace='5' vspace='3' title='BOM is tested and Accepted.'>"
|
28 |
Const enumBOM_ACCEPTED = "<img src='icons/bi_accepted.gif' width='20' height='16' border='0' align='absmiddle' hspace='5' vspace='3' title='BOM is tested and Accepted.'>"
|
| 29 |
Const enumBOM_REJECTED = "<img src='icons/bi_rejected.gif' width='20' height='16' border='0' align='absmiddle' hspace='5' vspace='3' title='BOM is tested and Rejected.'>"
|
29 |
Const enumBOM_REJECTED = "<img src='icons/bi_rejected.gif' width='20' height='16' border='0' align='absmiddle' hspace='5' vspace='3' title='BOM is tested and Rejected.'>"
|
| 30 |
'------------ VARIABLE INIT -------------------
|
30 |
'------------ VARIABLE INIT -------------------
|
| 31 |
parProj_id = Request("proj_id")
|
31 |
parProj_id = Request("proj_id")
|
| 32 |
parBranch_id = Request("branch_id")
|
32 |
parBranch_id = Request("branch_id")
|
| 33 |
'------------ CONDITIONS ----------------------
|
33 |
'------------ CONDITIONS ----------------------
|
| 34 |
'----------------------------------------------
|
34 |
'----------------------------------------------
|
| 35 |
%>
|
35 |
%>
|
| 36 |
<%
|
36 |
<%
|
| 37 |
'--------------------------------------------------------------------------------------------------------------------------
|
37 |
'--------------------------------------------------------------------------------------------------------------------------
|
| 38 |
Sub GetRecentBoms ( nBranch_id )
|
38 |
Sub GetRecentBoms ( nBranch_id )
|
| 39 |
Dim rsQry, query
|
39 |
Dim rsQry, query
|
| 40 |
OraDatabase.Parameters.Add "BRANCH_ID", nBranch_id, ORAPARM_INPUT, ORATYPE_NUMBER
|
40 |
OraDatabase.Parameters.Add "BRANCH_ID", nBranch_id, ORAPARM_INPUT, ORATYPE_NUMBER
|
| 41 |
|
41 |
|
| 42 |
Set rsQry = OraDatabase.DbCreateDynaset( GetQuery ("RecentBomsInBranch.sql"), ORADYN_DEFAULT )
|
42 |
Set rsQry = OraDatabase.DbCreateDynaset( GetQuery ("RecentBomsInBranch.sql"), ORADYN_DEFAULT )
|
| 43 |
If rsQry.RecordCount < 1 Then
|
43 |
If rsQry.RecordCount < 1 Then
|
| 44 |
Response.write "There are no recent BOMs found."
|
44 |
Response.write "There are no recent BOMs found."
|
| 45 |
End If
|
45 |
End If
|
| 46 |
|
46 |
|
| 47 |
While (NOT rsQry.BOF) AND (NOT rsQry.EOF)
|
47 |
While (NOT rsQry.BOF) AND (NOT rsQry.EOF)
|
| 48 |
Response.write "<a href='AddBomFrom.asp?from_bom_id="& rsQry("bom_id") &"&"& objPMod.ComposeURL() &"' class='menu_link'>"&_
|
48 |
Response.write "<a href='AddBomFrom.asp?from_bom_id="& rsQry("bom_id") &"&"& objPMod.ComposeURL() &"' class='menu_link'>"&_
|
| 49 |
BomIcon( rsQry("is_readonly"), rsQry("is_rejected") ) & rsQry("bom_name").Value &" "& rsQry("bom_version") &"."& rsQry("bom_lifecycle") &"</a><br>"
|
49 |
BomIcon( rsQry("is_readonly"), rsQry("is_rejected") ) & rsQry("bom_name").Value &" "& rsQry("bom_version") &"."& rsQry("bom_lifecycle") &"</a><br>"
|
| 50 |
rsQry.MoveNext
|
50 |
rsQry.MoveNext
|
| 51 |
WEnd
|
51 |
WEnd
|
| 52 |
|
52 |
|
| 53 |
OraDatabase.Parameters.Remove "BRANCH_ID"
|
53 |
OraDatabase.Parameters.Remove "BRANCH_ID"
|
| 54 |
|
54 |
|
| 55 |
rsQry.Close
|
55 |
rsQry.Close
|
| 56 |
Set rsQry = Nothing
|
56 |
Set rsQry = Nothing
|
| 57 |
End Sub
|
57 |
End Sub
|
| 58 |
'--------------------------------------------------------------------------------------------------------------------------
|
58 |
'--------------------------------------------------------------------------------------------------------------------------
|
| 59 |
Function GetProjectList ( nProjId )
|
59 |
Function GetProjectList ( nProjId )
|
| 60 |
Dim rsQry, Selected, aComboItems, lastItem, i
|
60 |
Dim rsQry, Selected, aComboItems, lastItem, i
|
| 61 |
|
61 |
|
| 62 |
OraDatabase.Parameters.Add "PROJ_ID", nProjId, ORAPARM_INPUT, ORATYPE_NUMBER
|
62 |
OraDatabase.Parameters.Add "PROJ_ID", nProjId, ORAPARM_INPUT, ORATYPE_NUMBER
|
| 63 |
|
63 |
|
| 64 |
Set rsQry = OraDatabase.DbCreateDynaset( GetQuery("ProjectsCombo.sql"), ORADYN_DEFAULT )
|
64 |
Set rsQry = OraDatabase.DbCreateDynaset( GetQuery("ProjectsCombo.sql"), ORADYN_DEFAULT )
|
| 65 |
|
65 |
|
| 66 |
If ((NOT rsQry.BOF) AND (NOT rsQry.EOF)) Then
|
66 |
If ((NOT rsQry.BOF) AND (NOT rsQry.EOF)) Then
|
| 67 |
aComboItems = rsQry.GetRows()
|
67 |
aComboItems = rsQry.GetRows()
|
| 68 |
|
68 |
|
| 69 |
Else
|
69 |
Else
|
| 70 |
Err.Raise 8, "Sub GetProjectList", "Empty record set returned. nProjId="& nProjId
|
70 |
Err.Raise 8, "Sub GetProjectList", "Empty record set returned. nProjId="& nProjId
|
| 71 |
|
71 |
|
| 72 |
End If
|
72 |
End If
|
| 73 |
|
73 |
|
| 74 |
OraDatabase.Parameters.Remove "PROJ_ID"
|
74 |
OraDatabase.Parameters.Remove "PROJ_ID"
|
| 75 |
|
75 |
|
| 76 |
rsQry.Close
|
76 |
rsQry.Close
|
| 77 |
Set rsQry = Nothing
|
77 |
Set rsQry = Nothing
|
| 78 |
|
78 |
|
| 79 |
|
79 |
|
| 80 |
'-- Alter combo item link column to work with OnChange javascript
|
80 |
'-- Alter combo item link column to work with OnChange javascript
|
| 81 |
lastItem = Ubound( aComboItems, 2 )
|
81 |
lastItem = Ubound( aComboItems, 2 )
|
| 82 |
For i = 0 To lastItem
|
82 |
For i = 0 To lastItem
|
| 83 |
aComboItems(0, i) = SCRIPT_NAME &"?from_proj_id="& aComboItems(0, i) &"&"& objPMod.ComposeURL()
|
83 |
aComboItems(0, i) = SCRIPT_NAME &"?from_proj_id="& aComboItems(0, i) &"&"& objPMod.ComposeURL()
|
| 84 |
Next
|
84 |
Next
|
| 85 |
|
85 |
|
| 86 |
|
86 |
|
| 87 |
'-- Return Combo Items Array
|
87 |
'-- Return Combo Items Array
|
| 88 |
GetProjectList = aComboItems
|
88 |
GetProjectList = aComboItems
|
| 89 |
|
89 |
|
| 90 |
End Function
|
90 |
End Function
|
| 91 |
'--------------------------------------------------------------------------------------------------------------------------
|
91 |
'--------------------------------------------------------------------------------------------------------------------------
|
| 92 |
Function GetBranchList ( nProjId, nBranch_id )
|
92 |
Function GetBranchList ( nProjId, nBranch_id )
|
| 93 |
Dim rsQry, Selected, aComboItems, lastItem, i
|
93 |
Dim rsQry, Selected, aComboItems, lastItem, i
|
| 94 |
|
94 |
|
| 95 |
|
95 |
|
| 96 |
OraDatabase.Parameters.Add "PROJ_ID", nProjId, ORAPARM_INPUT, ORATYPE_NUMBER
|
96 |
OraDatabase.Parameters.Add "PROJ_ID", nProjId, ORAPARM_INPUT, ORATYPE_NUMBER
|
| 97 |
OraDatabase.Parameters.Add "BRANCH_ID", nBranch_id, ORAPARM_INPUT, ORATYPE_NUMBER
|
97 |
OraDatabase.Parameters.Add "BRANCH_ID", nBranch_id, ORAPARM_INPUT, ORATYPE_NUMBER
|
| 98 |
|
98 |
|
| 99 |
Set rsQry = OraDatabase.DbCreateDynaset( GetQuery("BranchesCombo.sql"), ORADYN_DEFAULT )
|
99 |
Set rsQry = OraDatabase.DbCreateDynaset( GetQuery("BranchesCombo.sql"), ORADYN_DEFAULT )
|
| 100 |
|
100 |
|
| 101 |
If ((NOT rsQry.BOF) AND (NOT rsQry.EOF)) Then
|
101 |
If ((NOT rsQry.BOF) AND (NOT rsQry.EOF)) Then
|
| 102 |
aComboItems = rsQry.GetRows()
|
102 |
aComboItems = rsQry.GetRows()
|
| 103 |
|
103 |
|
| 104 |
End If
|
104 |
End If
|
| 105 |
|
105 |
|
| 106 |
OraDatabase.Parameters.Remove "PROJ_ID"
|
106 |
OraDatabase.Parameters.Remove "PROJ_ID"
|
| 107 |
OraDatabase.Parameters.Remove "BRANCH_ID"
|
107 |
OraDatabase.Parameters.Remove "BRANCH_ID"
|
| 108 |
|
108 |
|
| 109 |
rsQry.Close
|
109 |
rsQry.Close
|
| 110 |
Set rsQry = Nothing
|
110 |
Set rsQry = Nothing
|
| 111 |
|
111 |
|
| 112 |
If IsArray(aComboItems) Then
|
112 |
If IsArray(aComboItems) Then
|
| 113 |
'-- Alter combo item link column to work with OnChange javascript
|
113 |
'-- Alter combo item link column to work with OnChange javascript
|
| 114 |
lastItem = Ubound( aComboItems, 2 )
|
114 |
lastItem = Ubound( aComboItems, 2 )
|
| 115 |
For i = 0 To lastItem
|
115 |
For i = 0 To lastItem
|
| 116 |
aComboItems(0, i) = SCRIPT_NAME &"?from_proj_id="& nProjId &"&from_branch_id="& aComboItems(0, i) &"&"& objPMod.ComposeURL()
|
116 |
aComboItems(0, i) = SCRIPT_NAME &"?from_proj_id="& nProjId &"&from_branch_id="& aComboItems(0, i) &"&"& objPMod.ComposeURL()
|
| 117 |
Next
|
117 |
Next
|
| 118 |
End If
|
118 |
End If
|
| 119 |
|
119 |
|
| 120 |
|
120 |
|
| 121 |
'-- Return Combo Items Array
|
121 |
'-- Return Combo Items Array
|
| 122 |
GetBranchList = aComboItems
|
122 |
GetBranchList = aComboItems
|
| 123 |
|
123 |
|
| 124 |
End Function
|
124 |
End Function
|
| 125 |
'--------------------------------------------------------------------------------------------------------------------------
|
125 |
'--------------------------------------------------------------------------------------------------------------------------
|
| 126 |
Function GetBomList ( nProjId, nBranch_id )
|
126 |
Function GetBomList ( nProjId, nBranch_id )
|
| 127 |
Dim rsQry, Selected, aComboItems, lastItem, i
|
127 |
Dim rsQry, Selected, aComboItems, lastItem, i
|
| 128 |
|
128 |
|
| 129 |
|
129 |
|
| 130 |
OraDatabase.Parameters.Add "PROJ_ID", nProjId, ORAPARM_INPUT, ORATYPE_NUMBER
|
130 |
OraDatabase.Parameters.Add "PROJ_ID", nProjId, ORAPARM_INPUT, ORATYPE_NUMBER
|
| 131 |
OraDatabase.Parameters.Add "BRANCH_ID", nBranch_id, ORAPARM_INPUT, ORATYPE_NUMBER
|
131 |
OraDatabase.Parameters.Add "BRANCH_ID", nBranch_id, ORAPARM_INPUT, ORATYPE_NUMBER
|
| 132 |
OraDatabase.Parameters.Add "BOM_ID", 0, ORAPARM_INPUT, ORATYPE_NUMBER
|
132 |
OraDatabase.Parameters.Add "BOM_ID", 0, ORAPARM_INPUT, ORATYPE_NUMBER
|
| 133 |
|
133 |
|
| 134 |
Set rsQry = OraDatabase.DbCreateDynaset( GetQuery("BomsCombo.sql"), ORADYN_DEFAULT )
|
134 |
Set rsQry = OraDatabase.DbCreateDynaset( GetQuery("BomsCombo.sql"), ORADYN_DEFAULT )
|
| 135 |
|
135 |
|
| 136 |
If ((NOT rsQry.BOF) AND (NOT rsQry.EOF)) Then
|
136 |
If ((NOT rsQry.BOF) AND (NOT rsQry.EOF)) Then
|
| 137 |
GetBomList = rsQry.GetRows()
|
137 |
GetBomList = rsQry.GetRows()
|
| 138 |
|
138 |
|
| 139 |
End If
|
139 |
End If
|
| 140 |
|
140 |
|
| 141 |
OraDatabase.Parameters.Remove "PROJ_ID"
|
141 |
OraDatabase.Parameters.Remove "PROJ_ID"
|
| 142 |
OraDatabase.Parameters.Remove "BRANCH_ID"
|
142 |
OraDatabase.Parameters.Remove "BRANCH_ID"
|
| 143 |
OraDatabase.Parameters.Remove "BOM_ID"
|
143 |
OraDatabase.Parameters.Remove "BOM_ID"
|
| 144 |
|
144 |
|
| 145 |
rsQry.Close
|
145 |
rsQry.Close
|
| 146 |
Set rsQry = Nothing
|
146 |
Set rsQry = Nothing
|
| 147 |
End Function
|
147 |
End Function
|
| 148 |
'--------------------------------------------------------------------------------------------------------------------------
|
148 |
'--------------------------------------------------------------------------------------------------------------------------
|
| 149 |
%>
|
149 |
%>
|
| 150 |
<%
|
150 |
<%
|
| 151 |
'------------ RUN BEFORE PAGE RENDER ----------
|
151 |
'------------ RUN BEFORE PAGE RENDER ----------
|
| 152 |
'-- Redirect if known from_bom_id
|
152 |
'-- Redirect if known from_bom_id
|
| 153 |
If Request("bom_id_list") <> "" Then
|
153 |
If Request("bom_id_list") <> "" Then
|
| 154 |
Call OpenInWindow ( "AddBomFrom.asp?from_bom_id="& Request("bom_id_list") &"&"& objPMod.ComposeURL() )
|
154 |
Call OpenInWindow ( "AddBomFrom.asp?from_bom_id="& Request("bom_id_list") &"&"& objPMod.ComposeURL() )
|
| 155 |
End If
|
155 |
End If
|
| 156 |
|
156 |
|
| 157 |
'----------------------------------------------
|
157 |
'----------------------------------------------
|
| 158 |
%>
|
158 |
%>
|
| 159 |
<html>
|
159 |
<html>
|
| 160 |
<head>
|
160 |
<head>
|
| 161 |
<title>Deployment Manager</title>
|
161 |
<title>Deployment Manager</title>
|
| 162 |
<meta HTTP-EQUIV="Pragma" CONTENT="no-cache">
|
162 |
<link rel="shortcut icon" href="<%=FavIcon%>"/>
|
| 163 |
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
|
163 |
<meta HTTP-EQUIV="Pragma" CONTENT="no-cache">
|
| 164 |
<link href="scripts/deployment_manager.css" rel="stylesheet" type="text/css">
|
164 |
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
|
| 165 |
<script language="JavaScript" src="scripts/common.js"></script>
|
165 |
<link href="scripts/deployment_manager.css" rel="stylesheet" type="text/css">
|
| 166 |
|
166 |
<script language="JavaScript" src="scripts/common.js"></script>
|
| 167 |
</head>
|
167 |
|
| 168 |
<body background="images/bg_lite_blue.gif" leftmargin="0" topmargin="0">
|
168 |
</head>
|
| 169 |
<!-- HEADER ++++++++++++++++ -->
|
169 |
<body background="images/bg_lite_blue.gif" leftmargin="0" topmargin="0">
|
| 170 |
<!--#include file="_header.asp"-->
|
170 |
<!-- HEADER ++++++++++++++++ -->
|
| 171 |
<!-- +++++++++++++++++++++++ -->
|
171 |
<!--#include file="_header.asp"-->
|
| 172 |
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
172 |
<!-- +++++++++++++++++++++++ -->
|
| 173 |
<%
|
173 |
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
| 174 |
'-- FROM START ---------------------------------------------------------------------------------------------------------
|
174 |
<%
|
| 175 |
objFormComponent.FormName = "FormName"
|
175 |
'-- FROM START ---------------------------------------------------------------------------------------------------------
|
| 176 |
objFormComponent.Action = "AddBomFrom.asp"
|
176 |
objFormComponent.FormName = "FormName"
|
| 177 |
Call objFormComponent.FormStart()
|
177 |
objFormComponent.Action = "AddBomFrom.asp"
|
| 178 |
%>
|
178 |
Call objFormComponent.FormStart()
|
| 179 |
<tr>
|
179 |
%>
|
| 180 |
<td bgcolor="#FFFFFF"><img src="images/spacer.gif" width="1" height="42"></td>
|
180 |
<tr>
|
| 181 |
</tr>
|
181 |
<td bgcolor="#FFFFFF"><img src="images/spacer.gif" width="1" height="42"></td>
|
| 182 |
<tr>
|
182 |
</tr>
|
| 183 |
<td align="center" valign="middle" bgcolor="#FFFFFF">
|
183 |
<tr>
|
| 184 |
<!-- FROM ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
|
184 |
<td align="center" valign="middle" bgcolor="#FFFFFF">
|
| 185 |
<table width="600" border="0" cellspacing="0" cellpadding="1">
|
185 |
<!-- FROM ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
|
| 186 |
<tr>
|
186 |
<table width="600" border="0" cellspacing="0" cellpadding="1">
|
| 187 |
<td background="images/bg_bage_2.gif"><table width="100%" border="0" cellspacing="0" cellpadding="0">
|
187 |
<tr>
|
| 188 |
<tr>
|
188 |
<td background="images/bg_bage_2.gif"><table width="100%" border="0" cellspacing="0" cellpadding="0">
|
| 189 |
<td bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="0" cellpadding="10">
|
189 |
<tr>
|
| 190 |
<tr>
|
190 |
<td bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="0" cellpadding="10">
|
| 191 |
<td bgcolor="#FFFFFF" class="body_txt"><span class="body_h1"><img src='icons/bi_new.gif' width='20' height='16' border='0' align='absmiddle' hspace='2'>New BOM </span> <br>
|
191 |
<tr>
|
| 192 |
Create New Bill of Materials (BOM) by selecting available options below.</td>
|
192 |
<td bgcolor="#FFFFFF" class="body_txt"><span class="body_h1"><img src='icons/bi_new.gif' width='20' height='16' border='0' align='absmiddle' hspace='2'>New BOM </span> <br>
|
| 193 |
</tr>
|
193 |
Create New Bill of Materials (BOM) by selecting available options below.</td>
|
| 194 |
<tr>
|
194 |
</tr>
|
| 195 |
<td background="images/bg_bage_0.gif">
|
195 |
<tr>
|
| 196 |
<table width="100%" border="0" cellspacing="10" cellpadding="0">
|
196 |
<td background="images/bg_bage_0.gif">
|
| 197 |
<tr>
|
197 |
<table width="100%" border="0" cellspacing="10" cellpadding="0">
|
| 198 |
<td width="33%" valign="top" class="body_txt">
|
198 |
<tr>
|
| 199 |
<strong>Create New</strong><br>
|
199 |
<td width="33%" valign="top" class="body_txt">
|
| 200 |
<a href="AddBlankBom.asp?NEXT=OK&<%=objPMod.ComposeURL()%>" class="menu_link"><img src="icons/bi_new.gif" width="20" height="16" hspace="5" vspace="3" border="0" align="absmiddle">Blank </a><br><br>
|
200 |
<strong>Create New</strong><br>
|
| 201 |
</td>
|
201 |
<a href="AddBlankBom.asp?NEXT=OK&<%=objPMod.ComposeURL()%>" class="menu_link"><img src="icons/bi_new.gif" width="20" height="16" hspace="5" vspace="3" border="0" align="absmiddle">Blank </a><br><br>
|
| 202 |
<td width="1" background="images/bg_bage_2.gif"><img src="images/spacer.gif" width="1" height="250"></td>
|
202 |
</td>
|
| 203 |
<td nowrap width="34%" valign="top" class="body_txt">
|
203 |
<td width="1" background="images/bg_bage_2.gif"><img src="images/spacer.gif" width="1" height="250"></td>
|
| 204 |
<strong>Create from Recent </strong><br>
|
204 |
<td nowrap width="34%" valign="top" class="body_txt">
|
| 205 |
<%Call GetRecentBoms ( parBranch_id )%>
|
205 |
<strong>Create from Recent </strong><br>
|
| 206 |
</td>
|
206 |
<%Call GetRecentBoms ( parBranch_id )%>
|
| 207 |
<td width="1" background="images/bg_bage_2.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
207 |
</td>
|
| 208 |
<td width="33%" valign="top" class="body_txt" nowrap>
|
208 |
<td width="1" background="images/bg_bage_2.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
| 209 |
<strong>Create From Other</strong><br><br>
|
209 |
<td width="33%" valign="top" class="body_txt" nowrap>
|
| 210 |
<%=objFormComponent.Combo ( "from_proj_id", GetProjectList( Request("from_proj_id") ), TRUE, "class='form_ivalue' onChange=""MM_jumpMenu('parent',this,0)"" " )%><br>
|
210 |
<strong>Create From Other</strong><br><br>
|
| 211 |
<%
|
211 |
<%=objFormComponent.Combo ( "from_proj_id", GetProjectList( Request("from_proj_id") ), TRUE, "class='form_ivalue' onChange=""MM_jumpMenu('parent',this,0)"" " )%><br>
|
| 212 |
If Request("from_proj_id") <> "" Then
|
212 |
<%
|
| 213 |
Response.write objFormComponent.Combo ( "from_branch_id", GetBranchList( Request("from_proj_id"), Request("from_branch_id") ), TRUE, "class='form_ivalue' onChange=""MM_jumpMenu('parent',this,0)"" " )
|
213 |
If Request("from_proj_id") <> "" Then
|
| 214 |
Response.write "<br>"
|
214 |
Response.write objFormComponent.Combo ( "from_branch_id", GetBranchList( Request("from_proj_id"), Request("from_branch_id") ), TRUE, "class='form_ivalue' onChange=""MM_jumpMenu('parent',this,0)"" " )
|
| 215 |
End If
|
215 |
Response.write "<br>"
|
| 216 |
%>
|
216 |
End If
|
| 217 |
<%
|
217 |
%>
|
| 218 |
isSelectDisabled = "disabled"
|
218 |
<%
|
| 219 |
If Request("from_branch_id") <> "" Then
|
219 |
isSelectDisabled = "disabled"
|
| 220 |
Response.write objFormComponent.Combo ( "from_bom_id", GetBomList( Request("from_proj_id"), Request("from_branch_id") ), FALSE, "class='form_ivalue' " )
|
220 |
If Request("from_branch_id") <> "" Then
|
| 221 |
Response.write "<br>"
|
221 |
Response.write objFormComponent.Combo ( "from_bom_id", GetBomList( Request("from_proj_id"), Request("from_branch_id") ), FALSE, "class='form_ivalue' " )
|
| 222 |
isSelectDisabled = ""
|
222 |
Response.write "<br>"
|
| 223 |
End If
|
223 |
isSelectDisabled = ""
|
| 224 |
%>
|
224 |
End If
|
| 225 |
<%=objFormComponent.SubmitButton ( "Select", "class='form_ivalue' "& isSelectDisabled )%>
|
225 |
%>
|
| 226 |
</td>
|
226 |
<%=objFormComponent.SubmitButton ( "Select", "class='form_ivalue' "& isSelectDisabled )%>
|
| 227 |
</tr>
|
227 |
</td>
|
| 228 |
</table>
|
228 |
</tr>
|
| 229 |
</td>
|
229 |
</table>
|
| 230 |
</tr>
|
230 |
</td>
|
| 231 |
<tr>
|
231 |
</tr>
|
| 232 |
<td background="images/bg_login.gif"><table width="100%" border="0" cellspacing="0" cellpadding="0">
|
232 |
<tr>
|
| 233 |
<tr>
|
233 |
<td background="images/bg_login.gif"><table width="100%" border="0" cellspacing="0" cellpadding="0">
|
| 234 |
<td></td>
|
234 |
<tr>
|
| 235 |
<td align="right">
|
235 |
<td></td>
|
| 236 |
<%=objFormComponent.CancelButton ( "Cancel", "class='form_btn'", Request("rfile") &"?CANCEL=OK"& objPMod.ComposeURLWithout("rfile") )%></td>
|
236 |
<td align="right">
|
| 237 |
</tr>
|
237 |
<%=objFormComponent.CancelButton ( "Cancel", "class='form_btn'", Request("rfile") &"?CANCEL=OK"& objPMod.ComposeURLWithout("rfile") )%></td>
|
| 238 |
</table></td>
|
238 |
</tr>
|
| 239 |
</tr>
|
239 |
</table></td>
|
| 240 |
<%=objPMod.ComposeHiddenTags()%>
|
240 |
</tr>
|
| 241 |
</table></td>
|
241 |
<%=objPMod.ComposeHiddenTags()%>
|
| 242 |
</tr>
|
242 |
</table></td>
|
| 243 |
</table></td>
|
243 |
</tr>
|
| 244 |
</tr>
|
244 |
</table></td>
|
| 245 |
</table>
|
245 |
</tr>
|
| 246 |
<!-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> </td>
|
246 |
</table>
|
| 247 |
</tr>
|
247 |
<!-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> </td>
|
| 248 |
<tr>
|
248 |
</tr>
|
| 249 |
<td bgcolor="#FFFFFF"><img src="images/spacer.gif" width="1" height="42"></td>
|
249 |
<tr>
|
| 250 |
</tr>
|
250 |
<td bgcolor="#FFFFFF"><img src="images/spacer.gif" width="1" height="42"></td>
|
| 251 |
<%
|
251 |
</tr>
|
| 252 |
Call objFormComponent.FormEnd()
|
252 |
<%
|
| 253 |
'-- FROM END ----------------------------------------------------------------------------------------------------------------
|
253 |
Call objFormComponent.FormEnd()
|
| 254 |
%>
|
254 |
'-- FROM END ----------------------------------------------------------------------------------------------------------------
|
| 255 |
</table>
|
255 |
%>
|
| 256 |
<!-- FOOTER ++++++++++++++++++++++ -->
|
256 |
</table>
|
| 257 |
<!--#include file="_footer.asp"-->
|
257 |
<!-- FOOTER ++++++++++++++++++++++ -->
|
| 258 |
<!-- +++++++++++++++++++++++++++++ -->
|
258 |
<!--#include file="_footer.asp"-->
|
| 259 |
</body>
|
259 |
<!-- +++++++++++++++++++++++++++++ -->
|
| 260 |
</html>
|
260 |
</body>
|
| 261 |
<%
|
261 |
</html>
|
| 262 |
'------------ RUN AFTER PAGE RENDER -----------
|
262 |
<%
|
| 263 |
Set objPMod = Nothing
|
263 |
'------------ RUN AFTER PAGE RENDER -----------
|
| 264 |
'----------------------------------------------
|
264 |
Set objPMod = Nothing
|
| 265 |
%>
|
265 |
'----------------------------------------------
|
| - |
|
266 |
%>
|
| 266 |
<!--#include file="common/globals_destructor.asp"-->
|
267 |
<!--#include file="common/globals_destructor.asp"-->
|
| 267 |
|
268 |
|