8 |
my $uniqed=0; |
my $uniqed=0; |
9 |
</neb:Block> |
</neb:Block> |
10 |
<datasource name="tmpValuesDataSource" cache="1"/> |
<datasource name="tmpValuesDataSource" cache="1"/> |
|
<datasource name="storehouseDataSource" database="papo" |
|
|
table="entity, _entity_data, own_entity, _own_entity_data, own_storehouse, _own_storehouse_data"> |
|
|
<condition> |
|
|
<and> |
|
|
<!-- glue historics --> |
|
|
|
|
|
<eq> <cfield name="entity.id"/> <cfield name="_entity_data._table"/> </eq> |
|
|
<null> <cfield name="_entity_data._end_t"/> </null> |
|
|
|
|
|
<eq> <cfield name="own_entity.id"/> <cfield name="_own_entity_data._table"/> </eq> |
|
|
<null> <cfield name="_own_entity_data._end_t"/> </null> |
|
|
|
|
|
<eq> <cfield name="own_storehouse.id"/> <cfield name="_own_storehouse_data._table"/> </eq> |
|
|
<null> <cfield name="_own_storehouse_data._end_t"/> </null> |
|
|
|
|
|
<!-- join them --> |
|
|
<eq> <cfield name="_own_entity_data.entity"/> <cfield name="entity.id"/> </eq> |
|
|
<eq> <cfield name="_own_storehouse_data.own_entity"/> <cfield name="own_entity.id"/> </eq> |
|
|
|
|
|
<!-- no filters --> |
|
|
</and> |
|
|
</condition> |
|
|
</datasource> |
|
11 |
|
|
12 |
<!-- the main data source --> |
<!-- the main data source --> |
13 |
<datasource name="storeProductLevelDataSource" database="papo" |
<datasource name="storeProductLevelDataSource" database="papo" |
14 |
table="product_store, _product_store_data, product, _product_data, product_code, _product_code_data" |
table="product_store, _product_store_data, product, _product_data, product_code, _product_code_data" |
15 |
historytable="_product_store_data"> |
historytable="_product_store_data"> |
|
<!-- master="storehouseDataSource" masterlink="entity.id" detaillink="_product_store_data.storehouse" --> |
|
16 |
<condition> |
<condition> |
17 |
<and> |
<and> |
18 |
<!-- glue historics --> |
<!-- glue historics --> |
99 |
storeProductLevelBlock.initQuery () |
storeProductLevelBlock.initQuery () |
100 |
storeProductLevelBlock.productCodeEntry= str(searchBlock.productCodeFilterEntry)+'%' |
storeProductLevelBlock.productCodeEntry= str(searchBlock.productCodeFilterEntry)+'%' |
101 |
storeProductLevelBlock.productNameEntry= str(searchBlock.productNameFilterEntry)+'%' |
storeProductLevelBlock.productNameEntry= str(searchBlock.productNameFilterEntry)+'%' |
102 |
|
storeProductLevelBlock.storehouseEntry= str(ownStorehouseBlock.ownStorehouseIdEntry) |
103 |
|
print "storehouse",str(ownStorehouseBlock.ownStorehouseIdEntry) |
104 |
storeProductLevelBlock.processQuery () |
storeProductLevelBlock.processQuery () |
105 |
]]></trigger> |
]]></trigger> |
106 |
|
|
227 |
|
|
228 |
<block name="storeProductLevelBlock" datasource="storeProductLevelDataSource" transparentBlock="" restrictInsert=""> |
<block name="storeProductLevelBlock" datasource="storeProductLevelDataSource" transparentBlock="" restrictInsert=""> |
229 |
<!-- label text="Depósito" |
<!-- label text="Depósito" |
230 |
x="1" y="1" /> |
x="1" y="1" />--> |
231 |
<entry name="storehouseEntry" field="_product_store_data.storehouse" style="dropdown" |
<entry name="storehouseEntry" field="_product_store_data.storehouse" |
232 |
foreign_key="storehouseDataSource._entity_data.id" foreign_key_description="_entity_data.name" |
x="1" y="10" width="35" hidden="y"/> |
|
x="1" y="10" width="35"/ --> |
|
233 |
<entry name="productIdEntry" field="_product_data.id" hidden="y" |
<entry name="productIdEntry" field="_product_data.id" hidden="y" |
234 |
x="0" y="4" width="1" rows="10"/> |
x="0" y="4" width="1" rows="10"/> |
235 |
<entry name="producCodeEntry" field="_product_code_data.code" style="label" |
<entry name="producCodeEntry" field="_product_code_data.code" style="label" |