/[papo]/papo/forms/priceType.neb
ViewVC logotype

Diff of /papo/forms/priceType.neb

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.6 by fheinz, Sat Nov 22 00:12:03 2003 UTC revision 1.7 by jlenton, Mon Nov 24 21:46:36 2003 UTC
# Line 204  Foundation, Inc., 59 Temple Place, Suite Line 204  Foundation, Inc., 59 Temple Place, Suite
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">

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.7

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26