252 |
|
|
253 |
]]></trigger> |
]]></trigger> |
254 |
|
|
255 |
<trigger name="productCommitTrigger" type="NAMED"> |
<trigger name="productCommitTrigger" type="NAMED"><![CDATA[ |
256 |
from hack import a2f |
from hack import a2f |
257 |
bad=0 |
bad=0 |
258 |
if not str(productBlock.codeEntry): |
if not str(productBlock.codeEntry): |
271 |
productBlock.jumpRecord(2) |
productBlock.jumpRecord(2) |
272 |
else: |
else: |
273 |
productBlock.commit() |
productBlock.commit() |
274 |
</trigger> |
]]></trigger> |
275 |
|
|
276 |
|
|
277 |
<trigger name="productDeleteTrigger" type="NAMED"> |
<trigger name="productDeleteTrigger" type="NAMED"><![CDATA[ |
278 |
import hack |
import hack |
279 |
hack.deleteCurrentRecord(productBlock) |
hack.deleteCurrentRecord(productBlock) |
280 |
</trigger> |
]]></trigger> |
281 |
|
|
282 |
<trigger name="productRollbackTrigger" type="NAMED"> |
<trigger name="productRollbackTrigger" type="NAMED"><![CDATA[ |
283 |
import hack |
import hack |
284 |
hack.rollback(productBlock) |
hack.rollback(productBlock) |
285 |
</trigger> |
]]></trigger> |
286 |
|
|
287 |
<trigger name="askForChangesTrigger" type="NAMED"> |
<trigger name="askForChangesTrigger" type="NAMED"><![CDATA[ |
288 |
import hack |
import hack |
289 |
|
|
290 |
hack.confirmPageChanges(self, 'productCommitTrigger', productBlock) |
hack.confirmPageChanges(self, 'productCommitTrigger', productBlock) |
291 |
</trigger> |
]]></trigger> |
292 |
|
|
293 |
<trigger name="productSearchTrigger" type="NAMED"> |
<trigger name="productSearchTrigger" type="NAMED"><![CDATA[ |
294 |
try: |
try: |
295 |
from gnue.forms.GFEvent import GFEvent |
from gnue.forms.GFEvent import GFEvent |
296 |
except ImportError: |
except ImportError: |
315 |
else: |
else: |
316 |
productSearchBlock.funnyLabel ='%6d registros encontrados' % productResultBlock.getRecordCount() |
productSearchBlock.funnyLabel ='%6d registros encontrados' % productResultBlock.getRecordCount() |
317 |
|
|
318 |
</trigger> |
]]></trigger> |
319 |
|
|
320 |
<page name="Productos"> |
<page name="Productos"> |
321 |
<trigger type="Pre-Focusout"> |
<trigger type="Pre-Focusout"><![CDATA[ |
322 |
productBlock.processRollback() |
productBlock.processRollback() |
323 |
if productResultBlock.getRecordCount() > 0 and not productResultBlock.getCurrentRecord().isEmpty(): |
if productResultBlock.getRecordCount() > 0 and not productResultBlock.getCurrentRecord().isEmpty(): |
324 |
productBlock.initQuery() |
productBlock.initQuery() |
325 |
productBlock.productIdEntry = ("%s" % productResultBlock.productIdREntry) |
productBlock.productIdEntry = ("%s" % productResultBlock.productIdREntry) |
326 |
productBlock.processQuery() |
productBlock.processQuery() |
327 |
</trigger> |
]]></trigger> |
328 |
<block name="productSearchBlock" datasource="searchDataSource" transparentBlock="y"> |
<block name="productSearchBlock" datasource="searchDataSource" transparentBlock="y"> |
329 |
<label text="Ingrese los datos del producto a buscar:" x="1" y="1"/> |
<label text="Ingrese los datos del producto a buscar:" x="1" y="1"/> |
330 |
<label text="el Nombre (canónico):" x="1" y="2"/> |
<label text="el Nombre (canónico):" x="1" y="2"/> |
369 |
<entry name="nameEntry" field="name" |
<entry name="nameEntry" field="name" |
370 |
x="1" y="1" hidden="y"/> |
x="1" y="1" hidden="y"/> |
371 |
</block> |
</block> |
372 |
<trigger type="Pre-Focusin"> |
<trigger type="Pre-Focusin"><![CDATA[ |
373 |
|
if str(productResultBlock.productIdREntry)!='': |
374 |
if str(productBlock.product_classificationIdEntry)!='': |
if str(productBlock.product_classificationIdEntry)!='': |
375 |
searchingProductClassificationBlock.processRollback () |
searchingProductClassificationBlock.processRollback () |
376 |
searchingProductClassificationBlock.initQuery () |
searchingProductClassificationBlock.initQuery () |
399 |
else: |
else: |
400 |
productBlock.countryIso3Entry= '' |
productBlock.countryIso3Entry= '' |
401 |
productBlock.countryNameEntry= '' |
productBlock.countryNameEntry= '' |
402 |
</trigger> |
]]></trigger> |
403 |
<!-- new_schema_end --> |
<!-- new_schema_end --> |
404 |
|
|
405 |
<trigger type="pre-Focusout" src="askForChangesTrigger"/> |
<trigger type="pre-Focusout" src="askForChangesTrigger"/> |
429 |
x="2" y="4" width="40"/> |
x="2" y="4" width="40"/> |
430 |
<button name="searchClassificationButton" label="Buscar" trigger="searchClassificationTrigger" |
<button name="searchClassificationButton" label="Buscar" trigger="searchClassificationTrigger" |
431 |
x="42" y="4" width="10" height="1"> |
x="42" y="4" width="10" height="1"> |
432 |
<trigger name="searchClassificationTrigger" type="NAMED"> |
<trigger name="searchClassificationTrigger" type="NAMED"><![CDATA[ |
433 |
try: |
try: |
434 |
from gnue.forms.GFEvent import GFEvent |
from gnue.forms.GFEvent import GFEvent |
435 |
except ImportError: |
except ImportError: |
466 |
setStatusText(' no se encontraron registros') |
setStatusText(' no se encontraron registros') |
467 |
|
|
468 |
self._object.dispatchEvent(GFEvent('endWAIT')) |
self._object.dispatchEvent(GFEvent('endWAIT')) |
469 |
</trigger> |
]]></trigger> |
470 |
</button> |
</button> |
471 |
<!-- new_schema_end --> |
<!-- new_schema_end --> |
472 |
<button x="53" y="4" name="product_classificationButton" |
<button x="53" y="4" name="product_classificationButton" |
473 |
label="..." width="5" height="1" trigger="product_classificationTrigger"> |
label="..." width="5" height="1" trigger="product_classificationTrigger"> |
474 |
<trigger type="NAMED" name="product_classificationTrigger"> |
<trigger type="NAMED" name="product_classificationTrigger"><![CDATA[ |
475 |
runForm('product_classification.gfd'); |
runForm('product_classification.gfd'); |
476 |
</trigger> |
]]></trigger> |
477 |
</button> |
</button> |
478 |
<label text="Ubicación:" x="1" y="5"/> |
<label text="Ubicación:" x="1" y="5"/> |
479 |
<entry name="physical_structureIdEntry" field="_product_data.location" |
<entry name="physical_structureIdEntry" field="_product_data.location" |
505 |
x="6" y="8" width="36"/> |
x="6" y="8" width="36"/> |
506 |
<button name="searchCountryButton" label="Buscar" trigger="searchCountryTrigger" |
<button name="searchCountryButton" label="Buscar" trigger="searchCountryTrigger" |
507 |
x="42" y="8" width="10" height="1"> |
x="42" y="8" width="10" height="1"> |
508 |
<trigger name="searchCountryTrigger" type="NAMED"> |
<trigger name="searchCountryTrigger" type="NAMED"><![CDATA[ |
509 |
try: |
try: |
510 |
from gnue.forms.GFEvent import GFEvent |
from gnue.forms.GFEvent import GFEvent |
511 |
except ImportError: |
except ImportError: |
544 |
setStatusText(' no se encontraron registros') |
setStatusText(' no se encontraron registros') |
545 |
|
|
546 |
self._object.dispatchEvent(GFEvent('endWAIT')) |
self._object.dispatchEvent(GFEvent('endWAIT')) |
547 |
</trigger> |
]]></trigger> |
548 |
</button> |
</button> |
549 |
<!-- new_schema_end --> |
<!-- new_schema_end --> |
550 |
<button x="53" y="8" name="countryButton" |
<button x="53" y="8" name="countryButton" |
551 |
label="..." width="5" height="1" trigger="countryTrigger"> |
label="..." width="5" height="1" trigger="countryTrigger"> |
552 |
<trigger type="NAMED" name="countryTrigger"> |
<trigger type="NAMED" name="countryTrigger"><![CDATA[ |
553 |
runForm('country.gfd'); |
runForm('country.gfd'); |
554 |
</trigger> |
]]></trigger> |
555 |
</button> |
</button> |
556 |
<label x="1" y="9" text="Precio unitario base"/> |
<label x="1" y="9" text="Precio unitario base"/> |
557 |
<entry x="1" y="10" name="priceEntry" field="_price_data.unit_price"/> |
<entry x="1" y="10" name="priceEntry" field="_price_data.unit_price"/> |
558 |
<label x="30" y="9" text="% IVA"/> |
<label x="30" y="9" text="% IVA"/> |
559 |
<entry x="30" y="10" hidden="y" name="productTaxEntry" field="_product_tax_data.tax"/> |
<entry x="30" y="10" hidden="y" name="productTaxEntry" field="_product_tax_data.tax"/> |
560 |
<entry x="30" y="10" name="productVATEntry" field="_product_tax_data.amount" default="21"/> |
<entry x="30" y="10" name="productVATEntry" field="_product_tax_data.amount"/> |
561 |
<label x="1" y="11" text="Código interno"/> |
<label x="1" y="11" text="Código interno"/> |
562 |
<entry x="1" y="12" name="codeEntry" field="_product_code_data.code"/> |
<entry x="1" y="12" name="codeEntry" field="_product_code_data.code"/> |
563 |
<label x="1" y="13" text="Nivel mínimo"/> |
<label x="1" y="13" text="Nivel mínimo"/> |