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);
|
pricing.setPricingCorridaList(lsPricingViagem);
|
||||||
pricingCorridaList.setData(lsPricingViagem);
|
pricingCorridaList.setData(pricing.getPricingCorridaList());
|
||||||
|
|
||||||
closeWindow();
|
closeWindow();
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,6 +4,7 @@ O * To change this template, choose Tools | Templates
|
||||||
*/
|
*/
|
||||||
package com.rjconsultores.ventaboletos.web.gui.controladores.seguridad;
|
package com.rjconsultores.ventaboletos.web.gui.controladores.seguridad;
|
||||||
|
|
||||||
|
import org.apache.log4j.Logger;
|
||||||
import org.springframework.context.annotation.Scope;
|
import org.springframework.context.annotation.Scope;
|
||||||
import org.springframework.stereotype.Controller;
|
import org.springframework.stereotype.Controller;
|
||||||
import org.zkoss.zk.ui.Component;
|
import org.zkoss.zk.ui.Component;
|
||||||
|
@ -19,6 +20,7 @@ import com.rjconsultores.ventaboletos.web.utilerias.MyGenericForwardComposer;
|
||||||
public class AuditModuleDetailController extends MyGenericForwardComposer {
|
public class AuditModuleDetailController extends MyGenericForwardComposer {
|
||||||
|
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
private static Logger log = Logger.getLogger(AuditModuleDetailController.class);
|
||||||
|
|
||||||
private Textbox txtEntityJson;
|
private Textbox txtEntityJson;
|
||||||
|
|
||||||
|
@ -29,10 +31,14 @@ public class AuditModuleDetailController extends MyGenericForwardComposer {
|
||||||
|
|
||||||
AuditLog auditLog = (AuditLog) Executions.getCurrent().getArg().get("auditLog");
|
AuditLog auditLog = (AuditLog) Executions.getCurrent().getArg().get("auditLog");
|
||||||
|
|
||||||
Class<?> clazz = Class.forName("com.rjconsultores.ventaboletos.entidad.".concat(auditLog.getEntityName()));
|
Class<?> clazz;
|
||||||
|
try {
|
||||||
|
clazz = Class.forName("com.rjconsultores.ventaboletos.entidad.".concat(auditLog.getEntityName()));
|
||||||
Object clazzJson = AuditControl.getGson().fromJson(auditLog.getEntityDetail(), clazz);
|
Object clazzJson = AuditControl.getGson().fromJson(auditLog.getEntityDetail(), clazz);
|
||||||
|
|
||||||
txtEntityJson.setValue(AuditControl.formatJson(clazzJson, true));
|
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