207 |
</condition> |
</condition> |
208 |
</datasource> |
</datasource> |
209 |
|
|
210 |
<datasource name="providerUIDDataSource" database="papo" |
<datasource name="providerUIDDataSource" database="papo" |
211 |
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"> |
|
212 |
<condition> |
<condition> |
213 |
<and> |
<and> |
214 |
<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> |
|
|
<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> |
|
|
</datasource> |
|
|
|
|
|
<datasource name="providerNameDataSource" database="papo" |
|
|
table="_entity_data, _alien_entity_data, _persona_data, _provider_data, entity_type_uid_conf, |
|
|
_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> |
|
215 |
<cfield name="_entity_data._table"/> |
<cfield name="_entity_data._table"/> |
216 |
<cfield name="_entity_uid_data.entity"/> |
<cfield name="_entity_uid_data.entity"/> |
217 |
</eq> |
</eq> |
223 |
<cfield name="_entity_uid_data.entity_uid_type"/> |
<cfield name="_entity_uid_data.entity_uid_type"/> |
224 |
<cfield name="entity_type_uid_conf.entity_uid_type"/> |
<cfield name="entity_type_uid_conf.entity_uid_type"/> |
225 |
</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> |
|
226 |
</and> |
</and> |
227 |
</condition> |
</condition> |
228 |
</datasource> |
</datasource> |
229 |
|
|
230 |
<datasource name="transportUIDDataSource" database="papo" |
<!-- <neb:Sub neb:src="datasource.nebc" search="alien_entity" dated="entity=alien_entity" --> |
231 |
table="_entity_data, _alien_entity_data, _persona_data, _provider_data, entity_type_uid_conf, |
<!-- name="FooDB" database="papo" order_by="_entity_data.name"> --> |
232 |
_entity_uid_data" order_by="_entity_data.name"> |
<!-- </neb:Sub> --> |
233 |
<condition> |
<!-- <and> --> |
234 |
<and> |
<!-- <le> --> |
235 |
<eq> |
<!-- <cfield name="_alien_entity_data._start_t"></cfield> --> |
236 |
<cfield name="_entity_data._table"/> |
<!-- <cfield name="_entity_data._start_t"></cfield> --> |
237 |
<cfield name="_alien_entity_data.entity"/> |
<!-- </le> --> |
238 |
</eq> |
<!-- <or> --> |
239 |
<eq> |
<!-- <null> --> |
240 |
<cfield name="_alien_entity_data._table"/> |
<!-- <cfield name="_alien_entity_data._end_t"></cfield> --> |
241 |
<cfield name="_persona_data.alien_entity"/> |
<!-- </null> --> |
242 |
</eq> |
<!-- <le> --> |
243 |
<eq> |
<!-- <cfield name="_entity_data._end_t"></cfield> --> |
244 |
<cfield name="_persona_data._table"/> |
<!-- <cfield name="_alien_entity_data._end_t"></cfield> --> |
245 |
<cfield name="_provider_data.persona"/> |
<!-- </le> --> |
246 |
</eq> |
<!-- </or> --> |
247 |
<eq> |
<!-- </and> --> |
248 |
<cfield name="_entity_data._table"/> |
|
249 |
<cfield name="_entity_uid_data.entity"/> |
<datasource name="providerNameDataSource" database="papo" |
250 |
</eq> |
table="_entity_data"> |
|
<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> |
|
251 |
</datasource> |
</datasource> |
252 |
|
|
253 |
<datasource name="transportNameDataSource" database="papo" |
<datasource name="transportUIDDataSource" database="papo" |
254 |
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"> |
|
255 |
<condition> |
<condition> |
256 |
<and> |
<and> |
257 |
<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> |
|
258 |
<cfield name="_entity_data._table"/> |
<cfield name="_entity_data._table"/> |
259 |
<cfield name="_entity_uid_data.entity"/> |
<cfield name="_entity_uid_data.entity"/> |
260 |
</eq> |
</eq> |
266 |
<cfield name="_entity_uid_data.entity_uid_type"/> |
<cfield name="_entity_uid_data.entity_uid_type"/> |
267 |
<cfield name="entity_type_uid_conf.entity_uid_type"/> |
<cfield name="entity_type_uid_conf.entity_uid_type"/> |
268 |
</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> |
|
269 |
</and> |
</and> |
270 |
</condition> |
</condition> |
271 |
</datasource> |
</datasource> |
272 |
|
|
273 |
<!-- <datasource name="providerExternalSearchDataSource" database="papo" --> |
<datasource name="transportNameDataSource" database="papo" |
274 |
<!-- table="_entity_data, _alien_entity_data, _persona_data, _provider_data, entity_type_uid_conf, _entity_uid_type_data, --> |
table="_entity_data"> |
275 |
<!-- _entity_uid_data" order_by="_entity_data.name"> --> |
</datasource> |
|
<!-- <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> --> |
|
276 |
|
|
277 |
<datasource name="transportDataSource" database="papo" |
<datasource name="transportDataSource" database="papo" |
278 |
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" |
1083 |
recordCount = alienItemShowBlock.getRecordCount() |
recordCount = alienItemShowBlock.getRecordCount() |
1084 |
alienItemShowBlock.firstRecord() |
alienItemShowBlock.firstRecord() |
1085 |
setParameter('creditNoteDate',str(alienDocumentShowBlock.dateEntry)) |
setParameter('creditNoteDate',str(alienDocumentShowBlock.dateEntry)) |
1086 |
|
|
1087 |
|
import gnue.common.GConditions as GConditions |
1088 |
|
|
1089 |
|
providerCondition = GConditions.GCondition() |
1090 |
|
|
1091 |
|
tmpAnd = GConditions.GCand(providerCondition) |
1092 |
|
eq = GConditions.GCeq(tmpAnd) |
1093 |
|
GConditions.GCField(eq,"_entity_data.id") |
1094 |
|
GConditions.GCConst(eq,str(alienDocumentShowBlock.providerEntry)) |
1095 |
|
le = GConditions.GCle(tmpAnd) |
1096 |
|
GConditions.GCField(le,"_entity_uid_data._start_t") |
1097 |
|
GConditions.GCConst(le,str(alienDocumentShowBlock.dateEntry)) |
1098 |
|
tmpOr = GConditions.GCor(tmpAnd) |
1099 |
|
tmpNull = GConditions.GCnull(tmpOr) |
1100 |
|
GConditions.GCField(tmpNull,"_entity_uid_data._end_t") |
1101 |
|
le2 = GConditions.GCle(tmpOr) |
1102 |
|
GConditions.GCConst(le2,str(alienDocumentShowBlock.dateEntry)) |
1103 |
|
GConditions.GCField(le2,"_entity_uid_data._end_t") |
1104 |
|
|
1105 |
|
providerResultSet = providerUIDDataSource.createResultSet(providerCondition) |
1106 |
|
result = providerResultSet.firstRecord() |
1107 |
|
if result: |
1108 |
|
alienDocumentShowBlock.providerCodeSEntry = providerResultSet.current.getField("_entity_uid_data.uid") |
1109 |
|
|
1110 |
|
transportCondition = GConditions.GCondition() |
1111 |
|
|
1112 |
|
tmpAnd = GConditions.GCand(transportCondition) |
1113 |
|
eq = GConditions.GCeq(tmpAnd) |
1114 |
|
GConditions.GCField(eq,"_entity_data.id") |
1115 |
|
GConditions.GCConst(eq,str(alienDocumentShowBlock.transportEntry)) |
1116 |
|
le = GConditions.GCle(tmpAnd) |
1117 |
|
GConditions.GCField(le,"_entity_uid_data._start_t") |
1118 |
|
GConditions.GCConst(le,str(alienDocumentShowBlock.dateEntry)) |
1119 |
|
tmpOr = GConditions.GCor(tmpAnd) |
1120 |
|
tmpNull = GConditions.GCnull(tmpOr) |
1121 |
|
GConditions.GCField(tmpNull,"_entity_uid_data._end_t") |
1122 |
|
le2 = GConditions.GCle(tmpOr) |
1123 |
|
GConditions.GCConst(le2,str(alienDocumentShowBlock.dateEntry)) |
1124 |
|
GConditions.GCField(le2,"_entity_uid_data._end_t") |
1125 |
|
|
1126 |
|
transportResultSet = transportUIDDataSource.createResultSet(transportCondition) |
1127 |
|
result = transportResultSet.firstRecord() |
1128 |
|
if result: |
1129 |
|
alienDocumentShowBlock.transportCodeSEntry = transportResultSet.current.getField("_entity_uid_data.uid") |
1130 |
|
|
1131 |
#for index in range(recordCount): |
#for index in range(recordCount): |
1132 |
# alienItemShowBlock.taxPercentEntry = (hack.a2f(alienItemShowBlock.taxAmountEntry) / (hack.a2f(alienItemShowBlock.unitPriceEntry) * \ |
# alienItemShowBlock.taxPercentEntry = (hack.a2f(alienItemShowBlock.taxAmountEntry) / (hack.a2f(alienItemShowBlock.unitPriceEntry) * \ |
1133 |
# hack.a2f(alienItemShowBlock.qtyEntry))) * 100 |
# hack.a2f(alienItemShowBlock.qtyEntry))) * 100 |
1251 |
<label name="bundlesLbl" text="Bultos" x="66" y="8" /> |
<label name="bundlesLbl" text="Bultos" x="66" y="8" /> |
1252 |
<entry field="bundles" name="bundlesSEntry" width="10" x="66" y="9"/> |
<entry field="bundles" name="bundlesSEntry" width="10" x="66" y="9"/> |
1253 |
|
|
1254 |
<button x="80" y="8" trigger="searchTrigger" width="16" label="Buscar" |
<button x="77" y="9" trigger="searchTrigger" width="10" label="Buscar" |
1255 |
name="searchBtn" height="1"/> |
name="searchBtn" height="1"/> |
1256 |
<button x="80" y="9" trigger="newSearchTrigger" width="16" label="Cancelar" |
<button x="88" y="9" trigger="newSearchTrigger" width="10" label="Cancelar" |
1257 |
name="newSearchBtn" height="1"/> |
name="newSearchBtn" height="1"/> |
1258 |
</block> |
</block> |
1259 |
</box> |
</box> |
1327 |
<entry field="alien_document_type" hidden="" name="typeEntry" x="1" y="1"/> |
<entry field="alien_document_type" hidden="" name="typeEntry" x="1" y="1"/> |
1328 |
|
|
1329 |
<label name="providerLbl" text="Proveedor" x="1" y="1" /> |
<label name="providerLbl" text="Proveedor" x="1" y="1" /> |
1330 |
<entry x="1" y="2" field="alien_document.sender" name="providerCodeSEntry" readonly="" |
<entry x="1" y="2" name="providerCodeSEntry" readonly="" width="20" style="label"/> |
|
width="20" style="textlookup" foreign_key="providerUIDDataSource._entity_data.id" |
|
|
foreign_key_description="_entity_uid_data.uid" > |
|
|
<!-- <entry x="1" y="2" name="providerCodeSEntry" width="20"> --> |
|
|
</entry> |
|
1331 |
<entry x="1" y="3" field="alien_document.sender" name="providerNameSEntry" readonly="" |
<entry x="1" y="3" field="alien_document.sender" name="providerNameSEntry" readonly="" |
1332 |
width="35" style="textlookup" foreign_key="providerNameDataSource._entity_data.id" |
width="35" style="textlookup" foreign_key="providerNameDataSource.id" |
1333 |
foreign_key_description="_entity_data.name" > |
foreign_key_description="name" > |
1334 |
<!-- <entry x="1" y="3" name="providerNameSEntry" width="35"> --> |
<!-- <entry x="1" y="3" name="providerNameSEntry" width="35"> --> |
1335 |
</entry> |
</entry> |
1336 |
<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="" /> |
1337 |
|
|
1338 |
<label name="transportLbl" text="Transporte" x="56" y="1" /> |
<label name="transportLbl" text="Transporte" x="56" y="1" /> |
1339 |
<entry x="56" y="2" field="alien_document.transport" name="transportCodeSEntry" readonly="" |
<entry x="56" y="2" name="transportCodeSEntry" readonly="" width="20" style="label"/> |
|
width="20" style="textlookup" foreign_key="transportUIDDataSource._entity_data.id" |
|
|
foreign_key_description="_entity_uid_data.uid" > |
|
|
</entry> |
|
1340 |
<entry x="56" y="3" field="alien_document.transport" name="transportNameSEntry" readonly="" |
<entry x="56" y="3" field="alien_document.transport" name="transportNameSEntry" readonly="" |
1341 |
width="35" style="textlookup" foreign_key="transportNameDataSource._entity_data.id" |
width="35" style="textlookup" foreign_key="transportNameDataSource.id" |
1342 |
foreign_key_description="_entity_data.name" > |
foreign_key_description="name" > |
1343 |
</entry> |
</entry> |
1344 |
|
|
1345 |
<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="" /> |