= 0.5 from gnue.common.events.Event import Event as GFEvent # busy clock form._object.dispatchEvent(GFEvent('beginWAIT')) setStatusText('buscando...') def setEntityUidType (recNo): if recNo>=0: entityUidTypeResultBlock.jumpRecord (recNo) entitySearchBlock.searchEntityUidTypeIdEntry= str(entityUidTypeResultBlock.entityUidTypeResultIdEntry) entitySearchBlock.searchEntityUidTypeEntry= str(entityUidTypeResultBlock.entityUidTypeResultNameEntry) # look for the name... entityUidTypeResultBlock.processRollback () entityUidTypeResultBlock.initQuery () entityUidTypeResultBlock.entityUidTypeResultNameEntry= str(entitySearchBlock.searchEntityUidTypeEntry)+'%' entityUidTypeResultBlock.processQuery () # are there too much results? resultCount= entityUidTypeResultBlock.getRecordCount () if resultCount>1: # do the select-man runForm ('entityUidTypeSelect.gfd', { 'data':entityUidTypeResultBlock, 'callback': setEntityUidType }) elif resultCount==1: setEntityUidType (0) setStatusText('Aceptar') form._object.dispatchEvent(GFEvent('endWAIT')) ]]> = 0.5 from gnue.common.events.Event import Event as GFEvent # busy clock form._object.dispatchEvent(GFEvent('beginWAIT')) setStatusText('buscando...') def setEntityType (recNo): if recNo>=0: entityTypeResultBlock.jumpRecord (recNo) entitySearchBlock.searchEntityTypeIdEntry= str(entityTypeResultBlock.entityTypeResultIdEntry) entitySearchBlock.searchEntityTypeEntry= str(entityTypeResultBlock.entityTypeResultNameEntry) # look for the name... entityTypeResultBlock.processRollback () entityTypeResultBlock.initQuery () entityTypeResultBlock.entityTypeResultNameEntry= str(entitySearchBlock.searchEntityTypeEntry)+'%' entityTypeResultBlock.processQuery () # are there too much results? resultCount= entityTypeResultBlock.getRecordCount () if resultCount>1: # do the select-man runForm ('entityTypeSelect.gfd', { 'data':entityTypeResultBlock, 'callback': setEntityType }) elif resultCount==1: setEntityType (0) setStatusText('Aceptar') form._object.dispatchEvent(GFEvent('endWAIT')) ]]> = 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) entitySearchBlock.categoryIdEntry= str(categoryTypeResultBlock.categoryTypeResultIdEntry) entitySearchBlock.categoryEntry= str(categoryTypeResultBlock.categoryTypeResultNameEntry) # look for the name... categoryTypeResultBlock.processRollback () categoryTypeResultBlock.initQuery () categoryTypeResultBlock.categoryTypeResultNameEntry= str(entitySearchBlock.categoryEntry)+'%' 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('Aceptar') form._object.dispatchEvent(GFEvent('endWAIT')) ]]> = 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) entitySearchBlock.attributeIdEntry= str(categoryAtributeResultBlock.categoryAtributeResultIdEntry) entitySearchBlock.attributeEntry= str(categoryAtributeResultBlock.categoryAtributeResultNameEntry) # look for the name... categoryAtributeResultBlock.processRollback () categoryAtributeResultBlock.initQuery () categoryAtributeResultBlock.categoryAtributeResultNameEntry= str(entitySearchBlock.attributeEntry)+'%' categoryAtributeResultBlock.categoryAtributeResultTypeIdEntry= str(entitySearchBlock.categoryIdEntry) 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('Aceptar') form._object.dispatchEvent(GFEvent('endWAIT')) ]]>