1 |
<?xml version="1.0" encoding="ISO-8859-1"?> |
<?xml version="1.0" encoding="ISO-8859-1"?> |
|
<!DOCTYPE form SYSTEM "gnue-forms.dtd"> |
|
2 |
|
|
3 |
<form width="30" height="7" title="Listado I.V.A. Compras"> |
<!-- GNUe Forms 0.5.0 Migration Tool |
4 |
|
Saved on: 2003-03-14 18:27:14 --> |
5 |
|
|
6 |
<datasource name="printDataSource" cache="1"/> |
<form title="Listado I.V.A. Compras"> |
7 |
<datasource name="providerSearchDataSource" database="papo" |
<datasource name="alienDocumentDataSource" connection="papo" order_by="date" |
8 |
table="entity, _entity_data, alien_entity, _alien_entity_data, persona, |
table="alien_document"/> |
9 |
_persona_data, provider, _provider_data, entity_type_uid_conf, |
<datasource name="productInvoiceDataSource" connection="papo" |
10 |
_entity_uid_type_data,_entity_uid_data" |
order_by="alien_document.date" |
11 |
order_by="_entity_data.name"> |
table="_entity_data, alien_document, alien_item, alien_product_item, alien_item_tax"> |
12 |
|
<condition> |
13 |
|
<and> |
14 |
|
<eq> |
15 |
|
<cfield name="_entity_data._table"/> |
16 |
|
<cfield name="alien_document.sender"/> |
17 |
|
</eq> |
18 |
|
<eq> |
19 |
|
<cfield name="alien_document.id"/> |
20 |
|
<cfield name="alien_item.alien_document"/> |
21 |
|
</eq> |
22 |
|
<eq> |
23 |
|
<cfield name="alien_item.id"/> |
24 |
|
<cfield name="alien_product_item.alien_item"/> |
25 |
|
</eq> |
26 |
|
<eq> |
27 |
|
<cfield name="alien_item.id"/> |
28 |
|
<cfield name="alien_item_tax.alien_item"/> |
29 |
|
</eq> |
30 |
|
<eq> |
31 |
|
<cfield name="alien_document.alien_document_type"/> |
32 |
|
<cconst value="2"/> |
33 |
|
</eq> |
34 |
|
</and> |
35 |
|
</condition> |
36 |
|
</datasource> |
37 |
|
<datasource name="invTaxTotDataSource" connection="papo" |
38 |
|
table="alien_document, alien_document_tax"> |
39 |
|
<condition> |
40 |
|
<eq> |
41 |
|
<cfield name="alien_document.id"/> |
42 |
|
<cfield name="alien_document_tax.alien_document"/> |
43 |
|
</eq> |
44 |
|
</condition> |
45 |
|
</datasource> |
46 |
|
<datasource name="providerSearchDataSource" connection="papo" |
47 |
|
order_by="_entity_data.name" |
48 |
|
table="entity, _entity_data, alien_entity, _alien_entity_data, persona, _persona_data, provider, _provider_data, entity_type_uid_conf, _entity_uid_type_data,_entity_uid_data"> |
49 |
<condition> |
<condition> |
50 |
<and> |
<and> |
51 |
<eq> |
<eq> |
77 |
<cfield name="_provider_data.persona"/> |
<cfield name="_provider_data.persona"/> |
78 |
</eq> |
</eq> |
79 |
<eq> |
<eq> |
80 |
<cfield name="_entity_data._table"/> |
<cfield name="_entity_data._table"/> |
81 |
<cfield name="_entity_uid_data.entity"/> |
<cfield name="_entity_uid_data.entity"/> |
82 |
</eq> |
</eq> |
83 |
<eq> |
<eq> |
84 |
<cfield name="_entity_uid_data.entity_uid_type"/> |
<cfield name="_entity_uid_data.entity_uid_type"/> |
85 |
<cfield name="_entity_uid_type_data._table"/> |
<cfield name="_entity_uid_type_data._table"/> |
86 |
</eq> |
</eq> |
87 |
<eq> |
<eq> |
88 |
<cfield name="_entity_type_data._table"/> |
<cfield name="_entity_type_data._table"/> |
89 |
<cfield name="entity_type_uid_conf.entity_type"/> |
<cfield name="entity_type_uid_conf.entity_type"/> |
90 |
</eq> |
</eq> |
91 |
<eq> |
<eq> |
92 |
<cfield name="entity_type_uid_conf.entity_type"/> |
<cfield name="entity_type_uid_conf.entity_type"/> |
93 |
<cconst value="7"/> <!-- Es el id del entity_type correspondiente a cliente --> |
<cconst value="7"/> |
94 |
</eq> |
</eq> |
95 |
<null> |
<null> |
96 |
<cfield name="_entity_data._end_t"/> |
<cfield name="_entity_data._end_t"/> |
111 |
<cfield name="_entity_type_data._end_t"/> |
<cfield name="_entity_type_data._end_t"/> |
112 |
</null> |
</null> |
113 |
<null> |
<null> |
114 |
<cfield name="_entity_uid_type_data._end_t"/> |
<cfield name="_entity_uid_type_data._end_t"/> |
115 |
</null> |
</null> |
116 |
</and> |
</and> |
117 |
</condition> |
</condition> |
118 |
</datasource> |
</datasource> |
119 |
|
<datasource name="printDataSource" cache="1"/> |
|
<datasource name="invTaxTotDataSource" database="papo" |
|
|
table="alien_document, alien_document_tax"> |
|
|
<condition> |
|
|
<eq> |
|
|
<cfield name="alien_document.id"/> |
|
|
<cfield name="alien_document_tax.alien_document"/> |
|
|
</eq> |
|
|
</condition> |
|
|
</datasource> |
|
|
|
|
|
<datasource name="productInvoiceDataSource" database="papo" |
|
|
table="_entity_data, alien_document, alien_item, alien_product_item, alien_item_tax" |
|
|
order_by="alien_document.date"> |
|
|
<condition> |
|
|
<and> |
|
|
<eq> |
|
|
<!-- Aqui se refiere al cliente --> |
|
|
<cfield name="_entity_data._table"/> |
|
|
<cfield name="alien_document.sender"/> |
|
|
</eq> |
|
|
<eq> |
|
|
<cfield name="alien_document.id"/> |
|
|
<cfield name="alien_item.alien_document"/> |
|
|
</eq> |
|
|
<eq> |
|
|
<cfield name="alien_item.id"/> |
|
|
<cfield name="alien_product_item.alien_item"/> |
|
|
</eq> |
|
|
<eq> |
|
|
<cfield name="alien_item.id"/> |
|
|
<cfield name="alien_item_tax.alien_item"/> |
|
|
</eq> |
|
|
<eq> |
|
|
<cfield name="alien_document.alien_document_type"/> |
|
|
<cconst value="2"/> |
|
|
</eq> |
|
|
</and> |
|
|
</condition> |
|
|
</datasource> |
|
|
|
|
|
|
|
|
<datasource database="papo" name="alienDocumentDataSource" table="alien_document" |
|
|
order_by="date" /> |
|
|
|
|
120 |
<trigger name="printTrigger" type="NAMED"><![CDATA[ |
<trigger name="printTrigger" type="NAMED"><![CDATA[ |
121 |
|
|
122 |
if not str(printBlock.printBox.startDateEntry).strip() \ |
if not str(printBlock.startDateEntry).strip() \ |
123 |
or not str(printBlock.printBox.startDateEntry).strip(): |
or not str(printBlock.startDateEntry).strip(): |
124 |
genericBox("Las fechas deben tener un valor",['Aceptar']) |
genericBox("Las fechas deben tener un valor",['Aceptar']) |
125 |
else: |
else: |
126 |
import gnue.common.GConditions as GConditions |
import gnue.common.GConditions as GConditions |
139 |
tmpAnd = GConditions.GCand(condProductInvoice) |
tmpAnd = GConditions.GCand(condProductInvoice) |
140 |
ge = GConditions.GCge(tmpAnd) |
ge = GConditions.GCge(tmpAnd) |
141 |
GConditions.GCField(ge,"alien_document.date") |
GConditions.GCField(ge,"alien_document.date") |
142 |
GConditions.GCConst(ge,str(printBlock.printBox.startDateEntry)) |
GConditions.GCConst(ge,str(printBlock.startDateEntry)) |
143 |
le = GConditions.GCle(tmpAnd) |
le = GConditions.GCle(tmpAnd) |
144 |
GConditions.GCField(le,"alien_document.date") |
GConditions.GCField(le,"alien_document.date") |
145 |
GConditions.GCConst(le,str(printBlock.printBox.endDateEntry)) |
GConditions.GCConst(le,str(printBlock.endDateEntry)) |
146 |
|
|
147 |
productInvoiceResultSet = productInvoiceDataSource.createResultSet(condProductInvoice) |
productInvoiceResultSet = productInvoiceDataSource.createResultSet(condProductInvoice) |
148 |
more = productInvoiceResultSet.firstRecord() |
more = productInvoiceResultSet.firstRecord() |
189 |
hack.previewPrint(table) |
hack.previewPrint(table) |
190 |
|
|
191 |
]]></trigger> |
]]></trigger> |
|
|
|
192 |
<trigger name="startWaitingModeTrigger" type="NAMED"><![CDATA[ |
<trigger name="startWaitingModeTrigger" type="NAMED"><![CDATA[ |
193 |
setStatusText("Procesando ...") |
setStatusText("Procesando ...") |
194 |
try: |
try: |
201 |
# busy clock |
# busy clock |
202 |
self._object.dispatchEvent(GFEvent('beginWAIT')) |
self._object.dispatchEvent(GFEvent('beginWAIT')) |
203 |
]]></trigger> |
]]></trigger> |
|
|
|
204 |
<trigger name="endWaitingModeTrigger" type="NAMED"><![CDATA[ |
<trigger name="endWaitingModeTrigger" type="NAMED"><![CDATA[ |
205 |
try: |
try: |
206 |
# gnue version <= 0.4 |
# gnue version <= 0.4 |
212 |
self._object.dispatchEvent(GFEvent('endWAIT')) |
self._object.dispatchEvent(GFEvent('endWAIT')) |
213 |
setStatusText("Listo") |
setStatusText("Listo") |
214 |
]]></trigger> |
]]></trigger> |
215 |
|
<logic> |
216 |
<page name="Listado IVA Compras"> |
<block name="printBlock" datasource="printDataSource" restrictInsert=""> |
217 |
|
<field name="startDateEntry" typecast="date"/> |
218 |
<block datasource="printDataSource" name="printBlock" restrictInsert=""> |
<field name="endDateEntry" typecast="date"/> |
|
|
|
|
<box height="8" label="Listado de I.V.A. Compras" |
|
|
name="printBox" width="25" x="1" y="1"> |
|
|
<label name="startDateLbl" text="Desde : " x="1" y="1"/> |
|
|
<entry name="startDateEntry" typecast="date" x="9" y="1" width="12"/> |
|
|
<label name="startDateLbl" text="Hasta : " x="1" y="2"/> |
|
|
<entry name="endDateEntry" typecast="date" x="9" y="2" width="12"/> |
|
|
<button x="2" y="4" trigger="printTrigger" width="20" label="Imprimir" |
|
|
name="printBotton" height="1"/> |
|
|
|
|
|
</box> |
|
|
|
|
219 |
</block> |
</block> |
220 |
|
</logic> |
221 |
</page> |
<layout xmlns:c="GNUe:Layout:Char" c:height="10" c:width="30"> |
222 |
|
<page name="Listado IVA Compras"> |
223 |
|
<box name="printBox" c:height="8" label="Listado de I.V.A. Compras" |
224 |
|
c:width="25" c:x="1" c:y="1"/> |
225 |
|
<label name="startDateLbl" text="Desde : " c:x="3" c:y="3"/> |
226 |
|
<entry block="printBlock" field="startDateEntry" c:width="12" c:x="11" |
227 |
|
c:y="3"/> |
228 |
|
<label name="startDateLbl" text="Hasta : " c:x="3" c:y="4"/> |
229 |
|
<entry block="printBlock" field="endDateEntry" c:width="12" c:x="11" |
230 |
|
c:y="4"/> |
231 |
|
<button name="printBotton" c:height="1" label="Imprimir" c:width="20" |
232 |
|
c:x="4" c:y="6"> |
233 |
|
<trigger src="printTrigger" type="On-Action"/> |
234 |
|
</button> |
235 |
|
</page> |
236 |
|
</layout> |
237 |
</form> |
</form> |