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> |
172 |
|
<null> |
173 |
|
<cfield name="_entity_data._end_t"/> |
174 |
|
</null> |
175 |
|
<null> |
176 |
|
<cfield name="_entity_uid_data._end_t"/> |
177 |
|
</null> |
178 |
</and> |
</and> |
179 |
</condition> |
</condition> |
180 |
</datasource> |
</datasource> |
181 |
|
|
182 |
<datasource name="providerNameDataSource" database="papo" |
<datasource name="providerNameDataSource" database="papo" |
183 |
table="_entity_data"> |
table="_entity_data"> |
184 |
|
<conditions> |
185 |
|
<null> |
186 |
|
<cfield name="_entity_data._end_t"/> |
187 |
|
</null> |
188 |
|
</conditions> |
189 |
</datasource> |
</datasource> |
190 |
|
|
191 |
<datasource name="transportUIDDataSource" database="papo" |
<datasource name="transportUIDDataSource" database="papo" |
204 |
<cfield name="_entity_uid_data.entity_uid_type"/> |
<cfield name="_entity_uid_data.entity_uid_type"/> |
205 |
<cfield name="entity_type_uid_conf.entity_uid_type"/> |
<cfield name="entity_type_uid_conf.entity_uid_type"/> |
206 |
</eq> |
</eq> |
207 |
|
<null> |
208 |
|
<cfield name="_entity_data._end_t"/> |
209 |
|
</null> |
210 |
|
<null> |
211 |
|
<cfield name="_entity_uid_data._end_t"/> |
212 |
|
</null> |
213 |
</and> |
</and> |
214 |
</condition> |
</condition> |
215 |
</datasource> |
</datasource> |
216 |
|
|
217 |
<datasource name="transportNameDataSource" database="papo" |
<datasource name="transportNameDataSource" database="papo" |
218 |
table="_entity_data"> |
table="_entity_data"> |
219 |
|
<conditions> |
220 |
|
<null> |
221 |
|
<cfield name="_entity_data._end_t"/> |
222 |
|
</null> |
223 |
|
</conditions> |
224 |
</datasource> |
</datasource> |
225 |
|
|
226 |
<datasource name="transportDataSource" database="papo" |
<datasource name="transportDataSource" database="papo" |
449 |
</condition> |
</condition> |
450 |
</datasource> |
</datasource> |
451 |
|
|
452 |
<datasource database="papo" name="alienDocumentShowDataSource" table="alien_document" |
<datasource database="papo" name="alienDocumentShowDataSource" |
453 |
|
table="alien_document, _entity_data as provider, _entity_data as transport" |
454 |
order_by="date"> |
order_by="date"> |
455 |
<condition> |
<condition> |
456 |
<eq> |
<and> |
457 |
<cfield name="alien_document.alien_document_type"/> |
<eq> |
458 |
<cconst value="17"/> |
<cfield name="alien_document.sender"/> |
459 |
</eq> |
<cfield name="provider.id"/> |
460 |
|
</eq> |
461 |
|
<eq> |
462 |
|
<cfield name="alien_document.transport"/> |
463 |
|
<cfield name="transport.id"/> |
464 |
|
</eq> |
465 |
|
<eq> |
466 |
|
<cfield name="alien_document.alien_document_type"/> |
467 |
|
<cconst value="17"/> |
468 |
|
</eq> |
469 |
|
</and> |
470 |
</condition> |
</condition> |
471 |
</datasource> |
</datasource> |
472 |
|
|
917 |
alienItemShowBlock.firstRecord() |
alienItemShowBlock.firstRecord() |
918 |
setParameter('despatchNoteDate',str(alienDocumentShowBlock.dateEntry)) |
setParameter('despatchNoteDate',str(alienDocumentShowBlock.dateEntry)) |
919 |
|
|
|
import gnue.common.GConditions as GConditions |
|
|
|
|
|
providerCondition = GConditions.GCondition() |
|
|
|
|
|
tmpAnd = GConditions.GCand(providerCondition) |
|
|
eq = GConditions.GCeq(tmpAnd) |
|
|
GConditions.GCField(eq,"_entity_data.id") |
|
|
GConditions.GCConst(eq,str(alienDocumentShowBlock.providerEntry)) |
|
|
le = GConditions.GCle(tmpAnd) |
|
|
GConditions.GCField(le,"_entity_uid_data._start_t") |
|
|
GConditions.GCConst(le,str(alienDocumentShowBlock.dateEntry)) |
|
|
tmpOr = GConditions.GCor(tmpAnd) |
|
|
tmpNull = GConditions.GCnull(tmpOr) |
|
|
GConditions.GCField(tmpNull,"_entity_uid_data._end_t") |
|
|
le2 = GConditions.GCle(tmpOr) |
|
|
GConditions.GCConst(le2,str(alienDocumentShowBlock.dateEntry)) |
|
|
GConditions.GCField(le2,"_entity_uid_data._end_t") |
|
|
|
|
|
providerResultSet = providerUIDDataSource.createResultSet(providerCondition) |
|
|
result = providerResultSet.firstRecord() |
|
|
if result: |
|
|
alienDocumentShowBlock.providerCodeSEntry = providerResultSet.current.getField("_entity_uid_data.uid") |
|
|
|
|
|
transportCondition = GConditions.GCondition() |
|
|
|
|
|
tmpAnd = GConditions.GCand(transportCondition) |
|
|
eq = GConditions.GCeq(tmpAnd) |
|
|
GConditions.GCField(eq,"_entity_data.id") |
|
|
GConditions.GCConst(eq,str(alienDocumentShowBlock.transportEntry)) |
|
|
le = GConditions.GCle(tmpAnd) |
|
|
GConditions.GCField(le,"_entity_uid_data._start_t") |
|
|
GConditions.GCConst(le,str(alienDocumentShowBlock.dateEntry)) |
|
|
tmpOr = GConditions.GCor(tmpAnd) |
|
|
tmpNull = GConditions.GCnull(tmpOr) |
|
|
GConditions.GCField(tmpNull,"_entity_uid_data._end_t") |
|
|
le2 = GConditions.GCle(tmpOr) |
|
|
GConditions.GCConst(le2,str(alienDocumentShowBlock.dateEntry)) |
|
|
GConditions.GCField(le2,"_entity_uid_data._end_t") |
|
|
|
|
|
transportResultSet = transportUIDDataSource.createResultSet(transportCondition) |
|
|
result = transportResultSet.firstRecord() |
|
|
if result: |
|
|
alienDocumentShowBlock.transportCodeSEntry = transportResultSet.current.getField("_entity_uid_data.uid") |
|
|
|
|
920 |
</trigger> |
</trigger> |
921 |
|
|
922 |
<trigger name="providerTrigger" type="NAMED"> |
<trigger name="providerTrigger" type="NAMED"> |
1089 |
|
|
1090 |
<block datasource="alienDocumentShowDataSource" name="alienDocumentShowBlock" > |
<block datasource="alienDocumentShowDataSource" name="alienDocumentShowBlock" > |
1091 |
|
|
1092 |
<entry field="id" hidden="" name="idEntry" x="1" y="1"/> |
<entry field="alien_document.id" hidden="" name="idEntry" x="1" y="1"/> |
1093 |
<entry field="alien_document_type" hidden="" name="typeEntry" default="17" x="1" y="1"/> |
<entry field="alien_document.alien_document_type" hidden="" name="typeEntry" default="17" x="1" y="1"/> |
1094 |
|
|
1095 |
<label name="providerLbl" text="Proveedor" x="1" y="1" /> |
<label name="providerLbl" text="Proveedor" x="1" y="1" /> |
1096 |
<entry x="1" y="2" name="providerCodeSEntry" readonly="" width="20" style="label"/> |
<entry x="1" y="2" field="provider._table" name="providerCodeSEntry" readonly="" |
1097 |
<entry x="1" y="3" field="alien_document.sender" name="providerNameSEntry" readonly="" |
width="20" style="textlookup" foreign_key="providerUIDDataSource._entity_data._table" |
1098 |
width="35" style="textlookup" foreign_key="providerNameDataSource.id" |
foreign_key_description="_entity_uid_data.uid" > |
1099 |
|
</entry> |
1100 |
|
<entry x="1" y="3" field="provider._table" name="providerNameSEntry" readonly="" |
1101 |
|
width="35" style="textlookup" foreign_key="providerNameDataSource._table" |
1102 |
foreign_key_description="name" > |
foreign_key_description="name" > |
|
<!-- <entry x="1" y="3" name="providerNameSEntry" width="35"> --> |
|
1103 |
</entry> |
</entry> |
1104 |
<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="" /> |
1105 |
|
|
1106 |
<label name="transportLbl" text="Transporte" x="56" y="1" /> |
<label name="transportLbl" text="Transporte" x="56" y="1" /> |
1107 |
<entry x="56" y="2" name="transportCodeSEntry" readonly="" width="20" style="label"/> |
<entry x="56" y="2" field="transport._table" name="transportCodeSEntry" readonly="" |
1108 |
<entry x="56" y="3" field="alien_document.transport" name="transportNameSEntry" readonly="" |
width="20" style="textlookup" foreign_key="transportUIDDataSource._entity_data._table" |
1109 |
width="35" style="textlookup" foreign_key="transportNameDataSource.id" |
foreign_key_description="_entity_uid_data.uid" > |
1110 |
|
</entry> |
1111 |
|
<entry x="56" y="3" field="transport._table" name="transportNameSEntry" readonly="" |
1112 |
|
width="35" style="textlookup" foreign_key="transportNameDataSource._table" |
1113 |
foreign_key_description="name" > |
foreign_key_description="name" > |
1114 |
</entry> |
</entry> |
|
|
|
1115 |
<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="" /> |
1116 |
|
|
1117 |
|
|
1118 |
<label name="numberLbl" text="Número" x="1" y="8" /> |
<label name="numberLbl" text="Número" x="1" y="8" /> |
1119 |
<entry field="number" name="numberEntry" width="20" x="1" y="9" style="label"/> |
<entry field="alien_document.number" name="numberEntry" width="20" x="1" y="9" style="label"/> |
1120 |
|
|
1121 |
<label name="dateLbl" text="Fecha" x="22" y="8" /> |
<label name="dateLbl" text="Fecha" x="22" y="8" /> |
1122 |
<entry field="date" name="dateEntry" typecast="date" |
<entry field="alien_document.date" name="dateEntry" typecast="date" |
1123 |
rows="1" width="22" x="22" y="9" style="label"/> |
rows="1" width="22" x="22" y="9" style="label"/> |
1124 |
|
|
1125 |
<label name="guideNumberLbl" text="Número de guía" x="53" y="8" /> |
<label name="guideNumberLbl" text="Número de guía" x="53" y="8" /> |
1126 |
<entry field="guide_number" name="guideNumerEntry" width="20" x="53" y="9" style="label"/> |
<entry field="alien_document.guide_number" name="guideNumerEntry" width="20" x="53" y="9" style="label"/> |
1127 |
|
|
1128 |
<label name="bundlesLbl" text="Bultos" x="74" y="8" /> |
<label name="bundlesLbl" text="Bultos" x="74" y="8" /> |
1129 |
<entry field="bundles" name="bundlesEntry" width="10" x="74" y="9" style="label"/> |
<entry field="alien_document.bundles" name="bundlesEntry" width="10" x="74" y="9" style="label"/> |
1130 |
|
|
1131 |
</block> |
</block> |
1132 |
</box> |
</box> |