<?xml version="1.0" encoding="UTF-8"?>
<?page contentType="text/html;charset=UTF-8"?>
<?variable-resolver class="org.zkoss.zkplus.spring.DelegatingVariableResolver"?>
<?init class="org.zkoss.zkplus.databind.AnnotateDataBinderInit" arg0="winAuditoria"?>
<?taglib uri="http://www.zkoss.org/dsp/web/core" prefix="c"?>

<zk xmlns="http://www.zkoss.org/2005/zul">
    <window id="winAuditoria" title="${c:l('auditoriaController.window.title')}"
            apply="${auditoriaController}" contentStyle="overflow:auto"
            height="500px" width="1200px" border="normal" >
            
    <toolbar>
            <button id="btnRefresh" image="/gui/img/refresh.png" width="35px"
                    tooltiptext="${c:l('auditoriaController.btnRefresh.tooltiptext')}" />
            <separator orient="vertical" />
            <button id="btnCerrar" onClick="winAuditoria.detach()" image="/gui/img/exit.png" width="35px"
                    tooltiptext="${c:l('auditoriaController.btnCerrar.tooltiptext')}"/>
    </toolbar>
    
		<grid fixedLayout="true">
            <columns>
                <column width="15%"/>
                <column width="75%"/>
                <column width="15%"/>
                <column width="75%"/>
            </columns>
            <rows>
                <row> 
                	<label value="${c:l('auditoriaController.modulo.label')}"/>
                    <combobox id="cmbModulo"
                        use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
                        mold="rounded" buttonVisible="true" width="70%"
                        model="@{winAuditoria$composer.lsModulo}"/>
                	
                	<label value="Ambiente:"/>
                    <combobox id="cmbAmbiente"
                        use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
                        mold="rounded" buttonVisible="true" width="70%"
                        model="@{winAuditoria$composer.lsAmbiente}"/>
                </row>
                
                <row>
                    <label value="${c:l('auditoriaController.dataInicial.label')}"/>
					<datebox id="dtDataInicial" width="220px" mold="rounded" format="dd/MM/yyyy" />
					
					<label value="Acao"/>
					<combobox id="cmbAcao"
                        use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
                        mold="rounded" buttonVisible="true" width="70%"
                        model="@{winAuditoria$composer.lsAcao}"/>
                </row>
                
                <row>
                	<label value="${c:l('auditoriaController.dataFinal.label')}"/>
					<datebox id="dtDataFinal" width="220px" mold="rounded" format="dd/MM/yyyy" />
                </row> 
                
                <row id="rwMdUsuario">
            		<label value="Usuario ID" />
                	<textbox id="txtMdUsuario" width="50%" maxlength="5" />
                	
                	<label value="Custom" />
                	<textbox id="txtMdCustom" width="50%" maxlength="400" />
            	</row>     
         </rows>    
    	</grid>
    	
    	<toolbar>
			<button id="btnPesquisa" image="/gui/img/find.png"
				label="${c:l('busquedaEstacionController.btnPesquisa.label')}" />
		</toolbar>
    	
    	<paging id="pagingAudit" pageSize="10"/>
    	 <listbox id="auditoriaList" use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
                       multiple="false" height="170px" width="1175px" >
            <listhead sizable="true">
        		<listheader id="lhData" image="/gui/img/create_doc.gif"
                	label="${c:l('auditoriaController.lhData.label')}"
                	sort="auto(createDate)" width="90px"/>
        		<listheader id="lhAmbiente" image="/gui/img/create_doc.gif"
                	label="${c:l('auditoriaController.lhAmbiente.label')}"
                	sort="auto(sistema)" width="200px"/>
            	<listheader id="lhModulo" image="/gui/img/create_doc.gif"
                	label="${c:l('auditoriaController.lhModulo.label')}"
                	sort="auto(auditServiceId)" width="280px" />
            	<listheader id="lhAcao" image="/gui/img/create_doc.gif"
                	label="${c:l('auditoriaController.lhAcao.label')}"
                	sort="auto(action)" width="50%" />
                <listheader id="lhEntidade" image="/gui/img/create_doc.gif"
                	label="Entidade" sort="auto(entityName)" width="50%" /> 
                <listheader id="lhUsuario" image="/gui/img/create_doc.gif"
                	label="Usuario" sort="auto(usuario)" width="100%" />
         	</listhead>
         </listbox>
         
         <paging id="pagingModuleDetail" pageSize="10" visible="false" />
    	 <listbox id="auditoriaModelDetailList" use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
                       multiple="false" height="170px" width="1200px" visible="false" >
            <listhead sizable="true">
        		<listheader id="lhMDId" image="/gui/img/create_doc.gif"
                	label="ID" />
                <listheader id="lhMDUsuario" image="/gui/img/create_doc.gif"
                	label="Usuario" />
                <listheader id="lhMDSistema" image="/gui/img/create_doc.gif"
                	label="Ambiente" />
        		<listheader id="lhMDData" image="/gui/img/create_doc.gif"
                	label="Data Alteracao" />
                <listheader id="lhMDAcao" image="/gui/img/create_doc.gif"
                	label="Acao" />
         	</listhead>
         </listbox>
    </window>
</zk>