<?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="winRelatorioPricingEspecifico"?>
<?taglib uri="http://www.zkoss.org/dsp/web/core" prefix="c"?>

<zk xmlns="http://www.zkoss.org/2005/zul">
    <window id="winRelatorioPricingEspecifico" border="normal"
            apply="${relatorioPricingEspecificoController}"
            width="950px" contentStyle="overflow:auto" sizable="true"
            title="${c:l('relatorioPricingEspecificoController.window.title')}"
            xmlns:h="http://www.w3.org/1999/xhtml">

        <toolbar>
            <button id="btnCerrar" onClick="winRelatorioPricingEspecifico.detach()" image="/gui/img/exit.png" width="35px"
                    tooltiptext="${c:l('busquedaPricingController.btnCerrar.tooltiptext')}"/>
        </toolbar>

        <grid fixedLayout="true">
            <columns>
                <column width="20%" />
                <column width="30%" />
                <column width="20%" />
                <column width="30%" />
            </columns>
            <rows>
                <row spans="1,3">
                    <label value="${c:l('editarPricingController.nombrePricingEsp.label')}"/>
                    <textbox id="txtNombrePricing" maxlength="20"
                        width="99%" use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox"/>
                </row>
                
                <row>
                    <label value="${c:l('editarRelatorioPricingController.lhdataInicioViagem.label')}"/>
                    <datebox width="50%" id="inicioDataViagem" format="dd/MM/yyyy HH:mm" mold="rounded" />
                    
                    <label value="${c:l('editarRelatorioPricingController.lhdataFimViagem.label')}"/>
                    <datebox width="50%" id="fimDataViagem" format="dd/MM/yyyy HH:mm" mold="rounded" />
                </row>
                
                <row>
                    <label value="${c:l('editarRelatorioPricingController.lhdataInicioVenda.label')}"/>
                    <datebox width="50%" id="inicioDataVenda" format="dd/MM/yyyy HH:mm" mold="rounded" />
                    
                    <label value="${c:l('editarRelatorioPricingController.lhdataFimVenda.label')}"/>
                    <datebox width="50%" id="fimDataVenda" format="dd/MM/yyyy HH:mm" mold="rounded" />
                </row>
                
                 <row>
                 	<label value="${c:l('editarPricingController.windowCodServico.title')}"/>
                    <intbox id="txtCodigoServico" width="90%" />
                 	
                    <label value="${c:l('editarPricingController.windowTipoServicio.title')}"/>
                    <combobox id="cmbTipoServicio" use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
                              mold="rounded" buttonVisible="true" width="90%"
                              model="@{winRelatorioPricingEspecifico$composer.lsClaseServicio}"/>
                </row>
                
                <row>
                    <label value="${c:l('editarPricingController.marca.value')}"/>
                    <combobox id="cmbMarca"  use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
                              mold="rounded" buttonVisible="true" width="90%"
                              model="@{winRelatorioPricingEspecifico$composer.lsMarca}"/>
				
					<label value="${c:l('editarRelatorioPricingController.tarifaVolta.title')}"/>
                    <doublebox id="txtTarifa" width="50%"/>
                   
                </row>
                <row>
                    <label value="${c:l('editarPricingController.origem.label')}"/>
                    <combobox id="cmbOrigem" mold="rounded" buttonVisible="true" width="90%" use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxParada"/>

                    <label value="${c:l('editarPricingController.destino.label')}"/>
                    <combobox id="cmbDestino" mold="rounded" buttonVisible="true" width="90%" use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxParada"/>
                </row>
               
                <row>
                    <label value="${c:l('editarPricingController.windowCategoria.title')}"/>
                    <combobox id="cmbTipoPassageiro" use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
                              mold="rounded" buttonVisible="true" width="90%"
                              model="@{winRelatorioPricingEspecifico$composer.lsCategoria}"/>
                       
                    <label value="${c:l('editarPricingController.ptovta.value')}"/>
                    <combobox id="cmbPtovta"  use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
                              mold="rounded" buttonVisible="true" width="90%"
                              model="@{winRelatorioPricingEspecifico$composer.lsPtovata}"/>
                </row>
                
                <row spans="1,3" >
					<label value="${c:l('editarPricingController.lhDiaDaSemana.label')}" />
					
					<hlayout>
						<label value="${c:l('editarPricingController.lhDomingo.label')}" />
						<checkbox id="chkDomingo" checked="true"/>
						
						<label value="${c:l('editarPricingController.lhSegunda.label')}" />
						<checkbox id="chkSegunda" checked="true"/>
						
						<label value="${c:l('editarPricingController.lhTerca.label')}" />
						<checkbox id="chkTerca" checked="true"/>
						
						<label value="${c:l('editarPricingController.lhQuarta.label')}" />
						<checkbox id="chkQuarta" checked="true"/>
						
						<label value="${c:l('editarPricingController.lhQuinta.label')}" />
						<checkbox id="chkQuinta" checked="true"/>
						
						<label value="${c:l('editarPricingController.lhSexta.label')}" />
						<checkbox id="chkSexta" checked="true"/>
						
						<label value="${c:l('editarPricingController.lhSabado.label')}" />
						<checkbox id="chkSabado" checked="true"/>
					</hlayout>
				</row>
				
				<row  spans="1,3">
					<label value="${c:l('editarPricingController.ocupacao')}" />
					<hlayout>
						<label value="${c:l('editarPricingController.ocupacaoInicial')}" />
						<intbox id="ocupacaoInicial" />
						
						<label value="${c:l('editarPricingController.ocupacaoFinal')}" />
						<intbox id="ocupacaoFinal" />
						
						<label value="${c:l('editarPricingController.TarifaOcupacao')}" />
						<doublebox id="txtTarifaOcupacao" />
						
						<label value="${c:l('editarPricingController.DescontoOcupacao')}" />
						<doublebox id="txtDescontoOcupacao" />
					</hlayout>
				</row>
                
                <row spans="1,3">
					<label value="Agencia" />
					<bandbox id="bbPesquisaPuntoVenta" width="100%" mold="rounded" readonly="true">
						<bandpopup>
							<vbox>
								<hbox>
									<label value="${c:l('relatorioVendasBilheteiroController.lbPuntoVenta.value')}" />
									<textbox id="txtNombrePuntoVenta" use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox" width="300px" mold="rounded" />
									
									<button id="btnPesquisa" image="/gui/img/find.png" label="${c:l('relatorioLinhaOperacionalController.btnPesquisa.label')}" />
									<button id="btnLimpar" image="/gui/img/eraser.png" label="${c:l('relatorioLinhaOperacionalController.btnLimpar.label')}" />
								</hbox>
								
								<paging id="pagingPuntoVenta" pageSize="10" />
								
								<listbox id="puntoVentaList" mold="paging" use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox" vflex="true" height="100%" width="700px">
									<listhead>
										<listheader label="${c:l('relatorioVendasBilheteiroController.lbPuntoVenta.value')}" />
										<listheader width="35%" label="${c:l('relatorioVendasBilheteiroController.lbEmpresa.value')}" />
										<listheader width="20%" label="${c:l('relatorioVendasBilheteiroController.lbNumero.value')}" />
									</listhead>
								</listbox>
							</vbox>
						</bandpopup>
					</bandbox>
				</row>	
				
				<row spans="4">
					<listbox id="puntoVentaSelList" mold="paging" use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox" vflex="true" height="100px" width="100%">
						<listhead>
							<listheader
								label="${c:l('relatorioVendasBilheteiroController.lbPuntoVenta.value')}" />
							<listheader width="35%"
								label="${c:l('relatorioVendasBilheteiroController.lbEmpresa.value')}" />
							<listheader width="20%"
								label="${c:l('relatorioVendasBilheteiroController.lbNumero.value')}" />
							<listheader width="15%" />
						</listhead>
					</listbox>
					<paging id="pagingSelPuntoVenta" pageSize="10" />
				</row>
               
            </rows>
        </grid>
        <toolbar>
            <button id="btnRelatorio" image="/gui/img/find.png"
                    label="${c:l('editarRelatorioPricingController.btnRelatorio.label')}"/>
        </toolbar>
    </window>
</zk>
