<%
float est = 0;
float reel = 0;
float diffN = 0;
double diffP = 0;
try {
est = Stage.getStgIndicEst1();
} catch(FieldNotInitializedException e) {
}
try {
reel = Stage.getStgIndicReal1();
} catch(FieldNotInitializedException e) {
}
diffN = reel - est;
if (est != 0) {
diffP = ((double)diffN / (double)est) * 100;
}
String unit1 = "";
try {
String tmpUnit = (String)dico.getRefDisp(session, "StgIndicUnit1", Stage.getStgIndicUnit1());
if (tmpUnit != null) {
unit1 = " " + tmpUnit;
} else {
logger.error("StgIndicUnit1 is not specified");
}
} catch (FieldNotInitializedException e) {
}
%>
|
<%= floatFormat.format(est).trim() %><%= unit1 %> |
<%= floatFormat.format(reel).trim() %><%= unit1 %> |
<%= floatFormat.format(diffN).trim() %><%= unit1 %> : <%= floatFormat.format(diffP).trim() %>% |
<%
est = 0;
reel = 0;
diffN = 0;
diffP = 0;
try {
est = Stage.getStgIndicEst2();
} catch(FieldNotInitializedException e) {
}
try {
reel = Stage.getStgIndicReal2();
} catch(FieldNotInitializedException e) {
}
diffN = reel - est;
if (est != 0) {
diffP = ((double)diffN / (double)est) * 100;
}
String unit2 = "";
try {
String tmpUnit = (String)dico.getRefDisp(session, "StgIndicUnit2", Stage.getStgIndicUnit2());
if (tmpUnit != null) {
unit2 = " " + tmpUnit;
} else {
logger.error("StgIndicUnit2 is not specified");
}
} catch (FieldNotInitializedException e) {
}
%>
|
<%= floatFormat.format(est).trim() %><%= unit2 %> |
<%= floatFormat.format(reel).trim() %><%= unit2 %> |
<%= floatFormat.format(diffN).trim() %><%= unit2 %> : <%= floatFormat.format(diffP).trim() %>% |
<%
est = 0;
reel = 0;
diffN = 0;
diffP = 0;
try {
est = Stage.getStgIndicEst3();
} catch(FieldNotInitializedException e) {
}
try {
reel = Stage.getStgIndicReal3();
} catch(FieldNotInitializedException e) {
}
diffN = reel - est;
if (est != 0) {
diffP = ((double)diffN / (double)est) * 100;
}
String unit3 = "";
try {
String tmpUnit = (String)dico.getRefDisp(session, "StgIndicUnit3", Stage.getStgIndicUnit3());
if (tmpUnit != null) {
unit3 = " " + tmpUnit;
} else {
logger.error("StgIndicUnit3 is not specified");
}
} catch (FieldNotInitializedException e) {
}
%>
|
<%= floatFormat.format(est).trim() %><%= unit3 %> |
<%= floatFormat.format(reel).trim() %><%= unit3 %> |
<%= floatFormat.format(diffN).trim() %><%= unit3 %> : <%= floatFormat.format(diffP).trim() %>% |
<%
est = 0;
reel = 0;
diffN = 0;
diffP = 0;
try {
est = Stage.getStgIndicEst4();
} catch(FieldNotInitializedException e) {
}
try {
reel = Stage.getStgIndicReal4();
} catch(FieldNotInitializedException e) {
}
diffN = reel - est;
if (est != 0) {
diffP = ((double)diffN / (double)est) * 100;
}
String unit4 = "";
try {
String tmpUnit = (String)dico.getRefDisp(session, "StgIndicUnit4", Stage.getStgIndicUnit4());
if (tmpUnit != null) {
unit4 = " " + tmpUnit;
} else {
logger.error("StgIndicUnit4 is not specified");
}
} catch (FieldNotInitializedException e) {
}
%>
|
<%= floatFormat.format(est).trim() %><%= unit4 %> |
<%= floatFormat.format(reel).trim() %><%= unit4 %> |
<%= floatFormat.format(diffN).trim() %><%= unit4 %> : <%= floatFormat.format(diffP).trim() %>% |
<%
est = 0;
reel = 0;
diffN = 0;
diffP = 0;
try {
est = Stage.getStgIndicEst5();
} catch(FieldNotInitializedException e) {
}
try {
reel = Stage.getStgIndicReal5();
} catch(FieldNotInitializedException e) {
}
diffN = reel - est;
if (est != 0) {
diffP = ((double)diffN / (double)est) * 100;
}
String unit5 = "";
try {
String tmpUnit = (String)dico.getRefDisp(session, "StgIndicUnit5", Stage.getStgIndicUnit5());
if (tmpUnit != null) {
unit5 = " " + tmpUnit;
} else {
logger.error("StgIndicUnit5 is not specified");
}
} catch (FieldNotInitializedException e) {
}
%>
|
<%= floatFormat.format(est).trim() %><%= unit5 %> |
<%= floatFormat.format(reel).trim() %><%= unit5 %> |
<%= floatFormat.format(diffN).trim() %><%= unit5 %> : <%= floatFormat.format(diffP).trim() %>% |