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: |
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> |