git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@30756 d1611594-4594-4d17-8e1d-87c2c4800839
parent
de4e619414
commit
c663d2dda7
|
@ -0,0 +1,31 @@
|
||||||
|
package com.rjconsultores.ventaboletos.web.utilerias;
|
||||||
|
|
||||||
|
import java.io.BufferedReader;
|
||||||
|
import java.io.DataInputStream;
|
||||||
|
import java.io.IOException;
|
||||||
|
import java.io.InputStream;
|
||||||
|
import java.io.InputStreamReader;
|
||||||
|
|
||||||
|
import org.slf4j.Logger;
|
||||||
|
import org.slf4j.LoggerFactory;
|
||||||
|
|
||||||
|
public class Version {
|
||||||
|
private static Logger log = LoggerFactory.getLogger(Version.class);
|
||||||
|
|
||||||
|
public static String readVersion() {
|
||||||
|
String version = "";
|
||||||
|
try {
|
||||||
|
InputStream is = (new Version()).getClass().getResourceAsStream("/versionADM.info");
|
||||||
|
DataInputStream dis = new DataInputStream(is);
|
||||||
|
BufferedReader br = new BufferedReader(new InputStreamReader(dis));
|
||||||
|
version = br.readLine();
|
||||||
|
is.close();
|
||||||
|
dis.close();
|
||||||
|
} catch (IOException e) {
|
||||||
|
version = "";
|
||||||
|
log.error("", e);
|
||||||
|
}
|
||||||
|
return version;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1 @@
|
||||||
|
ADM_20130909_1RC226
|
|
@ -6,8 +6,6 @@
|
||||||
# Control ZUL. Identificación del Componente. Propiedad = XXX
|
# Control ZUL. Identificación del Componente. Propiedad = XXX
|
||||||
# <controler>. <id>. <propiedade> = XXX
|
# <controler>. <id>. <propiedade> = XXX
|
||||||
|
|
||||||
#Versao do VentaBoleto:
|
|
||||||
versao = ADM_20130906_1RC224
|
|
||||||
|
|
||||||
# MSG Defaut:
|
# MSG Defaut:
|
||||||
MSG.CONSTRAINT.PORCENTAGEM = Os valores devem estar entre 0 e 100
|
MSG.CONSTRAINT.PORCENTAGEM = Os valores devem estar entre 0 e 100
|
||||||
|
|
|
@ -7,11 +7,17 @@
|
||||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||||
xsi:schemaLocation="http://www.zkoss.org/2005/zul http://www.zkoss.org/2005/zul/zul.xsd">
|
xsi:schemaLocation="http://www.zkoss.org/2005/zul http://www.zkoss.org/2005/zul/zul.xsd">
|
||||||
|
|
||||||
<window id="winVersao" title="${c:l('winVersao.title')}" border="normal"
|
<window id="winVersao" title="${c:l('winVersao.title')}"
|
||||||
width="400px" position="center" mode="overlapped" >
|
border="normal" width="400px" position="center" mode="overlapped">
|
||||||
|
|
||||||
|
<attribute name="onCreate">
|
||||||
|
lblVersion.setValue(com.rjconsultores.ventaboletos.web.utilerias.Version.readVersion());
|
||||||
|
</attribute>
|
||||||
|
|
||||||
|
|
||||||
<toolbar>
|
<toolbar>
|
||||||
<button id="btnCerrar" onClick="winVersao.detach()" image="/gui/img/exit.png" width="35px"
|
<button id="btnCerrar" onClick="winVersao.detach()"
|
||||||
|
image="/gui/img/exit.png" width="35px"
|
||||||
tooltiptext="${c:l('busquedaEmpresaController.btnCerrar.tooltiptext')}" />
|
tooltiptext="${c:l('busquedaEmpresaController.btnCerrar.tooltiptext')}" />
|
||||||
</toolbar>
|
</toolbar>
|
||||||
|
|
||||||
|
@ -19,7 +25,7 @@
|
||||||
<rows>
|
<rows>
|
||||||
<row>
|
<row>
|
||||||
<label value="${c:l('indexController.mniVersion.label')}" />
|
<label value="${c:l('indexController.mniVersion.label')}" />
|
||||||
<label value="${c:l('versao')}"/>
|
<label id="lblVersion"/>
|
||||||
</row>
|
</row>
|
||||||
</rows>
|
</rows>
|
||||||
</grid>
|
</grid>
|
||||||
|
|
Loading…
Reference in New Issue