119 |
priceTypeResultBlock.processQuery() |
priceTypeResultBlock.processQuery() |
120 |
</trigger> |
</trigger> |
121 |
|
|
122 |
<page name="Listas de Precios"> |
<trigger type="NAMED" name="printTrigger"> |
123 |
<trigger type="Pre-Focusout"> |
import string |
124 |
|
import hack |
125 |
|
|
126 |
|
callTrigger('searchPageFocusoutTrigger') |
127 |
|
searchProductByNameBlock.processRollback() |
128 |
|
searchProductByCodeBlock.processRollback() |
129 |
|
callTrigger('searchProductTrigger') |
130 |
|
recordCount = priceModifyBlock.getRecordCount() |
131 |
|
priceModifyBlock.firstRecord() |
132 |
|
table = [] |
133 |
|
line="\n\nLista de precios \""+str(pricePriceTypeBlock.priceTypename)+"\"\n\n\n" |
134 |
|
table.append(line) |
135 |
|
line = "Código".center(10)+" | "+"Producto".center(30)+" | "+"Precio".center(14)+"\n" |
136 |
|
table.append(line) |
137 |
|
for idx in range(recordCount-1): |
138 |
|
line = string.rjust(str(priceModifyBlock.priceModifyCodeListEntry),10) |
139 |
|
line += " | "+string.ljust(str(priceModifyBlock.priceModifyNameListEntry),30) |
140 |
|
line += " | "+string.rjust(str(priceModifyBlock.priceModifyPriceListEntry),14) |
141 |
|
table.append(line) |
142 |
|
priceModifyBlock.nextRecord() |
143 |
|
|
144 |
|
hack.previewPrint(table) |
145 |
|
</trigger> |
146 |
|
|
147 |
|
<trigger type="NAMED" name="searchPageFocusoutTrigger"> |
148 |
priceTypeBlock.processRollback() |
priceTypeBlock.processRollback() |
149 |
priceModifyBlock.processRollback() |
priceModifyBlock.processRollback() |
150 |
if priceTypeResultBlock.getRecordCount() > 0 and not priceTypeResultBlock.getCurrentRecord().isEmpty(): |
if priceTypeResultBlock.getRecordCount() > 0 and not priceTypeResultBlock.getCurrentRecord().isEmpty(): |
151 |
priceTypeBlock.initQuery() |
priceTypeBlock.initQuery() |
152 |
priceTypeBlock.priceTypeIdEntry = ("%s" % priceTypeResultBlock.priceTypeIdREntry) |
priceTypeBlock.priceTypeIdEntry = ("%s" % priceTypeResultBlock.priceTypeIdREntry) |
153 |
priceTypeBlock.processQuery() |
priceTypeBlock.processQuery() |
154 |
</trigger> |
</trigger> |
155 |
|
|
156 |
|
<page name="Listas de Precios"> |
157 |
|
<trigger type="Pre-Focusout" src="searchPageFocusoutTrigger"/> |
158 |
<block name="searchPriceListBlock" datasource="searchDataSource" transparentBlock="" restrictInsert=""> |
<block name="searchPriceListBlock" datasource="searchDataSource" transparentBlock="" restrictInsert=""> |
159 |
<label text="Lista de precios a buscar" |
<label text="Lista de precios a buscar" |
160 |
x="1" y="1"/> |
x="1" y="1"/> |
163 |
</entry> |
</entry> |
164 |
<button x="36" y="2" trigger="searchTrigger" width="9" label="Buscar" |
<button x="36" y="2" trigger="searchTrigger" width="9" label="Buscar" |
165 |
name="searchBtn" height="1"/> |
name="searchBtn" height="1"/> |
166 |
|
<button x="46" y="2" trigger="printTrigger" width="9" label="Imprimir" |
167 |
|
name="printBtn" height="1"/> |
168 |
|
|
169 |
</block> |
</block> |
170 |
<block name="priceTypeResultBlock" datasource="priceTypeResultDataSource"> |
<block name="priceTypeResultBlock" datasource="priceTypeResultDataSource"> |
191 |
|
|
192 |
<label text="lista activa" |
<label text="lista activa" |
193 |
x="1" y="3"/> |
x="1" y="3"/> |
194 |
<entry name="isActiveEntry" field="_price_type_data.is_active" x="1" y="4" width="1"/> |
<entry name="isActiveEntry" field="_price_type_data.is_active" x="1" y="4" width="1" default="S" /> |
195 |
<label text="Esta lista esta basada en la lista ..." |
<label text="Esta lista esta basada en la lista ..." |
196 |
x="1" y="5"/> |
x="1" y="5"/> |
197 |
<entry x="1" y="6" field="_price_type_data.parent" |
<entry x="1" y="6" field="_price_type_data.parent" |