| Line 270... |
Line 270... |
| 270 |
<%
|
270 |
<%
|
| 271 |
Call GetStates ( aStateCollector, parProj_id )
|
271 |
Call GetStates ( aStateCollector, parProj_id )
|
| 272 |
'--- Need to ensure that we have ( and only one ) "BOM CREATORS"
|
272 |
'--- Need to ensure that we have ( and only one ) "BOM CREATORS"
|
| 273 |
' Scan all states and determine if it has been allocated
|
273 |
' Scan all states and determine if it has been allocated
|
| 274 |
creatorAllocatedCount = 0
|
274 |
creatorAllocatedCount = 0
|
| - |
|
275 |
If NOT isNULL(aStateCollector) Then
|
| 275 |
Dim xx
|
276 |
Dim xx
|
| 276 |
For xx = LBound(aStateCollector,2) to UBound(aStateCollector,2)
|
277 |
For xx = LBound(aStateCollector,2) to UBound(aStateCollector,2)
|
| 277 |
If CInt(aStateCollector(3,xx)) = enumDB_STATE_TYPE_BOM_CREATOR Then
|
278 |
If CInt(aStateCollector(3,xx)) = enumDB_STATE_TYPE_BOM_CREATOR Then
|
| 278 |
creatorAllocatedCount = creatorAllocatedCount + 1
|
279 |
creatorAllocatedCount = creatorAllocatedCount + 1
|
| 279 |
End If
|
280 |
End If
|
| 280 |
Next
|
281 |
Next
|
| - |
|
282 |
End If
|
| 281 |
|
283 |
|
| 282 |
If creatorAllocatedCount = 0 Then
|
284 |
If creatorAllocatedCount = 0 Then
|
| 283 |
%><p class="msg_warning">Warning: At least one state must have a 'type' of BOM CREATOR to allow the creation of new BOMs</p><%
|
285 |
%><p class="msg_warning">Warning: At least one state must have a 'type' of BOM CREATOR to allow the creation of new BOMs</p><%
|
| 284 |
ElseIf creatorAllocatedCount > 1 Then
|
286 |
ElseIf creatorAllocatedCount > 1 Then
|
| 285 |
%><p class="msg_warning">Warning: Multiple states with 'type' of BOM CREATOR</p><%
|
287 |
%><p class="msg_warning">Warning: Multiple states with 'type' of BOM CREATOR</p><%
|