Update TBA:

- fix pagina conferma
- NON si modifica se non si fa toggle mostra/nascondi conferma
- periodo indicato meglio
This commit is contained in:
Samuele Locatelli
2022-09-28 17:49:33 +02:00
parent 8ebbe0294c
commit 803a2103c9
6 changed files with 293 additions and 199 deletions
+38 -3
View File
@@ -156,15 +156,50 @@ namespace MoonProTablet.WebUserControls
string answ = "";
if (idxOdl > 0)
{
var odlDetail = DataLayerObj.currODLRowTab(idxMacchina);
if (odlDetail != null && odlDetail.Rows.Count > 0)
//var odlDetail = DataLayerObj.currODLRowTab(idxMacchina);
//if (odlDetail != null && odlDetail.Rows.Count > 0)
//{
// answ = odlDetail[0].KeyRichiesta;
//}
var odlDetail = getCurrOdlRow();
if (odlDetail != null)
{
answ = odlDetail[0].KeyRichiesta;
answ = odlDetail.KeyRichiesta;
}
}
return answ;
}
}
public DateTime inizioOdl
{
get
{
DateTime answ = DateTime.Now.AddYears(-1);
if (idxOdl > 0)
{
var odlDetail = getCurrOdlRow();
if (odlDetail != null)
{
answ = odlDetail.DataInizio;
}
}
return answ;
}
}
public DS_ProdTempi.ODLRow getCurrOdlRow()
{
DS_ProdTempi.ODLRow answ = null;
if (idxOdl > 0)
{
DS_ProdTempi.ODLDataTable odlDetail = DataLayerObj.currODLRowTab(idxMacchina);
if (odlDetail != null && odlDetail.Rows.Count > 0)
{
answ = odlDetail[0];
}
}
return answ;
}
/// <summary>
/// Num giorni configurati x selezione ODL in scadenza