0004784: Pricing - Nova tela
0004788: Modificação Massiva de Preço - Adicionar componente de Pedágio git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@32915 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
395ad2b383
commit
09fc61610e
|
@ -230,6 +230,7 @@ public class EditarPricingController extends MyGenericForwardComposer {
|
|||
private Button btnNovoFormapago;
|
||||
private Button btnApagarFormapago;
|
||||
private Button btnModificarFormapago;
|
||||
private Button btnOcupaAntecipaAutomatico;
|
||||
private boolean salvo = false;
|
||||
private Boolean gravarNovo = Boolean.TRUE;
|
||||
private Textbox nombrePricing;
|
||||
|
@ -239,6 +240,7 @@ public class EditarPricingController extends MyGenericForwardComposer {
|
|||
private Combobox cmbIndGeneraFeriadoFechaViaje;
|
||||
private Integer buscarPricingInativosAtivos;
|
||||
|
||||
|
||||
private void clearCombobox(Combobox combobox) {
|
||||
int size = combobox.getItemCount();
|
||||
|
||||
|
@ -1823,8 +1825,24 @@ public class EditarPricingController extends MyGenericForwardComposer {
|
|||
|
||||
openWindow("/gui/pricing/editarPricingOcupaAntecipa.zul",
|
||||
Labels.getLabel("editarPricingController.windowOcupacion.title"), args, MODAL);
|
||||
|
||||
|
||||
}
|
||||
|
||||
@SuppressWarnings({ "rawtypes", "unchecked" })
|
||||
private void verPricingOcupaAntecipaAutomatico() {
|
||||
|
||||
Map args = new HashMap();
|
||||
args.put("pricing", pricing);
|
||||
args.put("clasePricingOcupaAntecipaList", (List<PricingOcupaAntecipa>)pricingOcupaAntecipaList.getListData());
|
||||
args.put("pricingOcupaAntecipaList", pricingOcupaAntecipaList);
|
||||
|
||||
openWindow("/gui/pricing/editarPricingOcupaAntecipaAutomatico.zul",
|
||||
Labels.getLabel("editarPricingAutomaticoController.windowOcupacion.title"), args, MODAL);
|
||||
|
||||
|
||||
}
|
||||
|
||||
public void onClick$btnModificarOcupaAntecipa(Event ev) {
|
||||
PricingOcupaAntecipa pOcupaAntecipa = (PricingOcupaAntecipa) pricingOcupaAntecipaList.getSelected();
|
||||
|
||||
|
@ -1838,6 +1856,10 @@ public class EditarPricingController extends MyGenericForwardComposer {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
public void onClick$btnOcupaAntecipaAutomatico(Event ev) {
|
||||
verPricingOcupaAntecipaAutomatico();
|
||||
}
|
||||
|
||||
public void onClick$btnApagarAsiento(Event ev) throws Exception {
|
||||
PricingAsiento pAsiento = (PricingAsiento) pricingAsientoList.getSelected();
|
||||
|
|
|
@ -0,0 +1,284 @@
|
|||
package com.rjconsultores.ventaboletos.web.gui.controladores.pricing;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Calendar;
|
||||
import java.util.Collections;
|
||||
import java.util.Comparator;
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.log4j.Logger;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.context.annotation.Scope;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.zkoss.util.resource.Labels;
|
||||
import org.zkoss.zhtml.Messagebox;
|
||||
import org.zkoss.zk.ui.Component;
|
||||
import org.zkoss.zk.ui.Executions;
|
||||
import org.zkoss.zk.ui.event.Event;
|
||||
import org.zkoss.zul.Button;
|
||||
import org.zkoss.zul.Intbox;
|
||||
import org.zkoss.zul.Radio;
|
||||
|
||||
import com.rjconsultores.ventaboletos.entidad.Pricing;
|
||||
import com.rjconsultores.ventaboletos.entidad.PricingOcupaAntecipa;
|
||||
import com.rjconsultores.ventaboletos.exception.BusinessException;
|
||||
import com.rjconsultores.ventaboletos.service.PricingOcupaAntecipaService;
|
||||
import com.rjconsultores.ventaboletos.utilerias.UsuarioLogado;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.ConstraintPorcentagem;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyGenericForwardComposer;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyListbox;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyTextboxDecimal;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.render.RenderPricingOcupaAntecipa;
|
||||
|
||||
@Controller("editarPricingOcupaAntecipaAutomaticoController")
|
||||
@Scope("prototype")
|
||||
public class EditarPricingOcupaAntecipaAutomaticoController extends MyGenericForwardComposer {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
@Autowired
|
||||
private PricingOcupaAntecipaService pricingOcupaAntecipaService;
|
||||
private PricingOcupaAntecipa pricingOcupaAntecipa;
|
||||
private MyListbox pricingOcupaAntecipaList;
|
||||
private MyListbox parentPricingOcupaAntecipaList;
|
||||
private Intbox ocupacioninicial;
|
||||
private Intbox ocupacionfinal;
|
||||
private Intbox cantdiasmin;
|
||||
private Intbox cantdiasmax;
|
||||
private Intbox cantasientosmin;
|
||||
private Intbox cantasientosmax;
|
||||
private MyTextboxDecimal porcentaje;
|
||||
private MyTextboxDecimal importe;
|
||||
private List<PricingOcupaAntecipa> lsPricingOcupaAntecipa;
|
||||
private Radio rdPoltronas;
|
||||
private Radio rdOcupacao;
|
||||
private Boolean hasNoElements;
|
||||
private Button btnAdicionarOcupaAntecipa;
|
||||
|
||||
private List<PricingOcupaAntecipa> argList;
|
||||
private Pricing pricing;
|
||||
|
||||
private ConstraintPorcentagem ct;
|
||||
private static Logger log = Logger.getLogger(EditarPricingOcupaAntecipaController.class);
|
||||
|
||||
|
||||
@Override
|
||||
public void doAfterCompose(Component comp) throws Exception {
|
||||
super.doAfterCompose(comp);
|
||||
/*
|
||||
* Transformar a tabela (valores de exemplo) :
|
||||
*
|
||||
* Qtd. Dias Qtd. Dias Ocup. Min. Ocup. Máx. Porcentagem
|
||||
* Minimo Máximo
|
||||
*
|
||||
* 12 * 0% 20% -30%
|
||||
* 12 * 21% 80% -15%
|
||||
* 12 * 81% 90% -10%
|
||||
* 8 11 0% 80% -15%
|
||||
* 8 11 81% 90% -10%
|
||||
* 4 7 0% 90% -10%
|
||||
*
|
||||
* Na forma:
|
||||
*
|
||||
* 12 dias ----> 30% (ocupação de 0% -> 20%)
|
||||
* 08 dias ----> 15% (ocupação de 21% -> 80%)
|
||||
* 04 dias ----> 10% (ocupação de 81% -> 90%)
|
||||
*
|
||||
*/
|
||||
|
||||
argList = (List<PricingOcupaAntecipa>) Executions.getCurrent().getArg().get("clasePricingOcupaAntecipaList");
|
||||
parentPricingOcupaAntecipaList = (MyListbox)Executions.getCurrent().getArg().get("pricingOcupaAntecipaList");
|
||||
pricing = (Pricing)Executions.getCurrent().getArg().get("pricing");
|
||||
pricingOcupaAntecipaList.setItemRenderer(new RenderPricingOcupaAntecipa());
|
||||
lsPricingOcupaAntecipa = new ArrayList<PricingOcupaAntecipa>();
|
||||
|
||||
try{
|
||||
Collections.sort(argList, Collections.reverseOrder(new PricingOcupaAntecipaComparator()));
|
||||
} catch (Exception e){
|
||||
Messagebox.show(Labels.getLabel("editarPricingOcupaAntecipaAutomaticoController.MSG.FormatoDados"),
|
||||
Labels.getLabel("editarPricingController.windowOcupacion.title"),
|
||||
Messagebox.OK, Messagebox.EXCLAMATION);
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
int diaMin = -1;
|
||||
|
||||
for (PricingOcupaAntecipa p : argList){
|
||||
if (diaMin != p.getCantdiasmin()){
|
||||
lsPricingOcupaAntecipa.add(p);
|
||||
diaMin = p.getCantdiasmin();
|
||||
}
|
||||
}
|
||||
|
||||
// se TabelaMaior.size mod TabelaMenor.size = 0, então há possibilidade de transformar a maior na menor.
|
||||
if ((lsPricingOcupaAntecipa.size() > 0) && (argList.size() % lsPricingOcupaAntecipa.size() == 0)){
|
||||
|
||||
for (int j = 0; j < lsPricingOcupaAntecipa.size(); j++){
|
||||
lsPricingOcupaAntecipa.get(j).setOcupacionfinal(argList.get(j).getOcupacionfinal());
|
||||
lsPricingOcupaAntecipa.get(j).setOcupacioninicial(argList.get(j).getOcupacioninicial());
|
||||
lsPricingOcupaAntecipa.get(j).setCantasientosmax(argList.get(j).getCantasientosmax());
|
||||
lsPricingOcupaAntecipa.get(j).setCantasientosmin(argList.get(j).getCantasientosmin());
|
||||
}
|
||||
|
||||
pricingOcupaAntecipaList.setData(lsPricingOcupaAntecipa);
|
||||
} else if (lsPricingOcupaAntecipa.size() > 0){
|
||||
Messagebox.show(Labels.getLabel("editarPricingOcupaAntecipaAutomaticoController.MSG.FormatoDados"),
|
||||
Labels.getLabel("editarPricingController.windowOcupacion.title"),
|
||||
Messagebox.OK, Messagebox.EXCLAMATION);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
private void apagarRegistros() throws BusinessException{
|
||||
for (PricingOcupaAntecipa poa : argList){
|
||||
if ((poa.getOcupacioninicial() != null && poa.getOcupacioninicial().doubleValue() > 0) || (poa.getCantasientosmin() != null && poa.getCantasientosmin().intValue() > 0)){
|
||||
pricingOcupaAntecipaService.borrar(poa);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public void onClick$btnAdicionarOcupaAntecipa(Event ev) throws Exception {
|
||||
List<PricingOcupaAntecipa> parentList = new ArrayList<PricingOcupaAntecipa>();
|
||||
try {
|
||||
apagarRegistros();
|
||||
for (int i = 0; i < lsPricingOcupaAntecipa.size(); i++){
|
||||
lsPricingOcupaAntecipa.get(i).setOcupacioninicial(new BigDecimal(0));
|
||||
if (lsPricingOcupaAntecipa.get(i).getPricingocupaantecipaId() == null){
|
||||
pricingOcupaAntecipaService.suscribir(lsPricingOcupaAntecipa.get(i));
|
||||
} else {
|
||||
pricingOcupaAntecipaService.actualizacion(lsPricingOcupaAntecipa.get(i));
|
||||
}
|
||||
|
||||
parentList.add(lsPricingOcupaAntecipa.get(i));
|
||||
|
||||
for (int j=i+1; j < lsPricingOcupaAntecipa.size(); j++){
|
||||
PricingOcupaAntecipa p = new PricingOcupaAntecipa();
|
||||
p.setPricingocupaantecipaId(lsPricingOcupaAntecipa.get(j).getPricingocupaantecipaId());
|
||||
p.setCantasientosmax(lsPricingOcupaAntecipa.get(j).getCantasientosmax());
|
||||
p.setCantasientosmin(lsPricingOcupaAntecipa.get(j).getCantasientosmin());
|
||||
p.setCantdiasmax(lsPricingOcupaAntecipa.get(i).getCantdiasmax());
|
||||
p.setCantdiasmin(lsPricingOcupaAntecipa.get(i).getCantdiasmin());
|
||||
p.setOcupacionfinal(lsPricingOcupaAntecipa.get(j).getOcupacionfinal());
|
||||
p.setOcupacioninicial(lsPricingOcupaAntecipa.get(j).getOcupacioninicial());
|
||||
p.setPorcentaje(lsPricingOcupaAntecipa.get(j).getPorcentaje());
|
||||
p.setPricing(pricing);
|
||||
pricingOcupaAntecipaService.suscribir(p);
|
||||
parentList.add(p);
|
||||
}
|
||||
}
|
||||
|
||||
parentPricingOcupaAntecipaList.setData(parentList);
|
||||
closeWindow();
|
||||
} catch (Exception e) {
|
||||
Messagebox.show(e.getLocalizedMessage(),
|
||||
Labels.getLabel("editarPricingController.windowOcupacion.title"),
|
||||
Messagebox.OK, Messagebox.EXCLAMATION);
|
||||
}
|
||||
}
|
||||
|
||||
private class PricingOcupaAntecipaComparator implements Comparator<PricingOcupaAntecipa> {
|
||||
public int compare(PricingOcupaAntecipa pricing, PricingOcupaAntecipa outroPricing) {
|
||||
return pricing.getCantdiasmin().
|
||||
compareTo(outroPricing.getCantdiasmin());
|
||||
}
|
||||
}
|
||||
|
||||
public void onClick$btnlancar(Event ev) throws Exception {
|
||||
Collections.sort(lsPricingOcupaAntecipa, Collections.reverseOrder(new PricingOcupaAntecipaComparator()));
|
||||
PricingOcupaAntecipa poa = new PricingOcupaAntecipa();
|
||||
poa.setPricing(pricing);
|
||||
poa.setCantdiasmin(cantdiasmin.getValue());
|
||||
boolean hayCantDiasMax = false;
|
||||
if (lsPricingOcupaAntecipa.isEmpty() || lsPricingOcupaAntecipa.get(0).getCantdiasmin() == cantdiasmin.getValue()){
|
||||
// TODO verificar qual vai ser o valor do cantDiasMax
|
||||
poa.setCantdiasmax(365);
|
||||
} else {
|
||||
for (PricingOcupaAntecipa p : lsPricingOcupaAntecipa) {
|
||||
if (p.getCantdiasmin() == poa.getCantdiasmin()){
|
||||
poa.setCantdiasmax(p.getCantdiasmax());
|
||||
hayCantDiasMax = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (!hayCantDiasMax){
|
||||
poa.setCantdiasmax(lsPricingOcupaAntecipa.get(lsPricingOcupaAntecipa.size() -1).getCantdiasmin() -1);
|
||||
}
|
||||
}
|
||||
|
||||
poa.setPorcentaje(porcentaje.getValueDecimal());
|
||||
if (rdOcupacao.isChecked()){
|
||||
poa.setOcupacioninicial(new BigDecimal(ocupacioninicial.getValue()));
|
||||
poa.setOcupacionfinal(new BigDecimal(ocupacionfinal.getValue()));
|
||||
} else {
|
||||
poa.setCantasientosmin(ocupacioninicial.getValue());
|
||||
poa.setCantasientosmax(ocupacionfinal.getValue());
|
||||
}
|
||||
|
||||
lsPricingOcupaAntecipa.add(poa);
|
||||
pricingOcupaAntecipaList.setData(lsPricingOcupaAntecipa);
|
||||
}
|
||||
|
||||
public void onClick$btnRemoverOcupaAntecipa(Event ev) {
|
||||
|
||||
try {
|
||||
PricingOcupaAntecipa pOcupacion = (PricingOcupaAntecipa) pricingOcupaAntecipaList.getSelected();
|
||||
if (pOcupacion != null) {
|
||||
int resp = Messagebox.show(Labels.getLabel("editarPricingController.MSG.borrarPerguntaOcupacion"),
|
||||
Labels.getLabel("editarPricingController.windowOcupacion.title"),
|
||||
Messagebox.YES | Messagebox.NO,
|
||||
Messagebox.QUESTION);
|
||||
|
||||
if (resp == Messagebox.YES) {
|
||||
pricingOcupaAntecipa.setUsuarioId(UsuarioLogado.getUsuarioLogado().getUsuarioId());
|
||||
pricingOcupaAntecipa.setFecmodif(Calendar.getInstance().getTime());
|
||||
pricingOcupaAntecipa.setActivo(Pricing.INATIVO);
|
||||
|
||||
pricingOcupaAntecipaList.removeItem(pricingOcupaAntecipa);
|
||||
pricingOcupaAntecipaService.borrar(pricingOcupaAntecipa);
|
||||
closeWindow();
|
||||
}
|
||||
} else {
|
||||
Messagebox.show(Labels.getLabel("editarPricingController.MSG.selectItem"),
|
||||
Labels.getLabel("editarPricingController.windowOcupacion.title"),
|
||||
Messagebox.OK, Messagebox.EXCLAMATION);
|
||||
}
|
||||
} catch (Exception ex) {
|
||||
log.error(ex);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public PricingOcupaAntecipa getPricingOcupaAntecipa() {
|
||||
return pricingOcupaAntecipa;
|
||||
}
|
||||
|
||||
public void setPricingOcupacion(PricingOcupaAntecipa pricingOcupaAntecipa) {
|
||||
this.pricingOcupaAntecipa = pricingOcupaAntecipa;
|
||||
}
|
||||
|
||||
public MyListbox getPricingOcupacionList() {
|
||||
return pricingOcupaAntecipaList;
|
||||
}
|
||||
|
||||
public void setPricingOcupacionList(MyListbox pricingOcupacionList) {
|
||||
this.pricingOcupaAntecipaList = pricingOcupacionList;
|
||||
}
|
||||
|
||||
public ConstraintPorcentagem getCt() {
|
||||
return ct;
|
||||
}
|
||||
|
||||
public void setCt(ConstraintPorcentagem ct) {
|
||||
this.ct = ct;
|
||||
}
|
||||
|
||||
public Boolean getHasNoElements() {
|
||||
return hasNoElements;
|
||||
}
|
||||
|
||||
public void setHasNoElements(Boolean hasNoElements) {
|
||||
this.hasNoElements = hasNoElements;
|
||||
}
|
||||
|
||||
}
|
|
@ -413,6 +413,12 @@ public class ModificacionMasivaTarifasController extends MyGenericForwardCompose
|
|||
cell10.setCellValue(
|
||||
Labels.getLabel("busquedaTarifaController.lhPrecioNuevo.label"));
|
||||
cell10.setCellStyle(estilo);
|
||||
|
||||
|
||||
HSSFCell cell12 = rowCabecalho.createCell(12);
|
||||
cell12.setCellValue(
|
||||
Labels.getLabel("busquedaTarifaController.lhPrecioPedagio.label"));
|
||||
cell12.setCellStyle(estilo);
|
||||
}
|
||||
|
||||
HSSFRow row = sheet1.createRow(contRow++);
|
||||
|
@ -441,7 +447,11 @@ public class ModificacionMasivaTarifasController extends MyGenericForwardCompose
|
|||
|
||||
row.createCell(9).setCellValue(original.setScale(2).doubleValue());
|
||||
row.createCell(10).setCellValue(atual.setScale(2).doubleValue());
|
||||
|
||||
|
||||
String ped = obj[16] != null ? obj[16].toString() : "0.0";
|
||||
BigDecimal pedVal = BigDecimal.valueOf(Double.valueOf(ped));
|
||||
row.createCell(12).setCellValue(pedVal.setScale(2).doubleValue());
|
||||
|
||||
// novo preco:
|
||||
BigDecimal novoPrecio = atual;
|
||||
|
||||
|
|
|
@ -62,6 +62,7 @@ public class ModificacionMasivaTarifasUploadController extends MyGenericForwardC
|
|||
|
||||
private final Integer CELL_ID_TARIFA = 0;
|
||||
private final Integer CELL_NOVO_PRECIO = 11;
|
||||
private final Integer CELL_PEAJE = 12;
|
||||
@Autowired
|
||||
private TarifaService tarifaService;
|
||||
@Autowired
|
||||
|
@ -151,7 +152,11 @@ public class ModificacionMasivaTarifasUploadController extends MyGenericForwardC
|
|||
BigDecimal bdId = new BigDecimal(cellIdTarifa.getNumericCellValue());
|
||||
Integer idTarifa = bdId.intValue();
|
||||
|
||||
Cell cellPeaje = row.getCell(CELL_PEAJE);
|
||||
BigDecimal bdPeaje = new BigDecimal(cellPeaje != null ? cellPeaje.getNumericCellValue() : 0.0);
|
||||
|
||||
Tarifa tarifa = tarifaService.obtenerID(idTarifa);
|
||||
tarifa.setImportepedagio(bdPeaje);
|
||||
|
||||
if (tarifa != null) {
|
||||
Tramo tramo = tarifa.getTramo();
|
||||
|
@ -255,53 +260,8 @@ public class ModificacionMasivaTarifasUploadController extends MyGenericForwardC
|
|||
|
||||
strMercadoCompetido = strMercadoCompetido + strTmpMercadoCompetido;
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
//COLUNAS RETIRADAS DO EXCEL
|
||||
// //CATEGORIA
|
||||
// HSSFCell cellIdTarifaCategoria = row.getCell(CELL_ID_CATEGORIA);
|
||||
// if (!cellIdTarifaCategoria.toString().equals("")) {
|
||||
// BigDecimal bdIdCategoria = new BigDecimal(cellIdTarifaCategoria.getNumericCellValue());
|
||||
// Integer idTarifaCategoria = bdIdCategoria.intValue();
|
||||
//
|
||||
// log.debug("ID - Categoria: " + idTarifaCategoria);
|
||||
// TarifaCategoria tarifaCategoria = tarifaCategoriaService.obtenerID(idTarifaCategoria);
|
||||
//
|
||||
// if (tarifaCategoria != null) {
|
||||
// HSSFCell cellNovoPrecioCategoria = row.getCell(CELL_NOVO_PRECIO_CATEGORIA);
|
||||
// BigDecimal novoPrecioCategoria = new BigDecimal(cellNovoPrecioCategoria.getNumericCellValue());
|
||||
// tarifaCategoria.setPrecio(novoPrecioCategoria.setScale(2, RoundingMode.HALF_UP));
|
||||
// if (salvarNuevos) {
|
||||
// tarifaCategoriaService.suscribir(tarifaCategoria);
|
||||
// } else {
|
||||
// tarifaCategoriaService.actualizacion(tarifaCategoria);
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
// //PUNTO DE VENTA
|
||||
// HSSFCell cellIdTarifaTipopuntovta = row.getCell(CELL_ID_TIPO_PUNTO);
|
||||
// if (!cellIdTarifaTipopuntovta.toString().equals("")) {
|
||||
// BigDecimal bdIdTipopuntovta = new BigDecimal(cellIdTarifaTipopuntovta.getNumericCellValue());
|
||||
// Integer idTarifaTipopuntovta = bdIdTipopuntovta.intValue();
|
||||
//
|
||||
// log.debug("ID - TIPO PUNTO DE VENTA: " + idTarifaTipopuntovta);
|
||||
// TarifaTipoptovta tarifaTipopuntovta = tarifaTipoptovtaService.obtenerID(idTarifaTipopuntovta);
|
||||
//
|
||||
// if (tarifaTipopuntovta != null) {
|
||||
// HSSFCell cellNovoPrecioTipopuntovta = row.getCell(CELL_NOVO_PRECIO_TIPO_PUNTO);
|
||||
// BigDecimal novoPrecioTipopuntovta = new BigDecimal(cellNovoPrecioTipopuntovta.getNumericCellValue());
|
||||
// tarifaTipopuntovta.setPrecio(novoPrecioTipopuntovta.setScale(2, RoundingMode.HALF_UP));
|
||||
// if (salvarNuevos) {
|
||||
// tarifaTipoptovtaService.suscribir(tarifaTipopuntovta);
|
||||
// } else {
|
||||
// tarifaTipoptovtaService.actualizacion(tarifaTipopuntovta);
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1964,6 +1964,7 @@ editarPricingController.windowCorrida.title = Servicio
|
|||
editarPricingController.msgSencillo.title = Porcentaje ida mayor que la permitida
|
||||
editarPricingController.msgRedondo.title = Porcentaje de viaje ida y regreso mayor que la permitida
|
||||
editarPricingController.windowOcupacion.title = Ocupación
|
||||
editarPricingController.windowOcupacionAutomatica.title = Ocupación Automática
|
||||
editarPricingController.windowAsiento.title = Asiento
|
||||
editarPricingController.windowAnticipacion.title = Anticipación
|
||||
editarPricingController.windowTipoServicio.title = Tipo clase
|
||||
|
@ -2019,6 +2020,7 @@ editarPricingController.importe.value = Valor
|
|||
editarPricingController.impImp.value = Valor
|
||||
editarPricingController.impMon.value = Moneda
|
||||
editarPricingController.btnModificar.value = Modificar
|
||||
editarPricingController.btnAutomatico.value = Automático
|
||||
editarPricingController.btnNovoImporte.tooltiptext = Incluir
|
||||
editarPricingController.btnApagarImporte.tooltiptext = Eliminar
|
||||
editarPricingController.btnNovoMarca.tooltiptext = Incluir
|
||||
|
@ -2143,6 +2145,12 @@ editarPricingController.cmbIndGeneraFeriadoFechaVenta.value = Aplica feriado fec
|
|||
editarPricingController.cmbIndGeneraFeriadoFechaViaje.value = Aplica feriado fecha viaje
|
||||
editarPricingFormapagoController.lblIndexcepcion = Se Excluye
|
||||
|
||||
editarPricingAutomaticoController.columnaDia.label = Número de días
|
||||
editarPricingAutomaticoController.columnaPorcentaje.label = Porcentaje
|
||||
editarPricingAutomaticoController.columnaOcupacionMin.label = Ocupación Min.
|
||||
editarPricingAutomaticoController.columnaOcupacionMax.label = Ocupación Máx.
|
||||
editarPricingAutomaticoController.windowOcupacion.title = Ocupación Automática
|
||||
|
||||
# Búsqueda Sistema
|
||||
busquedaSistemaController.window.title = Sistema
|
||||
busquedaSistemaController.btnRefresh.tooltiptext = Actualizar
|
||||
|
@ -3068,6 +3076,9 @@ editarAlertaCtrlController.corridaNoEncontrada.label = No se encontró ningun se
|
|||
editarAlertaCtrlController.MSG.origenNoExisteRuta = El origen informada no existe en esta linea
|
||||
editarAlertaCtrlController.MSG.destinoNoExisteRuta = El destino informado no existe en esta linea
|
||||
|
||||
# PricingOcupaAntecipa
|
||||
editarPricingOcupaAntecipaAutomaticoController.MSG.FormatoDados = Formato de los datos antiguos. No es compatible!
|
||||
|
||||
# Búsqueda Secretaria
|
||||
busquedaSecretariaController.window.title = Orden de compra - Secretaria
|
||||
busquedaSecretariaController.btnRefresh.tooltiptext = Actualizar
|
||||
|
|
|
@ -1996,6 +1996,7 @@ editarPricingController.windowCorrida.title = Serviço
|
|||
editarPricingController.msgSencillo.title = Porcentagem ida maior que a permitida
|
||||
editarPricingController.msgRedondo.title = Porcentagem viagem Ida e Volta maior que a permitida
|
||||
editarPricingController.windowOcupacion.title = Ocupação
|
||||
editarPricingController.windowOcupacionAutomatica.title = Ocupação Automática
|
||||
editarPricingController.windowAsiento.title = Poltrona
|
||||
editarPricingController.windowAnticipacion.title = Antecipação
|
||||
editarPricingController.windowTipoServicio.title = Tipo classe
|
||||
|
@ -2052,6 +2053,7 @@ editarPricingController.importe.value = Valor
|
|||
editarPricingController.impImp.value = Valor
|
||||
editarPricingController.impMon.value = Moeda
|
||||
editarPricingController.btnModificar.value = Modificar
|
||||
editarPricingController.btnAutomatico.value = Automático
|
||||
editarPricingController.btnNovoImporte.tooltiptext = Incluir
|
||||
editarPricingController.btnApagarImporte.tooltiptext = Eliminar
|
||||
editarPricingController.btnNovoMarca.tooltiptext = Incluir
|
||||
|
@ -2190,6 +2192,12 @@ editarPricingController.cmbIndGeneraFeriadoFechaVenta.value = Aplica Feriado Dat
|
|||
editarPricingController.cmbIndGeneraFeriadoFechaViaje.value = Aplica Feriado Data Viagem
|
||||
editarPricingFormapagoController.lblIndexcepcion = Se Remove
|
||||
|
||||
editarPricingAutomaticoController.columnaDia.label = Qtd. Dias
|
||||
editarPricingAutomaticoController.columnaPorcentaje.label = Porcentagem
|
||||
editarPricingAutomaticoController.columnaOcupacionMin.label = Ocup. Min.
|
||||
editarPricingAutomaticoController.columnaOcupacionMax.label = Ocup. Máx.
|
||||
editarPricingAutomaticoController.windowOcupacion.title = Ocupação Automática
|
||||
|
||||
# Pesquisa Sistema
|
||||
busquedaSistemaController.window.title = Sistema
|
||||
busquedaSistemaController.btnRefresh.tooltiptext = Atualizar
|
||||
|
@ -3115,6 +3123,9 @@ editarAlertaCtrlController.corridaNoEncontrada.label = Não foi encontrado nenhu
|
|||
editarAlertaCtrlController.MSG.origenNoExisteRuta = A origem informada não existe na linha
|
||||
editarAlertaCtrlController.MSG.destinoNoExisteRuta = O destino informada não existe na linha
|
||||
|
||||
# PricingOcupaAntecipa
|
||||
editarPricingOcupaAntecipaAutomaticoController.MSG.FormatoDados = formato de dados antigo. Não suportado!
|
||||
|
||||
# Pesquisa Secretaria
|
||||
busquedaSecretariaController.window.title = Ordem de Serviço - Secretaria
|
||||
busquedaSecretariaController.btnRefresh.tooltiptext = Atualizar
|
||||
|
|
|
@ -705,6 +705,9 @@
|
|||
<button
|
||||
id="btnModificarOcupaAntecipa"
|
||||
label="${c:l('editarPricingController.btnModificar.value')}" />
|
||||
<button
|
||||
id="btnOcupaAntecipaAutomatico"
|
||||
label="${c:l('editarPricingController.btnAutomatico.value')}" />
|
||||
</hbox>
|
||||
</toolbar>
|
||||
<listbox
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
<?init class="org.zkoss.zkplus.databind.AnnotateDataBinderInit" arg0="winEditarPricingOcupaAntecipa"?>
|
||||
<?taglib uri="http://www.zkoss.org/dsp/web/core" prefix="c"?>
|
||||
|
||||
|
||||
<zk xmlns="http://www.zkoss.org/2005/zul">
|
||||
<window id="winEditarPricingOcupaAntecipa" border="normal"
|
||||
apply="${editarPricingOcupaAntecipaController}" width="450px"
|
||||
|
|
|
@ -0,0 +1,85 @@
|
|||
<?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="winEditarPricingOcupaAntecipaAutomatico"?>
|
||||
<?taglib uri="http://www.zkoss.org/dsp/web/core" prefix="c"?>
|
||||
|
||||
<zk xmlns="http://www.zkoss.org/2005/zul">
|
||||
<window id="winEditarPricingOcupaAntecipaAutomatico" border="normal"
|
||||
apply="${editarPricingOcupaAntecipaAutomaticoController}"
|
||||
width="850px" height="457x" contentStyle="overflow:auto"
|
||||
title="${c:l('editarPricingAutomaticoController.windowOcupacion.title')}">
|
||||
<toolbar>
|
||||
<hbox spacing="5px" style="padding:1px" align="right">
|
||||
<button id="btnAdicionarOcupaAntecipa" height="20"
|
||||
image="/gui/img/save.png" width="35px"
|
||||
tooltiptext="${c:l('editarPricingOcupacionController.btnSalvar.tooltiptext')}"
|
||||
disabled="@load{winwinEditarPricingOcupaAntecipa$composer.hasNoElements }"/>
|
||||
<button id="btnCerrar" height="20"
|
||||
image="/gui/img/exit.png" width="35px"
|
||||
onClick="winEditarPricingOcupaAntecipaAutomatico.detach()"
|
||||
tooltiptext="${c:l('editarPricingOcupacionController.btnFechar.tooltiptext')}" />
|
||||
</hbox>
|
||||
</toolbar>
|
||||
<radiogroup id="selectPoltronasOuOcupacao" />
|
||||
<grid fixedLayout="true" width="100%">
|
||||
<columns>
|
||||
<column>${c:l('editarPricingAutomaticoController.columnaDia.label')}</column>
|
||||
<column>${c:l('editarPricingAutomaticoController.columnaPorcentaje.label')}</column>
|
||||
<column>${c:l('editarPricingAutomaticoController.columnaOcupacionMin.label')}</column>
|
||||
<column>${c:l('editarPricingAutomaticoController.columnaOcupacionMax.label')}</column>
|
||||
<column></column>
|
||||
<column></column>
|
||||
</columns>
|
||||
<rows>
|
||||
<row>
|
||||
<intbox id="cantdiasmin"/>
|
||||
<textbox id="porcentaje" precision="7" scale="2" width="80%"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextboxDecimal"
|
||||
value="@{winEditarPricingOcupaAntecipa$composer.pricingOcupaAntecipa.porcentaje,
|
||||
converter=com.rjconsultores.ventaboletos.web.utilerias.StringDecimalToDecimalConverter}" />
|
||||
<intbox id="ocupacioninicial"/>
|
||||
<intbox id="ocupacionfinal"/>
|
||||
<hbox>
|
||||
<radio id="rdPoltronas" label="Poltronas" radiogroup="selectPoltronasOuOcupacao"/>
|
||||
<radio id="rdOcupacao" label="Ocupacao" radiogroup="selectPoltronasOuOcupacao"/>
|
||||
</hbox>
|
||||
<button id="btnlancar" height="20"
|
||||
image="/gui/img/add.png" width="35px"
|
||||
tooltiptext="${c:l('editarPricingOcupacionController.btnSalvar.tooltiptext')}" />
|
||||
|
||||
</row>
|
||||
</rows>
|
||||
</grid>
|
||||
<listbox id="pricingOcupaAntecipaList"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
|
||||
multiple="false" height="370px">
|
||||
<listhead sizable="true">
|
||||
<listheader image="/gui/img/create_doc.gif"
|
||||
sort="auto(ocupacioninicial)" align="left"
|
||||
label="${c:l('editarPricingController.ocupacionIni.value')}" />
|
||||
<listheader image="/gui/img/create_doc.gif"
|
||||
sort="auto(ocupacionfinal)" align="left"
|
||||
label="${c:l('editarPricingController.ocupacionFin.value')}" />
|
||||
<listheader image="/gui/img/create_doc.gif"
|
||||
sort="auto(cantasientosmin)" align="left"
|
||||
label="${c:l('editarPricingController.ocupacionMin.value')}" />
|
||||
<listheader image="/gui/img/create_doc.gif"
|
||||
sort="auto(cantasientosmax)" align="left"
|
||||
label="${c:l('editarPricingController.ocupacionMax.value')}" />
|
||||
<listheader image="/gui/img/create_doc.gif"
|
||||
sort="auto(cantdiasmin)" align="left"
|
||||
label="${c:l('editarPricingController.anticipacionMin.value')}" />
|
||||
<listheader image="/gui/img/create_doc.gif"
|
||||
sort="auto(cantdiasmax)" align="left"
|
||||
label="${c:l('editarPricingController.anticipacionMax.value')}" />
|
||||
<listheader image="/gui/img/create_doc.gif"
|
||||
sort="auto(porcentaje)" align="left"
|
||||
label="${c:l('editarPricingController.porcentaje.value')}" />
|
||||
<listheader image="/gui/img/create_doc.gif"
|
||||
sort="auto(importe)" align="left"
|
||||
label="${c:l('editarPricingController.importe.value')}" />
|
||||
</listhead>
|
||||
</listbox>
|
||||
</window>
|
||||
</zk>
|
Loading…
Reference in New Issue