507 |
</condition> |
</condition> |
508 |
</datasource> |
</datasource> |
509 |
|
|
510 |
<datasource database="papo" name="resultAlienDocumentDataSource" table="alien_document" |
<datasource database="papo" name="resultAlienDocumentDataSource" |
511 |
|
table="alien_document, _entity_data as provider, _entity_data as transport, _document_type_data" |
512 |
order_by="date"> |
order_by="date"> |
513 |
<condition> |
<joinconditions> |
514 |
|
<join type="left"> |
515 |
|
<join type="left"> |
516 |
|
<join type="left"> |
517 |
|
<left_table name="alien_document"/> |
518 |
|
<right_table name="_entity_data as provider"/> |
519 |
|
<condition> |
520 |
|
<eq> |
521 |
|
<cfield name="alien_document.sender"/> |
522 |
|
<cfield name="provider.id"/> |
523 |
|
</eq> |
524 |
|
</condition> |
525 |
|
</join> |
526 |
|
<right_table name="_entity_data as transport"/> |
527 |
|
<condition> |
528 |
|
<eq> |
529 |
|
<cfield name="alien_document.transport"/> |
530 |
|
<cfield name="transport.id"/> |
531 |
|
</eq> |
532 |
|
</condition> |
533 |
|
</join> |
534 |
|
<right_table name="_document_type_data"/> |
535 |
|
<condition> |
536 |
|
<eq> |
537 |
|
<cfield name="alien_document.alien_document_type"/> |
538 |
|
<cfield name="_document_type_data._table"/> |
539 |
|
</eq> |
540 |
|
</condition> |
541 |
|
</join> |
542 |
|
</joinconditions> |
543 |
|
<condition> |
544 |
|
<and> |
545 |
<or> |
<or> |
546 |
<eq> |
<eq> |
547 |
<cfield name="alien_document.alien_document_type"/> |
<cfield name="alien_document.alien_document_type"/> |
556 |
<cconst value="neb:$document_type_C"/> |
<cconst value="neb:$document_type_C"/> |
557 |
</eq> |
</eq> |
558 |
</or> |
</or> |
559 |
</condition> |
</and> |
560 |
|
</condition> |
561 |
</datasource> |
</datasource> |
562 |
|
|
563 |
<datasource database="papo" name="alienDocumentDataSource" table="alien_document" |
<datasource database="papo" name="alienDocumentDataSource" table="alien_document" |
1209 |
|
|
1210 |
if hack.emptyEntry(alienDocumentSearchBlock.providerSEntry): |
if hack.emptyEntry(alienDocumentSearchBlock.providerSEntry): |
1211 |
like = GConditions.GClike(tmpAnd) |
like = GConditions.GClike(tmpAnd) |
1212 |
GConditions.GCField(like,"sender") |
GConditions.GCField(like,"provider._table") |
1213 |
GConditions.GCConst(like,str(alienDocumentSearchBlock.providerSEntry)) |
GConditions.GCConst(like,str(alienDocumentSearchBlock.providerSEntry)) |
1214 |
|
|
1215 |
if hack.emptyEntry(alienDocumentSearchBlock.transportSEntry): |
if hack.emptyEntry(alienDocumentSearchBlock.transportSEntry): |
1216 |
like1 = GConditions.GClike(tmpAnd) |
like1 = GConditions.GClike(tmpAnd) |
1217 |
GConditions.GCField(like1,"transport") |
GConditions.GCField(like1,"transport._table") |
1218 |
GConditions.GCConst(like1,str(alienDocumentSearchBlock.transportSEntry)) |
GConditions.GCConst(like1,str(alienDocumentSearchBlock.transportSEntry)) |
1219 |
|
|
1220 |
if hack.emptyEntry(alienDocumentSearchBlock.numberSEntry): |
if hack.emptyEntry(alienDocumentSearchBlock.numberSEntry): |
1501 |
<option name="tip" value="Insertar el nombre o descripción"/> |
<option name="tip" value="Insertar el nombre o descripción"/> |
1502 |
</options> |
</options> |
1503 |
</entry> |
</entry> |
1504 |
<entry x="1" y="2" field="alien_document.sender" name="providerSEntry" width="25" hidden=""/> |
<entry x="1" y="2" name="providerSEntry" width="25" hidden=""/> |
1505 |
<button x="36" y="3" trigger="providerSearchPage1Trigger" width="7" label="Buscar" |
<button x="36" y="3" trigger="providerSearchPage1Trigger" width="7" label="Buscar" |
1506 |
name="providerSearchPage1Btn" height="1"/> |
name="providerSearchPage1Btn" height="1"/> |
1507 |
|
|
1508 |
|
|
1509 |
|
|
1510 |
<label name="transportLbl" text="Transporte" x="56" y="1" /> |
<label name="transportLbl" text="Transporte" x="56" y="1" /> |
1511 |
<entry x="56" y="2" name="transportCodeSEntry" width="20"> |
<entry x="56" y="2" name="transportCodeSEntry" width="20"> |
1512 |
<options> |
<options> |
1518 |
<option name="tip" value="Insertar el nombre o descripción"/> |
<option name="tip" value="Insertar el nombre o descripción"/> |
1519 |
</options> |
</options> |
1520 |
</entry> |
</entry> |
1521 |
<entry x="57" y="3" field="alien_document.transport" name="transportSEntry" width="25" hidden=""/> |
<entry x="57" y="3" name="transportSEntry" width="25" hidden=""/> |
1522 |
<button x="91" y="3" trigger="transportSearchPage1Trigger" width="7" label="Buscar" |
<button x="91" y="3" trigger="transportSearchPage1Trigger" width="7" label="Buscar" |
1523 |
name="transportSearchPage1Btn" height="1"/> |
name="transportSearchPage1Btn" height="1"/> |
1524 |
|
|
1584 |
width="107" x="0" y="11"> |
width="107" x="0" y="11"> |
1585 |
<block datasource="resultAlienDocumentDataSource" name="resultBlock"> |
<block datasource="resultAlienDocumentDataSource" name="resultBlock"> |
1586 |
|
|
1587 |
<entry field="id" hidden="" name="idREntry" x="1" y="1"/> |
<entry field="alien_document.id" hidden="" name="idREntry" x="1" y="1"/> |
1588 |
|
|
1589 |
<entry field="alien_document_type" hidden="" name="typeREntry" x="1" y="1"/> |
<entry field="alien_document.alien_document_type" hidden="" name="typeREntry" x="1" y="1"/> |
1590 |
|
|
1591 |
<entry x="1" y="1" field="sender" name="providerREntry" |
<entry x="1" y="1" field="alien_document.sender" name="providerREntry" |
1592 |
width="25" hidden=""/> |
width="25" hidden=""/> |
1593 |
|
|
1594 |
<entry x="27" y="2" field="transport" name="transportREntry" |
<entry x="27" y="2" field="alien_document.transport" name="transportREntry" |
1595 |
width="25" hidden=""/> |
width="25" hidden=""/> |
1596 |
|
|
1597 |
<entry x="1" y="4" field="salesperson" name="salesPersonREntry" |
<entry x="1" y="4" field="alien_document.salesperson" name="salesPersonREntry" |
1598 |
width="25" hidden=""/> |
width="25" hidden=""/> |
1599 |
|
|
1600 |
<entry x="27" y="4" field="received_by" name="receivedREntry" |
<entry x="27" y="4" field="alien_document.received_by" name="receivedREntry" |
1601 |
width="25" hidden=""/> |
width="25" hidden=""/> |
1602 |
|
|
1603 |
<entry field="number" name="numberREntry" hidden="" width="20" x="1" y="7"/> |
<entry field="alien_document.number" name="numberREntry" hidden="" width="20" x="1" y="7"/> |
1604 |
|
|
1605 |
<entry field="date" name="dateREntry" typecast="date" hidden="" |
<entry field="alien_document.date" name="dateREntry" typecast="date" hidden="" |
1606 |
width="22" x="22" y="7"/> |
width="22" x="22" y="7"/> |
1607 |
|
|
1608 |
<entry field="guide_number" name="guideNumerREntry" width="20" x="45" y="7" hidden=""/> |
<entry field="alien_document.guide_number" name="guideNumerREntry" width="20" x="45" y="7" hidden=""/> |
|
|
|
|
<entry field="bundles" name="bundlesREntry" width="10" x="66" y="7" hidden="" /> |
|
1609 |
|
|
1610 |
|
<entry field="alien_document.bundles" name="bundlesREntry" width="10" x="66" y="7" hidden="" /> |
1611 |
|
|
1612 |
|
|
1613 |
<label name="resNumberLbl" text="Número" x="1" y="1" /> |
<label name="resNumberLbl" text="Tipo" x="1" y="1" /> |
1614 |
<entry field="number" name="resNumberEntry" width="20" x="1" y="2" rows="9"/> |
<entry field="_document_type_data.code" name="resCodeEntry" width="6" x="1" y="2" rows="9"/> |
1615 |
<label name="resDateLbl" text="Fecha" x="22" y="1" /> |
<label name="resNumberLbl" text="Número" x="8" y="1" /> |
1616 |
<entry field="date" name="resDateEntry" typecast="date" width="22" x="22" y="2" rows="9"/> |
<entry field="alien_document.number" name="resNumberEntry" width="20" x="8" y="2" rows="9"/> |
1617 |
<scrollbar page="5" |
<label name="resDateLbl" text="Fecha" x="29" y="1" /> |
1618 |
x="45" y="2" width="1" height="9"/> |
<entry field="alien_document.date" name="resDateEntry" typecast="date" width="22" x="29" y="2" rows="9"/> |
1619 |
|
<scrollbar page="5" x="54" y="2" width="1" height="9"/> |
1620 |
|
|
1621 |
</block> |
</block> |
1622 |
</box> |
</box> |
2220 |
</block> |
</block> |
2221 |
</box> |
</box> |
2222 |
<block name="providerResultBlock" datasource="providerSearchDataSource"> |
<block name="providerResultBlock" datasource="providerSearchDataSource"> |
2223 |
<entry name="idEntry" field="_entity_data.id" hidden="" x="1" y="1" width="12"/> |
<entry name="idEntry" field="_entity_data._table" hidden="" x="1" y="1" width="12"/> |
2224 |
<entry name="providerCodeEntry" field="_entity_uid_data.uid" x="1" y="1" width="12" hidden=""/> |
<entry name="providerCodeEntry" field="_entity_uid_data.uid" x="1" y="1" width="12" hidden=""/> |
2225 |
<entry name="providerNameEntry" field="_entity_data.name" x="1" y="1" width="12" hidden=""/> |
<entry name="providerNameEntry" field="_entity_data.name" x="1" y="1" width="12" hidden=""/> |
2226 |
<entry name="providerIvaTaxProfileEntry" field="_persona_tax_profile_data.tax_profile" x="1" y="1" width="12" hidden=""/> |
<entry name="providerIvaTaxProfileEntry" field="_persona_tax_profile_data.tax_profile" x="1" y="1" width="12" hidden=""/> |
2227 |
</block> |
</block> |
2228 |
<block name="transportResultBlock" datasource="providerSearchDataSource"> |
<block name="transportResultBlock" datasource="providerSearchDataSource"> |
2229 |
<entry name="idEntry" field="_entity_data.id" hidden="" x="1" y="1" width="12"/> |
<entry name="idEntry" field="_entity_data._table" hidden="" x="1" y="1" width="12"/> |
2230 |
<entry name="transportCodeEntry" field="_entity_uid_data.uid" x="1" y="1" width="12" hidden=""/> |
<entry name="transportCodeEntry" field="_entity_uid_data.uid" x="1" y="1" width="12" hidden=""/> |
2231 |
<entry name="transportNameEntry" field="_entity_data.name" x="1" y="1" width="12" hidden=""/> |
<entry name="transportNameEntry" field="_entity_data.name" x="1" y="1" width="12" hidden=""/> |
2232 |
</block> |
</block> |