%@page session="true"%>
<%@ page import="com.edeal.frontline.navigation.FlRequest"%>
<%@ page import="com.edeal.frontline.MetaDataTransferBean"%>
<%@ page import="com.edeal.frontline.*"%>
<%@taglib uri="http://www.e-deal.com/taglib/fl" prefix="fl"%>
<%
final org.apache.commons.logging.Log logger = org.apache.commons.logging.LogFactory.getLog(getClass());
FlRequest flRequest = new FlRequest(request);
FlContext context = flRequest.getContext();
DataDictionary dico = context.getDataDictionary();
String id = null;
String sfwId = null;
String etat = null;
String origineAction = null;
boolean noDiff = false;
String statusCreate = dico.getRefIdByCode("MdtStatus","CREATE");
String statusDiff = dico.getRefIdByCode("MdtStatus","DIFF");
String statusApply = dico.getRefIdByCode("MdtStatus","APPLIED");
String statusError = dico.getRefIdByCode("MdtStatus","ERR");
String statusEnCours = dico.getRefIdByCode("MdtStatus","ENCOURS");
noDiff = "true".equals(flRequest.getRequestParameterOrAttribute("noDiff"));
sfwId = flRequest.getRequestParameterOrAttribute("SfwID");
try {
id = MetaDataTransfer.getID();
etat = MetaDataTransfer.getMdtStatus();
} catch (Exception e) {
id = flRequest.getRequestParameterOrAttribute("id");
}
String calcDiffStr;
if (noDiff) {
calcDiffStr = Utils.getMessage(session, "L7108", "Calculer différences");
} else {
calcDiffStr = Utils.getMessage(session, "M7110", "Recalculer différences");
}
%>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<%
if(statusApply.equals(etat) || statusError.equals(etat) || statusEnCours.equals(etat)){
origineAction = "rollback";
%>
|
|
|
|
|
|
<%
if(statusError.equals(etat)){
origineAction = "apply";
%>
|
|
|
|
|
|
<%
}
}
if (!(statusApply.equals(etat) || statusError.equals(etat))) {
origineAction = "apply";
if(!statusApply.equals(etat)){
%>
|
|
|
|
|
|
<%
}
%>
|
|
|
|
<%
if(noDiff){
%>
');">
<%
}else{
%>
<%
}
%>
|
|
|
|
|
|
<%
if(noDiff){
%>
');">
<%
}else{
%>
<%
}
%>
|
|
<%
}
%>