219 |
</datasource> |
</datasource> |
220 |
|
|
221 |
<datasource name="providerUIDDataSource" database="papo" |
<datasource name="providerUIDDataSource" database="papo" |
222 |
table="_entity_data, _alien_entity_data, _persona_data, _provider_data, entity_type_uid_conf, |
table="_entity_data, entity_type_uid_conf, _entity_uid_data" cache="1"> |
|
_entity_uid_data" order_by="_entity_data.name"> |
|
223 |
<condition> |
<condition> |
224 |
<and> |
<and> |
225 |
<eq> |
<eq> |
|
<cfield name="_entity_data._table"/> |
|
|
<cfield name="_alien_entity_data.entity"/> |
|
|
</eq> |
|
|
<eq> |
|
|
<cfield name="_alien_entity_data._table"/> |
|
|
<cfield name="_persona_data.alien_entity"/> |
|
|
</eq> |
|
|
<eq> |
|
|
<cfield name="_persona_data._table"/> |
|
|
<cfield name="_provider_data.persona"/> |
|
|
</eq> |
|
|
<eq> |
|
226 |
<cfield name="_entity_data._table"/> |
<cfield name="_entity_data._table"/> |
227 |
<cfield name="_entity_uid_data.entity"/> |
<cfield name="_entity_uid_data.entity"/> |
228 |
</eq> |
</eq> |
234 |
<cfield name="_entity_uid_data.entity_uid_type"/> |
<cfield name="_entity_uid_data.entity_uid_type"/> |
235 |
<cfield name="entity_type_uid_conf.entity_uid_type"/> |
<cfield name="entity_type_uid_conf.entity_uid_type"/> |
236 |
</eq> |
</eq> |
|
<null> |
|
|
<cfield name="_entity_data._end_t"/> |
|
|
</null> |
|
|
<null> |
|
|
<cfield name="_alien_entity_data._end_t"/> |
|
|
</null> |
|
|
<null> |
|
|
<cfield name="_persona_data._end_t"/> |
|
|
</null> |
|
|
<null> |
|
|
<cfield name="_provider_data._end_t"/> |
|
|
</null> |
|
|
<null> |
|
|
<cfield name="_entity_uid_data._end_t"/> |
|
|
</null> |
|
237 |
</and> |
</and> |
238 |
</condition> |
</condition> |
239 |
</datasource> |
</datasource> |
240 |
|
|
241 |
<datasource name="providerNameDataSource" database="papo" |
<datasource name="providerNameDataSource" database="papo" |
242 |
table="_entity_data, _alien_entity_data, _persona_data, _provider_data, entity_type_uid_conf, |
table="_entity_data"> |
|
_entity_uid_data" order_by="_entity_data.name"> |
|
|
<condition> |
|
|
<and> |
|
|
<eq> |
|
|
<cfield name="_entity_data._table"/> |
|
|
<cfield name="_alien_entity_data.entity"/> |
|
|
</eq> |
|
|
<eq> |
|
|
<cfield name="_alien_entity_data._table"/> |
|
|
<cfield name="_persona_data.alien_entity"/> |
|
|
</eq> |
|
|
<eq> |
|
|
<cfield name="_persona_data._table"/> |
|
|
<cfield name="_provider_data.persona"/> |
|
|
</eq> |
|
|
<eq> |
|
|
<cfield name="_entity_data._table"/> |
|
|
<cfield name="_entity_uid_data.entity"/> |
|
|
</eq> |
|
|
<eq> |
|
|
<cconst value="8"/> |
|
|
<cfield name="entity_type_uid_conf.entity_type"/> |
|
|
</eq> |
|
|
<eq> |
|
|
<cfield name="_entity_uid_data.entity_uid_type"/> |
|
|
<cfield name="entity_type_uid_conf.entity_uid_type"/> |
|
|
</eq> |
|
|
<null> |
|
|
<cfield name="_entity_data._end_t"/> |
|
|
</null> |
|
|
<null> |
|
|
<cfield name="_alien_entity_data._end_t"/> |
|
|
</null> |
|
|
<null> |
|
|
<cfield name="_persona_data._end_t"/> |
|
|
</null> |
|
|
<null> |
|
|
<cfield name="_provider_data._end_t"/> |
|
|
</null> |
|
|
<null> |
|
|
<cfield name="_entity_uid_data._end_t"/> |
|
|
</null> |
|
|
</and> |
|
|
</condition> |
|
243 |
</datasource> |
</datasource> |
244 |
|
|
245 |
<datasource name="transportUIDDataSource" database="papo" |
<datasource name="transportUIDDataSource" database="papo" |
246 |
table="_entity_data, _alien_entity_data, _persona_data, _provider_data, entity_type_uid_conf, |
table="_entity_data, entity_type_uid_conf, _entity_uid_data" order_by="_entity_data.name"> |
|
_entity_uid_data" order_by="_entity_data.name"> |
|
247 |
<condition> |
<condition> |
248 |
<and> |
<and> |
249 |
<eq> |
<eq> |
|
<cfield name="_entity_data._table"/> |
|
|
<cfield name="_alien_entity_data.entity"/> |
|
|
</eq> |
|
|
<eq> |
|
|
<cfield name="_alien_entity_data._table"/> |
|
|
<cfield name="_persona_data.alien_entity"/> |
|
|
</eq> |
|
|
<eq> |
|
|
<cfield name="_persona_data._table"/> |
|
|
<cfield name="_provider_data.persona"/> |
|
|
</eq> |
|
|
<eq> |
|
250 |
<cfield name="_entity_data._table"/> |
<cfield name="_entity_data._table"/> |
251 |
<cfield name="_entity_uid_data.entity"/> |
<cfield name="_entity_uid_data.entity"/> |
252 |
</eq> |
</eq> |
258 |
<cfield name="_entity_uid_data.entity_uid_type"/> |
<cfield name="_entity_uid_data.entity_uid_type"/> |
259 |
<cfield name="entity_type_uid_conf.entity_uid_type"/> |
<cfield name="entity_type_uid_conf.entity_uid_type"/> |
260 |
</eq> |
</eq> |
|
<null> |
|
|
<cfield name="_entity_data._end_t"/> |
|
|
</null> |
|
|
<null> |
|
|
<cfield name="_alien_entity_data._end_t"/> |
|
|
</null> |
|
|
<null> |
|
|
<cfield name="_persona_data._end_t"/> |
|
|
</null> |
|
|
<null> |
|
|
<cfield name="_provider_data._end_t"/> |
|
|
</null> |
|
|
<null> |
|
|
<cfield name="_entity_uid_data._end_t"/> |
|
|
</null> |
|
261 |
</and> |
</and> |
262 |
</condition> |
</condition> |
263 |
</datasource> |
</datasource> |
264 |
|
|
265 |
<datasource name="transportNameDataSource" database="papo" |
<datasource name="transportNameDataSource" database="papo" |
266 |
table="_entity_data, _alien_entity_data, _persona_data, _provider_data, entity_type_uid_conf, |
table="_entity_data"> |
|
_entity_uid_data" order_by="_entity_data.name"> |
|
|
<condition> |
|
|
<and> |
|
|
<eq> |
|
|
<cfield name="_entity_data._table"/> |
|
|
<cfield name="_alien_entity_data.entity"/> |
|
|
</eq> |
|
|
<eq> |
|
|
<cfield name="_alien_entity_data._table"/> |
|
|
<cfield name="_persona_data.alien_entity"/> |
|
|
</eq> |
|
|
<eq> |
|
|
<cfield name="_persona_data._table"/> |
|
|
<cfield name="_provider_data.persona"/> |
|
|
</eq> |
|
|
<eq> |
|
|
<cfield name="_entity_data._table"/> |
|
|
<cfield name="_entity_uid_data.entity"/> |
|
|
</eq> |
|
|
<eq> |
|
|
<cconst value="8"/> |
|
|
<cfield name="entity_type_uid_conf.entity_type"/> |
|
|
</eq> |
|
|
<eq> |
|
|
<cfield name="_entity_uid_data.entity_uid_type"/> |
|
|
<cfield name="entity_type_uid_conf.entity_uid_type"/> |
|
|
</eq> |
|
|
<null> |
|
|
<cfield name="_entity_data._end_t"/> |
|
|
</null> |
|
|
<null> |
|
|
<cfield name="_alien_entity_data._end_t"/> |
|
|
</null> |
|
|
<null> |
|
|
<cfield name="_persona_data._end_t"/> |
|
|
</null> |
|
|
<null> |
|
|
<cfield name="_provider_data._end_t"/> |
|
|
</null> |
|
|
<null> |
|
|
<cfield name="_entity_uid_data._end_t"/> |
|
|
</null> |
|
|
</and> |
|
|
</condition> |
|
267 |
</datasource> |
</datasource> |
268 |
|
|
|
<!-- <datasource name="providerExternalSearchDataSource" database="papo" --> |
|
|
<!-- table="_entity_data, _alien_entity_data, _persona_data, _provider_data, entity_type_uid_conf, _entity_uid_type_data, --> |
|
|
<!-- _entity_uid_data" order_by="_entity_data.name"> --> |
|
|
<!-- <condition> --> |
|
|
<!-- <and> --> |
|
|
<!-- <eq> --> |
|
|
<!-- <cfield name="_entity_data._table"/> --> |
|
|
<!-- <cfield name="_alien_entity_data.entity"/> --> |
|
|
<!-- </eq> --> |
|
|
<!-- <eq> --> |
|
|
<!-- <cfield name="_alien_entity_data._table"/> --> |
|
|
<!-- <cfield name="_persona_data.alien_entity"/> --> |
|
|
<!-- </eq> --> |
|
|
<!-- <eq> --> |
|
|
<!-- <cfield name="_persona_data._table"/> --> |
|
|
<!-- <cfield name="_provider_data.persona"/> --> |
|
|
<!-- </eq> --> |
|
|
<!-- <eq> --> |
|
|
<!-- <cfield name="_entity_data._table"/> --> |
|
|
<!-- <cfield name="_entity_uid_data.entity"/> --> |
|
|
<!-- </eq> --> |
|
|
<!-- <eq> --> |
|
|
<!-- <cfield name="_entity_uid_data.entity_uid_type"/> --> |
|
|
<!-- <cfield name="_entity_uid_type_data.id"/> --> |
|
|
<!-- </eq> --> |
|
|
<!-- <eq> --> |
|
|
<!-- <cconst value="8"/> --> |
|
|
<!-- <cfield name="entity_type_uid_conf.entity_type"/> --> |
|
|
<!-- </eq> --> |
|
|
<!-- <eq> --> |
|
|
<!-- <cfield name="_entity_type_data._table"/> --> |
|
|
<!-- <cfield name="entity_type_uid_conf.entity_type"/> --> |
|
|
<!-- </eq> --> |
|
|
<!-- <eq> --> |
|
|
<!-- <cfield name="_entity_uid_type_data._table"/> --> |
|
|
<!-- <cfield name="entity_type_uid_conf.entity_uid_type"/> --> |
|
|
<!-- </eq> --> |
|
|
<!-- <null> --> |
|
|
<!-- <cfield name="_entity_data._end_t"/> --> |
|
|
<!-- </null> --> |
|
|
<!-- <null> --> |
|
|
<!-- <cfield name="_alien_entity_data._end_t"/> --> |
|
|
<!-- </null> --> |
|
|
<!-- <null> --> |
|
|
<!-- <cfield name="_persona_data._end_t"/> --> |
|
|
<!-- </null> --> |
|
|
<!-- <null> --> |
|
|
<!-- <cfield name="_provider_data._end_t"/> --> |
|
|
<!-- </null> --> |
|
|
<!-- <null> --> |
|
|
<!-- <cfield name="_entity_uid_data._end_t"/> --> |
|
|
<!-- </null> --> |
|
|
<!-- <null> --> |
|
|
<!-- <cfield name="_entity_type_data._end_t"/> --> |
|
|
<!-- </null> --> |
|
|
<!-- </and> --> |
|
|
<!-- </condition> --> |
|
|
<!-- </datasource> --> |
|
|
|
|
269 |
<datasource name="transportDataSource" database="papo" |
<datasource name="transportDataSource" database="papo" |
270 |
table="entity, _entity_data, alien_entity, _alien_entity_data, persona, _persona_data, provider, _provider_data" |
table="entity, _entity_data, alien_entity, _alien_entity_data, persona, _persona_data, provider, _provider_data" |
271 |
order_by="_entity_data.name"> |
order_by="_entity_data.name"> |
1156 |
recordCount = alienItemShowBlock.getRecordCount() |
recordCount = alienItemShowBlock.getRecordCount() |
1157 |
alienItemShowBlock.firstRecord() |
alienItemShowBlock.firstRecord() |
1158 |
setParameter('invoiceDate',str(alienDocumentShowBlock.dateEntry)) |
setParameter('invoiceDate',str(alienDocumentShowBlock.dateEntry)) |
1159 |
|
|
1160 |
|
import gnue.common.GConditions as GConditions |
1161 |
|
|
1162 |
|
providerCondition = GConditions.GCondition() |
1163 |
|
|
1164 |
|
tmpAnd = GConditions.GCand(providerCondition) |
1165 |
|
eq = GConditions.GCeq(tmpAnd) |
1166 |
|
GConditions.GCField(eq,"_entity_data.id") |
1167 |
|
GConditions.GCConst(eq,str(alienDocumentShowBlock.providerEntry)) |
1168 |
|
le = GConditions.GCle(tmpAnd) |
1169 |
|
GConditions.GCField(le,"_entity_uid_data._start_t") |
1170 |
|
GConditions.GCConst(le,str(alienDocumentShowBlock.dateEntry)) |
1171 |
|
tmpOr = GConditions.GCor(tmpAnd) |
1172 |
|
tmpNull = GConditions.GCnull(tmpOr) |
1173 |
|
GConditions.GCField(tmpNull,"_entity_uid_data._end_t") |
1174 |
|
le2 = GConditions.GCle(tmpOr) |
1175 |
|
GConditions.GCConst(le2,str(alienDocumentShowBlock.dateEntry)) |
1176 |
|
GConditions.GCField(le2,"_entity_uid_data._end_t") |
1177 |
|
|
1178 |
|
providerResultSet = providerUIDDataSource.createResultSet(providerCondition) |
1179 |
|
result = providerResultSet.firstRecord() |
1180 |
|
if result: |
1181 |
|
alienDocumentShowBlock.providerCodeSEntry = providerResultSet.current.getField("_entity_uid_data.uid") |
1182 |
|
|
1183 |
|
transportCondition = GConditions.GCondition() |
1184 |
|
|
1185 |
|
tmpAnd = GConditions.GCand(transportCondition) |
1186 |
|
eq = GConditions.GCeq(tmpAnd) |
1187 |
|
GConditions.GCField(eq,"_entity_data.id") |
1188 |
|
GConditions.GCConst(eq,str(alienDocumentShowBlock.transportEntry)) |
1189 |
|
le = GConditions.GCle(tmpAnd) |
1190 |
|
GConditions.GCField(le,"_entity_uid_data._start_t") |
1191 |
|
GConditions.GCConst(le,str(alienDocumentShowBlock.dateEntry)) |
1192 |
|
tmpOr = GConditions.GCor(tmpAnd) |
1193 |
|
tmpNull = GConditions.GCnull(tmpOr) |
1194 |
|
GConditions.GCField(tmpNull,"_entity_uid_data._end_t") |
1195 |
|
le2 = GConditions.GCle(tmpOr) |
1196 |
|
GConditions.GCConst(le2,str(alienDocumentShowBlock.dateEntry)) |
1197 |
|
GConditions.GCField(le2,"_entity_uid_data._end_t") |
1198 |
|
|
1199 |
|
transportResultSet = transportUIDDataSource.createResultSet(transportCondition) |
1200 |
|
result = transportResultSet.firstRecord() |
1201 |
|
if result: |
1202 |
|
alienDocumentShowBlock.transportCodeSEntry = transportResultSet.current.getField("_entity_uid_data.uid") |
1203 |
|
|
1204 |
|
|
1205 |
#for index in range(recordCount): |
#for index in range(recordCount): |
1206 |
# alienItemShowBlock.taxPercentEntry = (hack.a2f(alienItemShowBlock.taxAmountEntry) / (hack.a2f(alienItemShowBlock.unitPriceEntry) * \ |
# alienItemShowBlock.taxPercentEntry = (hack.a2f(alienItemShowBlock.taxAmountEntry) / (hack.a2f(alienItemShowBlock.unitPriceEntry) * \ |
1207 |
# hack.a2f(alienItemShowBlock.qtyEntry))) * 100 |
# hack.a2f(alienItemShowBlock.qtyEntry))) * 100 |
1343 |
<label name="bundlesLbl" text="Bultos" x="66" y="8" /> |
<label name="bundlesLbl" text="Bultos" x="66" y="8" /> |
1344 |
<entry field="bundles" name="bundlesSEntry" width="10" x="66" y="9"/> |
<entry field="bundles" name="bundlesSEntry" width="10" x="66" y="9"/> |
1345 |
|
|
1346 |
<button x="80" y="8" trigger="searchTrigger" width="16" label="Buscar" |
<button x="77" y="9" trigger="searchTrigger" width="10" label="Buscar" |
1347 |
name="searchBtn" height="1"/> |
name="searchBtn" height="1"/> |
1348 |
<button x="80" y="9" trigger="newSearchTrigger" width="16" label="Cancelar" |
<button x="88" y="9" trigger="newSearchTrigger" width="10" label="Cancelar" |
1349 |
name="newSearchBtn" height="1"/> |
name="newSearchBtn" height="1"/> |
1350 |
</block> |
</block> |
1351 |
</box> |
</box> |
1419 |
<entry field="alien_document_type" hidden="" name="typeEntry" x="1" y="1"/> |
<entry field="alien_document_type" hidden="" name="typeEntry" x="1" y="1"/> |
1420 |
|
|
1421 |
<label name="providerLbl" text="Proveedor" x="1" y="1" /> |
<label name="providerLbl" text="Proveedor" x="1" y="1" /> |
1422 |
<entry x="1" y="2" field="alien_document.sender" name="providerCodeSEntry" readonly="" |
<entry x="1" y="2" name="providerCodeSEntry" readonly="" width="20" style="label"/> |
1423 |
width="20" style="textlookup" foreign_key="providerUIDDataSource._entity_data.id" |
<!-- <entry x="1" y="2" field="alien_document.sender" name="providerCodeSEntry" readonly="" --> |
1424 |
foreign_key_description="_entity_uid_data.uid" > |
<!-- width="20" style="textlookup" foreign_key="providerUIDDataSource._entity_data.id" --> |
1425 |
|
<!-- foreign_key_description="_entity_uid_data.uid" > --> |
1426 |
<!-- <entry x="1" y="2" name="providerCodeSEntry" width="20"> --> |
<!-- <entry x="1" y="2" name="providerCodeSEntry" width="20"> --> |
|
</entry> |
|
1427 |
<entry x="1" y="3" field="alien_document.sender" name="providerNameSEntry" readonly="" |
<entry x="1" y="3" field="alien_document.sender" name="providerNameSEntry" readonly="" |
1428 |
width="35" style="textlookup" foreign_key="providerNameDataSource._entity_data.id" |
width="35" style="textlookup" foreign_key="providerNameDataSource.id" |
1429 |
foreign_key_description="_entity_data.name" > |
foreign_key_description="name" > |
1430 |
<!-- <entry x="1" y="3" name="providerNameSEntry" width="35"> --> |
<!-- <entry x="1" y="3" name="providerNameSEntry" width="35"> --> |
1431 |
</entry> |
</entry> |
1432 |
<entry x="1" y="2" field="alien_document.sender" name="providerEntry" width="25" hidden="" /> |
<entry x="1" y="2" field="alien_document.sender" name="providerEntry" width="25" hidden="" /> |
1433 |
|
|
1434 |
<label name="transportLbl" text="Transporte" x="56" y="1" /> |
<label name="transportLbl" text="Transporte" x="56" y="1" /> |
1435 |
<entry x="56" y="2" field="alien_document.transport" name="transportCodeSEntry" readonly="" |
<entry x="56" y="2" name="transportCodeSEntry" readonly="" width="20" style="label"/> |
1436 |
width="20" style="textlookup" foreign_key="transportUIDDataSource._entity_data.id" |
<!-- <entry x="56" y="2" field="alien_document.transport" name="transportCodeSEntry" readonly="" --> |
1437 |
foreign_key_description="_entity_uid_data.uid" > |
<!-- width="20" style="textlookup" foreign_key="transportUIDDataSource._entity_data.id" --> |
1438 |
</entry> |
<!-- foreign_key_description="_entity_uid_data.uid" > --> |
1439 |
|
<!-- </entry> --> |
1440 |
<entry x="56" y="3" field="alien_document.transport" name="transportNameSEntry" readonly="" |
<entry x="56" y="3" field="alien_document.transport" name="transportNameSEntry" readonly="" |
1441 |
width="35" style="textlookup" foreign_key="transportNameDataSource._entity_data.id" |
width="35" style="textlookup" foreign_key="transportNameDataSource.id" |
1442 |
foreign_key_description="_entity_data.name" > |
foreign_key_description="name" > |
1443 |
</entry> |
</entry> |
1444 |
|
|
1445 |
<entry x="27" y="2" field="alien_document.transport" name="transportEntry" width="25" hidden="" /> |
<entry x="27" y="2" field="alien_document.transport" name="transportEntry" width="25" hidden="" /> |