fixes bug #10258 - Auditoria alterações

git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@78931 d1611594-4594-4d17-8e1d-87c2c4800839
master
leonardo 2018-02-09 19:36:14 +00:00
parent 8a90ecd334
commit ca6219a2d0
2 changed files with 13 additions and 7 deletions

View File

@ -165,7 +165,7 @@ public class EditarPricingCorridaController extends MyGenericForwardComposer {
}
pricing.setPricingCorridaList(lsPricingViagem);
pricingCorridaList.setData(lsPricingViagem);
pricingCorridaList.setData(pricing.getPricingCorridaList());
closeWindow();
}

View File

@ -4,6 +4,7 @@ O * To change this template, choose Tools | Templates
*/
package com.rjconsultores.ventaboletos.web.gui.controladores.seguridad;
import org.apache.log4j.Logger;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Controller;
import org.zkoss.zk.ui.Component;
@ -19,20 +20,25 @@ import com.rjconsultores.ventaboletos.web.utilerias.MyGenericForwardComposer;
public class AuditModuleDetailController extends MyGenericForwardComposer {
private static final long serialVersionUID = 1L;
private static Logger log = Logger.getLogger(AuditModuleDetailController.class);
private Textbox txtEntityJson;
@Override
public void doAfterCompose(Component comp) throws Exception {
public void doAfterCompose(Component comp) throws Exception{
super.doAfterCompose(comp);
AuditLog auditLog = (AuditLog) Executions.getCurrent().getArg().get("auditLog");
Class<?> clazz = Class.forName("com.rjconsultores.ventaboletos.entidad.".concat(auditLog.getEntityName()));
Object clazzJson = AuditControl.getGson().fromJson(auditLog.getEntityDetail(), clazz);
txtEntityJson.setValue(AuditControl.formatJson(clazzJson, true));
Class<?> clazz;
try {
clazz = Class.forName("com.rjconsultores.ventaboletos.entidad.".concat(auditLog.getEntityName()));
Object clazzJson = AuditControl.getGson().fromJson(auditLog.getEntityDetail(), clazz);
txtEntityJson.setValue(AuditControl.formatJson(clazzJson, true));
} catch (ClassNotFoundException e) {
log.debug("Não encontrou Classe " + "com.rjconsultores.ventaboletos.entidad.".concat(auditLog.getEntityName()));
}
}
}