fix in quotation oltre che in simulazione x visibilità btn revisione

This commit is contained in:
Samuele E. Locatelli
2015-05-26 18:33:32 +02:00
parent 003d65133c
commit c236a698a9
2 changed files with 16 additions and 1 deletions
+16 -1
View File
@@ -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:
BIN
View File
Binary file not shown.