663 |
line += "-" |
line += "-" |
664 |
table.append(line) |
table.append(line) |
665 |
|
|
666 |
|
if str(clientSearchBlock.searchCodeEntry) or str(clientSearchBlock.searchNameEntry): |
667 |
|
clientCondition = GConditions.GConditions() |
668 |
|
tmpAnd = GConditions.GCand(clientCondition) |
669 |
|
if str(clientSearchBlock.searchCodeEntry): |
670 |
|
eq1 = GConditions.GClike(tmpAnd) |
671 |
|
GConditions.GCField(eq1,"_entity_uid_data.uid") |
672 |
|
GConditions.GCConst(eq1,str(clientSearchBlock.searchCodeEntry)+'%') |
673 |
|
if str(clientSearchBlock.searchNameEntry): |
674 |
|
eq2 = GConditions.GClike(tmpAnd) |
675 |
|
GConditions.GCField(eq2,"_entity_data.name") |
676 |
|
GConditions.GCConst(eq2,str(clientSearchBlock.searchNameEntry)+'%') |
677 |
|
clientResulSet = printClientDataSource.createResultSet(clientCondition) |
678 |
|
else: |
679 |
|
clientResulSet = printClientDataSource.createResultSet() |
680 |
|
|
|
clientResulSet = printClientDataSource.createResultSet() |
|
681 |
more = clientResulSet.firstRecord(); |
more = clientResulSet.firstRecord(); |
682 |
|
|
683 |
while more: |
while more: |
734 |
|
|
735 |
line = "| " +printField(clientResulSet.current.getField("_entity_uid_data.uid"),14)+ " | " |
line = "| " +printField(clientResulSet.current.getField("_entity_uid_data.uid"),14)+ " | " |
736 |
line += printField(clientResulSet.current.getField("_entity_data.name"),20) + " | " |
line += printField(clientResulSet.current.getField("_entity_data.name"),20) + " | " |
737 |
|
|
738 |
if addresses: |
if addresses: |
739 |
line += printField(addresses.pop(),20) + " | " |
line += printField(addresses.pop(),20) + " | " |
740 |
else: |
else: |