/[papo]/papo/forms/product.gfd
ViewVC logotype

Diff of /papo/forms/product.gfd

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

revision 1.32 by apronotti, Wed Apr 2 15:19:01 2003 UTC revision 1.33 by charlie, Fri Apr 4 16:27:10 2003 UTC
# Line 277  Line 277 
277        line += "-"        line += "-"
278    table.append(line)    table.append(line)
279    
280    productResulSet = printProductDataSource.createResultSet()    if str(productSearchBlock.searchCodeEntry) or str(productSearchBlock.searchNameEntry):
281          productCondition = GConditions.GConditions()
282          tmpAnd = GConditions.GCand(productCondition)
283          if str(productSearchBlock.searchCodeEntry):
284              eq1 = GConditions.GClike(tmpAnd)
285              GConditions.GCField(eq1,"_entity_uid_data.uid")
286              GConditions.GCConst(eq1,str(productSearchBlock.searchCodeEntry)+'%')
287          if str(productSearchBlock.searchNameEntry):
288              eq2 = GConditions.GClike(tmpAnd)
289              GConditions.GCField(eq2,"_entity_data.name")
290              GConditions.GCConst(eq2,str(productSearchBlock.searchNameEntry)+'%')
291          productResulSet = printProductDataSource.createResultSet(productCondition)
292      else:
293          productResulSet = printProductDataSource.createResultSet()
294    
295    more = productResulSet.firstRecord();    more = productResulSet.firstRecord();
296    
297    while more:    while more:
# Line 375  Line 389 
389        <entry name="searchCodeEntry" x="23" y="3" width="19"/>        <entry name="searchCodeEntry" x="23" y="3" width="19"/>
390        <button x="60" y="2" trigger="productSearchTrigger" width="9" label="Buscar"        <button x="60" y="2" trigger="productSearchTrigger" width="9" label="Buscar"
391          name="searchBtn" height="1"/>          name="searchBtn" height="1"/>
392        <button x="60" y="20" trigger="printTrigger" width="9" label="Imprimir"        <button x="60" y="3" trigger="printTrigger" width="9" label="Imprimir"
393          name="searchBtn" height="1"/>          name="searchBtn" height="1"/>
394        <entry name="funnyLabel" width="40" x="40" y="4" style="label"/>        <entry name="funnyLabel" width="40" x="40" y="4" style="label"/>
395       </block>       </block>

Legend:
Removed from v.1.32  
changed lines
  Added in v.1.33

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