0
1
Fork 0
hedera-web-mindshore/web/forms/admin/users/ui.xml

53 lines
1.2 KiB
XML
Raw Normal View History

2015-03-06 23:33:54 +00:00
<vn>
<div id="title">
<h1><t>UserManagement</t></h1>
</div>
2015-03-06 23:33:54 +00:00
<div id="form" class="users">
<div class="box">
<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>
<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>
<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>