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

<zk>
	<window id="winEditarGP_Pricing" border="normal"
		apply="${editarGP_PricingController}"
		height="98%" width="100%"
		contentStyle="overflow:auto"
		title="${c:l('editarPricingController.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" 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="btnInativar" disabled="${arg.isReadOnly}" height="20"
					image="/gui/img/close_icon_inactive.png" width="35px"
					tooltiptext="${c:l('editarPricingController.btnInativar.tooltiptext')}" />
				<button id="btnAtivar" disabled="${arg.isReadOnly}" height="20"
					image="/gui/img/icon-active.gif" width="35px"
					tooltiptext="${c:l('editarPricingController.btnAtivar.tooltiptext')}" />

				<separator orient="vertical" />
				<separator orient="vertical" />

				<button id="btnFechar" height="20"
					image="/gui/img/exit.png" width="35px"
					tooltiptext="${c:l('editarPricingController.btnFechar.tooltiptext')}" />
					
					<separator orient="vertical" />
					<separator orient="vertical" />
					<label value="${c:l('editarPricingController.label.cor')}" />
					<colorbox id="colorChoose"
						   style="color: red; font-style: oblique;"
						    hash="true"
				  pickerClosable="false"
				  pickerPosition="right"
				  		   width="55px"/>
			</hbox>
		</toolbar>
		<tabbox id="tb" renderdefer="1000">
			<tabs id="tabs">
				<tab id="A"
					label="${c:l('editarPricingController.tabGen.label')}" />
				<tab id="B"
					label="${c:l('editarPricingController.tabApl.label')}" />
				<tab id="C"
					label="${c:l('editarPricingController.tabMer.label')}" />
				<tab id="D"
					label="${c:l('editarPricingController.tabCor.label')}" />
				<tab id="tabOcupaAntecipa"
					label="${c:l('editarPricingController.tabAsi.label')}" />
				<tab id="F"
					label="${c:l('editarPricingController.tabOcu.label')}" />
				<tab id="H"
					label="${c:l('editarPricingController.tabTipo.label')}" />
				<tab id="tabRevisaoValor"
					label="${c:l('editarPricingController.tabRevisao.label')}" />
			</tabs>
			<tabpanels>
				<!-- General -->
				<tabpanel>
					<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.nombrePricing.label')}" />
								<textbox id="nombrePricing"
									constraint="no empty" maxlength="20"
									value="@{winEditarGP_Pricing$composer.pricing.nombPricing}"
									width="50%"
									use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox" />
							</row>
							<row>
								<label
									value="${c:l('editarPricingController.cmbIndGeneraFeriadoFechaViaje.value')}" />
								<combobox
									id="cmbIndGeneraFeriadoFechaViaje"
									use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
									constraint="no empty" mold="rounded" width="90%" />

								<label
									value="${c:l('editarPricingController.cmbIndGeneraFeriadoFechaVenta.value')}" />
								<combobox
									id="cmbIndGeneraFeriadoFechaVenta"
									use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
									constraint="no empty" mold="rounded" width="90%" />
							</row>
							<row>
								<label
									value="${c:l('editarPricingController.lhEmpresa.label')}" />
								<combobox id="cmbEmpresa"
									use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
									constraint="no empty" mold="rounded" buttonVisible="true"
									width="90%" model="@{winEditarGP_Pricing$composer.lsEmpresa}"
									selectedItem="@{winEditarGP_Pricing$composer.pricing.empresa}" />

								<label
									value="${c:l('editarPricingController.trans.label')}" />
								<radiogroup Id="radioTrans">
									<hbox align="center">
										<radio Id="rdTransSi"
											label="${c:l('editarPricingController.si.label')}"
											checked="true" />
										<radio Id="rdTransNo"
											label="${c:l('editarPricingController.no.label')}" />
									</hbox>
								</radiogroup>
							</row>
							<row>
								<label
									value="${c:l('editarPricingController.lhCantidad.label')}" />
								<!-- Elvia 28/03/2011: Aceitara branco ou zero -->
								<intbox constraint="no negative"
									id="itxCantboleto"
									value="@{winEditarGP_Pricing$composer.pricing.cantboleto}"
									maxlength="3" />

								<label
									value="${c:l('editarPricingController.cance.label')}" />
								<radiogroup Id="radioCance">
									<hbox align="center">
										<radio Id="rdCanceSi"
											label="${c:l('editarPricingController.si.label')}"
											checked="true" />
										<radio Id="rdCanceNo"
											label="${c:l('editarPricingController.no.label')}" />
									</hbox>
								</radiogroup>
							</row>
							<row>

								<label
									value="${c:l('editarPricingController.lblDescuento.value')}" />
								<radiogroup>
									<radio id="radioPor"
										label="${c:l('editarConfiguracionCategoriaController.lblDescuentoPorc.value')}" />
									<radio id="radioImp"
										label="${c:l('editarConfiguracionCategoriaController.lblDescuentoImporte.value')}" />
								</radiogroup>

								<label
									value="${c:l('editarPricingController.reser.label')}" />
								<radiogroup Id="radioReser">
									<hbox align="center">
										<radio Id="rdReserSi"
											label="${c:l('editarPricingController.si.label')}"
											checked="true" />
										<radio Id="rdReserNo"
											label="${c:l('editarPricingController.no.label')}" />
									</hbox>
								</radiogroup>
							</row>

							<row>
								<label
									value="${c:l('editarPricingController.lhPorcSen.label')}" />
								<textbox id="descuentoporcsen"
									use="com.rjconsultores.ventaboletos.web.utilerias.MyTextboxDecimal"
									precision="7" scale="2" allowNegative="true"
									value="@{winEditarGP_Pricing$composer.pricing.descuentoporcentaje,converter=com.rjconsultores.ventaboletos.web.utilerias.StringDecimalToDecimalConverter}" />

								<label
									value="${c:l('editarPricingController.lhCantDias.label')}" />
								<!-- Elvia 28/03/2011: Aceitara branco ou zero -->
								<intbox id="cantdiasanticipacion"
									constraint="no negative" maxlength="2"
									value="@{winEditarGP_Pricing$composer.pricing.cantdiasanticipacion}" />
							</row>

							<row>
								<label
									value="${c:l('editarPricingController.lhPorcRed.label')}" />
								<textbox id="descuentoporcredondo"
									use="com.rjconsultores.ventaboletos.web.utilerias.MyTextboxDecimal"
									precision="5" scale="2" allowNegative="true"
									value="@{winEditarGP_Pricing$composer.pricing.descuentoporcredondo,converter=com.rjconsultores.ventaboletos.web.utilerias.StringDecimalToDecimalConverter}" />
								<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>
						</rows>
					</grid>
					<grid fixedLayout="true">
						<columns>
							<column width="20%"/>
							<column width="30%"/>
							<column width="10%"/>
							<column width="10%"/>
							<column width="9%"/>
							<column width="3%"/>
							<column width="3%"/>
							<column width="3%"/>
							<column width="3%"/>
							<column width="3%"/>
							<column width="3%"/>
							<column width="3%"/>
						</columns>
						<rows>
							<row spans="12">
								<label value="${c:l('editarPricingController.label.regrasEstadiaMinima')}"
									   style="font-weight:bold;"/>
							</row>
							<row>
								<label
									value="${c:l('editarPricingController.label.estadiaMinima')}" />
								<radiogroup>
									<hbox align="center">
										<radio Id="rdEstadiaMinimaSi"
											label="${c:l('editarPricingController.si.label')}" />
										<radio Id="rdEstadiaMinimaNo"
											label="${c:l('editarPricingController.no.label')}"
										  checked="true"/>
									</hbox>
								</radiogroup>
								<label
									value="${c:l('editarPricingController.label.qtdeDias')}" />
								<intbox id="cantdiasEstadiaminima"
									constraint="no negative" maxlength="3"
									value="@{winEditarGP_Pricing$composer.pricing.cantdiasEstadiaminima}"/>
								<label
									value="${c:l('editarPricingController.lbDias.value')}" />
								<checkbox id="chkIndLunEstadiaminima"
									   label="${c:l('editarPricingController.lbLunM.value')}"
									   value="@{winEditarGP_Pricing$composer.pricing.indLunEstadiaminima}"/>
								<checkbox id="chkIndMarEstadiaminima"
									   label="${c:l('editarPricingController.lbMarM.value')}"
									   value="@{winEditarGP_Pricing$composer.pricing.indMarEstadiaminima}"/>
								<checkbox id="chkIndMieEstadiaminima"
									   label="${c:l('editarPricingController.lbMieM.value')}"
									   value="@{winEditarGP_Pricing$composer.pricing.indMieEstadiaminima}"/>
								<checkbox id="chkIndJueEstadiaminima"
									   label="${c:l('editarPricingController.lbJueM.value')}"
									   value="@{winEditarGP_Pricing$composer.pricing.indJueEstadiaminima}"/>
								<checkbox id="chkIndVieEstadiaminima"
									   label="${c:l('editarPricingController.lbVieM.value')}"
									   value="@{winEditarGP_Pricing$composer.pricing.indVieEstadiaminima}"/>
								<checkbox id="chkIndSabEstadiaminima"
									   label="${c:l('editarPricingController.lbSabM.value')}"
									   value="@{winEditarGP_Pricing$composer.pricing.indSabEstadiaminima}"/>
								<checkbox id="chkIndDomEstadiaminima"
									   label="${c:l('editarPricingController.lbDomM.value')}"
									   value="@{winEditarGP_Pricing$composer.pricing.indDomEstadiaminima}"/>
							</row>							
						</rows>
					</grid>
					<grid>
						<columns>
							<column width="60%" />
							<column width="40%" />
						</columns>
						<rows>
							<row valign="top">
								<vbox height="100%" width="100%">
									<toolbar>
										<hbox spacing="5px"
											style="padding:1px" align="right">
											<label
												value="${c:l('editarPricingController.vigencia.value')}:" />
											<button id="btnNovoVigencia" disabled="${arg.isReadOnly}"
												image="/gui/img/add.png" width="35px"
												tooltiptext="${c:l('editarPricingController.btnNovoVigencia.tooltiptext')}" />
											<button disabled="${arg.isReadOnly}"
												id="btnApagarVigencia" height="20"
												image="/gui/img/remove.png" width="35px"
												tooltiptext="${c:l('editarPricingController.btnApagarPricing.tooltiptext')}" />
											<button disabled="${arg.isReadOnly}"
												id="btnModificarVigencia"
												label="${c:l('editarPricingController.btnModificar.value')}" />
										</hbox>
									</toolbar>
									<listbox id="pricingVigenciaList"
										use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
										height="170px" multiple="true" checkmark="true">
										<listhead sizable="true">
											<listheader width="25%"
												image="/gui/img/create_doc.gif" sort="auto(fecinicioviaje)"
												label="${c:l('editarPricingController.vigInicioViaje.value')}" />
											<listheader width="25%"
												image="/gui/img/create_doc.gif" sort="auto(fecfinviaje)"
												label="${c:l('editarPricingController.vigFinViaje.value')}" />
											<listheader width="25%"
												image="/gui/img/create_doc.gif" sort="auto(fecinicioventa)"
												label="${c:l('editarPricingController.vigInicioVenta.value')}" />
											<listheader width="25%"
												image="/gui/img/create_doc.gif" sort="auto(fecfinventa)"
												label="${c:l('editarPricingController.vigFinVenta.value')}" />
										</listhead>
									</listbox>
								</vbox>
								<vbox height="100%" width="100%">
									<toolbar>
										<hbox spacing="5px"
											style="padding:1px" align="right">
											<label
												value="${c:l('editarPricingController.importe.value')}:" />
											<button id="btnNovoImporte" disabled="${arg.isReadOnly}" 
												image="/gui/img/add.png" width="35px"
												tooltiptext="${c:l('editarPricingController.btnNovoImporte.tooltiptext')}" />
											<button disabled="${arg.isReadOnly}"
												id="btnApagarImporte" height="20"
												image="/gui/img/remove.png" width="35px"
												tooltiptext="${c:l('editarPricingController.btnApagarPricing.tooltiptext')}" />
											<button disabled="${arg.isReadOnly}"
												id="btnModificarImporte"
												label="${c:l('editarPricingController.btnModificar.value')}" />
										</hbox>
									</toolbar>
									<listbox id="pricingImporteList"
										use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
										height="170px" multiple="true" checkmark="true">
										<listhead sizable="true">
											<listheader
												image="/gui/img/create_doc.gif" sort="auto(importe)"
												label="${c:l('editarPricingController.impImp.value')}" />
											<listheader
												image="/gui/img/create_doc.gif"
												sort="auto(moneda.descmoneda)"
												label="${c:l('editarPricingController.impMon.value')}" />
										</listhead>
									</listbox>
								</vbox>
							</row>
						</rows>
					</grid>
				</tabpanel>
				<!-- Aplicación -->
				<tabpanel>
					<grid fixedLayout="false">
						<columns>
							<column width="33%" />
							<column width="33%" />
							<column width="33%" />
						</columns>
						<rows>
							<row valign="top">
								<vbox height="150px" width="100%">
									<toolbar>
										<hbox spacing="5px"
											style="padding:1px" align="right">
											<label
												value="${c:l('editarPricingController.marca.value')}:" />
											<button id="btnNovoMarca" disabled="${arg.isReadOnly}"
												image="/gui/img/add.png" width="35px"
												tooltiptext="${c:l('editarPricingController.btnNovoMarca.tooltiptext')}" />
											<button id="btnApagarMarca" disabled="${arg.isReadOnly}"
												height="6" image="/gui/img/remove.png" width="35px"
												tooltiptext="${c:l('editarPricingController.btnApagarPricing.tooltiptext')}" />
											<button disabled="${arg.isReadOnly}"
												id="btnModificarMarca"
												label="${c:l('editarPricingController.btnModificar.value')}" />
										</hbox>
									</toolbar>
									<listbox id="pricingMarcaList"
										use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
										height="170px" multiple="true" checkmark="true">
										<listhead sizable="true">
											<listheader
												label="${c:l('editarPricingController.marca.value')}"
												image="/gui/img/create_doc.gif"
												sort="auto(marca.descmarca)" />
										</listhead>
									</listbox>
								</vbox>
								<vbox height="150px" width="100%">
									<toolbar>
										<hbox spacing="5px"
											style="padding:1px" align="right">
											<label
												value="${c:l('editarPricingController.clase.value')}:" />
											<button id="btnNovoClase" disabled="${arg.isReadOnly}"
												image="/gui/img/add.png" width="35px"
												tooltiptext="${c:l('editarPricingController.btnNovoClasse.tooltiptext')}" />
											<button id="btnApagarClase" disabled="${arg.isReadOnly}"
												height="6" image="/gui/img/remove.png" width="35px"
												tooltiptext="${c:l('editarPricingController.btnApagarPricing.tooltiptext')}" />
											<button disabled="${arg.isReadOnly}"
												id="btnModificarClase"
												label="${c:l('editarPricingController.btnModificar.value')}" />
										</hbox>
									</toolbar>
									<listbox id="pricingClaseList"
										use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
										height="170px" multiple="true" checkmark="true">
										<listhead sizable="true">
											<listheader
												label="${c:l('editarPricingController.clase.value')}"
												image="/gui/img/create_doc.gif"
												sort="auto(claseServicio.descclase)" />
										</listhead>
									</listbox>
								</vbox>

								<vbox height="150px" width="100%">
									<toolbar>
										<hbox spacing="5px"
											style="padding:1px" align="right">
											<label
												value="${c:l('editarPricingController.punto.value')}:" />
											<button disabled="${arg.isReadOnly}"
												id="btnNovoPuntoVenta" image="/gui/img/add.png" width="35px"
												tooltiptext="${c:l('editarPricingController.btnNovoPuntoVenta.tooltiptext')}" />
											<button disabled="${arg.isReadOnly}"
												id="btnApagarPuntoVenta" height="6"
												image="/gui/img/remove.png" width="35px"
												tooltiptext="${c:l('editarPricingController.btnApagarPricing.tooltiptext')}" />
											<button disabled="${arg.isReadOnly}"
												id="btnModificarPuntoVenta"
												label="${c:l('editarPricingController.btnModificar.value')}" />
										</hbox>
									</toolbar>
									<listbox id="pricingPuntoVentaList"
										use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
										height="170px" multiple="true" checkmark="true">
										<listhead sizable="true">
											<listheader
												label="${c:l('editarPricingController.punto.value')}"
												image="/gui/img/create_doc.gif"
												sort="auto(puntoVenta.nombpuntoventa)" />
										</listhead>
									</listbox>
								</vbox>
							</row>

							<row valign="top">
								<vbox height="150px" width="100%">
									<toolbar>
										<hbox spacing="5px"
											style="padding:1px" align="right">
											<label
												value="${c:l('editarPricingController.ruta.value')}:" />
											<button id="btnNovoRuta" disabled="${arg.isReadOnly}"
												image="/gui/img/add.png" width="35px"
												tooltiptext="${c:l('editarPricingController.btnNovoRuta.tooltiptext')}" />
											<button id="btnApagarRuta" disabled="${arg.isReadOnly}"
												height="6" image="/gui/img/remove.png" width="35px"
												tooltiptext="${c:l('editarPricingController.btnApagarPricing.tooltiptext')}" />
											<button disabled="${arg.isReadOnly}"
												id="btnModificarRuta"
												label="${c:l('editarPricingController.btnModificar.value')}" />
										</hbox>
									</toolbar>
									<listbox id="pricingRutaList"
										use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
										multiple="true" height="170px" checkmark="true">
										<listhead sizable="true">
											<listheader
												label="${c:l('editarPricingController.ruta.value')}"
												image="/gui/img/create_doc.gif" sort="auto(ruta.descruta)" />

										</listhead>
									</listbox>
								</vbox>
								<vbox height="150px" width="100%">
									<toolbar>
										<hbox spacing="5px"
											style="padding:1px" align="right">
											<label
												value="${c:l('editarPricingController.ptovta.value')}:" />
											<button disabled="${arg.isReadOnly}"
												id="btnNovoTipoPtoVta" image="/gui/img/add.png" width="35px"
												tooltiptext="${c:l('editarPricingController.btnNovoTipoPtoVta.tooltiptext')}" />
											<button disabled="${arg.isReadOnly}"
												id="btnApagarTipoPtoVta" height="6"
												image="/gui/img/remove.png" width="35px"
												tooltiptext="${c:l('editarPricingController.btnApagarPricing.tooltiptext')}" />
											<button disabled="${arg.isReadOnly}"
												id="btnModificarTipoPtoVta"
												label="${c:l('editarPricingController.btnModificar.value')}" />
										</hbox>
									</toolbar>
									<listbox id="pricingTipoPtoVtaList"
										use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
										height="170px" multiple="true" checkmark="true">
										<listhead sizable="true">
											<listheader
												label="${c:l('editarPricingController.ptovta.value')}"
												image="/gui/img/create_doc.gif"
												sort="auto(tipoPtovta.desctipo)" />
										</listhead>
									</listbox>
								</vbox>

								<vbox height="150px" width="100%">
									<toolbar>
										<hbox spacing="5px"
											style="padding:1px" align="right">
											<label
												value="${c:l('editarPricingController.categoria.value')}:" />
											<button disabled="${arg.isReadOnly}"
												id="btnNovoCategoria" image="/gui/img/add.png" width="35px"
												tooltiptext="${c:l('editarPricingController.btnNovoCategoria.tooltiptext')}"
												/>
											<button disabled="${arg.isReadOnly}"
												id="btnApagarCategoria" height="6"
												image="/gui/img/remove.png" width="35px"
												tooltiptext="${c:l('editarPricingController.btnApagarPricing.tooltiptext')}"
												 />
											<button disabled="${arg.isReadOnly}"
												id="btnModificarCategoria"
												label="${c:l('editarPricingController.btnModificar.value')}"
												 />
										</hbox>
									</toolbar>
									<listbox id="pricingCategoriaList"
										use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
										height="170px" multiple="true" checkmark="true">
										<listhead sizable="true">
											<listheader
												label="${c:l('editarPricingController.categoria.value')}"
												image="/gui/img/create_doc.gif"
												sort="auto(categoria.desccategoria)" />
										</listhead>
									</listbox>
								</vbox>
							</row>
						</rows>
					</grid>

				</tabpanel>
				<!-- Mercado -->
				<tabpanel>
					<grid fixedLayout="false">
						<columns>
							<column width="100%" />
						</columns>
						<rows>
							<row valign="top">
								<vbox height="430px" width="100%">
									<toolbar>
										<hbox spacing="5px"
											style="padding:1px" align="right">
											<label
												value="${c:l('editarPricingController.mercado.value')}:" />
											<button id="btnNovoMercado" disabled="${arg.isReadOnly}"
												image="/gui/img/add.png" width="35px"
												tooltiptext="${c:l('editarPricingController.btnNovoMercado.tooltiptext')}" />
											<button disabled="${arg.isReadOnly}"
												id="btnApagarMercado" height="6" image="/gui/img/remove.png"
												width="35px"
												tooltiptext="${c:l('editarPricingController.btnApagarPricing.tooltiptext')}" />
											<button disabled="${arg.isReadOnly}"
												id="btnModificarMercado"
												label="${c:l('editarPricingController.btnModificar.value')}" />
										</hbox>
									</toolbar>
									<listbox id="pricingMercadoList"
										use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
										multiple="false" height="170px">
										<listhead sizable="true">
											<listheader
												label="${c:l('editarPricingController.mercadoOrigen.value')}"
												image="/gui/img/create_doc.gif"
												sort="auto(origen.cveparada)" />
											<listheader
												label="${c:l('lb.dec')}" image="/gui/img/create_doc.gif"
												sort="auto(origen.descparada)" />
											<listheader
												label="${c:l('editarPricingController.mercadoDestino.value')}"
												image="/gui/img/create_doc.gif"
												sort="auto(destino.cveparada)" />
											<listheader
												label="${c:l('lb.dec')}" image="/gui/img/create_doc.gif"
												sort="auto(destino.descparada)" />
										</listhead>
									</listbox>
								</vbox>
							</row>

						</rows>
					</grid>

				</tabpanel>
				<!-- Corridas -->
				<tabpanel>
					<grid fixedLayout="false">
						<columns>
							<column width="100%" />
						</columns>
						<rows>
							<row valign="top">
								<vbox height="150px" width="100%">
									<toolbar>
										<hbox spacing="5px"
											style="padding:1px" align="right">
											<label
												value="${c:l('editarPricingController.porDia.value')}:" />
											<button id="btnNovoDia" disabled="${arg.isReadOnly}"
												image="/gui/img/add.png" width="35px"
												tooltiptext="${c:l('editarPricingController.btnNovoDia.tooltiptext')}" />
											<button id="btnApagarDia" disabled="${arg.isReadOnly}"
												height="6" image="/gui/img/remove.png" width="35px"
												tooltiptext="${c:l('editarPricingController.btnApagarPricing.tooltiptext')}" />
											<checkbox
												id="chkAgruparDia" value="@{winEditarGP_Pricing$composer.pricing.indAgrupadoDia}"
												label="Agrupar" />
										</hbox>
									</toolbar>
									<listbox id="pricingDiaList"
										use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
										multiple="false" height="170px">
										<listhead sizable="true">
											<listheader
												image="/gui/img/create_doc.gif" sort="auto(horarioinicio)"
												label="${c:l('editarPricingController.hIni.value')}" />
											<listheader
												image="/gui/img/create_doc.gif" sort="auto(horariofin)"
												label="${c:l('editarPricingController.hFim.value')}" />
											<listheader
												image="/gui/img/create_doc.gif" width="7%"
												label="${c:l('editarPricingController.lbLunM.value')}"
												sort="auto(indlunes)" />
											<listheader
												image="/gui/img/create_doc.gif" width="7%"
												label="${c:l('editarPricingController.lbMarM.value')}"
												sort="auto(indmartes)" />
											<listheader
												image="/gui/img/create_doc.gif" width="7%"
												label="${c:l('editarPricingController.lbMieM.value')}"
												sort="auto(indmiercoles)" />
											<listheader
												image="/gui/img/create_doc.gif" width="7%"
												label="${c:l('editarPricingController.lbJueM.value')}"
												sort="auto(indjueves)" />
											<listheader
												image="/gui/img/create_doc.gif" width="7%"
												label="${c:l('editarPricingController.lbVieM.value')}"
												sort="auto(indviernes)" />
											<listheader
												image="/gui/img/create_doc.gif" width="7%"
												label="${c:l('editarPricingController.lbSabM.value')}"
												sort="auto(indsabado)" />
											<listheader
												image="/gui/img/create_doc.gif" width="7%"
												label="${c:l('editarPricingController.lbDomM.value')}"
												sort="auto(inddomingo)" />
											<listheader
												image="/gui/img/create_doc.gif" width="12%"
												label="${c:l('editarPricingController.lbFecVenta.value')}"
												sort="auto(indfecventa)" />
											<listheader
												image="/gui/img/create_doc.gif"
												label="${c:l('editarPricingController.lbFecViaje.value')}"
												sort="auto(indfecviaje)" />

										</listhead>
									</listbox>
								</vbox>
							</row>
							<row valign="top">
								<vbox height="150px" width="100%">
									<toolbar>
										<hbox spacing="5px"
											style="padding:1px" align="right">
											<label
												value="${c:l('editarPricingController.porCorrida.value')}:" />
											<button id="btnNovoCorrida" disabled="${arg.isReadOnly}"
												image="/gui/img/add.png" width="35px"
												tooltiptext="${c:l('editarPricingController.btnNovoCorrida.tooltiptext')}" />
											<button disabled="${arg.isReadOnly}"
												id="btnApagarCorrida" height="6" image="/gui/img/remove.png"
												width="35px"
												tooltiptext="${c:l('editarPricingController.btnApagarPricing.tooltiptext')}" />
											<!--button id="btnModificarCorrida" disabled="${arg.isReadOnly}"
												label="${c:l('editarPricingController.btnModificar.value')}"/-->
											<checkbox id="chkAgruparServico" value="@{winEditarGP_Pricing$composer.pricing.indAgrupadoServico}"
												label="Agrupar" />
										</hbox>
									</toolbar>
									<listbox id="pricingCorridaList"
										use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
										multiple="false" height="170px">
										<listhead sizable="true">
											<listheader
												image="/gui/img/create_doc.gif"
												sort="auto(corridaCtrl.corridaId)"
												label="${c:l('editarPricingController.corridaId.value')}" />
											<listheader
												image="/gui/img/create_doc.gif"
												sort="auto(corridaCtrl.horario)"
												label="${c:l('editarPricingController.corridaHora.value')}" />

											<listheader
												image="/gui/img/create_doc.gif"
												label="${c:l('editarPricingController.origem.label')}" />
											<listheader
												image="/gui/img/create_doc.gif"
												label="${c:l('editarPricingController.destino.label')}" />
										</listhead>
									</listbox>
								</vbox>
							</row>
						</rows>
					</grid>
				</tabpanel>
				<!-- Asientos -->
				<tabpanel>
					<grid fixedLayout="false">
						<columns>
							<column width="100%" />
						</columns>
						<rows>
							<row height="100%" width="100%">
								<vbox height="100%" width="100%">
									<toolbar>
										<hbox spacing="5px"
											style="padding:1px" align="right">
											<label
												value="${c:l('editarPricingController.asiento.value')}:" />
											<button id="btnNovoAsiento" disabled="${arg.isReadOnly}"
												image="/gui/img/add.png" width="35px"
												tooltiptext="${c:l('editarPricingController.btnNovoAsiento.tooltiptext')}" />
											<button disabled="${arg.isReadOnly}"
												id="btnApagarAsiento" height="6" image="/gui/img/remove.png"
												width="35px"
												tooltiptext="${c:l('editarPricingController.btnApagarPricing.tooltiptext')}" />
											<button disabled="${arg.isReadOnly}"
												id="btnModificarAsiento"
												label="${c:l('editarPricingController.btnModificar.value')}" />
										</hbox>
									</toolbar>
									<listbox id="pricingAsientoList"
										use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
										multiple="false" height="380px" width="880px">
										<listhead width="15px"
											sizable="true">
											<listheader width="40%"
												image="/gui/img/create_doc.gif" sort="auto(numeasiento)"
												align="left"
												label="${c:l('editarPricingController.asiento.value')}" />
											<listheader width="60%"
												image="/gui/img/create_doc.gif" sort="auto(porcentaje)"
												align="left"
												label="${c:l('editarPricingController.porcentaje.value')}" />
										</listhead>
									</listbox>
								</vbox>
							</row>
						</rows>
					</grid>
				</tabpanel>
				<!-- Ocupación Antecipacion -->
				<tabpanel id="tabPanelOcupaAntecipa" height="500px">
					<grid fixedLayout="false">
						<columns>
							<column width="100%" />
						</columns>
						<rows>
							<row valign="top">
								<vbox height="150px" width="100%">
									<toolbar>
										<hbox spacing="5px"
											style="padding:1px" align="right">
											<label
												value="${c:l('editarPricingController.ocupacion.value')}:" />
											<button disabled="${arg.isReadOnly}"
												id="btnNovoOcupaAntecipa" image="/gui/img/add.png"
												width="35px"
												tooltiptext="${c:l('editarPricingController.btnNovoOcupacion.tooltiptext')}" />
											<button disabled="${arg.isReadOnly}"
												id="btnOcupaAntecipaAutomatico"
												label="${c:l('editarPricingController.btnAutomatico.value')}" />
										</hbox>
									</toolbar>
									<listbox id="pricingOcupaAntecipaList"
				       						use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
							       	   	 height="820px"
							       	   	  width="500px"
							       	   	  hflex="true">
							       		<auxhead>
											<auxheader label="${c:l('editarPricingController.dias.label')}" rowspan="2" colspan="3" align="center"/>
											<auxheader label="${c:l('editarPricingController.antecipacao.label')}" rowspan="2" colspan="4" align="center"/>			       	   
											<auxheader label="${c:l('editarPricingController.poltronas.label')}" colspan="107"/>
										</auxhead>
										<frozen columns="7" />
										<listhead width="500px">
											<listheader id="${each}"
												   forEach="${winEditarGP_Pricing$composer.columns}"
													 label="${each}"
													 width="20px"
													 align="center">
											</listheader>
										</listhead>
									</listbox>
				       				<listbox id="pricingOcupaAntecipaLegendaList"
				       						use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox">
							       	</listbox>
								</vbox>
							</row>
						</rows>
					</grid>
				</tabpanel>

				<!-- TipoServicio Formapago -->
				<tabpanel>
					<grid fixedLayout="false">
						<columns>
							<column width="100%" />
						</columns>
						<rows>
							<row valign="top">
								<vbox height="150px" width="100%">
									<toolbar>
										<hbox spacing="5px"
											style="padding:1px" align="right">
											<label
												value="${c:l('editarPricingController.tipoServicio.value')}:" />
											<button disabled="${arg.isReadOnly}"
												id="btnNovoTipoServicio" image="/gui/img/add.png"
												width="35px"
												tooltiptext="${c:l('editarPricingController.btnNovoTipoServicio.tooltiptext')}" />
											<button disabled="${arg.isReadOnly}"
												id="btnApagarTipoServicio" height="6"
												image="/gui/img/remove.png" width="35px"
												tooltiptext="${c:l('editarPricingController.btnApagarPricing.tooltiptext')}" />
											<button disabled="${arg.isReadOnly}"
												id="btnModificarTipoServicio"
												label="${c:l('editarPricingController.btnModificar.value')}" />
										</hbox>
									</toolbar>
									<listbox
										id="pricingTipoServicioList"
										use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
										multiple="false" height="170px">
										<listhead sizable="true">
											<listheader
												image="/gui/img/create_doc.gif" sort="auto(tipoServicio)"
												align="left"
												label="${c:l('editarPricingController.tipoServicio.value')}" />
										</listhead>
									</listbox>
								</vbox>

							</row>

							<row valign="top" visible="@{!winEditarGP_Pricing$composer.formaPagoPricingInativo}" >

								<vbox height="150px" width="100%">
									<toolbar>
										<hbox spacing="5px"
											style="padding:1px" align="right">
											<label
												value="Forma de Pagamento: " />
											<button disabled="${arg.isReadOnly}"
												id="btnNovoFormaPago" image="/gui/img/add.png" width="35px"
												tooltiptext="${c:l('editarPricingController.btnNovoTipoServicio.tooltiptext')}" />
											<button disabled="${arg.isReadOnly}"
												id="btnApagarFormaPago" height="6"
												image="/gui/img/remove.png" width="35px"
												tooltiptext="${c:l('editarPricingController.btnApagarPricing.tooltiptext')}" />
											<button disabled="${arg.isReadOnly}"
												id="btnModificarFormaPago"
												label="${c:l('editarPricingController.btnModificar.value')}" />
										</hbox>
									</toolbar>

									<listbox id="pricingFormapagoList"
										use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
										multiple="false" height="170px">
										<listhead sizable="true">
											<listheader
												image="/gui/img/create_doc.gif" sort="auto(formaPago)"
												align="left"
												label="${c:l('editarPricingController.formaPago.value')}" />
											<listheader
												image="/gui/img/create_doc.gif" sort="auto(indexcepcion)"
												label="${c:l('editarPricingFormapagoController.lblIndexcepcion')}" />
										</listhead>
									</listbox>
								</vbox>
							</row>
						</rows>
					</grid>
				</tabpanel>
				<tabpanel>
					<listbox
						id="pricingRevisaoValores"
						use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
						multiple="false">
						<listhead sizable="true">
							<listheader image="/gui/img/create_doc.gif"
								sort="auto(origem)" align="left" width="7%"
								label="${c:l('editarPricingController.origen.value')}" />
							<listheader image="/gui/img/create_doc.gif"
								sort="auto(destino)" align="left" width="7%"
								label="${c:l('editarPricingController.destino.value')}" />
							<listheader image="/gui/img/create_doc.gif"
								sort="auto(classeServico)" align="left" width="7%"
								label="${c:l('editarPricingController.classe.value')}" />
							<listheader image="/gui/img/create_doc.gif"
								sort="auto(precioAtual)" align="right" width="8%"
								label="${c:l('editarPricingController.precoAtual.value')}" />
							<listheader image="/gui/img/create_doc.gif"
								sort="auto(tarifaAtual)" align="right" width="8%"
								label="${c:l('editarPricingController.tarifaAtual.value')}" />
							<listheader image="/gui/img/create_doc.gif"
								sort="auto(taxaEmbarque)" align="right" width="10%"
								label="${c:l('editarPricingController.taxaEmbarque.value')}" />
							<listheader image="/gui/img/create_doc.gif"
								sort="auto(pedagio)" align="right" width="7%"
								label="${c:l('editarPricingController.pedagio.value')}" />
							<listheader image="/gui/img/create_doc.gif"
								sort="auto(antecipacao)" align="center" width="11%"
								label="${c:l('editarPricingController.antecipacao.value')}" />
							<listheader image="/gui/img/create_doc.gif"
								sort="auto(ocupacao)" align="center" width="7%"
								label="${c:l('editarPricingController.ocupacao.value')}" />
							<listheader image="/gui/img/create_doc.gif"
								sort="auto(desconto)" align="center" width="7%"
								label="${c:l('editarPricingController.desconto.value')}" />
							<listheader image="/gui/img/create_doc.gif"
								sort="auto(precoComPrincing)" align="right" width="11%"
								label="${c:l('editarPricingController.precoComPricing.value')}" />
							<listheader image="/gui/img/create_doc.gif"
								sort="auto(tarifaComPricing)" align="right" width="11%"
								label="${c:l('editarPricingController.tarifaComPricing.value')}" />
						</listhead>
					</listbox>
				</tabpanel>
			</tabpanels>
		</tabbox>
	</window>
</zk>
