2015-03-06 23:33:54 +00:00
|
|
|
<vn>
|
|
|
|
<div id="form" class="users">
|
|
|
|
<div class="box">
|
|
|
|
<div class="header">
|
|
|
|
<h1><t>UserManagement</t></h1>
|
|
|
|
</div>
|
|
|
|
<table class="form">
|
|
|
|
<tbody>
|
|
|
|
<tr>
|
|
|
|
<td class="label">
|
|
|
|
<label><t>UserName:</t></label>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<htk-entry>
|
|
|
|
<vn-param id="user-name"/>
|
|
|
|
</htk-entry>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
<div>
|
2015-03-27 19:10:49 +00:00
|
|
|
<htk-grid>
|
|
|
|
<db-model>
|
2015-03-06 23:33:54 +00:00
|
|
|
SELECT u.id, u.name, c.Cliente
|
|
|
|
FROM account.user u
|
|
|
|
INNER JOIN vn2008.Clientes c ON u.id = c.Id_Cliente
|
|
|
|
WHERE u.name LIKE CONCAT('%', #user, '%')
|
|
|
|
OR c.Cliente LIKE CONCAT('%', #user, '%')
|
|
|
|
OR u.id = #user
|
|
|
|
ORDER BY u.name LIMIT 200
|
|
|
|
<sql-batch property="batch">
|
|
|
|
<item name="user" param="user-name"/>
|
|
|
|
</sql-batch>
|
|
|
|
</db-model>
|
2015-03-27 19:10:49 +00:00
|
|
|
<htk-column-button
|
|
|
|
column="id"
|
|
|
|
image="image/supplant.png"
|
|
|
|
tip="_AccessAsUser"
|
|
|
|
on-clicked="onChangeUserClick"/>
|
|
|
|
<htk-column-button
|
|
|
|
column="id"
|
|
|
|
image="image/access-log.svg"
|
|
|
|
tip="_AccessLog"
|
|
|
|
on-clicked="onAccessLogClick"/>
|
2015-03-06 23:33:54 +00:00
|
|
|
<htk-column-spin title="_UserNumber" column="id"/>
|
|
|
|
<htk-column-text title="_UserName" column="name"/>
|
|
|
|
<htk-column-text title="_Alias" column="Cliente"/>
|
|
|
|
</htk-grid>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</vn>
|