-
+
+ <%--valueCss='<%# colorByVal(Eval("PriceOff"), Eval("MinPrice")) %>'--%>
diff --git a/C2P/WebUserControls/mod_Q_Quot.ascx.cs b/C2P/WebUserControls/mod_Q_Quot.ascx.cs
index 9b2ec2a..73cce8a 100644
--- a/C2P/WebUserControls/mod_Q_Quot.ascx.cs
+++ b/C2P/WebUserControls/mod_Q_Quot.ascx.cs
@@ -60,6 +60,52 @@ namespace C2P.WebUserControls
return answ;
}
///
+ /// Calcola css dato valore prezzo offerto vs importi full cost e min price
+ ///
+ ///
+ ///
+ ///
+ ///
+ ///
+ ///
+ public string priceVsCost(object _quoteType, object _FullCost, object _MinPrice, object _MinPrice_sim, object _PriceOff)
+ {
+ string answ = "";
+ string QType = "";
+ double FullCost = 0;
+ double MinPrice = 0;
+ double PriceOff = 0;
+ try
+ {
+ QType = _quoteType.ToString();
+ FullCost = Convert.ToDouble(_FullCost);
+ if (QType == "S")
+ {
+ MinPrice = Convert.ToDouble(_MinPrice_sim);
+ }
+ else
+ {
+ MinPrice = Convert.ToDouble(_MinPrice);
+ }
+ PriceOff = Convert.ToDouble(_PriceOff);
+ }
+ catch
+ { }
+ if (PriceOff > MinPrice && (FullCost > 0 && MinPrice > 0))
+ {
+ answ = "allOk";
+ }
+ else if (PriceOff > FullCost && (FullCost > 0 && MinPrice > 0))
+ {
+ answ = "warnOrange";
+ }
+ else
+ {
+ answ = "warnRed";
+ }
+ return answ;
+ }
+ ///
/// controllo se inviare evento refresh al cambio di modo della formview
///
///
diff --git a/C2P/bin/C2P.dll b/C2P/bin/C2P.dll
index eb15210..421dce7 100644
Binary files a/C2P/bin/C2P.dll and b/C2P/bin/C2P.dll differ
diff --git a/C2P/bin/C2P_Data.dll b/C2P/bin/C2P_Data.dll
index 30502b6..6aa2890 100644
Binary files a/C2P/bin/C2P_Data.dll and b/C2P/bin/C2P_Data.dll differ
diff --git a/C2P/bin/SteamWare.dll b/C2P/bin/SteamWare.dll
index e753bd9..2f09fd4 100644
Binary files a/C2P/bin/SteamWare.dll and b/C2P/bin/SteamWare.dll differ
diff --git a/C2P_Report/bin/C2P_Data.dll b/C2P_Report/bin/C2P_Data.dll
index 30502b6..6aa2890 100644
Binary files a/C2P_Report/bin/C2P_Data.dll and b/C2P_Report/bin/C2P_Data.dll differ
diff --git a/C2P_Report/bin/C2P_Report.dll b/C2P_Report/bin/C2P_Report.dll
index c87c699..eacf577 100644
Binary files a/C2P_Report/bin/C2P_Report.dll and b/C2P_Report/bin/C2P_Report.dll differ
diff --git a/C2P_Report/bin/SteamWare.dll b/C2P_Report/bin/SteamWare.dll
index e753bd9..2f09fd4 100644
Binary files a/C2P_Report/bin/SteamWare.dll and b/C2P_Report/bin/SteamWare.dll differ
diff --git a/VersGen/C2P.cs b/VersGen/C2P.cs
index 5ce8f08..4a906ff 100644
--- a/VersGen/C2P.cs
+++ b/VersGen/C2P.cs
@@ -5,7 +5,7 @@
using System.Reflection;
-[assembly: AssemblyVersion("0.9.117.271")]
-[assembly: AssemblyFileVersion("0.9.117.271")]
+[assembly: AssemblyVersion("0.9.118.271")]
+[assembly: AssemblyFileVersion("0.9.118.271")]
[assembly: AssemblyCopyright("Proxima & Steamware © 2013-2014")]
[assembly: AssemblyCompany("Steamware")]
diff --git a/VersGen/C2P.tt b/VersGen/C2P.tt
index 0a1c304..6657400 100644
--- a/VersGen/C2P.tt
+++ b/VersGen/C2P.tt
@@ -6,8 +6,8 @@
using System.Reflection;
-[assembly: AssemblyVersion("0.9.117.<#= this.RevisionNumber #>")]
-[assembly: AssemblyFileVersion("0.9.117.<#= this.RevisionNumber #>")]
+[assembly: AssemblyVersion("0.9.118.<#= this.RevisionNumber #>")]
+[assembly: AssemblyFileVersion("0.9.118.<#= this.RevisionNumber #>")]
[assembly: AssemblyCopyright("Proxima & Steamware © 2013-<#= DateTime.Now.Year #>")]
[assembly: AssemblyCompany("Steamware")]
<#+