PLAT#41505 , maar dan het zoekveld op code/naam als tekst ipv suggest

svn path=/Website/trunk/; revision=34918
This commit is contained in:
Peter Feij
2017-08-11 14:07:30 +00:00
parent 6e7398ddad
commit b3407df232
3 changed files with 16 additions and 8 deletions

View File

@@ -195,9 +195,11 @@ function locatie_list(pautfunction, params)
{
sqln += " AND d.alg_regio_key = " + reg_key;
}
if (params.loc_code)
sqln += " AND UPPER(l.alg_locatie_code) LIKE " + safe.quoted_sql_wild(params.loc_code + "%");
sqln += " AND UPPER(l.alg_locatie_code) LIKE " + safe.quoted_sql_wild(params.loc_code + "%");
if (params.loc_descr)
sqln += " AND UPPER(l.alg_locatie_omschrijving) LIKE " + safe.quoted_sql_wild(params.loc_descr + "%");
sqln += " ORDER BY l.alg_locatie_upper ASC "

View File

@@ -53,7 +53,7 @@ var authparams = alg.checkAutorisation();
districtkey: district_key,
locatiekey: locatie_key,
startlevel: 1, // District
eindlevel: 2, // locatie
eindlevel: 1, // District
whenEmpty: L("lcl_search_generic") // want filter
});
%>
@@ -61,6 +61,10 @@ var authparams = alg.checkAutorisation();
<td class="label"><label><%=L("lcl_estate_locatie_man_code")%>:</label></td>
<td><input type="text" class="wildcard" id="loc_code" name="loc_code" value=""></td>
</tr>
<tr class="primsearch">
<td class="label"><label><%=L("lcl_estate_locatie_man_descr")%>:</label></td>
<td><input type="text" class="wildcard" id="loc_descr" name="loc_descr" value=""></td>
</tr>
</table>
</td><!-- end column 1 -->

View File

@@ -3,10 +3,10 @@
$Revision$
$Id$
File:
Description:
Parameters:
Context:
File:
Description:
Parameters:
Context:
Note:
*/ %>
@@ -26,6 +26,7 @@ var reg_key = getQParamInt("regiokey", -1); // Regio
var dis_key = getQParamInt("districtkey", -1); // District
var loc_key = getQParamInt("locatiekey", -1); // Locatie
var loc_code = getQParam("loc_code", ""); // Locatiecode
var loc_descr = getQParam("loc_descr", ""); // Locatienaam
locatie_list ( "*",
{ outputmode: outputmode,
@@ -33,7 +34,8 @@ locatie_list ( "*",
reg_key: (reg_key != -1? reg_key : null),
dis_key: (dis_key != -1? dis_key : null),
loc_key: (loc_key != -1? loc_key : null),
loc_code: loc_code,
loc_code: loc_code,
loc_descr: loc_descr,
noref: (noref != -1? noref : null)
}
);