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

<zk xmlns="http://www.zkoss.org/2005/zul">

	<window id="winEditarGP_PricingEspecifico" border="normal"
		apply="${editarGP_PricingEspecificoController}" width="600px"
		contentStyle="overflow:auto"
		title="${c:l('busqueDaGPPricingEspecifico.window.title')}">

		<toolbar>
			<hbox spacing="5px" style="padding:1px" align="right">
				<button id="btnApagar" height="20"
					image="/gui/img/remove.png" width="35px"
					tooltiptext="${c:l('editarPricingController.btnApagarPricing.tooltiptext')}" />
				<button id="btnSalvar" disabled="${arg.isReadOnly}"
					height="20" image="/gui/img/save.png" width="35px"
					tooltiptext="${c:l('editarPricingController.btnSalvar.tooltiptext')}" />

				<separator orient="vertical" />

				<button id="btnCopiar" disabled="${arg.isReadOnly}"
					height="20" image="/gui/img/copiar.png" width="35px"
					tooltiptext="${c:l('editarPricingController.btnCopiar.tooltiptext')}" />

				<separator orient="vertical" />

				<button id="btnFechar"
					onClick="winEditarGP_PricingEspecifico.detach()" height="20"
					image="/gui/img/exit.png" width="35px"
					tooltiptext="${c:l('editarPricingController.btnFechar.tooltiptext')}" />

				<separator orient="vertical" />


				<colorbox id="colorChoose"
					style="color: red; font-style: oblique;" hash="true"
					pickerClosable="false" pickerPosition="right" width="55px" />
			</hbox>
		</toolbar>
		<tabbox id="tb">
			<tabs id="tabs">
				<tab id="A"
					label="${c:l('editarPricingEspecificoController.tabGen.label')}" />
				<tab id="B"
					label="${c:l('editarPricingEspecificoController.tabCat.label')}" />
				<tab id="C"
					label="${c:l('editarPricingEspecificoController.tabAge.label')}" />
				<tab id="D"
					label="${c:l('editarPricingController.ptovta.value')}" />
			</tabs>

			<tabpanels>
				<!-- General -->
				<tabpanel>
					<grid>
						<columns>
							<column width="40%" />
							<column width="60%" />
						</columns>
						<rows>
							<row>
								<label
									value="${c:l('editarPricingController.nombrePricingEsp.label')}" />
								<textbox id="nombrePricing"
									constraint="no empty" maxlength="20"
									value="@{winEditarGP_PricingEspecifico$composer.pricingEspecifico.nombPricing}"
									width="50%"
									use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox" />
							</row>
							<row>
								<label
									value="${c:l('editarPricingController.lhFechaHoraInicio.label')}" />
								<datebox width="200px" id="fechaInicio"
									value="@{winEditarGP_PricingEspecifico$composer.pricingEspecifico.fechorinicio}"
									format="dd/MM/yyyy HH:mm" mold="rounded" />
							</row>
							<row>
								<label
									value="${c:l('editarPricingController.lhFechaHoraFin.label')}" />
								<datebox width="200px" id="fechaFin"
									value="@{winEditarGP_PricingEspecifico$composer.pricingEspecifico.fechorfin}"
									format="dd/MM/yyyy HH:mm" mold="rounded" />
							</row>

							<row>
								<label
									value="${c:l('editarPricingController.lhCorridaId.labelLH')}" />
								<intbox id="txtCorridaId" mold="rounded"
									value="@{winEditarGP_PricingEspecifico$composer.pricingEspecifico.corridaId}" />
							</row>
							
							<row>
								<label
									value="${c:l('editarPricingController.windowTipoServicio.title')}" />
								<combobox id="cmbServicio"
									use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
									mold="rounded" buttonVisible="true" width="90%"
									model="@{winEditarGP_PricingEspecifico$composer.lsclaseServicio}"
									selectedItem="@{winEditarGP_PricingEspecifico$composer.pricingEspecifico.claseServicio}" />
							</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="@{winEditarGP_PricingEspecifico$composer.lsMarca}"
									selectedItem="@{winEditarGP_PricingEspecifico$composer.pricingEspecifico.marca}" />
							</row>
							<row>
								<label
									value="${c:l('editarPricingController.origem.label')}" />
								<combobox id="cmbOrigem"
									use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxParada"
									mold="rounded" buttonVisible="true" width="90%"
									selectedItem="@{winEditarGP_PricingEspecifico$composer.pricingEspecifico.parada}" />
							</row>
							<row>
								<label
									value="${c:l('editarPricingController.destino.label')}" />
								<combobox id="cmbDestino"
									use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxParada"
									mold="rounded" buttonVisible="true" width="90%"
									selectedItem="@{winEditarGP_PricingEspecifico$composer.pricingEspecifico.parada1}" />
							</row>
							<row>
								<label
									value="${c:l('editarPricingController.impMon.value')}" />
								<combobox id="cmbMoneda"
									use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
									mold="rounded" buttonVisible="true" width="90%"
									model="@{winEditarGP_PricingEspecifico$composer.lsMoneda}"
									selectedItem="@{winEditarGP_PricingEspecifico$composer.pricingEspecifico.moneda}" />
							</row>
							<row>
								<label
									value="${c:l('editarPricingController.tarifiaredondoabierto.label')}" />
								<textbox id="tarifaAbierto"
									use="com.rjconsultores.ventaboletos.web.utilerias.MyTextboxDecimal"
									precision="7" scale="2" constraint="no empty"
									value="@{winEditarGP_PricingEspecifico$composer.pricingEspecifico.tarifaredabierto,converter=com.rjconsultores.ventaboletos.web.utilerias.StringDecimalToDecimalConverter}" />
							</row>
							<row>
								<label
									value="${c:l('editarPricingController.exibirVenda.label')}" />
								<radiogroup Id="radioExibirVenda">
									<hbox align="center">
										<radio Id="rdExibirVendaSi"
											label="${c:l('editarPricingController.si.label')}"
											checked="true" />
										<radio Id="rdExibirVendaNo"
											label="${c:l('editarPricingController.no.label')}" />
									</hbox>
								</radiogroup>
							</row>
							<row>
								<label
									value="Permite Sobreposição" />
									<radiogroup Id="radioSobreposicao">
								<hbox align="center">
										<radio Id="rdSobreposicaoSim"
											label="${c:l('editarPricingController.si.label')}" />
										<radio Id="rdSobreposicaoNao"
											label="${c:l('editarPricingController.no.label')}" />
									</hbox>
									</radiogroup>
							</row>
						</rows>
					</grid>

					<grid>
						<rows>
							<row valign="top">
								<vbox height="100%" width="100%">
									<toolbar>
										<hbox spacing="5px"
											style="padding:1px" align="right">
											<label
												value="${c:l('editarPricingEspecificoOcupacionController.ocupacao.label')}:" />
											<button
												id="btnNovoPricingEspOcup" disabled="${arg.isReadOnly}"
												image="/gui/img/add.png" width="35px"
												tooltiptext="${c:l('editarPricingController.btnNovoVigencia.tooltiptext')}" />
											<button
												id="btnApagarPricingEspOcup" disabled="${arg.isReadOnly}"
												height="20" image="/gui/img/remove.png" width="35px"
												tooltiptext="${c:l('editarPricingController.btnApagarPricing.tooltiptext')}" />
											<button
												id="btnModificarPricingEspOcup" disabled="${arg.isReadOnly}"
												label="${c:l('editarPricingController.btnModificar.value')}" />
										</hbox>
									</toolbar>
									<listbox
										id="pricingListEspOcupacion"
										use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
										multiple="false">
										<listhead sizable="true">
											<listheader
												image="/gui/img/create_doc.gif" sort="auto(tarifa)"
												label="${c:l('editarPricingEspecificoOcupacionController.tarifa.label')}" />
											<listheader
												image="/gui/img/create_doc.gif"
												sort="auto(ocupacioninicial)"
												label="${c:l('editarPricingEspecificoOcupacionController.ocupacionInicial.label')}" />
											<listheader
												image="/gui/img/create_doc.gif" sort="auto(ocupacionfinal)"
												label="${c:l('editarPricingEspecificoOcupacionController.ocupacionFinal.label')}" />
											<listheader
												image="/gui/img/create_doc.gif" sort="auto(desconto)"
												label="${c:l('editarPricingEspecificoOcupacionController.desconto.label')}" />
										</listhead>
									</listbox>
								</vbox>
							</row>
						</rows>
					</grid>
				</tabpanel>
				<!-- CATEGORIA -->
				<tabpanel>
					<grid>
						<rows>
							<row valign="top">
								<vbox height="100%" width="100%">
									<hbox>
										<label	
											value="${c:l('editarPricingEspecificoController.categoria.label')}" />
										<combobox id="cmbCategoria"
											use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
											model="@{winEditarGP_PricingEspecifico$composer.lsCategoria}"
											mold="rounded" buttonVisible="true" width="90%"/>
										<button
											id="btnNovoPricingCategoria" disabled="${arg.isReadOnly}"
											image="/gui/img/add.png" width="35px"
											tooltiptext="${c:l('editarPricingController.btnAgencia.tooltiptext')}" />
										<button
											id="btnApagarPricingEspCategoria" disabled="${arg.isReadOnly}"
											height="20" image="/gui/img/remove.png" width="35px"
											tooltiptext="${c:l('editarPricingController.btnApagarAgencia.tooltiptext')}" />
									</hbox>
									<listbox id="pricingListEspCategoria" height="300px"
										use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
										multiple="false">
										<listhead sizable="true">
											<listheader
												image="/gui/img/create_doc.gif" sort="auto(categoria.categoriaId)"
												label="${c:l('editarPricingEspecificoOcupacionController.agenciaId.label')}" />
											<listheader
												image="/gui/img/create_doc.gif"
												sort="auto(categoria.desccategoria)"
												label="${c:l('editarPricingEspecificoController.categoria.label')}" />
										</listhead>
									</listbox>
								</vbox>
							</row>
						</rows>
					</grid>
				</tabpanel>
				
				<!-- AGENCIA -->
				<tabpanel>
					<grid>
						<rows>
							<row valign="top">
								<vbox height="100%" width="100%">
									<hbox>
										<label	
											value="${c:l('busquedaEstacionController.lhPuntoVenta.label')}" />
										<combobox id="cmbPuntoVenta"
											use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxPuntoVenta"
											mold="rounded" buttonVisible="true" width="90%" />
										<button
											id="btnNovoPricingAgencia" disabled="${arg.isReadOnly}"
											image="/gui/img/add.png" width="35px"
											tooltiptext="${c:l('editarPricingController.btnAgencia.tooltiptext')}" />
										<button
											id="btnApagarPricingEspAgencia" disabled="${arg.isReadOnly}"
											height="20" image="/gui/img/remove.png" width="35px"
											tooltiptext="${c:l('editarPricingController.btnApagarAgencia.tooltiptext')}" />
									</hbox>
									<listbox id="pricingListEspAgencia" height="300px"
										use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
										multiple="false">
										<listhead sizable="true">
											<listheader
												image="/gui/img/create_doc.gif" sort="auto(tarifa)"
												label="${c:l('editarPricingEspecificoOcupacionController.agenciaId.label')}" />
											<listheader
												image="/gui/img/create_doc.gif"
												sort="auto(ocupacioninicial)"
												label="${c:l('editarPricingEspecificoOcupacionController.agencia.label')}" />
										</listhead>
									</listbox>
								</vbox>
							</row>
						</rows>
					</grid>
				</tabpanel>
				<!-- CANAL DE VENDA -->
				<tabpanel>
					<grid>
						<rows>
							<row>	
								<vbox height="100%" width="100%">
									<hbox>
										<label
											value="${c:l('editarPricingController.ptovta.value')}" />
										<combobox id="cmbPtovta"
											use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
											mold="rounded" buttonVisible="true" width="90%"
											model="@{winEditarGP_PricingEspecifico$composer.lsPtovata}"/>
										<button
											id="btnNovoPricingCanal" disabled="${arg.isReadOnly}"
											image="/gui/img/add.png" width="35px"
											tooltiptext="${c:l('editarPricingController.btnAgencia.tooltiptext')}" />
										<button
											id="btnApagarPricingEspCanal" disabled="${arg.isReadOnly}"
											height="20" image="/gui/img/remove.png" width="35px"
											tooltiptext="${c:l('editarPricingController.btnApagarAgencia.tooltiptext')}" />
									</hbox>
									<listbox id="pricingListEspCanal" height="300px"
										use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
										multiple="false">
										<listhead sizable="true">
											<listheader
												image="/gui/img/create_doc.gif" sort="auto(tarifa)"
												label="${c:l('editarPricingEspecificoOcupacionController.agenciaId.label')}" />
											<listheader
												image="/gui/img/create_doc.gif"
												sort="auto(ocupacioninicial)"
												label="${c:l('editarPricingController.ptovta.value')}" />
										</listhead>
									</listbox>
								</vbox>
							</row>
						</rows>
					</grid>
				</tabpanel>
			</tabpanels>
		</tabbox>
	</window>

</zk>
