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

Diff of /papo/forms/product.gfd

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

revision 1.19 by charlie, Thu Dec 19 19:28:12 2002 UTC revision 1.20 by jlenton, Mon Jan 13 19:39:06 2003 UTC
# Line 10  Line 10 
10    <datasource name="productResultDataSource" database="papo"    <datasource name="productResultDataSource" database="papo"
11      table="product, _product_data, price, _price_data, product_code, _product_code_data, product_tax, _product_tax_data, product_store, _product_store_data"      table="product, _product_data, price, _price_data, product_code, _product_code_data, product_tax, _product_tax_data, product_store, _product_store_data"
12      historytable="_product_data, _price_data, _product_code_data, _product_tax_data, _product_store_data"      historytable="_product_data, _price_data, _product_code_data, _product_tax_data, _product_store_data"
13      prequery="y" cache="15" order_by="_product_data.canonical_name">      cache="15" order_by="_product_data.canonical_name">
14      <condition>      <condition>
15        <and>        <and>
16          <!-- pega product con su _data -->          <!-- pega product con su _data -->
# Line 283  Line 283 
283    
284    <page name="Productos">    <page name="Productos">
285      <trigger type="Pre-Focusout">      <trigger type="Pre-Focusout">
     if 0:  
       def constrain(block_from, field_from, block_to, field_to):  
         block_to.processRollback()  
         if block_from.getRecordCount() > 0 and not block_from.getCurrentRecord().isEmpty():  
           block_to.initQuery()  
           field_to = ("%s" % field_from)  
           block_to.processQuery()  
   
       constrain(productResultBlock, productResultBlock.productIdREntry,  
                 productBlock, productBlock.productIdEntry )  
   
     else:  
286          productBlock.processRollback()          productBlock.processRollback()
287          if productResultBlock.getRecordCount() > 0 and not productResultBlock.getCurrentRecord().isEmpty():          if productResultBlock.getRecordCount() > 0 and not productResultBlock.getCurrentRecord().isEmpty():
288            productBlock.initQuery()            productBlock.initQuery()
289            productBlock.productIdEntry = ("%s" % productResultBlock.productIdREntry)            productBlock.productIdEntry = ("%s" % productResultBlock.productIdREntry)
290            productBlock.processQuery()            productBlock.processQuery()
291      </trigger>      </trigger>
   
     <trigger type="Post-Focusin" src="productSearchTrigger"/>  
   
292      <block name="productSearchBlock" datasource="searchDataSource" transparentBlock="">      <block name="productSearchBlock" datasource="searchDataSource" transparentBlock="">
293        <label text="Nombre canónico del producto a buscar" x="1" y="1"/>        <label text="Nombre canónico del producto a buscar" x="1" y="1"/>
294        <entry name="searchNameEntry" x="1" y="2" width="35"/>        <entry name="searchNameEntry" x="1" y="2" width="35"/>
# Line 352  Line 337 
337          <button x="35" y="6" name="physical_structureButton"          <button x="35" y="6" name="physical_structureButton"
338            label="..." width="5" height="1" trigger="physical_structureTrigger">            label="..." width="5" height="1" trigger="physical_structureTrigger">
339            <trigger type="NAMED" name="physical_structureTrigger">            <trigger type="NAMED" name="physical_structureTrigger">
340              runForm('physical_structure.gfd');              self.genericBox('No implementado', ['Ok']);
341            </trigger>            </trigger>
342          </button>          </button>
343          <label text="País de Origen:" x="1" y="7"/>          <label text="País de Origen:" x="1" y="7"/>

Legend:
Removed from v.1.19  
changed lines
  Added in v.1.20

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