154 |
</datasource> |
</datasource> |
155 |
|
|
156 |
<datasource name="providerUIDDataSource" database="papo" |
<datasource name="providerUIDDataSource" database="papo" |
157 |
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"> |
|
158 |
<condition> |
<condition> |
159 |
<and> |
<and> |
160 |
<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> |
|
161 |
<cfield name="_entity_data._table"/> |
<cfield name="_entity_data._table"/> |
162 |
<cfield name="_entity_uid_data.entity"/> |
<cfield name="_entity_uid_data.entity"/> |
163 |
</eq> |
</eq> |
169 |
<cfield name="_entity_uid_data.entity_uid_type"/> |
<cfield name="_entity_uid_data.entity_uid_type"/> |
170 |
<cfield name="entity_type_uid_conf.entity_uid_type"/> |
<cfield name="entity_type_uid_conf.entity_uid_type"/> |
171 |
</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> |
|
172 |
</and> |
</and> |
173 |
</condition> |
</condition> |
174 |
</datasource> |
</datasource> |
175 |
|
|
176 |
<datasource name="providerNameDataSource" database="papo" |
<datasource name="providerNameDataSource" database="papo" |
177 |
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> |
|
178 |
</datasource> |
</datasource> |
179 |
|
|
180 |
<datasource name="transportUIDDataSource" database="papo" |
<datasource name="transportUIDDataSource" database="papo" |
181 |
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"> |
|
182 |
<condition> |
<condition> |
183 |
<and> |
<and> |
184 |
<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> |
|
185 |
<cfield name="_entity_data._table"/> |
<cfield name="_entity_data._table"/> |
186 |
<cfield name="_entity_uid_data.entity"/> |
<cfield name="_entity_uid_data.entity"/> |
187 |
</eq> |
</eq> |
193 |
<cfield name="_entity_uid_data.entity_uid_type"/> |
<cfield name="_entity_uid_data.entity_uid_type"/> |
194 |
<cfield name="entity_type_uid_conf.entity_uid_type"/> |
<cfield name="entity_type_uid_conf.entity_uid_type"/> |
195 |
</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> |
|
196 |
</and> |
</and> |
197 |
</condition> |
</condition> |
198 |
</datasource> |
</datasource> |
199 |
|
|
200 |
<datasource name="transportNameDataSource" database="papo" |
<datasource name="transportNameDataSource" database="papo" |
201 |
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> |
|
202 |
</datasource> |
</datasource> |
203 |
|
|
|
<!-- <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> --> |
|
|
|
|
204 |
<datasource name="transportDataSource" database="papo" |
<datasource name="transportDataSource" database="papo" |
205 |
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" |
206 |
order_by="_entity_data.name"> |
order_by="_entity_data.name"> |
883 |
recordCount = alienItemShowBlock.getRecordCount() |
recordCount = alienItemShowBlock.getRecordCount() |
884 |
alienItemShowBlock.firstRecord() |
alienItemShowBlock.firstRecord() |
885 |
setParameter('despatchNoteDate',str(alienDocumentShowBlock.dateEntry)) |
setParameter('despatchNoteDate',str(alienDocumentShowBlock.dateEntry)) |
886 |
|
|
887 |
|
import gnue.common.GConditions as GConditions |
888 |
|
|
889 |
|
providerCondition = GConditions.GCondition() |
890 |
|
|
891 |
|
tmpAnd = GConditions.GCand(providerCondition) |
892 |
|
eq = GConditions.GCeq(tmpAnd) |
893 |
|
GConditions.GCField(eq,"_entity_data.id") |
894 |
|
GConditions.GCConst(eq,str(alienDocumentShowBlock.providerEntry)) |
895 |
|
le = GConditions.GCle(tmpAnd) |
896 |
|
GConditions.GCField(le,"_entity_uid_data._start_t") |
897 |
|
GConditions.GCConst(le,str(alienDocumentShowBlock.dateEntry)) |
898 |
|
tmpOr = GConditions.GCor(tmpAnd) |
899 |
|
tmpNull = GConditions.GCnull(tmpOr) |
900 |
|
GConditions.GCField(tmpNull,"_entity_uid_data._end_t") |
901 |
|
le2 = GConditions.GCle(tmpOr) |
902 |
|
GConditions.GCConst(le2,str(alienDocumentShowBlock.dateEntry)) |
903 |
|
GConditions.GCField(le2,"_entity_uid_data._end_t") |
904 |
|
|
905 |
|
providerResultSet = providerUIDDataSource.createResultSet(providerCondition) |
906 |
|
result = providerResultSet.firstRecord() |
907 |
|
if result: |
908 |
|
alienDocumentShowBlock.providerCodeSEntry = providerResultSet.current.getField("_entity_uid_data.uid") |
909 |
|
|
910 |
|
transportCondition = GConditions.GCondition() |
911 |
|
|
912 |
|
tmpAnd = GConditions.GCand(transportCondition) |
913 |
|
eq = GConditions.GCeq(tmpAnd) |
914 |
|
GConditions.GCField(eq,"_entity_data.id") |
915 |
|
GConditions.GCConst(eq,str(alienDocumentShowBlock.transportEntry)) |
916 |
|
le = GConditions.GCle(tmpAnd) |
917 |
|
GConditions.GCField(le,"_entity_uid_data._start_t") |
918 |
|
GConditions.GCConst(le,str(alienDocumentShowBlock.dateEntry)) |
919 |
|
tmpOr = GConditions.GCor(tmpAnd) |
920 |
|
tmpNull = GConditions.GCnull(tmpOr) |
921 |
|
GConditions.GCField(tmpNull,"_entity_uid_data._end_t") |
922 |
|
le2 = GConditions.GCle(tmpOr) |
923 |
|
GConditions.GCConst(le2,str(alienDocumentShowBlock.dateEntry)) |
924 |
|
GConditions.GCField(le2,"_entity_uid_data._end_t") |
925 |
|
|
926 |
|
transportResultSet = transportUIDDataSource.createResultSet(transportCondition) |
927 |
|
result = transportResultSet.firstRecord() |
928 |
|
if result: |
929 |
|
alienDocumentShowBlock.transportCodeSEntry = transportResultSet.current.getField("_entity_uid_data.uid") |
930 |
|
|
931 |
</trigger> |
</trigger> |
932 |
|
|
933 |
<trigger name="providerTrigger" type="NAMED"> |
<trigger name="providerTrigger" type="NAMED"> |
1039 |
<label name="bundlesLbl" text="Bultos" x="66" y="8" /> |
<label name="bundlesLbl" text="Bultos" x="66" y="8" /> |
1040 |
<entry field="bundles" name="bundlesSEntry" width="10" x="66" y="9"/> |
<entry field="bundles" name="bundlesSEntry" width="10" x="66" y="9"/> |
1041 |
|
|
1042 |
<button x="80" y="8" trigger="searchTrigger" width="16" label="Buscar" |
<button x="77" y="9" trigger="searchTrigger" width="10" label="Buscar" |
1043 |
name="searchBtn" height="1"/> |
name="searchBtn" height="1"/> |
1044 |
<button x="80" y="9" trigger="newSearchTrigger" width="16" label="Cancelar" |
<button x="88" y="9" trigger="newSearchTrigger" width="10" label="Cancelar" |
1045 |
name="newSearchBtn" height="1"/> |
name="newSearchBtn" height="1"/> |
1046 |
</block> |
</block> |
1047 |
</box> |
</box> |
1104 |
<entry field="alien_document_type" hidden="" name="typeEntry" default="17" x="1" y="1"/> |
<entry field="alien_document_type" hidden="" name="typeEntry" default="17" x="1" y="1"/> |
1105 |
|
|
1106 |
<label name="providerLbl" text="Proveedor" x="1" y="1" /> |
<label name="providerLbl" text="Proveedor" x="1" y="1" /> |
1107 |
<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> |
|
1108 |
<entry x="1" y="3" field="alien_document.sender" name="providerNameSEntry" readonly="" |
<entry x="1" y="3" field="alien_document.sender" name="providerNameSEntry" readonly="" |
1109 |
width="35" style="textlookup" foreign_key="providerNameDataSource._entity_data.id" |
width="35" style="textlookup" foreign_key="providerNameDataSource.id" |
1110 |
foreign_key_description="_entity_data.name" > |
foreign_key_description="name" > |
1111 |
<!-- <entry x="1" y="3" name="providerNameSEntry" width="35"> --> |
<!-- <entry x="1" y="3" name="providerNameSEntry" width="35"> --> |
1112 |
</entry> |
</entry> |
1113 |
<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="" /> |
1114 |
|
|
1115 |
<label name="transportLbl" text="Transporte" x="56" y="1" /> |
<label name="transportLbl" text="Transporte" x="56" y="1" /> |
1116 |
<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> |
|
1117 |
<entry x="56" y="3" field="alien_document.transport" name="transportNameSEntry" readonly="" |
<entry x="56" y="3" field="alien_document.transport" name="transportNameSEntry" readonly="" |
1118 |
width="35" style="textlookup" foreign_key="transportNameDataSource._entity_data.id" |
width="35" style="textlookup" foreign_key="transportNameDataSource.id" |
1119 |
foreign_key_description="_entity_data.name" > |
foreign_key_description="name" > |
1120 |
</entry> |
</entry> |
1121 |
|
|
1122 |
<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="" /> |