/[papo]/papo/forms/product.neb
ViewVC logotype

Diff of /papo/forms/product.neb

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1 by mhepp, Fri May 9 21:16:41 2003 UTC revision 1.2 by apronotti, Wed May 14 19:01:51 2003 UTC
# Line 335  Line 335 
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[
# Line 353  Line 353 
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)+'%'
# Line 373  Line 373 
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)
# Line 426  Line 426 
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 ()
# Line 435  Line 435 
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 ()
# Line 444  Line 444 
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 ()
# Line 499  Line 499 
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 ()
# Line 576  Line 576 
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)+'%'

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26