<%
float est = 0;
float reel = 0;
float diffN = 0;
double diffP = 0;
try {
est = Campaign.getCpgIndicEst1();
} catch(FieldNotInitializedException e) {
}
try {
reel = Campaign.getCpgIndicReal1();
} catch(FieldNotInitializedException e) {
}
diffN = reel - est;
if (est != 0) {
diffP = ((double)diffN / (double)est) * 100;
}
String unit1 = "";
try {
String deviseStr = (String)dico.getRefDisp(session, "CpgIndicUnit1", Campaign.getCpgIndicUnit1());
unit1 = (deviseStr == null ? "" : " " + deviseStr);
} catch (Exception e) {
unit1 = "";
}
%>
|
<%= floatFormat.format(est).trim() %><%= unit1 %> |
<%= floatFormat.format(reel).trim() %><%= unit1 %> |
<%= floatFormat.format(diffN).trim() %><%= unit1 %> : <%= floatFormat.format(diffP).trim() %> % |
<%
try {
est = Campaign.getCpgIndicEst2();
} catch(FieldNotInitializedException e) {
est = 0;
}
try {
reel = Campaign.getCpgIndicReal2();
} catch(FieldNotInitializedException e) {
reel = 0;
}
diffN = reel - est;
if (est != 0) {
diffP = ((double)diffN / (double)est) * 100;
} else {
diffP = 0;
}
try {
String deviseStr = (String)dico.getRefDisp(session, "CpgIndicUnit2", Campaign.getCpgIndicUnit2());
unit1 = (deviseStr == null ? "" : " " + deviseStr);
} catch (Exception e) {
unit1 = "";
}
%>
|
<%= floatFormat.format(est).trim() %><%= unit1 %> |
<%= floatFormat.format(reel).trim() %><%= unit1 %> |
<%= floatFormat.format(diffN).trim() %><%= unit1 %> : <%= floatFormat.format(diffP).trim() %> % |
<%
try {
est = Campaign.getCpgIndicEst3();
} catch(FieldNotInitializedException e) {
est = 0;
}
try {
reel = Campaign.getCpgIndicReal3();
} catch(FieldNotInitializedException e) {
reel = 0;
}
diffN = reel - est;
if (est != 0) {
diffP = ((double)diffN / (double)est) * 100;
} else {
diffP = 0;
}
try {
String deviseStr = (String)dico.getRefDisp(session, "CpgIndicUnit3", Campaign.getCpgIndicUnit3());
unit1 = (deviseStr == null ? "" : " " + deviseStr);
} catch (Exception e) {
unit1 = "";
}
%>
|
<%= floatFormat.format(est).trim() %><%= unit1 %> |
<%= floatFormat.format(reel).trim() %><%= unit1 %> |
<%= floatFormat.format(diffN).trim() %><%= unit1 %> : <%= floatFormat.format(diffP).trim() %> % |
<%
try {
est = Campaign.getCpgIndicEst4();
} catch(FieldNotInitializedException e) {
est = 0;
}
try {
reel = Campaign.getCpgIndicReal4();
} catch(FieldNotInitializedException e) {
reel = 0;
}
diffN = reel - est;
if (est != 0) {
diffP = ((double)diffN / (double)est) * 100;
} else {
diffP = 0;
}
unit1 = "";
try {
String deviseStr = (String)dico.getRefDisp(session, "CpgIndicUnit4", Campaign.getCpgIndicUnit4());
unit1 = (deviseStr == null ? "" : " " + deviseStr);
} catch (Exception e) {
}
%>
|
<%= floatFormat.format(est) %><%= unit1 %> |
<%= floatFormat.format(reel).trim() %><%= unit1 %> |
<%= floatFormat.format(diffN).trim() %><%= unit1 %> : <%= floatFormat.format(diffP).trim() %> % |
<%
try {
est = Campaign.getCpgIndicEst5();
} catch(FieldNotInitializedException e) {
est = 0;
}
try {
reel = Campaign.getCpgIndicReal5();
} catch(FieldNotInitializedException e) {
reel = 0;
}
diffN = reel - est;
if (est != 0) {
diffP = ((double)diffN / (double)est) * 100;
} else {
diffP = 0;
}
try {
String deviseStr = (String)dico.getRefDisp(session, "CpgIndicUnit5", Campaign.getCpgIndicUnit5());
unit1 = (deviseStr == null ? "" : " " + deviseStr);
} catch (Exception e) {
unit1 = "";
}
%>
|
<%= floatFormat.format(est).trim() %><%= unit1 %> |
<%= floatFormat.format(reel).trim() %><%= unit1 %> |
<%= floatFormat.format(diffN).trim() %><%= unit1 %> : <%= floatFormat.format(diffP).trim() %> % |