git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@31285 d1611594-4594-4d17-8e1d-87c2c4800839
parent
1c80393b6e
commit
82341ee228
|
@ -185,7 +185,7 @@ public class EditarEmpresaController extends MyGenericForwardComposer {
|
|||
}
|
||||
|
||||
empresaService.suscribir(empresa);
|
||||
empresaList.addItem(empresa);
|
||||
empresaList.addItemNovo(empresa);
|
||||
} else {
|
||||
empresaService.actualizacion(empresa);
|
||||
empresaList.updateItem(empresa);
|
||||
|
@ -286,5 +286,4 @@ public class EditarEmpresaController extends MyGenericForwardComposer {
|
|||
Labels.getLabel("editarEmpresaImpostoController.window.title"), args, MODAL);
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -4,17 +4,22 @@
|
|||
*/
|
||||
package com.rjconsultores.ventaboletos.web.gui.controladores.esquemaoperacional;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
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.zk.ui.Component;
|
||||
import org.zkoss.zk.ui.event.Event;
|
||||
import org.zkoss.zk.ui.event.EventListener;
|
||||
import org.zkoss.zul.Combobox;
|
||||
import org.zkoss.zul.Messagebox;
|
||||
|
||||
import com.rjconsultores.ventaboletos.entidad.Parada;
|
||||
import com.rjconsultores.ventaboletos.service.ConexionService;
|
||||
import com.rjconsultores.ventaboletos.vo.conexion.ConexionVO;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyGenericForwardComposer;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyListbox;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.render.RenderConexion;
|
||||
|
@ -38,6 +43,24 @@ public class BusquedaConexionController extends MyGenericForwardComposer {
|
|||
public void doAfterCompose(Component comp) throws Exception {
|
||||
super.doAfterCompose(comp);
|
||||
conexionesList.setItemRenderer(new RenderConexion());
|
||||
conexionesList.addEventListener("onDoubleClick", new EventListener() {
|
||||
|
||||
@Override
|
||||
public void onEvent(Event event) throws Exception {
|
||||
ConexionVO conexionVO = (ConexionVO) conexionesList.getSelected();
|
||||
verConexionCtrl(conexionVO.getConexionCtrlId());
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
@SuppressWarnings({ "rawtypes", "unchecked" })
|
||||
private void verConexionCtrl(Long conexionCtrlId) {
|
||||
Map args = new HashMap();
|
||||
args.put("conexionCtrlId", conexionCtrlId);
|
||||
args.put("conexionesList", conexionesList);
|
||||
|
||||
openWindow("/gui/esquema_operacional/editarConexion.zul",
|
||||
Labels.getLabel("editarConexionController.window.title"), args, MODAL);
|
||||
}
|
||||
|
||||
public void onClick$btnGenerarConexiones(Event ev) throws InterruptedException {
|
||||
|
@ -52,7 +75,6 @@ public class BusquedaConexionController extends MyGenericForwardComposer {
|
|||
Labels.getLabel("busquedaConexionController.msgCombincoesGeradas"),
|
||||
Labels.getLabel("busquedaConexionController.window.title"),
|
||||
Messagebox.OK, Messagebox.INFORMATION);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -63,4 +85,8 @@ public class BusquedaConexionController extends MyGenericForwardComposer {
|
|||
private void refreshLista() {
|
||||
conexionesList.setData(conexionService.buscarConexiones(((Parada) cmbParadaOrigem.getSelectedItem().getValue()).getParadaId(), ((Parada) cmbParadaDestino.getSelectedItem().getValue()).getParadaId()));
|
||||
}
|
||||
|
||||
public void onClick$btnNovo(Event ev) {
|
||||
verConexionCtrl(null);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -0,0 +1,102 @@
|
|||
package com.rjconsultores.ventaboletos.web.gui.controladores.esquemaoperacional;
|
||||
|
||||
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.zk.ui.Component;
|
||||
import org.zkoss.zk.ui.Executions;
|
||||
import org.zkoss.zk.ui.event.Event;
|
||||
import org.zkoss.zul.Messagebox;
|
||||
|
||||
import com.rjconsultores.ventaboletos.entidad.ConexionConf;
|
||||
import com.rjconsultores.ventaboletos.service.ConexionConfService;
|
||||
import com.rjconsultores.ventaboletos.service.ConexionService;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyGenericForwardComposer;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyListbox;
|
||||
|
||||
@Controller("editarConexionConfController")
|
||||
@Scope("prototype")
|
||||
public class EditarConexionConfController extends MyGenericForwardComposer {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
@Autowired
|
||||
private ConexionConfService conexionConfService;
|
||||
@Autowired
|
||||
private ConexionService conexionService;
|
||||
private ConexionConf conexionConf;
|
||||
private MyListbox conexionesEditarList;
|
||||
|
||||
public ConexionConf getConexionConf() {
|
||||
return conexionConf;
|
||||
}
|
||||
|
||||
public void setConexionConf(ConexionConf conexionConf) {
|
||||
this.conexionConf = conexionConf;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void doAfterCompose(Component comp) throws Exception {
|
||||
super.doAfterCompose(comp);
|
||||
|
||||
conexionConf = (ConexionConf) Executions.getCurrent().getArg().get("conexionConf");
|
||||
conexionesEditarList = (MyListbox) Executions.getCurrent().getArg().get("conexionesEditarList");
|
||||
}
|
||||
|
||||
public void onClick$btnDesativar(Event ev) throws Exception {
|
||||
int resp = Messagebox.show(
|
||||
Labels.getLabel("editarConexionController.MSG.borrarConexionDesativar"),
|
||||
Labels.getLabel("editarConexionController.window.title"),
|
||||
Messagebox.YES | Messagebox.NO, Messagebox.QUESTION);
|
||||
|
||||
if (resp == Messagebox.YES) {
|
||||
conexionConf.setIndisponible(Boolean.TRUE);
|
||||
|
||||
conexionConfService.actualizacion(conexionConf);
|
||||
|
||||
conexionesEditarList.setData(conexionService.buscarPorConexionCtrl(conexionConf.getConexionCtrl().getConexionctrlId()));
|
||||
|
||||
Messagebox.show(
|
||||
Labels.getLabel("editarConexionConfController.MSG.desativarOK"),
|
||||
Labels.getLabel("editarConexionConfController.window.title"),
|
||||
Messagebox.OK, Messagebox.INFORMATION);
|
||||
|
||||
closeWindow();
|
||||
}
|
||||
}
|
||||
|
||||
public void onClick$btnAtivar(Event ev) throws Exception {
|
||||
int resp = Messagebox.show(
|
||||
Labels.getLabel("editarConexionController.MSG.borrarConexionAtivar"),
|
||||
Labels.getLabel("editarConexionController.window.title"),
|
||||
Messagebox.YES | Messagebox.NO, Messagebox.QUESTION);
|
||||
|
||||
if (resp == Messagebox.YES) {
|
||||
conexionConf.setIndisponible(Boolean.FALSE);
|
||||
|
||||
conexionConfService.actualizacion(conexionConf);
|
||||
|
||||
conexionesEditarList.setData(conexionService.buscarPorConexionCtrl(conexionConf.getConexionCtrl().getConexionctrlId()));
|
||||
|
||||
Messagebox.show(
|
||||
Labels.getLabel("editarConexionConfController.MSG.ativarOK"),
|
||||
Labels.getLabel("editarConexionConfController.window.title"),
|
||||
Messagebox.OK, Messagebox.INFORMATION);
|
||||
|
||||
closeWindow();
|
||||
}
|
||||
}
|
||||
|
||||
public void onClick$btnSalvar(Event ev) throws Exception {
|
||||
conexionConfService.actualizacion(conexionConf);
|
||||
|
||||
Messagebox.show(
|
||||
Labels.getLabel("editarConexionConfController.MSG.suscribirOK"),
|
||||
Labels.getLabel("editarConexionConfController.window.title"),
|
||||
Messagebox.OK, Messagebox.INFORMATION);
|
||||
|
||||
conexionesEditarList.setData(conexionService.buscarPorConexionCtrl(conexionConf.getConexionCtrl().getConexionctrlId()));
|
||||
|
||||
closeWindow();
|
||||
}
|
||||
}
|
|
@ -0,0 +1,301 @@
|
|||
package com.rjconsultores.ventaboletos.web.gui.controladores.esquemaoperacional;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
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.zk.ui.Component;
|
||||
import org.zkoss.zk.ui.Executions;
|
||||
import org.zkoss.zk.ui.event.Event;
|
||||
import org.zkoss.zk.ui.event.EventListener;
|
||||
import org.zkoss.zul.Comboitem;
|
||||
import org.zkoss.zul.Decimalbox;
|
||||
import org.zkoss.zul.Intbox;
|
||||
import org.zkoss.zul.Messagebox;
|
||||
|
||||
import com.rjconsultores.ventaboletos.entidad.Conexion;
|
||||
import com.rjconsultores.ventaboletos.entidad.ConexionConf;
|
||||
import com.rjconsultores.ventaboletos.entidad.ConexionCtrl;
|
||||
import com.rjconsultores.ventaboletos.entidad.Parada;
|
||||
import com.rjconsultores.ventaboletos.service.ConexionConfService;
|
||||
import com.rjconsultores.ventaboletos.service.ConexionCtrlService;
|
||||
import com.rjconsultores.ventaboletos.service.ConexionService;
|
||||
import com.rjconsultores.ventaboletos.service.ParadaService;
|
||||
import com.rjconsultores.ventaboletos.vo.conexion.ConexionVO;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyComboboxParada;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyGenericForwardComposer;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyListbox;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.render.RenderEditarConexion;
|
||||
|
||||
@Controller("editarConexionController")
|
||||
@Scope("prototype")
|
||||
public class EditarConexionController extends MyGenericForwardComposer {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
@Autowired
|
||||
private ConexionService conexionService;
|
||||
@Autowired
|
||||
private ConexionCtrlService conexionCtrlService;
|
||||
@Autowired
|
||||
private ConexionConfService conexionConfService;
|
||||
@Autowired
|
||||
private ParadaService paradaService;
|
||||
private MyListbox conexionesEditarList;
|
||||
private MyListbox conexionesList;
|
||||
private MyComboboxParada cmbOrigemInicial;
|
||||
private MyComboboxParada cmbDestinoFinal;
|
||||
private MyComboboxParada cmbOrigemConexaoPasso1;
|
||||
private MyComboboxParada cmbDestinoConexaoPasso1;
|
||||
private MyComboboxParada cmbOrigemConexaoPasso2;
|
||||
private MyComboboxParada cmbDestinoConexaoPasso2;
|
||||
private Intbox txtTiempoMin;
|
||||
private Intbox txtTiempoMax;
|
||||
private Decimalbox txtPorSec1;
|
||||
private Decimalbox txtPorSec2;
|
||||
private List<Conexion> lsConexiones;
|
||||
private List<ConexionConf> lsConexionesConf;
|
||||
private Integer grupo;
|
||||
private ConexionCtrl conexionCtrl;
|
||||
|
||||
public ConexionCtrl getConexionCtrl() {
|
||||
return conexionCtrl;
|
||||
}
|
||||
|
||||
public void setConexionCtrl(ConexionCtrl conexionCtrl) {
|
||||
this.conexionCtrl = conexionCtrl;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void doAfterCompose(Component comp) throws Exception {
|
||||
super.doAfterCompose(comp);
|
||||
|
||||
conexionesList = (MyListbox) Executions.getCurrent().getArg().get("conexionesList");
|
||||
|
||||
conexionesEditarList.setItemRenderer(new RenderEditarConexion());
|
||||
conexionesEditarList.addEventListener("onDoubleClick", new EventListener() {
|
||||
|
||||
@Override
|
||||
public void onEvent(Event event) throws Exception {
|
||||
verConfiguracaoConexao();
|
||||
}
|
||||
});
|
||||
|
||||
lsConexiones = new ArrayList<Conexion>();
|
||||
lsConexionesConf = new ArrayList<ConexionConf>();
|
||||
grupo = 0;
|
||||
|
||||
Long conexionCtrlId = (Long) Executions.getCurrent().getArg().get("conexionCtrlId");
|
||||
if (conexionCtrlId != null) {
|
||||
conexionCtrl = conexionCtrlService.obtenerID(conexionCtrlId);
|
||||
|
||||
Parada origemInicial = paradaService.obtenerID(conexionCtrl.getOrigenId());
|
||||
cmbOrigemInicial.setInitialValue(origemInicial);
|
||||
cmbOrigemInicial.setDisabled(Boolean.TRUE);
|
||||
cmbOrigemConexaoPasso1.setInitialValue(origemInicial);
|
||||
|
||||
Parada destinoFinal = paradaService.obtenerID(conexionCtrl.getDestinoId());
|
||||
cmbDestinoFinal.setInitialValue(destinoFinal);
|
||||
cmbDestinoFinal.setDisabled(Boolean.TRUE);
|
||||
cmbDestinoConexaoPasso2.setInitialValue(destinoFinal);
|
||||
|
||||
lsConexiones = conexionService.buscarPorConexionCtrl(conexionCtrlId);
|
||||
conexionesEditarList.setData(lsConexiones);
|
||||
|
||||
// setando ultimo grupo usado nessa conexao:
|
||||
if (!lsConexiones.isEmpty()) {
|
||||
Conexion conexion = lsConexiones.get(lsConexiones.size() - 1);
|
||||
grupo = conexion.getNumgrupo();
|
||||
|
||||
lsConexionesConf = conexionConfService.buscarPorConexionCtrl(conexionCtrl);
|
||||
}
|
||||
} else {
|
||||
conexionCtrl = null;
|
||||
}
|
||||
}
|
||||
|
||||
public void onSelect$cmbOrigemInicial(Event ev) {
|
||||
Comboitem cbiOrigem = cmbOrigemInicial.getSelectedItem();
|
||||
Parada origem = (Parada) cbiOrigem.getValue();
|
||||
cmbOrigemConexaoPasso1.setInitialValue(origem);
|
||||
}
|
||||
|
||||
public void onSelect$cmbDestinoFinal(Event ev) {
|
||||
Comboitem cbiDestino = cmbDestinoFinal.getSelectedItem();
|
||||
Parada destino = (Parada) cbiDestino.getValue();
|
||||
cmbDestinoConexaoPasso2.setInitialValue(destino);
|
||||
}
|
||||
|
||||
public void onSelect$cmbDestinoConexaoPasso1(Event ev) {
|
||||
Comboitem cbiDestino = cmbDestinoConexaoPasso1.getSelectedItem();
|
||||
Parada destino = (Parada) cbiDestino.getValue();
|
||||
cmbOrigemConexaoPasso2.setInitialValue(destino);
|
||||
}
|
||||
|
||||
public void onClick$btnAddConexao(Event ev) {
|
||||
grupo++;
|
||||
|
||||
Comboitem cbiOrigem1 = cmbOrigemConexaoPasso1.getSelectedItem();
|
||||
Parada origemPasso1 = (Parada) cbiOrigem1.getValue();
|
||||
|
||||
Comboitem cbiDestino1 = cmbDestinoConexaoPasso1.getSelectedItem();
|
||||
Parada destinoPasso1 = (Parada) cbiDestino1.getValue();
|
||||
|
||||
Conexion conexionPasso1 = new Conexion();
|
||||
conexionPasso1.setOrigenId(origemPasso1.getParadaId());
|
||||
conexionPasso1.setDestinoId(destinoPasso1.getParadaId());
|
||||
conexionPasso1.setNumgrupo(grupo);
|
||||
conexionPasso1.setNumsecuencia((short) 1);
|
||||
|
||||
Comboitem cbiOrigem2 = cmbOrigemConexaoPasso2.getSelectedItem();
|
||||
Parada origemPasso2 = (Parada) cbiOrigem2.getValue();
|
||||
|
||||
Comboitem cbiDestino2 = cmbDestinoConexaoPasso2.getSelectedItem();
|
||||
Parada destinoPasso2 = (Parada) cbiDestino2.getValue();
|
||||
|
||||
Conexion conexionPasso2 = new Conexion();
|
||||
conexionPasso2.setOrigenId(origemPasso2.getParadaId());
|
||||
conexionPasso2.setDestinoId(destinoPasso2.getParadaId());
|
||||
conexionPasso2.setNumgrupo(grupo);
|
||||
conexionPasso2.setNumsecuencia((short) 2);
|
||||
|
||||
lsConexiones.add(conexionPasso1);
|
||||
lsConexiones.add(conexionPasso2);
|
||||
|
||||
conexionesEditarList.setData(lsConexiones);
|
||||
|
||||
BigDecimal porSec1 = txtPorSec1.getValue();
|
||||
BigDecimal porSec2 = txtPorSec2.getValue();
|
||||
Integer tempoMin = txtTiempoMin.getValue();
|
||||
Integer tempoMax = txtTiempoMax.getValue();
|
||||
ConexionConf conexionConf = new ConexionConf();
|
||||
conexionConf.setGrupo(grupo);
|
||||
conexionConf.setPorSec1(porSec1);
|
||||
conexionConf.setPorSec2(porSec2);
|
||||
conexionConf.setTiempoMin(tempoMin);
|
||||
conexionConf.setTiempoMax(tempoMax);
|
||||
lsConexionesConf.add(conexionConf);
|
||||
|
||||
txtTiempoMin.setValue(null);
|
||||
txtTiempoMax.setValue(null);
|
||||
txtPorSec1.setText(null);
|
||||
txtPorSec2.setText(null);
|
||||
cmbDestinoConexaoPasso1.setSelectedItem(null);
|
||||
cmbOrigemConexaoPasso2.setSelectedItem(null);
|
||||
|
||||
txtTiempoMin.focus();
|
||||
}
|
||||
|
||||
public void onClick$btnModificarConexao(Event ev) {
|
||||
verConfiguracaoConexao();
|
||||
}
|
||||
|
||||
public void onClick$btnRemoverConexao(Event ev) throws Exception {
|
||||
int resp = Messagebox.show(
|
||||
Labels.getLabel("editarConexionController.MSG.borrarConexionPergunta"),
|
||||
Labels.getLabel("editarConexionController.window.title"),
|
||||
Messagebox.YES | Messagebox.NO, Messagebox.QUESTION);
|
||||
|
||||
if (resp == Messagebox.YES) {
|
||||
Conexion conexionDeletar = (Conexion) conexionesEditarList.getSelected();
|
||||
|
||||
// procurando conexions do mesmo grupo e setando acitvo false
|
||||
List<Integer> removerLista = new ArrayList<Integer>();
|
||||
for (int i = 0; i < lsConexiones.size(); i++) {
|
||||
Conexion conexion = lsConexiones.get(i);
|
||||
if (conexion.getNumgrupo().equals(conexionDeletar.getNumgrupo())) {
|
||||
conexionService.borrar(conexion);
|
||||
|
||||
removerLista.add(i);
|
||||
}
|
||||
}
|
||||
|
||||
// removendo da lista
|
||||
lsConexiones = conexionService.buscarPorConexionCtrl(conexionCtrl.getConexionctrlId());
|
||||
|
||||
conexionesEditarList.setData(lsConexiones);
|
||||
}
|
||||
}
|
||||
|
||||
public void onClick$btnSalvar(Event ev) throws Exception {
|
||||
Comboitem cbiOrigem = cmbOrigemInicial.getSelectedItem();
|
||||
Parada origem = (Parada) cbiOrigem.getValue();
|
||||
|
||||
Comboitem cbiDestino = cmbDestinoFinal.getSelectedItem();
|
||||
Parada destino = (Parada) cbiDestino.getValue();
|
||||
|
||||
if (conexionCtrl == null) {
|
||||
conexionCtrl = new ConexionCtrl();
|
||||
|
||||
conexionCtrl.setOrigenId(origem.getParadaId());
|
||||
conexionCtrl.setDestinoId(destino.getParadaId());
|
||||
|
||||
conexionCtrlService.suscribir(conexionCtrl);
|
||||
}
|
||||
|
||||
for (Conexion conexion : lsConexiones) {
|
||||
if (conexion.getConexionId() == null) {
|
||||
conexion.setConexionctrlId(conexionCtrl.getConexionctrlId());
|
||||
conexionService.suscribir(conexion);
|
||||
} else {
|
||||
conexionService.actualizacion(conexion);
|
||||
}
|
||||
}
|
||||
|
||||
for (ConexionConf conexionConf : lsConexionesConf) {
|
||||
if (conexionConf.getConexionConfId() == null) {
|
||||
conexionConf.setConexionCtrl(conexionCtrl);
|
||||
conexionConfService.suscribir(conexionConf);
|
||||
} else {
|
||||
conexionConfService.actualizacion(conexionConf);
|
||||
}
|
||||
}
|
||||
|
||||
Messagebox.show(
|
||||
Labels.getLabel("editarConexionController.MSG.suscribirOK"),
|
||||
Labels.getLabel("editarConexionController.window.title"),
|
||||
Messagebox.OK, Messagebox.INFORMATION);
|
||||
|
||||
closeWindow();
|
||||
}
|
||||
|
||||
public void onClick$btnApagar(Event ev) throws Exception {
|
||||
int resp = Messagebox.show(
|
||||
Labels.getLabel("editarConexionController.MSG.borrarConexionCtrlPergunta"),
|
||||
Labels.getLabel("editarConexionController.window.title"),
|
||||
Messagebox.YES | Messagebox.NO, Messagebox.QUESTION);
|
||||
|
||||
if (resp == Messagebox.YES) {
|
||||
conexionCtrlService.borrar(conexionCtrl);
|
||||
|
||||
Messagebox.show(
|
||||
Labels.getLabel("editarConexionController.MSG.borrarConexionCtrlSucesso"),
|
||||
Labels.getLabel("editarConexionController.window.title"),
|
||||
Messagebox.OK, Messagebox.INFORMATION);
|
||||
|
||||
conexionesList.setData(new ArrayList<ConexionVO>());
|
||||
|
||||
closeWindow();
|
||||
}
|
||||
}
|
||||
|
||||
@SuppressWarnings({ "rawtypes", "unchecked" })
|
||||
private void verConfiguracaoConexao() {
|
||||
Map args = new HashMap();
|
||||
Conexion conexion = (Conexion) conexionesEditarList.getSelected();
|
||||
|
||||
if ((conexion != null) && (conexion.getConexionId() != null)) {
|
||||
ConexionConf conexionConf = conexionConfService.buscar(conexionCtrl.getConexionctrlId(), conexion.getNumgrupo());
|
||||
args.put("conexionConf", conexionConf);
|
||||
args.put("conexionesEditarList", conexionesEditarList);
|
||||
|
||||
openWindow("/gui/esquema_operacional/editarConexionConf.zul",
|
||||
Labels.getLabel("editarConexionConfController.window.title"), args, MODAL);
|
||||
}
|
||||
}
|
||||
}
|
|
@ -4,10 +4,13 @@
|
|||
*/
|
||||
package com.rjconsultores.ventaboletos.web.utilerias.render;
|
||||
|
||||
import org.zkoss.zkplus.spring.SpringUtil;
|
||||
import org.zkoss.zul.Listcell;
|
||||
import org.zkoss.zul.Listitem;
|
||||
import org.zkoss.zul.ListitemRenderer;
|
||||
|
||||
import com.rjconsultores.ventaboletos.entidad.ConexionConf;
|
||||
import com.rjconsultores.ventaboletos.service.ConexionConfService;
|
||||
import com.rjconsultores.ventaboletos.vo.conexion.ConexionVO;
|
||||
|
||||
/**
|
||||
|
@ -15,40 +18,51 @@ import com.rjconsultores.ventaboletos.vo.conexion.ConexionVO;
|
|||
* @author Administrador
|
||||
*/
|
||||
public class RenderConexion implements ListitemRenderer {
|
||||
private static int cantGrupo=0;
|
||||
private static int cantGrupo = 0;
|
||||
private boolean changeColor = true;
|
||||
private String style1 ="Font-weight:bold;background-color: #858a8a";
|
||||
private String style2 ="Font-weight:bold;background-color: #535757";
|
||||
private ConexionConfService conexionConfService = (ConexionConfService) SpringUtil.getBean("conexionConfService");
|
||||
private String style1 = "Font-weight:bold;background-color: #858a8a";
|
||||
private String style2 = "Font-weight:bold;background-color: #535757";
|
||||
private String styleDesativada1 = "Font-weight:bold;background-color: #A52A2A";
|
||||
private String styleDesativada2 = "Font-weight:bold;background-color: #800000";
|
||||
|
||||
public void render(Listitem lstm, Object o) throws Exception {
|
||||
ConexionVO conexion = (ConexionVO) o;
|
||||
cantGrupo++;
|
||||
private void setStyle(Listcell lc, ConexionConf conexionConf) {
|
||||
lc.setStyle(changeColor ? style1 : style2);
|
||||
if ((conexionConf.getIndisponible() != null) && (conexionConf.getIndisponible())) {
|
||||
lc.setStyle(changeColor ? styleDesativada1 : styleDesativada2);
|
||||
}
|
||||
}
|
||||
|
||||
Listcell lc = new Listcell(conexion.getConOrigen());
|
||||
lc.setStyle(changeColor ? style1:style2);
|
||||
lc.setParent(lstm);
|
||||
public void render(Listitem lstm, Object o) throws Exception {
|
||||
ConexionVO conexion = (ConexionVO) o;
|
||||
ConexionConf conexionConf = conexionConfService.buscar(conexion.getConexionCtrlId(), conexion.getGrupo());
|
||||
cantGrupo++;
|
||||
|
||||
lc = new Listcell(conexion.getConDestino());
|
||||
lc.setStyle(changeColor ? style1:style2);
|
||||
lc.setParent(lstm);
|
||||
Listcell lc = new Listcell(conexion.getConOrigen());
|
||||
setStyle(lc, conexionConf);
|
||||
lc.setParent(lstm);
|
||||
|
||||
lc = new Listcell(conexion.getGrupo().toString());
|
||||
lc.setStyle(changeColor ? style1:style2);
|
||||
lc.setParent(lstm);
|
||||
lc = new Listcell(conexion.getConDestino());
|
||||
setStyle(lc, conexionConf);
|
||||
lc.setParent(lstm);
|
||||
|
||||
lc = new Listcell(conexion.getTramoOrigen());
|
||||
lc.setStyle(changeColor ? style1:style2);
|
||||
lc.setParent(lstm);
|
||||
lc = new Listcell(conexion.getTramoOrigen());
|
||||
setStyle(lc, conexionConf);
|
||||
lc.setParent(lstm);
|
||||
|
||||
lc = new Listcell(conexion.getTramoDestino());
|
||||
lc.setStyle(changeColor ? style1:style2);
|
||||
lc.setParent(lstm);
|
||||
lc = new Listcell(conexion.getTramoDestino());
|
||||
setStyle(lc, conexionConf);
|
||||
lc.setParent(lstm);
|
||||
|
||||
if (cantGrupo == 2){
|
||||
cantGrupo=0;
|
||||
changeColor = !changeColor;
|
||||
}
|
||||
lc = new Listcell(conexion.getGrupo().toString());
|
||||
setStyle(lc, conexionConf);
|
||||
lc.setParent(lstm);
|
||||
|
||||
lstm.setValue(conexion);
|
||||
}
|
||||
if (cantGrupo == 2) {
|
||||
cantGrupo = 0;
|
||||
changeColor = !changeColor;
|
||||
}
|
||||
|
||||
lstm.setValue(conexion);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -0,0 +1,61 @@
|
|||
package com.rjconsultores.ventaboletos.web.utilerias.render;
|
||||
|
||||
import org.zkoss.zkplus.spring.SpringUtil;
|
||||
import org.zkoss.zul.Listcell;
|
||||
import org.zkoss.zul.Listitem;
|
||||
import org.zkoss.zul.ListitemRenderer;
|
||||
|
||||
import com.rjconsultores.ventaboletos.entidad.Conexion;
|
||||
import com.rjconsultores.ventaboletos.entidad.ConexionConf;
|
||||
import com.rjconsultores.ventaboletos.entidad.Parada;
|
||||
import com.rjconsultores.ventaboletos.service.ConexionConfService;
|
||||
import com.rjconsultores.ventaboletos.service.ParadaService;
|
||||
|
||||
public class RenderEditarConexion implements ListitemRenderer {
|
||||
private ParadaService paradaService = (ParadaService) SpringUtil.getBean("paradaService");
|
||||
private ConexionConfService conexionConfService = (ConexionConfService) SpringUtil.getBean("conexionConfService");
|
||||
private static int cantGrupo = 0;
|
||||
private boolean changeColor = true;
|
||||
private String style1 = "Font-weight:bold;background-color: #858a8a";
|
||||
private String style2 = "Font-weight:bold;background-color: #535757";
|
||||
private String styleDesativada1 = "Font-weight:bold;background-color: #A52A2A";
|
||||
private String styleDesativada2 = "Font-weight:bold;background-color: #800000";
|
||||
|
||||
private void setStyle(Listcell lc, ConexionConf conexionConf) {
|
||||
lc.setStyle(changeColor ? style1 : style2);
|
||||
if ((conexionConf != null) && (conexionConf.getIndisponible() != null) && (conexionConf.getIndisponible())) {
|
||||
lc.setStyle(changeColor ? styleDesativada1 : styleDesativada2);
|
||||
}
|
||||
}
|
||||
|
||||
public void render(Listitem lstm, Object o) throws Exception {
|
||||
Conexion conexion = (Conexion) o;
|
||||
cantGrupo++;
|
||||
ConexionConf conexionConf = conexionConfService.buscar(conexion.getConexionctrlId(), conexion.getNumgrupo());
|
||||
|
||||
Parada origem = paradaService.obtenerID(conexion.getOrigenId());
|
||||
Listcell lc = new Listcell(origem.getDescparada());
|
||||
setStyle(lc, conexionConf);
|
||||
lc.setParent(lstm);
|
||||
|
||||
Parada destino = paradaService.obtenerID(conexion.getDestinoId());
|
||||
lc = new Listcell(destino.getDescparada());
|
||||
setStyle(lc, conexionConf);
|
||||
lc.setParent(lstm);
|
||||
|
||||
lc = new Listcell(conexion.getNumgrupo().toString());
|
||||
setStyle(lc, conexionConf);
|
||||
lc.setParent(lstm);
|
||||
|
||||
lc = new Listcell(conexion.getNumsecuencia().toString());
|
||||
setStyle(lc, conexionConf);
|
||||
lc.setParent(lstm);
|
||||
|
||||
if (cantGrupo == 2) {
|
||||
cantGrupo = 0;
|
||||
changeColor = !changeColor;
|
||||
}
|
||||
|
||||
lstm.setValue(conexion);
|
||||
}
|
||||
}
|
|
@ -85,6 +85,7 @@
|
|||
<value>com.rjconsultores.ventaboletos.entidad.CortesiaDireccion
|
||||
</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.Conexion</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.ConexionConf</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.ConexionTemp</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.ConexionCtrl</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.ConexionCtrlTemp
|
||||
|
@ -330,13 +331,13 @@
|
|||
<property name="jndiName" value="${database.jndi.name}" />
|
||||
</bean>
|
||||
|
||||
<!-- <bean id="dataSource" -->
|
||||
<!-- class="org.springframework.jdbc.datasource.DriverManagerDataSource"> -->
|
||||
<!-- <property name="driverClassName" value="${database.driver}" /> -->
|
||||
<!-- <property name="url" value="${database.url}" /> -->
|
||||
<!-- <property name="username" value="${database.username}" /> -->
|
||||
<!-- <property name="password" value="${database.password}" /> -->
|
||||
<!-- </bean> -->
|
||||
<!-- <bean id="dataSource" -->
|
||||
<!-- class="org.springframework.jdbc.datasource.DriverManagerDataSource"> -->
|
||||
<!-- <property name="driverClassName" value="${database.driver}" /> -->
|
||||
<!-- <property name="url" value="${database.url}" /> -->
|
||||
<!-- <property name="username" value="${database.username}" /> -->
|
||||
<!-- <property name="password" value="${database.password}" /> -->
|
||||
<!-- </bean> -->
|
||||
|
||||
<!-- ====================================================== -->
|
||||
<!-- Search class from Hibernate-Generic-DAO framework -->
|
||||
|
|
|
@ -4145,12 +4145,15 @@ busquedaConexionController.window.title=Conexões entre Localidades
|
|||
busquedaConexionController.lhOrigenConexion.label=Ori. Conexão
|
||||
busquedaConexionController.lhDestinoConexion.label= Dest. Conexão
|
||||
busquedaConexionController.lhGrupo.label=Grupo
|
||||
busquedaConexionController.lhSecuencia.label = Sequencia
|
||||
busquedaConexionController.lhOrigenTrecho.label=Ori. Trecho
|
||||
busquedaConexionController.lhDestinoTrecho.label=Dest. Trecho
|
||||
busquedaConexionController.btnCerrar.tooltiptext=Fechar
|
||||
busquedaConexionController.btnGenerarConexiones.tooltiptext=Gerar Conexões
|
||||
busquedaConexionController.msgGerarCombincoes=Deseja gerar as combinações de conexões?
|
||||
busquedaConexionController.msgCombincoesGeradas=Combinações Geradas com Sucesso
|
||||
busquedaConexionController.btnNovo.tooltiptext = Novo
|
||||
busquedaConexionController.btnPesquisa.label = Pesquisa
|
||||
|
||||
#Busqueda param conexion
|
||||
busquedaParamConexionController.window.title=Parâmetros de Conexão
|
||||
|
@ -4492,3 +4495,45 @@ relatorioOrigemDestinoController.MSG.selecionarCorridas = Selecione algum servi
|
|||
relatorioOrigemDestinoController.chkBilhetesGratuitos.value = Considerar bilhetes gratuitos
|
||||
relatorioOrigemDestinoController.chkTrechoSemMovimento.value = Exibir trechos sem movimento
|
||||
relatorioOrigemDestinoController.MSG.trechoSemMovimento = Para exibir trechos sem movimento é necessário selecionar quais são os serviços desejados.
|
||||
|
||||
# Editar Conexion
|
||||
#busquedaConexionController.btnNovo.tooltiptext = Novo
|
||||
#busquedaConexionController.btnPesquisa.label = Pesquisa
|
||||
#busquedaConexionController.lhSecuencia.label = Sequencia
|
||||
editarConexionController.window.title = Editar Conexão
|
||||
editarConexionController.btnApagar.tooltiptext = Apagar
|
||||
editarConexionController.btnSalvar.tooltiptext = Salvar
|
||||
editarConexionController.btnFechar.tooltiptext = Fechar
|
||||
editarConexionController.labelOrigenInicial.value = Origem Inicial
|
||||
editarConexionController.labelDestinoFinal.value = Destino Final
|
||||
editarConexionController.labelPorSec1.value = % Desconto 1
|
||||
editarConexionController.labelPorSec2.value = % Desconto 2
|
||||
editarConexionController.labelTiempoMin.value = Tempo Min. de espera
|
||||
editarConexionController.labelTiempoMax.value = Tempo Max. de espera
|
||||
editarConexionController.labelOrigenConexaoPasso1.value = Origem Passo 1
|
||||
editarConexionController.labelDestinoConexaoPasso1.value = Destino Passo 1
|
||||
editarConexionController.labelOrigenConexaoPasso2.value = Origem Passo 2
|
||||
editarConexionController.labelDestinoConexaoPasso2.value = Destino Passo 2
|
||||
editarConexionController.btnAddConexao.tooltiptext = Adicionar Conexão
|
||||
editarConexionController.btnRemoverConexao.tooltiptext = Remover Conexão
|
||||
editarConexionController.lhGrupo.label = Grupo
|
||||
editarConexionController.lhSecuencia.label = Sequencia
|
||||
editarConexionController.labelOrigen.value = Origem
|
||||
editarConexionController.labelDestino.value = Destino
|
||||
editarConexionController.MSG.suscribirOK = Conexão salva com sucesso.
|
||||
editarConexionController.btnModificar.value = Modificar
|
||||
editarConexionController.MSG.borrarConexionPergunta = Deseja remover essa conexão?
|
||||
editarConexionController.MSG.borrarConexionCtrlPergunta = Deseja eliminar essa conexão?
|
||||
editarConexionController.MSG.borrarConexionCtrlSucesso = Conexão removida com sucesso.
|
||||
editarConexionController.btnInativar.tooltiptext = Desativar conexão
|
||||
editarConexionController.MSG.borrarConexionDesativar = Deseja desativar conexão?
|
||||
editarConexionController.MSG.borrarConexionAtivar = Deseja ativar conexão?
|
||||
editarConexionController.labelAtivo.value = * Ativo
|
||||
editarConexionController.labelInativo.value = * Inativo
|
||||
editarConexionController.MSG.selecionarConexion = Selecione uma conexão.
|
||||
|
||||
# Editar Configuracao de Conexion
|
||||
editarConexionConfController.window.title = Editar Configuração de Conexão
|
||||
editarConexionConfController.MSG.suscribirOK = Configuração de Conexão salva com sucesso.
|
||||
editarConexionConfController.MSG.desativarOK = Conexão desativada com sucesso.
|
||||
editarConexionConfController.MSG.ativarOK = Conexao ativada com sucesso.
|
|
@ -5,14 +5,21 @@
|
|||
<?taglib uri="http://www.zkoss.org/dsp/web/core" prefix="c"?>
|
||||
|
||||
<zk>
|
||||
<window id="winConexion" title="${c:l('busquedaConexionController.window.title')}" apply="${busquedaConexionController}" contentStyle="overflow:auto"
|
||||
width="820px" height="450px" border="normal" xmlns:h="http://www.w3.org/1999/xhtml">
|
||||
<window id="winConexion"
|
||||
title="${c:l('busquedaConexionController.window.title')}"
|
||||
apply="${busquedaConexionController}" contentStyle="overflow:auto"
|
||||
width="900px" height="450px" border="normal"
|
||||
xmlns:h="http://www.w3.org/1999/xhtml">
|
||||
<toolbar>
|
||||
<button id="btnCerrar" onClick="winConexion.detach()" image="/gui/img/exit.png" width="35px"
|
||||
<button id="btnCerrar" onClick="winConexion.detach()"
|
||||
image="/gui/img/exit.png" width="35px"
|
||||
tooltiptext="${c:l('busquedaConexionController.btnCerrar.tooltiptext')}" />
|
||||
<separator orient="vertical" />
|
||||
<button id="btnGenerarConexiones" image="/gui/img/create_doc.gif" width="35px"
|
||||
tooltiptext="${c:l('busquedaConexionController.btnGenerarConexiones.tooltiptext')}" />
|
||||
<button id="btnNovo" image="/gui/img/add.png" width="35px"
|
||||
tooltiptext="${c:l('busquedaConexionController.btnNovo.tooltiptext')}" />
|
||||
<button id="btnGenerarConexiones"
|
||||
image="/gui/img/create_doc.gif"
|
||||
label="${c:l('busquedaConexionController.btnGenerarConexiones.tooltiptext')}" />
|
||||
</toolbar>
|
||||
|
||||
<grid fixedLayout="true">
|
||||
|
@ -22,30 +29,53 @@
|
|||
</columns>
|
||||
<rows>
|
||||
<row>
|
||||
<label value="${c:l('editarTramosController.labelOrigen.value')}" />
|
||||
<combobox id="cmbParadaOrigem" use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxParada" mold="rounded" buttonVisible="true" width="100%" />
|
||||
<label
|
||||
value="${c:l('editarTramosController.labelOrigen.value')}" />
|
||||
<combobox id="cmbParadaOrigem" constraint="no empty"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxParada"
|
||||
mold="rounded" buttonVisible="true" width="100%" />
|
||||
</row>
|
||||
<row>
|
||||
<label value="${c:l('editarTramosController.labelDestino.value')}" />
|
||||
<combobox id="cmbParadaDestino" autodrop="false" use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxParada" mold="rounded" buttonVisible="true"
|
||||
width="100%" />
|
||||
<label
|
||||
value="${c:l('editarTramosController.labelDestino.value')}" />
|
||||
<combobox id="cmbParadaDestino" autodrop="false"
|
||||
constraint="no empty"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxParada"
|
||||
mold="rounded" buttonVisible="true" width="100%" />
|
||||
|
||||
</row>
|
||||
</rows>
|
||||
</grid>
|
||||
|
||||
<toolbar>
|
||||
<button id="btnPesquisa" image="/gui/img/find.png" label="${c:l('busquedaConexionController.btnPesquisa.label')}" />
|
||||
<button id="btnPesquisa" image="/gui/img/find.png"
|
||||
label="${c:l('busquedaConexionController.btnPesquisa.label')}" />
|
||||
|
||||
<separator orient="vertical" />
|
||||
<separator orient="vertical" />
|
||||
|
||||
<label style="color:#535757;"
|
||||
value="${c:l('editarConexionController.labelAtivo.value')}" />
|
||||
<separator orient="vertical" />
|
||||
<label style="color:#A52A2A;"
|
||||
value="${c:l('editarConexionController.labelInativo.value')}" />
|
||||
</toolbar>
|
||||
|
||||
<paging id="pagingConexiones" pageSize="20" />
|
||||
<listbox id="conexionesList" use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox" multiple="false" vflex="true" height="50%">
|
||||
<listbox id="conexionesList"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
|
||||
multiple="false" vflex="true" height="50%">
|
||||
<listhead sizable="true">
|
||||
<listheader width="20%" image="/gui/img/builder.gif" label="${c:l('busquedaConexionController.lhOrigenConexion.label')}" />
|
||||
<listheader width="20%" image="/gui/img/builder.gif" label="${c:l('busquedaConexionController.lhDestinoConexion.label')}" />
|
||||
<listheader width="20%" image="/gui/img/builder.gif" label="${c:l('busquedaConexionController.lhGrupo.label')}" />
|
||||
<listheader width="20%" image="/gui/img/builder.gif" label="${c:l('busquedaConexionController.lhOrigenTrecho.label')}" />
|
||||
<listheader width="20%" image="/gui/img/builder.gif" label="${c:l('busquedaConexionController.lhDestinoTrecho.label')}" />
|
||||
<listheader image="/gui/img/builder.gif"
|
||||
label="${c:l('busquedaConexionController.lhOrigenConexion.label')}" />
|
||||
<listheader image="/gui/img/builder.gif"
|
||||
label="${c:l('busquedaConexionController.lhDestinoConexion.label')}" />
|
||||
<listheader image="/gui/img/builder.gif"
|
||||
label="${c:l('busquedaConexionController.lhOrigenTrecho.label')}" />
|
||||
<listheader image="/gui/img/builder.gif"
|
||||
label="${c:l('busquedaConexionController.lhDestinoTrecho.label')}" />
|
||||
<listheader width="10%" image="/gui/img/builder.gif"
|
||||
label="${c:l('busquedaConexionController.lhGrupo.label')}" />
|
||||
</listhead>
|
||||
</listbox>
|
||||
</window>
|
||||
|
|
|
@ -0,0 +1,135 @@
|
|||
<?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="winEditarConexion"?>
|
||||
<?taglib uri="http://www.zkoss.org/dsp/web/core" prefix="c"?>
|
||||
|
||||
<zk>
|
||||
<window id="winEditarConexion"
|
||||
title="${c:l('editarConexionController.window.title')}"
|
||||
apply="${editarConexionController}" contentStyle="overflow:auto"
|
||||
width="830px" border="normal">
|
||||
<toolbar>
|
||||
<hbox spacing="5px" style="padding:1px" align="right">
|
||||
<button id="btnApagar" height="20"
|
||||
image="/gui/img/remove.png" width="35px"
|
||||
tooltiptext="${c:l('editarConexionController.btnApagar.tooltiptext')}" />
|
||||
<button id="btnSalvar" height="20"
|
||||
image="/gui/img/save.png" width="35px"
|
||||
tooltiptext="${c:l('editarConexionController.btnSalvar.tooltiptext')}" />
|
||||
<button id="btnFechar" height="20"
|
||||
image="/gui/img/exit.png" width="35px"
|
||||
onClick="winEditarConexion.detach()"
|
||||
tooltiptext="${c:l('editarConexionController.btnFechar.tooltiptext')}" />
|
||||
</hbox>
|
||||
</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('editarConexionController.labelOrigenInicial.value')}" />
|
||||
<combobox id="cmbOrigemInicial"
|
||||
constraint="no empty"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxParada"
|
||||
mold="rounded" buttonVisible="true" width="100%" />
|
||||
</row>
|
||||
<row spans="1,3">
|
||||
<label
|
||||
value="${c:l('editarConexionController.labelDestinoFinal.value')}" />
|
||||
<combobox id="cmbDestinoFinal" constraint="no empty"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxParada"
|
||||
mold="rounded" buttonVisible="true" width="100%" />
|
||||
</row>
|
||||
<row>
|
||||
<label
|
||||
value="${c:l('editarConexionController.labelTiempoMin.value')}" />
|
||||
<intbox id="txtTiempoMin" />
|
||||
<label
|
||||
value="${c:l('editarConexionController.labelTiempoMax.value')}" />
|
||||
<intbox id="txtTiempoMax" />
|
||||
</row>
|
||||
<row />
|
||||
<row>
|
||||
<label
|
||||
value="${c:l('editarConexionController.labelOrigenConexaoPasso1.value')}" />
|
||||
<combobox id="cmbOrigemConexaoPasso1"
|
||||
disabled="true"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxParada"
|
||||
mold="rounded" buttonVisible="true" width="100%" />
|
||||
|
||||
<label
|
||||
value="${c:l('editarConexionController.labelDestinoConexaoPasso1.value')}" />
|
||||
<combobox id="cmbDestinoConexaoPasso1"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxParada"
|
||||
mold="rounded" buttonVisible="true" width="100%" />
|
||||
</row>
|
||||
<row />
|
||||
<row spans="1,3">
|
||||
<label
|
||||
value="${c:l('editarConexionController.labelPorSec1.value')}" />
|
||||
<decimalbox id="txtPorSec1" width="20%" />
|
||||
</row>
|
||||
<row>
|
||||
<label
|
||||
value="${c:l('editarConexionController.labelOrigenConexaoPasso2.value')}" />
|
||||
<combobox id="cmbOrigemConexaoPasso2"
|
||||
disabled="true"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxParada"
|
||||
mold="rounded" buttonVisible="true" width="100%" />
|
||||
|
||||
<label
|
||||
value="${c:l('editarConexionController.labelDestinoConexaoPasso2.value')}" />
|
||||
<combobox id="cmbDestinoConexaoPasso2"
|
||||
disabled="true"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxParada"
|
||||
mold="rounded" buttonVisible="true" width="100%" />
|
||||
</row>
|
||||
<row spans="1,3">
|
||||
<label
|
||||
value="${c:l('editarConexionController.labelPorSec2.value')}" />
|
||||
<decimalbox id="txtPorSec2" width="20%" />
|
||||
</row>
|
||||
</rows>
|
||||
</grid>
|
||||
<toolbar>
|
||||
<button id="btnAddConexao" image="/gui/img/add.png"
|
||||
width="35px" height="30px"
|
||||
tooltiptext="${c:l('editarConexionController.btnAddConexao.tooltiptext')}" />
|
||||
<button id="btnRemoverConexao" height="30px" width="35px"
|
||||
image="/gui/img/remove.png"
|
||||
tooltiptext="${c:l('editarConexionController.btnRemoverConexao.tooltiptext')}" />
|
||||
<button id="btnModificarConexao" height="30px"
|
||||
label="${c:l('editarConexionController.btnModificar.value')}" />
|
||||
|
||||
<separator orient="vertical" />
|
||||
<separator orient="vertical" />
|
||||
|
||||
<label style="color:#535757;"
|
||||
value="${c:l('editarConexionController.labelAtivo.value')}" />
|
||||
<separator orient="vertical" />
|
||||
<label style="color:#A52A2A;"
|
||||
value="${c:l('editarConexionController.labelInativo.value')}" />
|
||||
</toolbar>
|
||||
<listbox id="conexionesEditarList"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
|
||||
multiple="false" vflex="true" height="50%">
|
||||
<listhead sizable="true">
|
||||
<listheader width="40%" image="/gui/img/builder.gif"
|
||||
label="${c:l('editarConexionController.labelOrigen.value')}" />
|
||||
<listheader width="40%" image="/gui/img/builder.gif"
|
||||
label="${c:l('editarConexionController.labelDestino.value')}" />
|
||||
<listheader width="10%" image="/gui/img/builder.gif"
|
||||
label="${c:l('editarConexionController.lhGrupo.label')}" />
|
||||
<listheader width="10%" image="/gui/img/builder.gif"
|
||||
label="${c:l('editarConexionController.lhSecuencia.label')}" />
|
||||
</listhead>
|
||||
</listbox>
|
||||
</window>
|
||||
</zk>
|
|
@ -0,0 +1,63 @@
|
|||
<?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="winEditarConexionConf"?>
|
||||
<?taglib uri="http://www.zkoss.org/dsp/web/core" prefix="c"?>
|
||||
|
||||
<zk>
|
||||
<window id="winEditarConexionConf"
|
||||
title="${c:l('editarConexionConfController.window.title')}"
|
||||
apply="${editarConexionConfController}" contentStyle="overflow:auto"
|
||||
width="350px" border="normal">
|
||||
<toolbar>
|
||||
<hbox spacing="5px" style="padding:1px" align="right">
|
||||
<button id="btnSalvar" height="30px" width="35px"
|
||||
image="/gui/img/save.png"
|
||||
tooltiptext="${c:l('editarConexionController.btnSalvar.tooltiptext')}" />
|
||||
<button id="btnAtivar" height="30px" width="35px"
|
||||
image="/gui/img/icon-active.gif"
|
||||
tooltiptext="${c:l('editarPricingController.btnAtivar.tooltiptext')}" />
|
||||
<button id="btnDesativar" height="30px" width="35px"
|
||||
image="/gui/img/close_icon_inactive.png"
|
||||
tooltiptext="${c:l('editarConexionController.btnInativar.tooltiptext')}" />
|
||||
<separator orient="vertical" />
|
||||
<button id="btnFechar" height="30px" width="35px"
|
||||
image="/gui/img/exit.png" onClick="winEditarConexionConf.detach()"
|
||||
tooltiptext="${c:l('editarConexionController.btnFechar.tooltiptext')}" />
|
||||
</hbox>
|
||||
</toolbar>
|
||||
|
||||
<grid fixedLayout="true">
|
||||
<columns>
|
||||
<column width="40%" />
|
||||
<column width="60%" />
|
||||
</columns>
|
||||
<rows>
|
||||
<row>
|
||||
<label
|
||||
value="${c:l('editarConexionController.labelTiempoMin.value')}" />
|
||||
<intbox id="txtTiempoMin" width="99%"
|
||||
value="@{winEditarConexionConf$composer.conexionConf.tiempoMin}" />
|
||||
</row>
|
||||
<row>
|
||||
<label
|
||||
value="${c:l('editarConexionController.labelTiempoMax.value')}" />
|
||||
<intbox id="txtTiempoMax" width="99%"
|
||||
value="@{winEditarConexionConf$composer.conexionConf.tiempoMax}" />
|
||||
</row>
|
||||
<row>
|
||||
<label
|
||||
value="${c:l('editarConexionController.labelPorSec1.value')}" />
|
||||
<decimalbox id="txtPorSec1" width="99%"
|
||||
value="@{winEditarConexionConf$composer.conexionConf.porSec1}" />
|
||||
</row>
|
||||
<row>
|
||||
<label
|
||||
value="${c:l('editarConexionController.labelPorSec2.value')}" />
|
||||
<decimalbox id="txtPorSec2" width="99%"
|
||||
value="@{winEditarConexionConf$composer.conexionConf.porSec2}" />
|
||||
</row>
|
||||
</rows>
|
||||
</grid>
|
||||
</window>
|
||||
</zk>
|
Loading…
Reference in New Issue