335 |
|
|
336 |
<trigger name="productRollbackTrigger" type="NAMED"><![CDATA[ |
<trigger name="productRollbackTrigger" type="NAMED"><![CDATA[ |
337 |
import hack |
import hack |
338 |
hack.rollback(productBlock) |
productBlock.reset() |
339 |
]]></trigger> |
]]></trigger> |
340 |
|
|
341 |
<trigger name="askForChangesTrigger" type="NAMED"><![CDATA[ |
<trigger name="askForChangesTrigger" type="NAMED"><![CDATA[ |
353 |
setStatusText('buscando...') |
setStatusText('buscando...') |
354 |
|
|
355 |
self._object.dispatchEvent(GFEvent('beginWAIT')) |
self._object.dispatchEvent(GFEvent('beginWAIT')) |
356 |
productResultBlock.processRollback() |
productResultBlock.clear() |
357 |
productResultBlock.initQuery() |
productResultBlock.initQuery() |
358 |
if str(productSearchBlock.searchCodeEntry): |
if str(productSearchBlock.searchCodeEntry): |
359 |
productResultBlock.codeListEntry = str(productSearchBlock.searchCodeEntry)+'%' |
productResultBlock.codeListEntry = str(productSearchBlock.searchCodeEntry)+'%' |
373 |
|
|
374 |
<page name="Búsqueda"> |
<page name="Búsqueda"> |
375 |
<trigger type="Pre-Focusout"><![CDATA[ |
<trigger type="Pre-Focusout"><![CDATA[ |
376 |
productBlock.processRollback() |
productBlock.clear() |
377 |
if productResultBlock.getRecordCount() > 0 and not productResultBlock.getCurrentRecord().isEmpty(): |
if productResultBlock.getRecordCount() > 0 and not productResultBlock.getCurrentRecord().isEmpty(): |
378 |
productBlock.initQuery() |
productBlock.initQuery() |
379 |
productBlock.productIdEntry = ("%s" % productResultBlock.productIdREntry) |
productBlock.productIdEntry = ("%s" % productResultBlock.productIdREntry) |
426 |
<trigger type="Pre-Focusin"><![CDATA[ |
<trigger type="Pre-Focusin"><![CDATA[ |
427 |
if str(productResultBlock.productIdREntry)!='': |
if str(productResultBlock.productIdREntry)!='': |
428 |
if str(productBlock.product_classificationIdEntry)!='': |
if str(productBlock.product_classificationIdEntry)!='': |
429 |
searchingProductClassificationBlock.processRollback () |
searchingProductClassificationBlock.clear() |
430 |
searchingProductClassificationBlock.initQuery () |
searchingProductClassificationBlock.initQuery () |
431 |
searchingProductClassificationBlock.idEntry= str(productBlock.product_classificationIdEntry) |
searchingProductClassificationBlock.idEntry= str(productBlock.product_classificationIdEntry) |
432 |
searchingProductClassificationBlock.processQuery () |
searchingProductClassificationBlock.processQuery () |
435 |
productBlock.product_classificationEntry= '' |
productBlock.product_classificationEntry= '' |
436 |
|
|
437 |
if str(productBlock.physical_structureIdEntry)!='': |
if str(productBlock.physical_structureIdEntry)!='': |
438 |
searchingPhysicalStructureBlock.processRollback () |
searchingPhysicalStructureBlock.clear() |
439 |
searchingPhysicalStructureBlock.initQuery () |
searchingPhysicalStructureBlock.initQuery () |
440 |
searchingPhysicalStructureBlock.idEntry= str(productBlock.physical_structureIdEntry) |
searchingPhysicalStructureBlock.idEntry= str(productBlock.physical_structureIdEntry) |
441 |
searchingPhysicalStructureBlock.processQuery () |
searchingPhysicalStructureBlock.processQuery () |
444 |
productBlock.physical_structureEntry= '' |
productBlock.physical_structureEntry= '' |
445 |
|
|
446 |
if str(productBlock.countryIdEntry)!='': |
if str(productBlock.countryIdEntry)!='': |
447 |
searchingCountryBlock.processRollback () |
searchingCountryBlock.clear() |
448 |
searchingCountryBlock.initQuery () |
searchingCountryBlock.initQuery () |
449 |
searchingCountryBlock.idEntry= str(productBlock.countryIdEntry) |
searchingCountryBlock.idEntry= str(productBlock.countryIdEntry) |
450 |
searchingCountryBlock.processQuery () |
searchingCountryBlock.processQuery () |
499 |
productBlock.product_classificationNameEntry= str(searchingProductClassificationBlock.nameEntry) |
productBlock.product_classificationNameEntry= str(searchingProductClassificationBlock.nameEntry) |
500 |
|
|
501 |
# look for the name... |
# look for the name... |
502 |
searchingProductClassificationBlock.processRollback () |
searchingProductClassificationBlock.clear() |
503 |
searchingProductClassificationBlock.initQuery () |
searchingProductClassificationBlock.initQuery () |
504 |
searchingProductClassificationBlock.nameEntry= str(productBlock.product_classificationNameEntry)+'%' |
searchingProductClassificationBlock.nameEntry= str(productBlock.product_classificationNameEntry)+'%' |
505 |
searchingProductClassificationBlock.processQuery () |
searchingProductClassificationBlock.processQuery () |
576 |
productBlock.countryNameEntry= str(searchingCountryBlock.nameEntry) |
productBlock.countryNameEntry= str(searchingCountryBlock.nameEntry) |
577 |
|
|
578 |
# look for the name... |
# look for the name... |
579 |
searchingCountryBlock.processRollback () |
searchingCountryBlock.clear() |
580 |
searchingCountryBlock.initQuery () |
searchingCountryBlock.initQuery () |
581 |
searchingCountryBlock.iso3Entry= str(productBlock.countryIso3Entry)+'%' |
searchingCountryBlock.iso3Entry= str(productBlock.countryIso3Entry)+'%' |
582 |
searchingCountryBlock.nameEntry= str(productBlock.countryNameEntry)+'%' |
searchingCountryBlock.nameEntry= str(productBlock.countryNameEntry)+'%' |