diff --git a/C2P/WebUserControls/mod_QuoteDet.ascx.cs b/C2P/WebUserControls/mod_QuoteDet.ascx.cs index 0530b62..0f3479c 100644 --- a/C2P/WebUserControls/mod_QuoteDet.ascx.cs +++ b/C2P/WebUserControls/mod_QuoteDet.ascx.cs @@ -387,8 +387,23 @@ namespace C2P.WebUserControls divStato1.Visible = false; divStato2.Visible = false; // 2015.02.26 SOLO SE è in result = TBD + bool condTbd = false; + try + { + condTbd = OfferResult == "TBD"; // hard coded !!! + } + catch + { } + // 2015.05.26 SOLO SE è l'ULTIMA revisione... + bool condIsLast = false; + try + { + condIsLast = DtProxy.man.taCLQ.GetData(QuoteType, Convert.ToInt64(CodQuote))[0].lastRev == Convert.ToInt32(QuoteRev); + } + catch + { } //divStato3.Visible = true; - divStato3.Visible = OfferResult == "TBD"; // hard coded !!! + divStato3.Visible = condTbd && condIsLast; btnGetPdf.Visible = true; break; default: diff --git a/C2P/bin/C2P.dll b/C2P/bin/C2P.dll index c827aed..d77e819 100644 Binary files a/C2P/bin/C2P.dll and b/C2P/bin/C2P.dll differ