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-87c2c4800839master
parent
8a90ecd334
commit
ca6219a2d0
|
@ -165,7 +165,7 @@ public class EditarPricingCorridaController extends MyGenericForwardComposer {
|
|||
}
|
||||
|
||||
pricing.setPricingCorridaList(lsPricingViagem);
|
||||
pricingCorridaList.setData(lsPricingViagem);
|
||||
pricingCorridaList.setData(pricing.getPricingCorridaList());
|
||||
|
||||
closeWindow();
|
||||
}
|
||||
|
|
|
@ -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()));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue