<%float curEcart = DptObjCA - DptCAPrev;
float curProg = 0;
try {
if (DptCAPrev != 0) curProg = curEcart / DptCAPrev;
} catch (Exception e) {
}
%>
|
<%=intFormat.format((int) DptObjCA)%>
€
|
<%= intFormat.format((int) DptCAPrev)%>
€
|
<%= (curProg != 0) ? floatFormat.format(curProg * 100) : "" %>
%
|
<%=intFormat.format((int) curEcart)%>
€
|
<%
curEcart = DptBudgMktObj - DptBudgMktPrev;
String valToDisplay = "";
try {
if(DptBudgMktObj == 0 && DptBudgMktPrev == 0){
valToDisplay = " ";
} else if(DptBudgMktPrev == 0 && DptBudgMktObj != 0){
valToDisplay = "% ";
} else {
curProg = curEcart / DptBudgMktPrev;
valToDisplay = floatFormat.format(curProg * 100) + " % ";
}
} catch (Exception e) {
}
%>
|
<%=intFormat.format((int) DptBudgMktObj)%>
€
|
<%=intFormat.format((int) DptBudgMktPrev)%>
€
|
<%= valToDisplay %>
|
<%=intFormat.format((int) curEcart)%>
€
|
<%float currYearMkt = 0;
float prevYearMkt = 0;
float DptPrtGrpe = 0;
float DptPrtGrpePrev = 0;
String finalDptPrtGrpe = "";
String finalDptPrtGrpePrev = "";
String finalDptPrtGrpePer = "";
String finalDptPrtGrpePrevPer = "";
try {
DptPrtGrpe = Department.getDptPrtGrpe();
} catch (FieldNotInitializedException fnie) {}
try {
DptPrtGrpePrev = Department.getDptPrtGrpePrev();
} catch (FieldNotInitializedException fnie) {}
if (Department.isDptPrtGrpeType()) {
finalDptPrtGrpePer = floatFormat.format(DptPrtGrpe) + " %";
DptPrtGrpe = (DptPrtGrpe / 100) * DptBudgMktObj;
} else {
if (DptBudgMktObj != 0) finalDptPrtGrpePer += floatFormat.format(DptPrtGrpe
/ DptBudgMktObj * 100)
+ " %";
else finalDptPrtGrpePer += floatFormat.format(0) +" %";
}
finalDptPrtGrpe += intFormat.format(DptPrtGrpe) + " €";
if (Department.isDptPrtGrpePrevType()) {
finalDptPrtGrpePrevPer = floatFormat.format(DptPrtGrpePrev)
+ " %";
DptPrtGrpePrev = (DptPrtGrpePrev / 100) * DptBudgMktPrev;
} else {
if (DptBudgMktObj != 0) finalDptPrtGrpePrevPer += floatFormat.format(DptPrtGrpePrev
/ DptBudgMktObj * 100)
+ " %";
else finalDptPrtGrpePrevPer += floatFormat.format(0) + " %";
}
finalDptPrtGrpePrev += intFormat.format(DptPrtGrpePrev)
+ " €";
float bugProgEcart = DptPrtGrpe - DptPrtGrpePrev;
float bugProgPcg = 0;
try {
if (DptObjCA != 0) currYearMkt = DptBudgMktObj / DptObjCA;
} catch (Exception e) {
}
try {
if (DptCAPrev != 0) prevYearMkt = DptBudgMktPrev / DptCAPrev;
} catch (Exception e) {
}
try {
if (DptPrtGrpePrev != 0) bugProgPcg = (bugProgEcart) / DptPrtGrpePrev;
} catch (Exception e) {
}
%>
|
<%= (currYearMkt != 0) ? floatFormat.format(currYearMkt * 100) : "" %> %
|
<%= (prevYearMkt != 0) ? floatFormat.format(prevYearMkt * 100) : "" %> %
|
|
|
|
<%=finalDptPrtGrpe%>
|
<%=finalDptPrtGrpePrev%>
|
<%= (bugProgPcg != 0) ? floatFormat.format(bugProgPcg * 100) : ""%>
%
|
<%=intFormat.format((int) bugProgEcart)%>
€
|
(%)
|
<%= !(finalDptPrtGrpePer.equals("0 %")) ? finalDptPrtGrpePer : "0 %" %>
|
<%= !(finalDptPrtGrpePrevPer.equals("0 %")) ? finalDptPrtGrpePrevPer : "0 %" %>
|
|
|
<%currBudgetP = DptBudgMktObj - DptPrtGrpe;
prevBudgetP = DptBudgMktPrev - DptPrtGrpePrev;
bugProgEcart = currBudgetP - prevBudgetP;
bugProgPcg = 0;
try {
if (prevBudgetP != 0) bugProgPcg = (bugProgEcart) / prevBudgetP;
} catch (Exception e) {
}
%>
|
<%=intFormat.format((int) currBudgetP)%>
€
|
<%=intFormat.format((int) prevBudgetP)%>
€
|
<%= (bugProgPcg != 0) ? floatFormat.format(bugProgPcg * 100) : "0"%> %
|
<%=intFormat.format((int) bugProgEcart)%>
€
|