1 |
<?xml version="1.0" encoding="ISO-8859-1"?> |
<?xml version="1.0" encoding="ISO-8859-1"?> |
2 |
|
<!DOCTYPE form SYSTEM "gnue-forms.dtd"> |
3 |
|
|
4 |
<form tabbed="top" title="Clientes" height="20" width="84"> |
<form tabbed="top" title="Clientes" height="20" width="84"> |
5 |
<datasource name="focusDataSource" cache="1"/> |
<datasource name="focusDataSource" cache="1"/> |
285 |
</datasource> |
</datasource> |
286 |
|
|
287 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- modified database --> |
|
|
<!-- <datasource name="addressDataSource" --> |
|
|
<!-- database="papo" table="address, _address_data" historytable="_address_data" --> |
|
|
<!-- master="clientDataSource" masterlink="entity.id" detaillink="_address_data.entity"> --> |
|
|
<!-- <condition> --> |
|
|
<!-- <and> --> |
|
|
<!-- <eq> --> |
|
|
<!-- <cfield name="address.id"/> --> |
|
|
<!-- <cfield name="_address_data._table"/> --> |
|
|
<!-- </eq> --> |
|
|
<!-- <null> --> |
|
|
<!-- <cfield name="_address_data._end_t"/> --> |
|
|
<!-- </null> --> |
|
|
<!-- </and> --> |
|
|
<!-- </condition> --> |
|
|
<!-- </datasource> --> |
|
|
|
|
|
<!-- <datasource name="telephoneDataSource" --> |
|
|
<!-- database="papo" table="telephone, _telephone_data" historytable="_telephone_data" --> |
|
|
<!-- master="clientDataSource" masterlink="entity.id" detaillink="_telephone_data.entity"> --> |
|
|
<!-- <condition> --> |
|
|
<!-- <and> --> |
|
|
<!-- <eq> --> |
|
|
<!-- <cfield name="telephone.id"/> --> |
|
|
<!-- <cfield name="_telephone_data._table"/> --> |
|
|
<!-- </eq> --> |
|
|
<!-- <null> --> |
|
|
<!-- <cfield name="_telephone_data._end_t"/> --> |
|
|
<!-- </null> --> |
|
|
<!-- </and> --> |
|
|
<!-- </condition> --> |
|
|
<!-- </datasource> --> |
|
|
<!-- /modified database --> |
|
|
|
|
288 |
<datasource name="printClientDataSource" database="papo" |
<datasource name="printClientDataSource" database="papo" |
289 |
table="_entity_data, _alien_entity_data, _persona_data, _client_data, entity_type_uid_conf, _entity_uid_data" |
table="_entity_data, _alien_entity_data, _persona_data, _client_data, entity_type_uid_conf, _entity_uid_data" |
290 |
order_by="_entity_data.name"> |
order_by="_entity_data.name"> |
306 |
<cfield name="_entity_data._table"/> |
<cfield name="_entity_data._table"/> |
307 |
<cfield name="_entity_uid_data.entity"/> |
<cfield name="_entity_uid_data.entity"/> |
308 |
</eq> |
</eq> |
|
|
|
|
<!-- use the configured code --> |
|
|
|
|
|
<!-- modified database --> |
|
|
<!-- <eq> --> |
|
|
<!-- <cfield name="_entity_data.entity_type"/> --> |
|
|
<!-- <cfield name="entity_type_uid_conf.entity_type"/> --> |
|
|
<!-- </eq> --> |
|
|
|
|
309 |
<eq> |
<eq> |
310 |
<cconst value="7"/> |
<cconst value="7"/> |
311 |
<cfield name="entity_type_uid_conf.entity_type"/> |
<cfield name="entity_type_uid_conf.entity_type"/> |
312 |
</eq> |
</eq> |
|
<!-- /modified database --> |
|
313 |
|
|
314 |
<eq> |
<eq> |
315 |
<cfield name="_entity_uid_data.entity_uid_type"/> |
<cfield name="_entity_uid_data.entity_uid_type"/> |
347 |
</condition> |
</condition> |
348 |
</datasource> |
</datasource> |
349 |
|
|
|
<!-- modified database --> |
|
|
|
|
|
<!-- <datasource name="printTelephoneDataSource" --> |
|
|
<!-- database="papo" table="_telephone_data"> --> |
|
|
<!-- <condition> --> |
|
|
<!-- <and> --> |
|
|
<!-- <null> --> |
|
|
<!-- <cfield name="_telephone_data._end_t"/> --> |
|
|
<!-- </null> --> |
|
|
<!-- </and> --> |
|
|
<!-- </condition> --> |
|
|
<!-- </datasource> --> |
|
|
<!-- /modified database --> |
|
|
|
|
|
|
|
350 |
<!-- address --> |
<!-- address --> |
351 |
<datasource name="addressDataSource" |
<datasource name="addressDataSource" |
352 |
database="papo" table="address, _address_data" historytable="_address_data" |
database="papo" table="address, _address_data" historytable="_address_data" |
378 |
</and> |
</and> |
379 |
</condition> |
</condition> |
380 |
</datasource> |
</datasource> |
381 |
|
|
382 |
<!-- attribute --> |
<!-- attribute --> |
383 |
|
|
384 |
<datasource name="attributeDataSource" |
<!-- <datasource name="attributeDataSource" --> |
385 |
database="papo" table="entity_attribute, _entity_attribute_data" historytable="_entity_attribute_data" |
<!-- database="papo" table="entity_attribute, _entity_attribute_data" historytable="_entity_attribute_data" --> |
386 |
master="clientDataSource" masterlink="entity.id" detaillink="_entity_attribute_data.entity"> |
<!-- master="clientDataSource" masterlink="entity.id" detaillink="_entity_attribute_data.entity"> --> |
387 |
<condition> |
<!-- <condition> --> |
388 |
<and> |
<!-- <and> --> |
389 |
<eq> |
<!-- <eq> --> |
390 |
<cfield name="entity_attribute.id"/> |
<!-- <cfield name="entity_attribute.id"/> --> |
391 |
<cfield name="_entity_attribute_data._table"/> |
<!-- <cfield name="_entity_attribute_data._table"/> --> |
392 |
</eq> |
<!-- </eq> --> |
393 |
<null> |
<!-- <null> --> |
394 |
<cfield name="_entity_attribute_data._end_t"/> |
<!-- <cfield name="_entity_attribute_data._end_t"/> --> |
395 |
</null> |
<!-- </null> --> |
396 |
</and> |
<!-- </and> --> |
397 |
</condition> |
<!-- </condition> --> |
398 |
</datasource> |
<!-- </datasource> --> |
399 |
|
|
400 |
|
|
401 |
|
<!-- <datasource database="papo" name="categoryTypeResultDataSource" --> |
402 |
|
<!-- table="category_type, _category_type_data, _category_entity_type_data" historytable="_category_type_data"> --> |
403 |
|
<!-- <condition> --> |
404 |
|
<!-- <and> --> |
405 |
|
<!-- <eq> --> |
406 |
|
<!-- <cfield name="category_type.id"/> --> |
407 |
|
<!-- <cfield name="_category_type_data._table"/> --> |
408 |
|
<!-- </eq> --> |
409 |
|
<!-- cliente es el 7 --> |
410 |
|
<!-- <eq> --> |
411 |
|
<!-- <cconst value="7"/> --> |
412 |
|
<!-- <cfield name="_category_entity_type_data.entity_type"/> --> |
413 |
|
<!-- </eq> --> |
414 |
|
<!-- <eq> --> |
415 |
|
<!-- <cfield name="category_type.id"/> --> |
416 |
|
<!-- <cfield name="_category_entity_type_data.category_type"/> --> |
417 |
|
<!-- </eq> --> |
418 |
|
<!-- <null> --> |
419 |
|
<!-- <cfield name="_category_type_data._end_t"/> --> |
420 |
|
<!-- </null> --> |
421 |
|
<!-- <null> --> |
422 |
|
<!-- <cfield name="_category_entity_type_data._end_t"/> --> |
423 |
|
<!-- </null> --> |
424 |
|
<!-- </and> --> |
425 |
|
<!-- </condition> --> |
426 |
|
<!-- </datasource> --> |
427 |
|
|
428 |
|
<!-- <datasource database="papo" name="categoryAtributeResultDataSource" --> |
429 |
|
<!-- table="category_attribute, _category_attribute_data" historytable="_category_attribute_data"> --> |
430 |
|
<!-- <condition> --> |
431 |
|
<!-- <and> --> |
432 |
|
<!-- <eq> --> |
433 |
|
<!-- <cfield name="category_attribute.id"/> --> |
434 |
|
<!-- <cfield name="_category_attribute_data._table"/> --> |
435 |
|
<!-- </eq> --> |
436 |
|
<!-- <null> --> |
437 |
|
<!-- <cfield name="_category_attribute_data._end_t"/> --> |
438 |
|
<!-- </null> --> |
439 |
|
<!-- </and> --> |
440 |
|
<!-- </condition> --> |
441 |
|
<!-- </datasource> --> |
442 |
|
<!-- /attribute --> |
443 |
|
|
|
<datasource database="papo" name="categoryTypeResultDataSource" |
|
|
table="category_type, _category_type_data, _category_entity_type_data" historytable="_category_type_data"> |
|
|
<condition> |
|
|
<and> |
|
|
<eq> |
|
|
<cfield name="category_type.id"/> |
|
|
<cfield name="_category_type_data._table"/> |
|
|
</eq> |
|
|
<!-- cliente es el 7--> |
|
|
<eq> |
|
|
<cconst value="7"/> |
|
|
<cfield name="_category_entity_type_data.entity_type"/> |
|
|
</eq> |
|
|
<eq> |
|
|
<cfield name="category_type.id"/> |
|
|
<cfield name="_category_entity_type_data.category_type"/> |
|
|
</eq> |
|
|
<null> |
|
|
<cfield name="_category_type_data._end_t"/> |
|
|
</null> |
|
|
<null> |
|
|
<cfield name="_category_entity_type_data._end_t"/> |
|
|
</null> |
|
|
</and> |
|
|
</condition> |
|
|
</datasource> |
|
444 |
|
|
|
<datasource database="papo" name="categoryAtributeResultDataSource" |
|
|
table="category_attribute, _category_attribute_data" historytable="_category_attribute_data"> |
|
|
<condition> |
|
|
<and> |
|
|
<eq> |
|
|
<cfield name="category_attribute.id"/> |
|
|
<cfield name="_category_attribute_data._table"/> |
|
|
</eq> |
|
|
<null> |
|
|
<cfield name="_category_attribute_data._end_t"/> |
|
|
</null> |
|
|
</and> |
|
|
</condition> |
|
|
</datasource> |
|
445 |
<!-- TRIGGERS --> |
<!-- TRIGGERS --> |
446 |
|
|
447 |
<!-- abm --> |
<!-- abm --> |
529 |
hack.confirmPageChanges(self, 'commitTrigger', clientBlock) |
hack.confirmPageChanges(self, 'commitTrigger', clientBlock) |
530 |
]]></trigger> |
]]></trigger> |
531 |
|
|
|
<!-- modified database --> |
|
|
|
|
|
<!-- <trigger name="telephoneDeleteTrigger" type="NAMED"><![CDATA[ --> |
|
|
<!-- telephoneBlock.deleteRecord() --> |
|
|
<!-- telephoneBlock.commit() --> |
|
|
<!-- ]]></trigger> --> |
|
|
|
|
|
<!-- <trigger name="telephoneRollbackTrigger" type="NAMED"><![CDATA[ --> |
|
|
<!-- import hack --> |
|
|
<!-- hack.rollback(telephoneBlock) --> |
|
|
<!-- ]]></trigger> --> |
|
|
|
|
|
<!-- /modified database --> |
|
532 |
<trigger name="addressDeleteTrigger" type="NAMED"><![CDATA[ |
<trigger name="addressDeleteTrigger" type="NAMED"><![CDATA[ |
533 |
addressBlock.deleteRecord() |
addressBlock.deleteRecord() |
534 |
addressBlock.commit() |
addressBlock.commit() |
616 |
while anAddress: |
while anAddress: |
617 |
addresses.append(addressResulSet.current.getField("address")) |
addresses.append(addressResulSet.current.getField("address")) |
618 |
anAddress = addressResulSet.nextRecord() |
anAddress = addressResulSet.nextRecord() |
|
|
|
|
#ver que pasa con el telef |
|
|
|
|
|
#telephoneCondition = GConditions.GCondition() |
|
|
#eq = GConditions.GCeq(telephoneCondition) |
|
|
#GConditions.GCField(eq,"_telephone_data.entity") |
|
|
#GConditions.GCConst(eq,str(clientResulSet.current.getField("_entity_data._table"))) |
|
|
#telephoneResulSet = printTelephoneDataSource.createResultSet(telephoneCondition) |
|
|
#anTelephone = telephoneResulSet.firstRecord() |
|
|
#telephones = [] |
|
|
|
|
|
#while anTelephone: |
|
|
# telephones.append(telephoneResulSet.current.getField("telephone")) |
|
|
# anTelephone = telephoneResulSet.nextRecord() |
|
|
|
|
619 |
# ahora telefono es una direccion de address_type = '2' |
# ahora telefono es una direccion de address_type = '2' |
620 |
|
|
621 |
addressCondition = GConditions.GCondition() |
addressCondition = GConditions.GCondition() |
813 |
form._object.dispatchEvent(GFEvent('endWAIT')) |
form._object.dispatchEvent(GFEvent('endWAIT')) |
814 |
]]></trigger> |
]]></trigger> |
815 |
<!-- new_schema_end --> |
<!-- new_schema_end --> |
|
<!-- categorias --> |
|
|
|
|
|
<trigger name="attributeNameSearchTrigger" type="NAMED"><![CDATA[ |
|
|
print "trigger de busqueda de nombres" |
|
|
attributeBlock.firstRecord() |
|
|
for index in range(attributeBlock.getRecordCount()): |
|
|
if str(attributeBlock.categoryAtributeIdEntry) != "": |
|
|
categoryAtributeResultBlock.processRollback() |
|
|
categoryAtributeResultBlock.initQuery() |
|
|
categoryTypeResultBlock.processRollback() |
|
|
categoryTypeResultBlock.initQuery() |
|
|
categoryAtributeResultBlock.categoryAtributeResultIdEntry= str(attributeBlock.categoryAtributeIdEntry) |
|
|
categoryAtributeResultBlock.processQuery() |
|
|
attributeBlock.categoryAtributeNameEntry= str(categoryAtributeResultBlock.categoryAtributeResultNameEntry) |
|
|
categoryTypeResultBlock.categoryTypeResultIdEntry = str(categoryAtributeResultBlock.categoryAtributeResultTypeIdEntry) |
|
|
attributeBlock.categoryTypeIdEntry= str(categoryAtributeResultBlock.categoryAtributeResultTypeIdEntry) |
|
|
categoryTypeResultBlock.processQuery() |
|
|
attributeBlock.categoryTypeNameEntry= str(categoryTypeResultBlock.categoryTypeResultNameEntry) |
|
|
attributeBlock.nextRecord() |
|
|
]]></trigger> |
|
|
|
|
|
<!-- pantallites de busquede category--> |
|
816 |
|
|
817 |
<trigger type="NAMED" name="callCategoryTypeTrigger"><![CDATA[ |
<!-- attribute --> |
818 |
try: |
<!-- categorias --> |
|
# gnue version <= 0.4 |
|
|
from gnue.forms.GFEvent import GFEvent |
|
|
except ImportError: |
|
|
# gnue version >= 0.5 |
|
|
from gnue.common.events.Event import Event as GFEvent |
|
|
|
|
|
# busy clock |
|
|
form._object.dispatchEvent(GFEvent('beginWAIT')) |
|
|
setStatusText('buscando...') |
|
|
|
|
|
def setCategoryType (recNo): |
|
|
if recNo>=0: |
|
|
categoryTypeResultBlock.jumpRecord (recNo) |
|
|
attributeBlock.categoryTypeIdEntry= str(categoryTypeResultBlock.categoryTypeResultIdEntry) |
|
|
attributeBlock.categoryTypeNameEntry= str(categoryTypeResultBlock.categoryTypeResultNameEntry) |
|
|
|
|
|
# look for the name... |
|
|
categoryTypeResultBlock.processRollback () |
|
|
categoryTypeResultBlock.initQuery () |
|
|
categoryTypeResultBlock.categoryTypeResultNameEntry= str(attributeBlock.categoryTypeNameEntry)+'%' |
|
|
categoryTypeResultBlock.processQuery () |
|
|
|
|
|
# are there too much results? |
|
|
resultCount= categoryTypeResultBlock.getRecordCount () |
|
|
if resultCount>1: |
|
|
# do the select-man |
|
|
runForm ('categoryTypeSelect.gfd', { |
|
|
'data':categoryTypeResultBlock, |
|
|
'callback': setCategoryType |
|
|
}) |
|
|
elif resultCount==1: |
|
|
setCategoryType (0) |
|
|
|
|
|
setStatusText('Ok') |
|
|
form._object.dispatchEvent(GFEvent('endWAIT')) |
|
|
]]></trigger> |
|
|
|
|
|
<!-- pantallites de busquede category_attribute--> |
|
|
|
|
|
<trigger type="NAMED" name="callCategoryAtributeTrigger"><![CDATA[ |
|
|
try: |
|
|
# gnue version <= 0.4 |
|
|
from gnue.forms.GFEvent import GFEvent |
|
|
except ImportError: |
|
|
# gnue version >= 0.5 |
|
|
from gnue.common.events.Event import Event as GFEvent |
|
|
|
|
|
# busy clock |
|
|
form._object.dispatchEvent(GFEvent('beginWAIT')) |
|
|
setStatusText('buscando...') |
|
|
|
|
|
def setCategoryAtribute (recNo): |
|
|
if recNo>=0: |
|
|
categoryAtributeResultBlock.jumpRecord (recNo) |
|
|
attributeBlock.categoryAtributeIdEntry= str(categoryAtributeResultBlock.categoryAtributeResultIdEntry) |
|
|
attributeBlock.categoryAtributeNameEntry= str(categoryAtributeResultBlock.categoryAtributeResultNameEntry) |
|
|
|
|
|
# look for the name... |
|
|
categoryAtributeResultBlock.processRollback () |
|
|
categoryAtributeResultBlock.initQuery () |
|
|
categoryAtributeResultBlock.categoryAtributeResultNameEntry= str(attributeBlock.categoryAtributeNameEntry)+'%' |
|
|
categoryAtributeResultBlock.categoryAtributeResultTypeIdEntry= str(attributeBlock.categoryTypeIdEntry) |
|
|
categoryAtributeResultBlock.processQuery () |
|
|
|
|
|
# are there too much results? |
|
|
resultCount= categoryAtributeResultBlock.getRecordCount () |
|
|
if resultCount>1: |
|
|
# do the select-man |
|
|
runForm ('categoryAtributeSelect.gfd', { |
|
|
'data':categoryAtributeResultBlock, |
|
|
'callback': setCategoryAtribute |
|
|
}) |
|
|
elif resultCount==1: |
|
|
setCategoryAtribute (0) |
|
|
|
|
|
setStatusText('Ok') |
|
|
form._object.dispatchEvent(GFEvent('endWAIT')) |
|
|
]]></trigger> |
|
|
|
|
|
<trigger name="categoryDeleteTrigger" type="NAMED"><![CDATA[ |
|
|
attributeBlock.deleteRecord() |
|
|
attributeBlock.commit() |
|
|
]]></trigger> |
|
819 |
|
|
820 |
<trigger name="categoryRollbackTrigger" type="NAMED"><![CDATA[ |
<!-- <trigger name="attributeNameSearchTrigger" type="NAMED"><![CDATA[ --> |
821 |
import hack |
<!-- print "trigger de busqueda de nombres" --> |
822 |
hack.rollback(attributeBlock) |
<!-- attributeBlock.firstRecord() --> |
823 |
]]></trigger> |
<!-- for index in range(attributeBlock.getRecordCount()): --> |
824 |
|
<!-- if str(attributeBlock.categoryAtributeIdEntry) != "": --> |
825 |
|
<!-- categoryAtributeResultBlock.processRollback() --> |
826 |
|
<!-- categoryAtributeResultBlock.initQuery() --> |
827 |
|
<!-- categoryTypeResultBlock.processRollback() --> |
828 |
|
<!-- categoryTypeResultBlock.initQuery() --> |
829 |
|
<!-- categoryAtributeResultBlock.categoryAtributeResultIdEntry= str(attributeBlock.categoryAtributeIdEntry) --> |
830 |
|
<!-- categoryAtributeResultBlock.processQuery() --> |
831 |
|
<!-- attributeBlock.categoryAtributeNameEntry= str(categoryAtributeResultBlock.categoryAtributeResultNameEntry) --> |
832 |
|
<!-- categoryTypeResultBlock.categoryTypeResultIdEntry = str(categoryAtributeResultBlock.categoryAtributeResultTypeIdEntry) --> |
833 |
|
<!-- attributeBlock.categoryTypeIdEntry= str(categoryAtributeResultBlock.categoryAtributeResultTypeIdEntry) --> |
834 |
|
<!-- categoryTypeResultBlock.processQuery() --> |
835 |
|
<!-- attributeBlock.categoryTypeNameEntry= str(categoryTypeResultBlock.categoryTypeResultNameEntry) --> |
836 |
|
<!-- attributeBlock.nextRecord() --> |
837 |
|
<!-- ]]></trigger> --> |
838 |
|
|
839 |
|
<!-- pantallites de busquede category --> |
840 |
|
|
841 |
|
<!-- <trigger type="NAMED" name="callCategoryTypeTrigger"><![CDATA[ --> |
842 |
|
<!-- try: --> |
843 |
|
<!-- # gnue version <= 0.4 --> |
844 |
|
<!-- from gnue.forms.GFEvent import GFEvent --> |
845 |
|
<!-- except ImportError: --> |
846 |
|
<!-- # gnue version >= 0.5 --> |
847 |
|
<!-- from gnue.common.events.Event import Event as GFEvent --> |
848 |
|
|
849 |
|
<!-- # busy clock --> |
850 |
|
<!-- form._object.dispatchEvent(GFEvent('beginWAIT')) --> |
851 |
|
<!-- setStatusText('buscando...') --> |
852 |
|
|
853 |
|
<!-- def setCategoryType (recNo): --> |
854 |
|
<!-- if recNo>=0: --> |
855 |
|
<!-- categoryTypeResultBlock.jumpRecord (recNo) --> |
856 |
|
<!-- attributeBlock.categoryTypeIdEntry= str(categoryTypeResultBlock.categoryTypeResultIdEntry) --> |
857 |
|
<!-- attributeBlock.categoryTypeNameEntry= str(categoryTypeResultBlock.categoryTypeResultNameEntry) --> |
858 |
|
|
859 |
|
<!-- # look for the name... --> |
860 |
|
<!-- categoryTypeResultBlock.processRollback () --> |
861 |
|
<!-- categoryTypeResultBlock.initQuery () --> |
862 |
|
<!-- categoryTypeResultBlock.categoryTypeResultNameEntry= str(attributeBlock.categoryTypeNameEntry)+'%' --> |
863 |
|
<!-- categoryTypeResultBlock.processQuery () --> |
864 |
|
|
865 |
|
<!-- # are there too much results? --> |
866 |
|
<!-- resultCount= categoryTypeResultBlock.getRecordCount () --> |
867 |
|
<!-- if resultCount>1: --> |
868 |
|
<!-- # do the select-man --> |
869 |
|
<!-- runForm ('categoryTypeSelect.gfd', { --> |
870 |
|
<!-- 'data':categoryTypeResultBlock, --> |
871 |
|
<!-- 'callback': setCategoryType --> |
872 |
|
<!-- }) --> |
873 |
|
<!-- elif resultCount==1: --> |
874 |
|
<!-- setCategoryType (0) --> |
875 |
|
|
876 |
|
<!-- setStatusText('Ok') --> |
877 |
|
<!-- form._object.dispatchEvent(GFEvent('endWAIT')) --> |
878 |
|
<!-- ]]></trigger> --> |
879 |
|
|
880 |
|
<!-- pantallites de busquede category_attribute --> |
881 |
|
|
882 |
|
<!-- <trigger type="NAMED" name="callCategoryAtributeTrigger"><![CDATA[ --> |
883 |
|
<!-- try: --> |
884 |
|
<!-- # gnue version <= 0.4 --> |
885 |
|
<!-- from gnue.forms.GFEvent import GFEvent --> |
886 |
|
<!-- except ImportError: --> |
887 |
|
<!-- # gnue version >= 0.5 --> |
888 |
|
<!-- from gnue.common.events.Event import Event as GFEvent --> |
889 |
|
|
890 |
|
<!-- # busy clock --> |
891 |
|
<!-- form._object.dispatchEvent(GFEvent('beginWAIT')) --> |
892 |
|
<!-- setStatusText('buscando...') --> |
893 |
|
|
894 |
|
<!-- def setCategoryAtribute (recNo): --> |
895 |
|
<!-- if recNo>=0: --> |
896 |
|
<!-- categoryAtributeResultBlock.jumpRecord (recNo) --> |
897 |
|
<!-- attributeBlock.categoryAtributeIdEntry= str(categoryAtributeResultBlock.categoryAtributeResultIdEntry) --> |
898 |
|
<!-- attributeBlock.categoryAtributeNameEntry= str(categoryAtributeResultBlock.categoryAtributeResultNameEntry) --> |
899 |
|
|
900 |
|
<!-- # look for the name... --> |
901 |
|
<!-- categoryAtributeResultBlock.processRollback () --> |
902 |
|
<!-- categoryAtributeResultBlock.initQuery () --> |
903 |
|
<!-- categoryAtributeResultBlock.categoryAtributeResultNameEntry= str(attributeBlock.categoryAtributeNameEntry)+'%' --> |
904 |
|
<!-- categoryAtributeResultBlock.categoryAtributeResultTypeIdEntry= str(attributeBlock.categoryTypeIdEntry) --> |
905 |
|
<!-- categoryAtributeResultBlock.processQuery () --> |
906 |
|
|
907 |
|
<!-- # are there too much results? --> |
908 |
|
<!-- resultCount= categoryAtributeResultBlock.getRecordCount () --> |
909 |
|
<!-- if resultCount>1: --> |
910 |
|
<!-- # do the select-man --> |
911 |
|
<!-- runForm ('categoryAtributeSelect.gfd', { --> |
912 |
|
<!-- 'data':categoryAtributeResultBlock, --> |
913 |
|
<!-- 'callback': setCategoryAtribute --> |
914 |
|
<!-- }) --> |
915 |
|
<!-- elif resultCount==1: --> |
916 |
|
<!-- setCategoryAtribute (0) --> |
917 |
|
|
918 |
|
<!-- setStatusText('Ok') --> |
919 |
|
<!-- form._object.dispatchEvent(GFEvent('endWAIT')) --> |
920 |
|
<!-- ]]></trigger> --> |
921 |
|
|
922 |
|
<!-- <trigger name="categoryDeleteTrigger" type="NAMED"><![CDATA[ --> |
923 |
|
<!-- attributeBlock.deleteRecord() --> |
924 |
|
<!-- attributeBlock.commit() --> |
925 |
|
<!-- ]]></trigger> --> |
926 |
|
|
927 |
|
<!-- <trigger name="categoryRollbackTrigger" type="NAMED"><![CDATA[ --> |
928 |
|
<!-- import hack --> |
929 |
|
<!-- hack.rollback(attributeBlock) --> |
930 |
|
<!-- ]]></trigger> --> |
931 |
|
|
932 |
|
<!-- /attribute --> |
933 |
|
|
934 |
|
|
935 |
|
|
1111 |
</box> |
</box> |
1112 |
</page> |
</page> |
1113 |
|
|
|
<!-- modified database --> |
|
|
|
|
|
<!-- <page name="Direcciones"> --> |
|
|
<!-- <trigger type="Pre-Focusout" src="askForChangesTrigger"/> --> |
|
|
<!-- <box label="Direcciones" --> |
|
|
<!-- x="0" y="0" height="5" width="64"> --> |
|
|
<!-- <block name="addressClientBlock" datasource="clientDataSource"> --> |
|
|
<!-- <label text="Nombre o Razón Social" --> |
|
|
<!-- x="1" y="1"/> --> |
|
|
<!-- <entry name="name" field="_entity_data.name" readonly="" --> |
|
|
<!-- x="1" y="2" width="40"> --> |
|
|
<!-- </entry> --> |
|
|
<!-- </block> --> |
|
|
<!-- </box> --> |
|
|
<!-- <box label="Direcciones" --> |
|
|
<!-- x="0" y="5" height="15" width="64"> --> |
|
|
<!-- <block name="addressBlock" datasource="addressDataSource"> --> |
|
|
<!-- <label text="Direcciones" --> |
|
|
<!-- x="1" y="1"/> --> |
|
|
<!-- <entry name="address" field="_address_data.address" rows="4" --> |
|
|
<!-- x="1" y="2" width="39"/> --> |
|
|
<!-- <scrollbar page="4" --> |
|
|
<!-- x="41" y="2" width="1" height="4"/> --> |
|
|
<!-- <button x="1" y="12" trigger="commitTrigger" width="9" label="Aceptar" --> |
|
|
<!-- name="addressCommitBtn" height="1"/> --> |
|
|
<!-- <button x="11" y="12" trigger="addressDeleteTrigger" width="9" label="Borrar" --> |
|
|
<!-- name="addressDeleteBtn" height="1"/> --> |
|
|
<!-- <button x="21" y="12" trigger="addressRollbackTrigger" width="9" label="Cancelar" --> |
|
|
<!-- name="addressRollbackBtn" height="1"/> --> |
|
|
<!-- </block> --> |
|
|
<!-- </box> --> |
|
|
<!-- </page> --> |
|
|
|
|
|
<!-- <page name="Teléfonos"> --> |
|
|
<!-- <trigger type="Pre-Focusout" src="askForChangesTrigger"/> --> |
|
|
<!-- <box label="Teléfonos" --> |
|
|
<!-- x="0" y="0" height="5" width="64"> --> |
|
|
<!-- <block name="clientTelephoneBlock" datasource="clientDataSource"> --> |
|
|
<!-- <label text="Nombre o Razón Social" --> |
|
|
<!-- x="1" y="1"/> --> |
|
|
<!-- <entry name="name" field="_entity_data.name" readonly="" --> |
|
|
<!-- x="1" y="2" width="40"/> --> |
|
|
<!-- </block> --> |
|
|
<!-- </box> --> |
|
|
<!-- <box label="Teléfonos" --> |
|
|
<!-- x="0" y="5" height="15" width="64"> --> |
|
|
<!-- <block name="telephoneBlock" datasource="telephoneDataSource"> --> |
|
|
<!-- <label text="Teléfonos" --> |
|
|
<!-- x="1" y="1"/> --> |
|
|
<!-- <entry name="telephone" field="_telephone_data.telephone" rows="4" --> |
|
|
<!-- x="1" y="2" width="39"/> --> |
|
|
<!-- <scrollbar page="4" --> |
|
|
<!-- x="41" y="2" width="1" height="4"/> --> |
|
|
<!-- <button x="1" y="12" trigger="commitTrigger" width="9" label="Aceptar" --> |
|
|
<!-- name="telephoneCommitBtn" height="1"/> --> |
|
|
<!-- <button x="11" y="12" trigger="telephoneDeleteTrigger" width="9" label="Borrar" --> |
|
|
<!-- name="telephoneDeleteBtn" height="1"/> --> |
|
|
<!-- <button x="21" y="12" trigger="telephoneRollbackTrigger" width="9" label="Cancelar" --> |
|
|
<!-- name="telephoneRollbackBtn" height="1"/> --> |
|
|
<!-- </block> --> |
|
|
<!-- </box> --> |
|
|
<!-- </page> --> |
|
|
<!-- /modified database --> |
|
1114 |
|
|
1115 |
|
|
1116 |
<page name="Límites crédito"> |
<page name="Límites crédito"> |
1245 |
</block> |
</block> |
1246 |
</box> |
</box> |
1247 |
</page> |
</page> |
|
<!-- categorias --> |
|
|
<page name="Categorias"> |
|
|
<trigger type="Pre-Focusin" src="attributeNameSearchTrigger"/> |
|
|
<!-- <trigger type="Pre-Focusout" src="askForChangesTrigger"/> --> |
|
|
<box label="Direcciones" |
|
|
x="0" y="0" height="5" width="84"> |
|
|
<block name="categoryClientBlock" datasource="clientDataSource"> |
|
|
<label text="Nombre o Razón Social" |
|
|
x="1" y="1"/> |
|
|
<entry name="categoryClientName" field="_entity_data.name" readonly="" |
|
|
x="1" y="2" width="40"> |
|
|
</entry> |
|
|
</block> |
|
|
</box> |
|
|
<box label="Categorias" |
|
|
x="0" y="5" height="15" width="84"> |
|
|
<block name="attributeBlock" datasource="attributeDataSource"> |
|
|
<label text="category" x="1" y="1"/> |
|
|
<label text="attribute" x="30" y="1"/> |
|
|
<entry name="categoryTypeIdEntry" rows="8" |
|
|
x="1" y="2" hidden=""/> |
|
|
<entry name="categoryTypeNameEntry" rows="8" |
|
|
x="1" y="2" width="20"/> |
|
|
<entry name="categoryAtributeIdEntry" field="_entity_attribute_data.category_attribute" rows="8" |
|
|
x="23" y="2" hidden=""/> |
|
|
<entry name="categoryAtributeNameEntry" rows="8" |
|
|
x="30" y="2" width="20"/> |
|
|
<scrollbar page="8" |
|
|
x="60" y="2" width="1" height="8"/> |
|
|
<button x="1" y="12" trigger="commitTrigger" width="9" label="Aceptar" |
|
|
name="categoryCommitBtn" height="1"/> |
|
|
<button x="11" y="12" trigger="categoryDeleteTrigger" width="9" label="Borrar" |
|
|
name="categoryDeleteBtn" height="1"/> |
|
|
<button x="21" y="12" trigger="categoryRollbackTrigger" width="9" label="Cancelar" |
|
|
name="categoryRollbackBtn" height="1"/> |
|
|
<button x="22" y="2" trigger="callCategoryTypeTrigger" width="7" label="Buscar" |
|
|
name="categoryTypeBtn" height="8"/> |
|
|
<button x="51" y="2" trigger="callCategoryAtributeTrigger" width="7" label="Buscar" |
|
|
name="categoryAtributeBtn" height="8"/> |
|
|
</block> |
|
|
<block name="categoryTypeResultBlock" datasource="categoryTypeResultDataSource"> |
|
|
<entry name="categoryTypeResultIdEntry" field="_category_type_data._table" |
|
|
x="55" y="2" width="2" hidden=""/> |
|
|
<entry name="categoryTypeResultNameEntry" field="_category_type_data.name" |
|
|
x="58" y="2" width="20" hidden=""/> |
|
|
</block> |
|
|
<block name="categoryAtributeResultBlock" datasource="categoryAtributeResultDataSource"> |
|
|
<entry name="categoryAtributeResultIdEntry" field="_category_attribute_data._table" |
|
|
x="55" y="8" width="2" hidden=""/> |
|
|
<entry name="categoryAtributeResultTypeIdEntry" field="_category_attribute_data.category_type" |
|
|
x="58" y="8" width="2" hidden=""/> |
|
|
<entry name="categoryAtributeResultNameEntry" field="_category_attribute_data.name" |
|
|
x="61" y="8" width="20" hidden=""/> |
|
|
</block> |
|
1248 |
|
|
1249 |
</box> |
<!-- attribute --> |
1250 |
</page> |
<!-- categorias --> |
1251 |
|
<!-- <page name="Categorias"> --> |
1252 |
|
<!-- <trigger type="Pre-Focusin" src="attributeNameSearchTrigger"/> --> |
1253 |
|
|
1254 |
|
<!-- <box label="Direcciones" --> |
1255 |
|
<!-- x="0" y="0" height="5" width="84"> --> |
1256 |
|
<!-- <block name="categoryClientBlock" datasource="clientDataSource"> --> |
1257 |
|
<!-- <label text="Nombre o Razón Social" --> |
1258 |
|
<!-- x="1" y="1"/> --> |
1259 |
|
<!-- <entry name="categoryClientName" field="_entity_data.name" readonly="" --> |
1260 |
|
<!-- x="1" y="2" width="40"> --> |
1261 |
|
<!-- </entry> --> |
1262 |
|
<!-- </block> --> |
1263 |
|
<!-- </box> --> |
1264 |
|
<!-- <box label="Categorias" --> |
1265 |
|
<!-- x="0" y="5" height="15" width="84"> --> |
1266 |
|
<!-- <block name="attributeBlock" datasource="attributeDataSource"> --> |
1267 |
|
<!-- <label text="category" x="1" y="1"/> --> |
1268 |
|
<!-- <label text="attribute" x="30" y="1"/> --> |
1269 |
|
<!-- <entry name="categoryTypeIdEntry" rows="8" --> |
1270 |
|
<!-- x="1" y="2" hidden=""/> --> |
1271 |
|
<!-- <entry name="categoryTypeNameEntry" rows="8" --> |
1272 |
|
<!-- x="1" y="2" width="20"/> --> |
1273 |
|
<!-- <entry name="categoryAtributeIdEntry" field="_entity_attribute_data.category_attribute" rows="8" --> |
1274 |
|
<!-- x="23" y="2" hidden=""/> --> |
1275 |
|
<!-- <entry name="categoryAtributeNameEntry" rows="8" --> |
1276 |
|
<!-- x="30" y="2" width="20"/> --> |
1277 |
|
<!-- <scrollbar page="8" --> |
1278 |
|
<!-- x="60" y="2" width="1" height="8"/> --> |
1279 |
|
<!-- <button x="1" y="12" trigger="commitTrigger" width="9" label="Aceptar" --> |
1280 |
|
<!-- name="categoryCommitBtn" height="1"/> --> |
1281 |
|
<!-- <button x="11" y="12" trigger="categoryDeleteTrigger" width="9" label="Borrar" --> |
1282 |
|
<!-- name="categoryDeleteBtn" height="1"/> --> |
1283 |
|
<!-- <button x="21" y="12" trigger="categoryRollbackTrigger" width="9" label="Cancelar" --> |
1284 |
|
<!-- name="categoryRollbackBtn" height="1"/> --> |
1285 |
|
<!-- <button x="22" y="2" trigger="callCategoryTypeTrigger" width="7" label="Buscar" --> |
1286 |
|
<!-- name="categoryTypeBtn" height="8"/> --> |
1287 |
|
<!-- <button x="51" y="2" trigger="callCategoryAtributeTrigger" width="7" label="Buscar" --> |
1288 |
|
<!-- name="categoryAtributeBtn" height="8"/> --> |
1289 |
|
<!-- </block> --> |
1290 |
|
<!-- <block name="categoryTypeResultBlock" datasource="categoryTypeResultDataSource"> --> |
1291 |
|
<!-- <entry name="categoryTypeResultIdEntry" field="_category_type_data._table" --> |
1292 |
|
<!-- x="55" y="2" width="2" hidden=""/> --> |
1293 |
|
<!-- <entry name="categoryTypeResultNameEntry" field="_category_type_data.name" --> |
1294 |
|
<!-- x="58" y="2" width="20" hidden=""/> --> |
1295 |
|
<!-- </block> --> |
1296 |
|
<!-- <block name="categoryAtributeResultBlock" datasource="categoryAtributeResultDataSource"> --> |
1297 |
|
<!-- <entry name="categoryAtributeResultIdEntry" field="_category_attribute_data._table" --> |
1298 |
|
<!-- x="55" y="8" width="2" hidden=""/> --> |
1299 |
|
<!-- <entry name="categoryAtributeResultTypeIdEntry" field="_category_attribute_data.category_type" --> |
1300 |
|
<!-- x="58" y="8" width="2" hidden=""/> --> |
1301 |
|
<!-- <entry name="categoryAtributeResultNameEntry" field="_category_attribute_data.name" --> |
1302 |
|
<!-- x="61" y="8" width="20" hidden=""/> --> |
1303 |
|
<!-- </block> --> |
1304 |
|
|
1305 |
|
<!-- </box> --> |
1306 |
|
<!-- </page> --> |
1307 |
|
<!-- /attribute --> |
1308 |
|
|
1309 |
</form> |
</form> |
1310 |
|
|