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
|
||||
# <controler>. <id>. <propiedade> = XXX
|
||||
|
||||
#Versao do VentaBoleto:
|
||||
versao = ADM_20130906_1RC224
|
||||
|
||||
# MSG Defaut:
|
||||
MSG.CONSTRAINT.PORCENTAGEM = Os valores devem estar entre 0 e 100
|
||||
|
|
|
@ -3,25 +3,31 @@
|
|||
<?taglib uri="http://www.zkoss.org/dsp/web/core" prefix="c"?>
|
||||
|
||||
<zk xmlns="http://www.zkoss.org/2005/zul"
|
||||
xmlns:h="http://www.w3.org/1999/xhtml"
|
||||
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">
|
||||
xmlns:h="http://www.w3.org/1999/xhtml"
|
||||
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">
|
||||
|
||||
<window id="winVersao" title="${c:l('winVersao.title')}" border="normal"
|
||||
width="400px" position="center" mode="overlapped" >
|
||||
<window id="winVersao" title="${c:l('winVersao.title')}"
|
||||
border="normal" width="400px" position="center" mode="overlapped">
|
||||
|
||||
<toolbar>
|
||||
<button id="btnCerrar" onClick="winVersao.detach()" image="/gui/img/exit.png" width="35px"
|
||||
tooltiptext="${c:l('busquedaEmpresaController.btnCerrar.tooltiptext')}"/>
|
||||
</toolbar>
|
||||
<attribute name="onCreate">
|
||||
lblVersion.setValue(com.rjconsultores.ventaboletos.web.utilerias.Version.readVersion());
|
||||
</attribute>
|
||||
|
||||
<grid>
|
||||
<rows >
|
||||
<row>
|
||||
<label value="${c:l('indexController.mniVersion.label')}"/>
|
||||
<label value="${c:l('versao')}"/>
|
||||
</row>
|
||||
</rows>
|
||||
</grid>
|
||||
</window>
|
||||
|
||||
<toolbar>
|
||||
<button id="btnCerrar" onClick="winVersao.detach()"
|
||||
image="/gui/img/exit.png" width="35px"
|
||||
tooltiptext="${c:l('busquedaEmpresaController.btnCerrar.tooltiptext')}" />
|
||||
</toolbar>
|
||||
|
||||
<grid>
|
||||
<rows>
|
||||
<row>
|
||||
<label value="${c:l('indexController.mniVersion.label')}" />
|
||||
<label id="lblVersion"/>
|
||||
</row>
|
||||
</rows>
|
||||
</grid>
|
||||
</window>
|
||||
</zk>
|
Loading…
Reference in New Issue