204 |
</trigger> |
</trigger> |
205 |
|
|
206 |
<trigger type="NAMED" name="printTrigger"> |
<trigger type="NAMED" name="printTrigger"> |
207 |
print 'printTrigger' |
print 'printTrigger' |
208 |
import string |
runForm('priceList.gfd', |
209 |
import hack |
{ "wanted": int(str(priceTypeResultBlock.priceTypeIdREntry)), |
210 |
|
"wanted_name": str(priceTypeResultBlock.nameListEntry) }) |
211 |
|
|
|
callTrigger('searchPageFocusoutTrigger') |
|
|
searchProductByNameBlock.clear() |
|
|
searchProductByCodeBlock.clear() |
|
|
#busco solo los no excluidos |
|
|
callTrigger('searchProductTrigger') |
|
|
recordCount = priceModifyBlock.getRecordCount() |
|
|
priceModifyBlock.firstRecord() |
|
|
table = [] |
|
|
line="\n\nLista de precios \""+str(pricePriceTypeBlock.priceTypename)+"\"\n\n\n" |
|
|
table.append(line) |
|
|
line = "Código".center(10)+" | "+"Producto".center(50)+" | "+"Precio".center(14)+"\n" |
|
|
table.append(line) |
|
|
for idx in range(recordCount-1): |
|
|
#print str(priceModifyBlock.priceModifyExcludedEntry) |
|
|
if (str(priceModifyBlock.priceModifyExcludedEntry) == "0" ): |
|
|
#cargo el formato de impresión de esta lista |
|
|
price_format = str(priceModifyBlock.priceModifyFormatEntry) or "$ %10.2f" |
|
|
line = string.ljust(str(priceModifyBlock.priceModifyCodeListEntry),10) |
|
|
line += " | "+string.ljust(str(priceModifyBlock.priceModifyNameListEntry),50) |
|
|
line += " | "+string.rjust( price_format % hack.a2f(priceModifyBlock.priceModifyPriceListEntry),14) |
|
|
table.append(line) |
|
|
priceModifyBlock.nextRecord() |
|
212 |
|
|
213 |
hack.previewPrint(table) |
|
214 |
|
# import string |
215 |
|
# import hack |
216 |
|
# |
217 |
|
# callTrigger('searchPageFocusoutTrigger') |
218 |
|
# searchProductByNameBlock.clear() |
219 |
|
# searchProductByCodeBlock.clear() |
220 |
|
# #busco solo los no excluidos |
221 |
|
# callTrigger('searchProductTrigger') |
222 |
|
# recordCount = priceModifyBlock.getRecordCount() |
223 |
|
# priceModifyBlock.firstRecord() |
224 |
|
# table = [] |
225 |
|
# line="\n\nLista de precios \""+str(pricePriceTypeBlock.priceTypename)+"\"\n\n\n" |
226 |
|
# table.append(line) |
227 |
|
# line = "Código".center(10)+" | "+"Producto".center(50)+" | "+"Precio".center(14)+"\n" |
228 |
|
# table.append(line) |
229 |
|
# for idx in range(recordCount-1): |
230 |
|
# #print str(priceModifyBlock.priceModifyExcludedEntry) |
231 |
|
# if (str(priceModifyBlock.priceModifyExcludedEntry) == "0" ): |
232 |
|
# #cargo el formato de impresión de esta lista |
233 |
|
# price_format = str(priceModifyBlock.priceModifyFormatEntry) or "$ %10.2f" |
234 |
|
# line = string.ljust(str(priceModifyBlock.priceModifyCodeListEntry),10) |
235 |
|
# line += " | "+string.ljust(str(priceModifyBlock.priceModifyNameListEntry),50) |
236 |
|
# line += " | "+string.rjust( price_format % hack.a2f(priceModifyBlock.priceModifyPriceListEntry),14) |
237 |
|
# table.append(line) |
238 |
|
# priceModifyBlock.nextRecord() |
239 |
|
# |
240 |
|
# hack.previewPrint(table) |
241 |
</trigger> |
</trigger> |
242 |
|
|
243 |
<trigger type="NAMED" name="searchPageFocusoutTrigger"> |
<trigger type="NAMED" name="searchPageFocusoutTrigger"> |